/* ==========================================================================
   OLOFEMINA — design system
   Palette du cahier des charges : mauve #885C83 · rose poudré #DFC6D9 ·
   beige #F5EFE6 · blanc · prune #594653. Univers médical, féminin, élégant,
   rassurant — jamais « institut esthétique ».
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --mauve: #885C83;
  --mauve-600: #77507a;
  --mauve-700: #6a4565;
  --rose: #DFC6D9;
  --rose-100: #F3E8F0;
  --rose-50: #FAF4F8;
  --beige: #F5EFE6;
  --beige-50: #FBF8F3;
  --prune: #594653;
  --prune-900: #2E2329;
  --ink: #3A2F37;
  --muted: #7A6B76;
  --line: #E9E0E6;
  --line-strong: #D9CBD4;
  --white: #FFFFFF;
  --sage: #6F8F7E;
  --sage-50: #EEF4F0;
  --amber: #B7791F;
  --amber-50: #FCF4E6;
  --danger: #B4413C;
  --danger-50: #FBEDEC;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(46, 35, 41, .06);
  --shadow: 0 1px 2px rgba(46, 35, 41, .04), 0 8px 24px -12px rgba(46, 35, 41, .14);
  --shadow-lg: 0 2px 4px rgba(46, 35, 41, .04), 0 24px 60px -24px rgba(89, 70, 83, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--beige-50); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -.18em; }
a { color: var(--mauve-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--prune); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--mauve) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--rose); color: var(--prune-900); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--prune); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--prune); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.eyebrow { font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mauve); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.italic { font-family: var(--font-serif); font-style: italic; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ------------------------------------------------------------------ boutons */
.btn {
  --b: var(--prune); display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .95rem/1 var(--font-sans); padding: .95rem 1.45rem; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { color: #fff; background: var(--prune-900); border-color: var(--prune-900); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-mauve { --b: var(--mauve); }
.btn-mauve:hover { background: var(--mauve-700); border-color: var(--mauve-700); }
.btn-ghost { background: transparent; color: var(--prune); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--white); color: var(--prune); border-color: var(--prune); }
.btn-light { background: var(--white); color: var(--prune); border-color: var(--white); }
.btn-light:hover { background: var(--rose-50); color: var(--prune); border-color: var(--rose-50); }
.btn-danger { --b: var(--danger); }
.btn-danger:hover { background: #8f312d; border-color: #8f312d; }
.btn-sm { padding: .6rem 1rem; font-size: .86rem; }
.btn-xs { padding: .4rem .75rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------------ bandeaux */
.topbar { background: var(--prune); color: #F1E6EE; font-size: .82rem; }
.topbar .container { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .team-link { display: inline-flex; align-items: center; gap: .4rem; padding: 3px 12px; margin-left: auto; margin-right: 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.topbar .team-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topbar .team-link .ic { width: 14px; height: 14px; }
.topbar .team-link + .emergency { margin-left: 0; }
.topbar .emergency { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
@media (max-width: 640px) { .topbar .hide-mobile { display: none; } .topbar .container { justify-content: flex-end; } }
.topbar .emergency b { background: #fff; color: var(--prune); border-radius: 6px; padding: 1px 7px; font-size: .78rem; }
/* Accès rapides (barre du haut, ordinateur) */
.quick-links { display: flex; gap: 2px; align-items: center; margin-left: -10px; min-width: 0; overflow: hidden; }
.quick-links a { display: inline-flex; align-items: center; gap: .4rem; padding: 4px 10px; border-radius: 999px; color: #F1E6EE; font-weight: 500; white-space: nowrap; }
.quick-links a:hover, .quick-links a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.quick-links .ic { width: 14px; height: 14px; opacity: .85; }
/* Sous 1200 px, on masque un lien entier plutôt que de le tronquer (il reste dans le menu tiroir). */
@media (max-width: 1200px) { .quick-links .ql-optional { display: none; } }
@media (max-width: 1000px) { .topbar .quick-links, .topbar .team-link { display: none; } .topbar .container { justify-content: flex-end; } }
/* Accès rapides (tiroir mobile) : masqués sur ordinateur, où la barre du haut les porte */
.nav-quick { display: none; }
.announcement { background: var(--rose-100); color: var(--prune); text-align: center; font-size: .9rem; padding: .6rem 1rem; }

/* ------------------------------------------------------------------ en-tête */
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   en ferait le bloc conteneur du tiroir mobile (position: fixed), qui serait alors
   confiné à la hauteur de l'en-tête. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--beige-50) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(46, 35, 41, .3); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--prune); flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-size: 1.32rem; letter-spacing: .2em; }
.brand-tag { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); margin-top: 5px; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; justify-content: center; }
.main-nav > ul > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .68rem; white-space: nowrap; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.active { background: var(--rose-100); color: var(--prune); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 28px; }
.mega.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega h4 { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); margin: 0 0 .6rem; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: block; padding: .38rem .5rem; margin: 0 -.5rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.35; }
.mega a:hover { background: var(--rose-50); color: var(--prune); }
.mega .all { margin-top: .4rem; font-weight: 600; color: var(--mauve-700); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--prune); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--prune); color: var(--prune); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }

.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(46, 35, 41, .4); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.search-overlay.open { display: flex; }
.search-box { width: min(92vw, 680px); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; }
.search-box form { display: flex; gap: 8px; }
.search-box input { flex: 1; border: 0; font-size: 1.2rem; padding: 14px 16px; font-family: inherit; outline: none; background: transparent; }
.search-box .hints { padding: 8px 16px 14px; display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1280px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--beige-50); overflow-y: auto; padding: 16px 20px 40px; transform: translateX(100%); transition: transform .3s var(--ease); }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: .9rem 1rem; border-radius: 14px; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 4px 16px 12px; grid-auto-flow: row; background: transparent; }
  .mega.open { display: grid; transform: none; }
  .burger { display: inline-grid; }
  .nav-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
  .nav-quick a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; font-size: .84rem !important; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--prune); font-weight: 600; text-decoration: none; font-size: .95rem; }
  .nav-quick a .ic { color: var(--mauve); width: 20px; height: 20px; }
  .nav-quick .nav-quick-main { grid-column: 1 / -1; flex-direction: row; justify-content: center; font-size: .98rem !important; padding: 14px; background: var(--prune); border-color: var(--prune); color: #fff; }
  .nav-quick .nav-quick-team { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .nav-quick .nav-quick-main .ic { color: var(--rose); }
  .header-actions .hide-mobile { display: none; }
  .site-header .container { justify-content: space-between; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle at 30% 30%, var(--rose) 0%, transparent 62%); opacity: .55; filter: blur(10px); z-index: -1; }
.hero::after { content: ""; position: absolute; left: -12vw; bottom: -30vw; width: 50vw; height: 50vw; background: radial-gradient(circle, #EADFD0 0%, transparent 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; margin-bottom: .35em; letter-spacing: -.02em; }
.hero h1 em { color: var(--mauve); font-style: italic; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-baseline { margin-top: 2.2rem; font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius-xl) var(--radius-xl); background: linear-gradient(160deg, #EBD8E5 0%, #C9A6C2 48%, #8A6185 100%); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-card { position: absolute; left: 24px; bottom: 28px; background: var(--white); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 290px; font-size: .88rem; line-height: 1.4; }
.hero-card .dot svg { width: 20px; height: 20px; }
.hero-card .dot { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--rose-100); display: grid; place-items: center; color: var(--mauve); }
.hero-card strong { display: block; color: var(--prune); font-size: .95rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 380px; margin: 0 auto; aspect-ratio: 1; } .hero-card { left: 12px; } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-white { background: var(--white); }
.section-beige { background: var(--beige); }
.section-rose { background: var(--rose-50); }
.section-prune { background: var(--prune); color: #EFE4EC; }
.section-prune h2, .section-prune h3 { color: #fff; }
.section-prune .lead, .section-prune .muted { color: #D9C7D4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head .lead { margin: .8rem 0 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ cartes */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.card-link .stretched::after { content: ""; position: absolute; inset: 0; }
.card .card-meta { margin-top: auto; padding-top: 14px; font-size: .82rem; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--rose-100); color: var(--mauve); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card-soft { background: var(--beige-50); }

.path-card { padding: 28px; min-height: 230px; justify-content: space-between; }
.path-card .num { font-family: var(--font-serif); font-size: .95rem; color: var(--mauve); }
.path-card h3 { font-size: 1.45rem; margin-top: 2.2rem; }
.path-card.tone-1 { background: linear-gradient(160deg, #fff 0%, var(--rose-50) 100%); }
.path-card.tone-2 { background: linear-gradient(160deg, #fff 0%, #F6EFE6 100%); }
.path-card.tone-3 { background: linear-gradient(160deg, #fff 0%, var(--sage-50) 100%); }
.path-card.tone-4 { background: var(--prune); border-color: var(--prune); color: #EFE4EC; }
.path-card.tone-4 h3 { color: #fff; } .path-card.tone-4 p { color: #D9C7D4; } .path-card.tone-4 .num { color: var(--rose); }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--rose-100); color: var(--prune); border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
.chip-outline { background: transparent; border-color: var(--line-strong); }
.chip-sage { background: var(--sage-50); color: #3F5F4E; }
.chip-amber { background: var(--amber-50); color: #7A4F12; }
.chip-danger { background: var(--danger-50); color: var(--danger); }
.chip-lock::before { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 1 0-8 0v2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 1 0-8 0v2z'/%3E%3C/svg%3E") center/contain no-repeat; }
a.chip:hover, button.chip:hover { border-color: var(--mauve); color: var(--prune); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.chip { cursor: pointer; font-family: inherit; }
button.chip[aria-pressed="true"] { background: var(--prune); color: #fff; }

/* signes */
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.sign { padding: 30px 26px; border-right: 1px solid var(--line); }
.sign:last-child { border-right: 0; }
.sign svg { width: 34px; height: 34px; color: var(--mauve); margin-bottom: 18px; }
.sign h3 { font-size: 1.15rem; }
.sign p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .signs { grid-template-columns: 1fr 1fr; } .sign:nth-child(2) { border-right: 0; } .sign:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .signs { grid-template-columns: 1fr; } .sign { border-right: 0; border-bottom: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.figure-panel { border-radius: var(--radius-xl); background: linear-gradient(150deg, var(--rose-100), var(--beige)); padding: 36px; position: relative; overflow: hidden; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: .5rem 0 .5rem 2.1rem; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--mauve) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/70% no-repeat; }

.stat { padding: 8px 0; }
.stat-value { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--prune); line-height: 1; }
.section-prune .stat-value { color: #fff; }
.stat-label { font-size: .92rem; color: var(--muted); margin-top: .5rem; }

.quote-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.quote-card blockquote { margin: 0 0 1.2rem; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.55; color: var(--prune); }
.quote-card blockquote::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; color: var(--rose); margin-bottom: .3rem; }
.quote-card cite { font-style: normal; font-size: .88rem; color: var(--muted); }

.newsletter-band { border-radius: var(--radius-xl); background: var(--prune); color: #EFE4EC; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.newsletter-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(223, 198, 217, .25); }
.newsletter-band h2 { color: #fff; }
.newsletter-band form { display: flex; gap: 8px; background: rgba(255, 255, 255, .08); padding: 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }
.newsletter-band input { flex: 1; background: transparent; border: 0; color: #fff; padding: 0 16px; font: inherit; outline: none; min-width: 0; }
.newsletter-band input::placeholder { color: #CDB9C7; }
@media (max-width: 820px) { .newsletter-band { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ page header */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); position: relative; }
.page-head::before { content: ""; position: absolute; right: 0; top: 0; width: 40vw; height: 100%; background: radial-gradient(circle at 80% 20%, var(--rose-100), transparent 60%); z-index: -1; }
.page-head h1 { max-width: 20ch; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--prune); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ------------------------------------------------------------------ article */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px) 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 80px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .88rem; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.article-aside h4 { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); }
.article-aside ul { list-style: none; padding: 0; margin: 0 0 2rem; border-left: 1px solid var(--line); }
.article-aside li a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.article-aside li a:hover { color: var(--prune); }
.article-aside li a.current { color: var(--prune); border-left-color: var(--mauve); font-weight: 600; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .86rem; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.8rem 0 2.4rem; }
.article-meta b { color: var(--ink); font-weight: 600; }
.validation-pending { color: var(--amber); }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; max-height: none; } .article-aside.toc-only { display: none; } .article-layout > .aside-right { display: none; } }

.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.75rem; margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--mauve); }
.prose blockquote { margin: 1.8rem 0; padding: 1.3rem 1.5rem 1.3rem 1.6rem; background: var(--rose-50); border-left: 3px solid var(--mauve); border-radius: 0 var(--radius) var(--radius) 0; color: var(--prune); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--beige); font-weight: 600; color: var(--prune); }
.prose a { font-weight: 500; }
.prose strong { color: var(--prune-900); }
.prose > :first-child { margin-top: 0; }
.references { margin-top: 3rem; padding: 1.5rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; }
.references h3 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); }
.references ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.disclaimer { display: flex; gap: 14px; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--beige); font-size: .9rem; color: var(--muted); margin-top: 2rem; }
.disclaimer svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--mauve); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3rem; }
.pager a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--white); }
.pager a:hover { border-color: var(--mauve); }
.pager small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.pager .next { text-align: right; grid-column: 2; }
.locked-panel { text-align: center; padding: 48px 28px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--rose-50), var(--beige)); border: 1px solid var(--line); }

/* ------------------------------------------------------------------ formulaires */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-size: .88rem; font-weight: 600; color: var(--prune); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea, input[type="text"].input, input[type="email"].input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: .78rem .95rem; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23594653' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 2.4rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mauve); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 55%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--mauve); flex-shrink: 0; margin-top: 1px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.alert { padding: .9rem 1.1rem; border-radius: 12px; font-size: .93rem; border: 1px solid transparent; }
.alert-success { background: var(--sage-50); color: #2F5240; border-color: #CFE2D7; }
.alert-error { background: var(--danger-50); color: var(--danger); border-color: #F1CFCC; }
.alert-info { background: var(--rose-50); color: var(--prune); border-color: var(--rose-100); }
.alert-warn { background: var(--amber-50); color: #7A4F12; border-color: #F0DDB8; }

/* segmented / range */
.segmented { display: inline-flex; background: var(--beige); padding: 4px; border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: .55rem 1rem; border-radius: 999px; font: 500 .9rem var(--font-sans); color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--prune); box-shadow: var(--shadow-sm); }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font: 600 .85rem var(--font-sans); color: var(--muted); cursor: pointer; padding: 0; min-width: 0; }
.scale button:hover { border-color: var(--mauve); }
.scale button[aria-pressed="true"] { color: #fff; border-color: transparent; }
.scale-legend { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ questionnaire */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-progress { height: 6px; background: var(--rose-100); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--mauve)); width: 0; transition: width .4s var(--ease); }
.quiz-q { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--prune); line-height: 1.25; margin-bottom: .6rem; }
.quiz-help { color: var(--muted); margin-bottom: 1.6rem; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); font: 500 1rem var(--font-sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.quiz-option:hover { border-color: var(--mauve); transform: translateX(2px); }
.quiz-option .key { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--beige); display: grid; place-items: center; font-size: .82rem; color: var(--muted); }
.quiz-option[aria-pressed="true"] { border-color: var(--mauve); background: var(--rose-50); }
.quiz-option[aria-pressed="true"] .key { background: var(--mauve); color: #fff; }
.result-gauge { display: flex; gap: 6px; margin: 1.4rem 0; }
.result-gauge span { flex: 1; height: 10px; border-radius: 999px; background: var(--rose-100); }
.result-gauge span.on { background: var(--mauve); }

/* ------------------------------------------------------------------ annuaire */
.directory { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - var(--header-h) - 36px); min-height: 560px; border-top: 1px solid var(--line); }
.directory-panel { overflow-y: auto; background: var(--beige-50); border-right: 1px solid var(--line); }
.directory-filters { position: sticky; top: 0; background: var(--beige-50); padding: 20px; border-bottom: 1px solid var(--line); z-index: 2; display: grid; gap: 10px; }
.directory-list { padding: 12px 20px 40px; display: grid; gap: 10px; }
.pro-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pro-card:hover, .pro-card.active { border-color: var(--mauve); box-shadow: var(--shadow-sm); }
.pro-card h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin: 0 0 .2rem; color: var(--prune); }
.pro-card .loc { font-size: .85rem; color: var(--muted); }
.pro-card .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
#map { width: 100%; height: 100%; background: var(--beige); }
.leaflet-container { font-family: var(--font-sans) !important; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.olo-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--mauve); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(46, 35, 41, .35); }
@media (max-width: 900px) { .directory { grid-template-columns: 1fr; height: auto; } #map { height: 340px; order: -1; } .directory-panel { border-right: 0; } }

/* ------------------------------------------------------------------ recettes / programmes */
.recipe-card .thumb { height: 150px; margin: -26px -26px 20px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; overflow: hidden; }
.thumb-mediterraneen { background: linear-gradient(135deg, #F1E3C9, #D9A574); }
.thumb-anti-inflammatoire { background: linear-gradient(135deg, #E5EEDC, #8FAE7E); }
.thumb-low-carb { background: linear-gradient(135deg, #F3E8F0, #C49BBE); }
.thumb-keto { background: linear-gradient(135deg, #EDE6DF, #A88B78); }
.thumb svg { position: absolute; right: -14px; bottom: -14px; width: 130px; height: 130px; opacity: .35; color: #fff; }
.thumb .chip { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, .9); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); }
.facts span { display: inline-flex; gap: 6px; align-items: center; }
.recipe-layout { display: grid; grid-template-columns: 360px 1fr; gap: 48px; }
@media (max-width: 900px) { .recipe-layout { grid-template-columns: 1fr; } }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { display: flex; gap: 12px; padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.ingredients .qty { min-width: 82px; font-weight: 600; color: var(--prune); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--rose-100); color: var(--prune); display: grid; place-items: center; font-family: var(--font-serif); }
.nutri { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.nutri div { background: var(--beige); border-radius: 12px; padding: 12px 4px; }
.nutri b { display: block; font-family: var(--font-serif); font-size: 1.25rem; color: var(--prune); font-weight: 400; }
.nutri small { font-size: .72rem; color: var(--muted); }
.exercise { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.exercise .n { width: 48px; height: 48px; border-radius: 14px; background: var(--rose-100); color: var(--prune); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.2rem; }
.panel-warn { background: var(--amber-50); border: 1px solid #F0DDB8; border-radius: var(--radius); padding: 20px 22px; }
.panel-danger { background: var(--danger-50); border: 1px solid #F1CFCC; border-radius: var(--radius); padding: 20px 22px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--prune); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-sans); color: var(--mauve); transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 1.4rem; max-width: 70ch; }

/* événements */
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px; }
.event-date b { display: block; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; color: var(--prune); line-height: 1; }
.event-date small { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--mauve); }
@media (max-width: 640px) { .event { grid-template-columns: 72px 1fr; } .event > :last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ pied de page */
.site-footer { background: var(--prune-900); color: #CDBCC8; padding: 72px 0 28px; font-size: .92rem; margin-top: 0; }
.site-footer a { color: #E9DCE5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--font-sans); color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tag { color: var(--rose); }
.footer-brand p { margin-top: 1.2rem; max-width: 34ch; color: #B9A6B4; }
.socials { display: flex; gap: 10px; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .82rem; color: #A592A0; }
.footer-disclaimer { margin-top: 40px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); font-size: .86rem; color: #CDBCC8; display: flex; gap: 14px; align-items: center; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ toast / modal */
.toast-zone { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 460px); }
.toast { background: var(--prune-900); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-size: .93rem; animation: toast-in .3s var(--ease); }
.toast.error { background: var(--danger); }
.toast.success { background: #2F5240; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.modal-back { position: fixed; inset: 0; background: rgba(46, 35, 41, .45); backdrop-filter: blur(4px); z-index: 150; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: min(100%, 560px); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); padding: 28px; }
.modal-lg { width: min(100%, 920px); }
@keyframes fade { from { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); background: var(--white); }
.empty h3 { color: var(--prune); }

/* ------------------------------------------------------------------ guide imprimable */
.guide-cover { min-height: 70vh; display: grid; place-items: center; text-align: center; background: linear-gradient(160deg, var(--rose-50), var(--beige)); border-radius: var(--radius-xl); padding: 60px 24px; margin: 24px 0 48px; }
.guide-cover img { width: 84px; margin: 0 auto 24px; }
.guide-chapter { page-break-before: always; margin-top: 64px; }
.guide-article { margin: 40px 0; page-break-inside: avoid; }

@media print {
  .topbar, .site-header, .site-footer, .no-print, .article-aside, .pager, .toast-zone, .announcement { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .article-layout { display: block; }
  .prose blockquote { background: #f7f1f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  .guide-cover { min-height: 90vh; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section, .page-head { padding: 12px 0; }
}
