/* =====================================================================
   CJE — Prix du Mérite Denis SASSOU-N'GUESSO
   Feuille de style unique, « mobile d'abord », sans dépendance externe.
   ===================================================================== */

/* Polices (licence OFL), réduites aux caractères utiles :
   Figtree pour le texte (≈ 17 Ko), Archivo étroit pour les titres (≈ 21 Ko). */
@font-face {
  font-family: "Figtree Texte"; src: url("../fonts/figtree-texte.826e276a34c9.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Affiche"; src: url("../fonts/archivo-affiche.ae62eb9a714b.woff2") format("woff2");
  font-weight: 600 900; font-style: normal; font-display: swap;
}

:root {
  --vert-900: #10290a;
  --vert-800: #183d0f;
  --vert-700: #2b6418;
  --vert-600: #3a7a20;
  --vert-500: #5e9a2a;
  --vert-100: #e7f1dc;
  --vert-50: #f3f8ed;
  --jaune-500: #f2c200;
  --jaune-400: #ffd640;
  --jaune-100: #fff5c7;
  --rouge-600: #a51417;
  --rouge-500: #c0191b;
  --rouge-100: #fce7e7;
  --bleu-600: #1d5aa0;
  --bleu-100: #e5eefa;
  --or-700: #8a6400;

  --encre: #162012;
  --texte: #283124;
  --texte-doux: #586453;
  --bord: #dce3d6;
  --fond: #ffffff;
  --fond-doux: #f6f7f2;

  --rayon: 4px;
  --rayon-petit: 4px;
  --ombre: 0 1px 2px rgba(16, 41, 10, .06), 0 4px 16px rgba(16, 41, 10, .06);
  --ombre-forte: 0 10px 30px rgba(16, 41, 10, .14);
  --police-systeme: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --police: "Figtree Texte", var(--police-systeme);
  --police-affiche: "Archivo Affiche", "Arial Narrow", var(--police-systeme);
  --h-entete: 68px;
  --largeur: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--police); font-size: 1.0625rem; line-height: 1.6;
  color: var(--texte); background: var(--fond);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1, h2 { font-family: var(--police-affiche); font-weight: 850; line-height: 1.02; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--vert-700); text-underline-offset: 2px; }
a:hover { color: var(--vert-900); }
:focus-visible { outline: 3px solid var(--jaune-500); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--bord); margin: 2rem 0; }
small, .petit { font-size: .875rem; }
.doux { color: var(--texte-doux); }
.centre { text-align: center; }
.insecable { white-space: nowrap; }
@media (max-width: 599px) { .hors-mobile { display: none; } }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--jaune-500); color: var(--encre);
  padding: .6rem 1rem; border-radius: var(--rayon-petit); font-weight: 700; text-decoration: none;
}
.lien-evitement:focus { top: 8px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.conteneur--etroit { max-width: 780px; }
.section { padding: 48px 0; }
.section--doux { background: var(--fond-doux); }
.section--verte { background: var(--vert-50); }
.surtitre {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: .6rem;
  font-size: .95rem; font-weight: 750; color: var(--rouge-600);
}
.surtitre::before { content: ""; width: 22px; height: 4px; background: var(--jaune-500); transform: skewX(-35deg); }
.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; }
.entete-section h2 { margin: 0; }
.chapeau { font-size: 1.125rem; color: var(--texte-doux); max-width: 62ch; }

/* Bandeau du site de démonstration */
.bandeau-demo { margin: 0; padding: 6px 16px; background: var(--encre); color: rgba(255, 255, 255, .85); font-size: .8rem; text-align: center; line-height: 1.4; }
.bandeau-demo strong { color: var(--jaune-500); }
/* Sur ordinateur, le bandeau a une hauteur fixe : l'ouverture de l'accueil en tient compte */
@media (min-width: 900px) {
  .avec-demo { --h-demo: 30px; }
  .bandeau-demo { height: var(--h-demo); padding: 0 16px; line-height: var(--h-demo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- En-tête : une seule ligne ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--bord); color: var(--encre); }
.entete__barre { display: flex; align-items: center; gap: 16px; min-height: var(--h-entete); }
.marque { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; }
.marque__logo { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: #fff; }
.marque__logo img { width: 38px; height: 34px; object-fit: contain; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.05; }
.marque__nom { font-family: var(--police-affiche); font-weight: 850; font-size: 1.35rem; white-space: nowrap; }
.marque__sous { margin-top: 3px; font-size: .74rem; font-weight: 600; opacity: .78; white-space: nowrap; }
.marque:hover { color: inherit; }
.nav { display: none; }
.entete__actions { display: flex; align-items: center; gap: 8px; }
.entete__compte { display: none; align-items: center; gap: 8px; padding: 8px 4px; color: inherit; font-weight: 650; font-size: .95rem; text-decoration: none; }
.entete__compte svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.entete__compte:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.entete .entete__cta { display: none; }
.menu-bouton {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: var(--vert-900); color: #fff; cursor: pointer;
}
.menu-bouton__traits { display: grid; gap: 5px; width: 20px; }
.menu-bouton__traits span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.menu-bouton__traits span:nth-child(2) { width: 70%; justify-self: end; }

/* Page avec grande photo : en-tête collant et transparent, posé sur la photo (la page remonte
   sous lui) ; il devient une barre blanche dès que l'on fait défiler (script). */
.entete--sur-photo { background: transparent; box-shadow: none; color: #fff; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.entete--sur-photo ~ main { margin-top: calc(-1 * var(--h-entete)); }
/* Messages (ex. « Merci, votre message est envoyé ») : posés sur la photo, sous l'en-tête */
.entete--sur-photo ~ main > .conteneur:first-child { position: absolute; z-index: 45; left: 0; right: 0; top: calc(var(--h-entete) + 12px); }
.entete--sur-photo .menu-bouton { background: rgba(255, 255, 255, .18); transition: background-color .3s ease; }
.entete--sur-photo.est-fixe { background: rgba(255, 255, 255, .97); color: var(--encre); box-shadow: 0 6px 24px rgba(11, 33, 8, .12); }
.entete--sur-photo.est-fixe .menu-bouton { background: var(--vert-900); }

@media (min-width: 1080px) {
  :root { --h-entete: 80px; }
  .nav { display: block; margin: 0 auto; }
  .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
  .nav a { position: relative; display: block; padding: 10px 12px; color: inherit; font-weight: 650; font-size: .98rem; text-decoration: none; }
  .nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; background: var(--jaune-500);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .marque { margin-right: 0; }
  .entete__compte, .entete .entete__cta { display: inline-flex; }
  .menu-bouton { display: none; }
}

/* Menu plein écran (mobile) */
.menu-mobile {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto;
  background: #0b2108; color: #fff; animation: menu-ouverture .45s cubic-bezier(.6, .05, .2, 1) both;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile::after {
  content: ""; position: fixed; right: 0; bottom: 0; width: 100%; height: 22%; pointer-events: none;
  background: linear-gradient(160deg, transparent 0 38%, var(--jaune-500) 38% 44%, var(--rouge-500) 44% 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .95;
}
.menu-mobile__haut { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: var(--h-entete); }
.marque--claire { color: #fff; }
.menu-fermer {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--jaune-500); color: var(--encre); cursor: pointer;
}
.menu-fermer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.menu-mobile nav, .menu-mobile__bas { position: relative; z-index: 1; }
.menu-mobile__liens { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.menu-mobile__liens a {
  display: inline-block; padding: 5px 0; color: #fff; text-decoration: none;
  font-family: var(--police-affiche); font-weight: 850; font-size: clamp(2.1rem, 1.5rem + 3vw, 2.8rem); line-height: 1.05;
}
.menu-mobile__liens a[aria-current="page"] { color: var(--jaune-500); }
.menu-mobile__liens li { animation: entree-menu .5s cubic-bezier(.2, .7, .2, 1) both; }
.menu-mobile__liens li:nth-child(2) { animation-delay: .04s; }
.menu-mobile__liens li:nth-child(3) { animation-delay: .08s; }
.menu-mobile__liens li:nth-child(4) { animation-delay: .12s; }
.menu-mobile__liens li:nth-child(5) { animation-delay: .16s; }
.menu-mobile__liens li:nth-child(6) { animation-delay: .2s; }
.menu-mobile__liens li:nth-child(7) { animation-delay: .24s; }
.menu-mobile__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-bottom: 40px; }
.menu-mobile__bas form { margin: 0; }
.menu-mobile__lien { color: #fff !important; }
.menu-mobile__contact { flex-basis: 100%; color: rgba(255, 255, 255, .85); font-weight: 600; }
html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
@keyframes menu-ouverture { from { clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes entree-menu { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (min-width: 1080px) { .menu-mobile { display: none !important; } }

/* ---------- En-tête « journal » (essai) : barre du haut, logo centré, menu en dessous ---------- */
.avec-entete-journal { --h-journal: 98px; }  /* mobile : barre 38 + logo 60 */
.barre-haut { background: var(--vert-700); color: #fff; font-size: .82rem; }
.barre-haut__ligne { display: flex; align-items: stretch; height: 38px; }
.barre-haut__reseaux { display: flex; }
.barre-haut__reseaux a {
  display: flex; align-items: center; justify-content: center; width: 38px; color: #fff;
  border-left: 1px solid rgba(255, 255, 255, .2); transition: background-color .2s;
}
.barre-haut__reseaux a:last-child { border-right: 1px solid rgba(255, 255, 255, .2); }
.barre-haut__reseaux a:hover { background: rgba(0, 0, 0, .18); }
.barre-haut__reseaux svg { width: 15px; height: 15px; fill: currentColor; }
.barre-haut__info { display: none; align-items: center; margin: 0 0 0 auto; padding: 0 16px; font-weight: 650; border-left: 1px solid rgba(255, 255, 255, .2); }
.barre-haut__cta { display: none; align-items: center; padding: 0 16px; background: var(--jaune-500); color: var(--encre); font-weight: 800; text-decoration: none; }
.barre-haut__cta:hover { background: var(--jaune-400); color: var(--encre); }
.barre-haut__compte {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; padding: 0 14px;
  background: #0b2108; color: #fff; font-weight: 700; text-decoration: none;
}
.barre-haut__compte:hover { background: #000; color: #fff; }
.barre-haut__compte svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.barre-haut__compte span { display: none; }

.entete-journal { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--bord); }
.entete-journal__ligne { position: relative; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.entete-journal__marque { display: flex; align-items: center; gap: 12px; color: var(--vert-900); text-decoration: none; }
.entete-journal__marque:hover { color: var(--vert-900); }
.entete-journal__marque img { width: 42px; height: 38px; object-fit: contain; }
.entete-journal__nom { display: block; font-family: var(--police-affiche); font-weight: 900; font-size: 1.4rem; line-height: .95; color: var(--vert-800); }
.entete-journal__sous { display: block; margin-top: 3px; font-size: .7rem; font-weight: 650; color: var(--texte-doux); }
.menu-journal { display: none; }

@media (min-width: 700px) {
  .barre-haut__info, .barre-haut__cta { display: flex; }
  .barre-haut__compte { margin-left: 0; }
  .barre-haut__compte span { display: inline; }
}
@media (min-width: 1080px) {
  .avec-entete-journal { --h-journal: 162px; }  /* barre 38 + logo 78 + menu 46 */
  .entete-journal { position: static; box-shadow: none; }
  .entete-journal__ligne { justify-content: center; height: 78px; }
  .entete-journal__marque { gap: 12px; }
  .entete-journal__marque img { width: 52px; height: 47px; }
  .entete-journal__nom { font-size: 1.9rem; }
  .entete-journal__sous { font-size: .76rem; }
  .entete-journal__menu { display: none; }
  .menu-journal {
    display: block; position: sticky; top: 0; z-index: 50; background: #fff;
    border-top: 1px dashed #cfd6c9; border-bottom: 1px solid var(--bord); box-shadow: 0 6px 18px rgba(11, 33, 8, .06);
  }
  .menu-journal ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--largeur); display: flex; justify-content: center; }
  .menu-journal li { border-left: 1px solid var(--bord); }
  .menu-journal li:last-child { border-right: 1px solid var(--bord); }
  .menu-journal a {
    position: relative; display: block; padding: 11px 18px; color: var(--encre); text-decoration: none;
    font-weight: 750; font-size: .84rem; line-height: 22px; text-transform: uppercase; letter-spacing: .03em;
  }
  .menu-journal a::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--jaune-500);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .menu-journal a:hover::after, .menu-journal a[aria-current="page"]::after { transform: scaleX(1); }
  .menu-journal a[aria-current="page"] { color: var(--vert-700); }
}

/* Avec cet en-tête, les grandes photos commencent sous le menu (pas d'en-tête posé dessus) */
.avec-entete-journal .bandeau-page--photo { padding-top: 36px; min-height: clamp(220px, 24vw, 310px); }

/* Bascule d'aperçu des en-têtes (?entete=journal|photo) */
.bascule-entete {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--encre); box-shadow: var(--ombre-forte); font-size: .85rem; border-radius: 999px;
}
.bascule-entete span { color: rgba(255, 255, 255, .7); padding: 0 8px 0 10px; font-weight: 600; }
.bascule-entete a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 750; }
.bascule-entete a[aria-current="true"] { background: var(--jaune-500); color: var(--encre); }

/* ---------- Boutons : coin coupé en diagonale (pleins), cadre droit (contours) ---------- */
.bouton {
  --coin-bouton: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 0; font: inherit; font-weight: 750; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  clip-path: polygon(0 0, calc(100% - var(--coin-bouton)) 0, 100% var(--coin-bouton), 100% 100%, 0 100%);
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; border-radius: 0; }
.bouton--primaire { background: var(--vert-700); color: #fff; }
.bouton--primaire:hover { background: var(--vert-800); color: #fff; }
.bouton--cta { background: var(--jaune-500); color: var(--encre); }
.bouton--cta:hover { background: var(--jaune-400); color: var(--encre); }
.bouton--secondaire, .bouton--clair, .bouton--danger { clip-path: none; background: transparent; }
.bouton--secondaire { color: var(--vert-800); box-shadow: inset 0 0 0 2px var(--vert-700); }
.bouton--secondaire:hover { background: var(--vert-700); color: #fff; }
.bouton--clair { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.bouton--clair:hover { background: #fff; color: var(--encre); }
.bouton--danger { color: var(--rouge-600); box-shadow: inset 0 0 0 2px var(--rouge-500); }
.bouton--danger:hover { background: var(--rouge-100); color: var(--rouge-600); }
.bouton--lien {
  clip-path: none; background: none; color: var(--vert-700); padding: 0; min-height: auto;
  text-decoration: underline; text-underline-offset: 3px; font-weight: 700;
}
.bouton--lien:hover { transform: none; color: var(--vert-900); }
.bouton--petit { --coin-bouton: 10px; min-height: 40px; padding: 8px 16px; font-size: .94rem; }
.bouton--grand { --coin-bouton: 14px; min-height: 56px; padding: 14px 28px; font-size: 1.08rem; }
.bouton svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.bouton--bloc { width: 100%; }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.boutons--entre { justify-content: space-between; }

/* Bouton « Candidater » flottant sur mobile pendant l'appel */
.cta-flottant {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; flex-direction: column; align-items: flex-start; padding: 10px 24px 10px 18px;
  background: var(--jaune-500); color: var(--encre); text-decoration: none; font-weight: 800; font-size: 1.02rem; line-height: 1.15;
  box-shadow: inset 0 0 0 2px #0b2108, 0 10px 28px rgba(11, 33, 8, .35); transition: transform .3s ease, opacity .3s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.cta-flottant:hover { color: var(--encre); }
.cta-flottant__delai { font-size: .78rem; font-weight: 650; opacity: .8; }
.cta-flottant.est-cache { transform: translateY(140%); opacity: 0; pointer-events: none; }
body.avec-barre .pied { padding-bottom: 104px; }
@media (min-width: 1080px) { .cta-flottant { display: none; } body.avec-barre .pied { padding-bottom: 28px; } }

/* Page Le Prix : « pourquoi ce Prix ? », le texte du CJE à côté du trophée */
.pourquoi__visuel { align-self: start; margin: 0; padding: 28px 20px 18px; border-radius: var(--rayon); background: var(--jaune-100); text-align: center; }
.pourquoi__trophee img { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; }
.pourquoi__visuel p { margin: 14px 0 0; font-weight: 700; color: var(--encre); }
/* Sur téléphone, le trophée passe avant le texte, en plus petit : on le voit sans avoir à tout lire */
@media (max-width: 799px) { .pourquoi__visuel { order: -1; } .pourquoi__trophee img { width: min(58%, 220px); } }

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background-color: var(--vert-900);
  background-image:
    repeating-conic-gradient(from 0deg at 82% 38%, rgba(242, 194, 0, .09) 0deg 5deg, transparent 5deg 15deg),
    radial-gradient(circle at 82% 38%, rgba(94, 154, 42, .55), transparent 58%),
    linear-gradient(160deg, var(--vert-800), var(--vert-900));
  padding: 48px 0 56px;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--vert-500) 0 33.3%, var(--jaune-500) 33.3% 66.6%, var(--rouge-500) 66.6%); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--jaune-500); }
.hero__accroche { font-size: 1.1rem; max-width: 56ch; color: rgba(255,255,255,.9); }
.hero__accroche p:last-child { margin: 0; }
.hero__grille { display: grid; gap: 32px; align-items: center; }
.hero__trophee { display: none; }
.etiquette-edition {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); font-size: .85rem; font-weight: 700; margin-bottom: 16px;
}
.etiquette-edition .point { width: 8px; height: 8px; border-radius: 50%; background: var(--jaune-500); box-shadow: 0 0 0 4px rgba(242,194,0,.25); }
.etiquette-edition .point--ferme { background: #bbb; box-shadow: none; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero__grille { grid-template-columns: 1.4fr 1fr; }
  .hero__trophee { display: block; justify-self: center; width: 100%; max-width: 300px; }
}

/* Compte à rebours */
.rebours { margin: 28px 0 24px; }
.rebours__titre { font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.rebours__cases { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 8px; }
.rebours__case { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18); border-radius: var(--rayon-petit); padding: 10px 4px; text-align: center; }
.rebours__nombre { display: block; font-size: 1.6rem; font-weight: 850; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.rebours__unite { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); }

/* Bandeau de page intérieure */
.bandeau-page { background: var(--vert-50); border-bottom: 1px solid var(--bord); padding: 32px 0 28px; }
.bandeau-page h1 { margin-bottom: .25em; }
.bandeau-page p { margin: 0; color: var(--texte-doux); max-width: 65ch; }
.fil-ariane { font-size: .85rem; margin-bottom: 8px; color: var(--texte-doux); }
.fil-ariane a { color: var(--texte-doux); }

/* Bandeau de page intérieure (avec photo : coupé en diagonale, comme le drapeau) */
.bandeau-page--photo {
  --coupe: clamp(28px, 6vw, 84px); --bande: clamp(8px, 1.2vw, 14px);
  position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(300px, 44vw, 460px);
  padding: calc(var(--h-entete) + 48px) 0 calc(var(--coupe) + var(--bande) + 28px); border: 0; color: #fff; background: var(--jaune-500);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--coupe)), 0 100%);
}
.bandeau-page__photo {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--vert-900);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--coupe) - var(--bande)), 0 calc(100% - var(--bande)));
}
.bandeau-page__photo img { width: 100%; height: 100%; object-fit: cover; animation: zoom-lent 9s ease-out both; }
.bandeau-page__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 6, .25), rgba(8, 24, 6, .2) 35%, rgba(8, 24, 6, .88)), linear-gradient(90deg, rgba(8, 24, 6, .5), rgba(8, 24, 6, 0) 70%);
}
.bandeau-page--photo .conteneur { position: relative; }
.bandeau-page--photo h1 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem); line-height: .95; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.bandeau-page--photo p { color: rgba(255, 255, 255, .92); font-size: 1.1rem; max-width: 50ch; }
.bandeau-page--photo .fil-ariane, .bandeau-page--photo .fil-ariane a { color: rgba(255, 255, 255, .85); }

/* ---------- Grilles et cartes ---------- */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grille--2 { display: grid; gap: 24px; }
@media (min-width: 800px) { .grille--2 { grid-template-columns: 1fr 1fr; } .grille--2-1 { grid-template-columns: 2fr 1fr; } }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.carte--ombre { box-shadow: var(--ombre); }
.carte__media { aspect-ratio: 16 / 9; background: var(--vert-100); object-fit: cover; width: 100%; }
.carte__corps { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte__corps > :last-child { margin-bottom: 0; }
.carte__titre { font-size: 1.1rem; margin: 0; }
.carte__titre a { color: inherit; text-decoration: none; }
.carte__titre a:hover { color: var(--vert-700); text-decoration: underline; }
.carte__meta { font-size: .85rem; color: var(--texte-doux); }
.encart { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; }
.encart--vert { background: var(--vert-50); border-color: var(--vert-100); }
.encart--jaune { background: var(--jaune-100); border-color: #f4e18a; }
.encart > :last-child { margin-bottom: 0; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; }
.chiffre__valeur { display: block; font-size: 1.6rem; font-weight: 850; color: var(--vert-700); line-height: 1.1; }
.chiffre__libelle { font-size: .9rem; color: var(--texte-doux); }

/* Récompenses */
.recompenses { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.recompense { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; font-weight: 700; color: var(--encre); }
.recompense svg { width: 36px; height: 36px; flex-shrink: 0; }
.recompense--image img { display: block; flex-shrink: 0; width: auto; height: 64px; }
.recompense--cheque img { width: 96px; height: auto; margin: 4px 4px 4px 0; transform: rotate(-5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }

/* Page « Cérémonie » : retour sur la dernière édition, avec son affiche */
.derniere-ceremonie { display: grid; gap: 28px; align-items: center; }
.derniere-ceremonie__affiche { margin: 0; max-width: 420px; box-shadow: 0 24px 50px rgba(11, 33, 8, .22); }
.derniere-ceremonie__affiche img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .derniere-ceremonie { grid-template-columns: 420px minmax(0, 1fr); gap: 64px; } }

/* Grille d'évaluation */
.grille-eval { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.grille-eval li { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; }
.grille-eval__tete { display: flex; justify-content: space-between; gap: 12px; font-weight: 750; color: var(--encre); }
.grille-eval__poids { flex-shrink: 0; color: var(--vert-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jauge { height: 8px; background: var(--vert-100); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.jauge span { display: block; height: 100%; background: linear-gradient(90deg, var(--vert-600), var(--vert-500)); border-radius: 999px; }
.grille-eval p { margin: 0; font-size: .9rem; color: var(--texte-doux); }

/* Calendrier */
.calendrier { list-style: none; margin: 0; padding: 0; position: relative; }
.calendrier li { position: relative; padding: 0 0 20px 32px; }
.calendrier li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--bord); }
.calendrier li:last-child::before { display: none; }
.calendrier li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--bord); }
.calendrier li.en_cours::after { border-color: var(--jaune-500); background: var(--jaune-500); box-shadow: 0 0 0 4px var(--jaune-100); }
.calendrier li.passee::after { border-color: var(--vert-600); background: var(--vert-600); }
.calendrier__date { font-size: .85rem; font-weight: 750; color: var(--vert-700); }
.calendrier__libelle { display: block; font-weight: 750; color: var(--encre); }
.calendrier__desc { font-size: .9rem; color: var(--texte-doux); }

/* Domaines en photos (accueil et « Le Prix ») : carrousel au doigt sur mobile, grille sur ordinateur */
.c-domaines {
  list-style: none; margin: 0; padding: 0 16px 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(72%, 290px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
}
.c-domaines::-webkit-scrollbar { display: none; }
.c-domaine { position: relative; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; background: var(--vert-800); }
.c-domaine__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.c-domaine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 6, 0) 40%, rgba(8, 24, 6, .88)); }
.c-domaine__nom {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.2;
}
.c-domaine__desc { font-weight: 500; font-size: .88rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.c-domaine__nom svg { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: var(--jaune-500); color: var(--encre); }
.c-domaine:hover .c-domaine__photo { transform: scale(1.06); }
@media (min-width: 900px) {
  .c-domaines {
    max-width: var(--largeur); margin: 0 auto; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 16px; overflow: visible;
  }
  .c-domaine { aspect-ratio: 4 / 5; }
}

/* Logos partenaires */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.logo-partenaire {
  display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 12px; background: #fff;
  border: 1px solid var(--bord); border-radius: var(--rayon); text-align: center; font-weight: 700; color: var(--texte-doux); text-decoration: none; font-size: .9rem;
}
.logo-partenaire img { max-height: 56px; width: auto; object-fit: contain; }

/* Lauréats */
/* Carte lauréat : la photo occupe toute la carte */
.carte-laureat { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--vert-800); }
.carte-laureat__lien { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.carte-laureat__lien:hover { color: #fff; }
.carte-laureat img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.carte-laureat__lien:hover img { transform: scale(1.05); }
.carte-laureat__lien::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 6, 0) 45%, rgba(8, 24, 6, .9)); }
.carte-laureat .portrait__initiales { color: var(--jaune-500); font-family: var(--police-affiche); font-size: 6rem; background: var(--vert-800); }
.carte-laureat .distinction { z-index: 1; }
.carte-laureat__texte { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; }
.carte-laureat__nom { display: block; margin: 0; color: #fff; font-family: var(--police-affiche); font-weight: 850; font-size: 1.6rem; line-height: 1; }
.carte-laureat__projet { display: block; margin-top: 6px; font-size: .92rem; color: rgba(255, 255, 255, .88); line-height: 1.35; }

.portrait { position: relative; aspect-ratio: 4 / 3; background: var(--vert-100); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initiales {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 850; color: var(--vert-700);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(94,154,42,.12) 0deg 8deg, transparent 8deg 20deg), var(--vert-50);
}
.distinction { position: absolute; top: 12px; left: 12px; }
.citation { border-left: 4px solid var(--jaune-500); padding: 4px 0 4px 16px; margin: 1.5rem 0; font-size: 1.1rem; font-style: italic; color: var(--encre); }

.sous-titre-encart { margin-top: 24px; }

/* Bascule entre les propositions de page d'accueil (?apercu=a|b) */
.bascule-maquette {
  position: fixed; z-index: 60; left: 50%; bottom: 92px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--encre); box-shadow: var(--ombre-forte); font-size: .85rem;
  max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none;
}
.bascule-maquette span { color: rgba(255,255,255,.7); padding: 0 8px 0 10px; font-weight: 600; }
.bascule-maquette a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 750; white-space: nowrap; }
.bascule-maquette a[aria-current="page"] { background: var(--jaune-500); color: var(--encre); }
@media (min-width: 1000px) { .bascule-maquette { bottom: 24px; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 750; line-height: 1.5; white-space: nowrap; }
.badge--gris { background: #eceee9; color: #3f463c; }
.badge--bleu { background: var(--bleu-100); color: var(--bleu-600); }
.badge--jaune { background: var(--jaune-100); color: #6b5200; }
.badge--vert { background: var(--vert-100); color: var(--vert-800); }
.badge--or { background: var(--jaune-500); color: var(--encre); }
.badge--rouge { background: var(--rouge-100); color: var(--rouge-600); }

/* ---------- Alertes ---------- */
.alertes { margin: 16px 0 0; display: grid; gap: 8px; }
.alerte { border-radius: var(--rayon-petit); padding: 12px 14px; border: 1px solid; font-weight: 550; }
.alerte--success { background: var(--vert-50); border-color: #bcd9a5; color: var(--vert-800); }
.alerte--info { background: var(--bleu-100); border-color: #b9cfee; color: #164a86; }
.alerte--warning { background: var(--jaune-100); border-color: #ecd57a; color: #5c4600; }
.alerte--error { background: var(--rouge-100); border-color: #f0b7b7; color: var(--rouge-600); }
.alerte > :last-child { margin-bottom: 0; }

/* ---------- Texte riche ---------- */
.texte { max-width: 72ch; }
.texte h2 { font-size: 1.35rem; margin-top: 1.6em; }
.texte h3 { margin-top: 1.4em; }
.texte ul, .texte ol { padding-left: 1.3em; margin: 0 0 1em; }
.texte li { margin-bottom: .35em; }
.texte li::marker { color: var(--vert-600); }

/* FAQ */
.faq details { border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: #fff; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--encre); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--vert-700); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 14px; color: var(--texte); }

/* Étapes numérotées (comment candidater) */
.etapes-liste { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.etapes-liste li { counter-increment: etape; position: relative; padding: 14px 16px 14px 60px; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); }
.etapes-liste li::before {
  content: counter(etape); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--vert-700); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 18px; }
.champ { display: grid; gap: 6px; }
.champ > label, .champ legend, .libelle { font-weight: 700; color: var(--encre); }
.champ .requis { color: var(--rouge-500); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--encre); background: #fff;
  border: 1.5px solid #c5cdbf; border-radius: var(--rayon-petit); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-600); box-shadow: 0 0 0 3px rgba(94, 154, 42, .25); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--rouge-500); }
.aide { font-size: .85rem; color: var(--texte-doux); }
.erreurs { color: var(--rouge-600); font-size: .9rem; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.compteur { font-size: .8rem; color: var(--texte-doux); text-align: right; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choix { display: grid; gap: 8px; }
.choix label, .case {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--bord); border-radius: var(--rayon-petit);
  background: #fff; cursor: pointer; font-weight: 550;
}
.choix label:has(input:checked), .case:has(input:checked) { border-color: var(--vert-600); background: var(--vert-50); }
.choix ul, .choix div { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vert-700); flex-shrink: 0; }
.champ-cache { position: absolute; left: -9999px; }
/* Mot de passe : le bouton « Afficher » posé dans le champ (ajouté par site.js) */
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 104px; }
.champ-mdp__voir { position: absolute; right: 6px; top: 50%; height: 34px; margin: 0; padding: 0 12px; border: 0; border-radius: 5px; background: #eef2ea; color: #1b5e1f; font: inherit; font-size: .88rem; font-weight: 700; translate: 0 -50%; cursor: pointer; }
.champ-mdp__voir:hover { background: #dfe8d9; }
/* « Mon compte » : la suppression du compte, repliée, et la déconnexion redite en bas de page */
.compte-supprimer { margin-top: 18px; border-top: 1px solid var(--bord); }
.compte-supprimer > summary { padding: 14px 0 0; color: var(--texte-doux); font-size: .95rem; font-weight: 650; cursor: pointer; }
.compte-supprimer__contenu { padding-top: 12px; }
.compte-sortie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.compte-sortie > div { flex: 1 1 260px; }
.compte-sortie h2, .compte-sortie p { margin: 0; }
.compte-sortie p { margin-top: 4px; }
.compte-sortie form { margin: 0; }
.ligne-champs { display: grid; gap: 18px; }
@media (min-width: 700px) { .ligne-champs { grid-template-columns: 1fr 1fr; } }
.carte-formulaire { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
@media (min-width: 700px) { .carte-formulaire { padding: 32px; } }
.page-compte { padding: 32px 0 56px; }
.page-compte .carte-formulaire { max-width: 520px; margin: 0 auto; }

/* ---------- Parcours de candidature ---------- */
.parcours { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.parcours li { flex: 1 0 auto; }
.parcours a {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--bord);
  text-decoration: none; color: var(--texte-doux); font-size: .88rem; font-weight: 700; white-space: nowrap; background: #fff;
}
.parcours__num { width: 24px; height: 24px; border-radius: 50%; background: var(--fond-doux); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.parcours a.complete .parcours__num { background: var(--vert-600); color: #fff; }
.parcours a[aria-current="step"] { border-color: var(--vert-700); color: var(--vert-800); background: var(--vert-50); }
.parcours a[aria-current="step"] .parcours__num { background: var(--vert-700); color: #fff; }

.manquants { margin: 0; padding-left: 1.2em; }
.manquants li { margin-bottom: 4px; }

/* Téléversement */
.depot { border: 2px dashed #c5cdbf; border-radius: var(--rayon); padding: 18px; background: var(--fond-doux); display: grid; gap: 14px; }
.depot[data-survol="true"] { border-color: var(--vert-600); background: var(--vert-50); }
.progression { display: grid; gap: 6px; }
.progression__barre { height: 10px; border-radius: 999px; background: var(--vert-100); overflow: hidden; }
.progression__barre span { display: block; height: 100%; width: 0; background: var(--vert-600); transition: width .2s; }
.progression__texte { font-size: .85rem; color: var(--texte-doux); }
.liste-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-pieces li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: #fff; }
.liste-pieces__info { min-width: 0; }
.liste-pieces__info strong { display: block; overflow-wrap: anywhere; }
.sans-js .avec-js { display: none !important; }
.avec-js-actif .sans-js-seulement { display: none; }

/* Statut du dossier */
.statut-dossier { display: grid; gap: 16px; }
.frise { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.frise li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: .92rem; }
.frise time { color: var(--texte-doux); font-variant-numeric: tabular-nums; font-size: .85rem; }

/* ---------- Tableaux ---------- */
.tableau-conteneur { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th, .tableau td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau th { background: var(--fond-doux); font-weight: 750; color: var(--encre); white-space: nowrap; font-size: .85rem; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: #fbfcf9; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau a { font-weight: 650; }

/* Fiche de dossier */
.fiche dl { display: grid; gap: 4px 16px; margin: 0; }
@media (min-width: 700px) { .fiche dl { grid-template-columns: minmax(110px, 32%) 1fr; } }
.fiche dt { font-weight: 700; color: var(--texte-doux); font-size: .88rem; }
.fiche dd { margin: 0 0 8px; overflow-wrap: anywhere; }
.fiche h3 { margin-top: 1.4em; padding-bottom: 6px; border-bottom: 2px solid var(--vert-100); }
.fiche .texte-long { white-space: pre-line; }

/* ---------- Espace de gestion ---------- */
.gestion { display: grid; min-height: calc(100vh - 80px); }
.gestion__menu { background: var(--vert-900); color: #fff; padding: 12px 16px; }
.gestion__menu nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.gestion__menu a { display: block; color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 12px; border-radius: var(--rayon-petit); font-weight: 650; font-size: .92rem; white-space: nowrap; }
.gestion__menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.gestion__menu a[aria-current="page"] { background: var(--jaune-500); color: var(--encre); }
.gestion__menu .titre-menu { display: none; }
.gestion__menu form { margin-top: 8px; }
.gestion__menu select { min-height: 38px; padding: 4px 8px; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.gestion__menu select option { color: var(--encre); }
.gestion__contenu { padding: 24px 16px 48px; min-width: 0; background: var(--fond-doux); }
@media (min-width: 1000px) {
  .gestion { grid-template-columns: 240px 1fr; }
  .gestion__menu { padding: 24px 16px; }
  .gestion__menu nav ul { flex-direction: column; overflow: visible; }
  .gestion__menu .titre-menu { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin: 16px 12px 6px; }
  .gestion__contenu { padding: 32px; }
}
.tuiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin-bottom: 24px; }
.tuile { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; text-decoration: none; color: inherit; display: block; }
a.tuile:hover { border-color: var(--vert-600); }
.tuile__valeur { display: block; font-size: 1.9rem; font-weight: 850; color: var(--encre); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tuile__libelle { font-size: .85rem; color: var(--texte-doux); font-weight: 600; }
.tuile--accent { border-left: 4px solid var(--jaune-500); }
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.barres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .9rem; }
.barres .jauge { grid-column: 1 / -1; margin: 0; height: 10px; }
.barres strong { font-variant-numeric: tabular-nums; }
.histogramme { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.histogramme div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.histogramme span.colonne { width: 100%; max-width: 28px; background: var(--vert-600); border-radius: 4px 4px 0 0; min-height: 2px; }
.histogramme small { font-size: .65rem; color: var(--texte-doux); }
.panneau { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; margin-bottom: 20px; }
.panneau > h2, .panneau > h3 { font-size: 1.1rem; margin-bottom: 14px; }
.panneau > :last-child { margin-bottom: 0; }
.filtres { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); align-items: end; margin-bottom: 16px; }
.filtres .champ { gap: 4px; }
.filtres label { font-size: .85rem; }
.note-grosse { font-size: 2rem; font-weight: 850; color: var(--vert-700); font-variant-numeric: tabular-nums; }
.champ-note { max-width: 120px; font-size: 1.15rem !important; font-weight: 700; text-align: center; }
.ligne-critere { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--bord); }
@media (min-width: 800px) { .ligne-critere { grid-template-columns: 1fr 140px 1.2fr; align-items: start; } }

/* ---------- Pied de page : coupé en diagonale, avec la bande jaune ---------- */
.pied {
  --coupe: clamp(36px, 7vw, 96px); --bande: clamp(10px, 1.4vw, 16px);
  position: relative; isolation: isolate; margin-top: auto; padding: calc(var(--coupe) + var(--bande) + 40px) 0 28px;
  background: var(--jaune-500); color: rgba(255, 255, 255, .8); font-size: .95rem;
  clip-path: polygon(0 var(--coupe), 100% 0, 100% 100%, 0 100%);
}
.pied::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #0b2108;
  clip-path: polygon(0 calc(var(--coupe) + var(--bande)), 100% var(--bande), 100% 100%, 0 100%);
}
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--jaune-400); text-decoration: underline; text-underline-offset: 3px; }
.pied a.bouton:hover { color: var(--encre); text-decoration: none; }
.pied h2 { margin-bottom: 14px; color: #fff; font-size: 1.35rem; }
.pied__appel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.pied__accroche { margin: 0; max-width: 14ch; color: #fff; font-family: var(--police-affiche); font-weight: 900; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem); line-height: .95; }
.pied__grille { display: grid; gap: 32px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied__logo { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 14px; border-radius: 50%; background: #fff; }
.pied__logo img { width: 64px; height: auto; }
.pied__marque p { max-width: 36ch; }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem;
}
.pied__bas span:last-child { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 800px) { .pied__grille { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.reseaux { display: flex; gap: 10px; flex-wrap: wrap; }
.reseaux a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.reseaux a:hover { background: var(--jaune-500); }
.reseaux svg { width: 19px; height: 19px; fill: #fff; }
.reseaux a:hover svg { fill: var(--encre); }

/* Partage */
.partage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }
.partage a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bord); text-decoration: none; font-weight: 650; font-size: .88rem; color: var(--encre); }
.partage a:hover { border-color: var(--vert-600); }

/* Vidéo à la demande (chargée au clic) */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--rayon); overflow: hidden; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video .lecture { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: var(--rouge-500); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.video .lecture::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.carte-geo { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--rayon); background: var(--fond-doux); }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 28px; flex-wrap: wrap; }

/* =====================================================================
   Composants des pages intérieures (habillage 2026)
   Coins coupés en diagonale, aplats francs, peu de bordures.
   ===================================================================== */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section--doux { background: var(--vert-50); }
.chapeau { font-size: 1.15rem; }
.texte { font-size: 1.05rem; }
.texte h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); margin-top: 1.4em; }
/* Listes numérotées des textes (étapes, règlement) : chiffres dans un carré au coin coupé */
.texte ol { list-style: none; counter-reset: point; padding-left: 0; display: grid; gap: 14px; }
.texte ol > li { counter-increment: point; position: relative; min-height: 40px; padding: 7px 0 0 56px; margin: 0; }
.texte ol > li::before {
  content: counter(point); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; background: var(--vert-700); color: #fff;
  font-family: var(--police-affiche); font-weight: 900; font-size: 1.3rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.texte ol > li:nth-child(3n+2)::before { background: var(--jaune-500); color: var(--encre); }
.texte ol > li:nth-child(3n+3)::before { background: var(--rouge-500); }

/* Encadrés */
.encart { border: 0; border-radius: 0; background: var(--fond-doux); padding: 24px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.encart--vert { background: var(--vert-50); }
.encart--jaune { background: var(--jaune-100); }
.encart--sombre { background: #0b2108; color: rgba(255, 255, 255, .86); }
.encart--sombre h2, .encart--sombre h3, .encart--sombre strong { color: #fff; }
.encart--sombre a:not(.bouton) { color: var(--jaune-400); }
.encart--sombre .doux, .encart--sombre .fiche dt { color: rgba(255, 255, 255, .62); }
.encart--sombre .texte li::marker { color: var(--jaune-500); }
.encart--sombre .bouton--primaire { background: var(--jaune-500); color: var(--encre); }

/* Cartes */
.carte { border-radius: 0; border: 0; background: #fff; box-shadow: 0 1px 0 var(--bord), 0 0 0 1px var(--bord); }
.carte--ombre { box-shadow: 0 14px 34px rgba(11, 33, 8, .08), 0 0 0 1px var(--bord); }
.carte__media { transition: transform .6s ease; }
.carte:hover .carte__media { transform: scale(1.03); }
.carte__titre { font-size: 1.2rem; line-height: 1.25; }

/* Récompenses */
.recompense { border: 0; border-radius: 0; background: var(--jaune-100); padding: 16px 18px; font-size: 1.05rem; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.recompense svg { width: 40px; height: 40px; color: var(--vert-800); }

/* Grille d'évaluation */
.grille-eval li { border: 0; border-radius: 0; border-left: 4px solid var(--jaune-500); background: #fff; padding: 16px 18px; box-shadow: 0 0 0 1px var(--bord); }
.grille-eval__poids { font-family: var(--police-affiche); font-size: 1.5rem; line-height: 1; color: var(--vert-800); }
.jauge, .jauge span { border-radius: 0; }
.jauge span { background: var(--vert-700); }

/* Calendrier */
.calendrier li::after { border-radius: 0; transform: rotate(45deg); width: 14px; height: 14px; left: 1px; }
.calendrier__libelle { font-size: 1.08rem; }

/* Questions fréquentes */
.faq details { border: 0; border-radius: 0; background: none; margin: 0; border-bottom: 1px solid var(--bord); }
.faq details:first-child { border-top: 1px solid var(--bord); }
.faq summary { padding: 18px 0; font-size: 1.08rem; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--jaune-500) no-repeat center / 14px 14px;
  background-image: linear-gradient(var(--encre), var(--encre)), linear-gradient(var(--encre), var(--encre));
  background-size: 12px 2px, 2px 12px; transition: transform .25s ease;
}
.faq details[open] summary::after { content: ""; transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; }

/* Alertes, listes, champs */
.alerte { border-radius: 0; border-width: 0 0 0 4px; }
.liste-pieces li { border-radius: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="url"], input[type="search"], select, textarea {
  min-height: 50px; border-radius: 0; border: 2px solid #cdd5c7; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--vert-700); box-shadow: 0 0 0 4px rgba(242, 194, 0, .45); }
.choix label, .case { border-radius: 0; border-width: 2px; }
.carte-formulaire { border-radius: 0; border: 0; box-shadow: 0 18px 40px rgba(11, 33, 8, .08), 0 0 0 1px var(--bord); }
.citation { border-left-width: 6px; font-style: normal; font-family: var(--police-affiche); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.logo-partenaire { border-radius: 0; }
.video { border-radius: 0; }

/* Impression (récapitulatif de dossier) */
@media print {
  .entete, .pied, .cta-flottant, .menu-mobile, .bouton, .boutons, .alertes, .gestion__menu, .parcours { display: none !important; }
  body { font-size: 11pt; padding: 0 !important; }
  .gestion { display: block; }
  .carte-formulaire, .panneau { box-shadow: none; border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

/* Apparition des photos en diagonale, quand elles entrent à l'écran */
.avec-js-actif [data-reveler] { clip-path: polygon(0 0, 0 0, -45% 100%, 0 100%); transition: clip-path 1.1s cubic-bezier(.6, .05, .2, 1); }
.avec-js-actif [data-reveler].est-visible { clip-path: polygon(0 0, 145% 0, 100% 100%, 0 100%); }

@keyframes zoom-lent { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
