/* PharmaVoda — feuille de styles.
   Jetons en tête ; thème sombre automatique (prefers-color-scheme) et forcé par data-theme.
   Ne jamais mettre d'espace insécable avant « : » dans ce fichier (une espace insécable avant :root coupe le thème sombre). */

:root {
  --paper: #f4f7f5;
  --paper-2: #e9f0ec;
  --surface: #ffffff;
  --ink: #0e1726;
  --muted: #4f5b69;
  --line: #d7e0db;
  --line-2: #b8c6bf;
  --vert: #00875a;
  --vert-deep: #005c3d;
  --vert-ink: #ffffff;
  --mint: #dff3e9;
  --gel: #ff5a7a;
  --gel-soft: #ffe3e9;
  --gel-ink: #3d0a16;
  --sun: #ffc53d;
  --sun-soft: #fff4d6;
  --lav: #5b4bc4;
  --lav-soft: #ebe8fb;
  --led-bg: #08110d;
  --led: #34f39a;
  --wood: #c99a62;
  --wood-2: #a87a46;
  --brass: #d8b45c;
  --warn: #7a4f00;
  --warn-soft: #fff1d1;
  --ok: #0e7f57;
  --c-fifpl: #1d63c9;
  --c-dpc: #5b4bc4;
  --c-opco: #0e7f57;
  --c-cpf: #141d44;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 24px rgba(14, 23, 38, .07);
  --f-title: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-led: "DotGothic16", "JetBrains Mono", monospace;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1210;
    --paper-2: #111b18;
    --surface: #141f1c;
    --ink: #e9f0ec;
    --muted: #a3b2ab;
    --line: #24332e;
    --line-2: #35483f;
    --vert: #3fd69a;
    --vert-deep: #9cf0c9;
    --vert-ink: #04140d;
    --mint: #123128;
    --gel: #ff7d96;
    --gel-soft: #3a1720;
    --gel-ink: #3d0a16;
    --sun-soft: #3a2e10;
    --lav: #a99cff;
    --lav-soft: #221d44;
    --wood: #8a6237;
    --wood-2: #6d4a26;
    --warn: #f0c46a;
    --warn-soft: #33290f;
    --ok: #5fd39d;
    --c-fifpl: #78a8ff;
    --c-dpc: #a99cff;
    --c-opco: #5fd39d;
    --c-cpf: #c4cbf0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1210;
  --paper-2: #111b18;
  --surface: #141f1c;
  --ink: #e9f0ec;
  --muted: #a3b2ab;
  --line: #24332e;
  --line-2: #35483f;
  --vert: #3fd69a;
  --vert-deep: #9cf0c9;
  --vert-ink: #04140d;
  --mint: #123128;
  --gel: #ff7d96;
  --gel-soft: #3a1720;
  --sun-soft: #3a2e10;
  --lav: #a99cff;
  --lav-soft: #221d44;
  --wood: #8a6237;
  --wood-2: #6d4a26;
  --warn: #f0c46a;
  --warn-soft: #33290f;
  --ok: #5fd39d;
  --c-fifpl: #78a8ff;
  --c-dpc: #a99cff;
  --c-opco: #5fd39d;
  --c-cpf: #c4cbf0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--f-text);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-underline-offset: 3px; }
a:hover { color: var(--vert-deep); }
h1, h2, h3, h4 { font-family: var(--f-title); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.mono, code { font-family: var(--f-mono); font-size: .9em; }
.small { font-size: .88rem; color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gel); outline-offset: 2px; border-radius: 4px; }

/* ---------- Boutons, pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1rem/1 var(--f-text);
  padding: .85em 1.25em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  background: var(--vert); color: var(--vert-ink);
}
.btn:hover { color: var(--vert-ink); background: var(--vert-deep); transform: translateY(-1px); }
:root[data-theme="dark"] .btn:hover { color: var(--vert-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.gel { background: var(--gel); color: var(--gel-ink); }
.btn.gel:hover { background: var(--gel); filter: brightness(.95); color: var(--gel-ink); }
.btn.sm { padding: .55em .9em; font-size: .9rem; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pill {
  display: inline-flex; align-items: center; gap: .35em;
  font: 700 .74rem/1 var(--f-text); letter-spacing: .02em;
  padding: .42em .7em; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid currentColor; color: var(--muted); background: transparent;
}
.pill.fif { color: var(--c-fifpl); }
.pill.dpc { color: var(--c-dpc); }
.pill.opco { color: var(--c-opco); }
.pill.cpf { color: var(--c-cpf); }
.pill.mx, .pill.cv, .pill.el { color: var(--ink); border-color: var(--line-2); font-weight: 600; }
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ref { font-family: var(--f-mono); font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--vert); }

/* ---------- Barre de lecture (gélule) ---------- */
.readbar { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.readbar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--vert) 0 50%, var(--gel) 50% 100%); background-size: 200% 100%; background-position: calc(100% - var(--p, 0) * 100%) 0; }

/* ---------- En-tête ---------- */
.topline { background: var(--ink); color: var(--paper); font-size: .82rem; }
.topline .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topline a { color: inherit; text-decoration: none; }
.topline a:hover { text-decoration: underline; color: inherit; }
.topline .tl-r { display: flex; gap: 16px; align-items: center; }
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 40px; }
.brand b { font: 800 1.35rem/1 var(--f-title); letter-spacing: -.03em; }
.brand b span { color: var(--vert); }
.brand b em { font-style: normal; color: var(--gel); }
.brand small { display: block; font: 600 .7rem/1.2 var(--f-text); color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mainnav a { display: block; padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mainnav a:hover { background: var(--mint); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.basket-btn { position: relative; flex-shrink: 0; }
.basket-btn .n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gel); color: var(--gel-ink); font: 800 .75rem/22px var(--f-text); text-align: center; padding: 0 5px; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.basket-btn .n.on { transform: scale(1); }
.basket-btn .n.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--line-2); border-radius: 10px; padding: 8px 10px; color: var(--ink); font: 700 .9rem var(--f-text); cursor: pointer; }
.theme-toggle { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .mainnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; padding: 10px 16px 16px; }
  .mainnav a { padding: 12px; border-radius: 10px; }
  .basket-btn { order: 3; }
  .site-head .wrap { gap: 12px; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .basket-btn .lbl { display: none; }
  .topline .tl-l { display: none; }
}

/* ---------- Afficheur LED (bandeau) ---------- */
.led {
  background: var(--led-bg); color: var(--led); overflow: hidden; position: relative;
  font: 400 1.05rem/1 var(--f-led); letter-spacing: .08em; text-transform: uppercase;
  border-block: 3px solid #1b2a24;
}
.led::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 55%, rgba(0, 0, 0, .55) 56%) 0 0 / 4px 4px; }
.led-track { display: flex; width: max-content; gap: 0; padding: 12px 0; animation: led 60s linear infinite; text-shadow: 0 0 6px rgba(52, 243, 154, .75); }
.led-track span { padding: 0 2.2em; white-space: nowrap; }
.led-track span::before { content: "+"; margin-right: 2.2em; color: var(--gel); text-shadow: 0 0 6px rgba(255, 90, 122, .8); }
.led:hover .led-track { animation-play-state: paused; }
@keyframes led { to { transform: translateX(-50%); } }

/* ---------- Accueil ---------- */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { font: 700 .8rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--vert); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 26px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--vert) 50%, var(--gel) 50%); }
.hero h1 .hl { position: relative; white-space: nowrap; z-index: 0; }
.hero h1 .hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .38em; background: var(--sun); z-index: -1; border-radius: 3px; transform-origin: 0 50%; }
.js .hero h1 .hl::after { transform: scaleX(0); animation: hl .9s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes hl { to { transform: scaleX(1); } }
:root[data-theme="dark"] .hero h1 .hl::after { background: #6b5110; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl::after { background: #6b5110; } }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.hero .proof li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: 6px; }
.js .rise { opacity: 0; translate: 0 18px; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* Ordonnance de formation */
.rx {
  background: var(--surface); border-radius: 6px; padding: 28px 28px 24px; position: relative;
  box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: rotate(1.5deg);
  font-size: .95rem;
}
.rx::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg, var(--vert) 0 70%, var(--gel) 70%); border-radius: 6px 6px 0 0; }
.rx-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-2); padding-bottom: 12px; margin-bottom: 14px; }
.rx-head b { font: 800 1.05rem var(--f-title); }
.rx-head small { display: block; color: var(--muted); font-size: .78rem; }
.rx-sym { font: 800 2.2rem/1 var(--f-title); color: var(--vert); }
.rx ol { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: rx; }
.rx li { counter-increment: rx; padding: 9px 0 9px 34px; position: relative; border-bottom: 1px solid var(--line); }
.rx li::before { content: counter(rx); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--vert-deep); font: 800 .78rem/22px var(--f-mono); text-align: center; }
.rx li b { display: block; font-weight: 700; }
.rx li span { color: var(--muted); font-size: .85rem; font-family: var(--f-mono); }
.js .rx li { clip-path: inset(0 100% 0 0); animation: write .7s cubic-bezier(.6, 0, .3, 1) forwards; animation-delay: calc(.6s + var(--i) * .55s); }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.rx-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.rx-sign { font: 600 1.7rem/1 var(--f-hand); color: var(--vert-deep); }
.stamp {
  border: 3px solid var(--gel); color: var(--gel); border-radius: 8px; padding: 6px 10px;
  font: 800 .78rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-align: center; transform: rotate(-8deg);
}
.js .stamp { opacity: 0; transform: rotate(-8deg) scale(2.2); animation: stamp .35s 3.1s cubic-bezier(.5, 0, .8, .4) forwards; }
@keyframes stamp { to { opacity: .92; transform: rotate(-8deg) scale(1); } }

/* Gélules flottantes de l'accueil */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.floaters i { position: absolute; width: 46px; height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--vert) 50%, var(--mint) 50%); opacity: .35; animation: float 14s ease-in-out infinite; }
.floaters i:nth-child(2) { left: 46%; top: 12%; transform: rotate(35deg); animation-delay: -4s; background: linear-gradient(90deg, var(--gel) 50%, var(--gel-soft) 50%); }
.floaters i:nth-child(1) { left: 4%; top: 78%; transform: rotate(-20deg); }
.floaters i:nth-child(3) { right: 3%; top: 8%; transform: rotate(70deg); animation-delay: -8s; width: 30px; height: 12px; }
.floaters i:nth-child(4) { left: 40%; bottom: 6%; transform: rotate(-60deg); animation-delay: -2s; background: linear-gradient(90deg, var(--sun) 50%, var(--sun-soft) 50%); }
@keyframes float { 50% { translate: 0 -22px; rotate: 25deg; } }

/* Sections */
.section { padding: 76px 0; }
.section.tint { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark a { color: var(--led); }
.section.dark .small, .section.dark .muted { color: #b5c3bd; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head p { max-width: 40em; color: var(--muted); margin: 0; }
.section.dark .sec-head p { color: #b5c3bd; }
.sec-title { position: relative; display: inline-block; }
.sec-title::after { content: ""; display: block; height: 6px; width: 64px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--vert) 50%, var(--gel) 50%); transform-origin: 0 50%; }
.js .sec-title::after { transform: scaleX(0); transition: transform .8s .15s cubic-bezier(.6, 0, .2, 1); }
.js .sec-title.in::after { transform: none; }
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1), transform .25s ease-out, box-shadow .25s; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--surface); padding: 24px 20px; }
.stats b { display: block; font: 800 2.6rem/1 var(--f-title); color: var(--vert); letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Le droguier : tiroirs des thèmes */
.droguier {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 18px; border-radius: 18px;
  background: linear-gradient(180deg, var(--wood) 0%, var(--wood-2) 100%);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), var(--shadow);
}
.drawer {
  position: relative; display: block; text-decoration: none; color: #2b1b0b;
  background: linear-gradient(180deg, #f6ead6, #ead6b5); border-radius: 8px; padding: 18px 14px 16px; min-height: 152px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 2px 0 rgba(0, 0, 0, .18);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
:root[data-theme="dark"] .drawer { background: linear-gradient(180deg, #3a2c1d, #2c2015); color: #f6ead6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drawer { background: linear-gradient(180deg, #3a2c1d, #2c2015); color: #f6ead6; } }
.drawer:hover, .drawer:focus-visible { transform: translateY(-6px) scale(1.03); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 16px 26px rgba(0, 0, 0, .28); color: inherit; z-index: 1; }
.drawer .plate { display: block; margin: 0 auto 12px; width: max-content; max-width: 100%; padding: 4px 10px; border-radius: 4px; background: linear-gradient(180deg, #f3dc9a, var(--brass)); color: #3a2a06; font: 700 .72rem/1.2 var(--f-mono); letter-spacing: .06em; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.drawer b { display: block; font: 700 1.02rem/1.2 var(--f-title); text-align: center; }
.drawer .knob { display: block; width: 18px; height: 18px; margin: 12px auto 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, var(--brass) 45%, #8a6a1c); box-shadow: 0 2px 2px rgba(0, 0, 0, .35); transition: transform .4s; }
.drawer:hover .knob { transform: rotate(180deg) scale(1.15); }
.drawer .count { position: absolute; top: 8px; right: 10px; font: 700 .72rem var(--f-mono); opacity: .7; }
.drawer.empty { opacity: .6; }
.js .droguier .drawer { opacity: 0; translate: 0 -14px; }
.js .droguier.in .drawer { animation: drop .55s cubic-bezier(.3, 1.4, .5, 1) forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes drop { to { opacity: 1; translate: 0 0; } }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 800 1rem var(--f-mono); color: var(--gel); }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--vert-deep); margin-bottom: 14px; }
.icon-badge svg { width: 26px; height: 26px; }

/* Deux financements */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fund { border-radius: var(--radius); padding: 26px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--c, var(--vert)); }
.fund.fif { --c: var(--c-fifpl); }
.fund.dpc { --c: var(--c-dpc); }
.fund.opco { --c: var(--c-opco); }
.fund.cpf { --c: var(--c-cpf); }
.fund h3 { color: var(--c); }
.fund dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; }
.fund dt { font-weight: 700; }
.fund dd { margin: 0; color: var(--muted); }

/* Méthode en trois prises */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.steps li { position: relative; padding: 24px 22px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: st; }
.steps li::before { content: counter(st); font: 800 2.4rem/1 var(--f-title); color: var(--gel); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 1.1rem; }

/* ---------- Catalogue (rayonnage) ---------- */
.page-head { padding: 44px 0 34px; background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.page-head .crumbs a { color: inherit; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22em; }
.page-head .lead { font-size: 1.12rem; color: var(--muted); max-width: 44em; margin: 0; }
.page-head .deco { position: absolute; right: -40px; top: 50%; width: 260px; translate: 0 -50%; opacity: .12; pointer-events: none; }
.toolbar { position: sticky; top: 70px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 0; }
.toolbar .wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"] { flex: 1 1 260px; font: inherit; padding: 10px 14px; border: 2px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); }
.toolbar select { font: inherit; font-size: .92rem; padding: 9px 12px; border: 2px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); max-width: 100%; }
.seg { display: inline-flex; border: 2px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { font: 700 .88rem var(--f-text); border: 0; background: none; color: var(--ink); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.count-line { margin: 18px 0 10px; color: var(--muted); font-size: .92rem; }
.shelf { list-style: none; padding: 0; margin: 0 0 40px; border-top: 2px solid var(--ink); }
.shelf-group { margin-top: 26px; }
.shelf-group > h2 { font-size: 1.15rem; display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.shelf-group > h2 .ref { font-size: .8rem; }
.row {
  display: grid; grid-template-columns: 82px 1fr auto auto; gap: 16px; align-items: center;
  padding: 14px 10px; border-bottom: 1px solid var(--line); position: relative; transition: background .2s;
}
.row:hover { background: var(--surface); }
.row .ref { font-size: .82rem; }
.row h3 { font: 700 1.02rem/1.3 var(--f-text); margin: 0 0 4px; letter-spacing: 0; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row h3 a:hover { color: var(--vert); }
.row .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.row .dur { font: 600 .85rem var(--f-mono); color: var(--muted); white-space: nowrap; text-align: right; }
.row .price { font: 700 1rem var(--f-mono); white-space: nowrap; text-align: right; min-width: 90px; }
.row .price small { display: block; font: 500 .72rem var(--f-text); color: var(--muted); }
.row .add { position: relative; z-index: 2; }
.js .shelf .row { opacity: 0; transform: translateX(-12px); animation: slidein .45s forwards; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes slidein { to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .row .ref { grid-column: 1 / -1; }
  .row .dur { text-align: left; }
  .toolbar { position: static; }
}
.add-btn {
  font: 700 .8rem var(--f-text); border: 2px solid var(--vert); color: var(--vert); background: var(--surface);
  border-radius: 999px; padding: 6px 10px; cursor: pointer; white-space: nowrap; position: relative; z-index: 2;
}
.add-btn[aria-pressed="true"] { background: var(--vert); color: var(--vert-ink); }
.empty-msg { padding: 30px; text-align: center; color: var(--muted); border: 2px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- Monographie (page formation) ---------- */
.mono-head { padding: 40px 0 0; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mono-head .grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: end; }
.mono-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.mono-head .acc { font-size: 1.15rem; color: var(--muted); }
.box { /* boîte de médicament : la fiche technique */
  background: var(--surface); border-radius: 14px 14px 0 0; border: 1px solid var(--line); border-bottom: 0;
  padding: 0; overflow: hidden; box-shadow: var(--shadow);
}
.box-top { background: var(--vert); color: var(--vert-ink); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.box-top .ref { color: inherit; font-size: .9rem; }
.box-top b { font: 800 1.5rem/1 var(--f-mono); }
.box dl { margin: 0; padding: 14px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .92rem; }
.box dt { color: var(--muted); }
.box dd { margin: 0; font-weight: 700; }
.box .acts { display: flex; gap: 8px; padding: 0 18px 18px; flex-wrap: wrap; }
.mono-body { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 40px 0 60px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 12px; text-decoration: none; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--vert); }
.mono-sec { margin-bottom: 40px; }
.mono-sec > h2 { font-size: 1.4rem; display: flex; gap: 12px; align-items: baseline; }
.mono-sec > h2 .n { font: 700 .8rem var(--f-mono); color: var(--gel); }
.objs { list-style: none; padding: 0; display: grid; gap: 10px; }
.objs li { padding: 12px 14px 12px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; position: relative; }
.objs li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--vert) 50%, var(--gel) 50%); }
.prog { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--mint); }
.prog li { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 10px 0 10px 18px; position: relative; border-bottom: 1px dashed var(--line); }
.prog li::before { content: ""; position: absolute; left: -8px; top: 17px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--vert); }
.prog li.cv::before { border-color: var(--gel); }
.prog .t { font-size: .98rem; }
.prog .m { font: 600 .82rem var(--f-mono); color: var(--muted); white-space: nowrap; }
.prog .tag { font: 700 .66rem var(--f-mono); padding: 2px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 2px; background: var(--mint); color: var(--vert-deep); }
.prog li.cv .tag { background: var(--gel-soft); color: var(--gel-ink); }
:root[data-theme="dark"] .prog li.cv .tag { color: var(--gel); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font: 700 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: .95rem; }
.note { padding: 14px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); border-left: 4px solid var(--warn); font-size: .95rem; }
.note.info { background: var(--mint); border-left-color: var(--vert); }
.fundtable { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.fundtable th, .fundtable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fundtable th { font: 700 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper-2); }
.fundtable td.n { font-family: var(--f-mono); white-space: nowrap; text-align: right; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.next-prev { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; flex-wrap: wrap; }
.next-prev a { text-decoration: none; max-width: 48%; }
.next-prev small { display: block; color: var(--muted); }
@media (max-width: 900px) {
  .mono-head .grid, .mono-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .box { border-radius: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
}

/* ---------- FAQ ---------- */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 16px 40px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 22px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--vert) 50%, var(--line-2) 50%); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(90deg); background: linear-gradient(90deg, var(--gel) 50%, var(--line-2) 50%); }
.faq-list details > div { padding: 0 0 18px; color: var(--muted); }
.faq-list details > div p:last-child { margin: 0; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.faq-tabs button { font: 700 .88rem var(--f-text); border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.faq-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq-group h2 { font-size: 1.3rem; margin-top: 30px; }
.lexique { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 22px; }
.lexique dt { font: 700 .95rem var(--f-mono); color: var(--vert); }
.lexique dd { margin: 0 0 10px; font-size: .92rem; color: var(--muted); }

/* ---------- Missions ---------- */
.mission { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.mission .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--mint); color: var(--vert-deep); display: grid; place-items: center; }
.mission .ic svg { width: 34px; height: 34px; }
.mission h2 { font-size: 1.35rem; }
.mission .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: .88rem; }
.chip:hover { border-color: var(--vert); color: var(--vert); }
.chip .ref { font-size: .74rem; }

/* ---------- Simulateur (pilulier) ---------- */
.sim { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.sim-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 18px; background: var(--surface); }
.sim-form legend { font: 700 1rem var(--f-title); padding: 0 6px; }
.sim-form label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.sim-form input[type="radio"], .sim-form input[type="checkbox"] { accent-color: var(--vert); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.sim-list { max-height: 460px; overflow: auto; border-top: 1px solid var(--line); margin-top: 8px; }
.sim-list label { border-bottom: 1px solid var(--line); padding: 8px 2px; font-size: .92rem; }
.sim-list .ref { margin-right: 6px; }
.sim-out { position: sticky; top: 96px; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 24px; }
.sim-out h2 { font-size: 1.2rem; color: var(--paper); }
.sim-out .big { font: 800 2.6rem/1 var(--f-title); color: var(--led); }
.sim-out dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .92rem; margin: 16px 0; }
.sim-out dd { margin: 0; font-family: var(--f-mono); text-align: right; }
.sim-out .small { color: #b5c3bd; }
.pilulier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 16px 0 6px; }
.pilulier i { height: 34px; border-radius: 8px; background: #22302b; position: relative; overflow: hidden; }
.pilulier i::after { content: ""; position: absolute; inset: auto 0 0 0; height: var(--f, 0%); background: linear-gradient(180deg, var(--gel), var(--led)); transition: height .6s cubic-bezier(.3, 1.3, .5, 1); transition-delay: calc(var(--i) * 60ms); }
.pilulier-l { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font: 600 .66rem var(--f-mono); color: #8fa59c; text-align: center; }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } .sim-out { position: static; } }

/* ---------- Demande ---------- */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.req form { display: grid; gap: 14px; }
.req label { display: grid; gap: 5px; font-weight: 700; font-size: .92rem; }
.req input, .req select, .req textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 2px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); }
.req textarea { min-height: 120px; }
.req-items { list-style: none; padding: 0; margin: 0 0 14px; }
.req-items li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req-items button { background: none; border: 0; color: var(--gel); cursor: pointer; font: 700 .85rem var(--f-text); }
.out-text { white-space: pre-wrap; font: .88rem/1.5 var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 360px; overflow: auto; }
.req form .sec-title { margin: 0; }
.req-alt { margin: 22px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 16px; }
.req-alt summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.req-alt[open] { padding-bottom: 16px; }
.req-send { margin: 4px 0 0; }
.req-send .btn { width: 100%; justify-content: center; }
.req input:focus-visible, .req select:focus-visible, .req textarea:focus-visible { outline: 3px solid var(--vert); outline-offset: 1px; border-color: var(--vert); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); background: var(--mint); border-radius: 10px; padding: 12px 14px; }
.form-msg.err { color: var(--ink); background: var(--gel-soft); border-left: 4px solid var(--gel); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } }

/* ---------- Équipe ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.25); transition: filter .4s, transform .6s; }
.person:hover img { filter: none; transform: scale(1.03); }
.person .ini { aspect-ratio: 1; display: grid; place-items: center; background: var(--mint); color: var(--vert-deep); font: 800 3rem var(--f-title); }
.person div { padding: 14px 16px 18px; }
.person h3 { margin: 0 0 4px; font-size: 1.05rem; }
.person p { margin: 0; color: var(--muted); font-size: .9rem; }
.dv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.dv-grid li { position: relative; }
.dv-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.dv-grid .hand-name { display: block; text-align: center; font: 600 1.35rem/1.1 var(--f-hand); color: var(--vert-deep); margin-top: 4px; }
.js .dv-grid li { opacity: 0; transform: scale(.85); transition: opacity .5s, transform .5s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--i) * 25ms); }
.js .dv-grid.in li { opacity: 1; transform: none; }
.video-frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; }

/* ---------- Légal ---------- */
.legal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.legal summary { cursor: pointer; padding: 18px 20px; font: 700 1.15rem var(--f-title); }
.legal-body { padding: 0 20px 20px; }
.legal-body h3 { font-size: 1rem; margin-top: 1.4em; }
.legal-body .todo { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 10px 12px; }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--ink); color: #c9d6d0; padding: 56px 0 26px; margin-top: 0; font-size: .92rem; }
.site-foot a { color: #e9f0ec; text-decoration: none; }
.site-foot a:hover { color: var(--led); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-grid h2 { font: 700 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: #8fa59c; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-foot .brand { color: #fff; }
.site-foot .brand b span { color: var(--led); }
.site-foot .brand small { color: #8fa59c; }
.foot-legal { border-top: 1px solid #24332e; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #8fa59c; }
.qualiopi { background: #fff; border-radius: 8px; padding: 6px; width: 120px; margin-top: 14px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Divers ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--vert); color: var(--vert-ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: .3s; z-index: 40; }
.to-top.on { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 120px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 70; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: var(--mint); border-radius: 2px; }
.timeline li { padding: 0 0 18px 34px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 4px solid var(--vert); }
.timeline b { display: block; font-family: var(--f-mono); font-size: .85rem; color: var(--vert); }
.theme-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.theme-list li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.theme-list .ref { font-size: .85rem; }
.theme-list .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 860px) {
  .hero .wrap, .split, .duo, .split-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .droguier { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 10px; }
  .rx { transform: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 420px) { .droguier { grid-template-columns: 1fr 1fr; } .drawer { min-height: 130px; padding: 14px 8px; } .drawer b { font-size: .92rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise, .js .reveal, .js .droguier .drawer, .js .shelf .row, .js .dv-grid li { opacity: 1; transform: none; translate: none; }
  .js .rx li { clip-path: none; }
  .js .stamp { opacity: .92; transform: rotate(-8deg); }
  .js .hero h1 .hl::after, .js .sec-title::after { transform: none; }
  .led-track { animation: none; }
}
@media print {
  .site-head, .topline, .led, .site-foot, .toolbar, .to-top, .readbar, .box .acts, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}
.mono-head .crumbs { margin-bottom: 18px; }

/* ---------- Animations ajoutées le 20/11/2026 ----------
   Logo qui s'assemble, titre mot par mot, gélules en parallaxe, gélule qui vole vers « Ma demande »,
   ligne de pouls, tiroirs en vague, inclinaison 3D, programme qui se remplit, reflet des boutons,
   fondu entre les pages. Tout est coupé par prefers-reduced-motion (bloc final). */

/* Logo : les deux moitiés de la gélule se rejoignent à l'ouverture et au survol */
.brand .cl, .brand .cr { transform-box: fill-box; }
.js .brand .cl { animation: capL 1s .2s cubic-bezier(.6, 0, .2, 1) both; }
.js .brand .cr { animation: capR 1s .2s cubic-bezier(.6, 0, .2, 1) both; }
.js .brand .cd { transform-origin: 50px 13px; animation: capDot .6s 1s cubic-bezier(.3, 1.6, .5, 1) both; }
.brand:hover .cl { animation: capL .8s cubic-bezier(.6, 0, .2, 1) both; }
.brand:hover .cr { animation: capR .8s cubic-bezier(.6, 0, .2, 1) both; }
.brand:hover .cd { animation: capDot .5s .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes capL { 0% { transform: translateX(-9px) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes capR { 0% { transform: translateX(9px) rotate(8deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes capDot { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Titre d'accueil mot par mot */
.hero h1.words .w { display: inline-block; }
.js .hero h1.words .w { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(4px); animation: word .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.15s + var(--w) * 90ms); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.js .hero h1.words .hl::after { animation-delay: 1.05s; }

/* Gélules flottantes : parallaxe souris et défilement (--mx, --my, --sy posés par app.js) */
.floaters i { translate: calc(var(--mx, 0) * var(--k, 18px)) calc(var(--my, 0) * var(--k, 18px) + var(--sy, 0) * -0.15px); transition: translate .4s ease-out; animation: bob 7s ease-in-out infinite; }
.floaters i:nth-child(2) { --k: -26px; animation-duration: 9s; }
.floaters i:nth-child(3) { --k: 32px; animation-duration: 6s; }
.floaters i:nth-child(4) { --k: -14px; animation-duration: 11s; }
.floaters i:nth-child(n+5) { width: 22px; height: 9px; border-radius: 5px; opacity: .3; }
.floaters i:nth-child(5) { left: 22%; top: 18%; --k: 40px; background: linear-gradient(90deg, var(--lav) 50%, var(--lav-soft) 50%); }
.floaters i:nth-child(6) { left: 62%; top: 86%; --k: -38px; transform: rotate(25deg); }
.floaters i:nth-child(7) { right: 30%; top: 4%; --k: 22px; transform: rotate(-45deg); background: linear-gradient(90deg, var(--gel) 50%, var(--gel-soft) 50%); }
@keyframes bob { 50% { rotate: 18deg; scale: 1.08; } }

/* Gélule qui vole vers « Ma demande » */
.fly-pill { position: fixed; left: 0; top: 0; z-index: 90; width: 30px; height: 12px; border-radius: 6px; pointer-events: none; background: linear-gradient(90deg, var(--vert) 50%, var(--gel) 50%); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.basket-btn.got { animation: gulp .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes gulp { 40% { transform: scale(1.12) rotate(-3deg); } }

/* Ligne de pouls au-dessus des chiffres */
.pulse { display: block; width: 100%; height: 46px; margin: -10px 0 8px; overflow: visible; }
.pulse path { fill: none; stroke: var(--gel); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; filter: drop-shadow(0 0 4px rgba(255, 90, 122, .45)); }
.js .pulse.in path, .no-js .pulse path { animation: pulse 3.2s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes pulse { 0% { stroke-dashoffset: 1600; } 55% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Droguier : après la chute, chaque tiroir s'entrouvre en vague ; au survol, il sort et montre le nombre de formations */
.drawer::after { content: ""; position: absolute; inset: auto 8px -2px 8px; height: 0; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); transition: height .35s; }
.drawer:hover::after { height: 12px; }
.js .droguier.in .drawer { animation: drop .55s cubic-bezier(.3, 1.4, .5, 1) forwards, ajar 1.1s ease-in-out forwards; animation-delay: calc(var(--i) * 60ms), calc(.9s + var(--i) * 90ms); }
@keyframes ajar { 0%, 100% { translate: 0 0; } 45% { translate: 0 -7px; } }
.drawer .count { transition: transform .3s, opacity .3s; }
.drawer:hover .count { transform: scale(1.6); opacity: 1; }

/* Inclinaison 3D au pointeur (--rx, --ry posés par app.js) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .25s; will-change: transform; }
.tilt:hover { box-shadow: 0 18px 40px rgba(14, 23, 38, .16); }
.rx.tilt { transform: perspective(900px) rotate(1.5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Signature de l'ordonnance tracée à la main */
.js .rx-sign { clip-path: inset(0 100% 0 0); animation: write 1.1s 2.7s cubic-bezier(.6, 0, .3, 1) forwards; }

/* Programme d'une fiche : le fil se remplit avec le défilement (--fill posé par app.js) */
.prog { position: relative; }
.prog::after { content: ""; position: absolute; left: -3px; top: 0; width: 3px; height: calc(var(--fill, 0) * 100%); background: linear-gradient(180deg, var(--vert), var(--gel)); border-radius: 2px; transition: height .15s linear; }
.prog li { transition: background .3s; }
.prog li.done::before { background: var(--vert); }
.prog li.cv.done::before { background: var(--gel); }

/* Reflet sur les boutons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .7s ease; }

/* Pictogrammes qui se dessinent à l'apparition */
.js .reveal .icon-badge svg *, .js .mission .ic svg * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.2s .2s ease; }
.js .reveal.in .icon-badge svg *, .js .mission.in .ic svg * { stroke-dashoffset: 0; }
.mission .ic { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.mission:hover .ic { transform: rotate(-8deg) scale(1.08); }

/* Grande gélule des en-têtes de page : tourne avec le défilement */
.page-head .deco { transform: rotate(calc(var(--sy, 0) * .08deg)); transition: transform .2s linear; }
.page-head .deco svg { animation: decoIn 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes decoIn { from { opacity: 0; transform: scale(.6) rotate(-30deg); } }

/* Fondu entre les pages */
.js body { animation: pageIn .45s ease both; }
body.leaving { opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .22s ease; }
@keyframes pageIn { from { opacity: 0; } }

/* Afficheur LED : léger scintillement */
.led-track { animation: led 60s linear infinite, flicker 6s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 73% { opacity: .9; } 74% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero h1.words .w { opacity: 1; transform: none; filter: none; }
  .js .rx-sign { clip-path: none; }
  .pulse path { stroke-dashoffset: 0; }
  .tilt, .rx.tilt { transform: none; }
  .floaters i { translate: none; }
  .js .reveal .icon-badge svg *, .js .mission .ic svg * { stroke-dashoffset: 0; }
  .page-head .deco { transform: none; }
  .js body { animation: none; }
}

/* Mobile : le surlignage du titre passe à la ligne */
@media (max-width: 640px) {
  .hero h1 .hl { white-space: normal; background: linear-gradient(var(--sun), var(--sun)) 0 88% / 100% .34em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .hero h1 .hl::after { display: none; }
}
@media (max-width: 640px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background-image: linear-gradient(#6b5110, #6b5110); } }
@media (max-width: 640px) { :root[data-theme="dark"] .hero h1 .hl { background-image: linear-gradient(#6b5110, #6b5110); } }
