/* ==========================================================================================================================
   Accueil : les trois héros en carrousel (lot L3a).
   Référence : maquettes-accueil/hero-1..3.png et _src/pages/hero-N.html du kit. Fond clair, vivant, sobre :
   - l'OR est un accent rare (barre de progression de 4 px, filet devant le surtitre, soulignement fin du mot en valeur) ;
     aucun bouton doré, aucun halo ni ombre dorée, aucun aplat jaune ;
   - les fonds d'ambiance sont des dégradés doux, statiques, faits avec les jetons --accent-* ;
   - aucune animation permanente : transition entre slides (400 ms), progression de 8 s, apparition unique des cartes (600 ms),
     léger relief au survol ; tout est coupé en mouvement réduit par la règle globale de front-base.css.
   Toutes les tailles de texte suivent le réglage A / A+ / A++ (var(--echelle)).
   ========================================================================================================================== */

.hero-carousel {
  --hero-gap: 40px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  container-name: hero;
  background:
    radial-gradient(44em 30em at 94% 4%, color-mix(in srgb, var(--accent-votes-fond) 85%, transparent), transparent 70%),
    radial-gradient(34em 26em at 62% -6%, color-mix(in srgb, var(--accent-guides-fond) 70%, transparent), transparent 70%),
    radial-gradient(38em 28em at 2% 98%, var(--accent-concours-fond), transparent 68%),
    radial-gradient(30em 22em at 86% 78%, color-mix(in srgb, var(--accent-bordeaux-pale) 75%, transparent), transparent 70%),
    linear-gradient(180deg, var(--blanc) 0%, var(--fond) 100%);
}

/* Grille de points très légère, plus visible à droite (décor du kit, statique). */
.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--violet) 8%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, var(--encre) 70%);
  pointer-events: none;
}

/* ---- Pile de slides : elles partagent la même cellule, donc la même hauteur (aucun décalage de mise en page) ---- */
.hero-carousel__slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: clamp(30em, calc(100svh - 15em), 54em);
  transition: opacity 0.4s;
}

.js .hero-slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

/* Sans JavaScript : les trois slides se lisent l'une sous l'autre. */
.no-js .hero-carousel__slides {
  display: block;
}

.no-js .hero-slide {
  min-height: 0;
  padding-bottom: var(--s6);
}

.no-js .hero-bar {
  display: none;
}

.hero-slide__inner {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hero-gap);
  align-items: center;
  padding-block: var(--s5) var(--s3);
}

@container hero (min-width: 62em) {
  .hero-slide--1 .hero-slide__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-slide--2 .hero-slide__inner {
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    gap: 44px;
  }

  .hero-slide--3 .hero-slide__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .hero-slide__inner {
    padding-block: var(--s6) var(--s4);
  }
}

/* ---- Texte ---- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(13px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-texte);
}

.hero-eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 2px;
  background: var(--or);
}

.hero-title {
  margin: var(--s4) 0 var(--s4);
  font-size: clamp(calc(32px * var(--echelle)), 4.6vw, calc(64px * var(--echelle)));
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--violet);
  text-wrap: balance;
}

/* Mot en valeur : soulignement fin en or pâle, sans surbrillance. */
.hero-title em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(var(--or-clair), var(--or-clair)) 0 92% / 100% 0.09em no-repeat;
}

.hero-lead {
  max-width: 54ch;
  margin: 0 0 var(--s5);
  font-size: clamp(calc(16px * var(--echelle)), 1.4vw, calc(19px * var(--echelle)));
  line-height: 1.55;
  color: var(--encre-2);
}

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

/* Chiffres de la slide 1 (valeurs de démonstration de la configuration). */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  margin: 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--ligne);
}

.hero-facts div {
  display: flex;
  flex-direction: column-reverse;
  min-width: 96px;
}

.hero-facts dt {
  font-size: calc(13.5px * var(--echelle));
  color: var(--encre-2);
}

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

/* Slogan en pastille violette (slide 2) : trois mots du slogan de la configuration. */
.hero-slogan {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: var(--s2) var(--s4);
  border-radius: 999px;
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blanc);
  background: var(--violet);
}

.hero-slogan i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-pale);
}

/* Trois temps du parcours (slide 3). */
.hero-tiers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
}

.hero-tier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  font-size: calc(14.5px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
  background: var(--blanc);
}

.hero-tier i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: calc(12.5px * var(--echelle));
  font-style: normal;
  color: var(--violet);
  background: var(--accent-concours-fond);
}

.hero-tier + .hero-tier::before {
  content: "→";
  margin-right: 4px;
  color: var(--encre-2);
}

/* ---- Carte blanche flottante (ombre douce, relief de 2 px au survol, apparition unique) ---- */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 14px 16px;
  border: 1px solid var(--ligne);
  border-radius: 20px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
  transition: transform 0.2s;
}

.float-card:hover {
  transform: translateY(-2px);
}

.float-card small {
  display: block;
  font-size: calc(11.5px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.float-card b {
  display: block;
  font-size: calc(15px * var(--echelle));
  font-weight: 700;
  line-height: 1.25;
  color: var(--violet);
}

/* ---- Slide 1 : blason, anneau de texte, trois cartes et pastille ---- */
.stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.stage__halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blanc) 30%, var(--accent-concours-fond) 66%, transparent 74%);
}

.stage__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage__ring text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: var(--violet-2);
}

.stage__arc {
  position: absolute;
  inset: 11%;
  border: 2px dashed color-mix(in srgb, var(--or-clair) 80%, transparent);
  border-radius: 50%;
}

.stage__arc2 {
  position: absolute;
  inset: 19%;
  border: 8px solid color-mix(in srgb, var(--or-clair) 60%, transparent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.stage__crest {
  position: absolute;
  inset: 24%;
}

.stage__crest img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--blanc), 0 0 0 8px var(--violet-pale), 0 30px 60px -18px color-mix(in srgb, var(--violet) 45%, transparent);
}

.float-card--file {
  left: -5%;
  top: 44%;
  width: 40%;
}

.float-card--count {
  right: -5%;
  top: 40%;
  width: 38%;
}

.float-card--jury {
  left: 2%;
  bottom: 3%;
  width: 42%;
}

.meter {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 9px;
}

.meter__bg {
  fill: var(--fond-2);
}

.meter__fill {
  fill: var(--violet-3);
}

.float-card__big {
  display: block;
  margin: 2px 0 6px;
  font-size: calc(30px * var(--echelle));
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--violet);
}

.spark {
  display: block;
  width: 100%;
  height: 34px;
}

.spark__bar {
  fill: var(--violet-3);
  opacity: 0.85;
}

.spark__bar--last {
  fill: var(--or);
  opacity: 1;
}

.avatars {
  display: flex;
  margin-top: 8px;
}

.avatars span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid var(--blanc);
  border-radius: 50%;
  font-size: calc(11px * var(--echelle));
  font-weight: 700;
  color: var(--violet-2);
  background: var(--accent-concours-fond);
}

.avatars span:first-child {
  margin-left: 0;
}

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

.stage__badge {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  font-size: calc(13.5px * var(--echelle));
  font-weight: 600;
  color: var(--blanc);
  background: var(--violet);
  box-shadow: 0 18px 30px -14px color-mix(in srgb, var(--violet) 70%, transparent);
}

.stage__badge i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--violet);
  background: var(--or-clair);
}

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

/* Bandeau des phases (quatre cartes) sous la slide 1. */
.phase-strip {
  padding-bottom: var(--s5);
}

.phase-strip__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-g);
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.phase-strip__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 22px;
  border-right: 1px solid var(--ligne);
}

.phase-strip__list li:last-child {
  border-right: 0;
}

.phase-strip__label {
  font-size: calc(12px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-concours-texte);
}

.phase-strip__list b {
  font-size: calc(20px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.phase-strip__text {
  font-size: calc(14px * var(--echelle));
  color: var(--encre-2);
}

/* ---- Slide 2 : trois piliers (celui du centre en violet) ---- */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  align-items: center;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 26px 20px 24px;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: 28px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
  transition: transform 0.2s;
}

.pillar:hover {
  transform: translateY(-2px);
}

.pillar--mid {
  min-height: 510px;
  color: var(--blanc);
  border-color: transparent;
  background: linear-gradient(165deg, var(--violet-2), var(--violet));
}

.pillar::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -58px;
  width: 104px;
  height: 104px;
  border: 15px solid var(--accent-concours-fond);
  border-radius: 50%;
}

.pillar--mid::after {
  border-color: color-mix(in srgb, var(--blanc) 14%, transparent);
}

.pillar > * {
  position: relative;
  z-index: 1;
}

.pillar__label {
  font-size: calc(11.5px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-concours-texte);
}

.pillar--mid .pillar__label {
  color: var(--accent-concours-fond);
}

.pillar__pic {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 16px 0 20px;
  border-radius: 50%;
  background: var(--accent-concours-fond);
  box-shadow: 0 0 0 6px var(--blanc), 0 0 0 7px var(--violet-pale);
}

.pillar--mid .pillar__pic {
  background: var(--violet-pale);
  box-shadow: 0 0 0 6px var(--violet-2), 0 0 0 7px color-mix(in srgb, var(--blanc) 40%, transparent);
}

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

.pillar__title {
  margin: 0 0 10px;
  font-size: calc(26px * var(--echelle));
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--violet);
}

.pillar--mid .pillar__title {
  color: var(--blanc);
}

.pillar__line {
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: var(--or-clair);
}

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

.pillar--mid .pillar__text {
  color: var(--violet-pale);
}

.pillar__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: calc(13px * var(--echelle));
  font-weight: 700;
  color: var(--violet-2);
  text-decoration: none;
}

.pillar--mid .pillar__more {
  color: var(--blanc);
}

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

/* ---- Slide 3 : carte de la Côte d'Ivoire, parcours en pointillé, trois cartes d'organes ---- */
.route {
  position: relative;
  width: 100%;
  max-width: 610px;
  aspect-ratio: 1 / 1.02;
  margin-inline: auto;
}

.route__map {
  position: absolute;
  inset: 3% 8%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: 44px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.route__map::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border: 26px solid var(--accent-concours-fond);
  border-radius: 50%;
}

.route__map svg {
  position: relative;
  width: 92%;
  height: 92%;
}

.map__land {
  fill: var(--accent-concours-fond);
}

.map__dot {
  fill: var(--violet-3);
  opacity: 0.38;
}

.map__border {
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 3.5;
  stroke-linejoin: round;
}

.map__trail {
  fill: none;
  stroke: var(--violet);
  stroke-width: 3;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}

.map__halo {
  fill: color-mix(in srgb, var(--violet-3) 22%, transparent);
}

.map__node {
  fill: var(--blanc);
  stroke: var(--violet);
  stroke-width: 3;
}

.map__core {
  fill: var(--violet);
}

.map__label {
  font-size: 15px;
  font-weight: 800;
  fill: var(--violet);
}

.map__label--end {
  text-anchor: end;
}

.route__legend {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 7px 14px;
  list-style: none;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  font-size: calc(12.5px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
  background: color-mix(in srgb, var(--blanc) 92%, transparent);
}

.route__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route__dot {
  display: inline-block;
  border: 2px solid var(--violet);
  border-radius: 50%;
  background: var(--blanc);
}

.route__dot--1 {
  width: 8px;
  height: 8px;
}

.route__dot--2 {
  width: 11px;
  height: 11px;
}

.route__dot--3 {
  width: 14px;
  height: 14px;
}

.float-card--org-evaluate,
.float-card--org-verify,
.float-card--org-validate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon title";
  column-gap: 12px;
  align-items: center;
  width: 250px;
  max-width: 62%;
  padding: 13px 16px 13px 13px;
}

.float-card--org-evaluate small,
.float-card--org-verify small,
.float-card--org-validate small {
  grid-area: label;
  color: var(--accent-concours-texte);
}

.float-card--org-evaluate b,
.float-card--org-verify b,
.float-card--org-validate b {
  grid-area: title;
}

.org-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-concours-fond);
}

.org-icon .icon {
  width: 30px;
  height: 30px;
}

.float-card--org-evaluate {
  top: 8%;
  left: -5%;
}

.float-card--org-verify {
  top: 30%;
  right: -6%;
}

.float-card--org-validate {
  bottom: 7%;
  left: -3%;
}

/* ---- Barre de commandes : flèches, pastilles, compteur, barre de progression de 4 px, « Suivant : … » ---- */
.hero-bar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: var(--s2) var(--s5);
}

.hero-bar__controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}

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

.hero-arrow:hover {
  background: var(--violet-pale);
}

.hero-arrow--fill {
  color: var(--blanc);
  background: var(--violet);
}

.hero-arrow--fill:hover {
  background: var(--violet-2);
}

.hero-arrow--small {
  width: 36px;
  height: 36px;
}

.hero-arrow .icon {
  width: 20px;
  height: 20px;
}

.hero-arrow--small .icon {
  width: 16px;
}

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

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

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

.hero-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pastille cliquable : la zone de clic fait 24 px au moins (WCAG 2.5.8), le point dessiné est plus petit. */
.hero-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--accent-concours-fond);
  box-shadow: inset 0 0 0 1px var(--violet-3);
  transform: translate(-50%, -50%);
  transition: width 0.2s;
}

.hero-dot[aria-current="true"]::before {
  width: 28px;
  background: var(--violet);
  box-shadow: none;
}

.hero-count {
  font-size: calc(14px * var(--echelle));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--encre-2);
}

.hero-count b {
  font-size: calc(18px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.hero-progress {
  flex: 1;
  min-width: 60px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--fond-2);
}

.hero-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  transform: scaleX(var(--hero-static, 0));
  transform-origin: left;
}

@keyframes hero-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* La barre se remplit pendant les 8 s de la slide ; en pause elle s'arrête, en mouvement réduit elle montre la position. */
.hero-carousel.is-playing .hero-progress i {
  animation: hero-progress var(--hero-interval, 8s) linear forwards;
}

.hero-carousel.is-playing.is-hovered .hero-progress i {
  animation-play-state: paused;
}

.hero-next {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: calc(14px * var(--echelle));
  font-weight: 600;
  white-space: nowrap;
  color: var(--violet);
}

.hero-next .icon {
  width: 18px;
  height: 18px;
}

.hero-next__name {
  display: none;
}

.hero-carousel[data-hero-index="0"] [data-hero-next-name="0"],
.hero-carousel[data-hero-index="1"] [data-hero-next-name="1"],
.hero-carousel[data-hero-index="2"] [data-hero-next-name="2"] {
  display: inline;
}

/* ---- Mobile : une colonne, cartes « dossier » et « jury » masquées (REGLES_HERO), piliers et carte empilés ---- */
@container hero (max-width: 61.99em) {
  .stage {
    max-width: 420px;
  }

  .float-card--file,
  .float-card--jury {
    display: none;
  }

  .float-card--count {
    top: 34%;
    right: -2%;
    width: 42%;
  }

  /* Comme sur la maquette mobile : la pastille « Inscription validée » passe à gauche, sous le blason. */
  .stage__badge {
    right: auto;
    bottom: 2%;
    left: 2%;
  }

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

  .pillar,
  .pillar--mid {
    min-height: 0;
  }

  .phase-strip__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-strip__list li:nth-child(2) {
    border-right: 0;
  }

  .phase-strip__list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ligne);
  }

  .hero-next {
    display: none;
  }

  .float-card--org-evaluate {
    left: 0;
  }

  .float-card--org-verify {
    right: 0;
  }

  .float-card--org-validate {
    left: 0;
  }
}

@container hero (max-width: 36em) {
  .phase-strip__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase-strip__list li,
  .phase-strip__list li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--ligne);
  }

  .phase-strip__list li:last-child {
    border-bottom: 0;
  }

  .hero-bar__inner {
    flex-wrap: wrap;
    gap: var(--s3);
  }

  .hero-bar__controls {
    flex-wrap: wrap;
    gap: var(--s3);
  }

  .hero-progress {
    flex-basis: 100%;
    order: 3;
  }

  .float-card--org-evaluate,
  .float-card--org-verify,
  .float-card--org-validate {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin-top: var(--s3);
  }

  .route {
    aspect-ratio: auto;
  }

  .route__map {
    position: relative;
    inset: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================================================================================================
   Vie des héros (lot L3a2) : mouvements continus, doux et discrets, posés PAR-DESSUS les compositions validées.
   Décision du responsable du 24/10/2026 : elle annule l'interdiction d'animations permanentes du lot L3a. Règles :
   - seulement transform, opacity, stroke-dashoffset, offset-distance et les propriétés individuelles translate (aucun flou ni filtre
     animé, aucune ombre dorée) ; l'or reste un accent rare ;
   - les animations d'une slide inactive sont en pause, de même quand l'onglet est caché, que le héros est hors écran ou que le
     visiteur a mis le carrousel en pause (classe .is-still posée par front-hero.js) ;
   - mouvement réduit (système ou réglage du panneau) : la règle globale de front-base.css supprime toute animation ; chaque élément
     reste alors dans son état final lisible (valeurs, barres pleines, coche dessinée, tracé complet, cartes au repos).
   ========================================================================================================================== */

.hero-slide {
  position: relative;
}

.hero-slide__inner,
.phase-strip {
  position: relative;
  z-index: 1;
}

/* ---- Pause : slide inactive, onglet caché, héros hors écran, bouton Pause du carrousel ---- */
.hero-slide:not(.is-active) *,
.hero-slide:not(.is-active) *::before,
.hero-slide:not(.is-active) *::after {
  animation-play-state: paused !important;
}

/* Pause du carrousel, onglet caché, héros hors écran : seules les animations CONTINUES s'arrêtent. Les entrées (cartes, barres, tracé,
   coche) vont toujours jusqu'à leur état final : une entrée figée à mi-course laisserait la slide vide. */
.hero-carousel.is-still :is(.hero-ambient i, .stage__ring, .stage__arc, .stage__halo, .stage__badge, .float-card, .pillar, .pillar__pic .icon, .phase-strip__dot, .map__runner, .map__pulse),
.hero-carousel.is-still .stage__badge::after,
.hero-carousel.is-still .pillar::after {
  animation-play-state: paused !important;
}

/* Éléments qui ont une entrée ET un flottement : on arrête seulement le flottement (second de la liste). */
.hero-carousel.is-still .hero-slide.is-entering :is(.float-card, .stage__badge, .pillars .pillar) {
  animation-play-state: running, paused !important;
}

/* ---- Formes d'ambiance : trois taches douces (lavande, rose, turquoise) qui dérivent derrière le contenu ---- */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-ambient i {
  translate: 0 calc(var(--parallax, 0) * 1px);
  position: absolute;
  width: 34em;
  height: 34em;
  border-radius: 50%;
  opacity: 0.55;
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-ambient i:nth-child(1) {
  background: radial-gradient(circle, var(--accent-concours-fond) 0%, transparent 68%);
}

.hero-ambient i:nth-child(2) {
  background: radial-gradient(circle, var(--accent-bordeaux-pale) 0%, transparent 68%);
  animation-duration: 32s;
  animation-delay: -9s;
}

.hero-ambient i:nth-child(3) {
  background: radial-gradient(circle, var(--accent-votes-fond) 0%, transparent 68%);
  animation-duration: 24s;
  animation-delay: -15s;
}

.hero-slide--1 .hero-ambient i:nth-child(1) {
  left: -10em;
  top: 8em;
}

.hero-slide--1 .hero-ambient i:nth-child(2) {
  right: -8em;
  top: -6em;
}

.hero-slide--1 .hero-ambient i:nth-child(3) {
  right: 12%;
  bottom: -14em;
}

.hero-slide--2 .hero-ambient i:nth-child(1) {
  left: 30%;
  top: -12em;
}

.hero-slide--2 .hero-ambient i:nth-child(2) {
  left: -8em;
  bottom: -6em;
}

.hero-slide--2 .hero-ambient i:nth-child(3) {
  right: -10em;
  top: 10em;
}

.hero-slide--3 .hero-ambient i:nth-child(1) {
  right: 20%;
  top: -10em;
}

.hero-slide--3 .hero-ambient i:nth-child(2) {
  right: -10em;
  bottom: -8em;
}

.hero-slide--3 .hero-ambient i:nth-child(3) {
  left: -12em;
  top: 14em;
}

@keyframes hero-drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(3.5em, 2.5em) scale(1.08);
  }
}

@keyframes hero-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Flottement des cartes : chacune sa trajectoire, sa durée et son décalage (amplitude 6 à 12 px, rotation 1° au plus) ---- */
@keyframes hero-float-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(6px, -9px) rotate(0.8deg);
  }

  50% {
    transform: translate(-4px, -4px) rotate(0deg);
  }

  75% {
    transform: translate(-7px, 6px) rotate(-0.8deg);
  }
}

@keyframes hero-float-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-8px, -7px) rotate(-0.6deg);
  }

  66% {
    transform: translate(7px, 5px) rotate(0.6deg);
  }
}

@keyframes hero-float-c {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(5px, 8px) rotate(0.5deg);
  }

  55% {
    transform: translate(-6px, -6px) rotate(-0.7deg);
  }

  80% {
    transform: translate(3px, -9px) rotate(0.2deg);
  }
}

@keyframes hero-float-up {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes hero-float-up-wide {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Relief au survol : propriété `translate`, indépendante de `transform` (flottement) et de l'entrée. */
.float-card,
.pillar {
  transition: translate 0.2s;
}

.float-card:hover,
.pillar:hover {
  translate: 0 -2px;
  transform: none;
}

.float-card {
  animation: var(--float, hero-float-a) var(--float-dur, 11s) ease-in-out var(--float-delay, 0s) infinite;
}

.float-card--file {
  --float: hero-float-a;
  --float-dur: 11s;
  --float-delay: -2s;
  --enter-delay: 0.1s;
}

.float-card--count {
  --float: hero-float-b;
  --float-dur: 13s;
  --float-delay: -5s;
  --enter-delay: 0.25s;
}

.float-card--jury {
  --float: hero-float-c;
  --float-dur: 9.5s;
  --float-delay: -7s;
  --enter-delay: 0.4s;
}

.float-card--org-evaluate {
  --float: hero-float-a;
  --float-dur: 12s;
  --float-delay: -1s;
  --enter-delay: 0.1s;
}

.float-card--org-verify {
  --float: hero-float-c;
  --float-dur: 14s;
  --float-delay: -6s;
  --enter-delay: 0.25s;
}

.float-card--org-validate {
  --float: hero-float-b;
  --float-dur: 10s;
  --float-delay: -4s;
  --enter-delay: 0.4s;
}

.stage__badge {
  animation: hero-float-b 12.5s ease-in-out -3s infinite;
}

.pillars .pillar {
  animation: hero-float-up 10s ease-in-out infinite;
}

.pillars .pillar:nth-child(2) {
  animation-name: hero-float-up-wide;
  animation-duration: 12s;
  animation-delay: -6s;
  --enter-delay: 0.2s;
}

.pillars .pillar:nth-child(1) {
  --enter-delay: 0.05s;
}

.pillars .pillar:nth-child(3) {
  animation-duration: 11s;
  animation-delay: -5.5s;
  --enter-delay: 0.35s;
}

/* ---- Entrée à chaque activation de la slide : les cartes arrivent en cascade (translate + opacité, le flottement continue) ---- */
@keyframes hero-card-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-slide.is-entering .float-card {
  animation: hero-card-in 0.6s ease-out var(--enter-delay, 0s) backwards, var(--float, hero-float-a) var(--float-dur, 11s) ease-in-out var(--float-delay, 0s) infinite;
}

.hero-slide.is-entering .stage__badge {
  animation: hero-card-in 0.6s ease-out 0.55s backwards, hero-float-b 12.5s ease-in-out -3s infinite;
}

.hero-slide.is-entering .pillars .pillar {
  animation: hero-card-in 0.6s ease-out var(--enter-delay, 0s) backwards, hero-float-up 10s ease-in-out infinite;
}

.hero-slide.is-entering .pillars .pillar:nth-child(2) {
  animation: hero-card-in 0.6s ease-out var(--enter-delay, 0s) backwards, hero-float-up-wide 12s ease-in-out -6s infinite;
}

.hero-slide.is-entering .pillars .pillar:nth-child(3) {
  animation: hero-card-in 0.6s ease-out var(--enter-delay, 0s) backwards, hero-float-up 11s ease-in-out -5.5s infinite;
}

/* Barres du graphique : elles montent une à une ; barre de la carte « Inscription en cours » : elle se remplit. */
@keyframes hero-bar-up {
  from {
    transform: scaleY(0);
  }
}

@keyframes hero-meter {
  from {
    transform: scaleX(0);
  }
}

@keyframes hero-draw {
  from {
    stroke-dashoffset: 30;
  }
}

.spark__bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.hero-slide.is-entering .spark__bar {
  animation: hero-bar-up 0.5s ease-out backwards;
  animation-delay: calc(0.5s + var(--i, 0) * 90ms);
}

.spark__bar:nth-child(2) {
  --i: 1;
}

.spark__bar:nth-child(3) {
  --i: 2;
}

.spark__bar:nth-child(4) {
  --i: 3;
}

.spark__bar:nth-child(5) {
  --i: 4;
}

.spark__bar:nth-child(6) {
  --i: 5;
}

.spark__bar:nth-child(7) {
  --i: 6;
}

.meter__fill {
  transform-box: fill-box;
  transform-origin: 0 50%;
}

.hero-slide.is-entering .meter__fill {
  animation: hero-meter 0.9s ease-out 0.5s backwards;
}

.stage__badge .icon path {
  stroke-dasharray: 30;
}

.hero-slide.is-entering .stage__badge .icon path {
  animation: hero-draw 0.6s ease-out 1s backwards;
}

/* ---- Héros 1 : anneau de slogan, anneau en pointillés, halo lavande qui respire, anneau discret de la pastille ---- */
@keyframes hero-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.7;
  }
}

@keyframes hero-ping {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }

  70%,
  100% {
    transform: scale(1.3, 1.65);
    opacity: 0;
  }
}

.stage__ring {
  animation: hero-spin 70s linear infinite;
}

.stage__arc {
  animation: hero-spin 100s linear infinite reverse;
}

.stage__halo {
  animation: hero-breathe 5.5s ease-in-out infinite;
}

.stage__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--violet-3);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  animation: hero-ping 4s ease-out infinite;
}

/* Petit point vert qui pulse devant la phase « Inscriptions » quand les inscriptions sont ouvertes (décoratif, sans texte). */
@keyframes hero-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.55;
  }
}

.phase-strip__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--succes);
  animation: hero-dot-pulse 2.4s ease-in-out infinite;
}

.phase-strip__list li.is-current {
  background: linear-gradient(180deg, var(--accent-concours-fond), var(--blanc));
}

/* ---- Héros 2 : arc de chaque carte (tourne en 40 s), couronne de la carte centrale (mouvement vertical doux de 4 s) ---- */
.pillar::after {
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: hero-spin 40s linear infinite;
}

.pillar--mid::after {
  animation-direction: reverse;
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.pillar--mid .pillar__pic .icon {
  animation: hero-bob 4s ease-in-out infinite;
}

/* ---- Héros 3 : tracé qui se dessine à l'activation, repère qui circule, anneaux des nœuds à tour de rôle ---- */
@keyframes hero-trail {
  from {
    stroke-dashoffset: 100;
  }
}

@keyframes hero-run {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

@keyframes hero-node-ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.map__mask {
  fill: none;
  stroke: var(--blanc);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 100;
}

.hero-slide.is-entering .map__mask {
  animation: hero-trail 1.5s ease-in-out 0.3s backwards;
}

.map__runner {
  fill: var(--blanc);
  stroke: var(--violet);
  stroke-width: 2.5;
  offset-path: path("M82,293 Q92,182 146,152 T281,263");
  offset-rotate: 0deg;
  animation: hero-run 9s linear infinite;
}

.map__pulse {
  fill: none;
  stroke: var(--violet-3);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-node-ping 4s ease-out infinite;
}

.map__pulse--2 {
  animation-delay: 1.33s;
}

.map__pulse--3 {
  animation-delay: 2.66s;
}

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

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

/* ---- Hauteur du héros (lot L3a2) : avec le bandeau « À la une » sous l'en-tête, la barre de commandes reste visible sans défilement à
   1440 × 900. Seuls les espacements verticaux du bureau sont resserrés (les tailles de texte validées ne changent pas) ; la hauteur
   reste un min-height commun aux trois slides (même cellule de grille), jamais un height. Mesure : barre de commandes à y = 889 px. ---- */
@container hero (min-width: 62em) {
  .hero-slide__inner {
    padding-block: var(--s3) var(--s1);
  }

  .hero-title {
    margin-block: var(--s3);
  }

  .hero-lead {
    margin-bottom: var(--s4);
  }

  .hero-actions {
    margin-bottom: var(--s4);
  }

  .hero-facts {
    padding-top: var(--s3);
  }

  .phase-strip {
    padding-bottom: var(--s3);
  }

  .phase-strip__list li {
    padding-block: 14px;
  }

  .hero-bar__inner {
    padding-block: var(--s1) var(--s3);
  }
}

/* ==========================================================================================================================
   Lot L3b1 : dernières touches de vie des héros 1 et 2, puis blocs 3 à 7 de l'accueil.
   Mêmes règles que les héros : transform, opacity, translate, stroke-dashoffset seulement ; un peu de jaune PÂLE (jetons
   --accent-candidats-fond, --or-clair à faible opacité), aucun bouton ni dégradé or, aucun halo ni ombre dorée ; tout s'arrête en
   mouvement réduit (règle globale de front-base.css) et le contenu reste visible sans JavaScript.
   ========================================================================================================================== */

/* ---- Héros 1 : bandeau des phases (piste, remplissage jaune pâle, reflet, lavis de la phase active, entrée en cascade) ---- */
.phase-strip__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-g);
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.phase-strip__frame .phase-strip__list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phase-strip__track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 4px;
  overflow: hidden;
  background: var(--fond-2);
  pointer-events: none;
}

.phase-strip__fill,
.phase-strip__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.phase-strip__fill {
  width: 25%;
  background: color-mix(in srgb, var(--or-clair) 80%, var(--blanc));
  transform-origin: left;
}

.phase-strip__fill--2 {
  width: 50%;
}

.phase-strip__fill--3 {
  width: 75%;
}

.phase-strip__fill--4 {
  width: 100%;
}

.phase-strip__shine {
  width: 14%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--blanc) 85%, transparent), transparent);
  transform: translateX(-100%);
  animation: hero-shine 7s linear infinite;
}

@keyframes hero-shine {
  0% {
    transform: translateX(-100%);
  }

  60%,
  100% {
    transform: translateX(720%);
  }
}

.phase-strip__list li {
  position: relative;
}

.phase-strip__list li > * {
  position: relative;
  z-index: 1;
}

/* Lavis jaune pâle de la phase active, très léger, qui respire (opacité). */
.phase-strip__list li.is-current {
  background: transparent;
}

.phase-strip__list li.is-current::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-candidats-fond);
  opacity: 0.55;
  animation: hero-wash 4.5s ease-in-out infinite;
}

@keyframes hero-wash {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.75;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

@keyframes hero-underline {
  from {
    transform: scaleX(0);
  }
}

.hero-slide.is-entering .phase-strip__fill {
  animation: hero-fill 1.1s ease-out 0.4s backwards;
}

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

.hero-slide.is-entering .phase-strip__list li {
  animation: hero-card-in 0.5s ease-out backwards;
}

.hero-slide.is-entering .phase-strip__list li:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-slide.is-entering .phase-strip__list li:nth-child(3) {
  animation-delay: 0.2s;
}

.hero-slide.is-entering .phase-strip__list li:nth-child(4) {
  animation-delay: 0.3s;
}

/* Les numéros des phases apparaissent un à un. */
.hero-slide.is-entering .phase-strip__label {
  animation: hero-fade 0.4s ease-out 0.5s backwards;
}

.hero-slide.is-entering .phase-strip__list li:nth-child(2) .phase-strip__label {
  animation-delay: 0.7s;
}

.hero-slide.is-entering .phase-strip__list li:nth-child(3) .phase-strip__label {
  animation-delay: 0.9s;
}

.hero-slide.is-entering .phase-strip__list li:nth-child(4) .phase-strip__label {
  animation-delay: 1.1s;
}

.phase-strip__list li {
  transition: translate 0.2s;
}

.phase-strip__list li:hover {
  translate: 0 -2px;
}

/* Soulignement or pâle de « lumière » : il se dessine comme au feutre (0,8 s) ; l'état par défaut est le trait complet. */
.hero-title em {
  position: relative;
  background: none;
}

.hero-title em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.04em;
  left: 0;
  height: 0.09em;
  background: var(--or-clair);
  transform-origin: left;
}

.hero-slide.is-entering .hero-title em::after {
  animation: hero-underline 0.8s ease-out 0.7s backwards;
}

/* ---- Héros 2 : fil entre les cartes avec un point qui le parcourt, mots du slogan illuminés un à un, scintillement, reflet ---- */
.pillars__thread {
  position: absolute;
  top: 50%;
  right: 4%;
  left: 4%;
  z-index: 0;
  height: 2px;
  overflow: hidden;
  background: color-mix(in srgb, var(--violet-3) 35%, transparent);
  pointer-events: none;
}

.pillars__thread i {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, var(--violet) 0 3px, transparent 4px);
  transform: translateX(-100%);
  animation: hero-thread 7s linear infinite;
}

@keyframes hero-thread {
  to {
    transform: translateX(0);
  }
}

.pillars {
  perspective: 900px;
}

.pillars .pillar {
  z-index: 1;
}

.pillar {
  rotate: var(--tilt, 0 0 1 0deg);
  transition: translate 0.2s, rotate 0.25s ease-out;
}

.hero-slogan span {
  position: relative;
}

.hero-slogan span::before {
  content: "";
  position: absolute;
  inset: -3px -8px;
  z-index: -1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--or-clair) 30%, transparent);
  opacity: 0;
  animation: hero-glow 7.5s ease-in-out infinite;
}

.hero-slogan span:nth-of-type(2)::before {
  animation-delay: 2.5s;
}

.hero-slogan span:nth-of-type(3)::before {
  animation-delay: 5s;
}

.hero-slogan {
  isolation: isolate;
}

@keyframes hero-glow {
  0%,
  45%,
  100% {
    opacity: 0;
  }

  12%,
  30% {
    opacity: 1;
  }
}

@keyframes hero-twinkle {
  0%,
  86%,
  100% {
    transform: scale(1);
  }

  93% {
    transform: scale(1.1);
  }
}

.pillars .pillar:nth-child(1) .pillar__pic .icon {
  animation: hero-twinkle 5s ease-in-out infinite;
}

.pillar__pic {
  position: relative;
  overflow: hidden;
}

.pillars .pillar:nth-child(3) .pillar__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 38%, color-mix(in srgb, var(--blanc) 75%, transparent) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: hero-gleam 6s ease-in-out infinite;
}

@keyframes hero-gleam {
  0%,
  55% {
    transform: translateX(-130%);
  }

  85%,
  100% {
    transform: translateX(130%);
  }
}

.hero-carousel.is-still :is(.phase-strip__shine, .phase-strip__list li::before, .pillars__thread i, .hero-slogan span::before, .pillar__pic .icon),
.hero-carousel.is-still .pillar__pic::after,
.hero-carousel.is-still .phase-strip__list li.is-current::before,
.hero-carousel.is-still .hero-slogan span::before {
  animation-play-state: paused !important;
}

/* ==========================================================================================================================
   Blocs 3 à 7 de l'accueil
   ========================================================================================================================== */

.home-block {
  position: relative;
  padding-block: clamp(2.5em, 6vw, 4.5em);
  font-size: var(--fs-base);
}

.home-block--alt {
  background:
    radial-gradient(34em 20em at 96% 0%, color-mix(in srgb, var(--accent-votes-fond) 70%, transparent), transparent 70%),
    radial-gradient(30em 20em at 0% 100%, color-mix(in srgb, var(--accent-bordeaux-pale) 60%, transparent), transparent 70%),
    var(--fond);
}

.home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4) var(--s5);
  margin-bottom: var(--s6);
}

.home-head--center {
  justify-content: center;
  text-align: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(12.5px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-texte);
}

.home-eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--or);
}

.home-title {
  margin: var(--s3) 0 0;
  font-size: clamp(calc(26px * var(--echelle)), 3.2vw, calc(44px * var(--echelle)));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--violet);
  text-wrap: balance;
}

.home-lead {
  max-width: 54ch;
  margin: var(--s4) 0 0;
  font-size: calc(17px * var(--echelle));
  line-height: 1.6;
  color: var(--encre-2);
}

.home-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;
}

.home-link .icon {
  width: 18px;
  height: 18px;
  transition: translate 0.2s;
}

.home-link:hover .icon {
  translate: 3px 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

/* Animations continues des blocs : en pause tant que le bloc n'est pas à l'écran. */
.home-block:not(.is-in-view) *,
.home-block:not(.is-in-view) *::before,
.home-block:not(.is-in-view) *::after {
  animation-play-state: paused !important;
}

/* ---- Bloc 3 : accès rapide ---- */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
  gap: var(--s4);
  align-items: start;
}

.access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 21em;
  padding: var(--s5);
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 28px;
  box-shadow: var(--ombre-carte);
  transition: transform 0.2s;
}

.access-card:hover {
  transform: translateY(-2px);
}

.access-card:has(:focus-visible) {
  outline: 3px solid var(--violet-2);
  outline-offset: 3px;
}

.access-card::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 104px;
  height: 104px;
  border: 14px solid color-mix(in srgb, var(--violet-3) 18%, transparent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 62em) {
  .access-card:nth-child(even) {
    margin-top: 30px;
  }
}

.access-card--violet {
  color: var(--blanc);
  background: linear-gradient(165deg, var(--violet-2), var(--violet));
}

.access-card--cream {
  color: var(--violet);
  background: var(--accent-candidats-fond);
}

.access-card--white {
  color: var(--violet);
  background: var(--blanc);
  border-color: var(--violet);
}

.access-card--lavender {
  color: var(--violet);
  background: var(--accent-concours-fond);
}

.access-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--blanc) 55%, transparent);
  transition: transform 0.25s;
}

.access-card--violet .access-card__icon {
  background: color-mix(in srgb, var(--blanc) 16%, transparent);
}

.access-card:hover .access-card__icon {
  transform: rotate(-6deg) scale(1.06);
}

.access-card__icon .icon {
  width: 28px;
  height: 28px;
}

.access-card__title {
  margin: var(--s5) 0 var(--s2);
  color: inherit;
  font-size: calc(26px * var(--echelle));
  font-weight: 800;
}

.access-card__text {
  margin: 0;
  font-size: calc(15.5px * var(--echelle));
  line-height: 1.5;
}

.access-card--violet .access-card__text {
  color: var(--violet-pale);
}

.access-card--cream .access-card__text,
.access-card--white .access-card__text,
.access-card--lavender .access-card__text {
  color: var(--encre-2);
}

.access-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: auto;
  padding-top: var(--s4);
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: calc(15px * var(--echelle));
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

/* Lien étiré : toute la carte est cliquable. */
.access-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.access-card__go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--blanc);
  background: var(--violet);
  transition: translate 0.2s;
}

.access-card--violet .access-card__go {
  color: var(--violet);
  background: var(--violet-pale);
}

.access-card:hover .access-card__go {
  translate: 4px 0;
}

.access-card__go .icon {
  width: 20px;
  height: 20px;
}

/* ---- Bloc 4 : chiffres clés ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-g);
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.stat-strip__item {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: var(--s5) var(--s5) var(--s4);
  border-right: 1px solid var(--ligne);
}

.stat-strip__item:last-child {
  border-right: 0;
}

.stat-strip__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s5);
  width: 44px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--or-clair);
}

.stat-strip dt {
  font-size: calc(15px * var(--echelle));
  color: var(--encre-2);
}

.stat-strip dd {
  margin: 0;
  font-size: clamp(calc(34px * var(--echelle)), 4vw, calc(54px * var(--echelle)));
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--violet);
}

/* ---- Bloc 5 : le concours ---- */
.home-contest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}

@media (min-width: 62em) {
  .home-contest__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--s8);
  }
}

.home-contest__art {
  position: relative;
  padding: var(--s6) var(--s5) var(--s7);
  border-radius: 40px;
  background:
    radial-gradient(18em 14em at 80% 10%, color-mix(in srgb, var(--accent-votes-fond) 80%, transparent), transparent 70%),
    var(--accent-concours-fond);
}

.home-contest__image {
  display: block;
  width: 100%;
  height: auto;
}

.home-contest__art::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 96px;
  height: 96px;
  border: 10px solid color-mix(in srgb, var(--or-clair) 70%, transparent);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  pointer-events: none;
}

.home-contest__badge {
  position: absolute;
  bottom: var(--s4);
  left: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4) var(--s3) var(--s3);
  border-radius: 18px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.home-contest__badge img {
  border-radius: 50%;
}

.home-contest__badge b {
  display: block;
  font-size: calc(16px * var(--echelle));
  color: var(--violet);
}

.home-contest__badge small {
  font-size: calc(12.5px * var(--echelle));
  color: var(--encre-2);
}

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

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

.virtue__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-candidats-fond);
}

.virtue__icon .icon {
  width: 30px;
  height: 30px;
  animation: home-bob 5s ease-in-out infinite;
}

.virtue:nth-child(2) .virtue__icon .icon {
  animation-delay: -1.6s;
}

.virtue:nth-child(3) .virtue__icon .icon {
  animation-delay: -3.2s;
}

@keyframes home-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.virtue b {
  display: block;
  font-size: calc(16.5px * var(--echelle));
  color: var(--violet);
}

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

/* ---- Bloc 6 : quatre étapes ---- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 12.5%;
  left: 12.5%;
  border-top: 3px dashed color-mix(in srgb, var(--or-clair) 80%, transparent);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step__number {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--violet);
  border-radius: 50%;
  font-size: calc(26px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
  background: var(--blanc);
  box-shadow: 0 0 0 8px var(--fond);
}

.step:first-child .step__number {
  color: var(--blanc);
  background: var(--violet);
}

.step__label {
  margin-top: var(--s3);
  font-size: calc(12px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or-texte);
}

.step__title {
  margin: var(--s1) 0 var(--s2);
  font-size: calc(21px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.step__text {
  max-width: 24ch;
  margin: 0;
  font-size: calc(15px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

/* ---- Bloc 7 : les trois catégories de participation ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17em), 1fr));
  gap: var(--s5);
}

.home-categories__note {
  max-width: 70ch;
  margin-top: var(--s6);
}

.category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: 32px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card--junior {
  background: linear-gradient(180deg, var(--accent-lavande-pale), var(--accent-concours-fond));
}

.category-card--senior {
  background: linear-gradient(180deg, var(--accent-votes-fond), var(--accent-lavande-pale));
}

.category-card__art {
  display: grid;
  place-items: center;
  min-height: 11em;
  background:
    radial-gradient(10em 8em at 50% 40%, var(--blanc), transparent 72%),
    var(--accent-concours-fond);
}

.category-card--junior .category-card__art {
  background:
    radial-gradient(10em 8em at 50% 40%, var(--blanc), transparent 72%),
    var(--accent-votes-fond);
}

.category-card--senior .category-card__art {
  background:
    radial-gradient(10em 8em at 50% 40%, var(--blanc), transparent 72%),
    var(--accent-guides-fond);
}

.category-card__art .icon {
  width: 96px;
  height: 96px;
  animation: home-bob 6s ease-in-out infinite;
}

.category-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s5);
}

.category-card__label {
  font-size: calc(12px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or-texte);
}

.category-card__name {
  margin: var(--s1) 0 var(--s2);
  font-size: calc(30px * var(--echelle));
  font-weight: 800;
  line-height: 1.1;
  color: var(--violet);
}

.category-card__text {
  margin: 0 0 var(--s3);
  font-size: calc(15px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

.category-card__facts {
  display: grid;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
  font-size: calc(14.5px * var(--echelle));
  color: var(--encre);
}

.category-card__facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
}

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

.category-card__tick .icon {
  width: 12px;
  height: 12px;
}

/* ---- Mobile : une colonne, cartes empilées ---- */
@media (max-width: 62em) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip__item:nth-child(2) {
    border-right: 0;
  }

  .stat-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ligne);
  }

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

  .steps::before {
    display: none;
  }

  .access-card {
    min-height: 0;
  }
}

@media (max-width: 36em) {
  .stat-strip,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-strip__item,
  .stat-strip__item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--ligne);
  }

  .stat-strip__item:last-child {
    border-bottom: 0;
  }

  .category-card__art {
    min-height: 8em;
  }

  .home-contest__art {
    padding-bottom: var(--s8);
  }
}

/* Barre de progression de lecture (accueil) : 3 px, violette, en haut de page. */
.read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-skip);
  height: 3px;
  pointer-events: none;
}

.read-progress i {
  display: block;
  height: 100%;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
}

/* Formes d'ambiance des blocs : elles se décalent légèrement au défilement (translate, 20 px au plus, posé par front-reveal.js). */
.home-orb {
  position: absolute;
  z-index: 0;
  width: 30em;
  height: 30em;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  translate: 0 calc(var(--parallax, 0) * 1px);
}

.home-orb--a {
  top: -10em;
  right: -8em;
  background: radial-gradient(circle, var(--accent-votes-fond) 0%, transparent 68%);
}

.home-orb--b {
  bottom: -12em;
  left: -10em;
  background: radial-gradient(circle, var(--accent-bordeaux-pale) 0%, transparent 68%);
}

.home-orb--c {
  top: -8em;
  left: 30%;
  background: radial-gradient(circle, var(--accent-concours-fond) 0%, transparent 68%);
}

.home-block {
  overflow: hidden;
}

.home-block > .container {
  position: relative;
  z-index: 1;
}

.home-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin: var(--s4) 0 0;
  font-size: calc(14.5px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

.home-note .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--violet-2);
}

/* Tracé des étapes (bloc 6) : trait SVG qui se dessine. */
.steps-wrap {
  position: relative;
}

.steps__line {
  position: absolute;
  top: 36px;
  right: 12.5%;
  left: 12.5%;
  width: 75%;
  height: 3px;
  overflow: visible;
  pointer-events: none;
}

.steps__line .dots {
  fill: none;
  stroke: color-mix(in srgb, var(--or-clair) 80%, transparent);
  stroke-width: 3;
  stroke-dasharray: 6 6;
  vector-effect: non-scaling-stroke;
}

.steps__line .mask-path {
  fill: none;
  stroke: var(--blanc);
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
}

.steps::before {
  display: none;
}

/* ---- Bloc 8 : candidater ---- */
.home-apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}

@media (min-width: 62em) {
  .home-apply__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s8);
  }
}

.apply-panel {
  padding: var(--s5);
  border: 1px solid var(--ligne);
  border-radius: 32px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

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

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

.apply-panel__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent-candidats-fond);
}

.apply-panel__icon .icon {
  width: 36px;
  height: 36px;
}

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

.apply-panel__steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: 16px;
  font-size: calc(15.5px * var(--echelle));
  line-height: 1.5;
  color: var(--encre);
  background: var(--fond);
}

.apply-panel__number {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: calc(14px * var(--echelle));
  font-weight: 800;
  color: var(--blanc);
  background: var(--violet);
}

/* ---- Bloc 9 : voter et résultats ---- */
.home-vote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
}

@media (min-width: 62em) {
  .home-vote__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.idea,
.quality {
  padding: var(--s5);
  border: 1px solid var(--ligne);
  border-radius: 28px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
  transition: transform 0.2s;
}

.idea:hover,
.quality:hover {
  transform: translateY(-2px);
}

.idea__icon,
.quality__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s3);
  border-radius: 18px;
  background: var(--accent-concours-fond);
}

.idea__icon .icon,
.quality__icon .icon {
  width: 36px;
  height: 36px;
}

.idea h3,
.quality h3 {
  margin: 0 0 var(--s2);
  font-size: calc(19px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

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

.results-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  border: 1px solid var(--accent-resultats-plein);
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent-lavande-pale) 70%, var(--blanc));
}

.results-card__art {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--accent-concours-fond);
}

.results-card__art img {
  display: block;
  width: min(100%, 15em);
  height: auto;
}

.results-card h3 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  font-size: calc(22px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.results-card h3 .icon {
  width: 26px;
  height: 26px;
}

.results-card__empty {
  margin: 0;
  font-size: calc(18px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
}

.results-card__rule {
  margin: 0;
  font-size: calc(14.5px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

.results-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-top: auto;
}

/* ---- Bloc 10 : le jury ---- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14em), 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-jury__principles {
  max-width: 62ch;
  margin-top: var(--s5);
}

.home-empty {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s4) 0 0;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--accent-resultats-plein);
  border-radius: 14px;
  font-weight: 700;
  color: var(--violet);
  background: var(--blanc);
}

.home-empty .icon {
  width: 20px;
  height: 20px;
}

.home-jury__more {
  margin: var(--s4) 0 0;
}

.home-jury__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
  margin-top: var(--s5);
}

@media (min-width: 62em) {
  .home-jury__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--s8);
  }
}

.home-jury__grid .home-jury__principles {
  margin-top: 0;
}

.home-jury__art {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(14em 10em at 50% 45%, var(--blanc), transparent 75%),
    var(--accent-concours-fond);
}

.home-jury__art img {
  display: block;
  width: min(100%, 24em);
  height: auto;
}

.jury-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr));
  gap: var(--s4);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: 24px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.person-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person-card__photo--none {
  display: grid;
  place-items: center;
  background: var(--accent-concours-fond);
}

.person-card__photo--none .icon {
  width: 48px;
  height: 48px;
}

.person-card__body {
  padding: var(--s3) var(--s4) var(--s4);
}

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

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

/* ---- Bloc 11 : les guides ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22em), 1fr));
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s5);
  align-items: center;
  padding: var(--s5);
  border: 1px solid var(--ligne);
  border-radius: 32px;
  background: var(--blanc);
  box-shadow: var(--ombre-carte);
}

.guide-card__cover {
  perspective: 700px;
}

.guide-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--violet) 55%, transparent);
  transition: transform 0.3s ease-out, box-shadow 0.3s;
}

@media (hover: hover) {
  .guide-card:hover .guide-card__cover img {
    transform: rotateY(-3deg) translateY(-3px);
    box-shadow: 0 26px 40px -18px color-mix(in srgb, var(--violet) 65%, transparent);
  }

  @media (prefers-reduced-motion: reduce) {
    .guide-card:hover .guide-card__cover img {
      transform: none;
    }
  }

  html[data-motion="reduced"] .guide-card:hover .guide-card__cover img {
    transform: none;
  }
}

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

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

@media (max-width: 36em) {
  .guide-card {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: var(--s4);
    padding: var(--s4);
  }

  .steps__line {
    display: none;
  }
}

@media (max-width: 62em) {
  .steps__line {
    display: none;
  }
}


/* ==========================================================================================================================
   Blocs 12 à 17 de l'accueil (lot L3b3) : mises en page libres, SANS carte blanche ombrée (texte sur fond, grandes images, rangées,
   bande pleine largeur, citation typographique). Fonds alternés (clair, lavis, clair, lavis, bande lavis, bande violette). Aucun or
   sur un bouton, aucun halo doré. Chaque emplacement d'image (data-image-slot) est listé dans docs/emplacements-images.md.
   ========================================================================================================================== */

/* ---- Bloc 12 : la Fondation ---- */
.home-foundation__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}

@media (min-width: 62em) {
  .home-foundation__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--s8);
  }
}

.home-foundation__art {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 36px;
  background:
    radial-gradient(18em 12em at 50% 45%, var(--blanc), transparent 75%),
    var(--accent-votes-fond);
}

.home-foundation__art img {
  display: block;
  width: min(100%, 28em);
  height: auto;
}

.home-foundation__text .home-lead + .home-lead {
  margin-top: var(--s3);
}

.home-foundation__link {
  margin: var(--s5) 0 0;
}

/* ---- Bloc 13 : actualités ---- */
.news-flag {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: calc(12.5px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--accent-votes-fond);
}

.news-flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

/* Étiquette « Le concours expliqué » : texte violet sur lavis, sans or. */
.news-tag {
  display: inline-block;
  margin-bottom: 2px;
  font-size: calc(12.5px * var(--echelle));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.news-flags .news-tag {
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-concours-fond);
}

.news-date {
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  color: var(--encre-2);
}

/* État vide honnête (actualités, témoignages) : grande illustration et une phrase, sans carte. */
.home-void {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s6);
}

.home-void__art {
  flex: 0 1 22em;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(14em 10em at 50% 45%, var(--blanc), transparent 75%),
    var(--accent-concours-fond);
}

.home-void__art img {
  display: block;
  width: 100%;
  height: auto;
}

/* État vide des actualités : l'illustration occupe toute la largeur, la phrase est dessous. */
.home-void__text {
  margin: 0;
  font-size: calc(22px * var(--echelle));
  font-weight: 800;
  color: var(--violet);
}

.home-void__invite {
  margin: var(--s2) 0 var(--s4);
  font-size: calc(16px * var(--echelle));
  color: var(--encre-2);
}

/* ---- Bloc 14 : galerie (mosaïque de sept emplacements, zoom de 3 % au survol) ---- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 9em;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 11em;
    gap: var(--s4);
  }

  .mosaic__item--1 {
    grid-row: span 2;
  }
}

.mosaic__item {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(12em 9em at 50% 45%, var(--blanc), transparent 78%),
    var(--accent-concours-fond);
}

.mosaic__item--1,
.mosaic__item--4,
.mosaic__item--6 {
  grid-column: span 2;
}

.mosaic__item:nth-child(even) {
  background:
    radial-gradient(12em 9em at 50% 45%, var(--blanc), transparent 78%),
    var(--accent-votes-fond);
}

.mosaic__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* illustrations du kit entières ; les vraies photos passeront en cover avec le composant d'image */
  transition: scale 0.4s ease-out;
}

@media (hover: hover) {
  .mosaic__item:hover img {
    scale: 1.03;
  }

  @media (prefers-reduced-motion: reduce) {
    .mosaic__item:hover img {
      scale: 1;
    }
  }

  html[data-motion="reduced"] .mosaic__item:hover img {
    scale: 1;
  }
}

/* ---- Bloc 15 : les mots du concours (citation en grand format typographique) ---- */
.quotes {
  max-width: none;
}

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

.quote + .quote {
  margin-top: var(--s7);
}

/* Portrait vertical 3:4 à gauche, citation à droite ; sur mobile le portrait passe au-dessus. */
.quote figure {
  display: grid;
  grid-template-columns: minmax(0, 14em) minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
  margin: 0;
}

.quote blockquote {
  position: relative;
  margin: 0;
  padding-left: var(--s7);
}

.quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.15em;
  left: 0;
  font-size: calc(72px * var(--echelle));
  font-weight: 800;
  line-height: 1;
  color: var(--violet-3);
  opacity: 0.45;
}

.quote blockquote p {
  margin: 0;
  font-size: clamp(calc(21px * var(--echelle)), 2.6vw, calc(32px * var(--echelle)));
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--violet);
  text-wrap: pretty;
}

.quote figcaption {
  display: grid;
  gap: 2px;
  margin-top: var(--s5);
  padding-left: var(--s7);
  font-size: calc(15px * var(--echelle));
  line-height: 1.4;
  color: var(--encre-2);
}

.quote figcaption b {
  font-size: calc(17px * var(--echelle));
  color: var(--violet);
}

.quote__portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background:
    radial-gradient(9em 9em at 50% 42%, var(--blanc), transparent 72%),
    var(--accent-concours-fond);
}

.quote__portrait .icon {
  width: 96px;
  height: 96px;
}

@media (max-width: 48em) {
  .quote figure {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }

  .quote__portrait {
    width: min(11em, 60%);
  }
}

.quotes.is-ready .quote.is-current {
  animation: quote-in 0.5s ease-out;
}

@keyframes quote-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Bureau : les flèches s'alignent sous la citation (colonne du portrait + écart + retrait de la citation) ; mobile : centrées. */
.quotes__controls {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s5);
  margin-left: calc(14em + var(--s7) + var(--s7));
}

@media (max-width: 48em) {
  .quotes__controls {
    justify-content: center;
    margin-left: 0;
  }
}

.quotes__controls[hidden] {
  display: none;
}

.quotes__counter {
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  color: var(--encre-2);
}

/* ---- Bloc 16 : partenariat (bande pleine largeur à fond lavis, rangée de six emplacements de logos) ---- */
.home-band {
  background: var(--accent-concours-fond);
}

.nowrap {
  white-space: nowrap;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: var(--s3);
  border: 1px solid color-mix(in srgb, var(--violet-3) 28%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(7em 5em at 50% 45%, var(--blanc), transparent 75%),
    var(--accent-votes-fond);
  text-align: center;
  color: var(--violet);
  transition: translate 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .logo-slot:hover {
    translate: 0 -3px;
    box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--violet) 40%, transparent);
  }
}

/* « Pourquoi devenir partenaire ? » : titre en question, deux phrases, trois raisons en liste simple (numéro et phrase, aucune carte). */
.why {
  max-width: 62rem;
  margin-bottom: var(--s7);
}

.why__title {
  margin: 0;
  font-size: calc(26px * var(--echelle));
  font-weight: 800;
  line-height: 1.2;
  color: var(--violet);
}

.why__intro {
  max-width: 68ch;
  margin: var(--s3) 0 0;
  font-size: calc(16px * var(--echelle));
  line-height: 1.6;
  color: var(--encre-2);
}

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

.why__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  font-size: calc(17px * var(--echelle));
  font-weight: 600;
  line-height: 1.45;
  color: var(--violet);
}

.why__number {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: calc(15px * var(--echelle));
  font-weight: 800;
  color: var(--blanc);
  background: var(--violet);
}

.logo-slot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-slot .icon {
  width: 44px;
  height: 44px;
}

/* ---- Bloc 17 : appel final (bande violette, texte clair ; aucun formulaire de lettre d'information) ---- */
@media (max-width: 36em) {
  .quote blockquote,
  .quote figcaption {
    padding-left: 0;
  }

  .quote blockquote::before {
    position: static;
    display: block;
    height: 0.5em;
  }
}

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

@media (max-width: 36em) {
  .newsletter__submit {
    width: 100%;
  }
}


/* ==========================================================================================================================
   Lot L3b6 : moins de cadres (blocs 9 à 17), actualités en liste, portrait agrandi, bloc 17 clair en deux colonnes, défilement horizontal
   sur mobile. Les héros et les blocs 3 à 8 ne changent pas d'apparence.
   Principe « sans cadre » : ni ombre portée, ni bordure, ni carte blanche ; les éléments reposent sur le fond de la section ; séparation par
   l'espace, par un fin filet en dégradé (fond, pas bordure) ou par un lavis de forme douce ; images fondues par un masque aux bords.
   ========================================================================================================================== */

/* Bords adoucis : l'image ou l'illustration se fond dans le fond de la section. */
.results-card__art,
.home-jury__art,
.home-foundation__art,
.news-item__thumb {
  -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%);
  border-radius: 0;
}

/* ---- Bloc 9 : idées et panneau « Résultats » sans cadre ---- */
.idea,
.quality {
  position: relative;
  padding: var(--s5) 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.idea::before,
.quality::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--violet-3) 55%, transparent), transparent);
}

.idea:hover,
.quality:hover {
  transform: none;
}

.results-card {
  border: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-votes-fond) 75%, transparent), color-mix(in srgb, var(--accent-lavande-pale) 40%, transparent) 70%, transparent);
}

/* ---- Bloc 10 : portraits ronds, nom et rôle sur le fond, état vide fondu ---- */
.home-empty {
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-votes-fond) 75%, transparent);
}

.person-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}

.person-card__photo {
  width: min(100%, 10em);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
}

.person-card__body {
  padding: var(--s3) 0 0;
}

/* ---- Bloc 11 : guides sur le fond ; une seule ombre, minimale, sous la couverture (volume du livre) ---- */
.guide-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.guide-card__cover img {
  box-shadow: 0 8px 14px -10px color-mix(in srgb, var(--violet) 45%, transparent);
}

/* ---- Bloc 13 : actualités en liste (deux colonnes dès 1024 px), petite image à gauche, texte à droite ---- */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5) var(--s8);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.news-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}

@media (min-width: 48em) {
  .news-item {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: var(--s5);
  }
}

.news-item__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(closest-side, var(--blanc), transparent),
    var(--accent-concours-fond);
}

.news-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-item__labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  margin-bottom: var(--s2);
}

.news-item__labels:empty {
  display: none;
}

.news-item__labels .news-tag {
  margin: 0;
}

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

.news-item__title a {
  color: inherit;
  text-decoration: none;
}

.news-item__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: var(--s2) 0 0;
  overflow: hidden;
  font-size: calc(15px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

.news-item--empty {
  align-items: center;
}

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

.news-grid + .home-actions,
.news-item--empty + .home-actions {
  margin-top: var(--s6);
}

/* ---- Blocs 12, 14, 15, 16 : ce qui reste est fondu ou a déjà un seul relief ---- */
.logo-slot {
  border: 0;
  background:
    radial-gradient(closest-side, var(--blanc), transparent),
    var(--accent-votes-fond);
}

.quote__portrait {
  background:
    radial-gradient(closest-side, var(--blanc), transparent),
    var(--accent-concours-fond);
}

/* ---- Bloc 15 : portrait agrandi (40 % du bloc, 420 px au plus), citation réduite (60 caractères de large au plus) ---- */
.quote figure {
  grid-template-columns: minmax(0, min(40%, 420px)) minmax(0, 1fr);
  gap: var(--s7);
}

.quote blockquote p {
  max-width: 60ch;
  font-size: clamp(calc(16.8px * var(--echelle)), 1.6vw, calc(21.6px * var(--echelle)));
  font-weight: 600;
  line-height: 1.65;
}

.quote blockquote::before {
  font-size: calc(54px * var(--echelle));
}

.quotes__controls {
  margin-left: calc(min(40%, 420px) + var(--s7) + var(--s7));
}

@media (max-width: 48em) {
  .quote figure {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }

  .quote__portrait {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .quotes__controls {
    margin-left: 0;
  }
}

/* ---- Bloc 17 : deux colonnes sur fond clair (lavis lavande très pâle, une forme douce de jaune pâle), aucun aplat violet ---- */
.home-final {
  position: relative;
  padding-block: clamp(3em, 7vw, 5.5em);
  color: var(--violet);
  background: var(--accent-lavande-pale);
}

.home-final::before {
  content: "";
  position: absolute;
  top: -8em;
  right: -6em;
  width: 17em;
  height: 17em;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background: var(--accent-candidats-fond);
  opacity: 0.75;
  pointer-events: none;
}

.home-final__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s7);
  align-items: start;
}

@media (min-width: 56.25em) {
  .home-final__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s9);
  }

  /* Fin filet vertical entre les deux colonnes (dégradé de fond, pas une bordure). */
  .home-final__news {
    position: relative;
  }

  .home-final__news::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--s9) / -2);
    width: 1px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--violet-3) 55%, transparent) 20%, color-mix(in srgb, var(--violet-3) 55%, transparent) 80%, transparent);
  }
}

.home-final__title {
  margin: 0;
  font-size: clamp(calc(28px * var(--echelle)), 3.6vw, calc(44px * var(--echelle)));
  font-weight: 800;
  line-height: 1.1;
  color: var(--violet);
  text-wrap: balance;
}

.home-final__lead {
  max-width: 40ch;
  margin: var(--s4) 0 0;
  font-size: calc(18px * var(--echelle));
  line-height: 1.55;
  color: var(--encre-2);
}

.home-final__actions {
  align-items: center;
  gap: var(--s5);
}

/* Lettre d'information (composant front.newsletter-form) : champs et textes sombres sur fond clair, aucune carte, aucune ombre. */
.newsletter {
  max-width: 36rem;
  scroll-margin-top: 96px;
}

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

.newsletter__lead {
  margin: var(--s2) 0 var(--s4);
  font-size: calc(16px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

.newsletter__status:empty {
  display: none;
}

.newsletter__notice,
.newsletter__error {
  margin: var(--s2) 0 0;
  padding: var(--s2) var(--s3);
  border-radius: 8px;
  font-size: calc(15px * var(--echelle));
  font-weight: 600;
  line-height: 1.4;
}

.newsletter__notice--ok {
  margin-bottom: var(--s3);
  color: var(--succes);
  background: var(--succes-pale);
}

.newsletter__error {
  color: var(--erreur);
  background: var(--erreur-pale);
}

.newsletter__field {
  min-width: 0;
}

.newsletter__label {
  display: block;
  margin-bottom: var(--s1);
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  color: var(--violet);
}

/* Le champ garde un contour : c'est une commande (contraste de 3:1 au moins exigé pour sa limite, WCAG 1.4.11). */
.newsletter__input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 var(--s3);
  border: 2px solid var(--violet-2);
  border-radius: 8px;
  font: inherit;
  font-size: calc(16px * var(--echelle));
  color: var(--violet);
  background: var(--blanc);
}

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

.newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-top: var(--s4);
  font-size: calc(15px * var(--echelle));
  line-height: 1.45;
  color: var(--encre);
}

.newsletter__check {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--violet);
}

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

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

/* Champ piège : hors écran, jamais vu ni tabulé, ignoré des lecteurs d'écran (aria-hidden sur le conteneur). */
.newsletter__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter__legal {
  display: grid;
  gap: var(--s1);
  justify-items: start;
  margin: var(--s4) 0 0;
  font-size: calc(14px * var(--echelle));
  line-height: 1.5;
  color: var(--encre-2);
}

/* Lien repéré par un filet (comme .home-link), pas par un soulignement. */
.newsletter__legal a {
  border-bottom: 2px solid var(--or-clair);
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
}

/* Défilement horizontal natif (composant front.hscroll) : règles COMMUNES dans front-hscroll.css (chargé par l'accueil et par les pages qui défilent). Ici :
   seulement ce qui est propre à l'accueil (cartes de guides). */
@media (max-width: 47.99em) {
  /* Guides : élément VERTICAL, couverture en haut (60 % de la largeur de l'élément), titre, description de trois lignes au plus, lien. */
  .hscroll .guide-card {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    align-items: center;
    padding: 0;
    text-align: center;
  }

  .hscroll .guide-card__cover {
    width: 60%;
  }

  .hscroll .guide-card__cover img {
    width: 100%;
    height: auto;
  }

  .hscroll .guide-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hscroll .guide-card__body h3 {
    margin: 0 0 var(--s2);
    font-size: calc(19px * var(--echelle));
  }

  .hscroll .guide-card__body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin: 0 0 var(--s3);
    overflow: hidden;
    font-size: calc(14px * var(--echelle));
    line-height: 1.5;
  }

  .hscroll .guide-card .home-link {
    align-items: center;
    min-height: 40px;
  }
}

/* ---- Bloc 15 : le portrait REMPLIT son cadre (pictogramme de personne à 78 % de la largeur, posé sur une forme douce), bords fondus ---- */
.quote__portrait {
  position: relative;
  border-radius: 0;
  background: radial-gradient(ellipse closest-side at 50% 50%, var(--accent-concours-fond) 64%, transparent 100%);
}

.quote__portrait::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blanc) 72%, transparent);
  transform: translate(-50%, -50%);
}

.quote__portrait .icon {
  position: relative;
  width: 60%;
  height: auto;
  aspect-ratio: 1;
}

/* ---- Bloc 13 : illustrations plus grandes dans leur cadre 4:3, un lavis doux DIFFÉRENT par entrée, moins de blanc entre les colonnes ---- */
.news-grid {
  gap: var(--s5) var(--s6);
}

@media (min-width: 48em) {
  .news-item {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  }
}

.news-item__thumb {
  background: var(--news-tint, var(--accent-concours-fond));
}

.news-item__thumb img {
  transform: scale(1.14);
}

.news-item:nth-child(6n + 1) {
  --news-tint: var(--accent-concours-fond);
}

.news-item:nth-child(6n + 2) {
  --news-tint: var(--accent-votes-fond);
}

.news-item:nth-child(6n + 3) {
  --news-tint: var(--accent-guides-fond);
}

.news-item:nth-child(6n + 4) {
  --news-tint: var(--accent-candidats-fond);
}

.news-item:nth-child(6n + 5) {
  --news-tint: var(--accent-bordeaux-pale);
}

.news-item:nth-child(6n + 6) {
  --news-tint: var(--info-pale);
}

/* ---- Bloc 9 : panneau « Résultats » net : lavis uni de la rubrique (votes), coins arrondis, illustration sans masque ---- */
.results-card {
  border-radius: 28px;
  background: var(--accent-votes-fond);
}

.results-card__art {
  -webkit-mask-image: none;
  mask-image: none;
  background: none;
}

/* ---- Transition bloc 16 (bande lavis) vers bloc 17 (fond plus pâle) : courbe douce de 40 px, pas de cassure nette ---- */
.home-band {
  position: relative;
  z-index: 1;
  border-radius: 0 0 50% 50% / 0 0 40px 40px;
}

.home-final {
  margin-top: -40px;
  padding-top: calc(clamp(3em, 7vw, 5.5em) + 40px);
}

/* ---- Lot L5e : le bandeau de chiffres s'adapte au nombre de chiffres réels (les valeurs nulles disparaissent, aucun trou) ---- */
.stat-strip--count-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 20rem;
}

.stat-strip--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 44rem;
}

.stat-strip--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 47.99em) {
  .stat-strip--count-2,
  .stat-strip--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip--count-1 .stat-strip__item,
  .stat-strip--count-1 .stat-strip__item:nth-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ==========================================================================================================================
   Lot L5f3 : section des guides remise à plat. CAUSE du défaut mobile : la liste portait la classe .guide-grid (display: grid, colonnes minmax(min(100%, 22em), 1fr)) ;
   cette règle, chargée après front-hscroll.css, l'emportait sur le display: flex de .hscroll > * ; la liste, en width: max-content, calculait alors ses colonnes
   de 22 em sur elle-même et la première carte démarrait loin du bord. Désormais : 3 guides au plus (config guides_grid_max) = GRILLE sans défilement ;
   au-delà = défilement avec accroche (.guide-strip, classe distincte de la grille). Couverture au ratio d'origine, bornée, centrée dans sa colonne.
   ========================================================================================================================== */
.guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  min-width: 0;
  text-align: center;
}

.guide-card .guide-card__cover {
  width: min(100%, 180px);
  max-width: 100%;
}

.guide-card .guide-card__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 679;
  object-fit: cover;
}

.guide-card .guide-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.guide-card .guide-card__body h3 {
  margin: 0 0 var(--s1);
  font-size: calc(19px * var(--echelle));
}

.guide-card .guide-card__pages {
  display: block;
  margin: 0 0 var(--s3);
  overflow: visible;
  font-size: calc(14px * var(--echelle));
  font-weight: 700;
  color: var(--encre-2);
}

.guide-grid--static {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6) var(--s4);
  align-items: start;
}

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

@media (max-width: 47.99em) {
  .hscroll .guide-strip > .guide-card {
    flex: 0 0 min(calc((100vw - 2 * var(--s4)) * 0.7), 280px);
  }

  .hscroll .guide-strip .guide-card__cover {
    width: min(100%, 180px);
  }
}

@media (min-width: 48em) {
  .guide-card .guide-card__cover {
    width: min(100%, 280px);
  }

  .guide-card .guide-card__body h3 {
    font-size: calc(22px * var(--echelle));
  }

  .guide-grid--static {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6) var(--s8);
    max-width: 62rem;
    margin-inline: auto;
  }

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

  .guide-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s6) var(--s8);
  }

  .guide-strip > .guide-card {
    flex: 0 1 280px;
  }
}

/* ==========================================================================================================================
   Lot L5g : bandeau « Trois catégories » (bloc 4). Trois cartes égales : pictogramme du kit, étiquette, nom et tranche d'âge ; une colonne sur mobile (pictogramme à gauche),
   trois colonnes égales dès 768 px. Aucune ombre, aucun hex, tailles de texte suivant le réglage A / A+.
   ========================================================================================================================== */
.trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trio__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "art label"
    "art name"
    "art age";
  column-gap: var(--s4);
  align-items: center;
  padding: var(--s4) var(--s5);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-g);
}

.trio__art {
  grid-area: art;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
}

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

.trio__label {
  grid-area: label;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--encre-2);
}

.trio__name {
  grid-area: name;
  margin: 0;
  font-size: calc(26px * var(--echelle));
  font-weight: 800;
  line-height: 1.15;
  color: var(--violet);
}

.trio__age {
  grid-area: age;
  margin: var(--s1) 0 0;
  font-size: var(--fs-base);
  color: var(--encre);
}

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

  .trio__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "art"
      "label"
      "name"
      "age";
    justify-items: center;
    padding: var(--s6) var(--s4);
    text-align: center;
  }

  .trio__art {
    width: 6rem;
    height: 6rem;
    margin-bottom: var(--s3);
  }
}
