/* MeditaCare — jetons tirés de la charte (violet #3D225C, soleil #FFD500, Montserrat) et du fond de la PWA.
   Contrastes mesurés : encre / aube lilas 12,9:1 · murmure / aube lavande 5,4:1 · encre / soleil 9,5:1 · soleil / nuit 12,1:1 · sur-nuit-2 / nuit 10,2:1. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/fraunces-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/fraunces-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/montserrat-latin.woff2') format('woff2'); }

:root {
  /* aube : le fond de l'application */
  --aube-peche: #FCE3D1;
  --aube-rose: #F6D7E4;
  --aube-lilas: #EBDAEE;
  --aube-lavande: #DBD6F1;
  --aube: radial-gradient(120% 60% at 88% 0%, var(--aube-peche) 0%, rgb(252 227 209 / 0) 60%), linear-gradient(172deg, var(--aube-rose) 0%, var(--aube-lilas) 46%, var(--aube-lavande) 100%);

  /* encre et voix */
  --encre: #3D225C;
  --encre-2: #4A3566;
  --murmure: #5E4A7A;
  --filet: rgb(61 34 92 / .16);
  --filet-fort: #3D225C;
  --voile: rgb(255 255 255 / .58);
  --voile-fort: rgb(255 255 255 / .82);

  /* soleil : l'accent unique, en aplat seulement sur fond clair */
  --soleil: #FFD500;
  --soleil-clair: #FFE766;
  --soleil-pale: #FFF3B0;
  --accent: var(--soleil);

  /* nuit : la seule bande sombre */
  --nuit: #24133A;
  --nuit-2: #33204D;
  --sur-nuit: #F7F2FB;
  --sur-nuit-2: #D4C8E3;
  --filet-nuit: rgb(247 242 251 / .2);

  /* alerte (garde-fou de l'outil) */
  --alerte: #8E2F4B;
  --alerte-fond: #F9E3EA;

  /* typographie */
  --titre: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --texte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-etiquette: 13px;
  --t-petit: 15px;
  --t-interface: 16px;
  --t-corps: 18px;
  --t-chapo: clamp(19px, 1.2vw + 13px, 22px);
  --t-h3: clamp(21px, 1vw + 15px, 26px);
  --t-h2: clamp(32px, 3.4vw + 14px, 56px);
  --t-h1: clamp(40px, 5vw + 16px, 86px);
  --t-affiche: clamp(46px, 6.4vw + 12px, 104px);

  /* espace et gabarits */
  --gouttiere: clamp(18px, 4vw, 56px);
  --largeur: 1240px;
  --mesure: 64ch;
  --respiration: clamp(72px, 10vw, 150px);
  --barre-h: 76px;
  --rayon: 22px;
  --rayon-petit: 14px;
  --pilule: 999px;

  /* mouvement : lent, sans rebond */
  --sortie: cubic-bezier(.2, .7, .2, 1);
  --souffle: 8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barre-h) + 12px); }
body {
  margin: 0;
  background: var(--aube-lilas);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-corps);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: var(--aube); pointer-events: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
.nuit :focus-visible, .pied :focus-visible { outline-color: var(--soleil); }
p { margin: 0 0 1em; max-width: var(--mesure); }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; font-weight: 350; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 500; }
h1 em, h2 em, h3 em { font-family: var(--titre); font-style: italic; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
blockquote { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--encre); color: var(--sur-nuit); padding: 12px 18px; border-radius: var(--rayon-petit); font-weight: 600; }
.evitement:focus { top: 12px; }

.embleme { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

.etiquette { font-family: var(--texte); font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--murmure); margin: 0 0 18px; }
.chapo { font-size: var(--t-chapo); line-height: 1.6; color: var(--encre-2); }
.devise { font-family: var(--titre); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--encre-2); margin: 0; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--pilule);
  font-family: var(--texte); font-size: var(--t-interface); font-weight: 700; line-height: 1.25; text-decoration: none; text-align: center;
  transition: transform .3s var(--sortie), box-shadow .3s var(--sortie), background-color .3s;
}
.bouton--soleil { background: var(--soleil); color: var(--encre); box-shadow: 0 10px 28px -14px rgb(61 34 92 / .55); }
.bouton--soleil:hover { background: var(--soleil-clair); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgb(61 34 92 / .5); }
.bouton--encre { background: var(--encre); color: var(--sur-nuit); }
.bouton--encre:hover { background: var(--nuit-2); transform: translateY(-2px); }
.lien-fleche { display: inline-block; padding: 10px 0; line-height: 1.5; font-weight: 600; font-size: var(--t-interface); text-decoration: underline; text-decoration-thickness: 1px; }
.lien-fleche::after { content: '\a0\a0\2192'; font-family: var(--texte); }
button.lien-fleche { border: 0; background: none; color: inherit; cursor: pointer; font-family: var(--texte); }

.cadre { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }

/* ---------- barre ---------- */
.barre { position: sticky; top: 0; z-index: 40; transition: background-color .35s, box-shadow .35s, border-color .35s; border-bottom: 1px solid transparent; background: rgb(250 241 248 / .9); }
.js .barre { background: transparent; }
body[data-page="home"] .barre { position: fixed; inset: 0 0 auto; }
.js .barre.est-givree, .js body:not([data-page="home"]) .barre { background: rgb(250 241 248 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--filet); box-shadow: 0 6px 24px -18px rgb(61 34 92 / .5); }
.barre__rang { display: flex; align-items: center; gap: 24px; min-height: var(--barre-h); width: min(100% - 2 * var(--gouttiere), 1360px); margin-inline: auto; }
.barre__marque { flex: none; display: block; padding: 6px 0; }
.barre__marque img { width: 128px; height: auto; }
.barre__nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.barre__liens { display: flex; gap: 4px; }
.barre__liens a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: var(--t-petit); font-weight: 600; text-decoration: none; color: var(--encre); }
.barre__liens a:hover { background: var(--voile); }
.barre__liens a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 3px; text-underline-offset: .45em; }
.barre__appel { min-height: 46px; padding: 10px 20px; font-size: var(--t-petit); }
.barre__menu { display: none; }

@media (max-width: 1020px) {
  .js .barre__menu { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--filet); border-radius: 14px; background: var(--voile-fort); color: var(--encre); cursor: pointer; }
  .barre__menu-traits, .barre__menu-traits::before, .barre__menu-traits::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--sortie), opacity .2s; }
  .barre__menu-traits { position: relative; }
  .barre__menu-traits::before, .barre__menu-traits::after { content: ''; position: absolute; left: 0; }
  .barre__menu-traits::before { transform: translateY(-7px); }
  .barre__menu-traits::after { transform: translateY(7px); }
  .barre__menu[aria-expanded="true"] .barre__menu-traits { background: transparent; }
  .barre__menu[aria-expanded="true"] .barre__menu-traits::before { transform: rotate(45deg); }
  .barre__menu[aria-expanded="true"] .barre__menu-traits::after { transform: rotate(-45deg); }
  .js .barre__nav { display: none; position: fixed; inset: var(--barre-h) 0 auto; max-height: calc(100svh - var(--barre-h)); overflow: auto; flex-direction: column; align-items: stretch; gap: 18px; padding: 18px var(--gouttiere) 28px; background: #FBF5FA; border-bottom: 1px solid var(--filet); box-shadow: 0 24px 40px -24px rgb(61 34 92 / .45); }
  .js .barre.menu-ouvert .barre__nav { display: flex; }
  .js .barre.menu-ouvert { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FBF5FA; }
  .barre__liens { flex-direction: column; }
  .barre__liens a { min-height: 54px; font-size: 19px; border-bottom: 1px solid var(--filet); border-radius: 0; padding: 0 4px; }
  html:not(.js) .barre__rang { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .barre__nav { flex-wrap: wrap; margin-left: 0; }
  html:not(.js) .barre__liens { flex-direction: row; flex-wrap: wrap; }
}
html.menu-bloque { overflow: hidden; }

/* ---------- ouverture (héros à sceau) ---------- */
.ouverture { position: relative; isolation: isolate; min-height: 100svh; padding: calc(var(--barre-h) + clamp(28px, 5vw, 70px)) 0 clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.aube { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aube span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; }
.aube span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: 8%; background: var(--aube-rose); }
.aube span:nth-child(2) { width: 38vw; height: 38vw; right: -6vw; top: -10%; background: var(--aube-peche); }
.aube span:nth-child(3) { width: 34vw; height: 34vw; left: 38%; bottom: -14%; background: var(--aube-lavande); }
.motion .aube span { animation: derive 26s ease-in-out infinite alternate; }
.motion .aube span:nth-child(2) { animation-duration: 31s; animation-delay: -9s; }
.motion .aube span:nth-child(3) { animation-duration: 23s; animation-delay: -4s; }
@keyframes derive { to { transform: translate(4vw, -3vw) scale(1.08); } }

.ouverture__grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.ouverture h1 { max-width: 13.5em; margin-bottom: 26px; }
.ouverture .chapo { max-width: 34em; }
.ouverture__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 32px 0 22px; }

.sceau { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; display: grid; place-items: center; }
.sceau > * { grid-area: 1 / 1; }
.soleil { position: relative; width: 74%; aspect-ratio: 1; display: grid; place-items: center; transform: translate(14%, -16%); }
.soleil > span { grid-area: 1 / 1; border-radius: 50%; }
.soleil__halo { width: 100%; height: 100%; background: radial-gradient(circle, rgb(255 213 0 / .5) 0%, rgb(255 213 0 / .18) 42%, rgb(255 213 0 / 0) 70%); }
.soleil__coeur { width: 46%; height: 46%; background: radial-gradient(circle at 42% 38%, var(--soleil-pale) 0%, var(--soleil-clair) 45%, var(--soleil) 78%); filter: blur(4px); }
.motion .soleil > span { animation: respire var(--souffle) cubic-bezier(.33, 0, .2, 1) infinite; }
@keyframes respire { 0%, 100% { transform: scale(.88); opacity: .82; } 50% { transform: scale(1.04); opacity: 1; } }
.sceau__disque { width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .75), rgb(255 255 255 / .28) 72%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 30px 60px -40px rgb(61 34 92 / .5); }
.sceau__anneau { width: 100%; height: 100%; overflow: visible; }
.sceau__anneau text { font-family: var(--texte); font-size: 15.5px; font-weight: 600; letter-spacing: .32em; fill: var(--encre); }
.motion .sceau__anneau { animation: tourne 90s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.sceau__silhouette { width: 30%; overflow: visible; fill: none; stroke: var(--encre); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.motion .sceau__silhouette > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 2.6s cubic-bezier(.45, 0, .2, 1) .2s forwards; }
.motion .sceau__silhouette path { animation-delay: .9s; }
@keyframes trace { to { stroke-dashoffset: 0; } }

.fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: clamp(36px, 5vw, 64px) auto 0; border-top: 2px solid var(--filet-fort); border-bottom: 1px solid var(--filet); }
.fiche > div { padding: 22px 22px 22px 0; }
.fiche > div + div { padding-left: 22px; border-left: 1px solid var(--filet); }
.fiche dt { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--murmure); margin-bottom: 6px; }
.fiche dd { font-family: var(--titre); font-size: 20px; line-height: 1.3; }

.pause { position: absolute; right: var(--gouttiere); bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--filet); border-radius: var(--pilule); background: var(--voile); color: var(--encre); font: 600 var(--t-etiquette) / 1 var(--texte); letter-spacing: .04em; cursor: pointer; }
.pause:hover { background: var(--voile-fort); }
.pause__signe { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.pause[aria-pressed="true"] .pause__signe { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
html.en-pause *, html.en-pause *::before, html.en-pause *::after { animation-play-state: paused !important; }

/* ---------- intention (phrase qui change de voix) ---------- */
.intention { position: relative; padding: var(--respiration) var(--gouttiere); }
.js.motion .intention { height: 230svh; padding: 0; }
.intention__scene { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.js.motion .intention__scene { position: sticky; top: 0; height: 100svh; padding: 90px var(--gouttiere); }
.intention__phrase { font-family: var(--texte); font-weight: 300; font-size: clamp(32px, 5.6vw, 84px); line-height: 1.2; letter-spacing: -.01em; color: var(--murmure); max-width: 12em; }
.intention__phrase .w { display: inline-grid; vertical-align: baseline; }
.intention__phrase .w > span { grid-area: 1 / 1; }
.intention__phrase .w-froid { font-size: .86em; align-self: center; opacity: calc(1 - var(--m, 0)); transform: translateY(calc(var(--m, 0) * -.25em)); }
.intention__phrase .w-chaud { justify-self: center; font-family: var(--titre); font-style: italic; letter-spacing: -.01em; font-size: 1.08em; color: var(--encre); opacity: var(--m, 0); transform: translateY(calc((1 - var(--m, 0)) * .3em)) rotate(calc((1 - var(--m, 0)) * -6deg)) scale(calc(.85 + var(--m, 0) * .15)); }
.intention__definition { margin: 34px auto 0; max-width: 40em; font-size: var(--t-chapo); line-height: 1.6; color: var(--encre-2); }
.js.motion .intention__definition { opacity: var(--d, 0); transform: translateY(calc((1 - var(--d, 0)) * 20px)); }

/* ---------- espace (schéma signature) ---------- */
.espace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding: var(--respiration) 0; }
.espace h2 { margin-bottom: 28px; }
.schema { margin: 0; }
.schema svg { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.schema__ample { fill: none; stroke: var(--encre); stroke-opacity: .28; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.schema__tension circle { fill: none; stroke: var(--encre); stroke-width: 3; stroke-dasharray: 10 6; }
.schema__silhouette { fill: none; stroke: var(--encre); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.schema .arret-1 { stop-color: var(--soleil-pale); }
.schema .arret-2 { stop-color: var(--soleil); stop-opacity: .55; }
.schema .arret-3 { stop-color: var(--soleil); stop-opacity: 0; }
.mot { font-family: var(--texte); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--murmure); text-anchor: middle; }
.schema__cote path { fill: none; stroke: var(--encre); stroke-width: 2; }
.schema__cote text { font-family: var(--titre); font-style: italic; font-size: 20px; fill: var(--encre); }
.schema__tension, .schema__lumiere, .mot, .schema__cote { transform-box: fill-box; transform-origin: center; }
/* état final servi par défaut : tension ouverte et effacée */
.schema__tension { opacity: 0; transform: scale(1.6); }
.schema.est-arme .schema__tension { opacity: 1; transform: none; }
.schema.est-arme .mot { transform: translate(calc(var(--tx) * 1px), calc(var(--ty) * 1px)); fill: var(--encre); }
.schema.est-arme .schema__lumiere { opacity: 0; transform: translateY(-160%); }
.schema.est-arme .schema__cote { opacity: 0; }
.schema.est-joue .schema__tension { animation: tension-ouvre 1.6s cubic-bezier(.45, 0, .25, 1) .3s both; }
.schema.est-joue .mot { animation: mots-ecartent 2.4s cubic-bezier(.22, .7, .25, 1) .6s both; }
.schema.est-joue .schema__lumiere { animation: lumiere-pose 2.2s cubic-bezier(.22, .7, .25, 1) 2.2s both; }
.schema.est-joue .schema__cote { animation: apparait 1.4s ease 4.1s both; }
@keyframes tension-ouvre { 0% { opacity: 1; transform: none; } 35% { opacity: 1; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes mots-ecartent { from { transform: translate(calc(var(--tx) * 1px), calc(var(--ty) * 1px)); fill: var(--encre); } to { transform: none; fill: var(--murmure); } }
@keyframes lumiere-pose { 0% { opacity: 0; transform: translateY(-160%); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.schema.est-fondu .schema__tension { animation: fondu-sort 1.4s ease .4s both; }
.schema.est-fondu .mot { transform: none; animation: apparait 1.6s ease .6s both; }
.schema.est-fondu .schema__lumiere { transform: none; animation: apparait 1.8s ease 2s both; }
.schema.est-fondu .schema__cote { animation: apparait 1.2s ease 3.8s both; }
@keyframes fondu-sort { from { opacity: 1; transform: none; } to { opacity: 0; transform: none; } }
.schema figcaption { margin-top: 18px; text-align: center; }
.schema blockquote p { margin: 0 auto 6px; font-family: var(--titre); font-style: italic; font-size: var(--t-chapo); line-height: 1.45; max-width: 26em; }
.schema figcaption span { font-size: var(--t-petit); color: var(--murmure); }

/* ---------- portes (colonnes à filets) ---------- */
.portes { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding: 0 0 var(--respiration); }
.portes__tete { max-width: 44em; margin-bottom: clamp(36px, 5vw, 60px); }
.portes__tete h2 { margin-bottom: 22px; }
.colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--filet-fort); counter-reset: none; }
.colonnes > li { position: relative; padding: 30px 28px 36px; border-right: 1px solid var(--filet); }
.colonnes > li:first-child { padding-left: 0; }
.colonnes > li:last-child { border-right: 0; }
.colonnes > li::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--soleil); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--sortie); }
@media (hover: hover) { .colonnes > li:hover::before, .colonnes > li:focus-within::before { transform: scaleX(1); } }
.colonnes__num { display: block; font-family: var(--titre); font-style: italic; font-weight: 500; font-size: 44px; line-height: 1; color: var(--encre); margin-bottom: 18px; }
.colonnes h3 { margin-bottom: 14px; }
.colonnes h3 a { text-decoration: none; }
.colonnes h3 a::after { content: ''; position: absolute; inset: 0; }
.colonnes h3 a:hover { text-decoration: underline; }
.colonnes p { font-size: 17px; line-height: 1.7; color: var(--encre-2); margin: 0; }
.portes__aussi { margin-top: 28px; font-size: var(--t-interface); color: var(--encre-2); }

/* ---------- rien à réussir ---------- */
.rien { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding: 0 0 var(--respiration); }
.question-courte { display: flex; flex-direction: column; gap: 6px; margin-bottom: 32px; }
.question-courte__q { font-size: var(--t-h2); line-height: 1.1; opacity: .85; }
.question-courte__r { font-size: var(--t-affiche); line-height: .98; font-weight: 500; letter-spacing: -.025em; }
.rien__chute { font-family: var(--titre); font-style: italic; font-size: var(--t-h3); line-height: 1.35; margin-top: 30px; }
.appli { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--voile); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9); }
.roue { display: grid; gap: 10px; margin-bottom: 28px; perspective: 600px; }
.roue li { padding: 16px 20px; border-radius: 18px; background: var(--voile-fort); font-size: var(--t-petit); font-weight: 600; line-height: 1.35; box-shadow: 0 8px 24px -18px rgb(61 34 92 / .5); }
.roue li:nth-child(1), .roue li:nth-child(7) { opacity: .45; transform: rotateX(28deg) scale(.9); }
.roue li:nth-child(1) { transform: rotateX(-28deg) scale(.9); }
.roue li:nth-child(2), .roue li:nth-child(6) { opacity: .72; transform: rotateX(14deg) scale(.95); }
.roue li:nth-child(2) { transform: rotateX(-14deg) scale(.95); }
.roue__centre { background: var(--soleil) !important; }
.appli__regles { display: grid; gap: 16px; }
.appli__regles > div { border-top: 1px solid var(--filet); padding-top: 14px; }
.appli__regles dt { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--murmure); }
.appli__regles dd { font-size: 16px; line-height: 1.6; color: var(--encre-2); }

/* ---------- nuit (question finale + écrin) ---------- */
.nuit { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: var(--respiration) max(var(--gouttiere), (100% - var(--largeur)) / 2); background: radial-gradient(90% 120% at 100% 0%, var(--nuit-2), var(--nuit)); color: var(--sur-nuit); }
.nuit .etiquette { color: var(--sur-nuit-2); }
.nuit h2 { margin-bottom: 36px; }
.nuit__filigrane { position: absolute; z-index: -1; left: -4%; bottom: -18%; width: min(46vw, 520px); height: auto; aspect-ratio: 112 / 170; color: var(--sur-nuit); opacity: .07; stroke-width: 4; }
.reponses { display: grid; border-top: 1px solid var(--filet-nuit); }
.reponses a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 18px 0; border-bottom: 1px solid var(--filet-nuit); font-family: var(--titre); font-size: clamp(20px, 1.2vw + 14px, 26px); line-height: 1.3; text-decoration: none; }
.reponses a::after { content: '→'; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filet-nuit); font-family: var(--texte); font-size: 18px; transition: background-color .3s, color .3s, transform .3s var(--sortie); }
.reponses a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.reponses a:hover::after { background: var(--soleil); color: var(--nuit); transform: translateX(4px); }
.ecrin { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 44px); border: 1px solid var(--filet-nuit); border-radius: 30px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgb(255 213 0 / .2), rgb(255 213 0 / 0) 62%), rgb(255 255 255 / .04); }
.ecrin::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 50% 0%, rgb(255 213 0 / .05) 0 1px, transparent 1px 22px); -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.ecrin__embleme { width: 40px; height: 60px; margin: 0 auto 18px; color: var(--soleil); stroke-width: 8; }
.ecrin h3 { font-size: clamp(26px, 1.6vw + 16px, 34px); margin-bottom: 10px; }
.ecrin p { margin-inline: auto; color: var(--sur-nuit-2); font-size: 16px; line-height: 1.6; }
.qr { display: grid; place-items: center; width: min(200px, 70%); aspect-ratio: 1; margin: 22px auto; border-radius: 18px; background: var(--sur-nuit); color: var(--encre); }
.qr img { width: 100%; height: auto; border-radius: 18px; }
.qr { padding: 10px; background: #fff; }
.qr img { border-radius: 8px; }
.ecrin .bouton { margin-bottom: 18px; }
.ecrin__installer { font-size: var(--t-petit) !important; }
.ecrin__note { font-family: var(--titre); font-style: italic; font-size: 19px !important; color: var(--sur-nuit) !important; }
.ecrin__affiche { font-size: var(--t-petit) !important; }
.ecrin__affiche a { color: var(--soleil); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- pied (sous la vague) ---------- */
.pied { margin-top: 0; color: var(--sur-nuit); }
.pied__vague { width: 100%; height: clamp(28px, 6vw, 92px); margin-bottom: -1px; fill: var(--nuit); }
main:has(> .nuit:last-child) + .pied .pied__vague { display: none; }
.pied__bloc { background: var(--nuit); padding: clamp(36px, 5vw, 64px) max(var(--gouttiere), (100% - var(--largeur)) / 2) 28px; }
main:has(> .nuit:last-child) + .pied .pied__bloc { border-top: 1px solid var(--filet-nuit); }
.pied__haut { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.pied__logo { display: inline-flex; align-items: flex-end; gap: 12px; text-decoration: none; margin-bottom: 18px; }
.pied__logo .embleme { width: 30px; height: 46px; color: var(--soleil); stroke-width: 8; }
.pied__nom { font-family: var(--texte); font-size: 30px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.pied__nom b { font-weight: 700; }
.pied .devise { color: var(--sur-nuit); margin-bottom: 10px; }
.pied__petit { font-size: var(--t-petit); color: var(--sur-nuit-2); }
.pied__plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pied__titre { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--soleil); margin-bottom: 8px; }
.pied__plan a { display: flex; align-items: center; min-height: 44px; font-size: var(--t-petit); text-decoration: none; color: var(--sur-nuit); }
.pied__plan a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.pied__avertissement { max-width: none; margin: 36px 0 0; padding: 18px 0; border-top: 1px solid var(--filet-nuit); border-bottom: 1px solid var(--filet-nuit); font-size: var(--t-petit); line-height: 1.6; color: var(--sur-nuit-2); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; font-size: var(--t-etiquette); color: var(--sur-nuit-2); letter-spacing: .04em; }

/* ---------- pages intérieures : tête ---------- */
.tete { position: relative; isolation: isolate; width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding: clamp(40px, 7vw, 100px) 0 clamp(36px, 5vw, 64px); }
.tete__filigrane { position: absolute; z-index: -1; right: 0; top: 20px; width: clamp(120px, 20vw, 260px); height: auto; aspect-ratio: 112 / 170; color: var(--encre); opacity: .08; stroke-width: 4; }
.fil { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-petit); color: var(--murmure); margin-bottom: 26px; }
.fil a { display: inline-flex; align-items: center; min-height: 44px; }
.fil li + li::before { content: '/'; margin-right: 6px; }
.fil li { display: inline-flex; align-items: center; }
.tete h1 { max-width: 15em; margin-bottom: 24px; }
.tete .chapo { max-width: 40em; }
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pastilles li { padding: 8px 16px; border-radius: var(--pilule); background: var(--voile-fort); font-size: var(--t-petit); font-weight: 600; }
.bloc { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding: 0 0 var(--respiration); }
.bloc__tete { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.bloc__tete h2 { margin-bottom: 20px; }

/* ---------- méditations ---------- */
.ancres { position: sticky; top: var(--barre-h); z-index: 30; padding: 12px 0; background: rgb(250 241 248 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--filet); }
.ancres__rang { display: flex; align-items: center; gap: 10px; width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.ancres__rang::-webkit-scrollbar { display: none; }
.ancres__titre { flex: none; font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--murmure); margin: 0 6px 0 0; }
.ancres a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--filet-fort); border-radius: 12px; font-size: var(--t-interface); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .25s; }
.ancres a:hover { background: var(--soleil); }
.profil { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding: clamp(56px, 8vw, 110px) 0; border-top: 2px solid var(--filet-fort); scroll-margin-top: calc(var(--barre-h) + 80px); }
.profil:first-of-type { border-top: 0; }
.profil__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.profil__tete h2 { margin-top: 4px; }
.profil__tete .chapo { margin: 0; }
.etagere { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.couverture { display: flex; flex-direction: column; gap: 14px; }
.couverture__visuel { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--encre); background: var(--fond-couv, var(--aube)); box-shadow: 0 14px 28px -18px rgb(61 34 92 / .5), inset 0 0 0 1px rgb(255 255 255 / .7); overflow: hidden; transition: transform .4s var(--sortie); }
.couverture__visuel .embleme { width: 26px; height: 40px; stroke-width: 9; color: var(--encre); opacity: .85; }
.couverture__visuel strong { font-family: var(--titre); font-weight: 500; font-size: 23px; line-height: 1.15; }
@media (hover: hover) { .couverture:hover .couverture__visuel { transform: translateY(-5px) rotate(-1deg); } }
.couverture ul { display: grid; gap: 2px; font-size: var(--t-petit); line-height: 1.5; color: var(--encre-2); }
.couverture li::before { content: '·'; margin-right: 8px; color: var(--encre); font-weight: 700; }
.couleur-1 { --fond-couv: linear-gradient(160deg, #FCE3D1, #F6D7E4); }
.couleur-2 { --fond-couv: linear-gradient(160deg, #F6D7E4, #E6D3F0); }
.couleur-3 { --fond-couv: linear-gradient(160deg, #EBDAEE, #DBD6F1); }
.couleur-4 { --fond-couv: linear-gradient(160deg, #FFF3B0, #FCE3D1); }
.couleur-5 { --fond-couv: linear-gradient(160deg, #DBD6F1, #EBDAEE); }
.couleur-6 { --fond-couv: linear-gradient(160deg, #F6D7E4, #FFF3B0); }
.couleur-7 { --fond-couv: linear-gradient(160deg, #E6D3F0, #FCE3D1); }
.enjeux { display: grid; gap: 16px; }
.enjeu { padding: 26px 28px; border-radius: var(--rayon); background: var(--voile); border-left: 4px solid var(--encre); }
.enjeu h3 { font-style: italic; margin-bottom: 18px; }
.enjeu__colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.enjeu__colonnes h4 { margin: 0 0 6px; font-size: var(--t-petit); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--murmure); }
.enjeu__colonnes p { font-size: 17px; margin: 0 0 8px; }
.enjeu__colonnes a { font-size: var(--t-petit); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.retour { display: inline-flex; align-items: center; min-height: 44px; margin-top: 22px; font-size: var(--t-petit); font-weight: 600; }

/* outil d'orientation */
.outil { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto var(--respiration); padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--voile); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9); scroll-margin-top: calc(var(--barre-h) + 80px); }
.outil__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); margin-bottom: 32px; }
.outil__tete h2 { margin-top: 4px; }
.outil form { display: grid; gap: 18px; }
.outil fieldset { margin: 0; padding: 22px 24px 18px; border: 1px solid var(--filet); border-radius: 18px; background: var(--voile-fort); }
.outil legend { padding: 0 8px; margin-left: -8px; font-family: var(--titre); font-size: 22px; font-weight: 500; }
.outil .indice { margin: 4px 0 12px; font-size: var(--t-petit); color: var(--murmure); }
.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix label { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--filet-fort); border-radius: 14px; font-size: var(--t-interface); font-weight: 500; line-height: 1.3; cursor: pointer; background: #fff; }
.choix input { width: 20px; height: 20px; margin: 0; accent-color: var(--encre); flex: none; }
.choix label:has(input:checked) { background: var(--soleil); border-color: var(--encre); }
.choix label:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 2px; }
.outil fieldset:disabled { opacity: .55; }
.outil fieldset:disabled label { cursor: not-allowed; }
.garde-fou ol { list-style: decimal; padding-left: 22px; margin: 0 0 12px; font-size: 17px; }
.outil__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.outil__actions .bouton { border: 0; cursor: pointer; }
.outil__erreur { color: var(--alerte); font-weight: 600; font-size: var(--t-interface); margin: 0; }
.arret { padding: 22px 24px; border-radius: 18px; border-left: 5px solid var(--alerte); background: var(--alerte-fond); color: var(--encre); }
.arret h3 { margin-bottom: 10px; }
.arret p { margin-bottom: 8px; }
.plan { margin-top: 8px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: #fff; box-shadow: 0 20px 40px -30px rgb(61 34 92 / .5); }
.plan h3 { margin-bottom: 14px; }
.plan__liste { display: grid; gap: 12px; margin: 18px 0; }
.plan__liste li { padding: 16px 18px; border-radius: 16px; background: var(--aube-lilas); }
.plan__liste strong { display: block; font-family: var(--titre); font-weight: 500; font-size: 21px; }
.plan__liste span { display: block; font-size: var(--t-petit); color: var(--encre-2); }
.plan__notes { display: grid; gap: 8px; padding-left: 16px; border-left: 3px solid var(--soleil); font-size: var(--t-petit); color: var(--encre-2); }
.outil__source { margin-top: 18px; font-size: var(--t-petit); color: var(--murmure); max-width: none; }

/* ---------- fondements ---------- */
.definitions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto var(--respiration); }
.definition { padding: clamp(24px, 3vw, 36px); border-radius: var(--rayon); border: 1px solid var(--filet-fort); }
.definition h2, .definition h3 { font-family: var(--texte); font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; color: var(--murmure); }
.definition p { font-size: 17px; margin: 0; }
.definition--nuit { background: var(--nuit); color: var(--sur-nuit); border-color: var(--nuit); }
.definition--nuit h2 { color: var(--sur-nuit-2); }
.definition--nuit p { font-family: var(--titre); font-size: clamp(22px, 1.4vw + 14px, 30px); line-height: 1.35; }
.definition--nuit strong { font-weight: 500; color: var(--soleil); }
.dossier { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding-bottom: var(--respiration); }
.sommaire { position: sticky; top: calc(var(--barre-h) + 24px); align-self: start; max-height: calc(100vh - var(--barre-h) - 48px); overflow: auto; padding-left: 18px; border-left: 2px solid var(--filet); }
.sommaire p { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--murmure); margin-bottom: 8px; }
.sommaire a { display: flex; align-items: center; min-height: 44px; font-size: var(--t-petit); line-height: 1.35; color: var(--murmure); text-decoration: none; transition: color .2s; }
.sommaire a:hover { color: var(--encre); text-decoration: underline; }
.sommaire a { position: relative; }
.sommaire a[aria-current="true"] { color: var(--encre); font-weight: 650; }
.sommaire a[aria-current="true"]::before { content: ''; position: absolute; left: -20px; top: 8px; bottom: 8px; width: 2px; background: var(--encre); }
.article > section { padding-bottom: clamp(48px, 6vw, 80px); }
.article h2 { margin-bottom: 22px; scroll-margin-top: calc(var(--barre-h) + 24px); }
.article h3 { margin: 30px 0 10px; }
.refs { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; counter-reset: ref; }
.refs li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--filet); font-size: var(--t-petit); line-height: 1.6; color: var(--encre-2); counter-increment: ref; }
.refs li::before { content: counter(ref, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--titre); font-style: italic; font-size: 19px; color: var(--encre); }
.refs a { word-break: break-all; display: inline-flex; min-height: 44px; align-items: center; }
.niveau { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: var(--pilule); font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--voile-fort); }
.niveau--fort { background: var(--soleil); }
.citation { margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--voile); }
.citation p { font-family: var(--titre); font-size: clamp(24px, 1.8vw + 14px, 36px); line-height: 1.3; max-width: 24em; }
.citation footer { font-size: var(--t-petit); color: var(--murmure); }
.comparatif { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--filet-fort); }
.comparatif > div { padding: 24px 24px 8px 0; }
.comparatif > div + div { padding-left: 24px; border-left: 1px solid var(--filet); }
.comparatif h3 { margin-top: 0; }
.comparatif ul { display: grid; gap: 8px; font-size: 17px; }
.comparatif li { padding-left: 18px; position: relative; }
.comparatif li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--encre); }
.limites { display: grid; gap: 0; border-top: 1px solid var(--filet); }
.limites li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--filet); position: relative; font-size: 17px; }
.limites li::before { content: '×'; position: absolute; left: 4px; top: 10px; font-size: 24px; line-height: 1.2; color: var(--encre); }
.faq { border-top: 1px solid var(--filet-fort); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 18px 0; cursor: pointer; list-style: none; font-size: clamp(18px, .5vw + 15px, 21px); font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--filet-fort); border-radius: 10px; font-size: 22px; font-weight: 400; transition: transform .25s var(--sortie), background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--soleil); }
.faq details > div { padding: 0 0 22px; }
.faq details p { font-size: 17px; }
.noms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--filet); border: 1px solid var(--filet); border-radius: 16px; overflow: hidden; }
.noms > div { display: grid; gap: 6px; padding: 22px 20px; background: #FBF6FB; }
.noms dt { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--murmure); }
.noms dd { font-family: var(--titre); font-size: 20px; line-height: 1.3; font-weight: 500; }
.verification { font-size: var(--t-petit); color: var(--murmure); margin-top: 24px; }

/* frise sur fond nuit */
.frise-bande { padding: var(--respiration) max(var(--gouttiere), (100% - var(--largeur)) / 2); background: radial-gradient(90% 120% at 100% 0%, var(--nuit-2), var(--nuit)); color: var(--sur-nuit); margin-bottom: var(--respiration); }
.frise-bande .etiquette { color: var(--sur-nuit-2); }
.frise-bande h2 { margin-bottom: 14px; }
.frise-bande > p { color: var(--sur-nuit-2); }
.frise { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 40px; }
.frise::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgb(255 213 0 / .3); }
.frise li { position: relative; padding: 34px 20px 0 0; }
.frise li::before { content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--nuit); border: 3px solid var(--soleil); }
.frise li:last-child::before { background: var(--soleil); }
.frise time { display: block; font-size: var(--t-petit); font-weight: 700; letter-spacing: .1em; color: var(--soleil); margin-bottom: 6px; }
.frise p { font-size: var(--t-petit); line-height: 1.55; color: var(--sur-nuit-2); margin: 0; }
@supports (animation-timeline: view()) {
  .motion .frise::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--soleil); transform-origin: left; animation: rail linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  @keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- médecin ---------- */
.lettre { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin: 0 auto; padding-bottom: var(--respiration); }
.lettre__voix { position: sticky; top: calc(var(--barre-h) + 30px); align-self: start; }
.lettre__voix .sceau { max-width: 360px; }
.lettre__texte p { font-size: 19px; }
.vers { margin: 30px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--soleil); }
.vers p { font-family: var(--titre); font-style: italic; font-size: var(--t-chapo); line-height: 1.55; margin: 0; }
.parcours-faits { display: grid; gap: 0; border-top: 2px solid var(--filet-fort); margin-top: 34px; }
.parcours-faits > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.parcours-faits dt { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--murmure); padding-top: 4px; }
.parcours-faits dd { font-size: 17px; }
.generique { padding: var(--respiration) var(--gouttiere); background: radial-gradient(90% 120% at 100% 0%, var(--nuit-2), var(--nuit)); color: var(--sur-nuit); text-align: center; }
.generique .etiquette { color: var(--sur-nuit-2); }
.generique h2 { margin-bottom: 40px; }
.generique__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 34px; max-width: 1180px; margin: 0 auto; }
.generique__liste > div { display: grid; gap: 6px; align-content: start; }
.generique__liste dt { order: 2; font-family: var(--titre); font-size: clamp(24px, 1.4vw + 16px, 32px); line-height: 1.15; }
.generique__liste dd { order: 1; font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soleil); }
.generique__liste dd + dd { order: 3; font-size: var(--t-petit); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--sur-nuit-2); max-width: 26em; margin-inline: auto; }

/* ---------- soignants ---------- */
.raisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.raison { padding: clamp(24px, 3vw, 34px); border-radius: var(--rayon); background: var(--voile); }
.raison h3 { font-family: var(--texte); font-size: var(--t-etiquette); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.raison p { font-size: 17px; }
.raison__preuve { font-size: var(--t-petit) !important; color: var(--murmure); margin: 0; }
.tableau-defile { overflow-x: auto; border-top: 2px solid var(--filet-fort); }
.criteres { width: 100%; min-width: 34rem; border-collapse: collapse; }
.criteres th, .criteres td { padding: 16px 18px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--filet); font-size: 17px; line-height: 1.55; }
.criteres th { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--murmure); }
.criteres td:first-child { width: 50%; }
.verdict { display: inline-block; margin-bottom: 4px; font-weight: 700; font-size: var(--t-petit); }
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--filet-fort); counter-reset: etape; }
.etapes li { padding: 26px 22px 20px 0; counter-increment: etape; }
.etapes li + li { padding-left: 22px; border-left: 1px solid var(--filet); }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--titre); font-style: italic; font-size: 40px; line-height: 1; margin-bottom: 14px; }
.etapes h3 { margin-bottom: 8px; }
.etapes p { font-size: 17px; margin: 0; }
.demande { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--voile); scroll-margin-top: calc(var(--barre-h) + 24px); }
.demande h2 { margin-bottom: 16px; }
.demande__adresse { display: grid; gap: 14px; justify-items: start; }
.demande__adresse p { margin: 0; font-size: var(--t-petit); color: var(--murmure); }
.documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.document { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; border-radius: var(--rayon); background: var(--voile-fort); border-top: 3px solid var(--encre); }
.document__couv { aspect-ratio: 3 / 4; border-radius: 10px; display: grid; place-items: center; background: var(--aube); box-shadow: 0 10px 20px -14px rgb(61 34 92 / .6); }
.document__couv .embleme { width: 24px; height: 36px; stroke-width: 9; }
.document h3 { margin-bottom: 6px; }
.document h3 a { text-decoration: none; }
.document h3 a::after { content: ''; position: absolute; inset: 0; }
.document h3 a:hover { text-decoration: underline; }
.document p { font-size: var(--t-petit); margin: 0; color: var(--encre-2); }

.affiche { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.affiche__faits { display: grid; gap: 6px; margin: 0 0 22px; font-size: var(--t-petit); }
.affiche__faits li { padding-left: 18px; position: relative; }
.affiche__faits li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--encre); }
.affiche__apercu { display: block; max-width: 420px; justify-self: center; transform: rotate(1.5deg); transition: transform .4s var(--sortie); }
.affiche__apercu img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px -30px rgb(61 34 92 / .6), 0 0 0 1px rgb(255 255 255 / .8); }
.affiche__apercu:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- textes légaux, 404 ---------- */
.legal { width: min(100% - 2 * var(--gouttiere), 820px); margin: 0 auto; padding-bottom: var(--respiration); }
.legal section { padding: 28px 0; border-top: 1px solid var(--filet); scroll-margin-top: calc(var(--barre-h) + 24px); }
.legal h2 { font-size: clamp(26px, 1.6vw + 16px, 36px); margin-bottom: 16px; }
.legal p, .legal li { font-size: 17px; }
.legal ul { display: grid; gap: 6px; list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.a-completer { padding: 14px 18px; border-radius: var(--rayon-petit); background: var(--voile-fort); border-left: 4px solid var(--soleil); }
.introuvable { min-height: 70svh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 60px var(--gouttiere); }
.introuvable .embleme { width: 70px; height: 106px; stroke-width: 6; }

/* ---------- apparition au défilement (glissement opaque, une fois) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .glisse:not(.est-vu) { transform: translateY(44px); }
  .glisse { transition: transform 1s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 90ms); }
}

/* ---------- mobile conçu ---------- */
@media (max-width: 980px) {
  .ouverture { min-height: 0; }
  .ouverture__grille, .espace, .rien, .nuit, .lettre, .profil__tete, .outil__tete, .demande { grid-template-columns: minmax(0, 1fr); }
  .sceau { order: -1; max-width: 300px; justify-self: start; }
  .colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colonnes > li:nth-child(2) { border-right: 0; }
  .colonnes > li:nth-child(3) { padding-left: 0; }
  .colonnes > li:nth-child(n + 3) { border-top: 1px solid var(--filet); }
  .fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .fiche > div:nth-child(n + 3) { border-top: 1px solid var(--filet); }
  .definitions { grid-template-columns: 1fr 1fr; }
  .definition--nuit { grid-column: 1 / -1; }
  .dossier { grid-template-columns: minmax(0, 1fr); }
  .sommaire { position: static; max-height: none; padding: 18px 20px; border: 1px solid var(--filet); border-radius: 18px; background: var(--voile); }
  .frise { grid-template-columns: minmax(0, 1fr); }
  .frise::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .frise::after { display: none; }
  .frise li { padding: 0 0 26px 36px; }
  .raisons, .documents { grid-template-columns: minmax(0, 1fr); }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes li:nth-child(3) { padding-left: 0; border-left: 0; }
  .etapes li:nth-child(n + 3) { border-top: 1px solid var(--filet); }
  .lettre__voix { position: static; }
  .lettre__voix .sceau { max-width: 240px; }
  .pied__haut { grid-template-columns: minmax(0, 1fr); }
  .noms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nuit__filigrane { width: 70vw; }
}
@media (max-width: 640px) {
  :root { --barre-h: 66px; }
  .barre__marque img { width: 108px; }
  .sceau { max-width: 230px; }
  .ouverture h1 { font-size: clamp(36px, 9.6vw, 44px); }
  .ouverture__actions .bouton { width: 100%; }
  .colonnes, .fiche, .comparatif, .enjeu__colonnes, .etapes, .definitions, .noms { grid-template-columns: minmax(0, 1fr); }
  .colonnes > li, .colonnes > li:first-child, .colonnes > li:nth-child(3) { padding: 24px 0; border-right: 0; border-top: 1px solid var(--filet); }
  .colonnes > li:first-child { border-top: 0; }
  .fiche > div, .fiche > div + div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--filet); }
  .fiche > div:first-child { border-top: 0; }
  .comparatif > div, .comparatif > div + div { padding: 20px 0 6px; border-left: 0; }
  .comparatif > div + div { border-top: 1px solid var(--filet); }
  .etapes li, .etapes li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--filet); }
  .etapes li:first-child { border-top: 0; }
  .pied__plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parcours-faits > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pause { position: static; align-self: flex-start; margin: 22px var(--gouttiere) 0; }
  .js.motion .intention { height: 200svh; }
  .mot { font-size: 25px; letter-spacing: .06em; }
  .schema__cote text { font-size: 28px; }
  .nuit__filigrane { display: none; }
  .enjeu { padding: 22px 20px; }
  .etagere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .couverture__visuel { aspect-ratio: 4 / 5; padding: 14px; border-radius: 16px; }
  .couverture__visuel strong { font-size: 19px; }
  .document { grid-template-columns: 70px minmax(0, 1fr); }
  .outil fieldset { padding: 18px 16px 14px; }
  .choix label { width: 100%; }
  .ancres__titre { display: none; }
  .ancres__rang { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .criteres { min-width: 0; }
  .criteres thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .criteres tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
  .criteres td { display: block; width: auto !important; padding: 6px 0; border: 0; }
  .bouton { width: 100%; }
  .barre__appel { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.schema__tension):not(.mot):not(.schema__lumiere):not(.schema__cote), *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
