/* Le Blog Santé d'Élise — feuille de style v2
   Concept : grille éditoriale calme ; une "bande d'écoute" (onde + valeur en Hz)
   signale les contenus sonores ; gouttières larges, colonne de lecture ~68ch. */

:root {
  --bg: #F2F5F1;
  --surface: #FFFFFF;
  --tint: #E3EEEA;
  --fg: #1C2927;
  --muted: #5B6967;
  --line: #D9E1DC;
  --accent: #1E6E68;
  --accent-ink: #FFFFFF;
  --sun: #D99A3E;
  --shadow: 0 10px 30px rgba(28, 41, 39, .08);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101817; --surface: #182220; --tint: #1E2C29; --fg: #E7ECE9; --muted: #9FB0AB;
    --line: #2A3835; --accent: #6CC4BC; --accent-ink: #0F1C1A; --sun: #E5B264;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101817; --surface: #182220; --tint: #1E2C29; --fg: #E7ECE9; --muted: #9FB0AB;
  --line: #2A3835; --accent: #6CC4BC; --accent-ink: #0F1C1A; --sun: #E5B264;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
}
.hz {
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .25em .6em; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: .85rem;
}
.hz svg { width: 34px; height: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-family: var(--body);
  font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: #1C2927; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; padding: .5em .75em; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint); color: var(--accent); }
.nav .btn { padding: .55em 1em; font-size: .92rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-proof { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.hero-proof b { color: var(--fg); font-family: var(--mono); font-weight: 500; }
.portrait { position: relative; max-width: 420px; justify-self: end; }
.portrait img { border-radius: 50% 50% 40% 40% / 45% 45% 55% 55%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.portrait::before { content: ""; position: absolute; inset: -8% -10% auto auto; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--sun); opacity: .8; z-index: -1; }
.portrait::after { content: ""; position: absolute; inset: auto auto -6% -8%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: var(--tint); z-index: -1; }
.portrait figcaption { position: absolute; left: 0; bottom: 6%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .5em .9em; font-size: .85rem; box-shadow: var(--shadow); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .portrait { justify-self: start; max-width: 320px; } }

/* Sections */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 40em; margin-top: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.path .eyebrow { color: var(--accent); }
.path h3 { font-size: 1.35rem; }
.path p { color: var(--muted); }
.path a { margin-top: auto; font-weight: 600; text-decoration: none; }

.post { display: flex; flex-direction: column; gap: 10px; }
.post .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--tint); overflow: hidden; display: grid; place-items: center; position: relative; }
.post .thumb svg { width: 100%; height: 100%; }
.post h3 { font-size: 1.2rem; }
.post h3 a { color: var(--fg); text-decoration: none; }
.post h3 a:hover { color: var(--accent); }
.post .meta { color: var(--muted); font-size: .88rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Bande guide (capture email) */
.band { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.band > * { min-width: 0; }
.band h2 { color: inherit; }
.band p { opacity: .9; margin-top: 10px; }
.band ul { margin: 14px 0 0; padding-left: 1.2em; opacity: .95; }
.band .eyebrow { color: inherit; opacity: .8; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.form { display: grid; gap: 10px; background: var(--surface); color: var(--fg); padding: 20px; border-radius: var(--radius); }
.form label { font-size: .85rem; font-weight: 600; }
.form input { width: 100%; padding: .75em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.form .btn { width: 100%; }
.form small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.form .ok { display: none; padding: 14px; border-radius: 10px; background: var(--tint); color: var(--fg); }
.form.is-sent .ok { display: block; }
.form.is-sent .field, .form.is-sent .btn, .form.is-sent small { display: none; }

/* Programmes */
.prog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.prog .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.prog .price { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.prog p { color: var(--muted); font-size: .95rem; }
.prog .btn { align-self: flex-start; margin-top: 6px; font-size: .92rem; padding: .6em 1.1em; }
.disclosure { background: var(--tint); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: var(--muted); }

/* À propos */
.about { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.about img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.about p { color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .about { grid-template-columns: 1fr; } }

/* Article */
.article-head { padding-block: clamp(32px, 5vw, 64px) 24px; max-width: 760px; }
.article-head .meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-top: 18px; }
.article-head .meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-head .chapo { font-size: 1.25rem; color: var(--muted); margin-top: 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 68ch) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.article-layout > * { min-width: 0; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .aside { order: -1; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sun); font-family: var(--display); font-size: 1.25rem; font-style: italic; }
.prose .btn { margin-top: .4em; }
.fiche { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.fiche h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 12px; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.fiche dt { color: var(--muted); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .2em; }
.fiche dd { margin: 0; }
.callout { border-radius: var(--radius); padding: 20px 22px; background: var(--tint); }
.callout h3 { font-size: 1.05rem; margin-bottom: 8px; }
.callout p { font-size: .97rem; }
.offer { border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 24px; background: var(--surface); display: grid; gap: 12px; }
.offer .eyebrow { color: var(--accent); }
.offer ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.offer .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.offer .price { font-family: var(--mono); font-size: 1.3rem; }
.aside { display: grid; gap: 18px; position: sticky; top: 90px; }
.aside .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.aside .card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.aside .card ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; }
.aside .form { padding: 18px; border: 1px solid var(--line); }
.related { margin-top: 56px; }

/* Guide (landing) */
.guide-hero { padding-block: clamp(36px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.guide-hero > * { min-width: 0; }
@media (max-width: 820px) { .guide-hero { grid-template-columns: 1fr; } }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 24px; }
.days div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: .78rem; }
.days b { display: block; font-family: var(--mono); color: var(--accent); font-size: .95rem; }
@media (max-width: 640px) { .days { grid-template-columns: repeat(4, 1fr); } }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--display); font-size: 1.1rem; }
.faq p { color: var(--muted); margin-top: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(36px, 6vw, 72px); padding-block: 36px 48px; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid > * { min-width: 0; }
.foot-grid h4 { font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: inherit; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.5; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Vie du site : onde d'en-tête, écoute, quiz, apparitions ---------- */
.hero { position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto -10% -30% -10%; height: 60%; background: radial-gradient(60% 60% at 50% 100%, color-mix(in srgb, var(--sun) 18%, transparent), transparent 70%); pointer-events: none; z-index: 0; }

.listen {
  display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.1em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.listen:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--shadow); }
.listen svg { width: 18px; height: 18px; fill: var(--accent); flex: none; }
.listen .pause { display: none; }
.listen.is-playing { border-color: var(--accent); background: var(--tint); }
.listen.is-playing .play { display: none; }
.listen.is-playing .pause { display: block; }
.listen.is-playing svg { animation: pulse 1.2s ease-in-out infinite; }
.listen[disabled] { opacity: .5; cursor: not-allowed; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.hero-actions .listen { padding: .8em 1.3em; font-size: 1rem; }

#player {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg); box-shadow: 0 14px 40px rgba(0,0,0,.25); z-index: 40; font-size: .92rem;
  max-width: calc(100vw - 32px); white-space: nowrap;
}
#player[hidden] { display: none; }
#player .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); animation: pulse 1.2s ease-in-out infinite; flex: none; }
#player .time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
#player .stop { border: 0; border-radius: 999px; padding: .45em .9em; background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }

.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.quiz > * { min-width: 0; }
@media (max-width: 820px) { .quiz { grid-template-columns: 1fr; } }
.quiz-intro p { color: var(--muted); margin-top: 10px; }
.quiz-box h3 { font-size: 1.45rem; margin-top: 8px; }
.quiz-box > p { color: var(--muted); margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: .7em 1.1em; font: inherit; font-weight: 500; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.chip:hover { border-color: var(--accent); background: var(--tint); transform: translateY(-1px); }
.bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 22px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.quiz-foot { font-size: .92rem; margin-top: 16px; }
.link { border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.js .reveal { opacity: .55; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.path, .post, .prog { transition: transform .2s ease, box-shadow .2s ease; }
.path:hover, .prog:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post:hover .thumb { box-shadow: var(--shadow); }
.post .thumb svg path { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.post:hover .thumb svg path { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -1400; } }
.prog .row .listen { padding: .4em .8em; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .listen, .chip, .path, .post, .prog { transition: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .listen.is-playing svg, #player .dot, .post:hover .thumb svg path { animation: none; }
}
