/* Heroia · la page d'attente (heroia.app)
   Toutes les valeurs viennent des jetons validés : dossier-dev/03-design-system/tokens.json et jetons.md.
   Le nom du jeton est en commentaire. Les adaptations propres au web (grand écran, focus, erreur) sont marquées « web ».
   Ne pas écrire de style dans le HTML : la politique de sécurité (CSP) les refuse. */

:root {
  /* color.palette */
  --nuit-scene: #0A1122;        /* nightScene · color.bg.scene : fond des écrans à décor */
  --nuit-profonde: #0F1830;     /* nightDeep · color.bg.screen */
  --nuit: #1B2A44;              /* night · fond des pièces perlées, texte sur l'ambre */
  --nuit-2: #25385A;            /* nightRaised */
  --ombre-nuit: #060A14;        /* nightShadow · ombre des textes qui flottent */
  --creme: #F7EFE3;             /* cream · text.primary */
  --brume-claire: #C4CCDA;      /* mistLight · text.secondary */
  --brume: #A9B4C8;             /* mist · text.tertiary, liens discrets */
  --brume-sombre: #8C97AD;      /* mistDark · text.hint, placeholder */
  --flamme: #F29A38;            /* flame · bouton principal */
  --coeur: #FFC66B;             /* heart */
  --lumiere: #FFE6A8;           /* light · text.great */
  --or: #D9B64A;                /* gold · surtitres, grènetis */
  --or-clair: #F3D98A;          /* goldLight · text.wish, la marque */
  --or-pale: #E9CF7A;           /* goldPale · fil d'or */
  --sable: #EBCB95;             /* sand · la voix d'Estia, liens chaleureux */

  /* font.css */
  --f-titre: 'Marcellus', Georgia, serif;
  --f-serif: 'EB Garamond', Georgia, serif;
  --f-texte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* motion.easing */
  --c-standard: cubic-bezier(0.42, 0, 0.58, 1);
  --c-out: cubic-bezier(0, 0, 0.58, 1);
  --c-in: cubic-bezier(0.42, 0, 1, 1);

  /* layout.screenPaddingX = 20 */
  --marge: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--nuit-scene);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--nuit-scene);
  /* la poussière d'étoiles : crème, opacités 0,3 · 0,42 · 0,55 · 0,7 (opacity.stardust) × 0,55 */
  background-image: url('../medias/poussiere.svg');
  background-size: 520px 520px;
  color: var(--creme);
  font-family: var(--f-texte);
  font-size: 15px;               /* typography.body */
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--sable); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--or-clair); }

/* web : le focus du clavier, en or clair, toujours visible */
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; border-radius: 6px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Les chiffres dans un texte en Marcellus : EB Garamond 500 droit, chiffres alignés (font.digitsInDisplay ; gen/v9rev2.py chiffres()) */
.chiffre {
  font-family: var(--f-serif);
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

/* ------------------------------------------------------------------ la page d'accueil */

.page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "scene" "contenu";
}

/* La marque : la petite flamme et HEROIA en capitales gravées (gen/v11mockups.py marque() ; v11stories.py signature()) */
.marque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 5.3px;          /* 0,38 × la taille */
  text-transform: uppercase;
  color: var(--or-clair);
  text-shadow: 0 0 16px var(--ombre-nuit), 0 0 4px var(--ombre-nuit);   /* glow.textFloating */
}
.marque a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.marque svg { width: 14px; height: 17px; flex: none; }

.page > .marque {
  position: absolute;
  z-index: 3;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  min-height: 44px;
}

/* La scène : Estia qui vit (la vidéo), posée sur son image fixe. Le bas se fond dans la nuit,
   comme les décors de l'app (layout.scene : « le fondu vers #0A1122 »). */
.scene {
  grid-area: scene;
  position: relative;
  height: clamp(400px, 60svh, 560px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
}
.scene__fixe, .scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 82%;
}
.scene__video { opacity: 0; transition: opacity 400ms var(--c-out); }
.scene--vivante .scene__video { opacity: 1; }

/* Le bouton pause de la vidéo (WCAG 2.2.2) : une pièce perlée de 36, zone de toucher de 44 (web, PROPOSÉ) */
.scene__pause {
  position: absolute;
  z-index: 3;
  top: max(14px, env(safe-area-inset-top));
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  opacity: 0.8;
  -webkit-tap-highlight-color: transparent;
}
.scene__pause:hover { opacity: 1; }
.scene__pause span { display: block; }
/* En pause : plus aucune boucle sur la page (aura du bouton, onde) */
.repos *, .repos *::before, .repos *::after { animation-play-state: paused !important; }

.contenu {
  grid-area: contenu;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: -64px auto 0;
  padding: 0 var(--marge) 40px;
  text-align: center;
}

.surtitre {
  margin: 0 0 12px;
  font-family: var(--f-titre);
  font-size: 11.5px;              /* typography.eyebrow */
  letter-spacing: 3px;            /* 3 pt à l'onboarding */
  text-transform: uppercase;
  color: var(--or);
}

.titre {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: 27px;                /* typography.titleL */
  line-height: 1.18;
  color: var(--creme);
  text-wrap: balance;
  text-shadow: 0 0 16px var(--ombre-nuit), 0 0 4px var(--ombre-nuit);
}

.intro {
  margin: 14px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;                /* typography.estiaVoice (taille) ; couleur text.secondary */
  line-height: 1.35;
  color: var(--brume-claire);
  text-wrap: balance;
}

/* Les trois lignes : une pièce perlée de 36 et le libellé en Marcellus 17 (typography.option) */
.trois {
  list-style: none;
  margin: 26px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}
.trois li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-titre);
  font-size: 17px;
  line-height: 1.2;
  color: var(--creme);
}
.piece { flex: none; }
.piece--36 { width: 36px; height: 36px; }
.piece--32 { width: 32px; height: 32px; }
.piece--44 { width: 44px; height: 44px; }

/* Le grènetis d'or, en séparateur : perles rondes #D9B64A (border.medallionBeads) */
.grenetis {
  height: 8px;
  margin: 28px auto;
  max-width: 216px;
  background: url('../medias/grenetis.svg') left center / 9px 8px repeat-x;
  opacity: 0.85;
}

/* Les dates : la lune et la phrase, en Marcellus 19 (typography.titleXS) */
.dates { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  max-width: 100%;
  font-family: var(--f-titre);
  font-size: 19px;
  line-height: 1.25;
  color: var(--creme);
  text-align: left;
}

/* Les boutons des stores (précommande et sortie) */
.stores { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; }

/* ------------------------------------------------------------------ le formulaire */

.inscription { margin-top: 30px; text-align: left; }
.inscription__titre { margin: 0 0 14px; text-align: center; font-family: var(--f-titre); font-weight: 400; font-size: 19px; line-height: 1.25; color: var(--creme); }

.formulaire { display: flex; flex-direction: column; gap: 16px; }

/* component.field */
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ__etiquette {
  font-family: var(--f-titre);
  font-size: 11px;                /* typography.fieldLabel */
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--or);
}
.champ__saisie {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid rgba(242, 154, 56, 0.7);     /* color.line.field */
  border-radius: 28px;
  background: rgba(15, 24, 48, 0.85);           /* color.bg.field */
  box-shadow: 0 0 18px rgba(242, 154, 56, 0.2); /* glow.field */
  color: var(--creme);
  caret-color: var(--flamme);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 21px;                /* typography.field ; ≥ 16 px : iOS ne zoome pas */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.champ__saisie::placeholder { color: var(--brume-sombre); opacity: 1; }
.champ__saisie:focus { outline: none; border-color: var(--flamme); box-shadow: 0 0 22px rgba(242, 154, 56, 0.34); }
.champ__saisie:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.champ__saisie[aria-invalid="true"] { border-color: var(--sable); }

/* La case de consentement (web, PROPOSÉE) : une pièce perlée de 26 ; cochée, la flamme s'y allume.
   La vraie case du navigateur reste là (lecteurs d'écran, clavier), seule son apparence change. */
.case {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;               /* size.touchMin */
  padding: 4px 0;
  cursor: pointer;
  font-size: 15px;                /* typography.body */
  line-height: 1.45;
  color: var(--brume-claire);
}
.case input, .appareil__option input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='21' fill='%231B2A44'/%3E%3Ccircle cx='22' cy='22' r='18.6' fill='none' stroke='%23D9B64A' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.1 3.79'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
  transition: box-shadow 300ms var(--c-out);
}
.case input:checked, .appareil__option input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='21' fill='%231B2A44'/%3E%3Ccircle cx='22' cy='22' r='18.6' fill='none' stroke='%23D9B64A' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.1 3.79'/%3E%3Cpath d='M22 11 C23.6 15.6 28.2 17.2 28.2 22.8 A6.2 6.2 0 0 1 15.8 22.8 C15.8 18.8 18.8 17.6 19.9 14.6 C21 16.6 22 16.2 22 11 Z' fill='%23F29A38'/%3E%3Cpath d='M22 19.2 C23 21.2 25 22.2 25 24.4 A3 3 0 0 1 19 24.4 C19 22.7 21 21.8 22 19.2 Z' fill='%23FFC66B'/%3E%3C/svg%3E");
  box-shadow: 0 0 14px rgba(242, 154, 56, 0.45);
}
.case input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--sable); }
.case span { padding-top: 1px; }

/* Le choix du téléphone (web, PROPOSÉ ; décision 8 de PA, 29 septembre) : facultatif, rien n'est choisi d'avance.
   Deux pastilles ; chaque bouton radio est la pièce perlée de la case (clavier : les flèches), la flamme s'y allume au choix. */
.appareil { margin: 0; padding: 0; border: 0; min-width: 0; }
.appareil legend { padding: 0; margin: 0 0 4px; }
.appareil__aide { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--brume); }   /* typography.caption */
.appareil__choix { display: flex; flex-wrap: wrap; gap: 10px; }
.appareil__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;               /* size.touchMin */
  padding: 0 20px 0 9px;
  border: 1px solid rgba(217, 182, 74, 0.5);    /* or, comme le bouton d'or, plus discret */
  border-radius: 22px;
  background: rgba(15, 24, 48, 0.85);           /* color.bg.field */
  cursor: pointer;
  font-size: 15px;                /* typography.body */
  color: var(--brume-claire);
  transition: border-color 300ms var(--c-out), box-shadow 300ms var(--c-out), color 300ms var(--c-out);
}
.appareil__option:has(input:checked) { border-color: rgba(242, 154, 56, 0.7); box-shadow: 0 0 14px rgba(242, 154, 56, 0.2); color: var(--creme); }

.legende {
  margin: -6px 0 0;
  padding-left: 38px;
  font-size: 12.5px;              /* typography.caption */
  line-height: 1.4;
  color: var(--brume);
}

/* Le message (erreur ou attente) : la voix d'Estia, précédée de la petite flamme (estia_dit()) */
.message {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16.5px;              /* typography.serifSmall */
  line-height: 1.3;
  color: var(--sable);
  text-align: center;
  text-wrap: balance;
}
/* Vide, la zone reste dans l'arbre d'accessibilité (role="status") pour que les lecteurs d'écran annoncent le message quand il arrive */
.message:empty { min-height: 0; margin-bottom: -16px; }   /* annule l'écart du formulaire (gap 16) : la mise en page reste celle d'avant */
.message:empty::before { display: none; }
.message:focus { outline: none; }
.message::before {
  content: '';
  display: inline-block;
  vertical-align: -1px;
  width: 12px;
  height: 14px;
  margin-right: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0.5 C7.4 3.6 10.5 5 10.5 8.6 A4.5 4.5 0 0 1 1.5 8.6 C1.5 6 3.4 5 4.2 3 C5 4.4 6 4 6 0.5 Z' fill='%23F29A38'/%3E%3Cpath d='M6 6.2 C6.7 7.6 8 8.2 8 9.6 A2 2 0 0 1 4 9.6 C4 8.4 5.3 7.6 6 6.2 Z' fill='%23FFC66B'/%3E%3C/svg%3E") center / 12px 14px no-repeat;
}

/* Le piège à robots : invisible pour les personnes, rempli par les robots */
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ les boutons */

/* component.buttonPrimary (gen/v4parts.py btn_primary()) : pièce perlée, aura qui respire en 4 s, onde qui part */
@keyframes hx-lueur {
  0%, 100% { box-shadow: inset 0 0 0 2.5px #F29A38, inset 0 0 0 3.2px rgba(255,240,214,0.75), 0 0 14px rgba(242,154,56,0.22); }
  50% { box-shadow: inset 0 0 0 2.5px #F29A38, inset 0 0 0 3.2px rgba(255,240,214,0.75), 0 0 30px rgba(242,154,56,0.5); }
}
@keyframes hx-emission {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(1.08, 1.42); opacity: 0; }
}
@keyframes hx-lueur-or {
  0%, 100% { box-shadow: 0 0 8px rgba(217,182,74,0.12); }
  50% { box-shadow: 0 0 22px rgba(217,182,74,0.36); }
}
@keyframes hx-scintille {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.7) rotate(45deg); opacity: 0.7; }
}
@keyframes hx-souffle {
  0%, 100% { transform: scale(0.86); }
  50% { transform: scale(1.12); }
}

.bouton-ambre {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;                   /* size.buttonPrimary */
  margin: 4px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: 28px;
  background: var(--flamme);
  color: var(--nuit);             /* text.onAmber : 6,5:1 */
  font-family: var(--f-titre);
  font-size: 16px;                /* typography.button */
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 2.5px #F29A38, inset 0 0 0 3.2px rgba(255,240,214,0.75), 0 0 14px rgba(242,154,56,0.22);
  animation: hx-lueur 4s var(--c-standard) infinite;
  -webkit-tap-highlight-color: transparent;
}
/* Au survol : pas de nouvelle couleur (règle : aucune couleur hors de la palette) ; l'aura se fixe à son pic (glow.buttonPrimary) */
.bouton-ambre:hover { color: var(--nuit); background: var(--flamme); animation-play-state: paused; box-shadow: inset 0 0 0 2.5px #F29A38, inset 0 0 0 3.2px rgba(255,240,214,0.75), 0 0 30px rgba(242,154,56,0.5); }
.bouton-ambre__onde {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242, 154, 56, 0.85);
  border-radius: 28px;
  pointer-events: none;
  animation: hx-emission 4s var(--c-out) infinite;
}
.bouton-ambre[aria-busy="true"] { cursor: progress; }
.bouton-ambre[aria-busy="true"] .piece { animation: hx-souffle 1.6s var(--c-standard) infinite; }

/* component.buttonGold : le bouton d'or (secondaire) */
.bouton-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;                   /* size.buttonGold */
  padding: 0 22px;
  border: 1px solid rgba(217, 182, 74, 0.85);
  border-radius: 25px;
  background: rgba(217, 182, 74, 0.08);
  color: var(--creme);
  font-family: var(--f-titre);
  font-size: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none;
  animation: hx-lueur-or 4s var(--c-standard) infinite;
}
.bouton-or:hover { color: var(--creme); background: rgba(217, 182, 74, 0.16); }
/* l'étoile qui scintille (gen/v4parts.py TWINKLE : hx-scintille, 2,8 s) ; figée par .repos et par « Réduire les animations » */
.bouton-or svg { width: 14px; height: 14px; flex: none; transform-origin: center; animation: hx-scintille 2.8s ease-in-out infinite; }

/* ------------------------------------------------------------------ la réussite (T1 : les mots se défont, les nouveaux arrivent) */

@keyframes t1-sort {
  to { transform: translateY(-16px); filter: blur(3px); opacity: 0; }
}
@keyframes t1-entre {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.t1-sort { animation: t1-sort 200ms var(--c-in) forwards; }
.t1-entre { animation: t1-entre 300ms var(--c-out) both; }

.reussite { text-align: center; padding: 8px 0 4px; }
.reussite:focus { outline: none; }
.reussite .piece { margin: 0 auto 14px; filter: drop-shadow(0 0 12px rgba(242, 154, 56, 0.55)); }
.reussite__titre {
  margin: 0;
  font-family: var(--f-titre);
  font-size: 22px;                /* typography.titleS */
  line-height: 1.2;
  color: var(--creme);
  text-wrap: balance;
}
.reussite__texte {
  margin: 10px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 17px;                /* typography.serifBody */
  line-height: 1.35;
  color: var(--brume-claire);
  text-wrap: balance;
}

/* ------------------------------------------------------------------ les réseaux et le pied de page */

.reseaux { margin-top: 34px; }
.reseaux__titre {
  margin: 0 0 4px;
  font-family: var(--f-titre);
  font-size: 10.5px;              /* typography.eyebrowS */
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
}
.reseaux ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.reseaux li + li::before { content: '·'; color: var(--brume-sombre); padding: 0 2px; }
.reseaux li { display: flex; align-items: center; }
.reseaux a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 700;               /* typography.link : Nunito 700, 14 */
  font-size: 14px;
  color: var(--brume);
  text-decoration: none;
}
.reseaux a:hover { color: var(--sable); }

.pied {
  position: relative;
  z-index: 2;
  padding: 26px var(--marge) max(28px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--brume);
}
.pied p { margin: 0; }
.pied__mention { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--brume-claire); }
.pied nav ul { list-style: none; margin: 8px 0 6px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 6px; }
.pied nav li { display: flex; align-items: center; }
.pied nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; color: var(--brume); font-weight: 700; text-decoration: none; }
.pied nav a:hover { color: var(--sable); }
.pied__signature { color: var(--brume-sombre); }

/* ------------------------------------------------------------------ les pages de texte (confidentialité, conditions, suppression) */

.page-texte .entete { padding: max(14px, env(safe-area-inset-top)) var(--marge) 0; }
.texte {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px var(--marge) 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--brume-claire);
}
.texte h1 {
  margin: 10px 0 6px;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--creme);
  text-wrap: balance;
}
.texte h2 {
  margin: 34px 0 8px;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--creme);
}
.texte h3 { margin: 22px 0 4px; font-size: 16px; font-weight: 700; color: var(--creme); }
.texte p, .texte ul, .texte ol { margin: 0 0 12px; }
.texte li { margin-bottom: 6px; }
.texte strong { color: var(--creme); font-weight: 700; }
.texte table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; }
.texte th, .texte td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid rgba(217, 182, 74, 0.2); }
.texte th { color: var(--creme); font-weight: 700; }
.texte .maj { font-size: 13.5px; color: var(--brume); }
.table-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Le bandeau des brouillons */
.brouillon {
  margin: 8px 0 22px;
  padding: 14px 18px;
  border: 1px dashed rgba(217, 182, 74, 0.7);
  border-radius: 18px;            /* radius : filet d'or intérieur */
  background: rgba(217, 182, 74, 0.06);
  font-size: 14px;
  line-height: 1.5;
  color: var(--creme);
}
.brouillon strong { display: block; margin-bottom: 2px; font-family: var(--f-titre); font-weight: 400; font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--or); }
.a-completer { color: var(--nuit); background: var(--or-clair); border-radius: 4px; padding: 0 4px; font-weight: 700; }

/* La page « Deviens testeur » (/testeurs ; web, PROPOSÉE) : les étapes numérotées dans une pièce perlée, les boutons d'or.
   Une page de texte n'a pas de bouton pause : rien n'y boucle (WCAG 2.2.2), les boutons d'or y restent immobiles. */
.page-texte .bouton-or, .page-texte .bouton-or svg { animation: none; }
.texte .chapeau {
  margin: 0 0 8px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;                /* typography.estiaVoice (taille) ; couleur text.secondary */
  line-height: 1.4;
  color: var(--brume-claire);
  text-wrap: balance;
}
.etapes { list-style: none; counter-reset: etape; margin: 18px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.etapes > li { position: relative; counter-increment: etape; margin: 0; padding-left: 52px; min-height: 38px; }
/* le numéro : EB Garamond 500 (font.digitsInDisplay), dans la pièce perlée (border.medallionBeads) ; lu une seule fois (la liste le dit déjà) */
.etapes > li::before {
  content: counter(etape);
  content: counter(etape) / "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='21' fill='%231B2A44'/%3E%3Ccircle cx='22' cy='22' r='18.6' fill='none' stroke='%23D9B64A' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.1 3.79'/%3E%3C/svg%3E") center / 38px 38px no-repeat;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--or-clair);
}
.etapes--courtes { gap: 14px; }
.etapes--courtes > li { padding-top: 5px; }
.texte .etape__titre {
  margin: 4px 0 6px;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: 19px;                /* typography.titleXS */
  line-height: 1.25;
  color: var(--creme);
}
.etapes p { margin: 0 0 10px; }
.etapes > li > :last-child { margin-bottom: 0; }
.etape__action { padding-top: 4px; }
.etape__repere { font-size: 13.5px; }
.texte .signature {
  margin: 34px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--sable);            /* la voix d'Estia */
}
.texte .signature span { display: block; }
@media (min-width: 600px) {
  .etape__action .bouton-or { display: inline-flex; width: auto; min-width: 260px; }
}

/* Les pages courtes (merci, confirmation, erreur, 404) */
.page-courte .contenu { margin-top: -40px; }
.page-courte .titre { font-size: 27px; }
.page-courte .intro { color: var(--brume-claire); }
.retour { display: inline-flex; margin-top: 26px; }
.retour .bouton-or { width: auto; }

/* Très petits écrans (320 px) : les boutons gardent une seule ligne (règle validée) */
@media (max-width: 359px) {
  .bouton-ambre, .bouton-or { padding: 0 12px; gap: 8px; font-size: 15px; }
  .titre { font-size: 25px; }
}

/* ------------------------------------------------------------------ grand écran (web : deux colonnes, Estia à gauche) */

@media (min-width: 960px) {
  .page {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "scene marque" "scene contenu";
    max-width: 1320px;
    margin: 0 auto;
    min-height: 100svh;
  }
  .page > .marque {
    grid-area: marque;
    position: static;
    justify-content: flex-start;
    padding: 40px 0 0 24px;
  }
  .scene {
    position: sticky;
    top: 0;
    justify-self: center;
    width: min(100%, calc(100svh * 9 / 16));
    height: 100vh;
    height: 100svh;
    max-height: 1000px;
    max-width: 562px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .scene__fixe, .scene__video { object-position: 50% 50%; }
  .scene__pause { position: fixed; top: auto; right: auto; left: 20px; bottom: 20px; }
  .contenu {
    align-self: center;
    margin: 0;
    max-width: 560px;
    padding: 28px 40px 56px 24px;
    text-align: left;
  }
  .surtitre { font-size: 12.5px; }
  .titre { font-size: clamp(30px, 2.5vw, 38px); line-height: 1.16; }
  .intro { font-size: 20px; }
  .trois { margin-left: 0; margin-top: 28px; }
  .grenetis { margin-left: 0; }
  .dates { align-items: flex-start; }
  .date { font-size: 20px; }
  .inscription__titre { text-align: left; }
  .bouton-ambre { width: auto; min-width: 280px; align-self: flex-start; padding: 0 28px; }
  .stores { flex-direction: row; flex-wrap: wrap; }
  .stores .bouton-or, .stores .bouton-ambre { width: auto; }
  .message { text-align: left; }
  .reussite { text-align: left; }
  .reussite .piece { margin-left: 0; }
  .reseaux ul { justify-content: flex-start; }
  .reseaux li:first-child a { padding-left: 0; }
  .pied { padding-top: 36px; }
  .page-courte .contenu { margin: 0; }
  .page-courte .titre { font-size: clamp(30px, 2.5vw, 38px); }
}

/* Sans JavaScript, le bouton pause n'existe pas : les boucles ne jouent qu'une fois (4 s au plus, WCAG 2.2.2).
   heroia.js pose la classe « js » sur <html> dès son chargement, et les boucles redeviennent infinies. */
html:not(.js) .bouton-ambre, html:not(.js) .bouton-ambre__onde, html:not(.js) .bouton-or, html:not(.js) .bouton-or svg { animation-iteration-count: 1; }

/* Réduire les animations (règle validée : Estia FIXE, plus aucune boucle) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
