/* Composants signatures Maison CHAIX — réutilisables sur toutes les pages.
   Un seul langage : le repère (point jaune) et le fil (trait qui se trace), hérités de la route d'Accompagnement.
   - .mcx-repere            point de repère ; --vide : anneau ; .est-atteint : rempli
   - .mcx-fil[data-fil]     trait qui se trace quand il entre dans l'écran ; --entrant (horizontal, depuis le bord) ; --descendant (vertical)
   - .mcx-defile[data-defile="ms"]   mots qui se succèdent sur place (texte complet à fournir dans .mcx-lecteur)
   - .mcx-sequence[data-sequence]    séquence d'étapes avec rail de progression collant (ordinateur : vertical ; mobile : horizontal)
   - [data-revele]          élément mis en avant quand il passe au centre de l'écran (utile sans survol, sur mobile)
   Sans script ou avec mouvement réduit, tout est visible et immobile. */

.mcx-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Repère ---------- */
.mcx-repere { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--soleil); box-shadow: inset 0 0 0 2px var(--soleil); transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease); }
.mcx-repere--vide { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.est-atteint > .mcx-repere--vide, .mcx-repere--vide.est-atteint { background: var(--soleil); box-shadow: inset 0 0 0 2px var(--soleil); }

/* ---------- Fil ---------- */
.mcx-fil { position: relative; display: block; flex: none; background: currentColor; }
.mcx-fil > .mcx-repere { position: absolute; }
.mcx-fil--entrant { height: 1.5px; transform-origin: left center; }
.mcx-fil--entrant > .mcx-repere { right: -6px; top: -5.25px; }
.mcx-fil--descendant { width: 1.5px; transform-origin: center top; }
.mcx-fil--descendant > .mcx-repere { bottom: -6px; left: -5.25px; }
.js .mcx-fil[data-fil] { transition: transform 1.3s var(--ease); }
.js .mcx-fil--entrant[data-fil] { transform: scaleX(0); }
.js .mcx-fil--descendant[data-fil] { transform: scaleY(0); }
.js .mcx-fil[data-fil] > .mcx-repere { opacity: 0; transform: scale(0.4); transition: opacity 0.4s ease 1.1s, transform 0.6s var(--ease) 1.1s; }
.js .mcx-fil[data-fil].est-trace { transform: none; }
.js .mcx-fil[data-fil].est-trace > .mcx-repere { opacity: 1; transform: none; }

/* ---------- Défilement de mots ---------- */
.mcx-defile { position: relative; display: inline-grid; vertical-align: bottom; color: var(--marine); }
.mcx-defile-mot { grid-area: 1 / 1; justify-self: start; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 0.1em; text-underline-offset: 0.16em; text-decoration-skip-ink: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
:root:not(.js) .mcx-defile-mot:not(:first-child) { display: none; }
.js .mcx-defile-mot { opacity: 0; transform: translateY(0.4em); }
.js .mcx-defile-mot.est-actif { opacity: 1; transform: none; }
.js .mcx-defile-mot.sort { opacity: 0; transform: translateY(-0.4em); }

/* ---------- Séquence ---------- */
.mcx-sequence { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); }
.mcx-sequence-rail { position: sticky; top: 112px; align-self: start; display: grid; gap: 36px; }
.mcx-sequence-titre { margin: 0; font-family: var(--f-titre); font-stretch: 112%; font-weight: 600; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.03em; line-height: 1; }
.mcx-sequence-reperes { position: relative; display: grid; gap: 26px; --avance: 0; }
.mcx-sequence-reperes::before, .mcx-sequence-reperes::after { content: ""; position: absolute; left: 5.25px; top: 6px; width: 1.5px; height: calc(100% - 12px); background: var(--filet); }
.mcx-sequence-reperes::after { background: var(--soleil); transform-origin: top; transform: scaleY(var(--avance)); }
.mcx-sequence-reperes li { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; color: var(--ardoise); }
.mcx-sequence-reperes .mcx-repere--vide { background: var(--casse); color: rgba(27,43,68,0.4); }
.mcx-sequence-reperes li.est-atteint .mcx-repere--vide { background: var(--soleil); box-shadow: inset 0 0 0 2px var(--soleil); }
.mcx-sequence-nom { font-size: 14.5px; font-weight: 600; transition: color 0.3s ease; }
.mcx-sequence-reperes li.est-atteint .mcx-sequence-nom { color: var(--marine); }
.mcx-sequence-etapes { display: grid; }
.mcx-sequence-etape { min-height: 54vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
/* étapes inactives : atténuées par la couleur, jamais par la transparence, pour rester lisibles (contraste ≥ 3:1 sur les grands titres) */
.js .mcx-sequence-etape:not(.est-courant) .mcx-sequence-phrase { color: #6F7783; }
.mcx-sequence-phrase { transition: color 0.6s var(--ease); max-width: 17ch; font-family: var(--f-titre); font-stretch: 110%; font-weight: 600; font-size: clamp(34px, 4.4vw, 70px); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.mcx-sequence-texte { margin-top: 24px; max-width: 46ch; font-size: 19px; line-height: 1.55; color: var(--ardoise); }

@media (max-width: 900px) {
  .mcx-sequence { grid-template-columns: 1fr; gap: 0; }
  .mcx-sequence-rail { top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 5; margin: 0 calc(-1 * var(--cote-d)) 0 calc(-1 * var(--cote-g)); padding: 16px var(--cote-d) 14px var(--cote-g); gap: 12px; background: rgba(250,249,246,0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--filet); }
  .mcx-sequence-titre { font-size: 15px; letter-spacing: -0.01em; }
  .mcx-sequence-reperes { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
  .mcx-sequence-reperes::before, .mcx-sequence-reperes::after { left: 6px; top: 5.25px; width: 75%; height: 1.5px; }
  .mcx-sequence-reperes::after { transform-origin: left; transform: scaleX(var(--avance)); }
  .mcx-sequence-reperes li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mcx-sequence-nom { padding-right: 8px; font-size: 11.5px; line-height: 1.2; }
  .mcx-sequence-etape { min-height: 0; padding: 30px 0 32px; }
  .mcx-sequence-etape + .mcx-sequence-etape { border-top: 1px solid var(--filet); }
  .mcx-sequence-phrase { font-size: clamp(30px, 8.6vw, 40px); }
  .mcx-sequence-texte { margin-top: 16px; font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mcx-repere, .mcx-defile-mot, .mcx-sequence-phrase, .js .mcx-fil[data-fil], .js .mcx-fil[data-fil] > .mcx-repere { transition: none; }
}

/* ---------- Fonds (17/10/2026) ---------- */
.mcx-sequence-reperes .mcx-repere--vide { background: #FFFFFF; }
.mcx-sequence-rail { background: rgba(255,255,255,0.94); }
