/* =====================================================================
   École des Francophones du Panama — style.css (mobile-first)
   Thème CLAIR. Palette issue du logo. Toutes les variables sont définies
   ICI, une seule fois (:root).
   Surfaces : .light (crème #FBF5EE), .tint (blanc cassé teinté bordeaux 6 %),
   .hero / .page-hero (clair + halo), une seule bande sombre : .final-cta (bordeaux).
   Règle : le doré ne sert qu'aux accents (filets, icônes, puces), jamais au
   texte sur fond clair (contraste insuffisant) → bordeaux ou gris foncé.
   ===================================================================== */
:root {
  /* Palette du logo */
  --burgundy: #762D42;
  --gold: #D8B77B;
  --ink: #1A1216;
  --gray: #81747A;            /* filets / éléments non textuels uniquement (3,9:1 sur crème) */
  --cream: #FBF5EE;
  --white: #FFFFFF;

  /* Dérivés (calculés à partir de la palette) */
  --burgundy-deep: color-mix(in srgb, var(--burgundy) 72%, var(--ink));
  --gold-deep: color-mix(in srgb, var(--gold) 82%, var(--burgundy));
  --gray-deep: color-mix(in srgb, var(--gray) 70%, var(--ink));   /* texte secondaire (≥ 5,5:1 sur crème) */
  --ink-soft: color-mix(in srgb, var(--ink) 90%, var(--burgundy));

  /* Surfaces claires */
  --lt-line: color-mix(in srgb, var(--burgundy) 15%, transparent);    /* bordure fine des cartes */
  --lt-line-strong: color-mix(in srgb, var(--burgundy) 35%, transparent);
  --lt-card: var(--white);
  --lt-tint: color-mix(in srgb, var(--burgundy) 6%, var(--white));    /* sections alternées */
  --lt-tint-cream: color-mix(in srgb, var(--burgundy) 6%, var(--cream)); /* footer, pastilles */
  --lt-field-border: color-mix(in srgb, var(--gray) 45%, transparent);
  --gold-line: color-mix(in srgb, var(--gold) 70%, transparent);

  /* Sur la bande bordeaux (CTA final, barre mobile) */
  --on-burgundy: var(--cream);
  --on-burgundy-muted: color-mix(in srgb, var(--cream) 86%, var(--burgundy));

  /* Effets */
  --shadow-lt: 0 10px 30px color-mix(in srgb, var(--burgundy) 8%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 4%, transparent);
  --shadow-lt-hover: 0 16px 40px color-mix(in srgb, var(--burgundy) 13%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 5%, transparent);
  --shadow-nav: 0 4px 20px color-mix(in srgb, var(--burgundy) 10%, transparent);
  --shadow-btn: 0 8px 22px color-mix(in srgb, var(--burgundy) 24%, transparent);

  /* Placeholders [À REMPLIR] */
  --todo: #FFD54A;

  /* Retours de formulaire */
  --ok-on-light: #1E7A46;
  --ko-on-light: #B3261E;

  --radius: 20px;
  --radius-sm: 12px;
  --ff-title: "Playfair Display", Georgia, serif;
  --ff-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--ink); }
main a:not(.btn) { text-decoration: underline; text-decoration-color: var(--lt-line-strong); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--ff-title); color: var(--burgundy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.accent { font-style: italic; color: var(--burgundy); }
.grad { font-style: italic; color: var(--burgundy); }
.muted { color: var(--gray-deep); }
.small { font-size: .9rem; }
.chart-note { font-size: .78rem; color: var(--gray-deep); margin: 10px 0 0; }
.small-note { font-size: .85rem; color: var(--gray-deep); margin: 16px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--gray-deep); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }

/* ---------- Surfaces ---------- */
.light { background: var(--cream); color: var(--ink); }
.tint { background: var(--lt-tint); color: var(--ink); }
.hero, .page-hero { position: relative; overflow: hidden; background: var(--lt-tint); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(620px 440px at 88% 0%, color-mix(in srgb, var(--burgundy) 9%, transparent), transparent 70%),
    radial-gradient(560px 400px at 0% 90%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* ---------- Placeholders visibles ---------- */
.todo-text, .todo { color: var(--ink) !important; background: var(--todo); padding: 0 6px; border-radius: 6px; font-weight: 700; }
a.is-todo { position: relative; cursor: not-allowed; }
a.is-todo::after {
  content: attr(data-todo);
  position: absolute; top: -10px; right: -6px;
  font: 700 10px/1 var(--ff-text); letter-spacing: .02em;
  background: var(--todo); color: var(--ink); padding: 4px 6px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
}
.test-ribbon {
  position: fixed; bottom: 12px; left: 12px; z-index: 90;
  background: var(--todo); color: var(--ink); font: 700 11px/1 var(--ff-text);
  padding: 7px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--shadow-lt);
}

/* ---------- Cartes (classe historique .glass : désormais cartes blanches) ---------- */
.glass {
  background: var(--lt-card);
  border: 1px solid var(--lt-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lt);
}

/* ---------- Boutons : bordeaux, texte crème ; secondaire en contour bordeaux ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--ff-text); cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-gold { background: var(--burgundy); color: var(--cream); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-gold:hover { background: var(--burgundy-deep); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-ghost:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: .9rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .03em; }
.badge-rose, .badge-gold { background: var(--lt-tint-cream); color: var(--burgundy); border: 1px solid var(--lt-line-strong); }
.badge-gold { border-color: var(--gold); }

/* ---------- Navbar (claire) ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent; padding: 12px 0;
}
.navbar.is-scrolled, body.nav-open .navbar {
  background: var(--cream); box-shadow: var(--shadow-nav);
  border-color: var(--lt-line); padding: 8px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 52px; width: auto; }
.nav-links { display: none; }
.nav-cta { display: none; }
.nav-burger {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--lt-line-strong);
  background: var(--white); color: var(--burgundy); display: grid; place-items: center; cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
body.nav-open .nav-links {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--lt-line); box-shadow: var(--shadow-nav); padding: 12px 20px 24px;
}
.nav-links a { color: var(--ink); padding: 12px 4px; font-weight: 500; }
.nav-links a:hover { color: var(--burgundy); }
.nav-links .btn { margin-top: 10px; color: var(--cream); padding: 15px 26px; }

/* ---------- Hero ---------- */
.hero { padding: 130px 0 70px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero-lead { font-size: 1.15rem; color: var(--ink); max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 32px; }
.hero-proofs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-proofs li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink); }
.hero-proofs .ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  background: var(--white); color: var(--burgundy); border: 1px solid var(--gold);
}
.hero-proofs strong { color: var(--burgundy); }
.hero-visual { position: relative; }
.hero-visual .ph { aspect-ratio: 4 / 5; }
.hero-float { position: absolute; padding: 14px 16px; font-size: .85rem; max-width: 220px; color: var(--ink); animation: float 6s ease-in-out infinite; }
.hero-float strong { display: block; font-family: var(--ff-title); font-size: 1.6rem; color: var(--burgundy); line-height: 1; margin-bottom: 4px; }
.hero-float.f1 { left: -6px; bottom: 26px; }
.hero-float.f2 { right: -6px; top: 22px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Emplacement photo générique */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--burgundy) 10%, transparent), color-mix(in srgb, var(--gold) 22%, transparent)),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--burgundy) 4%, transparent) 0 12px, transparent 12px 24px),
    var(--white);
  border: 1px solid var(--lt-line);
  box-shadow: var(--shadow-lt);
  display: grid; place-items: center; text-align: center;
  color: var(--gray-deep); font-size: .85rem; min-height: 200px;
}
.ph::before {
  content: ""; width: 54px; height: 54px; margin-bottom: 10px; opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762D42' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E");
}
.ph > span { position: absolute; bottom: 14px; left: 0; right: 0; padding: 0 14px; }

/* ---------- Bandeau parrainage ---------- */
.ref-banner { padding: 22px; display: grid; gap: 14px; margin-top: 28px; border-color: var(--gold); border-left: 4px solid var(--gold); color: var(--ink); }
.ref-banner p { margin: 0; }
.partner-line { font-size: .9rem; color: var(--gray-deep); margin-top: 22px; }
.partner-line a { color: var(--burgundy); }

/* ---------- Preuves ---------- */
.proof-grid { display: grid; gap: 20px; }
.stat-card { padding: 30px 26px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; left: 26px; top: 0; width: 44px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.stat-num { font-family: var(--ff-title); font-size: clamp(3rem, 10vw, 4.4rem); line-height: 1; color: var(--burgundy); font-weight: 700; }
.stat-num .unit { font-size: .45em; color: var(--gray-deep); margin-left: 6px; }
.stat-label { color: var(--gray-deep); margin: 10px 0 0; }
.journey { padding: 30px 26px; }
.journey h3 { margin-top: 14px; }
.journey ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.journey li { display: flex; gap: 14px; align-items: flex-start; }
.journey li .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lt-tint-cream); color: var(--burgundy); border: 1px solid var(--gold); font-size: .9rem; }
.journey .note { font-size: .82rem; color: var(--gray-deep); margin: 18px 0 0; border-top: 1px solid var(--lt-line); padding-top: 14px; }

/* Graphiques "exemple de suivi" */
.chart-card { padding: 26px; }
.chart-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chart-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--burgundy); border: 1px dashed var(--gold); padding: 4px 9px; border-radius: 999px; margin-bottom: 14px;
}
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid line { stroke: var(--lt-line); }
.chart-svg text { fill: var(--gray-deep); font: 500 10px var(--ff-text); }
.chart-svg .line { fill: none; stroke: url(#lineGrad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease); }
.chart-svg .area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.2s .6s; }
.chart-svg .dot { fill: var(--white); stroke: var(--burgundy); stroke-width: 2; opacity: 0; transition: opacity .4s 1.6s; }
.is-visible .chart-svg .line { stroke-dashoffset: 0; }
.is-visible .chart-svg .area, .is-visible .chart-svg .dot { opacity: 1; }
.bars { display: grid; gap: 14px; margin-top: 6px; }
.bar-row { display: grid; gap: 6px; }
.bar-row .bar-head { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--ink); }
.bar-row .bar-head span:last-child { color: var(--gray-deep); }
.bar { height: 10px; border-radius: 999px; background: var(--lt-tint-cream); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.6s var(--ease); }
.bar i.before { background: var(--gray); }
.bar i.after { background: linear-gradient(90deg, var(--burgundy), var(--gold)); margin-left: -6px; }
.is-visible .bar i { width: var(--w); }
.chart-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--gray-deep); margin-top: 14px; flex-wrap: wrap; }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-legend .l1::before { background: var(--gray); }
.chart-legend .l2::before { background: linear-gradient(90deg, var(--burgundy), var(--gold)); }

/* ---------- Méthode / étapes ---------- */
.steps { display: grid; gap: 20px; }
.step { padding: 30px 26px; position: relative; }
.step-num {
  font-family: var(--ff-title); font-size: 3rem; line-height: 1; font-weight: 700; display: inline-block; margin-bottom: 14px;
  color: var(--burgundy); padding-bottom: 6px; border-bottom: 2px solid var(--gold);
}
.step p { color: var(--gray-deep); margin: 0; }

/* ---------- Offres ---------- */
.pricing-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 18px; }
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--lt-line-strong); box-shadow: var(--shadow-lt); }
.toggle button {
  border: 0; background: transparent; color: var(--gray-deep); font: 600 .92rem var(--ff-text);
  padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; min-height: 44px;
}
.toggle button:hover { color: var(--burgundy); }
.toggle button.is-active { background: var(--burgundy); color: var(--cream); }
.rate-line { text-align: center; margin-bottom: 8px; }
.rate-line .rate { font-family: var(--ff-title); font-size: 2.2rem; color: var(--burgundy); }
.rate-line .rate small { font-size: .5em; color: var(--gray-deep); }
.mode-note { text-align: center; color: var(--gray-deep); font-size: .92rem; max-width: 560px; margin: 0 auto 34px; }
.pack-grid { display: grid; gap: 20px; }
.pack { padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow-lt-hover); }
.pack header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pack header h3 { margin: 0; }
.pack.is-featured { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy), var(--shadow-lt-hover); }
.pack-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--burgundy); color: var(--cream); border: 1px solid var(--gold);
  font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.pack-price .amount { font-family: var(--ff-title); font-size: 2.3rem; color: var(--burgundy); line-height: 1.1; font-weight: 700; }
.pack-sub { color: var(--gray-deep); font-size: .88rem; margin: 6px 0 18px; }
.pack-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.pack-list li { padding-left: 26px; position: relative; font-size: .94rem; }
.pack-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.pricing-foot { text-align: center; color: var(--gray-deep); font-size: .88rem; margin-top: 28px; }

/* ---------- Enfants ---------- */
.kids-grid { display: grid; gap: 30px; align-items: center; }
.kids-card { padding: 30px 26px; }
.kids-langs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.lang-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lt-line-strong); background: var(--white); font-weight: 600; font-size: .9rem; color: var(--ink); }
.lang-chip.main { border-color: var(--gold); color: var(--burgundy); background: var(--lt-tint-cream); }
.lang-chip.secondary { color: var(--gray-deep); font-weight: 500; font-size: .82rem; }
.kids-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.fact { padding: 16px; border-radius: var(--radius-sm); background: var(--lt-tint-cream); border: 1px solid var(--lt-line); }
.fact strong { display: block; font-family: var(--ff-title); font-size: 1.5rem; color: var(--burgundy); line-height: 1.1; }
.fact > span { font-size: .82rem; color: var(--gray-deep); }
.coming {
  border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--white);
  color: var(--gray-deep); font-size: .9rem; display: flex; gap: 12px; align-items: center; margin-bottom: 22px;
}
.coming b { color: var(--burgundy); }

/* ---------- Guide ---------- */
.guide-wrap { padding: 34px 26px; display: grid; gap: 30px; position: relative; overflow: hidden; }
.guide-cover {
  aspect-ratio: 3 / 4; max-width: 240px; margin: 0 auto; border-radius: 14px; padding: 24px 20px;
  background: linear-gradient(160deg, var(--burgundy), var(--burgundy-deep)); color: var(--cream);
  border: 1px solid var(--gold);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 48px color-mix(in srgb, var(--burgundy) 25%, transparent); transform: rotate(-4deg);
}
.guide-cover .gc-top { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.guide-cover .gc-title { font-family: var(--ff-title); font-size: 1.7rem; line-height: 1.1; }
.guide-cover .gc-title em { color: var(--gold); }
.guide-cover .gc-bottom { font-size: .72rem; color: var(--on-burgundy-muted); }
.guide-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.guide-points li::before { content: "→ "; color: var(--gold-deep); font-weight: 700; }

/* ---------- Formulaires (champs blancs, focus bordeaux) ---------- */
.form { display: grid; gap: 14px; position: relative; }
.form-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--lt-field-border); color: var(--ink);
  font: 400 1rem var(--ff-text); transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-deep); opacity: .85; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--burgundy) 15%, transparent); }
.form-legal { font-size: .78rem; color: var(--gray-deep); margin: 0; }
.form-status { font-size: .92rem; min-height: 1.4em; margin: 0; font-weight: 600; }
.form-status.is-ok { color: var(--ok-on-light); }
.form-status.is-ko { color: var(--ko-on-light); }
.hp { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--ink);
  font: 600 1.02rem/1.4 var(--ff-text); padding: 20px 56px 20px 22px; cursor: pointer; position: relative; min-height: 56px;
}
.faq-q:hover { color: var(--burgundy); }
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lt-tint-cream); color: var(--burgundy); border: 1px solid var(--gold); font-size: 1.2rem; transition: transform .3s, background .3s, color .3s;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a > div { padding: 0 22px 20px; color: var(--gray-deep); }
.faq-a p:last-child { margin: 0; }

/* ---------- CTA final : SEULE bande sombre (bordeaux, texte crème) ---------- */
.final-cta {
  padding: 44px 26px; text-align: center; position: relative; overflow: hidden;
  background: var(--burgundy); color: var(--on-burgundy); border-color: var(--burgundy);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--burgundy) 25%, transparent);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 300px at 100% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
}
.final-cta > * { position: relative; }
.final-cta h2, .final-cta .grad { color: var(--cream); }
.final-cta .eyebrow { color: var(--gold); }
.final-cta p { color: var(--on-burgundy-muted); max-width: 560px; margin: 0 auto 26px; }
.final-cta .btn-primary, .final-cta .btn-gold { background: var(--cream); color: var(--burgundy); box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 25%, transparent); }
.final-cta .btn-primary:hover, .final-cta .btn-gold:hover { background: var(--white); color: var(--burgundy-deep); }
.final-cta a:focus-visible { outline-color: var(--cream); }
.final-cta .todo-text { color: var(--ink) !important; }

.contact-grid { display: grid; gap: 26px; margin-top: 40px; }
.contact-grid:first-child { margin-top: 0; }
.contact-info { padding: 28px 24px; }
.contact-info h2 { font-size: 1.8rem; }
.contact-info ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.contact-info li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.contact-info li span:first-child { color: var(--gray-deep); font-size: .85rem; min-width: 80px; }
.contact-form { padding: 28px 24px; }

/* ---------- Fonctionnalités (pages secondaires) ---------- */
.feature-grid { display: grid; gap: 20px; }
.feature { padding: 28px 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lt-tint-cream); color: var(--burgundy); border: 1px solid var(--gold); margin-bottom: 16px; font-weight: 700; }
.feature p { color: var(--gray-deep); margin: 0; }

/* ---------- Footer (crème teinté) ---------- */
.footer { background: var(--lt-tint-cream); border-top: 1px solid var(--lt-line); padding: 50px 0 30px; font-size: .9rem; color: var(--gray-deep); }
.footer-brand { display: inline-block; margin-bottom: 18px; }
.footer-logo { display: block; width: 240px; max-width: 100%; height: auto; }
.footer-grid { display: grid; gap: 28px; }
.footer h4 { font-family: var(--ff-text); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gold); display: inline-block; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--burgundy); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer p { margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid var(--lt-line); margin-top: 34px; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; }
.footer-bottom.solo { border: 0; margin: 0; padding: 0; }

/* ---------- Sticky CTA mobile : bordeaux, texte crème ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--burgundy); border-top: 1px solid var(--gold);
  box-shadow: 0 -6px 20px color-mix(in srgb, var(--burgundy) 20%, transparent);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky-cta .btn { width: 100%; background: transparent; color: var(--cream); border-color: color-mix(in srgb, var(--cream) 55%, transparent); box-shadow: none; }
.sticky-cta .btn:hover { background: var(--burgundy-deep); color: var(--cream); }
.sticky-cta .btn:focus-visible { outline-color: var(--cream); }
body.is-past-hero .sticky-cta { transform: none; }
body.is-past-hero .test-ribbon { bottom: 84px; }

/* ---------- Pages légales ---------- */
.page-hero { padding: 130px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page-hero .hero-lead { margin-left: auto; margin-right: auto; }
.legal { max-width: 820px; margin: 0 auto; padding: 34px 26px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal .warn { background: var(--todo); color: var(--ink); padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.legal .warn-end { margin-top: 2em; }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Tablette ≥ 720px
   ===================================================================== */
@media (min-width: 720px) {
  .container { padding: 0 32px; }
  .section { padding: 110px 0; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing-controls { flex-direction: row; justify-content: center; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .ref-banner { grid-template-columns: 1fr auto; align-items: center; }
  .ref-banner .badge { grid-column: 1 / -1; justify-self: start; }
  .sticky-cta { display: none; }
  body.is-past-hero .test-ribbon { bottom: 12px; }
}

/* =====================================================================
   Desktop ≥ 1000px
   ===================================================================== */
@media (min-width: 1000px) {
  .logo img { height: 58px; }
  .nav-links { display: flex; align-items: center; gap: 26px; }
  .nav-links a { padding: 6px 0; font-size: .94rem; }
  .nav-links .btn { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .hero { padding: 160px 0 100px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 60px; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid .span-2 { grid-column: span 2; }
  .pack-grid { grid-template-columns: repeat(3, 1fr); }
  .kids-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .guide-wrap { grid-template-columns: .8fr 1.2fr; padding: 54px; align-items: center; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .final-cta { padding: 70px 40px; }
}
