/* ==========================================================================================================================
   Rubrique « Le concours » : pages Présentation et Règlement (lot L4a).
   Mise en page « SANS CADRE » : ni carte blanche, ni ombre portée, ni bordure ; les éléments reposent sur le fond ; séparation par l'espace,
   de fins filets en dégradé (fond) et des lavis de forme douce ; illustrations aux bords adoucis. Toutes les tailles de texte suivent le
   réglage A / A+ / A++ (var(--echelle)). Les animations d'entrée sont celles de front-reveal.css (data-reveal sur chaque section).
   ========================================================================================================================== */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--or-clair);
  font-size: calc(15px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
}

.text-link .icon {
  width: 18px;
  height: 18px;
}

/* ---- Sommaire de page (composant front.page-toc) : jeu de liens, sans carte ---- */
.page-toc {
  font-size: calc(15px * var(--echelle));
}

.page-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s2) 0;
  font-weight: 800;
  color: var(--violet);
  cursor: pointer;
  list-style: none;
}

.page-toc__summary::-webkit-details-marker {
  display: none;
}

.page-toc__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  rotate: 45deg;
  transition: rotate 0.2s;
}

.page-toc__fold[open] > .page-toc__summary::after {
  rotate: 225deg;
}

.page-toc__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc__link {
  position: relative;
  display: block;
  padding: 7px var(--s3) 7px var(--s4);
  line-height: 1.35;
  color: var(--encre-2);
  text-decoration: none;
}

.page-toc__link::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background-color 0.2s;
}

.page-toc__link:hover,
.page-toc__link.is-active {
  color: var(--violet);
}

.page-toc__link.is-active {
  font-weight: 700;
}

.page-toc__link.is-active::before {
  background: var(--violet-3);
}

@media (min-width: 64em) {
  .page-toc__summary {
    display: none;
  }
}

/* ---- Présentation ---- */
.presentation,
.regulation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s5) var(--s9);
  font-size: var(--fs-base);
}

.presentation__aside,
.regulation__aside {
  min-width: 0;
}

@media (min-width: 64em) {
  .presentation {
    grid-template-columns: minmax(0, 1fr) 14em;
    gap: var(--s8);
    padding-top: var(--s7);
  }

  .presentation__main {
    grid-column: 1;
    grid-row: 1;
  }

  .presentation__aside {
    grid-column: 2;
    grid-row: 1;
  }

  .regulation {
    grid-template-columns: 15em minmax(0, 1fr);
    gap: var(--s8);
    padding-top: var(--s7);
  }

  .presentation__aside,
  .regulation__aside {
    position: sticky;
    top: calc(var(--s9) + var(--s7));
    align-self: start;
  }
}

.presentation__main {
  display: grid;
  gap: var(--s6);
  min-width: 0;
}

.pres {
  position: relative;
  padding-block: var(--s5);
  scroll-margin-top: calc(var(--s9) + var(--s7) + var(--s4));
}

/* Lavis de forme douce derrière une section (alternance de fonds), sans bordure. */
.pres--tint {
  padding: var(--s6) var(--s5);
  border-radius: 40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-concours-fond) 90%, transparent), color-mix(in srgb, var(--accent-votes-fond) 55%, transparent) 70%, transparent);
}

.pres__title {
  margin: 0 0 var(--s4);
  font-size: clamp(calc(24px * var(--echelle)), 3vw, calc(36px * var(--echelle)));
  font-weight: 800;
  line-height: 1.15;
  color: var(--violet);
  text-wrap: balance;
}

.pres__lead {
  max-width: 62ch;
  margin: 0 0 var(--s5);
  font-size: calc(18px * var(--echelle));
  line-height: 1.6;
  color: var(--encre-2);
}

.pres p {
  max-width: 65ch;
  margin: 0 0 var(--s3);
  line-height: 1.7;
  color: var(--encre);
}

.pres--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 48em) {
  .pres--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--s7);
  }

  .pres--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

/* Emplacement d'image : illustration du kit aux bords adoucis (masque), jamais de cadre. */
.pres__art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    radial-gradient(closest-side, var(--blanc), transparent),
    var(--accent-votes-fond);
  -webkit-mask-image: radial-gradient(ellipse closest-side, var(--encre) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, var(--encre) 78%, transparent 100%);
}

.pres__art img {
  display: block;
  width: min(100%, 26em);
  height: auto;
}

/* Citation du guide en grand format typographique, filet d'accent à gauche (dégradé de fond). */
.pres__quote {
  position: relative;
  margin: var(--s5) 0;
  padding-left: var(--s5);
}

.pres__quote::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--violet-3), transparent);
}

.pres__quote blockquote {
  margin: 0;
}

.pres__quote blockquote p {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(calc(21px * var(--echelle)), 2.4vw, calc(30px * var(--echelle)));
  font-weight: 700;
  line-height: 1.35;
  color: var(--violet);
  text-wrap: pretty;
}

.pres__quote figcaption {
  margin-top: var(--s3);
  font-size: calc(14px * var(--echelle));
  color: var(--encre-2);
}

/* Nature du concours : six mots, pictogrammes du kit. */
.nature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11em), 1fr));
  gap: var(--s4) var(--s5);
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
}

.nature li {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.nature b {
  display: block;
  font-size: calc(22px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.nature b::first-letter {
  text-transform: uppercase;
}

.nature__icon,
.values__icon,
.qualities__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent-concours-fond);
}

.nature__icon .icon,
.values__icon .icon,
.qualities__icon .icon {
  width: 36px;
  height: 36px;
}

/* Objectifs : liste en deux colonnes. */
.objectives {
  margin: 0;
  padding: 0;
  list-style: none;
}

.objectives li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-bottom: var(--s3);
  line-height: 1.55;
  break-inside: avoid;
  color: var(--encre);
}

.objectives__tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--violet);
  background: var(--accent-candidats-fond);
}

.objectives__tick .icon {
  width: 12px;
  height: 12px;
}

@media (min-width: 48em) {
  .objectives {
    columns: 2;
    column-gap: var(--s7);
  }
}

/* Trois qualités. */
.qualities {
  display: grid;
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualities h3 {
  margin: var(--s3) 0 var(--s2);
  font-size: calc(22px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.qualities p {
  margin: 0;
  max-width: 34ch;
}

@media (min-width: 48em) {
  .qualities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s6);
  }
}

/* Valeurs : grille typographique, deux colonnes sur bureau, une sur mobile. */
.values {
  display: grid;
  gap: var(--s5) var(--s7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}

.values h3 {
  margin: 0 0 var(--s1);
  font-size: calc(19px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.values p {
  margin: 0;
  font-size: calc(15px * var(--echelle));
  line-height: 1.55;
  color: var(--encre-2);
}

@media (min-width: 48em) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Acteurs : liste en deux colonnes. */
.pres .actors {
  margin: 0 0 var(--s3);
  padding-inline-start: var(--s5);
  line-height: 1.6;
  color: var(--encre);
}

.actors li + li {
  margin-top: var(--s1);
}

@media (min-width: 48em) {
  .pres .actors {
    columns: 2;
    column-gap: var(--s6);
  }

  .actors li {
    break-inside: avoid;
  }
}

.pres--end {
  padding-bottom: 0;
}

.pres__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5);
}

/* ---- Règlement : lecture soignée (65 caractères par ligne), extraits en citation avec filet d'accent, aucune carte ---- */
.regulation__main {
  min-width: 0;
}

.regulation__intro {
  max-width: 65ch;
  margin: 0 0 var(--s4);
  font-size: calc(17px * var(--echelle));
  line-height: 1.65;
  color: var(--encre-2);
}

.regulation .doc {
  max-width: 65ch;
}

.regulation .doc__article {
  position: relative;
  padding-block: var(--s6) var(--s4);
  border-top: 0;
  scroll-margin-top: calc(var(--s9) + var(--s7) + var(--s4));
}

.regulation .doc__heading {
  font-size: clamp(calc(22px * var(--echelle)), 2.6vw, calc(28px * var(--echelle)));
}

.doc__quote {
  position: relative;
  margin: 0 0 var(--s5);
  padding-left: var(--s5);
}

.doc__quote::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--violet-3), transparent);
}

.doc__quote blockquote {
  margin: 0;
}

.doc__quote blockquote p {
  margin: 0;
  font-size: calc(18px * var(--echelle));
  line-height: 1.75;
  color: var(--encre);
}

.doc__quote figcaption {
  margin-top: var(--s2);
  font-size: calc(14px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

.doc__quote figcaption b {
  color: var(--violet);
}

/* ==========================================================================================================================
   Lot L4a2 : héros animé de la page « Présentation » (exception documentée : accueil et Présentation sont les seules pages à héros animé).
   Fond clair lavande, formes douces, scène « ascension ». Règles des héros : seulement transform, opacity, translate, scale,
   stroke-dashoffset et offset-distance ; animations continues lentes (4 à 9 s) ; bouton Pause (front-contest-hero.js) ; mouvement réduit :
   la règle globale de front-base.css supprime les animations, chaque élément reste dans son état FINAL (c'est l'état de base ci-dessous) ;
   sans JavaScript : seules les entrées finies jouent, rien ne tourne en boucle (.is-live est posé par le script).
   ========================================================================================================================== */

.contest-hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--or-pale) 85%, transparent), transparent 70%),
    linear-gradient(165deg, var(--accent-lavande-pale), var(--accent-concours-fond) 70%, var(--accent-lavande-pale));
}

.contest-hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contest-hero__ambient i {
  position: absolute;
  border-radius: 50%;
}

.contest-hero__ambient i:nth-child(1) {
  top: -14%;
  left: -8%;
  width: 46vmax;
  max-width: 640px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--violet-3) 22%, transparent), transparent);
  translate: 0 calc(var(--parallax, 0) * 1px);
}

.contest-hero__ambient i:nth-child(2) {
  right: -6%;
  bottom: -22%;
  width: 40vmax;
  max-width: 560px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-clair) 38%, transparent), transparent);
}

.contest-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s3) var(--s4);
}

.contest-hero__trail {
  grid-column: 1 / -1;
}

.contest-hero__text {
  min-width: 0;
}

.contest-hero__eyebrow {
  display: block;
  margin-bottom: var(--s2);
  font-size: calc(13px * var(--echelle));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.contest-hero__title {
  margin: 0 0 var(--s3);
  font-size: clamp(calc(34px * var(--echelle)), 8.4vw, calc(64px * var(--echelle)));
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--violet);
}

.contest-hero__line {
  display: block;
}

.contest-hero__line + .contest-hero__line {
  padding-inline-start: 0.5em;
  color: var(--violet-2);
}

.contest-hero__lead {
  max-width: 52ch;
  margin: 0 0 var(--s4);
  font-size: calc(16px * var(--echelle));
  line-height: 1.55;
  color: var(--encre-2);
}

.contest-hero__lead small {
  display: block;
  margin-top: var(--s1);
  font-size: calc(13px * var(--echelle));
  color: var(--encre-2);
}

.contest-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  margin-bottom: var(--s5);
}

/* Frise des quatre phases (section 11.2) : piste fine, points, remplissage jaune pâle. */
.contest-phases {
  position: relative;
  max-width: 34em;
}

.contest-phases__track {
  position: absolute;
  top: 7px;
  right: 12.5%;
  left: 12.5%;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: color-mix(in srgb, var(--violet-3) 25%, transparent);
}

.contest-phases__fill,
.contest-phases__shine {
  position: absolute;
  inset: 0;
  border-radius: 3px;
}

.contest-phases__fill {
  background: var(--or-clair);
  transform-origin: left;
}

.contest-phases__shine {
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--blanc), transparent);
  opacity: 0;
}

.contest-phases__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.contest-phases__list li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--s2);
  text-align: center;
  font-size: calc(13px * var(--echelle));
  font-weight: 700;
  line-height: 1.25;
  color: var(--violet);
}

.contest-phases__dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--violet-2);
}

/* Chiffres clés : montent avec le compteur partagé (front-reveal.js) ; la valeur finale est dans le HTML. */
.contest-facts {
  display: none;
  gap: var(--s7);
  margin: var(--s5) 0 0;
}

.contest-facts > div {
  display: flex;
  flex-direction: column-reverse;
}

.contest-facts dd {
  margin: 0;
  font-size: calc(34px * var(--echelle));
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--violet);
}

.contest-facts dt {
  font-size: calc(14px * var(--echelle));
  font-weight: 600;
  color: var(--encre-2);
}

/* ---- Scène « ascension » : 480 × 300, tout en pourcentage ---- */
.contest-hero__stage {
  min-width: 0;
}

.ascent {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.ascent__steps {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ascent__step {
  position: absolute;
  bottom: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 29.2%;
  gap: 2cqi;
  color: var(--blanc);
}

.ascent__step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 3cqi 3cqi 0 0;
  background: var(--step-fill);
  transform-origin: bottom;
}

.ascent__step--1 {
  --step-fill: var(--violet-3);
  left: 3.1%;
  height: 28.3%;
}

.ascent__step--2 {
  --step-fill: var(--violet-2);
  left: 35.4%;
  height: 50%;
}

.ascent__step--3 {
  --step-fill: var(--violet);
  left: 67.7%;
  height: 71.7%;
}

.ascent__step span {
  font-size: calc(4.4cqi * var(--echelle));
  font-weight: 700;
}

.ascent__step b {
  font-size: calc(clamp(14px, 4.6cqi, 26px) * var(--echelle));
  font-weight: 800;
  line-height: 1.1;
}

.ascent__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ascent__line {
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ascent__runner {
  display: none;
  fill: var(--or-clair);
  stroke: var(--blanc);
  stroke-width: 3;
  offset-path: path("M18 262 C58 258 66 214 88 212 C132 208 158 154 238 148 C300 144 332 86 396 76");
  offset-rotate: 0deg;
}

.contest-hero.is-live .ascent__runner {
  display: block;
}

.ascent__crown {
  position: absolute;
  top: 3%;
  left: 71.5%;
  display: grid;
  place-items: center;
  width: 21.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--or-pale) 85%, var(--blanc));
}

.ascent__crown .icon {
  width: 64%;
  height: 64%;
}

.ascent__chip {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 24%;
}

.ascent__chip .icon {
  width: 11cqi;
  height: 11cqi;
  padding: 1.6cqi;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blanc) 78%, transparent);
}

.ascent__chip small {
  font-size: calc(max(11px, 2.9cqi) * var(--echelle));
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--violet);
}

.ascent__chip--1 {
  top: 4%;
  left: 2%;
}

.ascent__chip--2 {
  top: 20%;
  left: 24%;
}

.ascent__chip--3 {
  top: 6%;
  left: 47%;
}

.contest-hero__bar {
  min-height: 36px;
}

.contest-hero__pause {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
  color: var(--violet);
  background: var(--blanc);
  cursor: pointer;
  transition: background-color 0.15s;
}

.contest-hero__pause[hidden] {
  display: none;
}

.contest-hero__pause:hover {
  background: var(--violet-pale);
}

.contest-hero__pause .icon {
  width: 16px;
  height: 16px;
}

.contest-icon-play {
  display: none;
}

.contest-hero.is-paused .contest-icon-play {
  display: block;
}

.contest-hero.is-paused .contest-icon-pause {
  display: none;
}

@media (min-width: 48em) {
  .contest-facts {
    display: flex;
  }

  .contest-hero__inner {
    padding-block: var(--s4) var(--s5);
  }

  .contest-hero__lead {
    font-size: calc(18px * var(--echelle));
  }
}

@media (min-width: 64em) {
  .contest-hero {
    min-height: clamp(30rem, calc(100svh - 14rem), 44rem);
  }

  .contest-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: var(--s4) var(--s7);
  }

  .contest-hero__text {
    align-self: center;
  }

  .contest-hero__stage {
    align-self: center;
  }

  .contest-hero__bar {
    grid-column: 1 / -1;
  }

  .contest-hero__title {
    font-size: clamp(calc(48px * var(--echelle)), 5.4vw, calc(76px * var(--echelle)));
  }
}

/* ---- Entrées (finies, une seule fois ; l'état de base est l'état FINAL). Règle des héros (lot L4e2) : à +0 s tout le contenu est DÉJÀ visible
   (opacité de départ 0,3 à 0,4, jamais 0) ; l'entrée n'ajoute que le mouvement et l'éclat. ---- */
@keyframes contest-rise {
  from {
    opacity: 0.4;
    translate: 0 22px;
  }
}

@keyframes contest-bar-up {
  from {
    transform: scaleY(0);
  }
}

@keyframes contest-draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes contest-pop {
  from {
    opacity: 0.3;
    scale: 0.4;
  }
}

@keyframes contest-fill {
  from {
    transform: scaleX(0);
  }
}

@keyframes contest-fade {
  from {
    opacity: 0.3;
  }
}

@keyframes contest-dot {
  from {
    opacity: 0.25;
    scale: 0.5;
  }
}

.contest-hero__eyebrow {
  animation: contest-rise 0.7s 0.05s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.contest-hero__line:nth-child(1) {
  animation: contest-rise 0.8s 0.15s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.contest-hero__line:nth-child(2) {
  animation: contest-rise 0.8s 0.35s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.contest-hero__lead {
  animation: contest-rise 0.8s 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.contest-hero__actions {
  animation: contest-rise 0.8s 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.contest-phases__fill {
  animation: contest-fill 2.6s 0.9s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.contest-phases__list li:nth-child(1) .contest-phases__dot {
  animation: contest-dot 0.5s 0.9s backwards;
}

.contest-phases__list li:nth-child(2) .contest-phases__dot {
  animation: contest-dot 0.5s 1.7s backwards;
}

.contest-phases__list li:nth-child(3) .contest-phases__dot {
  animation: contest-dot 0.5s 2.5s backwards;
}

.contest-phases__list li:nth-child(4) .contest-phases__dot {
  animation: contest-dot 0.5s 3.3s backwards;
}

.ascent__step--1::before {
  animation: contest-bar-up 0.9s 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.ascent__step--2::before {
  animation: contest-bar-up 0.9s 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.ascent__step--3::before {
  animation: contest-bar-up 0.9s 1.3s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.ascent__line {
  animation: contest-draw 2.2s 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* ---- Mouvements continus : seulement avec JavaScript (.is-live), arrêtés par Pause, hors écran et onglet masqué (.is-still) ---- */
@keyframes contest-run {
  0%,
  8% {
    offset-distance: 0%;
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  92%,
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes contest-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@keyframes contest-float-b {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 3px 5px;
  }
}

@keyframes contest-twinkle {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.07;
  }
}

@keyframes contest-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 14px 10px;
  }
}

@keyframes contest-shine {
  0% {
    translate: -100% 0;
    opacity: 0;
  }

  15%,
  70% {
    opacity: 0.9;
  }

  100% {
    translate: 330% 0;
    opacity: 0;
  }
}

.ascent__crown {
  animation: contest-pop 0.7s 2.6s backwards;
}

.ascent__chip {
  animation: contest-fade 0.8s backwards;
}

.ascent__chip--1 {
  animation-delay: 1.4s;
}

.ascent__chip--2 {
  animation-delay: 1.7s;
}

.ascent__chip--3 {
  animation-delay: 2s;
}

.contest-hero.is-live .ascent__runner {
  animation: contest-run 7s 3s ease-in-out infinite;
}

.contest-hero.is-live .ascent__crown {
  animation: contest-pop 0.7s 2.6s backwards, contest-twinkle 4.5s 3.4s ease-in-out infinite;
}

.contest-hero.is-live .ascent__chip--1 {
  animation: contest-fade 0.8s 1.4s backwards, contest-float 5.4s 2.2s ease-in-out infinite;
}

.contest-hero.is-live .ascent__chip--2 {
  animation: contest-fade 0.8s 1.7s backwards, contest-float-b 6.3s 2.5s ease-in-out infinite;
}

.contest-hero.is-live .ascent__chip--3 {
  animation: contest-fade 0.8s 2s backwards, contest-float 7s 2.8s ease-in-out infinite;
}

.contest-hero.is-live .contest-hero__ambient i:nth-child(1) {
  animation: contest-drift 9s ease-in-out infinite;
}

.contest-hero.is-live .contest-hero__ambient i:nth-child(2) {
  animation: contest-drift 8s ease-in-out infinite reverse;
}

.contest-hero.is-live .contest-phases__shine {
  animation: contest-shine 6s 4s ease-in-out infinite;
}

/* Pause : seules les animations continues s'arrêtent (les entrées vont jusqu'à leur état final). */
.contest-hero.is-still .ascent__runner,
.contest-hero.is-still .contest-hero__ambient i,
.contest-hero.is-still .contest-phases__shine {
  animation-play-state: paused !important;
}

.contest-hero.is-still .ascent__crown,
.contest-hero.is-still .ascent__chip {
  animation-play-state: running, paused !important;
}

/* Sans mouvement le repère n'aurait pas de place sur le tracé : il disparaît. */
@media (prefers-reduced-motion: reduce) {
  .ascent__runner {
    display: none !important;
  }
}

html[data-motion="reduced"] .ascent__runner {
  display: none !important;
}

/* ==========================================================================================================================
   Lot L4a2 : mise en forme plus animée de la page « Présentation » (cette page seulement), finitions.
   ========================================================================================================================== */

/* Cascade : les vignettes se posent l'une après l'autre (délais du système partagé, prolongés jusqu'à dix) ; relief de 2 px au survol
   (transform, propriété déjà animée par le système partagé : sans retard) et pictogramme qui s'anime. */
.values[data-reveal-stagger] > :nth-child(7) {
  --reveal-delay: 0.42s;
}

.values[data-reveal-stagger] > :nth-child(8) {
  --reveal-delay: 0.49s;
}

.values[data-reveal-stagger] > :nth-child(9) {
  --reveal-delay: 0.56s;
}

.values[data-reveal-stagger] > :nth-child(10) {
  --reveal-delay: 0.63s;
}

.nature li:hover,
.values li:hover,
.qualities li:hover {
  transform: translateY(-2px);
}

@keyframes pres-wiggle {
  0%,
  100% {
    rotate: 0deg;
  }

  30% {
    rotate: -8deg;
  }

  65% {
    rotate: 8deg;
  }
}

@keyframes pres-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

.nature li:hover .icon,
.values li:hover .icon,
.qualities li:hover .icon {
  animation: pres-wiggle 0.6s ease-in-out;
}

/* Pictogrammes des sections : flottent doucement (5 px, 5 à 7 s) tant que la section est à l'écran (.is-in-view) ; Pause les arrête. */
.pres.is-in-view :is(.nature, .values, .qualities) li:nth-child(odd) :is(.nature__icon, .values__icon, .qualities__icon) {
  animation: pres-float 5.6s ease-in-out infinite;
}

.pres.is-in-view :is(.nature, .values, .qualities) li:nth-child(even) :is(.nature__icon, .values__icon, .qualities__icon) {
  animation: pres-float 6.8s 0.6s ease-in-out infinite;
}

.presentation.is-still :is(.nature__icon, .values__icon, .qualities__icon) {
  animation-play-state: paused !important;
}

/* Fonds : clair, lavis de rubrique, clair ; une forme douce se décale très légèrement au défilement (20 px au plus, translate). */
.pres--tint {
  overflow: clip;
}

.pres--tint-b {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-votes-fond) 85%, transparent), color-mix(in srgb, var(--accent-concours-fond) 55%, transparent) 70%, transparent);
}

.pres__shape {
  position: absolute;
  top: -70px;
  right: -60px;
  z-index: 0;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-pale) 90%, transparent), transparent);
  translate: 0 calc(var(--parallax, 0) * 1px);
  pointer-events: none;
}

.pres--tint > :not(.pres__shape) {
  position: relative;
  z-index: 1;
}

/* Citation de la vision : soulignement qui se dessine à l'entrée (stroke-dashoffset, système partagé data-reveal="draw"). */
.pres__underline {
  display: block;
  width: min(100%, 15em);
  height: 14px;
  margin-top: var(--s2);
  overflow: visible;
}

.pres__underline path {
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 4;
  stroke-linecap: round;
}

/* Section « Qu'est-ce que le concours ? » : texte plus large (65 caractères), illustration plus grande. */
.pres--intro {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48em) {
  .pres--intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--s6);
  }
}

.pres--split .pres__art {
  aspect-ratio: 4 / 3;
}

.pres__art img {
  width: min(100%, 34em);
}

/* « Qui organise, qui agit » : deux colonnes dont les lignes s'alignent (grille, pas de colonnes de texte). */
.pres .actors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s2) var(--s6);
  padding-inline-start: 0;
  list-style: none;
  columns: auto;
}

.actors li {
  position: relative;
  margin: 0;
  padding-inline-start: var(--s4);
}

.actors li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-3);
}

.actors li + li {
  margin-top: 0;
}

@media (min-width: 48em) {
  .pres .actors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    columns: auto;
  }
}

/* Fin de page : fond doux, espace resserré avant le pied de page. */
.pres--end {
  padding: var(--s6) var(--s5);
  border-radius: 40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-concours-fond) 90%, transparent), color-mix(in srgb, var(--or-pale) 70%, transparent));
}

.presentation {
  padding-bottom: var(--s7);
}

/* Mobile (sous 768 px) : le héros ne dépasse pas un écran (100 svh moins l'en-tête et le bandeau). Frise des phases, chiffres et mention de
   source de l'accroche sont masqués ; la scène est plus petite mais reste animée ; le bouton Pause se pose en haut à droite. */
@media (max-width: 47.99em) {
  .contest-hero__inner {
    gap: var(--s3);
    padding-bottom: var(--s5);
  }

  .contest-hero__title {
    font-size: clamp(calc(30px * var(--echelle)), 9vw, calc(40px * var(--echelle)));
  }

  .contest-phases,
  .contest-hero__lead small {
    display: none;
  }

  .contest-hero__actions {
    margin-bottom: var(--s2);
  }

  .ascent {
    max-width: 300px;
  }

  .contest-hero__bar {
    position: absolute;
    top: var(--s3);
    right: var(--s4);
    min-height: 0;
  }
}

/* ==========================================================================================================================
   Lot L4a2 : Règlement, une icône (44 px) et une bande de teinte par thème. Sobre : aucune bordure ni ombre ; la bande pleine largeur est un
   lavis tiré des teintes de rubrique (data-tint, front-accents.css) ou blanche (data-band="neutre") ; le liseré des extraits reprend la
   couleur d'icône du thème. Texte toujours en encre / violet : contrastes mesurés dans docs/qa.md.
   ========================================================================================================================== */
.regulation__aside {
  z-index: 2;
}

.regulation .doc {
  max-width: none;
}

.regulation .doc__article {
  --band-icon: var(--violet-2);
  isolation: isolate;
}

.regulation .doc__article > * {
  max-width: 65ch;
}

.regulation .doc__article[data-tint] {
  --band-icon: var(--tint-icone);
  padding-block: var(--s6);
}

.regulation .doc__article[data-tint]::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100vmax;
  bottom: 0;
  left: -100vmax;
  z-index: -1;
  background:
    radial-gradient(38vw 70% at 88% 12%, color-mix(in srgb, var(--tint-icone) 11%, transparent), transparent),
    var(--tint-fond);
}

.doc__head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s4);
}

.regulation .doc__heading {
  margin: 0;
}

.doc__icon {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--band-icon, var(--violet-2));
}

.doc__icon .icon {
  width: 44px;
  height: 44px;
}

.regulation .doc__quote::before {
  background: linear-gradient(180deg, var(--band-icon), transparent);
}

/* ==========================================================================================================================
   Lot L4b : pages « Calendrier » (frise + tableau) et « Questions fréquentes » (accordéons, bandes de teinte). Sans cadre : lavis, filets
   fins, aucune ombre ; sections animées à la première entrée (data-reveal) ; rien de continu.
   ========================================================================================================================== */

.calendar {
  display: grid;
  gap: var(--s7);
  padding-block: var(--s6) var(--s7);
  font-size: var(--fs-base);
}

.cal {
  position: relative;
  min-width: 0;
  scroll-margin-top: calc(var(--s9) + var(--s7) + var(--s4));
}

.cal__title {
  margin: 0 0 var(--s4);
  font-size: clamp(calc(24px * var(--echelle)), 3vw, calc(34px * var(--echelle)));
  font-weight: 800;
  line-height: 1.15;
  color: var(--violet);
  text-wrap: balance;
}

.cal__note {
  max-width: 65ch;
  margin: 0 0 var(--s4);
  line-height: 1.65;
  color: var(--encre);
}

.cal__note small {
  display: block;
  margin-top: var(--s1);
  font-size: calc(14px * var(--echelle));
  color: var(--encre-2);
}

.cal--split {
  display: grid;
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 48em) {
  .cal--split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--s7);
  }
}

.cal--split .doc__quote:last-child {
  margin-bottom: 0;
}

.cal--end {
  padding: var(--s6) var(--s5);
  border-radius: 40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-concours-fond) 90%, transparent), color-mix(in srgb, var(--or-pale) 70%, transparent));
}

/* ---- Frise (composant front.timeline) : verticale sur mobile, horizontale dès 768 px ---- */
.timeline {
  position: relative;
}

.timeline__list {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  margin: 0;
  padding: 0 0 0 var(--s8);
  list-style: none;
}

.timeline__line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet-3), var(--or-clair));
  transform-origin: top;
}

.js-reveal .timeline__line[data-reveal="draw"]:not(.is-revealed) {
  scale: 1 0;
  transform-origin: top;
}

.timeline__step {
  position: relative;
  display: grid;
  gap: var(--s2);
  align-content: start;
  min-width: 0;
}

.timeline__node {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--s8));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--tint-icone, var(--violet-2));
  background: var(--tint-fond, var(--accent-concours-fond));
}

.timeline__node .icon {
  width: 30px;
  height: 30px;
}

.timeline__number {
  font-size: calc(13px * var(--echelle));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tint-texte, var(--violet-2));
}

.timeline__name {
  margin: 0;
  font-size: calc(24px * var(--echelle));
  font-weight: 800;
  line-height: 1.15;
  color: var(--violet);
}

.timeline__def {
  margin: 0;
  line-height: 1.6;
  color: var(--encre);
}

.timeline__source {
  margin: 0;
  font-size: calc(13px * var(--echelle));
  color: var(--encre-2);
}

.timeline__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin: 0;
  font-size: calc(15px * var(--echelle));
  font-weight: 600;
  color: var(--violet);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: calc(13px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
}

.status .icon {
  width: 16px;
  height: 16px;
}

.status--upcoming {
  background: var(--info-pale);
}

.status--ongoing {
  background: var(--succes-pale);
}

.status--finished {
  background: var(--fond-2);
}

@media (min-width: 48em) {
  .timeline__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s5);
    padding: 0;
  }

  .timeline__line {
    top: 25px;
    right: 12.5%;
    bottom: auto;
    left: 12.5%;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, var(--violet-3), var(--or-clair));
  }

  .js-reveal .timeline__line[data-reveal="draw"]:not(.is-revealed) {
    scale: 0 1;
    transform-origin: left;
  }

  .timeline__step {
    justify-items: center;
    text-align: center;
  }

  .timeline__node {
    position: relative;
    left: auto;
    margin-bottom: var(--s2);
  }

  .timeline__when {
    justify-content: center;
  }
}

/* ---- Tableau accessible ---- */
.cal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(16px * var(--echelle));
  line-height: 1.5;
  color: var(--encre);
  text-align: left;
}

.cal-table caption {
  padding-bottom: var(--s3);
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  text-align: left;
  color: var(--encre-2);
}

.cal-table th,
.cal-table td {
  padding: var(--s3) var(--s4) var(--s3) 0;
  vertical-align: top;
}

.cal-table thead th {
  font-size: calc(14px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
  background: linear-gradient(90deg, var(--accent-concours-fond), transparent);
}

.cal-table thead th:first-child,
.cal-table tbody th {
  padding-left: var(--s3);
}

.cal-table tbody th {
  min-width: 8em;
  font-weight: 800;
  color: var(--violet);
}

.cal-table tbody tr {
  background: linear-gradient(90deg, color-mix(in srgb, var(--violet-3) 35%, transparent), transparent) bottom / 100% 1px no-repeat;
}

.cal-table ul {
  margin: 0;
  padding-left: var(--s4);
}

/* ---- Questions fréquentes ---- */
.faq-page {
  padding-block: var(--s5) var(--s7);
}

.faq-search {
  max-width: 65ch;
  margin-bottom: var(--s6);
}

.faq-search__label {
  display: block;
  margin-bottom: var(--s2);
  font-size: calc(15px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.faq-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search__field > .icon {
  position: absolute;
  left: var(--s3);
  width: 20px;
  height: 20px;
  color: var(--violet-2);
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  min-height: 44px;
  padding: var(--s2) 48px var(--s2) 44px;
  border: 2px solid var(--violet-3);
  border-radius: 8px;
  font: inherit;
  font-size: calc(16px * var(--echelle));
  color: var(--encre);
  background: var(--blanc);
}

.faq-search__input:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.faq-search__clear {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--violet);
  background: transparent;
  cursor: pointer;
}

.faq-search__clear[hidden] {
  display: none;
}

.faq-search__clear:hover {
  background: var(--violet-pale);
}

.faq-search__clear .icon {
  width: 18px;
  height: 18px;
}

.faq-search__status {
  min-height: 1.5em;
  margin: var(--s2) 0 0;
  font-size: calc(14px * var(--echelle));
  color: var(--encre-2);
}

.faq-empty {
  margin: var(--s3) 0 0;
  font-size: calc(17px * var(--echelle));
  line-height: 1.6;
  color: var(--encre);
}

.faq-empty[hidden],
.faq-search[hidden],
[data-faq-item][hidden],
[data-faq-group][hidden] {
  display: none;
}

.faq-group {
  --band-icon: var(--violet-2);
  position: relative;
  isolation: isolate;
  padding-block: var(--s6);
  scroll-margin-top: calc(var(--s9) + var(--s7) + var(--s4));
}

.faq-group[data-tint] {
  --band-icon: var(--tint-icone);
}

.faq-group[data-tint]::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100vmax;
  bottom: 0;
  left: -100vmax;
  z-index: -1;
  background:
    radial-gradient(38vw 70% at 88% 12%, color-mix(in srgb, var(--tint-icone) 11%, transparent), transparent),
    var(--tint-fond);
}

.faq-group > * {
  max-width: 65ch;
}

.faq-group__head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s4);
}

.faq-group__title {
  margin: 0;
  font-size: clamp(calc(22px * var(--echelle)), 2.6vw, calc(28px * var(--echelle)));
  font-weight: 800;
  line-height: 1.15;
  color: var(--violet);
}

.faq-item {
  background: linear-gradient(90deg, color-mix(in srgb, var(--band-icon) 38%, transparent), transparent) bottom / 100% 1px no-repeat;
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 48px;
  padding: var(--s3) 0;
  font-size: calc(18px * var(--echelle));
  font-weight: 700;
  line-height: 1.4;
  color: var(--violet);
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--band-icon);
  border-bottom: 2px solid var(--band-icon);
  rotate: 45deg;
  transition: rotate 0.2s;
}

.faq-item[open] > .faq-item__summary::after {
  rotate: 225deg;
}

.faq-item__summary:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.faq-item:target .faq-item__q {
  background: linear-gradient(var(--or-clair), var(--or-clair)) 0 100% / 100% 3px no-repeat;
}

.faq-item__a {
  padding-bottom: var(--s3);
}

.faq-item__a .doc__quote::before {
  background: linear-gradient(180deg, var(--band-icon), transparent);
}

.faq-item__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
}

.faq-item__link .icon {
  width: 16px;
  height: 16px;
}

.faq-end {
  display: grid;
  gap: var(--s5);
  align-items: center;
  margin-top: var(--s7);
}

@media (min-width: 48em) {
  .faq-end {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--s7);
  }
}

.faq-search__input::placeholder {
  color: var(--encre-2);
  opacity: 1;
}

/* Le bouton « Effacer » du site remplace la croix native du champ de recherche. */
.faq-search__input::-webkit-search-cancel-button,
.faq-search__input::-webkit-search-decoration {
  display: none;
  appearance: none;
}

/* ==========================================================================================================================
   Lot L4c : « Comment participer » (héros « le dossier qui se complète », sections vives) et « S'inscrire » (page d'entrée).
   Les règles des héros sont celles de la Présentation : transform, opacity, translate, scale, stroke-dashoffset, offset-distance ;
   l'état de base est l'état FINAL (mouvement réduit : immobile) ; les mouvements continus ne démarrent qu'avec JavaScript (.is-live).
   ========================================================================================================================== */

.dossier {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.dossier__sheet {
  position: absolute;
  top: 4%;
  left: 3%;
  display: grid;
  align-content: space-evenly;
  gap: 2cqi;
  width: 44%;
  height: 52%;
  padding: 3cqi 4cqi;
  border-radius: 4cqi;
  background: color-mix(in srgb, var(--blanc) 82%, transparent);
}

.dossier__sheet-icon {
  position: absolute;
  top: 2cqi;
  right: 3cqi;
  width: 8cqi;
  height: 8cqi;
}

.dossier__sheet-icon .icon {
  width: 100%;
  height: 100%;
}

.dossier__row {
  display: flex;
  align-items: center;
  gap: 2.5cqi;
  width: 82%;
}

.dossier__check {
  display: grid;
  flex: none;
  place-items: center;
  width: 5.4cqi;
  height: 5.4cqi;
  border-radius: 50%;
  color: var(--blanc);
  background: var(--violet-2);
}

.dossier__check .icon {
  width: 3.4cqi;
  height: 3.4cqi;
}

.dossier__rule {
  flex: 1;
  height: 2cqi;
  overflow: visible;
}

.dossier__stroke {
  fill: none;
  stroke: var(--violet-3);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.dossier__chips {
  position: absolute;
  top: 4%;
  right: 3%;
  display: grid;
  gap: 2cqi;
  width: 42%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dossier__chip {
  display: flex;
  align-items: center;
  gap: 2.5cqi;
  min-height: 8.6cqi;
  padding: 0 4cqi 0 2cqi;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--violet);
}

.dossier__chip .icon {
  flex: none;
  width: 6cqi;
  height: 6cqi;
}

.dossier__chip b {
  font-size: calc(clamp(13px, 3.4cqi, 20px) * var(--echelle));
  font-weight: 800;
}

.dossier__chip--1 {
  --chip-bg: var(--accent-candidats-fond);
}

.dossier__chip--2 {
  --chip-bg: var(--info-pale);
}

.dossier__chip--3 {
  --chip-bg: var(--succes-pale);
}

.dossier__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.dossier__trail {
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.dossier__runner {
  display: none;
  fill: var(--or-clair);
  stroke: var(--blanc);
  stroke-width: 3;
  offset-path: path("M40 252 C120 252 150 232 240 232 S350 214 430 214");
  offset-rotate: 0deg;
}

.contest-hero.is-live .dossier__runner {
  display: block;
}

.dossier__nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dossier__node {
  position: absolute;
  width: 7.4cqi;
  height: 7.4cqi;
}

.dossier__node i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: calc(3.4cqi * var(--echelle));
  font-style: normal;
  font-weight: 800;
  color: var(--blanc);
  background: var(--violet-2);
}

.dossier__node i .icon {
  width: 5cqi;
  height: 5cqi;
}

.dossier__node span {
  position: absolute;
  top: 100%;
  margin-top: 1cqi;
  font-size: calc(max(11px, 2.7cqi) * var(--echelle));
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--violet);
}

.dossier__node--1 {
  top: calc(84% - 3.7cqi);
  left: calc(8.3% - 3.7cqi);
}

.dossier__node--1 span {
  left: 0;
}

.dossier__node--2 {
  top: calc(77.3% - 3.7cqi);
  left: calc(50% - 3.7cqi);
}

.dossier__node--2 span {
  left: 50%;
  translate: -50% 0;
}

.dossier__node--3 {
  top: calc(71.3% - 3.7cqi);
  left: calc(89.6% - 3.7cqi);
}

.dossier__node--3 i {
  background: color-mix(in srgb, var(--or-pale) 85%, var(--blanc));
}

.dossier__node--3 span {
  right: 0;
}

@media (max-width: 47.99em) {
  .dossier__node span {
    display: none;
  }
}

/* ---- Entrées (finies) ---- */
.dossier__sheet {
  animation: contest-fade 0.6s 0.2s backwards;
}

.dossier__row--1 .dossier__stroke {
  animation: contest-draw 0.9s 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.dossier__row--2 .dossier__stroke {
  animation: contest-draw 0.9s 1.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.dossier__row--3 .dossier__stroke {
  animation: contest-draw 0.9s 2.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.dossier__row--1 .dossier__check {
  animation: contest-pop 0.5s 1.4s backwards;
}

.dossier__row--2 .dossier__check {
  animation: contest-pop 0.5s 2.3s backwards;
}

.dossier__row--3 .dossier__check {
  animation: contest-pop 0.5s 3.2s backwards;
}

.dossier__trail {
  animation: contest-draw 2.2s 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.dossier__node--1 {
  animation: contest-fade 0.5s 0.9s backwards;
}

.dossier__node--2 {
  animation: contest-fade 0.5s 1.9s backwards;
}

.dossier__node--3 {
  animation: contest-pop 0.6s 2.9s backwards;
}

.dossier__chip--1 {
  animation: contest-pop 0.5s 1.1s backwards;
}

.dossier__chip--2 {
  animation: contest-pop 0.5s 1.4s backwards;
}

.dossier__chip--3 {
  animation: contest-pop 0.5s 1.7s backwards;
}

/* ---- Mouvements continus (JavaScript, arrêtés par Pause) ---- */
.contest-hero.is-live .dossier__runner {
  animation: contest-run 7s 3.4s ease-in-out infinite;
}

.contest-hero.is-live .dossier__chip--1 {
  animation: contest-pop 0.5s 1.1s backwards, contest-float 5.6s 2s ease-in-out infinite;
}

.contest-hero.is-live .dossier__chip--2 {
  animation: contest-pop 0.5s 1.4s backwards, contest-float-b 6.4s 2.3s ease-in-out infinite;
}

.contest-hero.is-live .dossier__chip--3 {
  animation: contest-pop 0.5s 1.7s backwards, contest-float 7s 2.6s ease-in-out infinite;
}

.contest-hero.is-live .dossier__node--3 {
  animation: contest-pop 0.6s 2.9s backwards, contest-twinkle 4.5s 3.6s ease-in-out infinite;
}

.contest-hero.is-still .dossier__runner {
  animation-play-state: paused !important;
}

.contest-hero.is-still .dossier__chip,
.contest-hero.is-still .dossier__node--3 {
  animation-play-state: running, paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .dossier__runner {
    display: none !important;
  }
}

html[data-motion="reduced"] .dossier__runner {
  display: none !important;
}

/* ---- Sections de « Comment participer » ---- */
.points {
  display: grid;
  gap: var(--s3);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 65ch;
  line-height: 1.55;
  color: var(--encre);
}

.points__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--violet-2);
  background: var(--accent-concours-fond);
}

.points__icon .icon {
  width: 24px;
  height: 24px;
}

.cats {
  display: grid;
  gap: var(--s5);
}

@media (min-width: 48em) {
  .cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s6);
  }
}

.cat {
  position: relative;
  min-width: 0;
  padding-top: var(--s4);
  background: linear-gradient(90deg, var(--cat-line), transparent) top / 100% 3px no-repeat;
}

.cat--1 {
  --cat-line: var(--accent-candidats-icone);
}

.cat--2 {
  --cat-line: var(--info);
}

.cat--3 {
  --cat-line: var(--succes);
}

.cat__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s3);
  border-radius: 18px;
  background: var(--blanc);
}

.cat__icon .icon {
  width: 36px;
  height: 36px;
}

.cat h3 {
  margin: 0 0 var(--s2);
  font-size: calc(22px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.cat p {
  margin: 0 0 var(--s2);
  line-height: 1.6;
  color: var(--encre);
}

.cat small,
.pres__lead .source {
  display: block;
  font-size: calc(13px * var(--echelle));
  color: var(--encre-2);
}

.checklist {
  display: grid;
  gap: var(--s3);
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: calc(18px * var(--echelle));
  font-weight: 600;
  color: var(--violet);
}

.checklist__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--blanc);
  background: var(--violet-2);
}

.checklist__box .icon {
  width: 18px;
  height: 18px;
}

.checklist__icon {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--violet-2);
}

.checklist__icon .icon {
  width: 100%;
  height: 100%;
}

/* ---- Parcours vertical (front.vsteps) ---- */
.vsteps {
  position: relative;
  max-width: 65ch;
}

.vsteps__list {
  position: relative;
  display: grid;
  gap: var(--s5);
  margin: 0;
  padding: 0 0 0 var(--s8);
  list-style: none;
}

.vsteps__line {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet-3), var(--or-clair));
}

.js-reveal .vsteps__line[data-reveal="draw"]:not(.is-revealed) {
  scale: 1 0;
  transform-origin: top;
}

.vsteps__step {
  position: relative;
  min-width: 0;
}

.vsteps__node {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--s8));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--blanc);
  background: var(--violet-2);
}

.vsteps__title {
  margin: 0 0 var(--s1);
  font-size: calc(20px * var(--echelle));
  font-weight: 800;
  line-height: 1.25;
  color: var(--violet);
}

.vsteps__text {
  margin: 0 0 var(--s2);
  line-height: 1.6;
  color: var(--encre);
}

.vsteps .doc__quote {
  margin: var(--s2) 0 0;
}

/* ---- S'inscrire ---- */
.registration__notice {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 65ch;
  margin: 0 0 var(--s4);
  padding: var(--s4) var(--s5);
  border-radius: 20px;
  font-size: calc(20px * var(--echelle));
  font-weight: 800;
  line-height: 1.4;
  color: var(--violet);
  background: linear-gradient(90deg, var(--info-pale), transparent);
}

.registration__notice .icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--info);
}

.registration .doc__quote blockquote ul {
  margin: var(--s2) 0 0;
  padding-left: var(--s4);
  line-height: 1.65;
  color: var(--encre);
}

@media (max-width: 47.99em) {
  .page-hero .contest-hero__lead small {
    display: none;
  }
}

/* Titre de « Comment participer » : deux lignes (le titre est plus long que « Miss & Mister Excellence »). */
@media (min-width: 64em) {
  .page-hero .contest-hero__title {
    font-size: clamp(calc(40px * var(--echelle)), 4.4vw, calc(62px * var(--echelle)));
  }
}

@media (max-width: 47.99em) {
  .contest-hero__trail {
    padding-right: 48px;
  }
}

/* Étiquettes des étapes du héros : retour à la ligne autorisé pour ne jamais se toucher d'une étape à l'autre. */
.dossier__node span {
  white-space: normal;
  width: 26cqi;
}

.dossier__node--1 span {
  text-align: left;
}

.dossier__node--2 span {
  text-align: center;
}

.dossier__node--3 span {
  text-align: right;
}

/* ==========================================================================================================================
   Lot L4c2 : « Comment participer » plus vivante (Pour qui ?, marges), « S'inscrire » (information), « Formulaire d'inscription ».
   ========================================================================================================================== */
.pres--tint-c {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-candidats-fond) 90%, transparent), color-mix(in srgb, var(--accent-concours-fond) 45%, transparent) 70%, transparent);
}

.who {
  display: grid;
  gap: var(--s5);
  align-items: start;
}

@media (min-width: 48em) {
  .who {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--s6);
  }
}

.who__quotes .doc__quote:last-child {
  margin-bottom: 0;
}

.points--tiles {
  margin-top: 0;
}

.points--tiles li {
  padding: var(--s3) var(--s4);
  border-radius: 20px;
  background: color-mix(in srgb, var(--blanc) 72%, transparent);
}

.points--tiles .points__icon {
  background: var(--blanc);
}

.cat__margin {
  margin: var(--s3) 0 0;
  padding: var(--s2) var(--s3);
  border-radius: 12px;
  font-size: calc(15px * var(--echelle));
  line-height: 1.5;
  color: var(--violet);
  background: color-mix(in srgb, var(--blanc) 78%, transparent);
}

.cat__margin b {
  display: block;
  font-size: calc(12px * var(--echelle));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.cats__rule {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 65ch;
  margin: var(--s5) 0 0;
  font-weight: 700;
  line-height: 1.5;
  color: var(--violet);
}

.cats__rule .icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--info);
}

.catnames {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s6);
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
}

.catnames li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: calc(20px * var(--echelle));
  color: var(--violet);
}

.catnames__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blanc);
}

.catnames__icon .icon {
  width: 34px;
  height: 34px;
}

.types {
  display: grid;
  gap: var(--s5);
}

@media (min-width: 48em) {
  .types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6);
  }
}

.type {
  min-width: 0;
}

.type__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s2);
  border-radius: 50%;
  color: var(--violet-2);
  background: var(--accent-concours-fond);
}

.type__icon .icon {
  width: 26px;
  height: 26px;
}

.type h3 {
  margin: 0 0 var(--s1);
  font-size: calc(20px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.type p {
  margin: 0;
  line-height: 1.6;
}

.notes {
  max-width: 65ch;
  margin: var(--s5) 0 0;
  padding-left: var(--s5);
  line-height: 1.65;
  color: var(--encre);
}

.pres__split-end {
  display: grid;
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 48em) {
  .pres__split-end {
    grid-template-columns: minmax(0, 1fr) minmax(0, 14em);
  }
}

.pres__art--small {
  aspect-ratio: 4 / 3;
}

/* ---- Critères d'évaluation (lot L4c2) ---- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
  gap: var(--s2) var(--s5);
  max-width: 52em;
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
}

.principles li {
  position: relative;
  padding-left: var(--s4);
  line-height: 1.5;
  color: var(--encre);
}

.principles li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-3);
}

.crits {
  display: grid;
  gap: var(--s5);
}

.crit {
  display: flex;
  gap: var(--s4);
  padding: var(--s5);
  border-radius: 28px;
  background: var(--crit-bg);
}

.crit--1 {
  --crit-bg: var(--accent-concours-fond);
}

.crit--2 {
  --crit-bg: var(--accent-candidats-fond);
}

.crit--0 {
  --crit-bg: var(--accent-votes-fond);
}

.crit__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--blanc);
}

.crit__icon .icon {
  width: 40px;
  height: 40px;
}

.crit__body {
  min-width: 0;
}

.crit h3 {
  margin: 0 0 var(--s2);
  font-size: calc(22px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.crit__lead {
  margin: 0 0 var(--s2);
  font-weight: 700;
  color: var(--encre);
}

.crit ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
  gap: var(--s1) var(--s5);
  margin: 0 0 var(--s3);
  padding: 0;
  list-style: none;
}

.crit li {
  position: relative;
  padding-left: var(--s4);
  line-height: 1.5;
  color: var(--encre);
}

.crit li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-2);
}

.crit__points {
  display: inline-block;
  margin: 0 0 var(--s2);
  padding: 2px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--violet);
  background: color-mix(in srgb, var(--blanc) 80%, transparent);
}

.crit small {
  display: block;
  font-size: calc(13px * var(--echelle));
  color: var(--encre-2);
}

.criteria .cal-table caption small {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

.criteria .cal-table tfoot th,
.criteria .cal-table tfoot td {
  font-weight: 800;
  color: var(--violet);
}

.criteria .cal-table tbody td:last-child,
.criteria .cal-table tfoot td:last-child,
.criteria .cal-table thead th:last-child {
  text-align: right;
  padding-right: var(--s4);
}

.tiebreak {
  max-width: 65ch;
  margin: 0 0 var(--s4);
  padding-left: var(--s5);
  line-height: 1.65;
  color: var(--encre);
}

@media (max-width: 47.99em) {
  .crit {
    flex-direction: column;
    padding: var(--s4);
  }
}

.pres:not(.pres--tint) .points--tiles li {
  background: var(--accent-concours-fond);
}

.points + .doc__quote,
.points + figure {
  margin-top: var(--s5);
}

/* ==========================================================================================================================
   Lot L4d : onglet Votes et résultats. Héros « le bulletin qui voyage » (Comment voter) et « la grille qui s'allume » (Candidats en lice).
   Mêmes règles que les autres héros : transform, opacity, translate, scale, stroke-dashoffset, offset-distance ; l'état de base est l'état FINAL ;
   les mouvements continus ne démarrent qu'avec JavaScript (.is-live) et s'arrêtent avec Pause.
   ========================================================================================================================== */

/* ---- Comment voter : le bulletin qui voyage ---- */
.ballot {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.ballot__phone {
  position: absolute;
  top: 6%;
  left: 4%;
  display: grid;
  align-content: center;
  gap: 5cqi;
  width: 22%;
  height: 62%;
  padding: 0 3.5cqi;
  border-radius: 5cqi;
  background: color-mix(in srgb, var(--blanc) 85%, transparent);
}

.ballot__bar {
  display: block;
  height: 2.4cqi;
  border-radius: 2cqi;
  background: var(--violet-3);
  transform-origin: left;
}

.ballot__bar--2 {
  width: 70%;
}

.ballot__bar--3 {
  width: 45%;
}

.ballot__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ballot__trail {
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ballot__paper {
  display: none;
  fill: var(--blanc);
  stroke: var(--violet-2);
  stroke-width: 2.5;
  offset-path: path("M125 95 C190 30 280 40 340 112");
  offset-rotate: 0deg;
}

.contest-hero.is-live .ballot__paper {
  display: block;
}

.ballot__box {
  position: absolute;
  top: 36%;
  left: 60%;
  width: 22%;
  aspect-ratio: 1;
}

.ballot__box .icon,
.ballot__shield .icon {
  width: 100%;
  height: 100%;
}

.ballot__shield {
  position: absolute;
  top: 4%;
  left: 80%;
  display: grid;
  place-items: center;
  width: 16%;
  aspect-ratio: 1;
  padding: 2cqi;
  border-radius: 50%;
  background: color-mix(in srgb, var(--or-pale) 85%, var(--blanc));
}

.ballot__chips {
  position: absolute;
  top: 80%;
  left: 4%;
  display: flex;
  gap: 3cqi;
  width: 92%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ballot__chip {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 9cqi;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--violet);
}

.ballot__chip b {
  font-size: calc(clamp(13px, 3.4cqi, 20px) * var(--echelle));
  font-weight: 800;
}

.ballot__chip--1 {
  --chip-bg: var(--accent-candidats-fond);
}

.ballot__chip--2 {
  --chip-bg: var(--info-pale);
}

.ballot__chip--3 {
  --chip-bg: var(--succes-pale);
}

.ballot__phone {
  animation: contest-dawn 0.8s 0.1s backwards;
}

.ballot__bar--1 {
  animation: contest-fill 0.7s 0.6s backwards;
}

.ballot__bar--2 {
  animation: contest-fill 0.7s 1s backwards;
}

.ballot__bar--3 {
  animation: contest-fill 0.7s 1.4s backwards;
}

.ballot__trail {
  animation: contest-draw 2s 1s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.ballot__box {
  animation: contest-dawn 0.8s 0.1s backwards;
}

.ballot__shield {
  animation: contest-dawn 0.8s 0.1s backwards;
}

.ballot__chip--1 {
  animation: contest-pop 0.5s 3.8s backwards;
}

.ballot__chip--2 {
  animation: contest-pop 0.5s 4.2s backwards;
}

.ballot__chip--3 {
  animation: contest-pop 0.5s 4.6s backwards;
}

.contest-hero.is-live .ballot__paper {
  animation: contest-run 7s 4s ease-in-out infinite;
}

.contest-hero.is-live .ballot__shield {
  animation: contest-dawn 0.8s 0.1s backwards, contest-twinkle 4.5s 4s ease-in-out infinite;
}

.contest-hero.is-live .ballot__box {
  animation: contest-dawn 0.8s 0.1s backwards, contest-float 6s 2s ease-in-out infinite;
}

.contest-hero.is-still .ballot__paper {
  animation-play-state: paused !important;
}

.contest-hero.is-still .ballot__shield,
.contest-hero.is-still .ballot__box {
  animation-play-state: running, paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .ballot__paper {
    display: none !important;
  }
}

html[data-motion="reduced"] .ballot__paper {
  display: none !important;
}

/* ---- Candidats en lice : la grille qui s'allume ---- */
.litgrid {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.litgrid__cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4cqi;
  margin: 0;
  padding: 0;
  list-style: none;
}

.litgrid__cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--violet-2);
  background: var(--cell-bg);
}

.litgrid__cell .icon {
  width: 46%;
  height: 46%;
}

.litgrid__cell:nth-child(3n + 1) {
  --cell-bg: var(--accent-candidats-fond);
}

.litgrid__cell:nth-child(3n + 2) {
  --cell-bg: var(--info-pale);
}

.litgrid__cell:nth-child(3n) {
  --cell-bg: var(--succes-pale);
}

.litgrid__legend {
  display: flex;
  justify-content: center;
  gap: 3cqi;
  margin: 4cqi 0 0;
  padding: 0;
  list-style: none;
}

.litgrid__tag {
  padding: 1.4cqi 4cqi;
  border-radius: 999px;
  font-size: calc(clamp(12px, 3cqi, 18px) * var(--echelle));
  font-weight: 800;
  color: var(--violet);
  background: var(--tag-bg);
}

.litgrid__tag--1 {
  --tag-bg: var(--accent-candidats-fond);
}

.litgrid__tag--2 {
  --tag-bg: var(--info-pale);
}

.litgrid__tag--3 {
  --tag-bg: var(--succes-pale);
}

.litgrid__cell:nth-child(1) {
  animation: contest-pop 0.5s 0.4s backwards;
}

.litgrid__cell:nth-child(2) {
  animation: contest-pop 0.5s 0.7s backwards;
}

.litgrid__cell:nth-child(3) {
  animation: contest-pop 0.5s 1s backwards;
}

.litgrid__cell:nth-child(4) {
  animation: contest-pop 0.5s 1.3s backwards;
}

.litgrid__cell:nth-child(5) {
  animation: contest-pop 0.5s 1.6s backwards;
}

.litgrid__cell:nth-child(6) {
  animation: contest-pop 0.5s 1.9s backwards;
}

.litgrid__cell:nth-child(7) {
  animation: contest-pop 0.5s 2.2s backwards;
}

.litgrid__cell:nth-child(8) {
  animation: contest-pop 0.5s 2.5s backwards;
}

.litgrid__cell:nth-child(9) {
  animation: contest-pop 0.5s 2.8s backwards;
}

.litgrid__cell:nth-child(10) {
  animation: contest-pop 0.5s 3.1s backwards;
}

.litgrid__cell:nth-child(11) {
  animation: contest-pop 0.5s 3.4s backwards;
}

.litgrid__cell:nth-child(12) {
  animation: contest-pop 0.5s 3.7s backwards;
}

.litgrid__tag {
  animation: contest-fade 0.6s 4.2s backwards;
}

.contest-hero.is-live .litgrid__cell:nth-child(2) {
  animation: contest-pop 0.5s 0.7s backwards, contest-twinkle 5s 4.5s ease-in-out infinite;
}

.contest-hero.is-live .litgrid__cell:nth-child(7) {
  animation: contest-pop 0.5s 2.2s backwards, contest-twinkle 6s 5.5s ease-in-out infinite;
}

.contest-hero.is-live .litgrid__cell:nth-child(10) {
  animation: contest-pop 0.5s 3.1s backwards, contest-twinkle 7s 6.5s ease-in-out infinite;
}

.contest-hero.is-still .litgrid__cell:nth-child(2),
.contest-hero.is-still .litgrid__cell:nth-child(7),
.contest-hero.is-still .litgrid__cell:nth-child(10) {
  animation-play-state: running, paused !important;
}

/* ---- Sections ---- */
.bignum {
  display: grid;
  gap: var(--s2);
  justify-items: start;
  margin: 0;
}

.bignum__value {
  font-size: clamp(calc(64px * var(--echelle)), 10vw, calc(112px * var(--echelle)));
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--violet);
}

.bignum__text {
  font-size: calc(20px * var(--echelle));
  font-weight: 700;
  line-height: 1.4;
  color: var(--violet-2);
}

.bignum small {
  font-size: calc(13px * var(--echelle));
  color: var(--encre-2);
}

.rules__title {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.rules__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
}

.rules__icon .icon {
  width: 100%;
  height: 100%;
}

.votes-list {
  display: grid;
  gap: var(--s6);
  padding-block: var(--s6) var(--s7);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin-bottom: var(--s5);
}

.filters__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s4);
  border-radius: 999px;
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
  background: var(--accent-concours-fond);
}

.filters__link.is-current {
  color: var(--blanc);
  background: var(--violet-2);
}

.candidates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  gap: var(--s5);
}

.candidate {
  min-width: 0;
  text-align: center;
}

.candidate__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  margin-bottom: var(--s3);
  border-radius: 24px;
  color: var(--violet-3);
  background: linear-gradient(180deg, var(--accent-concours-fond), var(--accent-lavande-pale));
}

.candidate__photo .icon {
  width: 40%;
  height: 40%;
}

.candidate__name {
  margin: 0;
  font-size: calc(19px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.candidate__category {
  margin: var(--s1) 0 0;
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  color: var(--violet-2);
}

.candidate__place {
  margin: var(--s1) 0 0;
  font-size: calc(14px * var(--echelle));
  color: var(--encre-2);
}

/* Mobile : la grille des candidats en lice tient sur deux rangées (le héros ne dépasse pas un écran). */
@media (max-width: 47.99em) {
  .litgrid__cells {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2.5cqi;
  }

  .litgrid__legend {
    margin-top: 3cqi;
  }
}

/* ==========================================================================================================================
   Lot L4e : retouches des héros de l'onglet Votes. Hauteur ajustée au contenu (plus de vide sous les boutons) ; dès +0 s le téléphone, l'urne et
   le bouclier sont visibles (opacité 0,35) pendant que le tracé et les pastilles s'animent.
   ========================================================================================================================== */
@keyframes contest-dawn {
  from {
    opacity: 0.35;
  }
}

@media (min-width: 64em) {
  .contest-hero.contest-hero--compact {
    min-height: 0;
  }
}

/* ==========================================================================================================================
   Lot L4e : « Tous les guides » (héros « les deux guides ») et fiches de guide. Mêmes règles que les autres héros : transform, opacity, translate,
   rotate, scale ; l'état de base est l'état FINAL ; les mouvements continus ne démarrent qu'avec JavaScript (.is-live) et s'arrêtent avec Pause.
   ========================================================================================================================== */
.fan {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.fan__dot {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-pale) 95%, transparent), transparent);
}

.fan__sheet {
  position: absolute;
  top: 8%;
  width: 36%;
  height: 84%;
  border-radius: 3cqi;
  background: color-mix(in srgb, var(--blanc) 78%, transparent);
}

.fan__sheet--1 {
  left: 8%;
  transform: rotate(-11deg);
}

.fan__sheet--2 {
  left: 52%;
  transform: rotate(10deg);
}

.fan__sheet--3 {
  left: 30%;
  transform: rotate(2deg);
}

.fan__cover {
  position: absolute;
  top: 7%;
  width: 36%;
}

.fan__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5cqi;
}

.fan__cover--1 {
  left: 14%;
  rotate: -7deg;
}

.fan__cover--2 {
  left: 48%;
  top: 11%;
  rotate: 6deg;
}

@keyframes fan-up {
  from {
    opacity: 0.4;
    translate: 0 6cqi;
    rotate: 14deg;
  }
}

@keyframes fan-sway {
  0%,
  100% {
    rotate: 0deg;
  }

  50% {
    rotate: 4deg;
  }
}

.fan__dot {
  animation: contest-dawn 0.8s 0.1s backwards;
}

.fan__sheet {
  animation: contest-dawn 0.8s 0.1s backwards;
}

.fan__cover--1 {
  animation: fan-up 0.9s 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.fan__cover--2 {
  animation: fan-up 0.9s 1s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.contest-hero.is-live .fan__cover--1 {
  animation: fan-up 0.9s 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) backwards, contest-float 6.4s 1.5s ease-in-out infinite;
}

.contest-hero.is-live .fan__cover--2 {
  animation: fan-up 0.9s 1s cubic-bezier(0.22, 0.8, 0.3, 1) backwards, contest-float-b 7s 2.2s ease-in-out infinite;
}

.contest-hero.is-live .fan__sheet--1 {
  animation: contest-dawn 0.8s 0.1s backwards, fan-sway 8s 1s ease-in-out infinite;
}

.contest-hero.is-live .fan__sheet--2 {
  animation: contest-dawn 0.8s 0.1s backwards, fan-sway 9s 1.5s ease-in-out infinite reverse;
}

.contest-hero.is-live .fan__sheet--3 {
  animation: contest-dawn 0.8s 0.1s backwards, fan-sway 7s 2s ease-in-out infinite;
}

.contest-hero.is-still .fan__cover,
.contest-hero.is-still .fan__sheet {
  animation-play-state: running, paused !important;
}

/* ---- Blocs de guide et fiche ---- */
.guide-cover {
  min-width: 0;
}

.guide-cover img {
  display: block;
  width: min(100%, 17em);
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
}

.guide-cover--large img {
  width: min(100%, 22em);
}

.guides .pres--split {
  align-items: center;
}

.guide-facts {
  margin: 0 0 var(--s3);
  font-size: calc(18px * var(--echelle));
  color: var(--violet-2);
}

.guide-audience {
  margin: 0 0 var(--s4);
  line-height: 1.6;
}

.guide-audience b {
  display: block;
  font-size: calc(13px * var(--echelle));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.guide-audience small,
.guide-note {
  font-size: calc(13px * var(--echelle));
  color: var(--encre-2);
}

.guide-chapters-title {
  margin: 0 0 var(--s2);
  font-size: calc(18px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.guide-chapters {
  margin: 0 0 var(--s2);
  padding-left: var(--s5);
  line-height: 1.55;
  color: var(--encre);
}

.guide-chapters--wide {
  columns: 1;
}

@media (min-width: 48em) {
  .guide-chapters--wide {
    columns: 2;
    column-gap: var(--s7);
  }

  .guide-chapters--wide li {
    break-inside: avoid;
  }
}

.guide-chapters li {
  padding-left: var(--s1);
}

/* ==========================================================================================================================
   Lot L4f : recherche d'un candidat et fiche publique. Jetons du site uniquement.
   ========================================================================================================================== */
.cand-search {
  margin: 0 0 var(--s4);
}

.cand-search__label {
  display: block;
  margin-bottom: var(--s1);
  font-weight: 700;
  color: var(--violet);
}

.cand-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.cand-search__input {
  box-sizing: border-box;
  flex: 1 1 14rem;
  min-height: 44px;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: var(--violet);
  background: var(--blanc);
  border: 2px solid var(--violet-2);
  border-radius: var(--rayon-bouton);
}

.cand-search__input[aria-invalid="true"] {
  border-color: var(--erreur);
}

.cand-search__hint {
  margin: var(--s1) 0 0;
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.cand-search__error {
  margin: var(--s2) 0 0;
  font-weight: 700;
  color: var(--erreur);
}

.cand-search__count {
  min-height: 1.5em;
  margin: var(--s3) 0;
  font-weight: 700;
  color: var(--violet-2);
}

/* Carte cliquable : le lien du nom couvre toute la carte. */
.candidate {
  position: relative;
}

.candidate__name a {
  color: inherit;
}

.candidate__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.candidate__name a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

/* Fiche : lavis à la teinte de la catégorie, grande photo (emplacement), faits en liste de définitions. */
.candidate-page[data-category="cadet"] {
  --candidate-tint: var(--or-pale);
}

.candidate-page[data-category="junior"] {
  --candidate-tint: var(--violet-pale);
}

.candidate-page[data-category="senior"] {
  --candidate-tint: var(--info-pale);
}

.candidate-page {
  background: linear-gradient(135deg, var(--candidate-tint, var(--violet-pale)), var(--blanc));
}

.candidate-page__photo {
  display: grid;
  place-items: center;
  width: min(100%, 20rem);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  color: var(--violet-3);
  background: linear-gradient(180deg, var(--accent-concours-fond), var(--accent-lavande-pale));
  border-radius: 24px;
}

.candidate-page__photo .icon {
  width: 40%;
  height: 40%;
}

.candidate-page__facts {
  display: grid;
  gap: var(--s3);
  margin: 0;
}

.candidate-page__facts dt {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--or-texte);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.candidate-page__facts dd {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--violet);
}

/* Les sections de la page ne dépassent jamais la largeur de l'écran : le défilement horizontal de la grille reste DANS son cadre (grille à une colonne,
   éléments à largeur minimale nulle). */
.votes-list {
  grid-template-columns: minmax(0, 1fr);
}

.votes-list > * {
  min-width: 0;
}


/* ==========================================================================================================================
   Lot L5a : héros « la table du jury » (Membres du jury) et « la proclamation » (Palmarès). Mêmes règles que les autres héros : transform, opacity,
   translate, rotate, scale ; l'état de base est l'état FINAL ; contenu visible dès +0 s (départ à 0,3 / 0,4) ; les mouvements continus ne démarrent qu'avec
   JavaScript (.is-live) et s'arrêtent avec Pause (.is-still).
   ========================================================================================================================== */
@keyframes jury-balance {
  from {
    rotate: -14deg;
    opacity: 0.4;
  }

  35% {
    rotate: 9deg;
  }

  65% {
    rotate: -4deg;
  }

  to {
    rotate: 0deg;
  }
}

@keyframes jury-sway {
  0%,
  100% {
    rotate: 0deg;
  }

  50% {
    rotate: 2.5deg;
  }
}

@keyframes jury-sheet {
  from {
    opacity: 0.4;
    translate: 0 -8cqi;
  }
}

@keyframes proc-tail {
  from {
    transform: scaleY(0.1);
    opacity: 0.4;
  }
}

@keyframes proc-pill {
  from {
    opacity: 0.3;
    translate: 0 -6cqi;
    scale: 0.8;
  }
}

.jtable,
.proclaim {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.jtable__glow,
.proclaim__glow {
  position: absolute;
  inset: 6% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-pale) 92%, transparent), transparent);
}

.jtable__seats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jtable__seat {
  position: absolute;
  display: grid;
  place-items: center;
  width: 11cqi;
  aspect-ratio: 1;
  color: var(--violet-2);
  background: var(--blanc);
  border-radius: 50%;
}

.jtable__seat:nth-child(3n + 1) {
  background: var(--succes-pale);
}

.jtable__seat:nth-child(3n + 2) {
  background: var(--or-pale);
}

.jtable__seat:nth-child(3n) {
  background: var(--info-pale);
}

.jtable__seat .icon {
  width: 56%;
  height: 56%;
}

.jtable__scale {
  position: absolute;
  top: 24cqi;
  left: calc(50% - 10.5cqi);
  display: grid;
  place-items: center;
  width: 21cqi;
  aspect-ratio: 1;
  transform-origin: 50% 18%;
}

.jtable__scale .icon {
  width: 100%;
  height: 100%;
}

.jtable__sheet {
  position: absolute;
  top: 47cqi;
  width: 11cqi;
  aspect-ratio: 3 / 4;
  background: color-mix(in srgb, var(--blanc) 90%, transparent);
  border-radius: 1.2cqi;
  border: 0.35cqi solid var(--ligne);
  box-sizing: border-box;
}

.jtable__sheet--1 {
  left: 30%;
  rotate: -7deg;
}

.jtable__sheet--2 {
  left: 45%;
  rotate: 2deg;
}

.jtable__sheet--3 {
  left: 60%;
  rotate: 8deg;
}

.jtable__seat:nth-child(1) {
  left: calc(9.0% - 5.5cqi);
  top: calc(66.0% - 5.5cqi);
  animation: contest-pop 0.6s 0.15s backwards;
}

.jtable__seat:nth-child(2) {
  left: calc(14.5% - 5.5cqi);
  top: calc(46.0% - 5.5cqi);
  animation: contest-pop 0.6s 0.35s backwards;
}

.jtable__seat:nth-child(3) {
  left: calc(29.5% - 5.5cqi);
  top: calc(31.4% - 5.5cqi);
  animation: contest-pop 0.6s 0.55s backwards;
}

.jtable__seat:nth-child(4) {
  left: calc(50.0% - 5.5cqi);
  top: calc(26.0% - 5.5cqi);
  animation: contest-pop 0.6s 0.75s backwards;
}

.jtable__seat:nth-child(5) {
  left: calc(70.5% - 5.5cqi);
  top: calc(31.4% - 5.5cqi);
  animation: contest-pop 0.6s 0.95s backwards;
}

.jtable__seat:nth-child(6) {
  left: calc(85.5% - 5.5cqi);
  top: calc(46.0% - 5.5cqi);
  animation: contest-pop 0.6s 1.15s backwards;
}

.jtable__seat:nth-child(7) {
  left: calc(91.0% - 5.5cqi);
  top: calc(66.0% - 5.5cqi);
  animation: contest-pop 0.6s 1.35s backwards;
}

.jtable__scale {
  animation: jury-balance 2.4s 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) backwards;
}

.jtable__sheet--1 {
  animation: jury-sheet 0.7s 2.4s backwards;
}

.jtable__sheet--2 {
  animation: jury-sheet 0.7s 2.65s backwards;
}

.jtable__sheet--3 {
  animation: jury-sheet 0.7s 2.9s backwards;
}

.jtable__glow,
.proclaim__glow {
  animation: contest-dawn 0.8s 0.1s backwards;
}

.contest-hero.is-live .jtable__scale {
  animation: jury-balance 2.4s 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) backwards, jury-sway 8s 3.6s ease-in-out infinite;
}

.contest-hero.is-live .jtable__seat:nth-child(2) {
  animation: contest-pop 0.6s 0.35s backwards, contest-twinkle 5.7s 2.9s ease-in-out infinite;
}

.contest-hero.is-live .jtable__seat:nth-child(5) {
  animation: contest-pop 0.6s 0.95s backwards, contest-twinkle 7.8s 3.8s ease-in-out infinite;
}

.contest-hero.is-live .jtable__seat:nth-child(7) {
  animation: contest-pop 0.6s 1.35s backwards, contest-twinkle 9.2s 4.4s ease-in-out infinite;
}

.contest-hero.is-still .jtable__scale,
.contest-hero.is-still .jtable__seat:nth-child(2),
.contest-hero.is-still .jtable__seat:nth-child(5),
.contest-hero.is-still .jtable__seat:nth-child(7) {
  animation-play-state: running, paused !important;
}

/* ---- La proclamation ---- */
.proclaim__env {
  position: absolute;
  top: 20cqi;
  left: 6%;
  display: grid;
  place-items: center;
  width: 34cqi;
  aspect-ratio: 1;
  rotate: 0deg;
  animation: jury-balance 1.8s 0.3s cubic-bezier(0.3, 0.7, 0.3, 1) backwards;
}

.proclaim__env .icon {
  width: 100%;
  height: 100%;
}

.proclaim__tail {
  position: absolute;
  top: 49cqi;
  width: 4.6cqi;
  height: 12cqi;
  background: color-mix(in srgb, var(--violet-3) 60%, transparent);
  border-radius: 0.8cqi 0.8cqi 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  transform-origin: top center;
  animation: proc-tail 1.1s 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}

.proclaim__tail--1 {
  left: 17cqi;
  rotate: 11deg;
}

.proclaim__tail--2 {
  left: 24cqi;
  rotate: -9deg;
}

.proclaim__pills {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proclaim__pill {
  position: absolute;
  left: 46%;
  padding: 2.2cqi 4cqi;
  font-size: clamp(calc(12px * var(--echelle)), 3.6cqi, calc(21px * var(--echelle)));
  font-weight: 800;
  line-height: 1.15;
  color: var(--violet);
  white-space: nowrap;
  background: var(--blanc);
  border-radius: 999px;
}

.proclaim__pill:nth-child(1) {
  top: 13cqi;
  background: var(--violet-pale);
  animation: proc-pill 0.7s 1.3s backwards;
}

.proclaim__pill:nth-child(2) {
  top: 26cqi;
  left: 52%;
  background: var(--info-pale);
  animation: proc-pill 0.7s 1.65s backwards;
}

.proclaim__pill:nth-child(3) {
  top: 39cqi;
  background: var(--or-pale);
  animation: proc-pill 0.7s 2s backwards;
}

.proclaim__star {
  position: absolute;
  display: grid;
  place-items: center;
  width: 7cqi;
  aspect-ratio: 1;
  animation: contest-pop 0.5s 2.6s backwards;
}

.proclaim__star .icon {
  width: 100%;
  height: 100%;
}

.proclaim__star--1 {
  top: 6cqi;
  left: 8cqi;
}

.proclaim__star--2 {
  top: 8cqi;
  right: 6cqi;
  width: 5cqi;
  animation-delay: 2.9s;
}

.proclaim__star--3 {
  bottom: 4cqi;
  left: 48cqi;
  width: 5.5cqi;
  animation-delay: 3.2s;
}

.proclaim__star--4 {
  bottom: 6cqi;
  right: 8cqi;
  animation-delay: 3.5s;
}

.contest-hero.is-live .proclaim__env {
  animation: jury-balance 1.8s 0.3s cubic-bezier(0.3, 0.7, 0.3, 1) backwards, contest-float 6.5s 2.2s ease-in-out infinite;
}

.contest-hero.is-live .proclaim__star--1 {
  animation: contest-pop 0.5s 2.6s backwards, contest-twinkle 3.6s 3.2s ease-in-out infinite;
}

.contest-hero.is-live .proclaim__star--2 {
  animation: contest-pop 0.5s 2.9s backwards, contest-twinkle 4.4s 3.5s ease-in-out infinite;
}

.contest-hero.is-live .proclaim__star--3 {
  animation: contest-pop 0.5s 3.2s backwards, contest-twinkle 3.9s 3.8s ease-in-out infinite;
}

.contest-hero.is-live .proclaim__star--4 {
  animation: contest-pop 0.5s 3.5s backwards, contest-twinkle 5s 4.1s ease-in-out infinite;
}

.contest-hero.is-still .proclaim__env,
.contest-hero.is-still .proclaim__star {
  animation-play-state: running, paused !important;
}

/* ---- Pages Jury et Résultats : sections et cartes ---- */
.jury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  gap: var(--s5);
}

.laureates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  gap: var(--s5);
}

.titles {
  display: grid;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.titles li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  font-weight: 700;
  color: var(--violet);
  background: var(--violet-pale);
  border-radius: var(--rayon);
}

.titles li:nth-child(even) {
  background: var(--or-pale);
}

.titles .icon {
  flex: none;
  width: 28px;
  height: 28px;
}

.editions {
  display: grid;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.editions li {
  padding: var(--s4) var(--s5);
  background: var(--or-pale);
  border-radius: var(--rayon);
}

.editions__year {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--violet);
}

.laureate__title {
  margin: var(--s1) 0 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--or-texte);
}


/* Mobile : la scène de la proclamation est plus basse (le héros tient dans un écran). */
@media (max-width: 47.99em) {
  .proclaim {
    aspect-ratio: 8 / 4.4;
  }
}

/* Colonne unique des pages de contenu : jamais plus large que l'écran (un contenu large, par exemple la grille des critères, reste dans la colonne). */
.presentation {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64em) {
  .presentation {
    grid-template-columns: minmax(0, 1fr) 14em;
  }
}

.presentation__main {
  grid-template-columns: minmax(0, 1fr);
}

.presentation__main > * {
  min-width: 0;
}

/* ==========================================================================================================================
   Lot L5c : héros « le réseau » (Nos partenaires). Mêmes règles que les autres héros : transform, opacity, translate, scale, stroke-dashoffset ; l'état de base
   est l'état FINAL ; contenu visible dès +0 s (départ à 0,3 / 0,4) ; mouvements continus seulement avec JavaScript (.is-live), arrêtés par Pause (.is-still).
   Aucun logo, aucun nom : des médaillons VIDES et un pictogramme du kit.
   ========================================================================================================================== */
@keyframes net-in {
  from {
    opacity: 0.3;
    translate: var(--dx, 0) var(--dy, 0);
  }
}

.netw {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.netw__glow {
  position: absolute;
  inset: 6% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-pale) 92%, transparent), transparent);
  animation: contest-dawn 0.8s 0.1s backwards;
}

.netw__threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.netw__thread {
  fill: none;
  stroke: var(--violet-3);
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.netw__core {
  position: absolute;
  display: grid;
  place-items: center;
  width: 16cqi;
  aspect-ratio: 1;
  background: var(--blanc);
  border: 0.5cqi solid var(--or);
  border-radius: 50%;
  box-sizing: border-box;
  animation: contest-pop 0.7s 0.1s backwards;
}

.netw__core .icon {
  width: 60%;
  height: 60%;
}

.netw__medals {
  margin: 0;
  padding: 0;
  list-style: none;
}

.netw__medal {
  position: absolute;
  width: 11cqi;
  aspect-ratio: 1;
  background: var(--violet-pale);
  border: 0.4cqi solid var(--ligne);
  border-radius: 50%;
  box-sizing: border-box;
}

.netw__medal::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 0.4cqi solid color-mix(in srgb, var(--violet-3) 45%, transparent);
  border-radius: 50%;
}

.netw__medal:nth-child(3n + 1) {
  background: var(--or-pale);
}

.netw__medal:nth-child(3n + 2) {
  background: var(--info-pale);
}

.netw__medal:nth-child(3n) {
  background: var(--succes-pale);
}

.netw__hands {
  position: absolute;
  display: grid;
  place-items: center;
  width: 12cqi;
  aspect-ratio: 1;
  animation: contest-pop 0.6s 2.4s backwards;
}

.netw__hands .icon {
  width: 100%;
  height: 100%;
}

.netw__medal:nth-child(1) {
  left: calc(86.0% - 5.5cqi);
  top: calc(49.6% - 5.5cqi);
  --dx: 18.0cqi;
  --dy: 0.0cqi;
  animation: net-in 0.9s 0.30s backwards;
}

.netw__thread--1 {
  animation: contest-draw 1s 0.90s backwards;
}

.netw__medal:nth-child(2) {
  left: calc(68.0% - 5.5cqi);
  top: calc(80.1% - 5.5cqi);
  --dx: 9.0cqi;
  --dy: 6.0cqi;
  animation: net-in 0.9s 0.55s backwards;
}

.netw__thread--2 {
  animation: contest-draw 1s 1.15s backwards;
}

.netw__medal:nth-child(3) {
  left: calc(32.0% - 5.5cqi);
  top: calc(80.1% - 5.5cqi);
  --dx: -9.0cqi;
  --dy: 6.0cqi;
  animation: net-in 0.9s 0.80s backwards;
}

.netw__thread--3 {
  animation: contest-draw 1s 1.40s backwards;
}

.netw__medal:nth-child(4) {
  left: calc(14.0% - 5.5cqi);
  top: calc(49.6% - 5.5cqi);
  --dx: -18.0cqi;
  --dy: 0.0cqi;
  animation: net-in 0.9s 1.05s backwards;
}

.netw__thread--4 {
  animation: contest-draw 1s 1.65s backwards;
}

.netw__medal:nth-child(5) {
  left: calc(32.0% - 5.5cqi);
  top: calc(19.1% - 5.5cqi);
  --dx: -9.0cqi;
  --dy: -6.0cqi;
  animation: net-in 0.9s 1.30s backwards;
}

.netw__thread--5 {
  animation: contest-draw 1s 1.90s backwards;
}

.netw__medal:nth-child(6) {
  left: calc(68.0% - 5.5cqi);
  top: calc(19.1% - 5.5cqi);
  --dx: 9.0cqi;
  --dy: -6.0cqi;
  animation: net-in 0.9s 1.55s backwards;
}

.netw__thread--6 {
  animation: contest-draw 1s 2.15s backwards;
}

.netw__core {
  left: calc(50% - 8cqi);
  top: calc(49.6% - 8cqi);
}

.netw__hands {
  left: calc(50% - 6cqi);
  top: calc(86% - 6cqi);
}

.contest-hero.is-live .netw__core {
  animation: contest-pop 0.7s 0.1s backwards, contest-twinkle 4.5s 1s ease-in-out infinite;
}

.contest-hero.is-live .netw__hands {
  animation: contest-pop 0.6s 2.4s backwards, contest-float 6s 3s ease-in-out infinite;
}

.contest-hero.is-live .netw__medal:nth-child(1) {
  animation: net-in 0.9s 0.3s backwards, contest-float 6.4s 2s ease-in-out infinite;
}

.contest-hero.is-live .netw__medal:nth-child(3) {
  animation: net-in 0.9s 0.8s backwards, contest-float-b 7s 2.5s ease-in-out infinite;
}

.contest-hero.is-live .netw__medal:nth-child(5) {
  animation: net-in 0.9s 1.3s backwards, contest-float 7.6s 3s ease-in-out infinite;
}

.contest-hero.is-still .netw__core,
.contest-hero.is-still .netw__hands,
.contest-hero.is-still .netw__medal:nth-child(1),
.contest-hero.is-still .netw__medal:nth-child(3),
.contest-hero.is-still .netw__medal:nth-child(5) {
  animation-play-state: running, paused !important;
}

/* Mobile : scène plus basse pour que le héros tienne dans un écran. */
@media (max-width: 47.99em) {
  .netw {
    aspect-ratio: 8 / 4.6;
  }
}

/* ---- Pages Partenaires : grille de logos, formulaire ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12em), 1fr));
  gap: var(--s5);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
}

.partner-logo {
  display: grid;
  align-content: start;
  gap: var(--s2);
  justify-items: center;
  text-align: center;
}

.partner-logo__slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  padding: var(--s3);
  background: var(--blanc);
  border-radius: var(--rayon);
}

.partner-logo__slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.partner-logo__name {
  font-weight: 800;
  color: var(--violet);
}

.partner-form {
  display: grid;
  gap: var(--s4);
  max-width: 40rem;
}

.partner-form__field {
  display: grid;
  gap: var(--s1);
}

.partner-form__label {
  font-weight: 700;
  color: var(--violet);
}

.partner-form__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: var(--violet);
  background: var(--blanc);
  border: 2px solid var(--violet-2);
  border-radius: var(--rayon-bouton);
}

.partner-form__input[aria-invalid="true"] {
  border-color: var(--erreur);
}

.partner-form__hint {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.partner-form__error {
  margin: 0;
  font-weight: 700;
  color: var(--erreur);
}

.partner-form__summary {
  padding: var(--s3) var(--s4);
  font-weight: 700;
  color: var(--erreur);
  background: var(--erreur-pale);
  border-radius: var(--rayon-bouton);
}

.partner-form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}

.partner-form__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--violet);
}

.partner-form__consent a {
  font-weight: 800;
  color: var(--violet);
}

.partner-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.partner-result {
  padding: var(--s4) var(--s5);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--violet);
  background: var(--succes-pale);
  border-radius: var(--rayon);
}

/* Logo d'un partenaire : pictogramme du kit de taille modérée en attendant le logo ; bouton d'action séparé de la liste qui le précède. */
.partner-logo__slot .icon {
  width: 3rem;
  height: 3rem;
  color: var(--violet-3);
}

.titles + .pres__actions {
  margin-top: var(--s4);
}

/* ==========================================================================================================================
   Lot L5d : héros « l'arbre qui grandit » (Fondation). Mêmes règles que les autres héros : transform, opacity, translate, scale, stroke-dashoffset ; l'état de
   base est l'état FINAL ; contenu visible dès +0 s (départ à 0,3 / 0,4) ; mouvements continus seulement avec JavaScript (.is-live), arrêtés par Pause (.is-still).
   Aucun visage, aucun nom : un tronc, des branches qui se tracent, des feuilles-médaillons vides et une étoile du kit.
   ========================================================================================================================== */
.tree {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.tree__glow {
  position: absolute;
  inset: 6% 12% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-pale) 92%, transparent), transparent);
  animation: contest-dawn 0.8s 0.1s backwards;
}

.tree__ground {
  position: absolute;
  left: 22%;
  bottom: 3%;
  width: 56%;
  height: 9%;
  background: color-mix(in srgb, var(--violet-3) 28%, transparent);
  border-radius: 50%;
  animation: contest-dawn 0.8s 0.1s backwards;
}

.tree__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tree__line {
  fill: none;
  stroke: var(--violet-2);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.tree__line--trunk {
  stroke-width: 2.2;
  animation: contest-draw 1.1s 0.2s backwards;
}

.tree__leaves {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree__leaf {
  position: absolute;
  width: 10cqi;
  aspect-ratio: 1;
  background: var(--succes-pale);
  border: 0.4cqi solid var(--ligne);
  border-radius: 50%;
  box-sizing: border-box;
}

.tree__leaf::after {
  content: "";
  position: absolute;
  inset: 26%;
  border: 0.4cqi solid color-mix(in srgb, var(--succes) 40%, transparent);
  border-radius: 50%;
}

.tree__leaf:nth-child(2n) {
  background: var(--or-pale);
}

.tree__leaf:nth-child(3n) {
  background: var(--info-pale);
}

.tree__star {
  position: absolute;
  left: calc(50% - 6cqi);
  top: calc(9% - 6cqi);
  display: grid;
  place-items: center;
  width: 12cqi;
  aspect-ratio: 1;
  animation: contest-pop 0.7s 2.4s backwards;
}

.tree__star .icon {
  width: 100%;
  height: 100%;
}

.tree__line--1 {
  animation: contest-draw 0.9s 0.90s backwards;
}

.tree__leaf:nth-child(1) {
  left: calc(30% - 5cqi);
  top: calc(57.6% - 5cqi);
  animation: contest-pop 0.6s 1.50s backwards;
}

.tree__line--2 {
  animation: contest-draw 0.9s 1.15s backwards;
}

.tree__leaf:nth-child(2) {
  left: calc(70% - 5cqi);
  top: calc(54.4% - 5cqi);
  animation: contest-pop 0.6s 1.75s backwards;
}

.tree__line--3 {
  animation: contest-draw 0.9s 1.40s backwards;
}

.tree__leaf:nth-child(3) {
  left: calc(38% - 5cqi);
  top: calc(35.2% - 5cqi);
  animation: contest-pop 0.6s 2.00s backwards;
}

.tree__line--4 {
  animation: contest-draw 0.9s 1.65s backwards;
}

.tree__leaf:nth-child(4) {
  left: calc(62% - 5cqi);
  top: calc(32.0% - 5cqi);
  animation: contest-pop 0.6s 2.25s backwards;
}

.tree__line--5 {
  animation: contest-draw 0.9s 1.90s backwards;
}

.tree__leaf:nth-child(5) {
  left: calc(22% - 5cqi);
  top: calc(73.6% - 5cqi);
  animation: contest-pop 0.6s 2.50s backwards;
}

.contest-hero.is-live .tree__star {
  animation: contest-pop 0.7s 2.4s backwards, contest-twinkle 4.5s 3.2s ease-in-out infinite;
}

.contest-hero.is-live .tree__leaf:nth-child(1) {
  animation: contest-pop 0.6s 1.5s backwards, contest-float 6.4s 3s ease-in-out infinite;
}

.contest-hero.is-live .tree__leaf:nth-child(2) {
  animation: contest-pop 0.6s 1.75s backwards, contest-float-b 7s 3.3s ease-in-out infinite;
}

.contest-hero.is-live .tree__leaf:nth-child(4) {
  animation: contest-pop 0.6s 2.25s backwards, contest-float 7.6s 3.6s ease-in-out infinite;
}

.contest-hero.is-still .tree__star,
.contest-hero.is-still .tree__leaf:nth-child(1),
.contest-hero.is-still .tree__leaf:nth-child(2),
.contest-hero.is-still .tree__leaf:nth-child(4) {
  animation-play-state: running, paused !important;
}

@media (max-width: 47.99em) {
  .tree {
    aspect-ratio: 8 / 4.6;
  }
}

/* ---- Lot L5d : retouches de L5c (logo, espacement) et pages à deux colonnes (Devenir partenaire, Contact) ---- */
.partner-logo__slot {
  aspect-ratio: 2 / 1;
  padding: var(--s4) var(--s5);
}

.partner-logo__slot .icon {
  width: 56%;
  height: 100%;
  color: var(--violet-3);
}

.pres__actions {
  margin-top: var(--s4);
}

.form-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
}

@media (min-width: 64em) {
  .form-split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }
}

.form-split--single {
  grid-template-columns: minmax(0, 1fr);
}

.form-split__main,
.form-split__aside {
  min-width: 0;
}

.form-split__aside {
  padding: var(--s5);
  border-radius: var(--rayon-g);
}

.form-split__title {
  margin: 0 0 var(--s3);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--violet);
}

.contact-detail {
  margin: 0 0 var(--s3);
}

/* Réserve d'espace constante pour le message d'erreur : les écarts entre champs ne changent pas quand une erreur apparaît. */
.partner-form {
  max-width: none;
  gap: var(--s3);
}

.partner-form__error {
  min-height: 1.5em;
}

.partner-form__hint {
  min-height: 1.4em;
}

/* ==========================================================================================================================
   Lot L5e : appel à l'inscription (front.signup-call). EXCEPTION DE DA autorisée par le responsable, documentée dans docs/plan-vitrine.md : composant à part, fond vert
   sobre (jetons dédiés --accent-inscription et --accent-inscription-fonce, dans front-accents.css ; blanc sur vert à plus de 4,5 : 1), pas de jaune or. Animation : fondu et rebond (0,7 s), puis 3 pulsations d'anneau (3 x 1,2 s), ARRÊT à
   4,5 s ; transform et opacity seulement ; l'état de base est l'état final ; rien ne bouge en mouvement réduit (règle globale de front-base.css).
   ========================================================================================================================== */
.signup-call {
  background: var(--accent-inscription);
  color: var(--blanc);
}

.signup-call__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  padding-block: var(--s5);
}

.signup-call__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 3.25rem;
  padding: 0 var(--s5);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--accent-inscription);
  text-decoration: none;
  background: var(--blanc);
  border-radius: var(--rayon-pilule);
  transition: background-color 0.15s, color 0.15s;
  animation: signup-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-call__btn .icon {
  width: 1.25em;
  height: 1.25em;
}

.signup-call__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--blanc);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: signup-ring 1.2s 0.9s ease-out 3;
}

.signup-call__btn:hover {
  color: var(--blanc);
  background: var(--accent-inscription-fonce);
  transform: translateY(-1px);
}

.signup-call__btn:focus-visible {
  outline: 3px solid var(--blanc);
  outline-offset: 4px;
}

.signup-call__note {
  flex: 1 1 18rem;
  max-width: 40rem;
  margin: 0;
  font-size: var(--fs-base);
}

@keyframes signup-in {
  from {
    opacity: 0.4;
    transform: scale(0.92);
  }
}

@keyframes signup-ring {
  from {
    opacity: 0.9;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.18, 1.4);
  }
}

/* ---- Lot L5f3 : page Connexion v4, scène « parcours du candidat ». Scène pleine largeur (lavis violet à gauche, bleu pâle à droite), panneau blanc centré sans bordure ni ombre,
   graffitis animés (front.journey-doodles, EXCEPTION DE DA documentée dans docs/plan-vitrine.md) rangés AUTOUR du panneau : jamais dans la zone protégée (panneau + 32 px).
   Au-dessus de 1100 px : dessins dans les marges latérales (a, b à gauche ; d, e à droite), c en haut, chemin en pointillés sur le pourtour. De 700 à 1100 px : bandes
   en haut (a, b, c) et en bas (d, e). Sous 700 px : mêmes bandes, dessins de 64 px. Mouvements : transform, opacity, stroke-dashoffset, offset-distance SEULEMENT. ---- */
.login-split {
  --doodle: color-mix(in srgb, var(--violet) 70%, transparent);
  --d: 64px;
  --g: 24px;
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(85vh, 44rem);
  padding: 7.5rem var(--s4);
  overflow: clip;
  background: linear-gradient(100deg, var(--violet-pale) 0%, var(--fond) 50%, var(--info-pale) 100%);
}

.journey {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.doodle,
.doodle-link,
.journey__star {
  position: absolute;
  overflow: visible;
}

.doodle {
  width: var(--d);
  height: var(--d);
}

.doodle path,
.doodle-link path,
.journey__star path,
.journey__path path {
  fill: none;
  stroke: var(--doodle);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle .doodle__fill {
  fill: var(--or-pale);
  stroke: none;
}

.doodle .doodle__ghost {
  stroke-dasharray: 0.012 0.03;
  opacity: 0.35;
}

.doodle .doodle__line {
  stroke-dasharray: 1 1.01;
  stroke-dashoffset: 0;
}

.doodle-link {
  display: none;
  width: 3.5rem;
  height: 3.25rem;
}

.doodle-link path {
  stroke-width: 2.4;
}

.journey__star {
  display: none; /* visible seulement quand elle voyage (JavaScript, mouvement permis) ; sinon la coupe porte déjà son étoile dessinée */
  width: 24px;
  height: 22px;
}

.journey__star path {
  fill: var(--or-pale);
}

.journey__path {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.journey__path path {
  stroke-width: 2.4;
  stroke-dasharray: 2 10;
  opacity: 0.4;
  vector-effect: non-scaling-stroke;
}

/* Étapes sous 1100 px : bandes en haut (a, b, c) et en bas (d, e), centrées. */
.doodle--a { top: 16px; left: calc(50% - var(--d) * 1.5 - var(--g)); }
.doodle--b { top: 16px; left: calc(50% - var(--d) / 2); }
.doodle--c { top: 16px; left: calc(50% + var(--d) / 2 + var(--g)); }
.doodle--d { bottom: 16px; left: calc(50% - var(--d) - var(--g) / 2); }
.doodle--e { bottom: 16px; left: calc(50% + var(--g) / 2); }

/* Tracé d'arrivée : les dessins se tracent l'un après l'autre (1,0 s chacun, départs espacés de 0,75 s, 4 s au total) ; sans mouvement, ils sont déjà tracés. */
@keyframes journey-draw {
  from {
    stroke-dashoffset: 1.01;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes journey-float {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes journey-travel {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .doodle__line {
    animation: journey-draw 1s ease-out backwards;
  }

  html:not([data-motion="reduced"]) .doodle--b .doodle__line { animation-delay: 0.75s; }
  html:not([data-motion="reduced"]) .doodle--c .doodle__line { animation-delay: 1.5s; }
  html:not([data-motion="reduced"]) .doodle--d .doodle__line { animation-delay: 2.25s; }
  html:not([data-motion="reduced"]) .doodle--e .doodle__line { animation-delay: 3s; }
}

/* Mouvements continus : seulement avec JavaScript (.is-live), pour que le bouton Pause existe ; à l'arrêt (.is-still : Pause, hors écran, onglet masqué) ils sont en pause. */
.login-split.is-live .doodle {
  animation: journey-float 7s ease-in-out infinite alternate;
}

.login-split.is-live .doodle--a { animation-duration: 6s; }
.login-split.is-live .doodle--b { animation-duration: 7s; animation-delay: -2s; }
.login-split.is-live .doodle--c { animation-duration: 8s; animation-delay: -4s; }
.login-split.is-live .doodle--d { animation-duration: 9s; animation-delay: -1s; }
.login-split.is-live .doodle--e { animation-duration: 6.5s; animation-delay: -3s; }

.journey__star.is-travelling {
  display: block;
  left: 0;
  top: 0;
  offset-rotate: 0deg;
  offset-anchor: 50% 50%;
  animation: journey-travel 16s linear infinite;
}

.login-split.is-still .doodle,
.login-split.is-still .journey__star {
  animation-play-state: paused;
}

.journey-pause {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
  color: var(--violet);
  background: var(--blanc);
  cursor: pointer;
}

.journey-pause[hidden] {
  display: none;
}

.journey-pause:hover {
  background: var(--violet-pale);
}

.journey-pause:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.journey-pause .icon {
  width: 16px;
  height: 16px;
}

.journey-icon-play {
  display: none;
}

.login-split.is-paused .journey-icon-play {
  display: block;
}

.login-split.is-paused .journey-icon-pause {
  display: none;
}

.login-split__main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  padding: var(--s6) var(--s5);
  background: var(--blanc);
  border: 0;
  border-radius: var(--rayon-g);
}

.login__box {
  width: 100%;
}

.login__title {
  margin: var(--s3) 0 var(--s3);
  font-size: calc(var(--t-3xl) * 1.2 * var(--echelle));
  font-weight: 800;
  line-height: 1.1;
  color: var(--violet);
}

.login__notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--violet);
}

.login__notice .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--info);
}

.login__form {
  max-width: none;
  gap: var(--s4);
}

/* Le résumé d'erreur global n'occupe de place que lorsqu'il existe (lot L5g) : l'envoi recharge la page, aucun décalage dynamique. */
.login__summary {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
}

.login__summary .icon,
.login__line .icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.login__field {
  display: grid;
  gap: var(--s1);
}

.login__control {
  position: relative;
  display: grid;
}

.login__icon {
  position: absolute;
  top: 50%;
  left: var(--s4);
  width: 1.4rem;
  height: 1.4rem;
  color: var(--violet-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.login__icon .icon {
  width: 100%;
  height: 100%;
}

.login__input {
  min-height: 3.5rem;
  padding-left: 3.25rem;
  font-size: var(--fs-lg);
}

.login__control[data-password-wrap] .login__input {
  padding-right: 3.75rem;
}

/* UNE ligne réservée sous chaque champ : l'aide ou, à sa place, l'erreur. */
.login__line {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-height: 1.25rem;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.25;
}

.login__hint {
  color: var(--encre-2);
}

.login__error {
  font-weight: 700;
  color: var(--erreur);
}

.login__submit {
  width: 100%;
  justify-content: center;
}

.login__toggle {
  position: absolute;
  top: 50%;
  right: var(--s2);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--violet);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.login__toggle[hidden],
.login__eye[hidden] {
  display: none;
}

.login__eye {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
}

.login__eye .icon {
  width: 100%;
  height: 100%;
}

.login__toggle:hover {
  background: var(--violet-pale);
}

.login__toggle:focus-visible,
.login__input:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

@media (max-width: 36em) {
  .login__summary {
    font-size: var(--fs-sm);
  }

  .login__line {
    min-height: 2.25rem;
    align-items: flex-start;
  }
}

@media (min-width: 43.75em) {
  .login-split {
    --d: 72px;
    padding: 8rem var(--s5);
  }

  .login-split__main {
    padding: var(--s7) var(--s7);
  }
}

@media (min-width: 68.75em) {
  .login-split {
    --d: clamp(88px, 8.2vw, 112px);
    padding: 12rem var(--s5) 6rem;
  }

  .login-split__main {
    max-width: 38rem;
  }

  .doodle-link,
  .journey__path {
    display: block;
  }

  .doodle--a { top: 22%; left: 6%; }
  .doodle--b { top: 56%; left: 9%; }
  .doodle--c { top: 40px; left: calc(50% - var(--d) / 2); }
  .doodle--d { top: 24%; left: auto; right: 8%; bottom: auto; }
  .doodle--e { top: 58%; left: auto; right: 6%; bottom: auto; }

  .doodle-link--arrow { top: 41%; left: 8%; }
  .doodle-link--star { top: 78%; left: 12%; }
  .doodle-link--dashes { top: 12%; left: 13%; }
  .doodle-link--spiral { top: 11%; right: 12%; }
  .doodle-link--dots { top: 43%; right: 13%; }
}

/* ---- Lot L5e : page Recherche ---- */
.sform {
  display: grid;
  gap: var(--s2);
  max-width: 40rem;
}

.sform__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.sform__row .partner-form__input {
  flex: 1 1 14rem;
  min-width: 0;
}

.sresults__status {
  min-height: 1.5em;
  margin-top: var(--s4);
}

.sresults__group {
  margin-top: var(--s5);
}

.sresults__title {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s4);
  padding-bottom: var(--s3);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--violet);
  border-bottom: 2px solid var(--ligne);
}

/* Lot L5g : pictogramme du kit à gauche du titre de chaque groupe de résultats (décoratif). */
.sresults__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  color: var(--violet);
  background: var(--violet-pale);
  border-radius: 50%;
}

.sresults__icon .icon {
  width: 100%;
  height: 100%;
}

.sresults__list,
.sresults__links {
  display: grid;
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sresults__link {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sresults__excerpt {
  margin: var(--s1) 0 0;
  color: var(--texte-2, inherit);
}

.sresults__note {
  margin-top: var(--s6);
  font-size: var(--fs-sm);
}
