/* ============================================================================
   :flex — feuille de style partagée (thème light éditorial)
   Accent vert menthol (marque app), micro-accent or (XP), papier crème.
   Typo : Bricolage Grotesque (display) + Plus Jakarta Sans (texte).
   ========================================================================== */

:root {
  --bg:        #FBFAF5;   /* papier crème, pas blanc clinique */
  --surface:   #FFFFFF;
  --ink:       #15191C;   /* presque noir, légèrement froid */
  --ink-2:     #4B5560;
  --ink-3:     #8B95A0;
  --brand:     #14B981;   /* vert menthol */
  --brand-deep:#0C8F63;
  --brand-tint:#E8FAF1;
  --gold:      #D99A2B;   /* XP / accent chaud */
  --border:    #ECE9DF;   /* bordure chaude */
  --shadow:    0 1px 2px rgba(21,25,28,.04), 0 12px 32px rgba(21,25,28,.06);
  --shadow-lg: 0 2px 4px rgba(21,25,28,.05), 0 28px 60px rgba(12,143,99,.10);
  --radius:    18px;
  --maxw:      1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 760px; }

/* ===== Marque / wordmark ===== */
.wordmark {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.wordmark .colon { color: var(--brand); }

/* ===== Header ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 245, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav .wordmark { font-size: 24px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  text-decoration: none; transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 8px 20px rgba(12,143,99,.26);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); text-decoration: none; }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--border); box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-2px); text-decoration: none; }
.btn[disabled], .btn.is-soon { opacity: .55; cursor: default; pointer-events: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  /* halo menthol on-brand */
  content: ""; position: absolute; inset: -20% 20% auto -10%;
  height: 560px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(20,185,129,.20), transparent 70%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: 8%;
  width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(217,154,43,.14), transparent);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-deep); background: var(--brand-tint);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin-bottom: 20px; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }

/* Carte flashcard décorative (illustre l'immersion) */
.flashcard {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 26px 26px 24px;
  transform: rotate(-2deg);
}
.flashcard .fc-tag {
  font-size: 12px; font-weight: 700; color: var(--brand-deep);
  background: var(--brand-tint); padding: 5px 11px; border-radius: 999px;
  display: inline-block; margin-bottom: 18px;
}
.flashcard .fc-en { font-family: 'Bricolage Grotesque', serif; font-weight: 700; font-size: 27px; color: var(--ink); }
.flashcard .fc-fr { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.flashcard .fc-row {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  padding-top: 18px; border-top: 1px dashed var(--border);
}
.flashcard .fc-play {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  flex-shrink: 0; box-shadow: 0 6px 14px rgba(12,143,99,.3);
}
.flashcard .fc-wave { display: flex; gap: 4px; align-items: center; height: 22px; }
.flashcard .fc-wave span {
  width: 3px; border-radius: 3px; background: var(--brand);
  animation: wave 1.1s ease-in-out infinite;
}
.flashcard .fc-xp {
  margin-left: auto; font-size: 13px; font-weight: 700; color: var(--gold);
}
@keyframes wave { 0%,100% { height: 7px; opacity:.55 } 50% { height: 20px; opacity:1 } }

/* ===== Sections génériques ===== */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* Atouts */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); margin-bottom: 16px; font-size: 22px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* CTA bandeau */
.cta-band {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: 26px; padding: 48px 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -10% -60% 40%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 26px; position: relative; }
.cta-band .btn-ghost { position: relative; }

/* ===== Pages légales (privacy / terms) ===== */
.legal { padding: 56px 0 80px; }
.legal .doc-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.legal .updated { color: var(--ink-3); font-size: 14px; }
.legal .summary {
  background: var(--brand-tint); border: 1px solid #CDEFE0;
  border-radius: 14px; padding: 18px 20px; margin-bottom: 36px;
  font-size: 15.5px; color: var(--ink-2);
}
.legal h2 {
  font-size: 21px; margin: 36px 0 12px; color: var(--ink);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-2); margin-bottom: 12px; }
.legal ul { color: var(--ink-2); margin: 0 0 14px 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }

/* ===== Support / FAQ ===== */
.contact-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  margin-bottom: 44px;
}
.contact-card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-tint);
  display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
.contact-card .ct-txt h3 { font-size: 17px; }
.contact-card .ct-txt p { color: var(--ink-3); font-size: 14px; }
.contact-card .btn { margin-left: auto; }

details.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
  transition: box-shadow .2s ease;
}
details.faq[open] { box-shadow: var(--shadow); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 22px; color: var(--brand); font-weight: 400;
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }
details.faq .faq-body p { margin-bottom: 10px; }

/* ===== Footer ===== */
footer.site {
  border-top: 1px solid var(--border); padding: 40px 0; margin-top: 24px;
  background: var(--surface);
}
.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.foot .wordmark { font-size: 22px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-size: 14px; }
.foot-copy { color: var(--ink-3); font-size: 13px; width: 100%; padding-top: 14px; }

/* ===== Reveal au chargement ===== */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .15s } .d3 { animation-delay: .25s } .d4 { animation-delay: .35s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero p.lead { max-width: none; }
  .flashcard { transform: rotate(-1.5deg); max-width: 380px; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .contact-card .btn { margin-left: 0; width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .flashcard .fc-wave span { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
