/* GUADO — Merci, conditions, mentions légales et page 404 rhabillées sur la base Aube (Landry, 25 nov. 2026).
   Posée par-dessus landing-app.css et landing-aube.css (body.aube). Pièces : Aube (fond qui dérive, titres mot à mot,
   apparition floutée, rail d'étapes), Studio (tête d'article, prose, barre de lecture, 404 géant), Framer FX-07
   (sommaire collé qui suit la lecture), ClickUp FX-10 (carte vitrée). Valeurs : uniquement les jetons de tokens.css. */

/* ---------- La mascotte qui respire (Aube breathe) ---------- */
.mascotte-respire { display: block; height: auto; animation: respire 7s ease-in-out infinite; }

/* ======================================================================
   Merci : la bienvenue, le rail des trois étapes, l'aide en carte vitrée
   ====================================================================== */
.merci-aube {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  padding-top: var(--space-12);
  padding-bottom: var(--space-24);
  text-align: center;
}
.merci-aube__mascotte { width: clamp(132px, 16vw, 168px); margin-bottom: var(--space-6); }
.merci-aube__surtitre { color: var(--accent-hover); }
.merci-aube__titre { margin-top: var(--space-4); font-size: clamp(40px, 6vw, 72px); }
.merci-aube__chapo { max-width: 560px; margin: var(--space-6) 0 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }

/* Le rail (Aube, section 05) : un trait qui se remplit du lilas à la mandarine, une pastille par étape */
.rail {
  --pastille: 44px;
  position: relative;
  display: grid;
  gap: var(--space-4);
  width: 100%;
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  top: calc(var(--pastille) / 2);
  bottom: calc(var(--pastille) / 2);
  left: calc(var(--pastille) / 2 - 1px);
  width: 2px;
  border-radius: var(--radius-pill);
}
.rail::before { background: var(--line); }
.rail::after {
  background: linear-gradient(180deg, var(--lilas), var(--accent) 50%, var(--or-rose) 78%, var(--or));
  transform-origin: top;
  transition: transform 1.6s var(--ease-trace) 0.5s;
}
.aube-js .rail::after { transform: scaleY(0); }
.aube-js .rail.is-in::after { transform: none; }
.rail__etape {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--pastille) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}
.rail__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--pastille);
  height: var(--pastille);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.rail__texte {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  transition: transform 0.35s var(--ease-sortie), box-shadow 0.35s var(--ease-sortie);
}
.rail__texte strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
@media (hover: hover) {
  .rail__etape:hover .rail__texte { transform: translateY(-3px); box-shadow: var(--shadow-card); }
}

/* L'aide : la carte vitrée (ClickUp FX-10), comme la carte de l'offre */
.merci-aube__aide {
  width: 100%;
  margin: var(--space-8) 0 0;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-xl);
  background: var(--glass);
  box-shadow: var(--shadow-glass-on);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--ink-2);
}
.merci-aube__aide a { color: var(--accent-hover); font-weight: 600; text-underline-offset: 3px; }
.merci-aube .bouton { margin-top: var(--space-8); }

/* ======================================================================
   Lecture : conditions générales et mentions légales
   ====================================================================== */
/* La barre de lecture (Studio .reading-bar), au dégradé de la trajectoire */
.barre-lecture {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 3px;
  background: var(--barre-trajectoire);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}

.lecture.legal { max-width: 1160px; padding-top: var(--space-12); }
/* La tête d'article centrée (Studio .article-head) */
.lecture .legal__tete { max-width: 860px; margin: 0 auto; text-align: center; }
.lecture .legal__titre { font-size: clamp(40px, 6.4vw, 84px); }
.lecture .legal__chapo { max-width: 620px; margin-inline: auto; }
.lecture .legal__resume { text-align: left; }

/* Le sommaire collé qui suit la lecture (Framer FX-07) ; la partie lue au pâle du thème */
.lecture .legal__sommaire { margin: var(--space-12) 0 var(--space-6); }
.lecture .legal__sommaire a {
  transition: background-color 0.3s var(--ease-sortie), color 0.3s var(--ease-sortie), border-color 0.3s var(--ease-sortie);
}
.lecture .legal__sommaire a[aria-current="true"] { border-color: transparent; background: var(--accent-soft); color: var(--accent-hover); }

/* La prose (Studio .prose) dans ses feuilles blanches */
.lecture .legal__corps section {
  padding: clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--haut-collant, 120px) + var(--space-4));
}
.lecture .legal__corps h2 {
  margin-top: var(--space-12);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lecture .legal__corps section > h2:first-child { margin-top: 0; }
.lecture .legal__corps p,
.lecture .legal__corps li { line-height: 1.75; }

@media (max-width: 999.98px) {
  /* sur téléphone : une plaque de verre collée sous la barre, les pastilles défilent de côté */
  .lecture .legal__sommaire {
    position: sticky;
    top: var(--haut-barre, 110px);
    z-index: 15;
    flex-wrap: nowrap;
    gap: 6px;
    margin-inline: calc(-1 * var(--space-2));
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--line-glass);
    border-radius: var(--radius-pill);
    background: var(--glass);
    box-shadow: var(--shadow-glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .lecture .legal__sommaire::-webkit-scrollbar { display: none; }
  .lecture .legal__sommaire a { flex: none; white-space: nowrap; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lecture .legal__sommaire { background: var(--surface); }
}
@media (min-width: 1000px) {
  /* sur ordinateur : la tête en haut, le sommaire en colonne collée à gauche, la prose à droite */
  .lecture.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: var(--space-12); align-items: start; }
  .lecture .legal__tete { grid-column: 1 / -1; margin-bottom: var(--space-12); }
  .lecture .legal__sommaire { position: sticky; top: 104px; flex-direction: column; align-items: stretch; margin: 0; }
  .lecture .legal__sommaire a { justify-content: flex-start; }
}

/* ======================================================================
   404 : le chemin a changé, la mascotte réfléchit, le fil se démêle
   ====================================================================== */
.introuvable {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  padding-top: var(--space-8);
  padding-bottom: var(--space-24);
  text-align: center;
}
.introuvable__scene { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 2vw, 24px); }
/* le 404 géant (Studio .notfound__code), en dégradé sur un seul segment */
.introuvable__code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(104px, 26vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(100deg, var(--accent) 30%, var(--or-rose) 68%, var(--or) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.introuvable__mascotte { width: clamp(78px, 15vw, 170px); margin-bottom: clamp(4px, 1vw, 16px); }
.introuvable .demele { max-width: 640px; margin-top: var(--space-6); }
.introuvable__titre { margin-top: var(--space-6); font-size: clamp(34px, 5vw, 60px); }
.introuvable__chapo { margin: var(--space-4) 0 0; font-size: var(--fs-lead); color: var(--ink-2); }
.introuvable__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }

@media (prefers-reduced-motion: reduce) {
  .mascotte-respire { animation: none; }
  .aube-js .rail::after { transform: none; transition: none; }
  .barre-lecture { display: none; }
  .lecture .legal__sommaire { scroll-behavior: auto; }
}
