/* ============================================================
   site.css — Identité visuelle du site Calm Wave
   Nuit profonde + lagune ; titres Young Serif, texte Atkinson
   Hyperlegible (lisible pour un public en 4 langues).
   ============================================================ */
:root {
  --tide: #0e1b3d;        /* bleu nuit : la marque */
  --tide-2: #16285a;
  --lagoon: #2fb8c6;      /* actions */
  --lagoon-deep: #138a99;
  --mist: #eef5f6;        /* sections claires */
  --moon: #f3dfa2;        /* l'essai gratuit, la lune */
  --ink: #13233f;         /* texte */
  --ink-soft: #4a5b78;
  --line: #d6e4e8;
  --white: #ffffff;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --maxw: 1120px;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--lagoon-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { max-width: 62ch; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Boutons ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--sans); padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-moon { background: var(--moon); color: var(--tide); }
.btn-moon:hover { background: #f8e9bd; }
.btn-lagoon { background: var(--lagoon); color: var(--tide); }
.btn-lagoon:hover { background: #4cc8d4; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--tide); color: var(--white); }
.btn-ink:hover { background: var(--tide-2); }
.btn-block { width: 100%; }

/* ── En-tête ───────────────────────────────────────────────── */
.site-head { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-head.solid { position: sticky; top: 0; background: var(--tide); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 11px 18px; font-size: .92rem; }
.nav .btn-moon, .nav .btn-moon:hover { color: var(--tide); }
.lang { background: transparent; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 7px 10px; font: inherit; font-size: .88rem; }
.lang option { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ── Héros ─────────────────────────────────────────────────── */
.hero { position: relative; color: var(--white); background:
  radial-gradient(900px 500px at 78% 30%, rgba(47, 184, 198, .18), transparent 60%),
  radial-gradient(700px 400px at 10% 90%, rgba(243, 223, 162, .08), transparent 60%),
  linear-gradient(180deg, #0b1633 0%, var(--tide) 55%, #10264f 100%);
  overflow: hidden; padding: 140px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-sub { font-size: 1.2rem; color: rgba(255, 255, 255, .82); margin-bottom: 34px; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { color: rgba(255, 255, 255, .62); font-size: .95rem; }
.moon-dot { position: absolute; top: 96px; left: 52%; width: 64px; height: 64px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 80px rgba(243, 223, 162, .45); opacity: .9; }

/* Téléphone + SMS */
.phone { position: relative; width: min(330px, 100%); margin: 0 auto; border-radius: 44px; padding: 14px; background: #050b1c; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.phone-screen { border-radius: 32px; background: #f6f8fb; color: var(--ink); padding: 22px 16px 26px; min-height: 470px; }
.thread-head { text-align: center; font-size: .82rem; color: #6b7a90; margin-bottom: 14px; }
.thread-head strong { display: block; font-size: .95rem; color: var(--ink); }
.thread-avatar { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px; background: var(--tide); display: grid; place-items: center; }
.thread-avatar svg { width: 26px; }
.thread-time { text-align: center; font-size: .75rem; color: #8a97ab; margin: 10px 0; }
.bubble { max-width: 86%; background: #e7ecf3; border-radius: 20px 20px 20px 6px; padding: 11px 14px; font-size: .95rem; line-height: 1.45; margin-bottom: 8px; }
.bubble-img { padding: 0; overflow: hidden; width: 74%; }
.bubble-me { margin-left: auto; background: var(--lagoon); color: var(--tide); border-radius: 20px 20px 6px 20px; font-weight: 700; max-width: 40%; text-align: center; }

/* Écouter dans le héros */
.listen { margin-top: 22px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.listen-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: .93rem; cursor: pointer; }
.listen-btn[aria-pressed="true"] { background: var(--lagoon); color: var(--tide); border-color: var(--lagoon); font-weight: 700; }
.listen-label { width: 100%; text-align: center; color: rgba(255, 255, 255, .7); font-size: .9rem; }

/* La ligne d'eau (réagit au son) */
.waterline { display: block; width: 100%; height: 150px; margin-top: 56px; }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-mist { background: var(--mist); }
.section-tide { background: var(--tide); color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin-top: 14px; }
.section-tide .section-head p { color: rgba(255, 255, 255, .75); }

/* Les deux services : texte du matin / studio */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.duo > div { padding: 44px; }
.duo > div + div { border-left: 1px solid var(--line); }
.duo h3 { margin-bottom: 12px; }
.duo p { color: var(--ink-soft); }
.sample-texts { margin-top: 26px; display: grid; gap: 10px; }
.sample-texts .bubble { background: var(--mist); max-width: 100%; }
.mixer { margin-top: 26px; display: grid; gap: 14px; }
.mix-row { display: grid; grid-template-columns: 34px 1fr 130px; align-items: center; gap: 12px; }
.mix-row .ico { font-size: 1.4rem; }
.mix-row label { font-weight: 700; }
.mix-row input[type=range] { width: 100%; accent-color: var(--lagoon-deep); }
.mix-hint { font-size: .9rem; color: var(--ink-soft); }

/* Voyage sonore : vraie chronologie */
.journey { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.timeline { list-style: none; position: relative; }
.timeline::before { content: ''; position: absolute; left: 52px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--moon), var(--lagoon) 40%, rgba(47, 184, 198, .15)); }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 26px; padding: 0 0 26px; position: relative; }
.timeline li::after { content: ''; position: absolute; left: 47px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--tide); border: 2px solid var(--lagoon); }
.timeline time { font-family: var(--serif); color: var(--moon); font-size: 1.05rem; text-align: right; padding-right: 18px; }
.timeline strong { display: block; font-size: 1.05rem; }
.timeline span { color: rgba(255, 255, 255, .66); font-size: .95rem; }
.extras { margin-top: 28px; color: rgba(255, 255, 255, .75); }

/* Démarrer : 3 étapes (vraie séquence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tide); color: var(--moon); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 16px; }
.steps strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* Prix */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px 28px; background: var(--white); }
.plan-trial { background: var(--tide); color: var(--white); border-color: var(--tide); }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-price { font-family: var(--serif); font-size: 3rem; margin: 10px 0 2px; }
.plan-period { color: var(--ink-soft); font-size: .95rem; }
.plan-trial .plan-period { color: rgba(255, 255, 255, .7); }
.plan-save { display: inline-block; margin-left: 8px; background: var(--moon); color: var(--tide); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 700; vertical-align: middle; }
.plan ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--lagoon-deep); border-bottom: 2.5px solid var(--lagoon-deep); transform: rotate(-45deg); }
.plan-trial li::before { border-color: var(--moon); }
.plans-note { margin-top: 22px; color: var(--ink-soft); font-size: .95rem; }

/* Pensées gratuites (bandeau) */
.cards-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cards-strip { display: flex; gap: 14px; margin-top: 30px; overflow-x: auto; padding-bottom: 6px; }
.cards-strip img { width: 170px; height: 170px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }

/* Questions */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--lagoon-deep); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Pied de page */
.site-foot { background: #0a1430; color: rgba(255, 255, 255, .7); padding: 56px 0 40px; font-size: .95rem; }
.foot-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }
.foot-small { margin-top: 28px; font-size: .85rem; color: rgba(255, 255, 255, .5); max-width: none; }

/* ── Petits écrans ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .hero-grid, .journey, .cards-band { grid-template-columns: 1fr; }
  .hero-sub { max-width: none; }
  .duo { grid-template-columns: 1fr; }
  .duo > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .plans, .steps { grid-template-columns: 1fr; }
  .moon-dot { display: none; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--tide); padding: 10px 24px 24px; }
  .nav.open { display: flex; }
  .nav a, .nav .lang { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav .btn { margin-top: 14px; }
  .menu-btn { display: block; }
  .section { padding: 76px 0; }
  .duo > div { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
