/* ============================================================
   CVFrontalier.ch — style.css
   Palette : #F8F6F1 (fond) · #CC0000 (rouge CH) · #2C2C2C (texte) · #C9A84C (or)
   Fonts   : Playfair Display (titres) · Source Sans Pro (corps)
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F8F6F1;
  --red:       #CC0000;
  --red-dark:  #A80000;
  --text:      #2C2C2C;
  --text-light:#666;
  --gold:      #C9A84C;
  --gold-dark: #A8882A;
  --white:     #FFFFFF;
  --border:    #E0DDD6;
  --shadow:    0 4px 20px rgba(44,44,44,.08);
  --shadow-md: 0 8px 32px rgba(44,44,44,.12);
  --radius:    10px;
  --radius-lg: 16px;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Source Sans Pro', system-ui, sans-serif;
  --max-w: 1160px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.text--red { color: var(--red); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 6px 18px rgba(204,0,0,.3); }

.btn--outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 6px 18px rgba(201,168,76,.35); }
.btn--locked-lettre { opacity: .82; position: relative; }
.btn--locked-lettre::after { content: ' 🔒'; font-size: .85em; }

/* S'assurer que hidden fonctionne même avec display explicite */
[hidden] { display: none !important; }

.btn--white {
  background: var(--white);
  color: var(--red);
  border: 2px solid var(--white);
}
.btn--white:hover { background: var(--bg); }

.btn--lg { padding: 16px 32px; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--alt { background: var(--white); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section__tag {
  display: inline-block;
  background: rgba(204,0,0,.08);
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section__title { margin-bottom: 16px; }
.section__subtitle { color: var(--text-light); font-size: 1.05rem; }

/* ── Badge ────────────────────────────────────────────────── */
.badge--swiss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(44,44,44,.06);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ========================================================
   HEADER
   ======================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,246,241,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo__cross { flex-shrink: 0; }
.logo__text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text);
}
.logo__text strong { color: var(--red); }
.logo__tld { color: var(--text-light); font-size: 1rem; }

/* Nav */
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 8px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--red); background: rgba(204,0,0,.06); }
.nav__cta { flex-shrink: 0; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================
   HERO
   ======================================================== */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero__badge { margin-bottom: 20px; }

.hero__title {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__subtitle strong { color: var(--text); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero__reassurance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-light);
}

/* CV preview mockup */
.hero__visual { position: relative; }

.cv-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
}
.cv-preview__header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--red);
}
.cv-preview__photo {
  width: 70px;
  height: 90px;
  background: linear-gradient(135deg, #e0ddd6, #ccc);
  border-radius: 4px;
  flex-shrink: 0;
}
.cv-preview__info { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.cv-preview__name { height: 16px; background: var(--text); border-radius: 4px; width: 70%; }
.cv-preview__title { height: 11px; background: var(--red); border-radius: 4px; width: 55%; opacity: .7; }
.cv-preview__contact { height: 9px; background: var(--border); border-radius: 4px; width: 85%; }

.cv-preview__section { margin-bottom: 16px; }
.cv-preview__label {
  height: 10px;
  width: 100%;
  background: rgba(204,0,0,.15);
  border-radius: 3px;
  margin-bottom: 8px;
}
.cv-preview__line {
  height: 8px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 6px;
  width: 100%;
}
.cv-preview__line--short { width: 65%; }
.cv-preview__line--medium { width: 80%; }

.cv-preview__badge-swiss {
  position: absolute;
  bottom: -12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--red);
  box-shadow: var(--shadow);
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}
.stat {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
}
.stat__number {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.3;
}

/* ========================================================
   DIFFERENCES
   ======================================================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.diff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.diff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.diff-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204,0,0,.06);
  border-radius: 12px;
}
.diff-card__content { flex: 1; }
.diff-card__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.diff-card__title { margin-bottom: 10px; font-size: 1rem; }
.diff-card__fr, .diff-card__ch {
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}
.diff-card__ch { color: var(--text-light); }
.diff-card__ch strong { color: var(--red); }

/* Tags FR/CH */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag--fr { background: #eef2ff; color: #3730a3; }
.tag--vs { background: none; color: var(--text-light); font-size: .75rem; }
.tag--ch { background: rgba(204,0,0,.1); color: var(--red); }

.differences__cta { text-align: center; }

/* ========================================================
   HOW IT WORKS
   ======================================================== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step__title { margin-bottom: 8px; font-size: 1.05rem; }
.step__desc { font-size: .9rem; color: var(--text-light); }

.step__arrow {
  font-size: 1.8rem;
  color: var(--border);
  align-self: center;
  margin-top: -30px;
}

/* ========================================================
   PRICING
   ======================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.pricing-card--featured {
  border-color: var(--red);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-3px); }

.pricing-card--premium { border-color: var(--gold); }

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-card__plan { font-family: var(--font-title); font-size: 1.3rem; margin-bottom: 12px; }
.pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.pricing-card__amount { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--text); }
.pricing-card--premium .pricing-card__amount { color: var(--gold); }
.pricing-card__period { font-size: .8rem; color: var(--text-light); }
.pricing-card__desc { font-size: .875rem; color: var(--text-light); }

.pricing-card__features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}
.feature::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background-size: 10px; background-repeat: no-repeat; background-position: center; }
.feature--ok::before { background-color: rgba(34,197,94,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2322C55E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); }
.feature--no::before { background-color: rgba(156,163,175,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 3l4 4M7 3l-4 4' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); color: %239CA3AF; }
.feature--no { color: var(--text-light); }

/* ========================================================
   TESTIMONIALS
   ======================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }

.testimonial-card__stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }

.testimonial-card__quote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
}
.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.testimonial-card__author span { font-size: .8rem; color: var(--text-light); }

/* ========================================================
   FAQ
   ======================================================== */
.faq__container { max-width: 760px; }

.faq__list { display: flex; flex-direction: column; gap: 2px; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq__item:hover { box-shadow: var(--shadow); }
.faq__item.is-open { box-shadow: var(--shadow); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--red); }
.faq__item.is-open .faq__question { color: var(--red); }

.faq__icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding: 0 24px 20px;
}
.faq__answer p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq__answer strong { color: var(--text); }
.faq__item.is-open .faq__answer { display: block; }

/* ========================================================
   CTA SECTION
   ======================================================== */
.cta-section {
  background: var(--red);
  padding: 80px 0;
}
.cta-section__inner { text-align: center; }
.cta-section__title {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}
.cta-section__subtitle {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}

.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__tld { color: rgba(255,255,255,.5); }

.footer__tagline { margin-top: 12px; font-size: .9rem; color: rgba(255,255,255,.6); }
.footer__cantons { margin-top: 4px; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer__email { display: inline-block; margin-top: 8px; font-size: .85rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer__email:hover { color: #fff; }

.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer__secure {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   COOKIE BANNER
   ======================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--text);
  color: rgba(255,255,255,.85);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text p { font-size: .875rem; line-height: 1.5; }
.cookie-banner__text a { color: var(--gold); text-decoration: underline; }
.cookie-banner__text a:hover { color: var(--gold-dark); }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* Overrides for dark background */
.cookie-banner .btn--outline {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.4);
}
.cookie-banner .btn--outline:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ========================================================
   RESPONSIVE — Tablette (max 900px)
   ======================================================== */
@media (max-width: 900px) {

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding: 60px 0 72px; }
  .hero__visual { order: -1; }
  .hero__subtitle { max-width: 100%; }
  .hero__stats { justify-content: center; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-3px); }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); margin: -8px auto; }

  .footer__inner { flex-direction: column; gap: 32px; }

  /* Nav responsive */
  .nav__list, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav.is-open {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }
  .nav.is-open .nav__cta { display: inline-flex; }
}

/* ========================================================
   RESPONSIVE — Mobile (max 600px)
   ======================================================== */
@media (max-width: 600px) {

  .section { padding: 60px 0; }
  .section__header { margin-bottom: 40px; }

  .diff-grid { grid-template-columns: 1fr; }
  .diff-card { flex-direction: column; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .hero__stats { flex-direction: column; gap: 12px; }
  .stat { padding: 12px; }

  .footer__bottom .container { flex-direction: column; text-align: center; }

  .cookie-banner__inner { flex-direction: column; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* ---- Accessibilité ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
}
