/* ==========================================================================
   Les side-events de Sage autour d’Adopt AI : mise en page du site
   --------------------------------------------------------------------------
   Se charge après polices.css, tokens.css et sage.css (dépôt sage-da).

   Arbitrages entre les trois sources, la plus sobre gagne (CHARTE.md) :
   - bibliothèque Sage Brand (règles web officielles) : aucun dégradé hors IA,
     jamais de vert en fond de section, aucun filtre coloré sur une photo,
     contraste 4,5:1 pour le texte ;
   - DA sage-da : noir pur, un seul accent par titre, ponctuation finale verte,
     dégradé vert > cyan > violet réservé à l'IA ;
   - site atelier-sage-coec2026.fr : grands titres en capitales, surtitres
     espacés, frises, compte à rebours, clôture lumineuse.
   D'où : les liserés en dégradé de sage.css ne sont pas repris (aplats verts),
   et le dégradé IA ne touche que l'expression clé d'un titre.
   ========================================================================== */

/* --- Jetons propres au site ------------------------------------------------ */

:root {
  /* Piles de polices web officielles (règle canonical:type.web-stack). */
  --sg-police-titre: 'Sage Headline', 'Helvetica Neue', 'Roboto', 'Segoe UI', 'Arial', sans-serif;
  --sg-police-texte: 'Sage Text', 'Helvetica Neue', 'Roboto', 'Segoe UI', 'Arial', sans-serif;
  /* 13/11/2026 : tout le texte de la page en police de marque, à la demande de
     Mickaël. Sage UI, réservée aux interfaces produit (canonical:type.families),
     tranchait dans le menu, les boutons et les filtres ; la chasse fixe aussi.
     Les deux variables pointent donc sur Sage Text. */
  --sg-police-ui: var(--sg-police-texte);
  --police-mono: var(--sg-police-texte);

  /* Texte sur fond sombre (règle canonical:color.text-colors-dark). */
  --texte-secondaire: rgba(255, 255, 255, 0.65);

  /* Couleurs qui changent avec le thème (valeurs du mode sombre ; le mode
     clair les redéfinit en fin de feuille). Les verts sont séparés par usage,
     car la règle Sage diffère sur fond blanc : texte, fragment de grand titre,
     trait ou point, fond de bouton. */
  --vert-titre: var(--sg-vert);
  --vert-plein: var(--sg-vert);
  --vert-bouton: #00d639;
  --vert-rvb: 0, 214, 57;
  --vert-contour-fort: rgba(0, 214, 57, 0.5);
  --texte-fort: rgba(255, 255, 255, 0.82);
  --texte-nav: rgba(255, 255, 255, 0.72);
  --trait-neutre: rgba(255, 255, 255, 0.14);
  --trait-discret: rgba(255, 255, 255, 0.1);
  --trait-numero: rgba(255, 255, 255, 0.24);
  --contour-neutre: rgba(255, 255, 255, 0.32);
  --contour-bouton: rgba(255, 255, 255, 0.22);
  --contour-survol: rgba(255, 255, 255, 0.4);
  --fond-entete: rgba(0, 0, 0, 0.78);
  --fond-voile: rgba(10, 10, 10, 0.7);
  --fond-carte-forte: rgba(10, 10, 10, 0.86);
  --ombre-media: 0 40px 120px rgba(0, 0, 0, 0.6);
  --lueur-trait: 0 0 10px rgba(0, 214, 57, 0.6);
  --lueur-noeud: 0 0 14px rgba(0, 214, 57, 0.65);
  --lueur-rail: 0 0 12px rgba(0, 214, 57, 0.55);
  --lueur-bille: 0 0 0 6px rgba(0, 214, 57, 0.16), 0 0 26px rgba(0, 214, 57, 0.75);
  --lueur-point: 0 0 10px #00d639;

  --gouttiere: clamp(16px, 5vw, 48px);
  --entete: 68px;
  --section: clamp(80px, 10vw, 144px);
  --rayon-carte: 16px;
}

/* --- Socle ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--sg-noir);
}
body { margin: 0; font-size: 1.0625rem; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; }

.conteneur { width: min(1200px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.conteneur.etroit { width: min(880px, 100% - 2 * var(--gouttiere)); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.icone { width: 1em; height: 1em; fill: currentColor; flex: none; }

:focus-visible { outline: 2px solid var(--sg-vert); outline-offset: 3px; border-radius: 4px; }

.lien-evitement {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-160%); transition: transform .2s;
}
.lien-evitement:focus { transform: none; }

/* Valeur à compléter : la charte impose [X] en ambre, jamais un chiffre inventé. */
.a-completer { color: var(--sg-ambre); -webkit-text-fill-color: var(--sg-ambre); }

/* --- Typographie ------------------------------------------------------------ */

.sg-surtitre { font-size: 0.75rem; }
.titre-hero { font-size: clamp(2.25rem, 7.6vw, 5.75rem); text-transform: uppercase; }
.titre-section { font-size: clamp(2.125rem, 4.9vw, 4.25rem); text-transform: uppercase; }
/* Jamais sous 28 px en Sage Headline (CHARTE.md §3) : le minimum vaut 1,75 rem. */
.titre-moyen { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.sg-chapo { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.texte-secondaire { color: var(--texte-secondaire); }
.etiquette {
  font-family: var(--sg-police-texte); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sg-vert);
}
.etiquette.neutre { color: var(--texte-secondaire); }

/* Le dégradé IA suit le sens de la ligne de texte (règle canonical:color.ai-gradient). */
.sg-ia { background-size: 100% 100%; }
/* Le vert d'un grand titre ou d'un grand chiffre : vert de marque sur noir, Jade universel sur
   blanc (le seul vert permis pour un fragment de grand titre sur fond clair). */
.sg-titre .sg-accent, .sg-titre .sg-point, .chiffre-valeur .sg-accent { color: var(--vert-titre); -webkit-text-fill-color: var(--vert-titre); }

/* --- Boutons ----------------------------------------------------------------- */

/* Le fond du bouton reste le vert de marque dans les deux thèmes (texte noir, contraste 11:1) :
   sur fond clair, --sg-vert passe au Jade accessible, réservé au texte. */
.sg-bouton { font-size: 1rem; padding: 0.85em 1.35em; background: var(--vert-bouton); transition: background .25s, border-color .25s, color .25s, transform .25s; }
.sg-bouton:hover { transform: translateY(-1px); }
.sg-bouton .icone { width: 1.05em; height: 1.05em; }
.sg-bouton.contour { background: transparent; color: var(--sg-blanc); border-color: var(--contour-bouton); }
.sg-bouton.contour:hover { border-color: var(--sg-blanc); background: transparent; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--sg-police-ui); font-weight: 700; font-size: 0.9375rem;
  color: var(--sg-vert); text-decoration: none;
}
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }
.lien-fleche .fleche { transition: transform .25s var(--sg-courbe-arrivee); }
.lien-fleche:hover .fleche { transform: translateX(3px); }

/* --- En-tête ----------------------------------------------------------------- */

.entete {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--entete);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.entete.defile {
  background: var(--fond-entete);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--sg-bordure);
}
.entete .conteneur { display: flex; align-items: center; gap: 10px; }
.entete-marque { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.entete-marque img { height: 26px; width: auto; }
.entete-marque span {
  font-family: var(--sg-police-texte); font-weight: 700; font-size: 0.9375rem;
  color: var(--sg-blanc); padding-left: 14px; border-left: 1px solid var(--sg-bordure-forte);
}
.entete-nav { display: none; gap: 26px; margin-left: auto; }
.entete-nav a {
  font-family: var(--sg-police-ui); font-weight: 500; font-size: 0.9375rem;
  color: var(--texte-nav); text-decoration: none; transition: color .2s;
}
.entete-nav a:hover, .entete-nav a[aria-current='page'] { color: var(--sg-blanc); }
.entete-cta { display: none; }
.entete .sg-bouton { font-size: 0.875rem; padding: 0.6em 1.05em; }
.entete-menu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--sg-rayon);
  border: 1px solid var(--sg-bordure-forte); background: transparent; color: var(--sg-blanc); cursor: pointer;
}
.entete-menu span, .entete-menu span::before, .entete-menu span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s var(--sg-courbe-arrivee), background .2s;
}
.entete-menu span::before, .entete-menu span::after { content: ''; position: absolute; left: 0; }
.entete-menu span::before { top: -6px; }
.entete-menu span::after { top: 6px; }
.menu-ouvert .entete-menu span { background: transparent; }
.menu-ouvert .entete-menu span::before { transform: translateY(6px) rotate(45deg); }
.menu-ouvert .entete-menu span::after { transform: translateY(-6px) rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: var(--entete) 0 0; z-index: 49; background: var(--sg-noir);
  padding: 32px var(--gouttiere); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--sg-courbe-arrivee), visibility .3s;
}
.menu-ouvert .menu-mobile { opacity: 1; visibility: visible; transform: none; }
.menu-mobile a:not(.sg-bouton) {
  font-family: var(--sg-police-titre); font-weight: 900; font-size: 2rem; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--sg-bordure);
}
.menu-mobile .sg-bouton { margin-top: 24px; align-self: flex-start; }

@media (min-width: 960px) {
  .entete .conteneur { gap: 28px; }
  .entete-nav { display: flex; }
  .entete-cta { display: inline-flex; }
  .entete-menu, .menu-mobile { display: none; }
}

/* --- Sections ---------------------------------------------------------------- */

/* overflow-x: clip, et non hidden : la lente avancée de caméra des fonds (scale
   1,05) débordait de 36 px, et hidden aurait cassé les dates collantes du
   programme (position: sticky). clip rogne sans créer de zone de défilement. */
.section { position: relative; padding-block: var(--section); isolation: isolate; overflow-x: clip; }
.section + .section { border-top: 1px solid var(--sg-bordure); }
.section.sans-filet { border-top: 0; }
.entete-section { text-align: center; max-width: 920px; margin: 0 auto clamp(48px, 7vw, 88px); }
.entete-section .sg-titre { margin-top: 22px; }
.entete-section .sg-chapo { margin: 22px auto 0; max-width: 700px; }
.entete-section.a-gauche { text-align: left; margin-inline: 0; }
.entete-section.a-gauche .sg-chapo { margin-inline: 0; }

/* Fonds de la bibliothèque : « toujours un peu de vie », une lente avancée de
   caméra pendant la lecture (CHARTE.md §9).
   13/11/2026 : ne pas passer l'image par la variable --fond de sage.css quand
   la page n'est pas dans le dossier de sage.css. Une url() relative logée dans
   une variable se résout depuis la feuille qui l'emploie, pas depuis la page :
   le fond pointait vers assets/assets/… et ne s'affichait pas. On pose donc
   style="background-image:url(…)" directement sur la div .sg-fond. */
.sg-fond.vivant { animation: avancee-camera 24s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes avancee-camera { to { transform: scale(1.05); } }

/* --- Hero -------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: calc(var(--entete) + clamp(28px, 4.5vw, 56px)) 0 clamp(40px, 6vw, 72px);
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
}
.hero-badge { width: 64px; margin: 0 auto 20px; }
.hero .sg-titre { margin: 20px auto 0; max-width: none; }
.hero .sg-chapo { margin: 22px auto 0; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* Le ruban : le fil du 18 novembre au 4 décembre, que parcourt le point vert. */
.ruban { margin: clamp(40px, 5vw, 60px) auto 0; width: 100%; max-width: 1080px; }
.ruban-defilement { overflow-x: auto; scrollbar-width: none; padding: 4px 4px 8px; }
.ruban-defilement::-webkit-scrollbar { display: none; }
.ruban-ligne { position: relative; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(92px, 1fr)); min-width: 660px; list-style: none; margin: 0; padding: 0; }
.ruban-ligne::before, .ruban-ligne::after {
  content: ''; position: absolute; top: 8px; height: 2px;
  left: calc(50% / var(--n, 7)); right: calc(50% / var(--n, 7));
}
.ruban-ligne::before { background: var(--trait-neutre); }
/* Le trait vert avance jusqu'au jour présent (--avance, posé par site.js). */
.ruban-ligne::after {
  background: var(--vert-plein); transform-origin: left center; transform: scaleX(var(--avance, 0));
  box-shadow: var(--lueur-trait);
  transition: transform 1.6s var(--sg-courbe-arrivee) .9s;
}
.ruban-etape a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; padding: 0 4px; }
.ruban-noeud {
  position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sg-noir); border: 2px solid var(--contour-neutre);
  transition: background .35s, border-color .35s, box-shadow .35s, transform .35s;
}
.ruban-etape.atteinte .ruban-noeud { background: var(--vert-plein); border-color: var(--vert-plein); box-shadow: var(--lueur-noeud); }
.ruban-etape.prochaine .ruban-noeud { transform: scale(1.25); border-color: var(--vert-plein); animation: pulsation 1.8s ease-out infinite; }
@keyframes pulsation { 0% { box-shadow: 0 0 0 0 rgba(var(--vert-rvb), 0.55); } 100% { box-shadow: 0 0 0 14px rgba(var(--vert-rvb), 0); } }
.ruban-date { font-family: var(--sg-police-ui); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; white-space: nowrap; }
.ruban-libelle { font-size: 0.8125rem; line-height: 1.35; color: var(--texte-secondaire); max-width: 13ch; }
.ruban-etape a:hover .ruban-libelle { color: var(--sg-blanc); }
.ruban-etape.vedette .ruban-date { color: var(--sg-vert); }
.prochain {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 20px; padding: 10px 18px; border-radius: var(--sg-rayon-pilule);
  border: 1px solid var(--sg-bordure-forte); background: var(--fond-voile);
  font-family: var(--sg-police-ui); font-size: 0.875rem; color: var(--texte-fort);
}
.prochain strong { color: var(--sg-blanc); font-weight: 700; }
.prochain .point-vif { width: 8px; height: 8px; border-radius: 50%; background: var(--vert-plein); box-shadow: var(--lueur-point); animation: pulsation 1.8s ease-out infinite; }
.prochain .decompte { color: var(--sg-vert); font-weight: 700; font-feature-settings: 'tnum'; }

/* --- Manifeste ----------------------------------------------------------------- */

.deux-colonnes { display: grid; gap: clamp(48px, 7vw, 104px); align-items: center; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1.15fr 0.85fr; } }
.deux-colonnes .sg-chapo { margin-top: 24px; max-width: 560px; }
.questions { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: q; }
.questions li {
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--sg-bordure);
  font-family: var(--sg-police-texte); font-weight: 700; font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.35;
}
.questions li:last-child { border-bottom: 1px solid var(--sg-bordure); }
.questions li::before {
  counter-increment: q; content: '0' counter(q);
  font-family: var(--sg-police-ui); font-weight: 700; font-size: 0.875rem; color: var(--sg-vert);
}
.questions small { display: block; grid-column: 2; margin-top: 6px; font-weight: 400; font-size: 1rem; color: var(--texte-secondaire); }
.engagement { margin-top: 32px; padding: 24px 26px; border: 1px solid var(--sg-vert-trait); border-radius: var(--rayon-carte); background: var(--sg-surface); }
.engagement ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.engagement li { display: flex; gap: 12px; align-items: flex-start; color: var(--sg-corps); }
.engagement li .icone { width: 22px; height: 22px; color: var(--sg-vert); margin-top: 2px; }
.illustration-flottante { display: flex; justify-content: center; }
.illustration-flottante img { width: min(330px, 72%); animation: flotte 7s ease-in-out infinite alternate; }
@keyframes flotte { to { transform: translateY(-14px); } }

/* --- Le fil : six chapitres sur un rail vertical ----------------------------------- */

.fil { position: relative; max-width: 1040px; margin: 0 auto; }
.fil-liste { list-style: none; margin: 0; padding: 0; }
.fil-rail { position: absolute; top: 10px; bottom: 0; left: 15px; width: 2px; background: var(--trait-discret); }
.fil-rail-plein {
  position: absolute; inset: 0 0 auto; height: calc(var(--progression, 0) * 100%);
  background: var(--vert-plein); box-shadow: var(--lueur-rail);
}
.fil-bille {
  position: absolute; left: 50%; top: calc(var(--progression, 0) * 100%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--vert-plein);
  transform: translate(-50%, -50%);
  box-shadow: var(--lueur-bille);
}
.fil-chapitre { position: relative; padding: 0 0 clamp(56px, 8vw, 96px) 56px; }
.fil-chapitre:last-child { padding-bottom: 0; }
.fil-noeud {
  position: absolute; top: 12px; left: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sg-noir); border: 2px solid var(--contour-neutre);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.fil-chapitre.actif .fil-noeud { background: var(--vert-plein); border-color: var(--vert-plein); box-shadow: var(--lueur-noeud); }
.fil-numero {
  display: block; font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(3.25rem, 6vw, 5rem);
  line-height: 0.9; letter-spacing: -0.03em; color: transparent;
  -webkit-text-stroke: 1.5px var(--trait-numero);
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.fil-chapitre.actif .fil-numero { color: var(--vert-titre); -webkit-text-stroke-color: transparent; }
.fil-entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 18px; }
.fil-date { font-family: var(--sg-police-ui); font-weight: 500; font-size: 0.9375rem; color: var(--texte-secondaire); }
.fil-chapitre h3 { margin-top: 10px; font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: var(--sg-interligne-titre); letter-spacing: var(--sg-approche-titre); text-wrap: balance; }
.fil-chapitre p { margin-top: 12px; color: var(--sg-corps); max-width: 46ch; text-wrap: pretty; }
.fil-chapitre .lien-fleche { margin-top: 16px; }
@media (min-width: 900px) {
  .fil-rail { left: 50%; transform: translateX(-1px); }
  .fil-chapitre { width: 50%; padding: 0 64px clamp(64px, 8vw, 104px) 0; text-align: right; }
  .fil-chapitre:nth-child(even) { margin-left: 50%; padding: 0 0 clamp(64px, 8vw, 104px) 64px; text-align: left; }
  .fil-chapitre .fil-noeud { left: auto; right: -8px; }
  .fil-chapitre:nth-child(even) .fil-noeud { left: -8px; right: auto; }
  .fil-chapitre:nth-child(odd) .fil-entete { justify-content: flex-end; }
  .fil-chapitre:nth-child(odd) p { margin-left: auto; }
}

/* --- Cartes ------------------------------------------------------------------------ */

.carte {
  position: relative; background: var(--sg-carte); border: 1px solid var(--sg-bordure);
  border-radius: var(--rayon-carte); padding: clamp(24px, 3vw, 32px);
  transition: border-color .3s, translate .3s var(--sg-courbe-arrivee);
}
a.carte { display: block; color: inherit; text-decoration: none; }
/* Survol par la propriété translate : elle ne se bat pas avec le transform de l'apparition. */
a.carte:hover, .carte.survolable:hover { border-color: var(--vert-contour-fort); translate: 0 -3px; }
/* Liseré : un aplat vert, pas de dégradé hors IA (règle canonical:color.no-gradients). */
.carte.liseree::before {
  content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: var(--vert-plein); border-radius: 0 0 2px 2px;
}
.grille-3 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }

/* --- L'étude : les chiffres clés -------------------------------------------------------- */

.chiffre-valeur {
  font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(3rem, 6.4vw, 4.75rem);
  line-height: 1; letter-spacing: -0.02em; font-feature-settings: 'tnum';
}
.chiffre-libelle { margin-top: 16px; color: var(--sg-corps); }
.etude-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--sg-bordure); }
.etude-pied p { color: var(--texte-secondaire); max-width: 60ch; }

/* --- Adopt AI : le temps fort ------------------------------------------------------------ */

.adopt-grille { display: grid; gap: 16px; }
@media (min-width: 960px) { .adopt-grille { grid-template-columns: 1.35fr 1fr; } }
.carte.forte { background: var(--fond-carte-forte); border-color: var(--sg-vert-trait); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.carte .etiquette { display: block; }
.carte h3.titre-carte { margin-top: 14px; font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: var(--sg-interligne-titre); letter-spacing: var(--sg-approche-titre); text-wrap: balance; }
.carte h3.titre-carte-texte { margin-top: 14px; font-family: var(--sg-police-texte); font-weight: 700; font-size: 1.375rem; line-height: 1.25; }
.carte p { margin-top: 14px; color: var(--sg-corps); }
.infos { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 26px 0 0; font-size: 0.9875rem; }
.infos dt { display: flex; align-items: center; gap: 10px; font-family: var(--sg-police-texte); font-weight: 700; color: var(--texte-secondaire); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; padding-top: 3px; }
.infos dt .icone { width: 20px; height: 20px; color: var(--sg-vert); }
.infos dd { margin: 0; color: var(--sg-blanc); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.intervenants { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.intervenant { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--sg-rayon-pilule); border: 1px solid var(--sg-bordure-forte); font-size: 0.9375rem; }
.intervenant img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.intervenant .initiales { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sg-surface); border: 1px solid var(--sg-bordure-forte); font-family: var(--sg-police-ui); font-weight: 700; font-size: 0.75rem; color: var(--sg-vert); }
.intervenant small { color: var(--texte-secondaire); }

.chiffres-salon {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--sg-bordure);
  border: 1px solid var(--sg-bordure); border-radius: var(--rayon-carte); overflow: hidden;
}
@media (min-width: 640px) { .chiffres-salon { grid-template-columns: repeat(3, 1fr); } }
.chiffres-salon li { background: var(--sg-noir); padding: clamp(18px, 3vw, 28px); text-align: center; }
.chiffres-salon strong { display: block; font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1; font-feature-settings: 'tnum'; }
.chiffres-salon span { display: block; margin-top: 8px; color: var(--texte-secondaire); font-size: 0.875rem; }
.source-chiffres { margin-top: 12px; text-align: center; color: var(--texte-secondaire); font-size: 0.8125rem; }

/* Compte à rebours : chiffres à largeur fixe pour que le nombre ne tremble pas. */
.compte { display: flex; justify-content: center; gap: clamp(14px, 4vw, 48px); margin-top: clamp(56px, 8vw, 88px); }
.compte-bloc { text-align: center; }
.compte-valeur { display: block; font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1; color: var(--vert-titre); }
.compte-valeur span { display: inline-block; width: 0.66em; text-align: center; }
.compte-unite { display: block; margin-top: 10px; font-family: var(--sg-police-texte); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--texte-secondaire); }
.compte-legende { margin-top: 22px; text-align: center; color: var(--texte-secondaire); font-size: 0.9375rem; }

/* --- Programme ---------------------------------------------------------------------------- */

.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto clamp(40px, 6vw, 64px); }
.filtre {
  font-family: var(--sg-police-ui); font-weight: 500; font-size: 0.875rem; color: var(--texte-fort);
  background: transparent; border: 1px solid var(--sg-bordure-forte); border-radius: var(--sg-rayon-pilule);
  padding: 10px 18px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.filtre:hover { color: var(--sg-blanc); border-color: var(--contour-survol); }
.filtre[aria-pressed='true'] { background: var(--vert-bouton); border-color: var(--vert-bouton); color: #000; font-weight: 700; }
.jour { display: grid; gap: 24px; padding: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--sg-bordure); }
.jour:last-child { border-bottom: 1px solid var(--sg-bordure); }
.jour[hidden] { display: none; }
.jour-date { display: flex; align-items: baseline; gap: 14px; }
.jour-num { font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 0.85; letter-spacing: -0.03em; }
.jour-mois { display: block; font-family: var(--sg-police-texte); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sg-vert); }
.jour-nom { display: block; margin-top: 4px; color: var(--texte-secondaire); font-size: 0.9375rem; }
.jour-evenements { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .jour { grid-template-columns: 200px 1fr; gap: 48px; }
  .jour-date { flex-direction: column; gap: 10px; position: sticky; top: calc(var(--entete) + 28px); align-self: start; }
}
@media (min-width: 1100px) {
  .jour-evenements { grid-template-columns: repeat(2, 1fr); }
  .jour-evenements > .evenement.vedette, .jour-evenements > .evenement:only-child { grid-column: 1 / -1; }
}

.evenement {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--sg-carte); border: 1px solid var(--sg-bordure); border-radius: var(--rayon-carte);
  padding: clamp(22px, 2.6vw, 28px);
  transition: border-color .3s, translate .3s var(--sg-courbe-arrivee);
}
.evenement:hover { border-color: var(--vert-contour-fort); translate: 0 -2px; }
.evenement[hidden] { display: none; }
.evenement.vedette { border-color: var(--sg-vert-trait); position: relative; }
.evenement.vedette::before { content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px; background: var(--vert-plein); }
.evenement-haut { display: flex; align-items: center; gap: 14px; }
.evenement-haut .icone { width: 42px; height: 42px; color: var(--sg-vert); }
.evenement-type { font-family: var(--sg-police-texte); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-secondaire); }
.evenement-heure { margin-left: auto; font-family: var(--sg-police-ui); font-weight: 500; font-size: 0.875rem; color: var(--texte-fort); white-space: nowrap; }
.evenement h3 { font-family: var(--sg-police-texte); font-weight: 700; font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.25; text-wrap: balance; }
.evenement-org { margin-top: -6px; color: var(--texte-secondaire); font-size: 0.9375rem; }
.role {
  align-self: flex-start; font-family: var(--sg-police-ui); font-weight: 700; font-size: 0.75rem;
  color: var(--sg-vert); border: 1px solid var(--sg-vert-trait); border-radius: var(--sg-rayon-pilule); padding: 5px 12px;
}
.evenement .ce-que { color: var(--sg-corps); font-size: 1rem; text-wrap: pretty; }
.evenement-lieu { display: flex; align-items: flex-start; gap: 8px; color: var(--texte-secondaire); font-size: 0.9375rem; }
.evenement-lieu .icone { width: 18px; height: 18px; color: var(--sg-vert); margin-top: 2px; }
.evenement-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 4px; }
.aucun-resultat { text-align: center; color: var(--texte-secondaire); padding: 40px 0; }

/* --- Bloc média (visuel du hackathon) ------------------------------------------------------- */

.media-cadre { border-radius: 20px; overflow: hidden; border: 1px solid var(--sg-bordure); background: #000; }
.media-cadre img { width: 100%; }
.points-cles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.point-cle { padding: 18px; border: 1px solid var(--sg-bordure); border-radius: 12px; background: var(--sg-surface); }
.point-cle strong { display: block; font-family: var(--sg-police-texte); font-weight: 700; font-size: 1.125rem; }
.point-cle span { display: block; margin-top: 4px; color: var(--texte-secondaire); font-size: 0.875rem; }

/* --- Citation (la question du fil) ------------------------------------------------------------ */

.citation-section { min-height: clamp(520px, 70vh, 760px); display: flex; align-items: center; }
.citation-section .conteneur { padding-top: clamp(64px, 9vw, 120px); }
.citation-section .sg-citation { font-size: clamp(1.75rem, 3.6vw, 3rem); max-width: 22ch; }
.citation-section .sg-auteur { font-size: 1rem; }

/* --- Clôture ------------------------------------------------------------------------------------ */

.cloture { position: relative; overflow: hidden; isolation: isolate; padding: clamp(112px, 15vw, 184px) 0 clamp(200px, 26vw, 340px); }
.cloture .sg-titre { max-width: 18ch; }
.cloture .sg-chapo { margin-top: 26px; max-width: 600px; }
.cloture .actions { margin-top: 36px; }
.cloture-logo { height: 34px; width: auto; margin-bottom: 40px; }

/* --- Pied de page -------------------------------------------------------------------------------- */

.pied { border-top: 1px solid var(--sg-bordure); padding: 48px 0 56px; color: var(--texte-secondaire); font-size: 0.875rem; }
.pied-grille { display: grid; gap: 32px; }
@media (min-width: 900px) { .pied-grille { grid-template-columns: 1.2fr 1fr 1fr; } }
.pied img { height: 26px; width: auto; }
.pied h2 { font-family: var(--sg-police-texte); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sg-vert); margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pied a { text-decoration: none; color: var(--texte-fort); }
.pied a:hover { color: var(--sg-blanc); text-decoration: underline; text-underline-offset: 3px; }
.pied-mentions { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sg-bordure); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* --- Mouvement : arrivées franches (courbe expo), cascade de 70 ms ------------------------------- */

.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--sg-courbe-arrivee), transform .8s var(--sg-courbe-arrivee); transition-delay: calc(var(--i, 0) * 70ms); }
.js .revele.visible { opacity: 1; transform: none; }
/* Les mots montent depuis leur ligne, un par un (CHARTE.md §9). */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.1em; margin: -0.04em -0.02em -0.1em; }
.mot > span { display: inline-block; }
.js .titre-anime .mot > span { transform: translateY(108%); transition: transform .9s var(--sg-courbe-arrivee); transition-delay: calc(var(--m, 0) * 75ms + var(--retard, 0ms)); }
.js .titre-anime.visible .mot > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele, .js .titre-anime .mot > span { opacity: 1; transform: none; transition: none; }
  .sg-fond.vivant, .illustration-flottante img, .prochain .point-vif, .ruban-etape.prochaine .ruban-noeud { animation: none; }
  .ruban-ligne::after { transition: none; }
}

/* ============================================================================================
   Sous-page hackathon
   Le visuel officiel de l'événement est en « pixels » tramés : on en reprend
   l'esprit par une trame de points posée sur la police de titre Sage, sans
   toucher à la photo (aucun filtre coloré sur une image, règle officielle).
   ============================================================================================ */

.hk-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--entete) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px); }
.hk-hero-grille { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hk-hero-grille { grid-template-columns: 1.1fr 0.9fr; } }
.fil-ariane { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--sg-police-ui); font-size: 0.875rem; color: var(--texte-secondaire); margin-bottom: 28px; }
.fil-ariane a { text-decoration: none; color: var(--texte-fort); }
.fil-ariane a:hover { color: var(--sg-blanc); text-decoration: underline; }
.mono { font-family: var(--police-mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.hk-date { font-size: clamp(0.9375rem, 1.6vw, 1.125rem); color: var(--texte-fort); }
.hk-titre { margin-top: 18px; font-size: clamp(2.75rem, 6.6vw, 5.75rem); text-transform: uppercase; }
.trame {
  display: block;
  /* Trame de points : chaque lettre devient une matrice de points lumineux. */
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 61%);
  mask-image: radial-gradient(circle, #000 58%, transparent 61%);
  -webkit-mask-size: 0.075em 0.075em; mask-size: 0.075em 0.075em;
}
.hk-hero .sg-chapo { margin-top: 26px; max-width: 600px; }
.coorganisateurs { margin-top: 32px; }
.coorganisateurs ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.coorganisateurs li { font-family: var(--sg-police-ui); font-weight: 700; font-size: 0.9375rem; padding: 8px 14px; border: 1px solid var(--sg-bordure-forte); border-radius: var(--sg-rayon-pilule); background: var(--fond-voile); }
.coorganisateurs li.sage { color: var(--sg-vert); border-color: var(--sg-vert-trait); }
.hk-visuel { position: relative; }
.hk-visuel .media-cadre { box-shadow: var(--ombre-media); }
.hk-visuel figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--texte-secondaire); }

.faits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--sg-bordure); border: 1px solid var(--sg-bordure); border-radius: var(--rayon-carte); overflow: hidden; }
@media (min-width: 900px) { .faits { grid-template-columns: repeat(4, 1fr); } }
.fait { background: var(--sg-noir); padding: clamp(20px, 3vw, 32px); }
.fait .etiquette { display: block; }
.fait strong { display: block; margin-top: 12px; font-family: var(--sg-police-texte); font-weight: 700; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.3; }
.fait span { display: block; margin-top: 6px; color: var(--texte-secondaire); font-size: 0.9375rem; }

.etapes-jour { list-style: none; margin: 0; padding: 0; max-width: 820px; margin-inline: auto; position: relative; }
.etapes-jour::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--trait-discret); }
.etapes-jour li { position: relative; display: grid; gap: 4px 28px; padding: 0 0 36px 44px; }
@media (min-width: 700px) { .etapes-jour li { grid-template-columns: 150px 1fr; } }
.etapes-jour li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--sg-noir); border: 2px solid var(--vert-plein); }
.etapes-jour .heure { font-family: var(--sg-police-ui); font-weight: 700; color: var(--sg-vert); font-feature-settings: 'tnum'; }
.etapes-jour h3 { font-family: var(--sg-police-texte); font-weight: 700; font-size: 1.25rem; }
.etapes-jour p { color: var(--sg-corps); margin-top: 6px; }

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--sg-bordure); }
.faq details:last-child { border-bottom: 1px solid var(--sg-bordure); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--sg-police-texte); font-weight: 700; font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sg-police-ui); font-weight: 500; font-size: 1.5rem; color: var(--sg-vert); transition: transform .3s var(--sg-courbe-arrivee); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--sg-corps); max-width: 68ch; }

/* --- Blocs complémentaires ------------------------------------------------------------------------ */

.carte-icone { display: block; width: 44px; height: 44px; color: var(--sg-vert); margin-bottom: 18px; }
.grille-cartes { display: grid; gap: 16px; }
/* Cinq cartes : 2 + 2 + 1 pleine largeur, puis 3 + 2 sur grand écran (jamais une carte orpheline). */
@media (min-width: 700px) {
  .grille-cartes { grid-template-columns: repeat(2, 1fr); }
  .grille-cartes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .grille-cartes { grid-template-columns: repeat(6, 1fr); }
  .grille-cartes > *:nth-child(n) { grid-column: span 2; }
  .grille-cartes > *:nth-child(4):nth-last-child(2), .grille-cartes > *:nth-child(5):last-child { grid-column: span 3; }
}
.grille-partenaires { display: grid; gap: 16px; }
@media (min-width: 700px) { .grille-partenaires { grid-template-columns: repeat(2, 1fr); } }
/* Cinq partenaires : trois puis deux cartes, aucune mise en avant. */
@media (min-width: 1100px) {
  .grille-partenaires { grid-template-columns: repeat(6, 1fr); }
  .grille-partenaires > * { grid-column: span 2; }
  .grille-partenaires > :nth-child(4), .grille-partenaires > :nth-child(5) { grid-column: span 3; }
}
.grille-partenaires .carte { display: flex; flex-direction: column; }
.grille-partenaires .lien-fleche { margin-top: auto; padding-top: 18px; }
.nom-partenaire { font-family: var(--sg-police-texte); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.nom-partenaire.sage { color: var(--sg-vert); }
.deux-blocs { display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .deux-blocs { grid-template-columns: 1fr 1fr; } }
.deux-blocs .sg-titre { margin-top: 20px; }
.texte-bloc { margin-top: 18px; color: var(--sg-corps); max-width: 58ch; }
.texte-bloc.texte-secondaire { color: var(--texte-secondaire); }
.liste-coches { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.liste-coches li { display: flex; gap: 14px; align-items: flex-start; color: var(--sg-corps); }
.liste-coches li .icone { width: 30px; height: 30px; color: var(--sg-vert); }
.liste-coches strong { color: var(--sg-blanc); }
.texte-long { margin-top: 24px; max-width: 62ch; color: var(--sg-corps); }
.texte-long p + p { margin-top: 14px; }
.citation-etude { margin: clamp(56px, 8vw, 96px) auto 0; text-align: center; }
.citation-etude .sg-citation { font-size: clamp(1.5rem, 3.4vw, 2.6rem); max-width: 26ch; margin-inline: auto; }
.citation-etude .sg-auteur { margin-top: 18px; font-size: 1rem; }
.jour-num sup { font-size: 0.4em; vertical-align: super; letter-spacing: 0; }
.evenement h3 + .evenement-org { margin-top: -4px; }

.adopt-grille .carte { display: flex; flex-direction: column; }
.adopt-grille .carte .actions { margin-top: auto; padding-top: 30px; }

.section.compacte { padding-block: clamp(40px, 5vw, 64px); }

/* --- Ajouts du 13/11 : apport de Sage au hackathon (MCP Sage Intacct) ------------------------------ */

.apport-sage { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--sg-vert-trait); border-radius: var(--rayon-carte); background: var(--sg-surface); }
.apport-sage p { margin-top: 10px; color: var(--sg-corps); }
.apport-sage .lien-fleche { margin-top: 14px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-premiere { margin-bottom: 16px; }
/* Le nom de fichier du post de Trame Labs, en police à chasse fixe, sans capitales. */
.fichier { font-family: var(--police-mono); font-size: 0.88em; color: var(--sg-blanc); background: var(--sg-carte); border: 1px solid var(--sg-bordure-forte); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.liens-carte { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.grille-partenaires .liens-carte .lien-fleche { margin-top: 0; padding-top: 0; }

/* --- Ajouts du 13/11 : deux cartes « Après Adopt AI » ---------------------------------------------- */

.grille-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grille-2 { grid-template-columns: repeat(2, 1fr); } }
.grille-2 .carte { display: flex; flex-direction: column; }
.grille-2 .carte .actions { margin-top: auto; padding-top: 26px; }

/* --- Carte d'événement avec visuel (palmarès Maddyness × Sage) ------------------------------------ */

.evenement.avec-visuel { display: grid; gap: 22px; }
.evenement.avec-visuel .evenement-corps { display: flex; flex-direction: column; gap: 14px; }
.evenement-visuel { width: 100%; max-width: 300px; border-radius: 12px; border: 1px solid var(--sg-bordure); }
@media (min-width: 900px) { .evenement.avec-visuel { grid-template-columns: 1fr 240px; align-items: start; } }

/* --- Logos des partenaires (13/11) -----------------------------------------------------------------
   Les logos remplacent les noms écrits. Hauteur réglée logo par logo (--h) pour garder l'équilibre
   du visuel officiel du hackathon, d'où ils sont détourés en blanc. */

.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.logos img { display: block; height: var(--h, 26px); width: auto; }
.partenaires { display: flex; flex-wrap: wrap; gap: 22px 48px; align-items: flex-end; margin-top: 32px; }
.partenaires-groupe .etiquette { display: block; margin-bottom: 14px; }
.partenaires-compact { margin-top: 26px; gap: 18px 40px; }
.partenaires-compact .logos { gap: 12px 24px; }
.evenement-logos { margin-top: -2px; }
.evenement-logos .logos { gap: 10px 22px; }
.cobranding { display: flex; align-items: center; gap: 14px; }
.cobranding img { display: block; height: var(--h, 22px); width: auto; }
.cobranding .fois { color: var(--texte-secondaire); font-size: 1.1rem; }
.nom-partenaire img { display: block; height: var(--h, 30px); width: auto; }
.nom-partenaire { min-height: 44px; display: flex; align-items: center; }
.partenaire-media { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 16px; padding: 26px 28px; border: 1px solid var(--sg-bordure); border-radius: var(--rayon-carte); background: var(--sg-carte); }
.partenaire-media img { height: 64px; width: auto; }
.partenaire-media p { color: var(--sg-corps); max-width: 52ch; }

/* --- Annonce à venir ------------------------------------------------- */

.annonce-a-venir { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 16px; border: 1px dashed var(--contour-neutre); border-radius: var(--sg-rayon-pilule); color: var(--texte-secondaire); font-weight: 500; }

/* --- Édito ------------------------------------------------------------------------------------------ */

.edito-texte { display: grid; gap: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--sg-corps); }
.edito-texte p { margin: 0; }
.edito-attaque { font-size: 1.12em; color: var(--sg-blanc); }
.edito-chiffres, .edito-preuves { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .edito-chiffres { grid-template-columns: repeat(3, 1fr); } .edito-preuves { grid-template-columns: 1fr 1fr; } }
.edito-chiffres li { padding: 20px 22px; border: 1px solid var(--sg-bordure); border-radius: var(--rayon-carte); background: var(--sg-carte); }
.edito-chiffres strong { display: block; font-family: var(--sg-police-titre); font-weight: 900; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; color: var(--sg-vert); }
.edito-chiffres span { display: block; margin-top: 10px; font-size: 0.95rem; line-height: 1.4; }
.edito-preuves .carte { padding: 20px 22px; }
.edito-preuves .carte p { margin-top: 8px; font-size: 0.98rem; line-height: 1.5; }
.edito-citation .sg-citation { font-size: clamp(1.2rem, 2.2vw, 1.6rem); max-width: 44ch; }
.edito-source { margin-top: 28px; text-align: center; font-size: 0.85rem; color: var(--texte-secondaire); }

/* --- Formulaire de contact ------------------------------------------------------------------------------ */

.formulaire-contact { padding: clamp(24px, 4vw, 40px); }
.champs { display: grid; gap: 20px; }
@media (min-width: 700px) { .champs { grid-template-columns: 1fr 1fr; } .champ-large { grid-column: 1 / -1; } }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label { font-weight: 700; color: var(--sg-blanc); }
.champ .facultatif { font-weight: 400; color: var(--texte-secondaire); }
.champ input, .champ textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--sg-blanc); background: var(--sg-noir); border: 1px solid var(--sg-bordure-forte); border-radius: var(--sg-rayon); transition: border-color .2s; }
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--vert-plein); outline-offset: 1px; border-color: transparent; }
.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.formulaire-contact .sg-bouton:disabled { opacity: 0.45; cursor: not-allowed; transform: none; background: var(--vert-bouton); }
.formulaire-contact .formulaire-note { margin: 0; color: var(--texte-secondaire); font-size: 0.95rem; }
.formulaire-contact .formulaire-note.ok { color: var(--vert-plein); }
.formulaire-contact .formulaire-note.erreur { color: var(--sg-blanc); font-weight: 700; }
.formulaire-mention { margin: 20px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--texte-secondaire); }
.formulaire-mention a { color: inherit; text-decoration: underline; }
/* Champ piège anti-robot : hors écran, jamais vu ni atteint au clavier. */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Icônes produit officielles (bibliothèque Sage Brand, variante fond sombre) ------------------- */

.produit-icone { display: block; width: 42px; height: 42px; flex: none; }
.produit-icone.grand { width: 56px; height: 56px; }
.produits { display: flex; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .fil-chapitre:nth-child(odd) .produits { justify-content: flex-end; } }
.apport-tete { display: flex; align-items: center; gap: 14px; }
.apport-tete .sg-surtitre { margin: 0; }

/* Un mot composé qui ne se coupe pas en fin de ligne (« side-events »). */
.insecable { white-space: nowrap; }

/* --- Logos des side-events (13/11, suite) -----------------------------------------------------------
   Tous tirés des fichiers officiels (sites des organisateurs et d'Adopt AI), détourés en blanc sans
   toucher au dessin ; en mode clair, le même dessin passe en noir (filtre plus bas). */

.evenement-logos .etiquette { display: block; margin-bottom: 10px; }
.logo-evenement { display: block; height: 34px; width: auto; margin: 0 auto 24px; }
.logo-carte { display: block; height: 24px; width: auto; margin-bottom: 18px; }
.fil-logos { margin-top: 16px; gap: 10px 20px; }
@media (min-width: 900px) { .fil-chapitre:nth-child(odd) .fil-logos { justify-content: flex-end; } }

/* --- Bascule de thème (13/11) ----------------------------------------------------------------------
   Dans l'en-tête, au gabarit du bouton du menu mobile (44 px, cible tactile confortable) : le soleil
   propose le mode clair, la lune ramène au sombre. */

.bascule-theme {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--sg-rayon);
  border: 1px solid var(--sg-bordure-forte); background: transparent; color: var(--sg-blanc); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.bascule-theme:hover { border-color: var(--contour-survol); }
.bascule-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-lune { display: none; }
[data-theme='clair'] .theme-soleil { display: none; }
[data-theme='clair'] .theme-lune { display: block; }
@media (min-width: 960px) { .bascule-theme { margin-left: 0; width: 40px; height: 40px; } }

/* ====================================================================================================
   Mode clair (13/11/2026, demandé par Mickaël : bascule dans l'en-tête, le sombre reste la règle à
   l'arrivée). Règles web de la bibliothèque Sage Brand sur fond blanc :
   - texte noir sur blanc, la paire de référence ; jamais de vert vif en texte
     (canonical:color.no-green-text-on-white) : Jade accessible #007E45 pour les liens et les petits
     textes, Jade universel #00A310 pour le fragment vert d'un grand titre, les grands chiffres,
     les traits et les points ;
   - aucun dégradé (canonical:color.no-gradients) : les fonds lumineux de la bibliothèque, dessinés
     pour le noir, s'effacent ; le dégradé IA ne vit que sur noir (canonical:color.ai-gradient),
     d'où la pastille « Ai » et les illustrations posées sur un aplat noir ;
   - logo Sage noir sur fond clair (CHARTE.md §4) ; logos partenaires en noir, même dessin ;
   - les boutons gardent le vert de marque en fond, texte noir.
   ==================================================================================================== */

:root[data-theme='clair'] {
  color-scheme: light;
  --sg-noir: #ffffff;
  --sg-surface: #f4f4f4;
  --sg-carte: #f8f8f8;
  --sg-bordure: #e2e2e2;
  --sg-bordure-forte: #cbcbcb;
  --sg-blanc: #000000;
  --sg-corps: rgba(0, 0, 0, 0.82);
  --sg-attenue: #5c5c5c;
  --sg-discret: #8a8a8a;
  --sg-vert: #007e45;
  --sg-vert-trait: rgba(0, 126, 69, 0.4);
  --sg-vert-voile: rgba(0, 126, 69, 0.08);
  --texte-secondaire: rgba(0, 0, 0, 0.64);
  --vert-titre: #00a310;
  --vert-plein: #00a310;
  --vert-rvb: 0, 163, 16;
  --vert-contour-fort: rgba(0, 126, 69, 0.55);
  --texte-fort: rgba(0, 0, 0, 0.8);
  --texte-nav: rgba(0, 0, 0, 0.7);
  --trait-neutre: rgba(0, 0, 0, 0.12);
  --trait-discret: rgba(0, 0, 0, 0.1);
  --trait-numero: rgba(0, 0, 0, 0.22);
  --contour-neutre: rgba(0, 0, 0, 0.26);
  --contour-bouton: rgba(0, 0, 0, 0.24);
  --contour-survol: rgba(0, 0, 0, 0.5);
  --fond-entete: rgba(255, 255, 255, 0.86);
  --fond-voile: rgba(255, 255, 255, 0.9);
  --fond-carte-forte: #ffffff;
  --ombre-media: 0 30px 80px rgba(0, 0, 0, 0.14);
  --lueur-trait: none;
  --lueur-noeud: none;
  --lueur-rail: none;
  --lueur-bille: 0 0 0 6px rgba(0, 163, 16, 0.16);
  --lueur-point: none;
}
/* Sélection : le Jade accessible sous un texte noir manquerait de contraste. */
[data-theme='clair'] .sg ::selection { background: var(--vert-bouton); color: #000; }
[data-theme='clair'] .sg-fond { display: none; }
[data-theme='clair'] .logo-blanc, [data-theme='clair'] .logo-sage { filter: brightness(0); }
[data-theme='clair'] .hero-badge { width: 84px; padding: 6px 10px; border-radius: var(--sg-rayon-pilule); background: #000; }
[data-theme='clair'] .illustration-flottante img { background: #000; border-radius: 28px; padding: 7%; }
/* Icônes produit : tuiles blanches dessinées pour le noir ; un filet les détache du fond blanc. */
[data-theme='clair'] .produit-icone { border-radius: 12.5%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16); }
