/* =========================================================
   La méthadone, pas si anodin ! · Styles du site
   Organisation (= découpage du futur thème WP) :
   1. Base        2. Composants        3. En-tête / pied
   4. Sections d'accueil (1 bloc = 1 template-part)
   ========================================================= */

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.55;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
ul, ol { padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-3); top: -100px; z-index: 100; background: var(--encre); color: #fff; padding: var(--s-2) var(--s-3); border-radius: var(--r-bloc); }
.skip:focus { top: var(--s-3); }

.wrap { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.section { padding-block: var(--s-7); position: relative; }

/* Titres : capitales grasses condensées, comme les intertitres du dossier Méthacolor */
.titre {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: var(--t-2xl);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.titre--rouge { color: var(--rouge); }
.titre--marine { color: var(--marine); }
.chapo { font-size: var(--t-l); color: var(--encre-2); max-width: 58ch; margin-top: var(--s-3); text-wrap: pretty; }
.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.lien { font-weight: 700; color: var(--marine); }
.lien:hover { color: var(--rouge); }

/* ---------- 2. Composants ---------- */

/* Boutons : forme de gélule */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--f-texte); font-weight: 700; font-size: var(--t-m); line-height: 1.1;
  border-radius: var(--r-pilule); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--rouge { background: var(--rouge); color: #fff; }
.btn--rouge:hover { background: var(--rouge-fonce); }
.btn--contour { border-color: var(--encre); background: #fff; color: var(--encre); }
.btn--contour:hover { background: var(--encre); color: #fff; }
.btn--contour-clair { border-color: #fff; color: #fff; background: transparent; }
.btn--contour-clair:hover { background: #fff; color: var(--ardoise); }
.btn--blanc { background: #fff; color: var(--rouge); }
.btn--blanc:hover { background: var(--encre); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Logo : image extraite de l'affiche (assets/img/logo), mêmes proportions partout */
.logo { display: inline-block; line-height: 0; }
.logo__img { width: 158px; height: auto; }
.logo--pied .logo__img { width: 220px; }

/* Hexagone (cadre des gélules sur l'affiche) */
.hexa {
  aspect-ratio: 1 / .9;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: #fff;
  display: grid; place-items: center;
}

/* Molécule de méthadone en arrière-plan */
.molecule { position: absolute; pointer-events: none; color: var(--molecule); fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: square; }

/* ---------- 3. En-tête & pied de page ---------- */
.urgence-bar { background: var(--encre); color: #fff; font-size: var(--t-s); }
.urgence-bar .wrap { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: .45rem; }
.urgence-bar a { text-decoration: none; font-weight: 600; }
.urgence-bar strong { background: var(--rouge); border-radius: 5px; padding: 0 .45em; margin-left: .3em; font-weight: 800; }
.urgence-bar__org { color: #c8cad0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.site-header .wrap { white-space: nowrap; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); min-height: 76px; }
.site-header .logo { justify-self: start; }
.nav-principale ul { display: flex; gap: 2px; }
.nav-principale a { display: block; padding: .5rem .7rem; font-weight: 600; text-decoration: none; border-radius: var(--r-pilule); }
.nav-principale a:hover { background: var(--ciel); }
.nav-principale a[aria-current="page"] { color: var(--rouge); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: var(--s-1); }
.icone-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--trait); border-radius: 50%; background: #fff; cursor: pointer; }
.icone-btn svg { width: 20px; height: 20px; }
.burger { display: none; }

.site-footer { background: var(--encre); color: #c8cad0; padding-block: var(--s-6) var(--s-4); font-size: var(--t-s); }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-5); margin-bottom: var(--s-6); }
.footer-cols h2 { font-family: var(--f-titre); font-size: var(--t-m); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-2); }
.footer-cols li + li { margin-top: .4rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-about { margin-top: var(--s-3); max-width: 36ch; }
.footer-bas { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: var(--s-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: var(--t-xs); color: #9a9da6; }
.footer-bas { align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.footer-bas a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.footer-bas a:hover { color: #fff; }

/* ---------- 4. Sections de l'accueil ---------- */

/* 4.1 Hero */
.hero { position: relative; background: radial-gradient(ellipse 80% 70% at 60% 45%, #fff 0, #f5fafe 45%, var(--ciel-2) 100%); overflow: hidden; padding-block: var(--s-7) calc(var(--s-7) + var(--s-6)); }
.hero .molecule { width: 760px; right: -120px; top: -40px; opacity: .8; }
.hero__grille { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-6) var(--s-7); align-items: center; }
.hero__titre { margin: 0; line-height: 0; }
.hero__logo { width: min(100%, 600px); height: auto; }
.hero__slogan { margin-top: var(--s-4); font-size: var(--t-l); color: var(--rouge); line-height: 1.4; }
.hero__slogan strong { font-weight: 800; white-space: nowrap; }
.hero__slogan span { display: block; text-wrap: balance; }
.hero__texte { margin: var(--s-3) 0 var(--s-5); line-height: 1.6; color: var(--encre-2); max-width: 50ch; }

.gelule-hero { position: relative; justify-self: center; width: min(100%, 520px); }
.gelule-hero svg { width: 100%; overflow: visible; }
.gelule-hero__moitie { transition: fill .7s ease; }
.gelule-hero__dose {
  position: absolute; left: 50%; top: 47%; translate: -50% -50%;
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1;
  color: var(--encre); white-space: nowrap;
  text-shadow: 0 2px 0 #fff, 0 0 18px #fff, 0 0 4px #fff;
  transition: opacity .3s ease;
}
.gelule-hero__legende { text-align: center; font-size: var(--t-s); color: var(--encre-2); margin-top: var(--s-1); height: 3.1em; text-wrap: balance; transition: opacity .3s ease; }
.is-fondu { opacity: 0; }
.gelule-hero__pause { position: absolute; right: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--trait); border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--encre-2); cursor: pointer; }
.gelule-hero__pause:hover { color: var(--encre); border-color: var(--encre-2); }
.gelule-hero__pause svg { width: 14px; height: 14px; }
.gelule-hero__pause .ico-play, .gelule-hero__pause[aria-pressed="true"] .ico-pause { display: none; }
.gelule-hero__pause[aria-pressed="true"] .ico-play { display: block; }

/* 4.2 Code couleur */
.code { background: linear-gradient(var(--ciel-2), #fff 220px); padding-top: 0; }
.code__panneau { background: #fff; border-radius: 22px; box-shadow: var(--ombre); padding: var(--s-6) var(--s-5) var(--s-5); margin-top: calc(-1 * var(--s-6)); position: relative; }
.code__intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-6); align-items: end; margin-bottom: var(--s-5); }
.code__intro p { color: var(--encre-2); }
.doses { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.dose { text-align: center; }
.dose .hexa { width: 78%; margin: 0 auto var(--s-3); background: var(--ciel); }
.dose .hexa img { width: 78%; }
.dose__mg { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-xl); line-height: 1; }
.dose__couleur { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: var(--t-s); margin: .5rem 0 .4rem; }
.dose__couleur i { width: 1.6em; height: .7em; border-radius: var(--r-pilule); background: linear-gradient(90deg, #e6e7ea 50%, var(--c) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dose--4 .dose__couleur i { background: var(--c); }
.dose p { font-size: var(--t-s); color: var(--encre-2); max-width: 26ch; margin-inline: auto; }
.dose__seuil { display: block; margin-top: .5rem; font-weight: 700; color: var(--rouge); font-size: var(--t-xs); }
.code__palier { text-align: center; margin-top: var(--s-4); font-weight: 600; color: var(--marine); }

.non-coloree { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-bloc); background: var(--ciel); }
.non-coloree__mg { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-2xl); line-height: 1; display: flex; align-items: center; gap: .3em; }
.non-coloree__mg span { display: inline-block; width: .55em; height: 1.2em; border-radius: var(--r-pilule); background: linear-gradient(90deg, #fff, #d5d7db); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transform: rotate(12deg); }
.non-coloree h3 { font-size: var(--t-l); line-height: 1.25; }
.non-coloree p { color: var(--encre-2); font-size: var(--t-s); }
.non-coloree p span { display: block; text-wrap: balance; }

/* 4.3 Accès par public : 3 cartes */
.publics { padding-top: var(--s-5); }
.publics__titre { margin-bottom: var(--s-5); }
.publics__liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.publics__liste li { display: flex; }
.public {
  flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-2);
  padding: var(--s-5) var(--s-4) var(--s-4);
  background: var(--ciel); border-radius: var(--r-bloc);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.public__icone { width: 64px; background: #fff; color: var(--marine); margin-bottom: var(--s-1); transition: background-color .2s, color .2s; }
.public__icone svg { width: 28px; height: 28px; }
.public__corps { display: flex; flex-direction: column; gap: var(--s-1); }
.public__titre { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 1.05; }
.public__texte { color: var(--encre-2); transition: color .2s; }
.public__fleche { justify-self: end; margin-top: var(--s-2); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--encre); display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.public__fleche svg { width: 20px; height: 20px; }
.public:hover { background: var(--marine); color: #fff; }
.public:hover .public__texte { color: #d6dbf2; }
.public:hover .public__fleche { background: var(--rouge); border-color: var(--rouge); color: #fff; transform: translateX(4px); }

/* 4.4 Pourquoi : panneau ardoise texturé, bords déchirés */
.pourquoi { padding-block: var(--s-6); }
.ardoise {
  position: relative; color: #fff;
  background: var(--ardoise) url("../img/fonds/ardoise.png") center / 100% 100% no-repeat;
  padding: var(--s-7) clamp(1.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.ardoise .molecule { color: #fff; opacity: .05; width: 700px; left: -160px; bottom: -260px; }
.ardoise > :not(.molecule) { position: relative; }
.ardoise .titre { color: #fff; }
.ardoise .chapo { color: #d9dade; }
.attention { margin-top: var(--s-5); border: 4px solid var(--jaune); padding: var(--s-4); text-align: center; color: var(--jaune); }
.attention__titre { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-2xl); letter-spacing: .08em; line-height: 1; }
.attention p { font-weight: 700; text-transform: uppercase; margin-top: var(--s-2); line-height: 1.35; }
.pourquoi__haut { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-5) var(--s-6); align-items: center; }
.pourquoi__haut .attention { margin-top: 0; }

/* Parcours constat → réponse → effets */
.parcours { list-style: none; padding: 0; counter-reset: p; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-6); margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .18); }
.parcours__etape { position: relative; counter-increment: p; }
.parcours__visuel { height: 60px; display: flex; align-items: center; gap: 6px; margin-bottom: var(--s-3); }
.parcours h3 { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 1.05; }
.parcours h3 span { display: block; font-family: var(--f-texte); font-size: var(--t-s); font-weight: 700; text-transform: none; color: var(--jaune); margin-bottom: .35rem; }
.parcours h3 span::before { content: counter(p) ". "; }
.parcours p { color: #d9dade; margin-top: var(--s-2); max-width: 34ch; }
.pourquoi__lien { margin-top: var(--s-6); text-align: center; }

/* Mini-gélules : blanches par défaut, colorées = info dosage */
.pilule { --c: #eef0f3; display: block; width: 48px; height: 19px; border-radius: var(--r-pilule); background: linear-gradient(90deg, #eef0f3 50%, var(--c) 50%); box-shadow: inset 0 -4px 5px rgba(0, 0, 0, .18), inset 0 3px 3px rgba(255, 255, 255, .6); }
.pilule.p-a { rotate: -24deg; } .pilule.p-b { rotate: 18deg; } .pilule.p-c { rotate: -8deg; } .pilule.p-d { rotate: 30deg; }
.pilule.d1 { --c: var(--dose-1); } .pilule.d2 { --c: var(--dose-2); } .pilule.d3 { --c: var(--dose-3); }
.pilule.d4 { --c: var(--dose-4); background: var(--dose-4); }
.bulle { position: relative; display: inline-block; font-family: var(--f-titre); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--ardoise); background: var(--jaune); padding: .35em .6em; border-radius: 12px; }
.bulle::after { content: ""; position: absolute; left: 16px; bottom: -9px; border: 9px solid transparent; border-top-color: var(--jaune); border-bottom: 0; }

/* 4.5 Aperçu carte : recherche + aperçu statique */
.carte .chapo { text-wrap: balance; }
.carte { background: linear-gradient(#fff, var(--ciel) 55%, #fff); }
.carte__grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-6); align-items: stretch; }
.recherche-carte { margin-top: var(--s-5); }
.recherche-carte label { display: block; font-weight: 700; margin-bottom: var(--s-1); }
.recherche-carte__champ { display: flex; gap: var(--s-1); padding: 6px; background: #fff; border: 2px solid var(--encre); border-radius: var(--r-pilule); }
.recherche-carte__champ:focus-within { outline: 3px solid var(--marine); outline-offset: 3px; }
.recherche-carte input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 0 var(--s-3); outline: none; }
.carte__sous-titre { font-weight: 700; margin: var(--s-4) 0 var(--s-1); }
.provinces-liens { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.provinces-liens a { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: .35em .6em .35em 1em; border-radius: var(--r-pilule); background: #fff; border: 1px solid var(--trait); font-weight: 600; text-decoration: none; }
.provinces-liens a span { font-size: var(--t-xs); font-weight: 700; background: var(--ciel); color: var(--marine); border-radius: var(--r-pilule); padding: .1em .55em; }
.provinces-liens a:hover { border-color: var(--encre); }
.carte__chiffres { margin-top: var(--s-5); color: var(--encre-2); }
.carte__chiffres b { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-xl); color: var(--marine); }
.carte__referencer { margin-top: var(--s-2); color: var(--encre-2); }

.carte__apercu { position: relative; display: block; align-self: center; aspect-ratio: 1056 / 910; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); background: var(--ciel); isolation: isolate; }
.carte__fond { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(.85) brightness(1.08); }
.carte__apercu::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--ciel-2); mix-blend-mode: multiply; opacity: .55; }
.carte__points { position: absolute; inset: 0; z-index: 2; }
.carte__points .pin { position: absolute; width: 18px; height: 18px; translate: -50% -100%; }
.carte__credit { position: absolute; z-index: 3; right: 0; bottom: 0; font-size: 10px; padding: 1px 6px; background: rgba(255, 255, 255, .8); color: var(--encre-2); }
.carte__legende { position: absolute; z-index: 3; bottom: var(--s-3); left: var(--s-3); right: var(--s-6); display: flex; width: fit-content; flex-wrap: wrap; gap: var(--s-1) var(--s-3); padding: .45rem .9rem; background: rgba(255, 255, 255, .92); border-radius: var(--r-pilule); font-size: var(--t-s); font-weight: 600; }
.carte__legende span { display: inline-flex; align-items: center; gap: .45em; }
.carte__ouvrir { position: absolute; z-index: 3; right: var(--s-3); top: var(--s-3); box-shadow: 0 8px 24px rgba(29, 29, 27, .18); }
.carte__apercu:hover .carte__ouvrir { background: var(--encre); color: #fff; }
.pin { display: inline-block; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; rotate: -45deg; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.pin--pharmacie { background: var(--rouge); }
.pin--service { background: var(--marine); }

/* 4.6 Témoignages : intro + défilement horizontal de vidéos verticales */
.temoignages { overflow: hidden; }
.temoignages__grille { display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: var(--s-6); align-items: start; }
.temoignages__intro .chapo { margin-bottom: var(--s-5); }
.temoignages__nav { display: flex; gap: var(--s-1); margin-bottom: var(--s-4); }
.temoignages__nav .icone-btn { width: 48px; height: 48px; border: 2px solid var(--encre); }
.temoignages__nav .icone-btn:hover { background: var(--encre); color: #fff; }
.temoignages__nav .icone-btn:disabled { opacity: .3; cursor: default; background: #fff; color: var(--encre); }
.temoignages__liste {
  display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-right: calc(-1 * var(--gouttiere)); padding-right: var(--gouttiere);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.temoignages__liste::-webkit-scrollbar { display: none; }
.temoin { scroll-snap-align: start; }
.temoin__video {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-bloc); overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #fff, var(--ciel-2));
}
.temoin__silhouette { position: absolute; left: 50%; bottom: 0; width: 70%; translate: -50% 0; fill: var(--molecule); }
.temoin__play { position: absolute; left: var(--s-3); bottom: var(--s-3); width: 56px; height: 56px; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(215, 20, 26, .35); transition: transform .2s; }
.temoin__play svg { width: 22px; height: 22px; margin-left: 3px; }
.temoin__video:hover .temoin__play { transform: scale(1.08); }
.temoin__duree { position: absolute; top: var(--s-2); right: var(--s-2); font-size: var(--t-xs); font-weight: 700; color: #fff; background: rgba(29, 29, 27, .7); padding: .1em .5em; border-radius: 5px; }
.temoin blockquote { margin-top: var(--s-3); font-family: var(--f-titre); font-weight: 700; font-size: var(--t-l); line-height: 1.15; }
.temoin__qui { margin-top: var(--s-1); font-size: var(--t-s); color: var(--encre-2); }
.temoin__qui b { display: block; color: var(--encre); }

/* 4.7 Outils */
.outils { background: var(--ciel); }
.outils__liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.outil { display: flex; flex-direction: column; }
.outil__apercu { aspect-ratio: 4 / 3; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: var(--s-4) var(--s-4) 0; background: #fff; border-radius: var(--r-bloc) var(--r-bloc) 0 0; }
.outil__apercu img { width: 62%; box-shadow: 0 10px 30px rgba(29, 29, 27, .16); }
.outil__corps { background: #fff; border-radius: 0 0 var(--r-bloc) var(--r-bloc); padding: var(--s-4); flex: 1; display: flex; flex-direction: column; gap: .35rem; border-top: 1px solid var(--trait); }
.outil__format { font-size: var(--t-xs); color: var(--encre-2); font-weight: 600; }
.outil h3 { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 1; }
.outil p { color: var(--encre-2); font-size: var(--t-s); flex: 1; }
.outil .btns { margin-top: var(--s-2); }
.outil .btn { min-height: 42px; font-size: var(--t-s); padding-inline: 1.1em; }

/* 4.8 Messages clés */
.messages__grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5) var(--s-6); }
.message blockquote { font-family: var(--f-titre); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.message--grand blockquote { font-size: var(--t-2xl); color: var(--rouge); }
.message--grand blockquote::before { content: "« "; }
.message--grand blockquote::after { content: " »"; }
.message--grand { grid-row: span 2; padding-right: var(--s-4); border-right: 1px solid var(--trait); }
.message:not(.message--grand) blockquote { font-size: var(--t-xl); }
.message p { color: var(--encre-2); margin-top: var(--s-2); max-width: 52ch; }
.message cite { display: block; margin-top: var(--s-2); font-style: normal; font-size: var(--t-s); font-weight: 600; color: var(--marine); }

/* 4.9 Bandeau urgence : appel à gauche, gestes numérotés à droite */
.urgence { background: var(--rouge); color: #fff; padding-block: var(--s-6); }
.urgence__grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-5) var(--s-7); align-items: center; }
.urgence__num { font-family: var(--f-titre); font-weight: 800; font-size: clamp(5rem, 3rem + 8vw, 9.5rem); line-height: .8; letter-spacing: -.01em; }
.urgence h2 { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 1.05; margin: var(--s-3) 0 var(--s-4); max-width: 18ch; }
.urgence__btn { font-size: var(--t-l); min-height: 56px; padding-inline: 1.6em; }
.urgence__btn:hover { background: var(--encre); color: #fff; }
.gestes { list-style: none; counter-reset: g; }
.gestes li { counter-increment: g; display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: var(--s-2); padding: var(--s-2) 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.gestes li::before { content: counter(g); width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; color: var(--rouge); display: grid; place-items: center; font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; }
.urgence__note { margin-top: var(--s-3); font-size: var(--t-s); opacity: .92; }

/* 4.10 Partenaires (3 niveaux, demandé en atelier) */
.partenaires .titre { font-size: var(--t-xl); text-align: center; margin-bottom: var(--s-5); }
.partenaires__niveaux { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s-5); }
.niveau h3 { font-size: var(--t-s); font-weight: 700; color: var(--encre-2); padding-bottom: var(--s-2); margin-bottom: var(--s-3); border-bottom: 2px solid var(--encre); }
.niveau ul { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.niveau img { height: 64px; width: auto; object-fit: contain; }
.niveau--initiative img { height: 80px; }
.logo-manquant { display: grid; place-items: center; height: 64px; padding: 0 var(--s-3); border: 2px dashed var(--trait); border-radius: 10px; font-size: var(--t-xs); font-weight: 700; color: var(--encre-2); }
.partenaires__rejoindre { text-align: center; margin-top: var(--s-6); color: var(--encre-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .nav-principale { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--trait); padding: var(--s-2) var(--gouttiere) var(--s-4); }
  .nav-principale.is-open { display: block; }
  .nav-principale ul { flex-direction: column; }
  .nav-principale a { padding: .8rem .5rem; border-radius: 8px; font-size: var(--t-l); }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .burger { display: grid; }
}
@media (max-width: 960px) {
  .hero__grille, .carte__grille, .pourquoi__haut, .code__intro, .messages__grille { grid-template-columns: 1fr; }
  .parcours { grid-template-columns: 1fr; gap: var(--s-5); }
    .parcours p { max-width: none; }
  .gelule-hero { order: -1; width: min(100%, 380px); }
  .hero .molecule { width: 520px; right: -200px; }
  .doses { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .publics__liste, .outils__liste { grid-template-columns: 1fr; }
  .outil { display: grid; grid-template-columns: 160px 1fr; }
  .outil__apercu { aspect-ratio: auto; border-radius: var(--r-bloc) 0 0 var(--r-bloc); padding: var(--s-3) var(--s-3) 0; }
  .outil__apercu img { width: 100%; }
  .outil__corps { border-radius: 0 var(--r-bloc) var(--r-bloc) 0; border-top: 0; border-left: 1px solid var(--trait); }
  .temoignages__grille { grid-template-columns: 1fr; gap: var(--s-5); }
  .temoignages__nav { display: none; }
  .message--grand { grid-row: auto; border-right: 0; padding-right: 0; padding-bottom: var(--s-4); border-bottom: 1px solid var(--trait); }
  .urgence__grille { grid-template-columns: 1fr; gap: var(--s-3); }
  .partenaires__niveaux { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .non-coloree { grid-template-columns: auto 1fr; }
  .non-coloree .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
  .urgence-bar__org { display: none; }
  .header-cta { display: none; }
  .hero { padding-top: var(--s-5); }
  .code__panneau { padding: var(--s-5) var(--s-3) var(--s-4); border-radius: 16px; }
  .doses { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .dose { display: grid; grid-template-columns: 96px 1fr; column-gap: var(--s-3); text-align: left; align-items: center; }
  .dose .hexa { width: 96px; margin: 0; grid-row: span 4; }
  .dose p { margin: 0; }
  .non-coloree { grid-template-columns: 1fr; padding: var(--s-4) var(--s-3); }
  .outil { grid-template-columns: 1fr; }
  .outil__apercu { aspect-ratio: 16 / 9; border-radius: var(--r-bloc) var(--r-bloc) 0 0; }
  .outil__apercu img { width: 55%; }
  .outil__corps { border-radius: 0 0 var(--r-bloc) var(--r-bloc); border-left: 0; border-top: 1px solid var(--trait); }
  .temoignages__liste { grid-auto-columns: 62%; }
  .ardoise { padding: var(--s-6) var(--s-4); }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
