/* Relais Patient — feuille de style.
   Une salle d'attente calme : blanc clinique légèrement bleuté, encre vert-bleu profond, bleu « relais » pour ce que le
   logiciel fait, corail pour ce qui passe à une personne, vert pour ce qui est réglé.
   Plus Jakarta Sans (titres), Source Sans 3 (texte), IBM Plex Mono (heures, canaux, sources). */

:root {
  --encre: #0f2a30;
  --encre-2: #284b53;
  --muted: #5a7279;
  --line: #d3dee0;
  --papier: #f3f7f7;
  --papier-2: #e7eff0;
  --carte: #ffffff;
  --relais: #1b6f8e;
  --relais-vif: #2a9bc4;
  --relais-soft: #e1f0f6;
  --humain: #d9603f;
  --humain-soft: #fbe9e3;
  --ok: #238a62;
  --ok-soft: #e0f3ea;
  --attente: #b7801f;
  --attente-soft: #faefd6;
  --titre: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --texte: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --rayon: 16px;
  --elan: cubic-bezier(.2, .8, .2, 1);
  --ombre-1: 0 1px 2px rgba(15, 42, 48, .06), 0 10px 26px -18px rgba(15, 42, 48, .35);
  --ombre-2: 0 2px 4px rgba(15, 42, 48, .06), 0 30px 60px -28px rgba(15, 42, 48, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--relais-vif); outline-offset: 2px; border-radius: 4px; }
.cadre { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--relais); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }
section[id] { scroll-margin-top: 84px; }

h1, h2, h3 { font-family: var(--titre); letter-spacing: -.025em; line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.intro { color: var(--encre-2); font-size: 18px; max-width: 62ch; margin-top: 14px; }
.sur-titre { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.sur-titre--clair { color: #a9c3cb; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--relais); box-shadow: 0 0 0 0 rgba(27, 111, 142, .6); animation: pouls 2.2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(27, 111, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(27, 111, 142, 0); } }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font: 600 15px var(--texte); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.bouton--plein { background: var(--relais); color: #fff; box-shadow: 0 12px 26px -14px rgba(27, 111, 142, .9); }
.bouton--plein:hover { background: #155a74; transform: translateY(-1px); }
.bouton--ligne { background: var(--carte); color: var(--encre); border-color: #b9c9cd; }
.bouton--ligne:hover { background: var(--papier-2); }
.bouton--clair { background: #fff; color: var(--encre); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6); }
.bouton--clair:hover { background: var(--relais-soft); transform: translateY(-1px); }
.bouton--mini { min-height: 40px; padding: 0 14px; font-size: 13px; }
.bouton--grand { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* ---------- En-tête ---------- */
.tete { position: sticky; top: 0; z-index: 30; background: rgba(243, 247, 247, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.tete.est-defilee { box-shadow: 0 8px 24px -18px rgba(15, 42, 48, .35); }
.tete-ligne { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.marque { color: var(--encre); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.marque-nom { font: 700 21px/1 var(--titre); letter-spacing: -.02em; }
.marque-nom b { color: var(--relais); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--relais); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--elan); }
.nav a:hover::after { transform: scaleX(1); }
.tete-cta { min-height: 42px; padding: 0 16px; font-size: 14px; white-space: nowrap; }

/* ---------- Héros ---------- */
.heros { padding: 72px 0 84px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.heros-fond { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 520px at 85% 10%, rgba(42, 155, 196, .16), transparent 60%), radial-gradient(700px 420px at 10% 90%, rgba(217, 96, 63, .10), transparent 60%);
}
.heros-fond::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 42, 48, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%); }
.heros-grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.heros h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; }
.heros h1 span { color: var(--relais); }
.chapo { margin-top: 20px; font-size: 19px; color: var(--encre-2); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.garanties { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.garanties li { position: relative; padding-left: 20px; }
.garanties li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--humain); }

/* la boîte de réception */
.boite { position: relative; background: var(--carte); border: 1px solid var(--line); border-radius: var(--rayon); box-shadow: var(--ombre-2); padding: 18px 18px 14px; }
.boite-mention { display: flex; gap: 10px; align-items: center; font: 500 11px/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }
.boite-mention span { background: var(--attente-soft); color: #7a5410; border-radius: 6px; padding: 2px 8px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.boite-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.boite-tete b { display: block; font: 700 17px var(--titre); letter-spacing: -.01em; }
.boite-tete span { color: var(--muted); font-size: 13.5px; }
.compteurs { display: flex; gap: 16px; flex-shrink: 0; font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.compteurs span { white-space: nowrap; }
.compteurs b { display: block; font: 700 22px/1 var(--titre); color: var(--encre); letter-spacing: -.02em; }
.compteurs b.est-humain { color: var(--humain); }
.compteurs b.est-ok { color: var(--ok); }
.demandes { margin-top: 10px; display: grid; gap: 8px; }
.demandes li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px 12px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: var(--papier); opacity: 0; transform: translateY(10px); transition: opacity .45s var(--elan), transform .45s var(--elan), background .3s, border-color .3s; cursor: default; }
.demandes li.est-arrivee { opacity: 1; transform: none; }
.demandes li.est-finie[data-issue="auto"] { background: #fff; border-color: #cfe6d9; }
.demandes li.est-finie[data-issue="humain"] { background: #fff; border-color: #f0c9bd; }
.demandes li:hover, .demandes li:focus { border-color: var(--relais-vif); outline: none; }
.canal { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--relais-soft); color: var(--relais); }
.canal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dem-corps { min-width: 0; }
.dem-texte { font-size: 15px; line-height: 1.4; color: var(--encre); }
.dem-texte i { font-style: normal; color: var(--muted); font-size: 13px; }
.dem-etapes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; font: 500 11px/1.4 var(--mono); }
.dem-etapes span { border-radius: 6px; padding: 2px 8px; background: var(--papier-2); color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity .35s var(--elan), transform .35s var(--elan); }
.demandes li.est-accusee .et-accuse { opacity: 1; transform: none; background: var(--relais-soft); color: var(--relais); }
.demandes li.est-classee .et-motif { opacity: 1; transform: none; }
.demandes li.est-finie .et-issue { opacity: 1; transform: none; }
.demandes li[data-issue="auto"] .et-issue { background: var(--ok-soft); color: var(--ok); }
.demandes li[data-issue="humain"] .et-issue { background: var(--humain-soft); color: #a3391e; }
.dem-heure { font: 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.boite-detail { margin-top: 12px; min-height: 42px; font-size: 13.5px; color: var(--encre-2); border-left: 3px solid var(--relais-soft); padding: 4px 0 4px 12px; transition: border-color .25s; }
.boite-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.boite-pied b { color: var(--ok); font-weight: 600; }

/* ---------- Constat ---------- */
.constat { padding: 84px 0 72px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.trois article { background: var(--carte); border: 1px solid var(--line); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre-1); }
.trois h3 { margin-bottom: 10px; }
.trois p { color: var(--encre-2); font-size: 16px; }
[data-apparait] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--elan), transform .6s var(--elan); }
[data-apparait].est-vu { opacity: 1; transform: none; }
.anime-pret [data-apparait]:nth-child(2) { transition-delay: .08s; }
.anime-pret [data-apparait]:nth-child(3) { transition-delay: .16s; }
.anime-pret [data-apparait]:nth-child(4) { transition-delay: .24s; }

/* ---------- La ligne ---------- */
.ligne { padding: 84px 0; background: var(--encre); color: #eef5f6; position: relative; overflow: hidden; }
.ligne h2 { color: #fff; }
.ligne .intro { color: #b9cfd5; }
.ligne-grille { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; margin-top: 36px; align-items: stretch; }
.ligne-col { padding: 28px; border-radius: var(--rayon); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.ligne-col h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; margin-bottom: 18px; }
.ligne-col--auto h3 { color: var(--relais-vif); }
.ligne-col--humain h3 { color: #ff9a7c; }
.ligne-col li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 16px; color: #e5eef0; }
.ligne-col li::before { content: ""; position: absolute; left: 0; top: 17px; width: 16px; height: 16px; border-radius: 50%; }
.ligne-col--auto li::before { background: var(--relais-soft); box-shadow: inset 0 0 0 5px var(--relais); }
.ligne-col--humain li::before { background: var(--humain-soft); box-shadow: inset 0 0 0 5px var(--humain); }
.ligne-trait { position: relative; }
.ligne-trait::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--humain); border-radius: 2px; transform: scaleY(0); transform-origin: top; transition: transform 1.1s var(--elan) .2s; box-shadow: 0 0 24px rgba(217, 96, 63, .7); }
.ligne.est-vue .ligne-trait::before { transform: scaleY(1); }
.ligne-trait span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ff9a7c; background: var(--encre); padding: 6px 10px; }
.ligne-note { margin-top: 24px; color: #b9cfd5; font-size: 15px; max-width: 70ch; }

/* ---------- Parcours ---------- */
.parcours { padding: 90px 0; }
.parcours-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
.parcours-tete { position: sticky; top: 96px; align-self: start; }
.parcours-tete p:not(.sur-titre) { margin-top: 14px; color: var(--encre-2); font-size: 17px; }
.rail { margin-top: 28px; width: 4px; height: 200px; border-radius: 2px; background: var(--papier-2); overflow: hidden; }
.rail i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--relais-vif), var(--relais)); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--elan); }
.etapes { display: grid; gap: 14px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 22px; background: var(--carte); border: 1px solid var(--line); border-radius: var(--rayon); opacity: .55; transform: translateX(8px); transition: opacity .45s var(--elan), transform .45s var(--elan), box-shadow .45s, border-color .45s; }
.etapes li.est-active { opacity: 1; transform: none; box-shadow: var(--ombre-1); border-color: #bfd9e2; }
.etapes li.est-active .etape-ico { background: var(--relais); color: #fff; }
.etapes li.etape--humain.est-active .etape-ico { background: var(--humain); }
.etape-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--relais-soft); color: var(--relais); transition: background .3s, color .3s; position: relative; }
.etape-ico::after { content: counter(etape, decimal-leading-zero); position: absolute; right: -6px; top: -8px; font: 500 10px var(--mono); background: var(--encre); color: #fff; border-radius: 6px; padding: 2px 5px; }
.etape-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.etapes h3 { margin-bottom: 6px; grid-column: 2; }
.etapes p { color: var(--encre-2); font-size: 15.5px; grid-column: 2; }
.etapes .etape-ico { grid-row: 1 / span 2; }
.parcours-tete p.telephone { color: #eef5f6; }
.telephone { margin-top: 26px; padding: 16px 18px 18px; background: var(--encre); color: #eef5f6; border-radius: 18px 18px 18px 4px; box-shadow: var(--ombre-1); font-size: 15px; line-height: 1.5; max-width: 420px; }
.telephone .sur-titre { color: #a9c3cb; margin-bottom: 6px; }
.telephone q { quotes: '« ' ' »'; }
.telephone q::after { content: ' »'; }

/* ---------- La journée ---------- */
.journee { padding: 84px 0; background: var(--carte); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journee-cadre { margin-top: 30px; background: var(--papier); border: 1px solid var(--line); border-radius: var(--rayon); padding: 22px 22px 16px; }
.journee-mention { display: flex; gap: 10px; align-items: center; font: 500 11px/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 14px; }
.journee-mention span { background: var(--attente-soft); color: #7a5410; border-radius: 6px; padding: 2px 8px; letter-spacing: .06em; text-transform: uppercase; }
.heures { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; }
.heures li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; border-radius: 8px; padding: 0 2px; cursor: default; }
.heures li:hover, .heures li.est-active, .heures li:focus { background: rgba(27, 111, 142, .08); outline: none; }
.heures i { display: block; min-height: 3px; border-radius: 4px 4px 2px 2px; transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--elan); }
.heures .b-auto { background: var(--relais); }
.heures .b-humain { background: var(--humain); }
.heures .b-attente { background: #c9d6d9; }
.journee.est-vue .heures i { transform: scaleY(1); }
.heures li:nth-child(n) i { transition-delay: calc(var(--i, 0) * 60ms); }
.heures span { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font: 500 10.5px var(--mono); color: var(--muted); }
.journee-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 36px; font-size: 13.5px; color: var(--muted); }
.journee-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.journee-detail { margin-top: 12px; min-height: 24px; font-size: 15px; color: var(--encre-2); }

/* ---------- Données de santé ---------- */
.donnees { padding: 90px 0; }
.donnees-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.donnees-texte p:not(.sur-titre) { margin-top: 14px; color: var(--encre-2); }
.principes { display: grid; gap: 12px; }
.principes li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 18px; background: var(--carte); border: 1px solid var(--line); border-radius: 14px; }
.principes li b { display: block; font-weight: 600; margin-bottom: 2px; }
.principes li span { color: var(--encre-2); font-size: 15px; }
.principe-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--relais-soft); color: var(--relais); display: grid; place-items: center; }
.principe-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cadre-juridique { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--humain-soft); border: 1px solid #f0c9bd; color: #5a2a1c; font-size: 15px; }
.cadre-juridique a { color: #a3391e; }
.cadre-juridique .verif { display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #a3391e; }

/* ---------- Pilote ---------- */
.pilote { padding: 84px 0; background: var(--carte); border-top: 1px solid var(--line); }
.semaines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.semaines li { position: relative; padding: 22px 20px 20px; background: var(--papier); border: 1px solid var(--line); border-radius: var(--rayon); }
.semaines li::before { content: attr(data-sem); display: inline-block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--relais); background: var(--relais-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 12px; }
.semaines h3 { font-size: 17px; margin-bottom: 8px; }
.semaines p { color: var(--encre-2); font-size: 15px; }
.pilote-note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* ---------- Limites ---------- */
.limites { padding: 84px 0; background: var(--encre); color: #eef5f6; }
.limites h2 { color: #fff; }
.barre { position: relative; display: inline-block; }
.barre::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 4px; background: var(--humain); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--elan) .3s; }
.limites.est-vue .barre::after { transform: scaleX(1); }
.limites-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.limites-liste li { padding: 22px 24px; border-radius: var(--rayon); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.limites-liste h3 { color: #fff; margin-bottom: 8px; }
.limites-liste p { color: #b9cfd5; font-size: 15.5px; }

/* ---------- Cabinets pilotes ---------- */
.pilotes { padding: 90px 0 100px; }
.pilotes-carte { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; background: linear-gradient(135deg, var(--relais) 0%, #134f66 100%); color: #fff; border-radius: 24px; padding: 48px; box-shadow: var(--ombre-2); position: relative; overflow: hidden; }
.pilotes-carte::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.pilotes h2 { color: #fff; }
.pilotes-texte p:not(.sur-titre) { margin-top: 14px; color: #dbeaf0; font-size: 17px; }
.pilotes-texte .bouton { margin-top: 26px; }
.pilotes-note { font-size: 14px !important; color: #b9d6e1 !important; margin-top: 12px !important; }
.mesures { display: grid; gap: 10px; align-self: center; position: relative; }
.mesures li { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.mesures b { display: block; font-family: var(--titre); font-weight: 700; }
.mesures span { color: #dbeaf0; font-size: 14px; }

/* ---------- Pied ---------- */
.pied { padding: 36px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--papier); }
.pied-ligne { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; }
.pied-marque { font: 700 18px var(--titre); color: var(--encre); letter-spacing: -.02em; }
.pied-marque b { color: var(--relais); }
.pied-marque .par { font: 500 12px var(--mono); color: var(--muted); text-decoration: none; margin-left: 10px; }
.pied-marque .par:hover { color: var(--relais); text-decoration: underline; }
.pied-texte { max-width: 60ch; }
.pied nav { display: flex; gap: 18px; }
.pied nav a { color: var(--encre-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pied nav a:hover { text-decoration: underline; }

/* ---------- Pages texte ---------- */
.page-texte { padding: 64px 0 90px; }
.page-texte .cadre { max-width: 760px; }
.page-texte h1 { font-size: clamp(30px, 4vw, 42px); }
.page-texte .maj { color: var(--muted); font: 500 12px var(--mono); margin: 10px 0 30px; letter-spacing: .06em; }
.page-texte h2 { font-size: 22px; margin: 34px 0 10px; }
.page-texte p, .page-texte li { color: var(--encre-2); margin-bottom: 10px; }
.page-texte ul { list-style: disc; padding-left: 22px; }
.page-texte a { color: var(--relais); }

/* ---------- Consentement ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--encre); color: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--ombre-2); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.consent p { font-size: 14px; color: #c7d9df; }
.consent-actions { display: flex; gap: 8px; }
.consent-btn { min-height: 42px; padding: 0 16px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.consent-btn--oui { background: #fff; color: var(--encre); border-color: #fff; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-apparait], .demandes li, .dem-etapes span { opacity: 1 !important; transform: none !important; }
  .heures i, .ligne-trait::before, .barre::after, .rail i { transform: none !important; }
  .etapes li { opacity: 1; transform: none; }
}

/* ---------- Écrans ---------- */
@media (max-width: 1000px) {
  .heros-grille, .parcours-grille, .donnees-grille { grid-template-columns: 1fr; gap: 36px; }
  .parcours-tete { position: static; }
  .rail { display: none; }
  .trois { grid-template-columns: 1fr; }
  .semaines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilotes-carte { grid-template-columns: 1fr; padding: 32px; }
  .ligne-grille { grid-template-columns: 1fr; gap: 18px; }
  .ligne-trait { height: 56px; }
  .ligne-trait::before { left: 0; right: 0; top: 50%; bottom: auto; height: 3px; width: auto; margin: 0; transform: scaleX(0); transform-origin: left; }
  .ligne.est-vue .ligne-trait::before { transform: scaleX(1); }
  .ligne-trait span { transform: translate(-50%, -50%); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .heros { padding: 44px 0 56px; }
  .heros h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .chapo { font-size: 17px; }
  .boite { padding: 14px 12px 12px; }
  .boite-tete { flex-direction: column; align-items: flex-start; }
  .demandes li { grid-template-columns: 30px 1fr; }
  .dem-heure { grid-column: 2; }
  .canal { width: 30px; height: 30px; }
  .heures { grid-template-columns: repeat(12, minmax(0, 1fr)); height: 150px; gap: 3px; }
  .heures span { font-size: 9px; }
  .heures li:nth-child(even) span { display: none; }
  .semaines, .limites-liste { grid-template-columns: 1fr; }
  .pied-ligne { grid-template-columns: 1fr; }
  .consent { grid-template-columns: 1fr; }
  .pilotes-carte { padding: 26px 20px; }
  .bouton--grand { width: 100%; }
  .ligne-col { padding: 20px; }
}
