/* ============================================================
   LA MARMITE AFRICAINE 2027 — Feuille de style
   Blanc dominant · motifs or et noir · symboles Adinkra
   ============================================================ */

/* ---------- 0. Polices (hébergées sur le site, aucune requête externe) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italique-latin.woff2") format("woff2"); }

/* ---------- 1. Réglages (couleurs, polices) ---------- */
:root {
  --blanc:      #ffffff;
  --perle:      #f7f5f0;   /* blanc cassé, sections alternées */
  --noir:       #0b0b0b;
  --noir-2:     #161513;
  --or:         #e2a40c;   /* or du logo */
  --or-clair:   #f5c542;
  --or-texte:   #8f6400;   /* or lisible sur fond blanc */
  --texte:      #121212;
  --gris:       #5e5a52;
  --gris-clair: #736d65;   /* 5,1:1 sur blanc (WCAG AA) */
  --bordure-champ: #948c80; /* 3,3:1 : contour des champs visible (WCAG 1.4.11) */
  --ligne:      #e7e2d8;
  --rouge:      #b0321c;

  --f-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-texte: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --largeur: 1240px;
  --rayon: 4px;
  --ease: cubic-bezier(.22, .8, .2, 1);

  /* Filigrane Adinkra or (sections noires) */
  --filigrane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e2a40c' stroke-opacity='.10' stroke-width='2'%3E%3Ccircle cx='50' cy='50' r='26'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3Cpath d='M150 128l20 20-20 20-20-20z'/%3E%3Cpath d='M150 139l9 9-9 9-9-9z'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='6' fill='%23e2a40c' fill-opacity='.10'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--blanc); color: var(--texte);
  font-family: var(--f-texte); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); margin: 0 0 .5em; line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
em, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
[id] { scroll-margin-top: 100px; }
::selection { background: var(--or); color: var(--noir); }

.conteneur { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }
.lien-evitement { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--noir); color: var(--or); padding: 10px 16px; font-weight: 700; }
.lien-evitement:focus { top: 12px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Symboles */
.adinkra { width: 1em; height: 1em; display: inline-block; vertical-align: middle; overflow: visible; }

/* Libellé de section : « 01 — Le concours » */
.label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte);
}
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.sombre .label { color: var(--or); }

/* ---------- 3. Boutons et liens ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border: 1.5px solid var(--noir); border-radius: 999px;
  font: 600 .95rem/1 var(--f-texte); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before { /* remplissage doré au survol */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--or);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-noir { background: var(--noir); color: var(--blanc); }
.btn-noir:hover { color: var(--noir); border-color: var(--or); }
.btn-ligne { background: transparent; color: var(--noir); }
.btn-ligne:hover { border-color: var(--or); }
.sombre .btn-ligne { color: var(--blanc); border-color: rgba(255,255,255,.5); }
.sombre .btn-ligne:hover { color: var(--noir); }
.btn-or { background: var(--or); border-color: var(--or); color: var(--noir); }
.btn-or::before { background: var(--blanc); }

.lien-fleche { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--or); padding-bottom: 4px; }
.lien-fleche svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.lien-fleche:hover svg { transform: translateX(5px); }

/* ---------- 4. En-tête ---------- */
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .4s var(--ease);
}
.entete.defile { box-shadow: 0 1px 0 var(--ligne), 0 10px 30px -20px rgba(0,0,0,.25); }
.entete-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.marque img { height: 84px; width: auto; margin: 0 0 0 -2px; }   /* logo 2027 : hauteur de l'en-tête, proportions conservées */
.nav { display: flex; align-items: center; gap: 34px; }
.nav-liens { display: flex; gap: 30px; }
.nav-liens a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; }
.nav-liens a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-liens a:hover::after, .nav-liens a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 13px 22px; font-size: .88rem; }
.reseaux { display: flex; gap: 6px; }
.social { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--texte); transition: background .35s var(--ease), color .35s var(--ease); }
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--noir); color: var(--or); }
.sombre .social { color: var(--blanc); border: 1px solid rgba(255,255,255,.2); }
.sombre .social:hover { background: var(--or); color: var(--noir); border-color: var(--or); }

.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--noir); cursor: pointer; position: relative; z-index: 120; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--blanc); transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle::before { top: 18px; } .menu-toggle span { top: 23.5px; } .menu-toggle::after { top: 29px; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-5.5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 110; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
    padding: 100px 28px 40px; background: var(--blanc); overflow: hidden;
    clip-path: circle(0 at calc(100% - 44px) 42px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility .7s;
  }
  .nav.ouvert { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
  .nav-liens { flex-direction: column; gap: 8px; }
  .nav-liens a { font-family: var(--f-titre); font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .nav.ouvert .nav-liens a { opacity: 1; transform: none; }
  .nav.ouvert .nav-liens a:nth-child(2) { transition-delay: .06s; }
  .nav.ouvert .nav-liens a:nth-child(3) { transition-delay: .12s; }
  .nav.ouvert .nav-liens a:nth-child(4) { transition-delay: .18s; }
  .nav-liens a::after { bottom: 4px; height: 3px; }
  .nav-fond { position: absolute; right: -80px; bottom: -80px; width: 340px; height: 340px; color: var(--or); opacity: .12; pointer-events: none; }
}
@media (min-width: 961px) { .nav-fond { display: none; } }
@media (max-width: 560px) { .entete-inner { height: 72px; } .marque img { height: 70px; } }

/* ---------- 5. Accueil : hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero-surtitre .point { width: 7px; height: 7px; background: var(--or); transform: rotate(45deg); }
.hero-titre {
  font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: .92; font-weight: 900; letter-spacing: -.03em;
  font-variation-settings: "wdth" 108; margin: 0 0 30px; text-transform: uppercase;
}
.hero-titre .ligne { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-titre .ligne > span { display: inline-block; animation: monte 1.1s var(--ease) both; }
.hero-titre .ligne:nth-child(2) > span { animation-delay: .12s; }
.hero-titre .ligne:nth-child(3) > span { animation-delay: .24s; }
.hero-titre .or { color: var(--or); }
.hero-titre em { text-transform: none; font-size: .62em; letter-spacing: -.01em; color: var(--or-texte); vertical-align: .12em; }
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
.hero-lead { max-width: 46ch; font-size: 1.12rem; color: var(--gris); animation: apparait 1s .5s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; animation: apparait 1s .65s var(--ease) both; }
@keyframes apparait { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visuel { position: relative; justify-self: center; width: min(100%, 440px); animation: apparait 1.2s .2s var(--ease) both; }
.arche {
  position: relative; aspect-ratio: 3 / 4.1; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--perle);
  animation: devoile 1.6s .3s var(--ease) both;
}
.arche img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: dezoome 2.4s .3s var(--ease) both; }
@keyframes devoile { from { clip-path: inset(100% 0 0 0 round 999px 999px 6px 6px); } to { clip-path: inset(0 0 0 0 round 999px 999px 6px 6px); } }
@keyframes dezoome { to { transform: scale(1); } }
.arche-cadre { position: absolute; inset: -14px -14px auto -14px; aspect-ratio: 3 / 4.1; border: 1.5px solid var(--or); border-radius: 999px 999px 8px 8px; pointer-events: none; transform: translate(14px, 14px); animation: apparait 1.4s .9s var(--ease) both; }
.hero-symbole { position: absolute; color: var(--or); pointer-events: none; }
.hero-symbole.s1 { width: 150px; height: 150px; left: -175px; bottom: 30px; color: var(--noir); }
.hero-symbole.s2 { width: 120px; height: 120px; right: -46px; top: -30px; }
.hero-symbole.s1 .tourne { animation: tourne 60s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.flotte { animation: flotte 7s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes tourne { to { transform: rotate(360deg); } }
.hero-badge {
  position: absolute; left: -30px; top: 46%; display: grid; place-items: center; text-align: center;
  width: 120px; height: 120px; border-radius: 50%; background: var(--noir); color: var(--blanc);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.hero-badge b { display: block; font-family: var(--f-titre); font-style: normal; font-weight: 800; font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--or); line-height: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(50px, 6vw, 80px); border-top: 1px solid var(--ligne); animation: apparait 1s .8s var(--ease) both; }
.hero-meta div { flex: 1 1 200px; padding: 22px 24px 0 0; }
.hero-meta div + div { padding-left: 24px; border-left: 1px solid var(--ligne); }
.hero-meta small { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: 4px; }
.hero-meta strong { font-size: 1.15rem; font-weight: 700; }
@media (max-width: 900px) {
  .hero-grille { grid-template-columns: minmax(0, 1fr); }
  .hero-visuel { width: min(78%, 380px); margin-top: 10px; }
  .hero-badge { left: -24px; width: 100px; height: 100px; }
  .hero-symbole.s1 { width: 130px; height: 130px; left: -70px; }
}
@media (max-width: 560px) { .hero-meta div + div { padding-left: 0; border-left: 0; } .hero-meta div { flex-basis: 100%; padding-top: 16px; } }

/* ---------- 6. Bandeau défilant ---------- */
.defilant { background: var(--noir); color: var(--blanc); overflow: hidden; padding: 22px 0; border-block: 1px solid var(--or); }
.defilant-piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.defilant:hover .defilant-piste { animation-play-state: paused; }
.defilant-groupe { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.defilant-groupe span { font-family: var(--f-titre); font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; font-variation-settings: "wdth" 110; }
.defilant-groupe span.serif { font-family: var(--f-serif); text-transform: none; font-weight: 400; color: var(--or); font-size: clamp(1.4rem, 2.8vw, 2.1rem); }
.defilant-groupe svg { width: 30px; height: 30px; color: var(--or); flex: none; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- 7. Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.perle { background: var(--perle); }
.sombre { background-color: var(--noir); background-image: var(--filigrane); color: #e9e6df; }
.sombre h2, .sombre h3 { color: var(--blanc); }
.entete-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.entete-section p { color: var(--gris); font-size: 1.08rem; max-width: 52ch; margin: 0; }
.sombre .entete-section p { color: #b9b4aa; }
@media (max-width: 860px) { .entete-section { grid-template-columns: minmax(0, 1fr); } }

/* Grande citation éditoriale */
.declaration { font-family: var(--f-serif); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 40px; max-width: 22ch; }
.declaration .or { color: var(--or-texte); }

/* Bloc intro accueil */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-photo { position: relative; }
.intro-photo .cadre { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease); }
.intro-photo:hover img { transform: scale(1.04); }
.intro-photo .symbole { position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px; padding: 22px; border-radius: 50%; background: var(--blanc); color: var(--or); box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }
.intro-texte p { color: var(--gris); max-width: 50ch; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } .intro-photo { max-width: 460px; } .intro-photo .symbole { right: -10px; } }

/* Panneau symbole (accueil) */
.panneau-symbole {
  position: relative; margin: 0; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, var(--blanc) 0 54%, var(--perle) 54.2%);
  border: 1px solid var(--ligne); max-width: 480px; justify-self: center; width: 100%;
}
.panneau-symbole::before { content: ""; position: absolute; inset: 7%; border: 1px dashed rgba(226,164,12,.55); border-radius: 50%; animation: tourne 80s linear infinite; }
.panneau-symbole svg { width: 46%; height: 46%; color: var(--or); }
.panneau-symbole figcaption {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: min(90%, 320px);
  background: var(--noir); color: #d9d4ca; font-size: .82rem; line-height: 1.5; padding: 14px 18px; border-radius: 4px; text-align: center;
}
.panneau-symbole figcaption b { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; color: var(--or); }

/* ---------- 8. Compte à rebours ---------- */
.rebours { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.rebours-titre { font-family: var(--f-serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 0; }
.rebours-titre small { display: block; font-family: var(--f-texte); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin-bottom: 14px; }
.compteur { display: flex; gap: clamp(10px, 2vw, 22px); }
.compteur div { min-width: clamp(70px, 9vw, 120px); text-align: center; padding: 18px 8px 14px; border: 1px solid rgba(226,164,12,.35); border-radius: 6px; }
.compteur b { display: block; font-family: var(--f-titre); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1; color: var(--blanc); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.compteur span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--or); }
@media (max-width: 860px) { .rebours { grid-template-columns: minmax(0, 1fr); } .compteur div { flex: 1; min-width: 0; } }
@media (max-width: 420px) { .compteur { gap: 8px; } .compteur span { font-size: .58rem; letter-spacing: .06em; } }

/* ---------- 9. Étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: etape; }
.etapes::before { /* ligne dorée qui se trace */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--or);
  transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease);
}
.etapes.visible::before { transform: scaleX(1); }
.etape { position: relative; padding: 44px 28px 0 0; }
.etape::before { content: ""; position: absolute; left: 0; top: -6px; width: 12px; height: 12px; background: var(--noir); transform: rotate(45deg) scale(0); transition: transform .6s var(--ease); }
.etapes.visible .etape::before { transform: rotate(45deg) scale(1); }
.etapes.visible .etape:nth-child(2)::before { transition-delay: .4s; }
.etapes.visible .etape:nth-child(3)::before { transition-delay: .8s; }
.etapes.visible .etape:nth-child(4)::before { transition-delay: 1.2s; background: var(--or); }
.etape-num { display: block; font-family: var(--f-serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--or-texte); margin-bottom: 18px; }
.etape p { color: var(--gris); font-size: .98rem; margin: 0; }
.sombre .etape p { color: #b9b4aa; }
.sombre .etape::before { background: var(--blanc); }
.sombre .etape-num { color: var(--or); }
@media (max-width: 860px) {
  .etapes { grid-template-columns: minmax(0, 1fr); padding-left: 28px; }
  .etapes::before { right: auto; bottom: 0; width: 1.5px; height: auto; transform: scaleY(0); transform-origin: top; }
  .etapes.visible::before { transform: scaleY(1); }
  .etape { padding: 0 0 40px; }
  .etape::before { left: -33px; top: 8px; }
}

/* ---------- 10. Valeurs Adinkra ---------- */
.valeurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ligne); border-left: 1px solid var(--ligne); }
.valeur {
  position: relative; padding: clamp(28px, 3.4vw, 44px); border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
  background: var(--blanc); overflow: hidden; transition: color .5s var(--ease);
}
.valeur::before { content: ""; position: absolute; inset: 0; background: var(--noir); transform: translateY(101%); transition: transform .6s var(--ease); z-index: 0; }
.valeur:hover::before { transform: none; }
.valeur > * { position: relative; z-index: 1; }
.valeur:hover { color: var(--blanc); }
.valeur svg { width: 64px; height: 64px; color: var(--or); margin-bottom: 34px; transition: transform .7s var(--ease); }
.valeur:hover svg { transform: rotate(-10deg) scale(1.08); }
.valeur h3 { font-size: 1.5rem; margin-bottom: 8px; }
.valeur p { color: var(--gris); margin: 0 0 18px; transition: color .5s; }
.valeur:hover p { color: #c9c4ba; }
.valeur .sens { display: block; font-size: .82rem; padding-top: 16px; border-top: 1px solid var(--ligne); color: var(--gris); transition: border-color .5s, color .5s; }
.valeur .sens b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.15rem; color: var(--or-texte); margin-right: 6px; transition: color .5s; }
.valeur:hover .sens { border-color: rgba(255,255,255,.15); color: #c9c4ba; }
.valeur:hover .sens b { color: var(--or); }
@media (max-width: 900px) { .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .valeurs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. Communes ---------- */
.communes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 60px); counter-reset: commune; }
.communes li {
  counter-increment: commune; position: relative; display: flex; align-items: baseline; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--ligne);
  font-family: var(--f-titre); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.015em;
  transition: padding-left .5s var(--ease), color .4s;
}
.communes li::before { content: counter(commune, decimal-leading-zero); font-family: var(--f-texte); font-size: .78rem; font-weight: 600; color: var(--or-texte); letter-spacing: .08em; min-width: 22px; }
.communes li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.communes li:hover { padding-left: 10px; }
.communes li:hover::after { transform: scaleX(1); }
.sombre .communes li { border-color: rgba(255,255,255,.12); }
.sombre .communes li::before { color: var(--or); }
@media (max-width: 860px) { .communes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .communes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 12. Appel à l'action ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(90px, 12vw, 160px) 0; }
.cta h2 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; font-variation-settings: "wdth" 112; max-width: 14ch; margin-inline: auto; }
.cta h2 em { text-transform: none; color: var(--or); font-size: 1.05em; }
.cta p { color: #b9b4aa; max-width: 46ch; margin: 0 auto 36px; }
.cta-symbole { position: absolute; width: 520px; height: 520px; color: var(--or); opacity: .09; pointer-events: none; }
.cta-symbole.gauche { left: -200px; top: -120px; }
.cta-symbole.droite { right: -180px; bottom: -200px; }
.cta-symbole .tourne { animation: tourne 90s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }

/* ---------- 13. Pages intérieures ---------- */
.page-titre { padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; border-bottom: 1px solid var(--ligne); }
.page-titre h1 { font-size: clamp(2.1rem, 9vw, 7.4rem); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; line-height: .92; font-variation-settings: "wdth" 112; margin: 0 0 26px; }
.page-titre h1 .ligne { display: block; overflow: hidden; }
.page-titre h1 .ligne > span { display: inline-block; animation: monte 1.1s var(--ease) both; }
.page-titre h1 em { text-transform: none; color: var(--or-texte); }
.page-titre p { max-width: 54ch; color: var(--gris); font-size: 1.12rem; margin: 0; animation: apparait 1s .4s var(--ease) both; }
.page-titre .grand-symbole { position: absolute; right: clamp(-120px, -6vw, -40px); top: 50%; width: clamp(220px, 32vw, 420px); height: clamp(220px, 32vw, 420px); margin-top: calc(clamp(220px, 32vw, 420px) / -2); color: var(--or); opacity: .9; }

.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); }
.colonnes p { color: var(--gris); }
@media (max-width: 860px) { .colonnes { grid-template-columns: minmax(0, 1fr); } }
.liste-objectifs { list-style: none; margin: 0; padding: 0; counter-reset: obj; }
.liste-objectifs li { counter-increment: obj; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--ligne); }
.liste-objectifs li::before { content: counter(obj, decimal-leading-zero); font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: var(--or-texte); line-height: 1.1; }
.liste-objectifs b { display: block; font-size: 1.1rem; }
.liste-objectifs span { color: var(--gris); font-size: .96rem; }

/* Conditions */
.conditions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid rgba(226,164,12,.35); border-radius: 6px; overflow: hidden; }
.condition { padding: clamp(26px, 3vw, 40px); }
.condition + .condition { border-left: 1px solid rgba(226,164,12,.35); }
.condition b { display: block; font-family: var(--f-titre); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--blanc); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; }
.condition span { color: #b9b4aa; font-size: .95rem; }
.condition svg { width: 36px; height: 36px; color: var(--or); margin-bottom: 20px; }
@media (max-width: 760px) { .conditions { grid-template-columns: minmax(0, 1fr); } .condition + .condition { border-left: 0; border-top: 1px solid rgba(226,164,12,.35); } }

/* ---------- 14. Formulaire ---------- */
.inscription-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.inscription-cote { position: sticky; top: 120px; }
.inscription-cote .portrait { aspect-ratio: 1; border-radius: 50%; overflow: hidden; max-width: 260px; margin-bottom: 30px; background: var(--perle); }
.inscription-cote .portrait img { width: 100%; height: 100%; object-fit: cover; }
.inscription-cote ul { list-style: none; padding: 0; margin: 24px 0 0; }
.inscription-cote li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ligne); font-weight: 600; }
.inscription-cote li svg { width: 24px; height: 24px; color: var(--or); flex: none; }
@media (max-width: 900px) { .inscription-grille { grid-template-columns: minmax(0, 1fr); } .inscription-cote { position: static; } .inscription-cote .portrait { max-width: 180px; } }

.note-demo { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--gris); background: var(--perle); border-left: 3px solid var(--or); padding: 14px 18px; margin-bottom: 34px; }
fieldset { border: 0; padding: 0; margin: 0 0 44px; }
legend { display: flex; align-items: baseline; gap: 14px; padding: 0; margin-bottom: 22px; font-family: var(--f-titre); font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; }
legend .num { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--or-texte); font-size: 1.6rem; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.champ-large { grid-column: 1 / -1; }
@media (max-width: 640px) { .champs { grid-template-columns: minmax(0, 1fr); } }
.liste-objectifs b { color: var(--texte); }
.champ label, .champ .label-champ { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; }
.obligatoire { color: var(--rouge); margin-left: 2px; }
.facultatif { color: var(--gris-clair); font-weight: 500; margin-left: 4px; }
.legende-obligatoire { font-size: .88rem; color: var(--gris); margin-bottom: 30px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texte); background: var(--blanc);
  padding: 14px 2px; border: 0; border-bottom: 1.5px solid var(--bordure-champ); border-radius: 0;
  transition: border-color .3s, background .3s;
}
select { padding-right: 24px; appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23121212' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 4px center no-repeat; }
textarea { min-height: 110px; resize: vertical; border: 1.5px solid var(--bordure-champ); padding: 14px; border-radius: var(--rayon); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--or); }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 2px 0 0 var(--or); }
.aide { font-size: .8rem; color: var(--gris); margin: 8px 0 0; }
.msg-erreur { display: none; color: var(--rouge); font-size: .8rem; font-weight: 600; margin-top: 6px; }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: var(--rouge); }
.champ.erreur .msg-erreur, .case.erreur .msg-erreur { display: block; }
.case { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.case input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--noir); flex: none; }
.case label { font-size: .95rem; }
.case.erreur label { color: var(--rouge); }
.radios { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border: 1.5px solid var(--bordure-champ); border-radius: 999px; font-weight: 500; cursor: pointer; }
.radios input { accent-color: var(--noir); }
.resume-erreurs { display: none; color: var(--rouge); font-weight: 600; border-left: 3px solid var(--rouge); padding: 12px 16px; background: #fdf3f0; margin-bottom: 26px; }
.resume-erreurs.visible { display: block; }
.resultat-test { display: none; border-top: 3px solid var(--or); background: var(--perle); padding: clamp(26px, 4vw, 44px); }
.resultat-test.visible { display: block; animation: apparait .8s var(--ease) both; }
.resultat-test h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.resultat-test dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 26px; margin: 22px 0 30px; }
.resultat-test dt { font-weight: 600; color: var(--gris); }
.resultat-test dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .resultat-test dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .resultat-test dd { margin-bottom: 12px; } }
.resultat-test, .formulaire { scroll-margin-top: 110px; }
[hidden] { display: none !important; }

/* ---------- 15. Contact ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--texte); }
.contact-ligne { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--ligne); text-decoration: none; }
.contacts .contact-ligne:nth-child(odd) { padding-right: clamp(20px, 3vw, 40px); }
.contacts .contact-ligne:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--ligne); }
.contact-ligne small { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); margin-bottom: 8px; }
.contact-ligne strong { font-family: var(--f-titre); font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; transition: color .3s; }
.contact-ligne .rond { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ligne); transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.contact-ligne .rond svg { width: 22px; height: 22px; }
.contact-ligne:hover strong { color: var(--or-texte); }
.contact-ligne:hover .rond { background: var(--noir); color: var(--or); border-color: var(--noir); transform: rotate(-12deg); }
@media (max-width: 760px) { .contacts { grid-template-columns: minmax(0, 1fr); } .contacts .contact-ligne:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; } }

.mentions { margin-top: 70px; border-top: 1px solid var(--ligne); padding-top: 26px; font-size: .9rem; color: var(--gris); }
.mentions summary { cursor: pointer; font-weight: 600; color: var(--texte); }
.mentions h3 { font-size: 1rem; margin: 22px 0 6px; }
.a-completer { background: #fff3cf; padding: 0 6px; border-radius: 3px; }

/* ---------- 16. Pied de page ---------- */
.pied { padding: clamp(70px, 9vw, 110px) 0 30px; position: relative; overflow: hidden; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .pied-haut { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pied-haut { grid-template-columns: minmax(0, 1fr); } }
.pied-logo { display: inline-block; background: var(--blanc); padding: 10px 14px; border-radius: 6px; margin-bottom: 24px; }
.pied-logo img { height: 72px; width: auto; }
.pied h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin: 0 0 18px; font-weight: 600; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied a { text-decoration: none; color: #e9e6df; transition: color .3s; }
.pied a:hover { color: var(--or); }
.pied p { color: #a29d93; max-width: 36ch; }
.pied-haut + .pied-bas { margin-top: clamp(50px, 7vw, 80px); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8d887f; }
.pied .pied-credit { margin: 14px 0 0; max-width: none; font-size: .74rem; letter-spacing: .04em; color: #8d887f; }

/* ---------- 17. Animations au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; }
.js .reveal.d4 { transition-delay: .4s; } .js .reveal.d5 { transition-delay: .5s; }

/* Symbole qui se dessine (traits en pathLength=100) */
.dessin { stroke-dasharray: 100 100; stroke-dashoffset: 100; fill-opacity: 0; transition: stroke-dashoffset 2.4s var(--ease), fill-opacity .9s 1.5s; }
.dessin.visible, .visible .dessin { stroke-dashoffset: 0; fill-opacity: 1; }
.dessin.immediat { animation: trace 2.6s .5s var(--ease) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; fill-opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dessin { stroke-dashoffset: 0; fill-opacity: 1; }
  .defilant-piste { animation: none; }
}

/* ---------- 28. Classes utilitaires (remplacent les styles en ligne, exigé par la CSP) ---------- */
.sprite-adinkra { position: absolute; width: 0; height: 0; overflow: hidden; }
.section.section-serree { padding-top: clamp(50px, 7vw, 90px); }
.section.section-compacte { padding-block: clamp(60px, 8vw, 100px); }
.espace-haut { margin-top: 44px; }
.espace-haut-xl { margin-top: clamp(60px, 8vw, 100px); }
.aide.espace-haut-s { margin-top: 22px; }
.titre-moyen { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- 29. Accessibilité : pause des animations (WCAG 2.2.2) ---------- */
.defilant { position: relative; }
.btn-pause {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--noir); color: var(--blanc); border: 1px solid rgba(226,164,12,.6);
  font: 600 .75rem/1 var(--f-texte); letter-spacing: .04em; cursor: pointer;
}
.btn-pause:hover { background: var(--or); color: var(--noir); }
.btn-pause .icone-pause { display: inline-flex; gap: 3px; }
.btn-pause .icone-pause::before, .btn-pause .icone-pause::after { content: ""; width: 3px; height: 10px; background: currentColor; }
.pause-animations .btn-pause .icone-pause { gap: 0; }
.pause-animations .btn-pause .icone-pause::before { width: 0; height: 0; background: none; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pause-animations .btn-pause .icone-pause::after { display: none; }
.pause-animations .defilant-piste, .pause-animations .tourne, .pause-animations .flotte,
.pause-animations .panneau-symbole::before { animation-play-state: paused !important; }

/* ---------- 30. Anti-spam : champ piège invisible pour les humains ---------- */
.champ-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 31. Pages légales ---------- */
.page-legale { max-width: 760px; }
.page-legale h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.2em 0 .6em; }
.page-legale h2:first-child { margin-top: 0; }
.page-legale p, .page-legale li { color: var(--gris); }
.page-legale ul { padding-left: 1.2em; }
.page-legale li { margin-bottom: .4em; }
.page-legale table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.6em; }
.page-legale th, .page-legale td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.page-legale th { color: var(--texte); font-weight: 600; }
.tableau-defile { overflow-x: auto; }
.avertissement-legal { border-left: 3px solid var(--or); background: var(--perle); padding: 16px 20px; margin-bottom: 40px; color: var(--texte); }
.a-completer { background: #fff3cf; color: #5e4100; padding: 0 6px; border-radius: 3px; font-weight: 600; }
.liens-legaux { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--ligne); font-size: .92rem; }
.liens-legaux a { color: var(--gris); }
.liens-legaux a:hover { color: var(--texte); }

/* Avis « démonstration » plus visible sur la page Inscription */
.note-demo { font-size: .95rem; color: var(--texte); }
.note-demo strong { color: var(--or-texte); }
/* Sur petit écran : bouton pause réduit à l'icône (le texte reste lu par les lecteurs d'écran) */
@media (max-width: 640px) {
  .btn-pause { padding: 10px; }
  .btn-pause [data-texte] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.page-titre h1.titre-legal { font-size: clamp(1.6rem, 6.6vw, 6rem); }

/* ---------- 32. États du formulaire connecté ---------- */
.etat-chargement { color: var(--gris); font-style: italic; padding: 18px 0; }
.candidatures-fermees { border-top: 3px solid var(--or); background: var(--perle); padding: clamp(26px, 4vw, 44px); margin-bottom: 30px; }
.candidatures-fermees h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.candidatures-fermees p { color: var(--gris); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn[disabled]::before { transform: translateY(101%); }
.case label a, .aide a { color: var(--or-texte); }

/* ---------- Page Partenaires ---------- */
.dossier-couverture { display: block; align-self: center; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(11,11,11,.45); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.dossier-couverture:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(11,11,11,.55); }
.dossier-couverture img { width: 100%; height: auto; }
.dossier-infos { font-size: .9rem; font-weight: 600; letter-spacing: .04em; color: var(--gris-clair); }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
