/* Pharmacie du Plateau — fond blanc, orange & vert, vanilla CSS */
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  /* Texte : vert très foncé (lisible) */
  --ink: #14391f;
  --ink-2: #1f5130;
  --muted: #4d6a57;
  /* Fonds : blanc, avec de légères teintes vertes / orangées pour les zones secondaires */
  --paper: #ffffff;
  --white: #ffffff;
  --mist: #f1f8f3;
  --warm: #fff5ea;
  /* Marque : orange et vert */
  --orange: #f58220;
  --orange-2: #e06f0c;
  --orange-text: #b84a08;
  --pharmacy-green: #15803d;
  --green-deep: #14532d;
  --line: rgba(20, 83, 45, .16);
  --glass: rgba(255, 255, 255, .92);
  --shadow-soft: 0 8px 26px rgba(20, 83, 45, .08);
  --shadow: 0 18px 50px rgba(20, 83, 45, .14);
  --content: 1180px;
  --narrow: 760px;
  --header-height: 72px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --time-fast: 180ms;
  --time-base: 320ms;
  --ease: cubic-bezier(.22, .72, .18, 1);
  --display-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body-font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6f2e9;
  --ink-2: #c4dccb;
  --muted: #a3bba9;
  --paper: #0f1d14;
  --white: #162a1c;
  --mist: #1b3324;
  --warm: #2b2013;
  --orange: #f58220;
  --orange-2: #ff9a40;
  --orange-text: #ffa35a;
  --pharmacy-green: #5fd07f;
  --green-deep: #7fe09b;
  --line: rgba(230, 242, 233, .16);
  --glass: rgba(22, 42, 28, .94);
  --shadow-soft: 0 8px 26px rgba(0, 0, 0, .2);
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--body-font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--ink-2); text-underline-offset: .18em; }
a:hover { color: var(--pharmacy-green); }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: color-mix(in srgb, var(--orange) 35%, white); }
:focus-visible { outline: 3px solid var(--pharmacy-green); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 12px 16px; transform: translateY(-160%); border-radius: 12px; color: #1d1200; background: var(--orange); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), var(--narrow)); margin-inline: auto; }
.small { font-size: 0.82rem; line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow, .label { display: inline-block; color: var(--orange-text); font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.lead { max-width: 62ch; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.65; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Navigation */
.site-header { position: sticky; z-index: 90; top: 0; height: var(--header-height); border-bottom: 3px solid var(--orange); background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { width: min(calc(100% - 48px), 1380px); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 40px; width: 40px; height: 40px; color: var(--pharmacy-green); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-name { font: 700 .95rem/1.2 var(--display-font); color: var(--green-deep); letter-spacing: 0; }
.brand-country { margin-top: 3px; color: var(--orange-text); font-size: 0.8rem; font-weight: 600; letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.4vw, 22px); margin-left: auto; }
.main-nav > a, .nav-disclosure summary { position: relative; padding: 8px 0; color: var(--ink-2); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.main-nav > a::after { content: ""; position: absolute; right: 0; bottom: 1px; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--orange); transition: transform var(--time-base) var(--ease); }
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav > a[aria-current="page"] { color: var(--orange-text); }
.nav-disclosure { position: relative; list-style: none; }
.nav-disclosure summary { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure summary::after { content: "⌄"; font-size: 0.8rem; }
.nav-popover { position: absolute; z-index: 20; top: calc(100% + 8px); right: -20px; display: grid; min-width: 210px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.nav-popover a { padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-size: 0.88rem; text-decoration: none; }
.nav-popover a:hover { color: var(--green-deep); background: var(--warm); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle, .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: background var(--time-fast) ease, transform var(--time-fast) ease; }
.theme-toggle:hover, .nav-toggle:hover { transform: rotate(-6deg); background: var(--warm); }
.theme-toggle svg { width: 19px; height: 19px; }
.nav-toggle { display: none; border-radius: 13px; }
.nav-toggle span { display: block; width: 17px; height: 1.5px; margin: 2px 0; background: currentColor; }

/* Buttons, chips and global states */
.button { position: relative; isolation: isolate; display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; overflow: hidden; border: 1px solid transparent; border-radius: 999px; color: #1d1200; background: var(--orange); font-size: 0.92rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform var(--time-base) var(--ease), background var(--time-fast) ease, border-color var(--time-fast) ease, color var(--time-fast) ease; }
.button:hover { color: #1d1200; background: var(--orange-2); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.button-secondary { color: var(--pharmacy-green); background: transparent; border: 2px solid var(--pharmacy-green); }
.button-secondary:hover { color: #fff; background: var(--pharmacy-green); border-color: var(--pharmacy-green); }
.button-dark { color: #fff; background: var(--pharmacy-green); }
.button-dark:hover { color: #fff; background: var(--green-deep); }
.button-small { min-height: 40px; padding: 9px 16px; font-size: 0.85rem; }
.button-arrow { width: 18px; height: 18px; transition: transform var(--time-base) var(--ease); }
.button:hover .button-arrow { transform: translateX(4px); }
.button.is-rippling::after { content: ""; position: absolute; z-index: -1; left: var(--ripple-x); top: var(--ripple-y); width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transform: translate(-50%,-50%) scale(0); animation: ripple 650ms ease-out forwards; }
@keyframes ripple { to { transform: translate(-50%,-50%) scale(28); opacity: 0; } }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); border-radius: 999px; color: var(--ink); background: var(--warm); font-size: 0.82rem; font-weight: 700; line-height: 1.35; }
.chip-dark { color: var(--green-deep); background: var(--mist); border-color: color-mix(in srgb, var(--pharmacy-green) 35%, transparent); }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--pharmacy-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pharmacy-green) 15%, transparent); }
.status-dot.is-closed { background: #b84b42; box-shadow: 0 0 0 4px rgba(184,75,66,.13); }
.status-dot.is-unknown { background: var(--muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 13%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--mist); font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
.badge-new { color: #14532d; background: #e3f4e7; border-color: #a9d8b5; animation: badge-beat 2.2s ease-in-out infinite; }
.badge-pending { color: #8a3d06; background: #fff0e0; border-color: #f6c79a; }
.badge-in-progress { color: #14532d; background: #e6f4ea; border-color: #b5dcc0; }
.badge-closed { color: var(--muted); background: var(--mist); }
@keyframes badge-beat { 50% { box-shadow: 0 0 0 4px rgba(21,128,61,.12); } }

/* Sections and editorial layout */
main { min-height: 68vh; overflow-x: clip; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.section-heading > div { max-width: 720px; }
.section-heading p { max-width: 58ch; margin: 12px 0 0; color: var(--muted); }
.display-title { margin: 14px 0 18px; font: 600 clamp(1.8rem, 3.4vw, 2.6rem)/1.18 var(--display-font); letter-spacing: -.012em; text-wrap: balance; }
.page-title { max-width: 860px; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h1, h2, h3, h4 { margin-top: 0; color: var(--green-deep); text-wrap: balance; }
h2 { margin-bottom: 14px; font: 600 clamp(1.5rem, 2.5vw, 2rem)/1.22 var(--display-font); letter-spacing: -.01em; }
h3 { margin-bottom: 8px; font: 600 clamp(1.1rem, 1.5vw, 1.3rem)/1.3 var(--display-font); letter-spacing: 0; }
h4 { margin-bottom: 8px; font: 600 1rem/1.4 var(--display-font); }
p { margin: 0 0 1rem; }
.content-copy > * + * { margin-top: 1.05em; }
.content-copy ul, .content-copy ol { padding-left: 1.2em; }
.content-copy li + li { margin-top: .5em; }

/* Hero clair et récit en cinq temps */
.hero { position: relative; min-height: min(640px, calc(100svh - var(--header-height))); display: grid; align-items: center; overflow: hidden; color: var(--ink); background: var(--paper); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--orange) 30%, transparent) 0, transparent 38%), radial-gradient(circle at 70% 95%, color-mix(in srgb, var(--pharmacy-green) 26%, transparent) 0, transparent 44%); }
.hero-art { position: absolute; z-index: 1; right: clamp(24px, 9vw, 150px); top: 50%; width: min(36vw, 460px); translate: 0 -50%; pointer-events: none; animation: art-float 7s ease-in-out infinite; filter: drop-shadow(0 22px 30px rgba(20,83,45,.18)); }
.hero-art svg { display: block; width: 100%; height: auto; }
@keyframes art-float { 50% { translate: 0 calc(-50% - 10px); } }
.hero-media, .hero-floating { display: none; }
.hero-copy { position: relative; z-index: 2; width: min(640px, 62%); padding-block: clamp(48px, 8vw, 100px); }
.hero h1 { max-width: 640px; color: var(--green-deep); font: 700 clamp(2rem, 4.2vw, 3.1rem)/1.15 var(--display-font); letter-spacing: -.015em; }
.hero .lead { max-width: 520px; color: var(--ink-2); }
.hero .eyebrow { color: var(--orange-text); }
.hero .hero-side-note { position: absolute; right: 3vw; bottom: 30px; color: var(--muted); font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase; writing-mode: vertical-rl; }
.story-track { position: relative; height: 510svh; background: var(--paper); }
.story-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); min-height: 580px; overflow: hidden; background: var(--paper); }
.story-panel { position: absolute; inset: 0; display: grid; align-items: center; color: var(--ink); opacity: 0; transform: translate3d(0,35px,0); will-change: transform, opacity; transition: opacity 550ms var(--ease), transform 650ms var(--ease); pointer-events: none; }
.story-panel.is-active { pointer-events: auto; }
.story-panel > .container { position: relative; z-index: 2; }
.story-panel .hero { min-height: 100%; height: 100%; }
.story-panel .panel-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-panel img.panel-image { display: none; }
.story-panel .panel-overlay { display: none; }
.story-panel .panel-copy { position: relative; z-index: 2; max-width: 620px; color: var(--ink); }
.story-panel .panel-copy h1, .story-panel .panel-copy h2 { color: var(--green-deep); }
.story-panel .panel-copy .lead { color: var(--ink-2); }
.story-panel[data-story-panel="0"] { background: var(--paper); }
.story-panel[data-story-panel="1"] { background: #ffe9d2; }
.story-panel[data-story-panel="2"] { background: #e3f3e8; }
.story-panel[data-story-panel="3"] { background: var(--paper); }
.story-panel[data-story-panel="4"] { background: #ffe9d2; color: var(--ink); }
.story-panel[data-story-panel="1"]::after, .story-panel[data-story-panel="3"]::after { content: ""; position: absolute; z-index: 0; right: -6%; top: 50%; width: min(38vw, 460px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--pharmacy-green) 45%, transparent); box-shadow: 0 0 0 34px color-mix(in srgb, var(--orange) 16%, transparent), 0 0 0 68px color-mix(in srgb, var(--orange) 8%, transparent); pointer-events: none; }
.story-progress { position: absolute; z-index: 4; right: 24px; top: 50%; display: grid; gap: 9px; transform: translateY(-50%); }
.story-progress i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--pharmacy-green) 30%, transparent); }
.story-progress i:first-child { background: var(--orange); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 22%, transparent); }
.story-panel .panel-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--orange-text); font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.story-panel .panel-index { font: 700 1.2rem/1 var(--display-font); }
.story-panel .panel-callout { margin-top: 26px; }
.story-panel .glass-card { color: var(--ink); }
.story-panel .glass-card p { color: var(--muted); }
.story-panel .station-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); gap: 42px; align-items: center; }
.story-panel .quick-links { display: grid; gap: 8px; }
.story-panel .quick-link { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.story-panel .quick-link span:last-child { color: var(--pharmacy-green); font-weight: 700; }
.story-panel .station-status { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.story-panel[data-story-panel="4"] .station-grid { padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); box-shadow: var(--shadow); }
.glass-card { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius-m); color: var(--ink); background: var(--glass); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.glass-card::after, [data-tilt]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--shine-x, 50%) var(--shine-y, 50%), color-mix(in srgb, var(--orange) 12%, transparent), transparent 44%); opacity: 0; transition: opacity var(--time-base) ease; }
[data-tilt]:hover::after { opacity: 1; }

/* Cards, hotspots, horizontal sections */
.surface-card { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); background: var(--white); box-shadow: var(--shadow-soft); text-decoration: none; transition: transform var(--time-base) var(--ease), box-shadow var(--time-base) ease; }
.surface-card:hover { color: inherit; border-color: var(--orange); box-shadow: var(--shadow); }
.surface-card p { color: var(--muted); }
.card-image { width: 100%; aspect-ratio: 1.68; object-fit: cover; margin-bottom: 20px; border-radius: 17px; clip-path: inset(5% round 17px); transition: clip-path 850ms var(--ease), transform 900ms var(--ease); }
.surface-card.is-visible .card-image, .card-image.reveal.is-visible { clip-path: inset(0 round 17px); transform: scale(1.025); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; color: var(--orange-text); background: var(--warm); }
.card-icon svg { width: 22px; height: 22px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--pharmacy-green); font-size: 0.88rem; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.hotspot-map { background-size: cover; }
.hotspot { position: absolute; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; color: #1d1200; background: var(--orange); box-shadow: 0 0 0 8px rgba(245,130,32,.18); text-decoration: none; animation: hotspot-pulse 2.8s ease-in-out infinite; }
.hotspot::after { content: "+"; font-size: 1.35rem; font-weight: 450; }
.hotspot span { position: absolute; left: calc(100% + 12px); width: max-content; max-width: 180px; padding: 7px 11px; border-radius: 9px; color: #fff; background: var(--green-deep); font-size: 0.82rem; }
@keyframes hotspot-pulse { 50% { box-shadow: 0 0 0 13px rgba(245,130,32,0); } }
.horizontal-section { position: relative; min-height: 205svh; padding: 0; }
.horizontal-pin { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); min-height: 550px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.horizontal-track { display: flex; align-items: stretch; gap: 18px; width: max-content; padding: 8px 8px 22px; will-change: transform; }
.horizontal-track .surface-card { width: min(31vw, 400px); min-width: 310px; min-height: 300px; }
.horizontal-track .surface-card:nth-child(2) { transform: translateY(22px); }
.horizontal-track .surface-card:nth-child(3) { transform: translateY(-12px); }
.horizontal-track .surface-card:nth-child(4) { transform: translateY(30px); }
.horizontal-hint { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 0; color: var(--muted); font-size: 0.82rem; letter-spacing: .04em; }
.horizontal-hint span:last-child { color: var(--orange-text); font-size: 1.2rem; }

/* Inner page hero and text */
.page-hero { position: relative; padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); overflow: hidden; background: linear-gradient(130deg, var(--warm), var(--paper) 62%); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; right: -14vw; top: -26vw; width: min(58vw, 760px); aspect-ratio: 1; border: 2px solid color-mix(in srgb, var(--pharmacy-green) 18%, transparent); border-radius: 50%; box-shadow: 0 0 0 40px color-mix(in srgb, var(--orange) 5%, transparent), 0 0 0 80px color-mix(in srgb, var(--orange) 3%, transparent); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { max-width: 650px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: 0.85rem; }
.breadcrumbs a { color: var(--pharmacy-green); font-weight: 600; text-decoration: none; }
.breadcrumbs span[aria-hidden="true"] { color: var(--orange-text); }
.marquee { overflow: hidden; padding: 16px 0; border-block: 1px solid var(--line); color: var(--green-deep); background: var(--warm); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 34px; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-word { font: 600 clamp(1.1rem, 1.8vw, 1.5rem)/1.2 var(--display-font); letter-spacing: 0; }
.marquee-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-35%); } }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 24px; color: var(--muted); font-size: 0.85rem; }
.article-body { max-width: 72ch; margin-inline: auto; font-size: 1rem; }
.article-body h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

/* Notices, status and empty states */
.notice { display: flex; align-items: flex-start; gap: 13px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); background: var(--white); }
.notice p { margin: 0; }
.notice-warning { border-color: rgba(245,130,32,.4); background: var(--warm); }
.notice-danger { border-color: rgba(184,75,66,.25); background: color-mix(in srgb, #fdebe8 70%, var(--paper)); }
.notice-icon { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #1d1200; background: var(--orange); font-size: 0.8rem; font-weight: 800; }
.closure-notice { margin-block: 16px; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-s); color: var(--muted); background: color-mix(in srgb, var(--mist) 42%, var(--paper)); text-align: center; }

/* Split layouts, placeholders and data cards */
.product-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); align-items: center; gap: clamp(32px,6vw,88px); }
.photo-placeholder { display: grid; place-items: center; min-height: 240px; padding: 24px; border: 2px dashed color-mix(in srgb, var(--orange) 55%, var(--line)); border-radius: var(--radius-m); color: var(--muted); background: linear-gradient(135deg, var(--warm), var(--paper)); text-align: center; }
.photo-placeholder strong, .photo-placeholder span { display: block; }
.photo-placeholder strong { margin-bottom: 6px; color: var(--ink); }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat-card { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; background: var(--white); }
.stat-value { display: block; color: var(--orange-text); font: 700 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--display-font); letter-spacing: 0; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: 0.86rem; }
.station-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); gap: 42px; align-items: center; }
.quick-links { display: grid; gap: 8px; }
.quick-link { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.quick-link span:last-child { color: var(--pharmacy-green); font-weight: 700; text-align: right; }

/* Forms */
.form-panel { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-top: 4px solid var(--pharmacy-green); border-radius: var(--radius-m); background: var(--white); box-shadow: var(--shadow-soft); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field > .label { color: var(--green-deep); font-size: 0.9rem; font-weight: 700; }
.field input, .field select, .field textarea, .filter-control { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--pharmacy-green) 35%, white); border-radius: 11px; color: var(--ink); background: var(--paper); transition: border-color var(--time-fast) ease, box-shadow var(--time-fast) ease, background var(--time-fast) ease; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-control:focus { border-color: var(--orange); outline: 0; background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 28%, transparent); }
.field textarea { min-height: 135px; resize: vertical; }
.field input[type="file"] { padding: 8px; }
.field input[type="checkbox"], .checkbox-row input { width: 18px; min-height: 18px; accent-color: var(--orange-2); }
.field-hint { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 20px; color: var(--ink-2); font-size: 0.88rem; }
.checkbox-row input { flex: 0 0 18px; margin-top: 2px; }
.form-status { min-height: 1.3em; margin: 10px 0 0; color: var(--pharmacy-green); font-size: 0.9rem; font-weight: 700; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: var(--pharmacy-green); }

/* Tables, filters and admin */
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table thead th { color: var(--green-deep); background: var(--mist); border-bottom: 2px solid var(--pharmacy-green); font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { color: var(--green-deep); font-weight: 700; }
.data-table caption { padding: 12px; }
.table-toolbar, .dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-control { width: auto; min-width: 145px; min-height: 42px; padding: 8px 10px; font-size: 0.86rem; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 28px; }
.admin-sidebar { position: sticky; top: calc(var(--header-height) + 18px); display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.admin-sidebar a { padding: 10px 11px; border-radius: 10px; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.admin-sidebar a:hover, .admin-sidebar a[aria-current="page"] { color: var(--green-deep); background: var(--warm); box-shadow: inset 3px 0 0 var(--orange); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.kpi-card { padding: 18px 20px; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 14px; background: var(--white); }
.kpi-number { display: block; color: var(--orange-text); font: 700 1.8rem/1.1 var(--display-font); }
.kpi-caption { display: block; margin-top: 8px; color: var(--muted); font-size: 0.84rem; }

/* Timelines, loading states, vector motifs */
.timeline { display: grid; gap: 0; margin: 24px 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 13px; padding: 0 0 24px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; top: 22px; bottom: -2px; left: 10px; width: 1px; background: var(--line); }
.timeline-marker { position: relative; z-index: 1; display: block; width: 21px; height: 21px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); }
.timeline-item.is-current .timeline-marker, .timeline-item.is-complete .timeline-marker { border-color: var(--pharmacy-green); background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }
.timeline-item strong { display: block; color: var(--green-deep); font-size: 0.95rem; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); font-size: 0.86rem; }
.skeleton-row { height: 16px; margin: 15px 0; border-radius: 99px; background: linear-gradient(90deg, var(--mist), color-mix(in srgb, var(--white) 80%, var(--mist)), var(--mist)); background-size: 200% 100%; }
.skeleton-row:nth-child(2) { width: 84%; }
.skeleton-row:nth-child(3) { width: 61%; }
.show-skeleton .skeleton-row { animation: skeleton-shimmer 1.5s linear infinite; }
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }
.draw-line { width: 100%; overflow: visible; }
.draw-line path { stroke-dasharray: 500; stroke-dashoffset: 500; transition: stroke-dashoffset 1.5s var(--ease); }
.draw-line.is-visible path { stroke-dashoffset: 0; }
.footer-route { width: min(240px, 88%); height: 36px; margin-top: 10px; opacity: .82; }

/* Footer, toast, cursor and shared motion */
.site-footer { margin-top: 56px; padding: 52px 0 22px; color: var(--ink-2); background: var(--paper); border-top: 4px solid var(--orange); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 32px; padding-bottom: 34px; }
.footer-brand .brand { color: var(--green-deep); }
.footer-brand .brand-country { color: var(--orange-text); }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links a { color: var(--ink-2); font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--orange-text); text-decoration: underline; }
.footer-title { margin-bottom: 5px; color: var(--pharmacy-green); font: 700 .85rem/1.3 var(--display-font); letter-spacing: .04em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.footer-bottom a { color: inherit; }
.site-toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(440px, calc(100vw - 44px)); padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); opacity: 0; transform: translate3d(0,20px,0) scale(.97); pointer-events: none; transition: opacity 300ms var(--ease), transform 430ms var(--ease); font-size: 0.92rem; }
.site-toast.is-visible { opacity: 1; transform: none; }
.site-toast.is-error { border-color: #b3261e; }
.site-toast.is-info { border-color: var(--orange); }
#ambient-canvas { position: fixed; z-index: 5; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cursor-halo, .cursor-dot { position: fixed; z-index: 99; top: 0; left: 0; pointer-events: none; opacity: 0; }
.cursor-halo { width: 36px; height: 36px; border: 1.5px solid rgba(245,130,32,.8); border-radius: 50%; background: rgba(245,130,32,.08); transition: width 240ms var(--ease), height 240ms var(--ease), background 240ms ease, opacity 240ms ease; }
.cursor-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
@media (hover:hover) and (pointer:fine) and (min-width:820px) {
  body { cursor: none; }
  a, button, summary, input, select, textarea { cursor: none; }
  body.cursor-hover .cursor-halo { width: 52px; height: 52px; background: rgba(245,130,32,.16); }
  body.cursor-view .cursor-halo { width: 74px; height: 74px; background: var(--orange); }
  body.cursor-view .cursor-halo::after { content: "Voir"; position: absolute; inset: 0; display: grid; place-items: center; color: #1d1200; font-size: 0.8rem; font-weight: 800; }
  body.cursor-view .cursor-dot { opacity: 0; }
  .cursor-halo, .cursor-dot { opacity: .8; }
}

/* Preloader and animated page curtain */
#preloader { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--paper); transition: opacity 300ms ease, visibility 300ms ease; }
#preloader.is-done { opacity: 0; visibility: hidden; }
#preloader::after { content: ""; position: absolute; z-index: 0; inset: 0; background: var(--orange); clip-path: ellipse(0 0 at 50% 100%); transition: clip-path 560ms var(--ease); }
#preloader.is-curtaining::after { clip-path: ellipse(145% 155% at 50% 100%); }
.preloader-mark { position: relative; z-index: 1; width: 66px; height: 66px; color: var(--pharmacy-green); transition: transform 420ms var(--ease), opacity 300ms ease; }
.preloader-mark path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw-cross 780ms var(--ease) forwards; }
#preloader.is-curtaining .preloader-mark { transform: scale(1.12); opacity: .12; }
@keyframes draw-cross { to { stroke-dashoffset: 0; } }
#page-curtain { position: fixed; z-index: 105; inset: 0; pointer-events: none; background: var(--orange); clip-path: polygon(0 100%,100% 100%,100% 100%,90% 100%,80% 100%,70% 100%,60% 100%,50% 100%,40% 100%,30% 100%,20% 100%,10% 100%,0 100%); transition: clip-path 650ms var(--ease); }
#page-curtain.is-closing { pointer-events: auto; clip-path: polygon(0 0,100% 0,100% 80%,90% 87%,80% 81%,70% 88%,60% 82%,50% 89%,40% 82%,30% 88%,20% 81%,10% 87%,0 80%); }
#page-curtain.is-open { clip-path: polygon(0 0,100% 0,100% 0,90% 0,80% 0,70% 0,60% 0,50% 0,40% 0,30% 0,20% 0,10% 0,0 0); }

/* Fly-in, letter-split headings and reveals */
.reveal { opacity: 0; transform: translate3d(0,24px,0); filter: blur(5px); transition: opacity 720ms var(--ease), transform 780ms var(--ease), filter 780ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
.reveal-words { opacity: 0; filter: blur(5px); transition: opacity 540ms var(--ease), filter 540ms var(--ease); }
.reveal-words.is-visible { opacity: 1; filter: blur(0); }
.title-word { display: inline-block; white-space: nowrap; opacity: 0; transform: translate3d(0,.14em,0); filter: blur(5px); transition: transform 480ms var(--ease), opacity 380ms var(--ease), filter 480ms var(--ease); transition-delay: calc(var(--word-index) * 90ms); }
.reveal-words.is-visible .title-word { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
.title-char { display: inline-block; opacity: 0; transform: translate3d(0,.22em,0); filter: blur(7px); transition: transform 460ms var(--ease), opacity 360ms var(--ease), filter 460ms var(--ease); transition-delay: calc(var(--word-index) * 90ms + var(--char-index) * 14ms); }
.reveal-words.is-visible .title-char { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
.story-panel[data-story-panel="1"] [data-fly-in].is-flying { transform-origin: 74% 72%; animation: fly-in-landing 1850ms cubic-bezier(.2,.76,.16,1) both; }
@keyframes fly-in-landing {
  0% { opacity: .12; transform: translate3d(24vw,34vh,0) scale(.56); filter: blur(9px); }
  65% { opacity: 1; transform: translate3d(0,0,0) scale(1.045); filter: blur(0); }
  83% { transform: translate3d(0,-1.3vh,0) scale(.99); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}
@media (max-width: 1120px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 12px; }
  .main-nav > a, .nav-disclosure summary { font-size: 0.82rem; }
  .header-cta { display: none; }
  .card-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-copy { width: 68%; }
}
@media (max-width: 820px) {
  :root { --header-height: 66px; }
  .container, .narrow { width: min(100% - 34px, var(--content)); }
  .header-inner { width: calc(100% - 28px); justify-content: space-between; }
  .nav-toggle { display: inline-grid; }
  .main-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; max-height: calc(100svh - var(--header-height)); overflow: auto; padding: 14px 18px 20px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav > a, .nav-disclosure summary { padding: 12px 10px; font-size: 1rem; }
  .main-nav > a::after { display: none; }
  .nav-disclosure { padding: 8px 10px; }
  .nav-popover { position: static; margin-top: 8px; box-shadow: none; }
  .header-actions { margin-left: auto; }
  .header-cta { display: inline-flex; }
  .hero { min-height: min(600px, calc(100svh - var(--header-height))); }
  .hero-copy { width: 88%; }
  .hero h1 { font-size: clamp(1.9rem,7vw,2.8rem); }
  .hero-art { right: -10%; top: auto; bottom: 20px; width: 58vw; translate: none; opacity: .9; animation: none; }
  .story-track { height: auto; }
  .story-stage { position: relative; top: auto; height: auto; min-height: 0; overflow: visible; }
  .story-panel { position: relative; inset: auto; display: block; min-height: 72svh; padding: 58px 0; opacity: 1 !important; transform: none !important; filter: none; pointer-events: auto; }
  .story-panel .hero { min-height: 72svh; margin: -58px 0; }
  .story-panel[data-story-panel="4"] { min-height: 65svh; }
  .story-panel .station-grid { grid-template-columns: 1fr; gap: 22px; }
  .story-progress { display: none; }
  .horizontal-section { min-height: 0; padding: 18px 0; }
  .horizontal-pin { position: static; height: auto; min-height: 0; overflow: visible; }
  .horizontal-track { width: 100%; overflow-x: auto; padding: 6px 17px 19px; scroll-snap-type: x mandatory; transform: none !important; }
  .horizontal-track .surface-card { width: min(82vw,360px); min-width: min(82vw,360px); scroll-snap-align: start; }
  .horizontal-track .surface-card:nth-child(n) { transform: none; }
  .horizontal-hint { padding-inline: 18px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .product-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; }
  .admin-sidebar a { flex: 0 0 auto; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cursor-halo, .cursor-dot, #ambient-canvas { display: none !important; }
  #page-curtain { display: none; }
  .story-panel[data-story-panel="1"] [data-fly-in].is-flying { animation: none; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container, .narrow { width: calc(100% - 30px); }
  .header-inner { width: calc(100% - 22px); gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 0.85rem; }
  .brand-country { font-size: 0.8rem; }
  .header-cta { min-height: 38px; padding: 8px 12px; font-size: 0.8rem; }
  .theme-toggle, .nav-toggle { width: 36px; height: 36px; }
  .hero { min-height: 520px; }
  .hero-copy { width: 100%; padding-block: 56px; }
  .hero h1 { max-width: 520px; font-size: clamp(1.75rem,8vw,2.2rem); }
  .hero .lead { max-width: 38ch; font-size: 1rem; }
  .hero-side-note { display: none; }
  .story-panel { min-height: 560px; }
  .story-panel .hero { min-height: 520px; }
  .story-panel .panel-copy { max-width: 100%; }
  .story-panel .panel-copy h2 { font-size: clamp(1.6rem,7vw,2rem); }
  .page-hero { padding: 44px 0 34px; }
  .page-title { font-size: clamp(1.7rem,8vw,2.2rem); }
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
  .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .surface-card { min-height: 235px; }
  .stats-row { grid-template-columns: 1fr; gap: 0; }
  .stat-card { display: flex; align-items: baseline; gap: 18px; }
  .stat-label { margin-top: 0; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .form-panel { padding: 21px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .kpi-card { padding: 14px; }
  .kpi-number { font-size: 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 25px 14px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .table-toolbar { align-items: stretch; }
  .filters { align-items: stretch; }
  .filter-control { width: 100%; }
  .notice { padding: 14px; }
  .story-panel[data-story-panel="4"] .station-grid { padding: 22px 18px; border-radius: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .story-track { height: auto; }
  .story-stage { position: relative; height: auto; min-height: 0; }
  .story-panel { position: relative; inset: auto; display: block; min-height: 64svh; opacity: 1 !important; transform: none !important; filter: none !important; pointer-events: auto; }
  .story-panel .hero { min-height: 64svh; }
  .horizontal-section { min-height: 0; }
  .horizontal-pin { position: static; height: auto; min-height: 0; }
  .horizontal-track { width: 100%; overflow-x: auto; transform: none !important; }
  .cursor-halo, .cursor-dot, #ambient-canvas, #page-curtain { display: none !important; }
  #preloader::after { display: none !important; }
  .reveal, .reveal-words, .reveal-words .title-word, .reveal-words .title-char { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none; }
  .story-panel[data-story-panel="1"] [data-fly-in].is-flying { animation: none !important; }
  .hero-art { animation: none !important; }
}
@media print {
  .site-header, .site-footer, .button, #preloader, #page-curtain, #ambient-canvas, .cursor-halo, .cursor-dot { display: none !important; }
  body { color: #111; background: #fff; }
  .page-hero, .section { padding: 20px 0; }
  a { text-decoration: underline; }
}

/* Labels flottants accessibles */
.field.has-floating-label { position: relative; gap: 0; margin-top: 8px; }
.field.has-floating-label > label { position: absolute; z-index: 2; top: 15px; left: 12px; margin: 0; padding: 0 4px; color: var(--muted); background: var(--white); transform-origin: left center; transition: top 220ms var(--ease), transform 220ms var(--ease), color 220ms ease; pointer-events: none; }
.field.has-floating-label > input, .field.has-floating-label > select, .field.has-floating-label > textarea { padding-top: 18px; }
.field.has-floating-label:focus-within > label, .field.has-floating-label.has-value > label { top: -8px; transform: scale(.85); color: var(--orange-text); background: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .field.has-floating-label > label { transition: none !important; }
}

/* Illustrations manquantes ou non chargées : masquées proprement */
img.is-missing { display: none !important; }
