/* ==========================================================================
   UJEBCI — feuille de styles du site
   Trois couleurs, tirées du logo : vert profond, orange, ivoire.
   Police : Inclusive Sans (licence OFL, choisie par l'UJEBCI) pour les titres
   (« UJ Titre », graisse 700) comme pour les textes (« UJ Texte »).
   ========================================================================== */

@font-face { font-family: "UJ Titre"; src: url("/assets/fonts/inclusive-sans.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "UJ Texte"; src: url("/assets/fonts/inclusive-sans.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "UJ Texte"; src: url("/assets/fonts/inclusive-sans-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --vert-950: #011f09;
  --vert-900: #022b0d;
  --vert-800: #033a12;
  --orange: #ff6b00;
  --orange-texte: #b04500;      /* orange assombri pour le texte sur fond clair (AA) */
  --ivoire: #faf3e6;
  --blanc: #fffcf6;             /* cartes, plus claires que le fond ivoire */

  --encre: var(--vert-900);
  --encre-douce: #3c5443;       /* texte secondaire sur ivoire */
  --clair-doux: #c9d3c5;        /* texte secondaire sur vert */
  --filet-clair: rgba(2, 43, 13, .14);
  --filet-sombre: rgba(250, 243, 230, .16);

  --f-titre: "UJ Titre", "Inclusive Sans", system-ui, sans-serif;
  --f-texte: "UJ Texte", "Inclusive Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rail: 0px;
  --entete: 72px;
  --bord: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --section: clamp(72px, 10vw, 152px);
  --rayon: 4px;
  --transition: .25s cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1100px) { :root { --rail: 64px; --entete: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; padding-left: var(--rail);
  font: 400 1.0625rem/1.6 var(--f-texte);
  color: var(--encre); background: var(--ivoire);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-titre); font-weight: 700; text-transform: uppercase; line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.1; }
h4 { font-size: 1.25rem; line-height: 1.05; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--vert-900); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 18px; background: var(--orange); color: var(--vert-900); font-weight: 600; transform: translateY(-160%); }
.evitement:focus { transform: none; }

.enveloppe { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--bord); }
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.section { padding-block: var(--section); }
.section--sombre { background: var(--vert-800); color: var(--ivoire); }
.section--nuit { background: var(--vert-900); color: var(--ivoire); }
.section--orange { background: var(--orange); color: var(--vert-900); }
.section--blanc { background: var(--blanc); }
.section:not([class*="--"]) + .section:not([class*="--"]) { padding-top: 0; }

/* Sur-titre numéroté (01 — Qui sommes-nous) */
.surtitre { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; font: 600 .8125rem/1 var(--f-texte); letter-spacing: .08em; text-transform: uppercase; }
.surtitre span:first-child { color: var(--orange-texte); }
.section--sombre .surtitre span:first-child, .section--nuit .surtitre span:first-child, .page-tete .surtitre span:first-child { color: var(--orange); }
.surtitre::after { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; opacity: .4; order: 1; }
.surtitre span:last-child { order: 2; }

.titre-section { font-size: clamp(1.875rem, 3.2vw, 3.375rem); }
.chapeau { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.35; font-weight: 400; letter-spacing: -.01em; }
.texte-doux { color: var(--encre-douce); }
.section--sombre .texte-doux, .section--nuit .texte-doux { color: var(--clair-doux); }
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: 1.125rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--orange-texte); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--rayon);
  font: 600 .9375rem/1 var(--f-texte); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton--primaire { background: var(--orange); color: var(--vert-900); border-color: var(--orange); }
.bouton--primaire:hover { background: transparent; color: inherit; }
.bouton--contour { border-color: currentColor; background: transparent; }
.bouton--contour:hover { background: var(--encre); color: var(--ivoire); border-color: var(--encre); }
.section--sombre .bouton--contour:hover, .section--nuit .bouton--contour:hover, .heros .bouton--contour:hover, .page-tete .bouton--contour:hover { background: var(--ivoire); color: var(--vert-900); border-color: var(--ivoire); }
.section--orange .bouton--primaire { background: var(--vert-900); color: var(--ivoire); border-color: var(--vert-900); }
.section--orange .bouton--primaire:hover { background: transparent; color: var(--vert-900); }
.bouton--petit { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }

.lien-fleche { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; }
.lien-fleche svg { width: 18px; height: 18px; transition: transform var(--transition); }
.lien-fleche:hover { text-decoration-color: currentColor; }
.lien-fleche:hover svg { transform: translateX(4px); }

/* ---------- Rail latéral (bureau) ---------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--rail);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: 28px 0; background: var(--vert-950); color: var(--ivoire);
  }
  .rail__marque { width: 30px; }
  .rail__texte { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 .75rem/1 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--clair-doux); white-space: nowrap; }
  .rail__pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ivoire); cursor: pointer; }
  .rail__pause svg { width: 22px; height: 22px; }
  .rail__pause:hover { color: var(--orange); }
  .rail__progression { position: relative; width: 2px; height: 120px; background: var(--filet-sombre); overflow: hidden; }
  .rail__progression i { position: absolute; inset: 0; background: var(--orange); transform-origin: top; transform: scaleY(var(--p, 0)); }
}

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 50; height: var(--entete);
  color: var(--ivoire); transition: background-color .3s, color .3s, box-shadow .3s;
}
.entete__barre { height: 100%; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.entete--plein, body.sans-heros .entete { background: var(--ivoire); color: var(--encre); box-shadow: 0 1px 0 var(--filet-clair); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque img { width: 44px; height: auto; }
.marque__nom { font: 700 1.375rem/1 var(--f-titre); letter-spacing: 0; }
.marque__long { display: none; font: 500 .75rem/1.3 var(--f-texte); white-space: nowrap; opacity: .85; }
@media (min-width: 1500px) { .marque__long { display: block; padding-left: 12px; border-left: 1px solid currentColor; } }
.nav-court { display: none; }
@media (min-width: 1200px) {
  .nav-court { display: flex; gap: 26px; }
  .nav-court a { position: relative; font: 500 .9375rem/1 var(--f-texte); text-decoration: none; padding: 8px 0; }
  .nav-court a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
  .nav-court a:hover::after, .nav-court a[aria-current="page"]::after { transform: none; }
  .nav-court a[aria-current="page"] { font-weight: 600; }
}
.bouton-icone {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.bouton-icone svg { width: 18px; height: 18px; }
.bouton-icone:hover { background: currentColor; }
.bouton-icone:hover svg { color: var(--vert-900); }
.entete--plein .bouton-icone:hover svg, body.sans-heros .bouton-icone:hover svg { color: var(--ivoire); }
.bouton-menu { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 600 .9375rem/1 var(--f-texte); }
.bouton-menu__traits { display: grid; gap: 6px; width: 26px; }
.bouton-menu__traits i { display: block; height: 2px; background: currentColor; }
.bouton-menu__traits i:last-child { width: 70%; justify-self: end; }
.entete .bouton--primaire { display: none; }
@media (min-width: 720px) { .entete .bouton--primaire { display: inline-flex; min-height: 44px; } }
@media (max-width: 719px) { .bouton-menu__mot { display: none; } }

/* ---------- Menu : panneau demi-écran façon iida ---------- */
.menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s .5s; }
.menu.est-ouvert { visibility: visible; transition: none; }
.menu__voile { position: absolute; inset: 0; background: rgba(1, 31, 9, .62); opacity: 0; transition: opacity .4s; }
.menu.est-ouvert .menu__voile { opacity: 1; }
.menu__panneau {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(880px, 100%);
  display: flex; flex-direction: column; padding: 0 clamp(24px, 3vw, 44px);
  background: var(--vert-950); color: var(--ivoire); overflow-x: hidden; overflow-y: auto;
  transform: translateX(-100%); transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}
.menu.est-ouvert .menu__panneau { transform: none; }
@media (prefers-reduced-motion: reduce) { .menu__panneau, .menu__voile { transition: none; } }
.menu__fond { position: absolute; left: 30%; bottom: -30%; width: 900px; color: var(--orange); opacity: .14; pointer-events: none; }
.menu__haut { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--entete); padding-right: 64px; }
.menu__haut .bouton { min-height: 46px; }
.menu__corps { position: relative; flex: 1; display: grid; gap: 8px 48px; align-content: center; padding: 40px 72px 40px 0; }
@media (min-width: 720px) { .menu__corps { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.menu__corps ul, .menu__bas ul { list-style: none; }
.menu__principal a { display: inline-block; padding: 8px 0; font: 400 clamp(1.625rem, 2.3vw, 2.125rem)/1.15 var(--f-texte); letter-spacing: -.01em; text-decoration: none; }
.menu__second a { display: inline-block; padding: 8px 0; font: 400 1.25rem/1.3 var(--f-texte); text-decoration: none; }
@media (min-width: 720px) { .menu__second { padding-top: 6px; } }
.menu__corps a:hover { color: var(--orange); }
.menu__corps a[aria-current="page"] { color: var(--orange); font-weight: 500; }
.menu__bas { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; padding: 28px 72px 36px 0; border-top: 1px solid var(--filet-sombre); }
.menu__bas { align-items: start; }
.menu__bas ul { display: grid; gap: 12px; align-content: start; }
.menu__bas a { font-size: .9375rem; text-decoration: none; color: var(--clair-doux); }
.menu__bas a:hover { color: var(--ivoire); text-decoration: underline; }
.menu__fermer { position: absolute; right: clamp(16px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--ivoire); cursor: pointer; }
.menu__fermer svg { width: 30px; height: 30px; }
.menu__fermer:hover { color: var(--orange); }
@media (max-width: 719px) {
  .menu__fermer { top: 14px; transform: none; }
  .menu__haut { padding-right: 56px; }
  .menu__haut .bouton { display: none; }
  .menu__corps, .menu__bas { padding-right: 0; }
  .menu__bas { grid-template-columns: 1fr 1fr; }
}

/* ---------- Recherche ---------- */
.recherche { position: fixed; inset: 0; z-index: 110; background: rgba(1, 31, 9, .6); visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.recherche.est-ouvert { visibility: visible; opacity: 1; transition: opacity .25s; }
.recherche__panneau { background: var(--ivoire); color: var(--encre); padding-block: 28px 40px; max-height: 88vh; overflow-y: auto; margin-left: var(--rail); }
.recherche__ligne { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--encre); }
.recherche__ligne svg { width: 28px; height: 28px; flex: none; }
.recherche input { flex: 1; min-width: 0; height: 76px; border: 0; background: none; font: 700 clamp(1.375rem, 2.8vw, 2.25rem)/1 var(--f-titre); text-transform: uppercase; }
.recherche input::placeholder { color: var(--encre-douce); opacity: .6; }
.recherche input:focus { outline: none; }
.recherche__resultats { list-style: none; margin-top: 12px; }
.recherche__resultats a { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--filet-clair); text-decoration: none; }
.recherche__resultats a:hover strong { text-decoration: underline; }
.recherche__resultats small { font-weight: 600; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-texte); padding-top: 4px; }
.recherche__resultats strong { font-size: 1.1875rem; }
.recherche__resultats span { grid-column: 2; color: var(--encre-douce); font-size: .9375rem; }
.recherche__vide { padding: 24px 0; color: var(--encre-douce); }
@media (max-width: 640px) { .recherche__resultats a { grid-template-columns: minmax(0, 1fr); } .recherche__resultats span { grid-column: 1; } }

/* ---------- Courbes de niveau (motif de la carte) ---------- */
.courbes { color: var(--orange); }
.courbes path { fill: none; stroke: currentColor; stroke-width: 2.6; }
.courbes path.trait-carte { stroke: var(--ivoire); stroke-width: 3.6; }
.anime .courbes path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 2.4s cubic-bezier(.6, 0, .2, 1) forwards; }
.anime .courbes path:nth-child(2n) { animation-delay: .12s; }
.anime .courbes path:nth-child(3n) { animation-delay: .24s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .anime .courbes path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Héros (accueil) ---------- */
.heros { position: relative; height: 100svh; min-height: 680px; max-height: 1100px; background: var(--vert-800); color: var(--ivoire); overflow: hidden; }
.diapo { position: absolute; inset: 0; display: flex; align-items: flex-start; visibility: hidden; opacity: 0; transition: opacity .45s, visibility 0s .45s; }
.diapo.est-active { visibility: visible; opacity: 1; transition: opacity .7s .35s; }
.diapo .diapo__texte > * { transition: transform .9s cubic-bezier(.2,.7,.2,1) .35s; }
.diapo:not(.est-active) .diapo__texte > * { transform: translateY(24px); }
.diapo__visuel { position: absolute; inset: 0; pointer-events: none; }
.diapo__visuel img.photo { width: 100%; height: 100%; object-fit: cover; }
.diapo__visuel.avec-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1, 31, 9, .92) 8%, rgba(1, 31, 9, .35) 55%, rgba(1, 31, 9, .5)); }
.diapo__contenu { position: relative; width: 100%; padding-top: calc(var(--entete) + clamp(48px, 11vh, 140px)); padding-bottom: 120px; }
.diapo__texte { grid-column: 1 / -1; }
@media (min-width: 1000px) { .diapo__texte { grid-column: 1 / span 6; } }
.diapo__accroche { display: block; margin-bottom: 22px; font: 600 1rem/1.3 var(--f-texte); color: var(--orange); }
.heros h1, .heros .diapo__titre { font-size: clamp(2.125rem, 3.5vw, 4.25rem); line-height: 1.02; }
.diapo__desc { max-width: 52ch; margin: 28px 0 32px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--clair-doux); }
/* visuel diapo 1 : courbes de niveau à droite */
.diapo--carte .courbes { position: absolute; right: -6%; top: 50%; width: min(78vh, 62vw); transform: translateY(-46%); }
@media (max-width: 999px) { .diapo--carte .courbes { right: -38%; top: auto; bottom: 70px; width: 86vw; transform: none; opacity: .2; } }
/* visuel diapo 2 : mosaïque des emblèmes */
.mosaique { position: absolute; left: 60%; top: 50%; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.1vw, 18px); width: min(46vw, 860px); transform: translateY(-56%) rotate(-8deg); }
.mosaique img { width: 100%; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25)); }
.mosaique img:nth-child(odd) { transform: translateY(18%); }
@media (max-width: 999px) { .mosaique { width: 120vw; right: -45%; top: auto; bottom: 0; transform: rotate(-8deg); opacity: .18; } }
/* commandes du carrousel (façon iida) */
.heros__commandes { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid var(--filet-sombre); }
.heros__commandes .enveloppe { display: flex; align-items: stretch; min-height: 84px; }
.onglets { display: flex; flex: 1; min-width: 0; }
.onglet { position: relative; flex: 1; min-width: 0; padding: 20px 18px 20px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--clair-doux); }
.onglet + .onglet { padding-left: 18px; border-left: 1px solid var(--filet-sombre); }
.onglet b { display: block; font: 600 .75rem/1 var(--f-texte); color: var(--orange); margin-bottom: 8px; }
.onglet span { display: block; font: 500 .9375rem/1.25 var(--f-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onglet[aria-selected="true"] { color: var(--ivoire); }
.onglet i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.onglet[aria-selected="true"] i { animation: progression var(--duree, 7s) linear forwards; }
.heros.en-pause .onglet[aria-selected="true"] i, .heros.sans-auto .onglet[aria-selected="true"] i { animation: none; transform: scaleX(1); }
@keyframes progression { to { transform: scaleX(1); } }
.heros__fleches { display: flex; align-items: center; gap: 10px; padding-left: 24px; }
@media (max-width: 999px) { .onglet:not([aria-selected="true"]) { display: none; } .onglet + .onglet { border-left: 0; padding-left: 0; } }
@media (min-width: 1100px) { .heros__fleches [data-pause] { display: none; } }

/* ---------- En-tête de page intérieure ---------- */
.page-tete { position: relative; background: var(--vert-800); color: var(--ivoire); padding: calc(var(--entete) + clamp(64px, 9vw, 140px)) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.page-tete .courbes { position: absolute; right: -8%; top: 50%; width: min(760px, 70vw); transform: translateY(-40%); opacity: .45; }
.page-tete__contenu { position: relative; }
.page-tete h1 { font-size: clamp(2.125rem, 4.4vw, 4.75rem); max-width: 18ch; }
.page-tete .chapeau { max-width: 46ch; margin-top: 28px; color: var(--clair-doux); }
.fil { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 28px; font-size: .875rem; color: var(--clair-doux); }
.fil li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.page-tete--photo { min-height: 78vh; display: flex; align-items: flex-end; }
.page-tete--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-tete--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(1, 31, 9, .94) 10%, rgba(1, 31, 9, .3) 70%); }
.page-tete--photo .page-tete__contenu { z-index: 2; width: 100%; }

/* ---------- Accueil : qui sommes-nous ---------- */
.intro__titre { grid-column: 1 / -1; }
.intro__chapeau { grid-column: 1 / -1; margin-top: 40px; }
.intro__cote { grid-column: 1 / -1; margin-top: 32px; }
@media (min-width: 1000px) {
  .intro__titre { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .intro__chapeau { grid-row: 1; align-self: start; }
  .intro__cote { grid-row: 2; align-self: start; }
  .intro__chapeau { grid-column: 6 / span 7; margin-top: 0; font-size: clamp(1.5rem, 2.3vw, 2.25rem); line-height: 1.28; }
  .intro__cote { grid-column: 6 / span 7; }
}
.intro__colonnes { display: grid; gap: 28px; margin: 40px 0 36px; padding-top: 32px; border-top: 1px solid var(--filet-clair); }
@media (min-width: 720px) { .intro__colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--filet-sombre); }
@media (min-width: 900px) { .chiffres { grid-template-columns: repeat(5, 1fr); } }
.chiffre { padding: 36px 20px 8px 0; border-bottom: 1px solid var(--filet-sombre); }
@media (min-width: 900px) { .chiffre { border-bottom: 0; } .chiffre + .chiffre { padding-left: 24px; border-left: 1px solid var(--filet-sombre); } }
.chiffre strong { display: block; font: 700 clamp(3rem, 5.6vw, 5.5rem)/.9 var(--f-titre); color: var(--orange); font-variant-numeric: lining-nums tabular-nums; }
.chiffre span { display: block; margin-top: 16px; font-size: 1rem; line-height: 1.35; max-width: 18ch; }
.chiffre--carte svg { width: 92px; height: auto; color: var(--orange); margin-bottom: 4px; }
.chiffre--carte svg path { fill: none; stroke: currentColor; stroke-width: 6; }
.note { font-size: .875rem; color: var(--clair-doux); margin-top: 28px; }

/* ---------- Vision et valeurs ---------- */
.vision { display: grid; gap: 40px; }
@media (min-width: 1000px) { .vision { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.valeurs { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--encre); }
.valeur { display: grid; gap: 12px 32px; padding: 32px 0; border-bottom: 1px solid var(--filet-clair); align-items: baseline; }
@media (min-width: 900px) { .valeur { grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 6fr); } }
.valeur b { font-weight: 600; font-size: .875rem; color: var(--orange-texte); }
.valeur h3 { font-size: clamp(2.25rem, 4.8vw, 4.5rem); line-height: .95; }
.valeur p { margin: 0; font-size: 1.125rem; max-width: 46ch; }
.valeurs-plus { margin-top: 28px; max-width: 70ch; }

/* ---------- Directions (cartes) ---------- */
.tete-section { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.tete-section > div { max-width: 760px; }
.tete-section p { margin: 24px 0 0; }
.cartes-directions { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--filet-clair); border: 1px solid var(--filet-clair); }
@media (min-width: 720px) { .cartes-directions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cartes-directions { grid-template-columns: repeat(5, 1fr); } }
.carte-direction a { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(18px, 2vw, 28px); background: var(--blanc); text-decoration: none; transition: background-color .2s; }
.carte-direction img { width: 72%; margin: 8px auto 24px; transition: transform .45s cubic-bezier(.25, .6, .3, 1); }
.carte-direction b { font-size: .8125rem; font-weight: 600; color: var(--orange-texte); }
.carte-direction strong { display: block; margin-top: 6px; font: 700 clamp(.9375rem, 1.05vw, 1.0625rem)/1.15 var(--f-titre); text-transform: uppercase; }
.carte-direction a:hover { background: var(--blanc); }
.carte-direction a:hover img { transform: scale(1.06); }
.carte-direction a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Programmes (liste en rangées, façon tableau iida) ---------- */
.rangees { list-style: none; border-top: 1px solid var(--filet-sombre); }
.rangee a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 8px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--filet-sombre); text-decoration: none; transition: padding .25s, background-color .25s; }
.rangee b { font-weight: 600; font-size: .875rem; color: var(--orange); }
.rangee .programme-nom { font: 700 clamp(1.375rem, 2.6vw, 2.625rem)/1 var(--f-titre); text-transform: uppercase; }
.programme-nom small { display: block; font: 600 .75rem/1 var(--f-texte); letter-spacing: .14em; opacity: .7; margin-bottom: 8px; }
.rangee p { grid-column: 2; margin: 0; color: var(--clair-doux); }
.rangee svg { grid-row: 1; grid-column: 3; width: 28px; height: 28px; justify-self: end; transition: transform var(--transition); }
@media (min-width: 900px) {
  .rangee a { grid-template-columns: 64px minmax(0, 5fr) minmax(0, 5fr) 40px; }
  .rangee p { grid-column: 3; font-size: 1.125rem; }
  .rangee svg { grid-column: 4; }
}
.rangee a:hover { background: var(--vert-900); padding-inline: 20px; }
.rangee a:hover .programme-nom { color: var(--orange); }
.rangee a:hover svg { transform: translateX(6px); }
.section:not(.section--sombre):not(.section--nuit) .rangees { border-color: var(--filet-clair); }
.section:not(.section--sombre):not(.section--nuit) .rangee a { border-color: var(--filet-clair); }
.section:not(.section--sombre):not(.section--nuit) .rangee b { color: var(--orange-texte); }
.section:not(.section--sombre):not(.section--nuit) .rangee p { color: var(--encre-douce); }
.section:not(.section--sombre):not(.section--nuit) .rangee a:hover { background: var(--blanc); }
.section:not(.section--sombre):not(.section--nuit) .rangee a:hover .programme-nom { color: var(--orange-texte); }

/* ---------- Projets (défilement horizontal) ---------- */
.defile { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 372px); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: thin; }
.defile > * { scroll-snap-align: start; }
.carte-projet { display: flex; flex-direction: column; min-height: 100%; padding: 28px; background: var(--blanc); border: 1px solid var(--filet-clair); text-decoration: none; }
.carte-projet h3 { margin: 22px 0 16px; font-size: 1.375rem; }
.carte-projet p { color: var(--encre-douce); margin-bottom: 28px; }
.carte-projet .meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--filet-clair); font-size: .875rem; color: var(--encre-douce); }
a.carte-projet:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.statut { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 600 .75rem/1 var(--f-texte); letter-spacing: .06em; text-transform: uppercase; }
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--orange-texte); }
.statut--lance::before, .statut--cours::before { background: var(--orange); border-color: var(--orange); }
.statut--realise::before { background: var(--vert-800); border-color: var(--vert-800); }
.section--sombre .statut::before, .section--nuit .statut::before { border-color: var(--orange); }
.defile__commandes { display: flex; gap: 10px; }

/* ---------- Événements (liste façon agenda) ---------- */
.agenda { list-style: none; border-top: 1px solid var(--encre); }
.agenda li { border-bottom: 1px solid var(--filet-clair); }
.agenda a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px; padding: 28px 0; text-decoration: none; align-items: center; }
@media (min-width: 900px) { .agenda a { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); } }
.agenda .sigle { font: 700 clamp(1.75rem, 2.9vw, 2.75rem)/.95 var(--f-titre); color: var(--orange-texte); }
.agenda strong { display: block; font-size: 1.375rem; line-height: 1.2; }
.agenda .sous { display: block; margin-top: 6px; color: var(--encre-douce); }
.agenda .quand { font-size: .9375rem; color: var(--encre-douce); }
.agenda .quand b { display: block; color: var(--encre); font-weight: 600; }
.agenda a:hover strong { text-decoration: underline; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filtre { min-height: 42px; padding: 0 18px; border: 1.5px solid var(--filet-clair); border-radius: 999px; background: transparent; font-weight: 500; font-size: .9375rem; cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--ivoire); }
.filtre:hover:not([aria-pressed="true"]) { border-color: var(--encre); }
.filtres select { min-height: 42px; padding: 0 40px 0 16px; border: 1.5px solid var(--filet-clair); border-radius: 999px; background: transparent; }

/* ---------- Écosystème (bloc orange façon iida) ---------- */
.ecosysteme { display: grid; gap: 48px; }
@media (min-width: 1000px) { .ecosysteme { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.ecosysteme__phrase { font: 700 clamp(1.5rem, 2.4vw, 2.375rem)/1.08 var(--f-titre); text-transform: uppercase; }
.ecosysteme__phrase span { display: block; margin-bottom: .3em; }
.ecosysteme__phrase span:last-child { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.piliers-eco { list-style: none; border-top: 1.5px solid var(--vert-900); }
.piliers-eco li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0; border-bottom: 1px solid rgba(2, 43, 13, .3); }
@media (min-width: 720px) { .piliers-eco li { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 32px; } }
.piliers-eco h3 { font-size: 1.375rem; }
.piliers-eco p { margin: 0; }

/* ---------- Dirigeants ---------- */
.dirigeants { list-style: none; display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dirigeant figure { margin: 0; }
.dirigeant .cadre { aspect-ratio: 4 / 5; overflow: hidden; background: var(--vert-900); }
.dirigeant img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dirigeant:hover img { transform: scale(1.03); }
.dirigeant figcaption { padding-top: 20px; }
.dirigeant strong { display: block; font: 700 1.5rem/1.05 var(--f-titre); text-transform: uppercase; }
.dirigeant span { display: block; margin-top: 8px; color: var(--encre-douce); }
.section--sombre .dirigeant span, .section--nuit .dirigeant span { color: var(--clair-doux); }
.dirigeant--attente .cadre { display: grid; place-items: center; border: 1px dashed var(--filet-sombre); background: transparent; }
.dirigeant--attente .cadre svg { width: 40%; color: var(--filet-sombre); }

/* ---------- Actualités ---------- */
.articles { list-style: none; display: grid; gap: clamp(28px, 3vw, 40px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.article-carte a { display: block; text-decoration: none; }
.article-carte .vignette { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--vert-800); position: relative; }
.article-carte .vignette img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.article-carte .vignette--emblemes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px; align-content: center; }
.article-carte .vignette--emblemes img { height: auto; object-fit: contain; }
.article-carte a:hover .vignette > img { transform: scale(1.04); }
.article-carte .type { display: block; margin: 20px 0 10px; font: 600 .8125rem/1 var(--f-texte); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-texte); }
.article-carte h3 { font: 600 1.375rem/1.25 var(--f-texte); text-transform: none; letter-spacing: 0; }
.article-carte a:hover h3 { text-decoration: underline; }
.article-carte p { margin: 10px 0 0; color: var(--encre-douce); }

/* ---------- Appel final ---------- */
.appel { position: relative; overflow: hidden; }
.appel .courbes { position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); transform: translate(-50%, -50%); opacity: .3; }
.appel__contenu { position: relative; text-align: center; }
.appel__titre { font-size: clamp(2.25rem, 7vw, 7.75rem); line-height: .98; }
.appel__titre span { color: var(--orange); }
.appel p { max-width: 54ch; margin: 32px auto 40px; font-size: 1.25rem; color: var(--clair-doux); }
.appel .boutons { justify-content: center; }

/* ---------- Lettre d'information ---------- */
.lettre { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1000px) { .lettre { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.lettre h2 { font-size: clamp(1.75rem, 2.9vw, 2.75rem); }
.lettre form { display: flex; flex-wrap: wrap; gap: 12px; }
.lettre .champ { flex: 1 1 280px; margin: 0; }
.lettre .consentement { flex-basis: 100%; }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert-950); color: var(--ivoire); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.pied__haut { display: grid; gap: 48px; }
@media (min-width: 1000px) { .pied__haut { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.pied__marque img { width: 120px; }
.pied__marque p { margin-top: 24px; max-width: 38ch; color: var(--clair-doux); }
.pied__colonnes { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .pied__colonnes { grid-template-columns: repeat(4, 1fr); } }
.pied h2 { font: 600 .8125rem/1 var(--f-texte); letter-spacing: .08em; color: var(--clair-doux); margin-bottom: 18px; }
.pied ul { list-style: none; display: grid; gap: 10px; }
.pied a { text-decoration: none; font-size: .9375rem; }
.pied a:hover { text-decoration: underline; color: var(--orange); }
.pied address { font-style: normal; font-size: .9375rem; line-height: 1.7; }
.pied .a-completer { color: var(--clair-doux); font-style: italic; }
.reseaux { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.reseaux a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--filet-sombre); border-radius: 50%; }
.reseaux a:hover { border-color: var(--orange); background: var(--orange); color: var(--vert-900); }
.reseaux svg { width: 17px; height: 17px; }
.pied__geant { display: block; width: 100%; margin: clamp(56px, 8vw, 112px) 0 clamp(20px, 2.4vw, 36px); padding-top: .14em; font: 700 clamp(2.75rem, 12vw, 11.5rem)/1 var(--f-titre); text-transform: uppercase; color: var(--vert-800); white-space: nowrap; letter-spacing: -.01em; text-align: center; user-select: none; }
.pied__bas { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid var(--filet-sombre); font-size: .875rem; color: var(--clair-doux); }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Mise en page des pages intérieures ---------- */
.deux-col { display: grid; gap: 40px; }
@media (min-width: 1000px) { .deux-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .deux-col--large { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.bloc + .bloc { margin-top: clamp(56px, 7vw, 96px); }
.liste-filet { list-style: none; border-top: 1px solid var(--filet-clair); }
.liste-filet li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet-clair); font-size: 1.0625rem; }
.liste-filet li::before { content: ""; flex: none; width: 10px; height: 1.5px; margin-top: .8em; background: var(--orange-texte); }
.section--sombre .liste-filet, .section--sombre .liste-filet li, .section--nuit .liste-filet, .section--nuit .liste-filet li { border-color: var(--filet-sombre); }
.section--sombre .liste-filet li::before, .section--nuit .liste-filet li::before { background: var(--orange); }
.colonnes-2 { columns: 1; }
@media (min-width: 720px) { .colonnes-2 { columns: 2; column-gap: 40px; } .colonnes-2 li { break-inside: avoid; } }

.piliers { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--filet-sombre); }
@media (min-width: 720px) { .piliers { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .piliers { grid-template-columns: repeat(7, 1fr); } }
.piliers li { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--filet-sombre); }
.piliers b { display: block; font-size: .8125rem; color: var(--orange); margin-bottom: 14px; }
.piliers span { font: 700 1.125rem/1.1 var(--f-titre); text-transform: uppercase; }

.missions { list-style: none; display: grid; gap: 1px; background: var(--filet-clair); border: 1px solid var(--filet-clair); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .missions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .missions { grid-template-columns: repeat(4, 1fr); } }
.missions li { padding: 28px; background: var(--blanc); }
.missions b { font-size: .8125rem; color: var(--orange-texte); }
.missions h3 { margin: 14px 0 12px; font-size: 1.5rem; }
.missions p { margin: 0; color: var(--encre-douce); }

.citation { margin: 0; font: 700 clamp(1.5rem, 2.9vw, 2.625rem)/1.08 var(--f-titre); text-transform: uppercase; }
.citation span { color: var(--orange); }

/* Organigramme simple */
.organes { display: grid; gap: 1px; background: var(--filet-clair); border: 1px solid var(--filet-clair); }
@media (min-width: 900px) { .organes { grid-template-columns: repeat(2, 1fr); } }
.organe { padding: clamp(24px, 3vw, 40px); background: var(--blanc); }
.organe h3 { font-size: clamp(1.375rem, 1.9vw, 1.875rem); margin-bottom: 16px; }
.organe p { color: var(--encre-douce); }

/* Page Direction */
.direction-tete { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1000px) { .direction-tete { grid-template-columns: minmax(0, 1fr) auto; } }
.direction-tete .embleme { width: clamp(120px, 14vw, 200px); }
.sommaire { position: sticky; top: calc(var(--entete) + 24px); list-style: none; display: grid; gap: 2px; font-size: .9375rem; }
.sommaire a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid var(--filet-clair); text-decoration: none; color: var(--encre-douce); }
.sommaire a:hover, .sommaire a.est-actif { border-color: var(--orange); color: var(--encre); font-weight: 600; }
@media (max-width: 999px) { .sommaire { display: none; } }
.rubrique { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--filet-clair); }
.rubrique:first-child { border-top: 0; padding-top: 0; }
.rubrique h2 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); margin-bottom: 24px; }
.etat-vide { display: flex; gap: 18px; padding: 24px; border: 1px dashed rgba(2, 43, 13, .3); background: var(--blanc); color: var(--encre-douce); }
.etat-vide svg { flex: none; width: 24px; height: 24px; color: var(--orange-texte); }
.etat-vide p { margin: 0; }
.directeur { display: grid; gap: 24px; grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
.directeur .cadre { aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--vert-800); color: var(--clair-doux); }
.directeur .cadre svg { width: 50%; }
.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes li { padding: 8px 14px; border: 1px solid var(--filet-clair); background: var(--blanc); font-size: .9375rem; }
.voisins { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--filet-clair); }
.voisins a { display: block; padding: 32px 0; text-decoration: none; }
.voisins a + a { text-align: right; border-left: 1px solid var(--filet-clair); padding-left: 24px; }
.voisins small { display: block; font-size: .8125rem; color: var(--encre-douce); margin-bottom: 8px; }
.voisins strong { font: 700 clamp(1rem, 1.5vw, 1.375rem)/1.1 var(--f-titre); text-transform: uppercase; }
.voisins a:hover strong { color: var(--orange-texte); }

/* Programme : logotype typographique */
.logotype { display: inline-flex; flex-direction: column; font-family: var(--f-titre); text-transform: uppercase; line-height: .82; }
.logotype small { font: 600 .875rem/1 var(--f-texte); letter-spacing: .3em; margin-bottom: 10px; color: var(--orange); }
.logotype span { font-weight: 700; font-size: clamp(2.75rem, 7.6vw, 7rem); }

/* Transparence */
.tableau { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tableau th { text-align: left; font: 600 .8125rem/1 var(--f-texte); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); padding: 14px 16px 14px 0; border-bottom: 1.5px solid var(--encre); }
.tableau td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--filet-clair); vertical-align: top; }
.tableau-defile { overflow-x: auto; }
.documents { list-style: none; border-top: 1px solid var(--filet-clair); }
.documents li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--filet-clair); }
.documents span { color: var(--encre-douce); font-size: .9375rem; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 24px; max-width: 880px; }
.formulaire fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 22px; }
.formulaire legend { padding: 0; margin-bottom: 8px; font: 700 1.375rem/1.1 var(--f-titre); text-transform: uppercase; }
.rangee-champs { display: grid; gap: 22px; }
@media (min-width: 720px) { .rangee-champs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.champ { display: grid; gap: 8px; }
.champ label, .champ .libelle { font-weight: 600; font-size: .9375rem; }
.champ .aide { font-size: .875rem; color: var(--encre-douce); margin-top: -2px; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid rgba(2, 43, 13, .35); border-radius: var(--rayon);
  background: var(--blanc); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.champ textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23022b0d' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--encre); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(255, 107, 0, .45); }
.champ input::placeholder, .champ textarea::placeholder { color: #6b7a6e; }
.champ.a-erreur input, .champ.a-erreur select, .champ.a-erreur textarea { border-color: #b3261e; background: #fff6f4; }
.erreur { display: none; font-size: .875rem; font-weight: 500; color: #b3261e; }
.champ.a-erreur .erreur { display: block; }
.requis { color: var(--orange-texte); }
.section--sombre .champ input, .section--sombre .champ select, .section--sombre .champ textarea, .section--nuit .champ input { background: var(--ivoire); color: var(--vert-900); }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; }
.consentement input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--vert-800); }
.consentement a { text-decoration: underline; }
.piege { position: absolute !important; left: -9999px; }
.formulaire__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.formulaire__envoi p { margin: 0; font-size: .875rem; color: var(--encre-douce); max-width: 46ch; }
.message-form { display: none; padding: 18px 20px; border-left: 4px solid var(--vert-800); background: var(--blanc); }
.message-form.est-visible { display: block; }
.message-form--erreur { border-color: #b3261e; }
.bouton[aria-busy="true"] { opacity: .6; pointer-events: none; }
.bascule { display: inline-flex; padding: 4px; border: 1.5px solid var(--encre); border-radius: 999px; margin-bottom: 40px; }
.bascule button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font-weight: 600; cursor: pointer; }
.bascule button[aria-selected="true"] { background: var(--encre); color: var(--ivoire); }

/* Contact */
.coordonnees { list-style: none; display: grid; gap: 28px; }
.coordonnees small { display: block; font: 600 .8125rem/1 var(--f-texte); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-texte); margin-bottom: 8px; }
.coordonnees strong { font-size: 1.25rem; font-weight: 500; }

/* ---------- Apparition au défilement ---------- */
.js .revele { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .revele.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .revele { opacity: 1; transform: none; transition: none; } }

/* ---------- Divers ---------- */
.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.mt-0 { margin-top: 0; }
.centre { text-align: center; }

/* ---------- Compléments ---------- */
.diapo .courbes--decale { position: absolute; right: -14%; top: 50%; width: min(96vh, 72vw); transform: translateY(-50%) rotate(14deg); opacity: .55; }
@media (max-width: 999px) { .diapo .courbes--decale { opacity: .2; width: 90vw; right: -40%; } }
.section--orange .surtitre span:first-child { color: var(--vert-900); }
.section--orange .liste-filet, .section--orange .liste-filet li { border-color: rgba(2, 43, 13, .3); }
.section--orange .liste-filet li::before { background: var(--vert-900); }
.section--orange .prose li::marker { color: var(--vert-900); }

h1, h2, h3 { hyphens: manual; overflow-wrap: break-word; }
@media (min-width: 1000px) { .deux-col--sommaire { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } .deux-col--sommaire > div { max-width: 920px; } }
@media (max-width: 999px) {
  .deux-col, .vision, .ecosysteme, .lettre, .pied__haut, .direction-tete { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .cartes-directions li:last-child:nth-child(odd) { grid-column: span 2; }
  .cartes-directions li:last-child:nth-child(odd) a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 18px; }
  .cartes-directions li:last-child:nth-child(odd) img { width: 38%; margin: 0; }
  .cartes-directions li:last-child:nth-child(odd) a > b, .cartes-directions li:last-child:nth-child(odd) a > strong { flex: 1 1 40%; }
}
@media (max-width: 899px) { .chiffre:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 600px) { .directeur { grid-template-columns: 64px minmax(0, 1fr); align-items: start; } }
.recherche input::-webkit-search-cancel-button, [data-recherche-page] input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ---------- Photos ---------- */
.diapo__visuel.avec-photo::after { background:
  linear-gradient(90deg, rgba(1, 31, 9, .9) 0%, rgba(1, 31, 9, .62) 38%, rgba(1, 31, 9, .12) 72%, rgba(1, 31, 9, .05) 100%),
  linear-gradient(0deg, rgba(1, 31, 9, .85) 0%, rgba(1, 31, 9, 0) 28%); }
@media (max-width: 999px) { .diapo__visuel.avec-photo::after { background: linear-gradient(0deg, rgba(1, 31, 9, .92) 18%, rgba(1, 31, 9, .55) 60%, rgba(1, 31, 9, .4) 100%); } }
.diapo .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo.est-active .photo { animation: derive 14s linear forwards; }
@keyframes derive { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .diapo.est-active .photo { animation: none; } }
.intro__photo { margin: 40px 0 0; aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden; background: var(--vert-800); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) { .intro__photo { max-width: 100%; aspect-ratio: 4 / 3; } }
.page-tete--photo > img { object-position: center 35%; }
/* Inclusive Sans est plus large : pas de retour à la ligne dans la navigation et les boutons */
.bouton, .nav-court a, .bouton-menu, .onglet span { white-space: nowrap; }
@media (min-width: 1200px) { .nav-court { gap: clamp(16px, 1.5vw, 26px); } }
@media (max-width: 1299px) { .nav-court a:nth-child(4) { display: none; } }
.marque__long { display: none !important; }
@media (min-width: 1720px) { .marque__long { display: block !important; padding-left: 12px; border-left: 1px solid currentColor; } }
@media (prefers-reduced-motion: reduce) {
  .diapo, .diapo.est-active { transition: none; }
  .diapo .diapo__texte > *, .diapo:not(.est-active) .diapo__texte > * { transition: none; transform: none; }
}
.marque, .bouton-icone, .entete .bouton, .bouton-menu { flex: none; }
@media (max-width: 1919px) { .marque__long { display: none !important; } }

/* ---------- Galerie : toute la Côte d'Ivoire ---------- */
.galerie-ci { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 900px) { .galerie-ci { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.galerie-ci figure { margin: 0; }
.galerie-ci__cadre { aspect-ratio: 4 / 5; overflow: hidden; background: var(--vert-900); }
.galerie-ci__cadre img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25, .6, .3, 1); }
.galerie-ci li:hover .galerie-ci__cadre img { transform: scale(1.04); }
.galerie-ci figcaption { display: grid; gap: 4px; padding-top: 14px; }
.galerie-ci strong { font: 700 1.125rem/1.1 var(--f-titre); text-transform: uppercase; }
.galerie-ci span { font-size: .9375rem; }
.galerie-ci small { font-size: .8125rem; opacity: .75; }
.section--sombre .galerie-ci span, .section--sombre .galerie-ci small { color: var(--clair-doux); opacity: 1; }
.galerie-ci img[src*="ci-abidjan"] { object-position: 88% 75%; }
.galerie-ci img[src*="ci-kong"] { object-position: 38% 50%; }
.diapo__visuel--droite .photo { object-position: 70% 50%; }
@media (max-width: 999px) { .diapo__visuel--droite .photo { object-position: 78% 50%; } }
@media (min-width: 1000px) {
  .diapo__visuel--droite { background: var(--vert-800); }
  .diapo__visuel--droite .photo { left: auto; right: 0; width: 66%; object-position: 62% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%); }
  .diapo__visuel--droite.avec-photo::after { background: linear-gradient(90deg, rgba(1, 31, 9, .55) 0%, rgba(1, 31, 9, .2) 45%, rgba(1, 31, 9, 0) 70%), linear-gradient(0deg, rgba(1, 31, 9, .85) 0%, rgba(1, 31, 9, 0) 26%); }
}
.fil { padding: 0; margin-top: 0; }

/* ==========================================================================
   MODERNISATION (déc. 2026) — composants, rayons, verre dépoli, animations
   Placée en fin de fichier : elle surcharge les règles précédentes.
   ========================================================================== */
:root {
  --rayon-m: 14px;
  --rayon-l: 22px;
  --ombre-douce: 0 1px 2px rgba(2, 43, 13, .06), 0 18px 40px -18px rgba(2, 43, 13, .28);
  --courbe: cubic-bezier(.6, 0, .2, 1);
  --courbe-sortie: cubic-bezier(.2, .75, .2, 1);
}
html { scrollbar-color: rgba(2, 43, 13, .35) transparent; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Transitions entre pages (API View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sortie .28s var(--courbe) both; }
::view-transition-new(root) { animation: vt-entree .5s var(--courbe-sortie) both; }
@keyframes vt-sortie { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- Boutons : pilule + balayage de couleur ---------- */
.bouton { border-radius: 999px; position: relative; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s, background-color .35s; }
.bouton::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--courbe); }
.bouton:hover::before { transform: scaleX(1); transform-origin: left center; }
.bouton svg { transition: transform .35s var(--courbe-sortie); }
.bouton:hover svg { transform: translateX(4px); }
.bouton--primaire, .bouton--primaire:hover { background: var(--orange); border-color: var(--orange); }
.bouton--primaire::before { background: var(--vert-900); }
.bouton--primaire:hover { color: var(--ivoire); border-color: var(--vert-900); }
.bouton--contour, .bouton--contour:hover { background: transparent; }
.bouton--contour::before { background: var(--encre); }
.bouton--contour:hover { color: var(--ivoire); border-color: var(--encre); }
:is(.section--sombre, .section--nuit, .heros, .page-tete, .menu, .entete:not(.entete--plein)) .bouton--primaire::before,
:is(.section--sombre, .section--nuit, .heros, .page-tete, .menu, .entete:not(.entete--plein)) .bouton--contour::before { background: var(--ivoire); }
:is(.section--sombre, .section--nuit, .heros, .page-tete, .menu, .entete:not(.entete--plein)) :is(.bouton--primaire, .bouton--contour):hover { color: var(--vert-900); border-color: var(--ivoire); background: transparent; }
:is(.section--sombre, .section--nuit, .heros, .page-tete, .menu, .entete:not(.entete--plein)) .bouton--primaire:hover { background: var(--orange); }
.section--orange .bouton--primaire, .section--orange .bouton--primaire:hover { background: var(--vert-900); border-color: var(--vert-900); color: var(--ivoire); }
.section--orange .bouton--primaire::before { background: var(--ivoire); }
.section--orange .bouton--primaire:hover { color: var(--vert-900); }
.bouton-icone { transition: background-color .25s, color .25s, transform .25s; }
.bouton-icone:active, .bouton:active { transform: scale(.97); }

/* ---------- En-tête : verre dépoli et masquage au défilement ---------- */
.entete { transition: transform .45s var(--courbe), background-color .3s, color .3s, box-shadow .3s; }
.entete.est-masque { transform: translateY(-105%); }
.entete--plein, body.sans-heros .entete { background: rgba(250, 243, 230, .82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }

/* ---------- Champs de formulaire ---------- */
.champ input, .champ select, .champ textarea { min-height: 56px; padding: 14px 18px; border: 1.5px solid rgba(2, 43, 13, .18); border-radius: 12px; background-color: var(--blanc); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.champ textarea { min-height: 140px; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: rgba(2, 43, 13, .45); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--vert-800); box-shadow: 0 0 0 4px rgba(255, 107, 0, .22); background-color: #fff; }
.champ label, .champ .libelle { font-size: .875rem; letter-spacing: .01em; }
.champ.a-erreur input, .champ.a-erreur select, .champ.a-erreur textarea { border-color: #b3261e; background: #fff6f4; box-shadow: none; }
.erreur { display: flex; align-items: center; gap: 6px; }
.champ.a-erreur .erreur::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #b3261e; color: #fff; font-size: .6875rem; font-weight: 700; }
.formulaire fieldset { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--filet-clair); border-radius: var(--rayon-l); background: rgba(255, 252, 246, .6); }
.section--sombre .formulaire fieldset { border-color: var(--filet-sombre); background: rgba(250, 243, 230, .03); }
.message-form { border-radius: var(--rayon-m); border-left-width: 0; box-shadow: inset 4px 0 0 var(--vert-800); }
.message-form--erreur { box-shadow: inset 4px 0 0 #b3261e; }

/* Case à cocher */
.consentement input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid rgba(2, 43, 13, .35); border-radius: 7px; background: var(--blanc) center / 14px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.consentement input:hover { border-color: var(--vert-800); }
.consentement input:checked { background-color: var(--vert-800); border-color: var(--vert-800); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23faf3e6' stroke-width='3'/%3E%3C/svg%3E"); }
.consentement input:active { transform: scale(.9); }
.section--sombre .consentement input { border-color: rgba(250, 243, 230, .5); background-color: transparent; }
.section--sombre .consentement input:checked { background-color: var(--orange); border-color: var(--orange); }

/* Onglets à curseur glissant */
.bascule { position: relative; padding: 4px; border: 0; background: rgba(2, 43, 13, .07); }
.bascule button { position: relative; z-index: 1; min-height: 46px; padding: 0 24px; transition: color .35s; }
.bascule__curseur { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--vert-900); transition: transform .45s var(--courbe), width .45s var(--courbe); }
.bascule:has(.bascule__curseur) button[aria-selected="true"] { background: none; color: var(--ivoire); }

/* ---------- Listes déroulantes personnalisées ---------- */
.liste { position: relative; }
.liste__natif { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.liste__bouton { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 18px; border: 1.5px solid rgba(2, 43, 13, .18); border-radius: 12px; background: var(--blanc); color: var(--encre); font-size: 1rem; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.liste__bouton:hover { border-color: rgba(2, 43, 13, .45); }
.liste__bouton:focus-visible, .liste.est-ouverte .liste__bouton { outline: none; border-color: var(--vert-800); box-shadow: 0 0 0 4px rgba(255, 107, 0, .22); }
.liste__bouton svg { flex: none; width: 18px; height: 18px; transition: transform .3s var(--courbe-sortie); }
.liste.est-ouverte .liste__bouton svg { transform: rotate(180deg); }
.liste__valeur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste__bouton.est-vide .liste__valeur { color: #6b7a6e; }
.champ.a-erreur .liste__bouton { border-color: #b3261e; background: #fff6f4; }
.liste__panneau { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 6px; border: 1px solid rgba(2, 43, 13, .1); border-radius: 16px; background: #fffdf9; box-shadow: 0 2px 6px rgba(2, 43, 13, .06), 0 28px 56px -18px rgba(2, 43, 13, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center; transition: opacity .18s, transform .24s var(--courbe-sortie), visibility 0s .24s; }
.liste.vers-haut .liste__panneau { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(6px) scale(.98); }
.liste.est-ouverte .liste__panneau { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .24s var(--courbe-sortie); }
.liste__recherche { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 6px 12px; border-radius: 10px; background: rgba(2, 43, 13, .05); }
.liste__recherche svg { flex: none; width: 16px; height: 16px; color: var(--encre-douce); }
.liste__recherche input { flex: 1; min-width: 0; min-height: 36px; border: 0; background: none; font-size: .9375rem; outline: none; }
.liste__options { list-style: none; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.liste__options li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: .9375rem; line-height: 1.3; cursor: pointer; transition: background-color .12s; }
.liste__options li svg { flex: none; width: 16px; height: 16px; color: var(--orange-texte); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.liste__options li.est-actif { background: rgba(2, 43, 13, .06); }
.liste__options li[aria-selected="true"] { font-weight: 600; }
.liste__options li[aria-selected="true"] svg { opacity: 1; transform: none; }
.liste__vide { margin: 0; padding: 12px; color: var(--encre-douce); font-size: .9375rem; }
.section--sombre .liste__bouton { background: var(--ivoire); color: var(--vert-900); }
.filtres .liste { min-width: min(320px, 100%); }
.filtres .liste__bouton { min-height: 42px; border-radius: 999px; padding: 0 14px 0 18px; font-size: .9375rem; font-weight: 500; }

/* ---------- Rayons et surfaces ---------- */
.intro__photo, .galerie-ci__cadre, .dirigeant .cadre, .article-carte .vignette, .direction-tete .embleme { border-radius: var(--rayon-l); }
.cartes-directions, .missions, .organes { border-radius: var(--rayon-l); overflow: hidden; }
.carte-projet { border-radius: var(--rayon-l); border-color: rgba(2, 43, 13, .08); transition: transform .4s var(--courbe-sortie), box-shadow .4s; }
a.carte-projet:hover { transform: translateY(-6px); border-color: rgba(2, 43, 13, .2); }
.etat-vide { border: 0; border-radius: var(--rayon-m); background: rgba(2, 43, 13, .045); }
.etiquettes li { border-radius: 999px; padding: 8px 16px; }
.directeur .cadre, .dirigeant--attente .cadre { border-radius: var(--rayon-m); }
.recherche__panneau { border-radius: 0 0 var(--rayon-l) var(--rayon-l); }
.menu__panneau { border-radius: 0 var(--rayon-l) var(--rayon-l) 0; }
@media (max-width: 719px) { .menu__panneau { border-radius: 0; } }
.voisins { border-radius: var(--rayon-m); }

/* Cartes des Directions : flèche qui apparaît */
.carte-direction a::after { content: "→"; position: absolute; top: 18px; right: 20px; font-size: 1.25rem; line-height: 1; color: var(--orange-texte); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--courbe-sortie); }
.carte-direction a:hover::after, .carte-direction a:focus-visible::after { opacity: 1; transform: none; }

/* Rangées (programmes) et agenda : survol en carte arrondie */
.rangee a { border-radius: var(--rayon-m); transition: padding .35s var(--courbe-sortie), background-color .3s; }
.agenda a { border-radius: var(--rayon-m); transition: padding .35s var(--courbe-sortie), background-color .3s; }
.agenda a:hover { background: var(--blanc); padding-inline: 20px; }
.section--blanc .agenda a:hover { background: var(--ivoire); }
.tableau tbody tr { transition: background-color .2s; }
.tableau tbody tr:hover { background: rgba(2, 43, 13, .035); }

/* ---------- Bandeau défilant des Directions ---------- */
.bandeau { overflow: hidden; padding: 22px 0; background: var(--ivoire); border-bottom: 1px solid var(--filet-clair); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bandeau__piste { display: flex; width: max-content; animation: defile 70s linear infinite; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau__groupe { display: flex; align-items: center; }
.bandeau__groupe span { padding: 0 28px; font: 700 clamp(1rem, 1.6vw, 1.375rem)/1 var(--f-titre); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.bandeau__groupe i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bandeau__piste { animation: none; } }

/* ---------- Chiffres clés en grille bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(200px, auto)); } }
.bento__carte { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 180px; padding: clamp(20px, 2.2vw, 32px); border: 1px solid var(--filet-sombre); border-radius: var(--rayon-l); background: rgba(250, 243, 230, .04); overflow: hidden; transition: border-color .3s, background-color .3s, transform .4s var(--courbe-sortie); }
.bento__carte:hover { border-color: rgba(250, 243, 230, .3); background: rgba(250, 243, 230, .07); transform: translateY(-4px); }
.bento__carte strong { font: 700 clamp(3rem, 5.6vw, 5.5rem)/.9 var(--f-titre); color: var(--orange); font-variant-numeric: tabular-nums; }
.bento__carte span { max-width: 22ch; font-size: 1rem; line-height: 1.35; }
.bento__carte--large { grid-column: span 2; }
@media (min-width: 900px) { .bento__carte--large { grid-row: span 2; } .bento__carte--large strong { font-size: clamp(5rem, 9vw, 9rem); } }
.bento__emblemes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.bento__emblemes img { width: 100%; height: auto; transition: transform .4s var(--courbe-sortie); }
.bento__carte--large:hover .bento__emblemes img { transform: translateY(-3px); }
.bento__carte--large:hover .bento__emblemes img:nth-child(odd) { transform: translateY(3px); }
.bento__carte--orange { background: var(--orange); border-color: var(--orange); color: var(--vert-900); }
.bento__carte--orange:hover { background: var(--orange); border-color: var(--orange); }
.bento__carte--orange strong { color: var(--vert-900); }
.bento__carte--carte svg { width: 76px; height: auto; color: var(--orange); }
.bento__carte--carte svg path { fill: none; stroke: currentColor; stroke-width: 7; }
@media (max-width: 899px) { .bento__carte--carte { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 0; } }

/* ---------- Animations : titres mot à mot, rideaux d'image ---------- */
.titre-mots .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.titre-mots .mot > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--courbe-sortie); }
.titre-mots.est-visible .mot > span { transform: none; }
.rideau { clip-path: inset(0 0 100% 0 round var(--rayon-l)); transition: clip-path 1.2s var(--courbe); }
.rideau.est-visible { clip-path: inset(0 0 0 0 round var(--rayon-l)); }
.rideau img { transition: transform 1.6s var(--courbe-sortie); }
.rideau:not(.est-visible) img { transform: scale(1.14); }
.rideau.vignette--emblemes { clip-path: none; }

/* Défilement lié au scroll (navigateurs compatibles) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .page-tete--photo > img { animation: parallaxe linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes parallaxe { to { transform: translateY(14%) scale(1.06); } }
    .pied__geant { animation: monte linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    @keyframes monte { from { clip-path: inset(100% -2% -10% -2%); opacity: .4; } to { clip-path: inset(-40% -2% -10% -2%); opacity: 1; } }
    .bento__carte, .galerie-ci li, .carte-direction { animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes apparait { from { opacity: 0; transform: translateY(30px) scale(.97); } }
  }
}

/* Courbes de la carte : lente rotation d'ambiance */
.appel .courbes { animation: tourne 120s linear infinite; }
@keyframes tourne { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .appel .courbes { animation: none; } }

/* Menu : apparition échelonnée des liens */
.menu__corps li { opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .6s var(--courbe-sortie); }
.menu.est-ouvert .menu__corps li { opacity: 1; transform: none; }
.menu.est-ouvert .menu__principal li:nth-child(1) { transition-delay: .14s; } .menu.est-ouvert .menu__principal li:nth-child(2) { transition-delay: .18s; }
.menu.est-ouvert .menu__principal li:nth-child(3) { transition-delay: .22s; } .menu.est-ouvert .menu__principal li:nth-child(4) { transition-delay: .26s; }
.menu.est-ouvert .menu__principal li:nth-child(5) { transition-delay: .30s; } .menu.est-ouvert .menu__principal li:nth-child(6) { transition-delay: .34s; }
.menu.est-ouvert .menu__second li { transition-delay: .38s; }
@media (prefers-reduced-motion: reduce) { .menu__corps li { opacity: 1; transform: none; transition: none; } }
.champ .liste__recherche input, .champ .liste__recherche input:hover, .champ .liste__recherche input:focus { min-height: 36px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.liste__recherche:focus-within { box-shadow: 0 0 0 2px rgba(255, 107, 0, .35); }
.formulaire legend { float: left; width: 100%; margin: 0 0 4px; padding: 0; }
.formulaire legend + * { clear: both; }

/* ==========================================================================
   Page de chargement
   ========================================================================== */
.chargement { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--vert-950); color: var(--ivoire);
  clip-path: inset(0 0 0 0); transition: clip-path .9s var(--courbe), visibility 0s .9s;
  animation: chargement-secours 0s 5s forwards; /* filet de sécurité si le script ne s'exécute pas */ }
html.sans-chargement .chargement, html:not(.est-chargement) .chargement:not(.est-fini) { display: none; }
html.est-chargement { overflow: hidden; }
.chargement.est-fini { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes chargement-secours { to { visibility: hidden; opacity: 0; } }
.chargement__centre { display: grid; justify-items: center; gap: 28px; text-align: center; }
.chargement__logo { position: relative; width: clamp(120px, 16vw, 168px); aspect-ratio: 1462 / 1500; }
.chargement__carte { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chargement__carte path { fill: none; stroke: var(--orange); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: chargement-trace 1.1s var(--courbe) .1s forwards; }
.chargement__logo img { position: relative; width: 100%; height: auto; opacity: 0; transform: scale(.92); animation: chargement-logo .7s var(--courbe-sortie) .75s forwards; }
.chargement__nom { margin: 0; font: 700 clamp(.8125rem, 1.2vw, .9375rem)/1.35 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: var(--clair-doux); opacity: 0; animation: chargement-texte .6s ease .95s forwards; }
.chargement__barre { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(250, 243, 230, .1); }
.chargement__barre i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, .12)); transition: transform .6s var(--courbe); }
@keyframes chargement-trace { to { stroke-dashoffset: 0; } }
@keyframes chargement-logo { to { opacity: 1; transform: none; } }
@keyframes chargement-texte { to { opacity: 1; } }
html.est-chargement .anime .courbes path { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .chargement { transition: opacity .2s, visibility 0s .2s; clip-path: none; }
  .chargement.est-fini { opacity: 0; }
  .chargement__carte path { animation: none; stroke-dashoffset: 0; }
  .chargement__logo img, .chargement__nom { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Consentement aux cookies
   ========================================================================== */
.cookies { position: fixed; z-index: 90; left: calc(var(--rail) + 20px); bottom: 20px; width: min(460px, calc(100vw - var(--rail) - 40px));
  padding: 24px; border: 1px solid rgba(250, 243, 230, .14); border-radius: var(--rayon-l); background: rgba(2, 43, 13, .94); color: var(--ivoire);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 30px 60px -20px rgba(1, 31, 9, .6);
  opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s var(--courbe-sortie); }
.cookies.est-visible { opacity: 1; transform: none; }
.cookies h2 { font-size: 1.125rem; margin-bottom: 10px; }
.cookies p { margin: 0 0 18px; font-size: .9375rem; line-height: 1.5; color: var(--clair-doux); }
.cookies p a { color: var(--ivoire); }
.cookies__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies__boutons .bouton { flex: 1 1 auto; }
@media (max-width: 600px) { .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; } }
.lien-bouton { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .875rem; cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; color: var(--orange); }

.cookies-reglages { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 26px; background: var(--ivoire); color: var(--encre); box-shadow: 0 40px 80px -24px rgba(1, 31, 9, .55); }
.cookies-reglages::backdrop { background: rgba(1, 31, 9, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cookies-reglages[open] { animation: dialogue-entree .4s var(--courbe-sortie); }
@keyframes dialogue-entree { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.cookies-reglages h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: 0 48px 12px 0; }
.cookies-reglages > form > p { margin-bottom: 20px; font-size: .9375rem; }
.cookies-reglages__fermer { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(2, 43, 13, .07); color: var(--encre); cursor: pointer; }
.cookies-reglages__fermer svg { width: 18px; height: 18px; }
.cookies-reglages__fermer:hover { background: rgba(2, 43, 13, .14); }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--filet-clair); cursor: pointer; }
.reglage:first-of-type { cursor: default; }
.reglage strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.reglage span { display: block; font-size: .875rem; line-height: 1.45; color: var(--encre-douce); }
.cookies-reglages .cookies__boutons { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--filet-clair); }
.interrupteur { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 50px; height: 28px; margin: 0; border-radius: 999px; background: rgba(2, 43, 13, .2); cursor: pointer; transition: background-color .25s; }
.interrupteur::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--courbe-sortie); }
.interrupteur:checked { background: var(--vert-800); }
.interrupteur:checked::before { transform: translateX(22px); }
.interrupteur:disabled { cursor: not-allowed; background: var(--orange); opacity: .55; }
.interrupteur:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Aucune ombre sur les boutons (demande du 2026-12-06) */
.bouton, .bouton::before, .bouton-icone, .bouton-menu, .bascule button, .bascule__curseur, .filtre, .lien-bouton,
.cookies-reglages__fermer, .menu__fermer, .rail__pause, .onglet, .interrupteur, .interrupteur::before, [data-pause], [data-suivant], [data-precedent] { box-shadow: none !important; text-shadow: none !important; filter: none !important; }
