/* ===== 01-variables.css ===== */
/* ==========================================================================
   Variables — toute l'identité visuelle est ici.
   Monde visuel : le cahier Seyès. Papier blanc à grands carreaux, bleu du
   stylo, jaune du surligneur, brique des façades d'Halluin.
   Dans WordPress : début de style.css (ou theme.json).

   Contrastes vérifiés (WCAG, 4,5:1 minimum pour le texte courant) :
     encre sur blanc 17,6:1 · doux sur blanc 7,9:1 · bleu sur blanc 7,7:1
     blanc sur bleu 7,7:1 · encre sur jaune 15,5:1 · brique sur gris 5,9:1
   ========================================================================== */

:root {
  /* --- Couleurs --------------------------------------------------------- */
  --encre:       #0E1630;  /* texte, pied de page                          */
  --doux:        #46506B;  /* texte secondaire                             */
  --bleu:        #1B3FD6;  /* bleu stylo : liens, bouton, grands aplats    */
  --bleu-fonce:  #1230A8;
  --bleu-nuit:   #0B1B5C;  /* épaisseur du bouton                          */
  --bleu-pale:   #DDE4FF;  /* texte courant sur fond bleu                  */
  --jaune:       #FFE94D;  /* surligneur                                   */
  --brique:      #A8432B;  /* dates, rappel des façades en briques         */
  --papier:      #FFFFFF;
  --gris:        #F2F4F9;  /* fonds de sections calmes                     */
  --carreau:     #DCE6F8;  /* petites lignes du quadrillage                */
  --carreau-fort:#B3C6EE;  /* grandes lignes du quadrillage, filets        */

  /* --- Typographies (hébergées sur le site) ------------------------------ */
  --titre: 'Bricolage Grotesque', system-ui, sans-serif;
  --texte: 'Atkinson Hyperlegible Next', 'Segoe UI', Arial, sans-serif;

  --taille-texte: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --interligne: 1.6;

  /* --- Espacements -------------------------------------------------------- */
  --g: 1rem;                                   /* gouttière latérale        */
  --max: 78rem;                                /* largeur de page           */
  --section: clamp(4.5rem, 3.5rem + 5vw, 8rem);/* respiration entre sections */
  --hauteur-entete: 4.25rem;

  /* --- Courbe d'animation commune (sortie rapide, fin douce) -------------- */
  --courbe: cubic-bezier(.65, 0, .2, 1);
}

@media (min-width: 48em) {
  :root { --g: 2rem; }
}

/* ===== 02-base.css ===== */
/* ==========================================================================
   Base — polices, remise à zéro, surfaces du navigateur, utilitaires
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2-variations'),
       url('../fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-next-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-next-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-entete) + 1rem);
  /* Les surfaces que le navigateur dessine, elles aussi aux couleurs du cahier */
  scrollbar-color: var(--bleu) var(--gris);
  accent-color: var(--bleu);
  caret-color: var(--bleu);
}
::selection { background: var(--jaune); color: var(--encre); }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--taille-texte);
  line-height: var(--interligne);
  overflow-wrap: break-word;
}
/* Les éléments volontairement débordants (banderole inclinée, logotype du pied)
   sont coupés sans créer de défilement horizontal. */
main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
p, ul, ol { margin: 0 0 1rem; }

a { color: var(--bleu); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--jaune);
  border-radius: 3px;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Garde un nom composé sur une seule ligne : « Sacré-Cœur », pas « Sacré- / Cœur » */
.insecable { white-space: nowrap; }

.lien-evitement {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1.25rem; background: var(--encre); color: #fff; font-weight: 700; border-radius: .4rem;
}
.lien-evitement:focus { top: 1rem; color: #fff; }

/* Le quadrillage Seyès, réutilisable sur n'importe quel bloc */
.seyes {
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--carreau-fort) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 7px, var(--carreau) 7px 8px),
    repeating-linear-gradient(to right, transparent 0 31px, var(--carreau) 31px 32px);
  background-position: 0 12px;
}

/* Le surligneur : se trace sous les mots importants */
.surligne {
  background: linear-gradient(transparent 55%, var(--jaune) 55%, var(--jaune) 90%, transparent 90%) no-repeat 0 0 / 0 100%;
  padding: 0 .04em;
  transition: background-size .9s var(--courbe);
}
.surligne--auto { animation: surligne .9s 1s var(--courbe) forwards; }
.vu .surligne, .surligne.vu, html:not(.js) .surligne { background-size: 100% 100%; }
@keyframes surligne { to { background-size: 100% 100%; } }

/* « Réduire les animations » : tout s'affiche directement dans son état final.
   Exception voulue : la banderole défilante continue de tourner (choix de
   design ; elle s'arrête au survol). */
@media (prefers-reduced-motion: reduce) {
  html:not(.forcer-animations) *:not(.bandeau__piste),
  html:not(.forcer-animations) *::before,
  html:not(.forcer-animations) *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html:not(.forcer-animations) .surligne { background-size: 100% 100%; }
}

/* ===== 03-composants.css ===== */
/* ==========================================================================
   Composants partagés par toutes les pages
   en-tête · menu · bouton · bandeau · lignes de cahier · rappel · pied
   marqueurs de travail
   ========================================================================== */

/* --- En-tête ------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  border-bottom: 1px solid var(--carreau-fort);
}
.entete__interieur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--hauteur-entete); flex: 1 1 auto; }

.logo { display: flex; align-items: center; gap: .65rem; color: var(--encre); text-decoration: none; }
/* Emblème détouré, un trait de cahier, puis le nom au stylo, surligné */
.logo img {
  width: auto; height: 2.4rem; flex-shrink: 0;
  padding-right: .65rem; border-right: 2px solid var(--carreau-fort);
}
.logo b { display: block; font-family: var(--titre); font-weight: 800; font-stretch: 85%; font-size: 1.4rem; line-height: 1; white-space: nowrap; color: var(--bleu); }
.logo__nom { background: linear-gradient(transparent 58%, var(--jaune) 58%, var(--jaune) 92%, transparent 92%); padding: 0 .04em; }
.logo small {
  display: block; margin-top: .25rem; white-space: nowrap;
  font-family: var(--titre); font-weight: 700; font-stretch: 85%;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brique);
}
/* Téléphone : le bouton Menu ne laisse qu'environ 145 px au nom */
@media (max-width: 30em) {
  .logo img { height: 2rem; padding-right: .5rem; }
  .logo b { font-size: 1.2rem; }
  .logo__depuis { display: none; }
}

.menu-bouton {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  padding: .45rem .95rem; background: #fff; color: var(--encre);
  border: 2px solid var(--encre); border-radius: .4rem;
  font: 700 1rem var(--texte); cursor: pointer;
}
.menu-bouton svg { width: 1.2rem; height: 1.2rem; }
.menu-bouton .icone-fermer { display: none; }
.menu-bouton[aria-expanded="true"] .icone-ouvrir { display: none; }
.menu-bouton[aria-expanded="true"] .icone-fermer { display: block; }

.nav__liste { list-style: none; margin: 0; padding: 0; }
.nav__liste a { color: var(--encre); font-weight: 700; text-decoration: none; }
/* Le surligneur sous l'entrée survolée ou active */
.nav__liste a:not(.nav__inscription) {
  background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 85% / 0 .45em;
  transition: background-size .25s ease-out;
}
.nav__liste a:not(.nav__inscription):hover,
.nav__liste a[aria-current="page"] { background-size: 100% .45em; }
.nav__inscription { border: 2px solid var(--encre); border-radius: .4rem; }
.nav__inscription:hover { background: var(--encre); color: #fff !important; }

/* Téléphone : menu déroulant. Sans JavaScript, il reste simplement affiché. */
@media (max-width: 61.99em) {
  .nav { flex-basis: 100%; padding-bottom: 1rem; }
  .js .nav { display: none; }
  .js .nav.est-ouvert { display: block; }
  .nav__liste a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--carreau); }
  .nav__liste a:not(.nav__inscription) { background-position: 0 70%; }
  .nav__inscription { margin-top: 1rem; padding: .8rem 1rem !important; text-align: center; }
  html:not(.js) .menu-bouton { display: none; }
}
/* Ordinateur : menu en ligne */
@media (min-width: 62em) {
  .entete__interieur { flex-wrap: nowrap; }
  .menu-bouton { display: none; }
  .nav__liste { display: flex; align-items: center; gap: 1.75rem; }
  .nav__liste a { display: block; padding: .4rem 0; }
  .nav__inscription { padding: .4rem .9rem !important; }
}

/* --- Le bouton : un vrai bouton qu'on enfonce ----------------------------- */
.cta {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: 1.05rem 1.6rem;
  background: var(--bleu); color: #fff;
  font: 700 1.0625rem/1.2 var(--texte); text-decoration: none;
  border-radius: .55rem; box-shadow: 0 6px 0 var(--bleu-nuit);
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .2s;
}
.cta:hover { background: var(--bleu-fonce); color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 var(--bleu-nuit); }
.cta:active { transform: translateY(6px); box-shadow: 0 0 0 var(--bleu-nuit); }
.cta svg { width: 1.2em; transition: transform .2s ease-out; }
.cta:hover svg { transform: translateX(4px); }
/* Version claire, pour les fonds bleus */
.cta--clair { background: var(--jaune); color: var(--encre); box-shadow: 0 6px 0 #B8A400; }
.cta--clair:hover { background: #FFF07A; color: var(--encre); box-shadow: 0 4px 0 #B8A400; }
.cta-note { margin: .9rem 0 0; font-size: .9rem; color: var(--doux); }

/* --- Bandeau défilant, légèrement de biais, comme une banderole ------------ */
.bandeau {
  --deborde: 5vw;   /* ce qui dépasse de chaque côté de l'écran */
  --fondu: 7%;      /* largeur de l'effet blanc sur les bords   */
  --pente: 2deg;    /* inclinaison de la banderole               */
  position: relative; z-index: 5;
  /* Penchée, la banderole descend de « demi-largeur × tan(pente) » au bord
     gauche de l'écran. On réserve cet espace dessous : sinon le coin passe sur
     la section sombre suivante et l'effet blanc y devient bleu nuit. */
  margin-bottom: calc(50% * tan(var(--pente)));
  /* Plus large que l'écran : une fois inclinée, la banderole doit dépasser des
     deux côtés, sinon ses coins apparaissent (et laissaient un triangle blanc).
     100 % = la largeur de la page, barre de défilement exclue (100vw l'inclut,
     ce qui décalait le côté droit). */
  width: calc(100% + 2 * var(--deborde)); margin-left: calc(-1 * var(--deborde));
  transform: rotate(calc(-1 * var(--pente)));
  background: var(--bleu); color: #fff; padding: 1.05rem 0; overflow: hidden;
  /* Effet blanc : le fondu commence exactement au bord visible de l'écran,
     pas au bord de la banderole (qui est hors de l'écran) : d'où le décalage d'avant. */
  --masque: linear-gradient(to right,
    transparent var(--deborde),
    #000 calc(var(--deborde) + var(--fondu)),
    #000 calc(100% - var(--deborde) - var(--fondu)),
    transparent calc(100% - var(--deborde)));
  -webkit-mask-image: var(--masque); mask-image: var(--masque);
}
/* Une seule ligne, qui défile à l'infini. site.js allonge la liste pour
   qu'elle soit toujours plus large que l'écran, puis la double : la piste
   recule de la moitié de sa longueur et repart sans à-coup. */
.bandeau__piste { display: flex; width: max-content; animation: defile var(--duree, 42s) linear infinite; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau ul { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.bandeau li {
  display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; white-space: nowrap;
  font-family: var(--titre); font-weight: 700; font-stretch: 88%; line-height: 1;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.85rem);
}
.bandeau li::after { content: ""; width: 1.4rem; height: 2px; background: var(--jaune); }
.bandeau em { font-style: normal; color: var(--jaune); }
@keyframes defile { to { transform: translateX(-50%); } }

/* --- Lignes de cahier : questions / réponses, faits, listes ---------------
   Chaque ligne se trace de gauche à droite quand elle arrive à l'écran. */
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes > li { position: relative; display: grid; gap: .4rem; padding: 1.5rem 0 1.4rem; }
@media (min-width: 48em) {
  .lignes > li { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: .5rem 2rem; }
  /* Tout ce qui suit le titre reste dans la colonne de droite, même s'il y a
     plusieurs paragraphes (sinon le 2ᵉ passait sous le titre, à gauche). */
  .lignes > li > h3 { grid-row: 1 / span 9; }
  .lignes > li > :not(h3) { grid-column: 2; }
  /* Variante empilée : le titre au-dessus du texte, sur toute la largeur.
     Automatique dans une bande bleue : elle place déjà la liste dans une
     demi-colonne, trop étroite pour deux sous-colonnes. Les trois règles
     ci-dessus sont annulées ensemble (en n'annulant que la première, le texte
     partait dans une colonne fantôme : c'était le bug d'alignement). */
  :is(.lignes--empilees, .bande-bleue .lignes) > li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  :is(.lignes--empilees, .bande-bleue .lignes) > li > * { grid-row: auto; grid-column: auto; }
}
.lignes > li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--carreau-fort); transform-origin: left;
  transform: scaleX(var(--trace, 1)); transition: transform .9s var(--courbe);
}
.lignes > li.attend { --trace: 0; }
.lignes h3 { font-weight: 700; font-stretch: 92%; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; }
.lignes h3 span { background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 88% / 0 .42em; transition: background-size .35s ease-out; }
.lignes > li:hover h3 span { background-size: 100% .42em; }
.lignes p { margin: 0 0 .5rem; color: var(--doux); }
.lignes p:last-child { margin-bottom: 0; }
.lignes strong { color: var(--encre); }

/* --- Ressources : un document, un numéro, un itinéraire… ------------------
   Ce que le visiteur doit repérer d'un coup d'œil sort du paragraphe et
   devient une petite carte cliquable, placée à la FIN du bloc :
   le texte explique d'abord, la ressource vient ensuite.
   Dans WordPress : un bloc « Boutons » avec un style de bloc « ressource ». */
.ressources { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.ressource {
  display: inline-flex; align-items: center; gap: .75rem; max-width: 100%;
  padding: .5rem 1.1rem .5rem .5rem; border: 2px solid var(--encre); border-radius: .6rem;
  background: #fff; color: var(--encre); text-decoration: none; font-weight: 700; line-height: 1.2;
  box-shadow: 0 3px 0 var(--encre); transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.ressource:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--encre); }
.ressource:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
.ressource__icone {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .4rem;
  background: var(--jaune); font-family: var(--titre); font-size: .78rem; font-weight: 800; letter-spacing: .04em;
}
.ressource__icone svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ressource small { display: block; margin-top: .1rem; font-weight: 400; font-size: .85rem; color: var(--doux); }

/* Lien « pour aller plus loin » : sur sa propre ligne, avec une flèche */
.suite { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.suite::after { content: "→"; text-decoration: none; transition: transform .2s ease-out; }
.suite:hover::after { transform: translateX(4px); }

/* --- Photos : un rideau de couleur qui se lève à l'arrivée à l'écran --------
   Le rideau est un calque posé AU-DESSUS de la photo, qui se replie vers le
   haut. On ne masque jamais la photo elle-même : un navigateur ne charge pas
   une image « lazy » entièrement masquée (c'était le bug de la photo absente). */
.rideau { position: relative; overflow: hidden; }
.rideau::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--rideau, var(--bleu));
  transform-origin: top; transform: scaleY(0);
  transition: transform 1s cubic-bezier(.7, 0, .2, 1);
}
.rideau.attend::after { transform: scaleY(1); }

/* --- Mention « Photo d'illustration » sur les photos de banques d'images --- */
.cadre-photo { position: relative; }
.illustration {
  position: absolute; right: .5rem; bottom: .5rem;
  background: rgb(14 22 48 / .75); color: #fff; font-size: .72rem; line-height: 1.4;
  padding: .15rem .5rem; border-radius: 2px;
}

/* --- Rappel discret de l'inscription, en fin de page intérieure ----------- */
.rappel { padding-block: 3rem; background: var(--gris); }
.rappel__interieur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.rappel p {
  margin: 0; font-family: var(--titre); font-weight: 800; font-stretch: 85%;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.05; letter-spacing: -.02em; max-width: 22ch;
}

/* --- Pied de page -------------------------------------------------------- */
/* overflow: hidden (et pas seulement en largeur) : le logotype géant dépasse
   volontairement par le bas ; sans ça, il laissait une bande blanche sous le pied. */
.pied { background: var(--encre); color: #E4E8F5; padding-top: 4.5rem; overflow: hidden; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; text-decoration-color: var(--jaune); }
.pied :focus-visible { box-shadow: 0 0 0 6px var(--encre); outline-color: var(--jaune); }
.pied__grille { display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .pied__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .pied__grille { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.pied__titre {
  font: 700 .82rem var(--texte); letter-spacing: .1em; text-transform: uppercase;
  color: #9FAAC8; margin: 0 0 1rem;
}
.pied address { font-style: normal; font-size: 1.05rem; line-height: 1.7; }
.pied address .grand {
  display: block; margin-bottom: .5rem; color: #fff;
  font-family: var(--titre); font-weight: 700; font-stretch: 88%; font-size: 1.5rem; line-height: 1.15;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.reseaux a { display: inline-flex; align-items: center; gap: .6rem; }
.reseaux svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.pied__bas {
  margin-top: 3.5rem; padding: 1.25rem 0; border-top: 1px solid rgb(255 255 255 / .18);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: #9FAAC8;
}
.pied__bas a { color: #C9D1EA; }
/* Le nom du collège, en très grand, coupé par le bas de la page */
.pied__nom {
  margin: 1.5rem 0 -.08em; white-space: nowrap; user-select: none;
  font-family: var(--titre); font-weight: 800; font-stretch: 78%;
  font-size: clamp(4rem, 19vw, 17rem); line-height: .72; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px rgb(255 255 255 / .22);
}

/* --- Marqueurs de travail : à traiter avant la mise en ligne --------------- */
.a-completer {
  background: var(--jaune); color: var(--encre); font-weight: 700; font-size: .82em;
  padding: .05em .3em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ===== 04-accueil.css ===== */
/* ==========================================================================
   Page d'accueil — une règle par section, dans l'ordre de la page.
   WordPress : chaque section = un fichier template-parts/accueil/*.php
   ========================================================================== */

/* --- 1. Promesse : la page de cahier ------------------------------------- */
.promesse { position: relative; padding: 2.5rem 0 7rem; }
.promesse::after {                       /* le quadrillage s'efface vers le bas */
  content: ""; position: absolute; inset: auto 0 0; height: 9rem;
  background: linear-gradient(transparent, var(--papier)); pointer-events: none;
}
.promesse .wrap { position: relative; z-index: 2; display: grid; gap: 3rem; }
@media (min-width: 62em) {
  .promesse { padding: 3rem 0 8rem; }
  .promesse .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
.promesse h1 {
  font-stretch: 82%; font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem);
  line-height: .94; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.promesse h1 .petit {
  display: block; margin-bottom: .35em; color: var(--doux);
  font-weight: 500; font-stretch: 100%; font-size: .42em; line-height: 1.15; letter-spacing: -.01em;
}
.promesse__sous { font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); max-width: 30rem; margin-bottom: 2rem; }

/* Photo en arche, comme les fenêtres de la façade, et ce qui flotte autour */
.scene { position: relative; width: 100%; max-width: 30rem; margin-inline: auto; }
.scene__photo {
  overflow: hidden; aspect-ratio: 4 / 5; background: var(--gris);
  border: 3px solid var(--encre); border-radius: 50% 50% .6rem .6rem / 34% 34% .6rem .6rem;
}
.scene__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

.tampon {
  position: absolute; top: -1.5rem; left: -1.75rem; width: 8.5rem; height: 8.5rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--jaune); border: 2px solid var(--encre);
}
.tampon svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 22s linear infinite; }
.tampon text { font: 700 10.5px var(--texte); letter-spacing: .14em; fill: var(--encre); text-transform: uppercase; }
.tampon b { font-family: var(--titre); font-stretch: 85%; font-size: 1.05rem; line-height: 1; text-align: center; }
@keyframes tourne { to { transform: rotate(360deg); } }

.etiquette {
  position: absolute; background: #fff; border: 2px solid var(--encre); border-radius: .45rem;
  padding: .55rem .8rem; font-weight: 700; font-size: .92rem; line-height: 1.2;
  animation: flotte 7s ease-in-out infinite;
}
.etiquette span { display: block; font-weight: 400; font-size: .8rem; color: var(--doux); }
.etiquette--1 { right: -1.25rem; top: 38%; }
.etiquette--2 { left: -1rem; bottom: 1.5rem; animation-delay: -3.5s; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 40em) {
  .tampon { width: 6.8rem; height: 6.8rem; left: -.5rem; top: -1rem; }
  .tampon b { font-size: .9rem; }
  .etiquette--1 { right: -.4rem; }
  .etiquette--2 { left: -.4rem; }
}
/* La banderole chevauche le bas de la photo */
/* Sur l'accueil, la banderole est à cheval sur la promesse et la section sombre
   de la vidéo. Un fondu ne peut pas se fondre à la fois dans le blanc et dans
   le bleu nuit : on le retire, et la banderole traverse l'écran bord à bord. */
.promesse + .bandeau {
  margin-top: -4.5rem; margin-bottom: -2rem;
  -webkit-mask-image: none; mask-image: none;
}

/* --- 1 bis. Le collège en 45 secondes : la vidéo de présentation ---------- */
.video { position: relative; padding: calc(var(--section) * .8) 0 var(--section); background: var(--encre); color: #fff; }
.video .wrap { display: grid; gap: 2rem; }
@media (min-width: 62em) { .video .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 3.5rem; align-items: center; } }
.video h2 { font-stretch: 82%; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1rem; }
.video h2 span { color: var(--jaune); }
.video p { color: #C9D1EA; margin: 0; }
.video__cadre { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .8rem; border: 3px solid #fff; background: #000; }
.video__cadre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- 2. Les questions du portail ----------------------------------------- */
.portail { padding: var(--section) 0 calc(var(--section) * .85); }
.portail .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 62em) {
  .portail .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 5rem; }
  .portail__titre { position: sticky; top: 7rem; align-self: start; }
}
.portail h2 { font-stretch: 85%; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.9rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.portail h2 em { font-style: normal; color: var(--bleu); }
.portail__titre p { color: var(--doux); max-width: 24rem; margin: 0; }
.temoignage { margin: 2.5rem 0 0; padding-top: 1.1rem; border-top: 2px solid var(--encre); max-width: 26rem; }
.temoignage blockquote { margin: 0 0 .6rem; }
.temoignage blockquote p { color: var(--encre); font-family: var(--titre); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.temoignage figcaption { font-size: .9rem; color: var(--doux); }

/* --- 3. Les projets : le bleu du stylo occupe toute la section ------------ */
.projets { position: relative; padding: var(--section) 0; background: var(--bleu); color: #fff; --rideau: var(--jaune); }
.projets::before {                      /* quadrillage blanc très léger */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0 31px, rgb(255 255 255 / .07) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / .07) 31px 32px);
}
.projets .wrap { position: relative; }
.projets h2 { font-stretch: 82%; font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.6rem); line-height: .96; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 3.5rem; }
.projets h2 span { color: var(--jaune); }
.mosaique { display: grid; gap: 2.5rem; }
@media (min-width: 62em) {
  .mosaique { grid-template-columns: repeat(12, 1fr); gap: 4rem 2.5rem; align-items: start; }
  .mosaique .projet--1 { grid-column: 1 / 8; }
  .mosaique .projet--2 { grid-column: 9 / 13; margin-top: 7rem; }
  .mosaique .projet--3 { grid-column: 2 / 6; margin-top: -3rem; }
  .mosaique .projet--4 { grid-column: 7 / 13; }
}
.projet { margin: 0; }
.projet__img { position: relative; overflow: hidden; border-radius: .6rem; background: var(--bleu-nuit); }
/* :not(.eva) — sinon ce sélecteur, plus spécifique, imposerait 100 % de largeur à la capture d'EVA */
.projet__img img:not(.eva) { width: 100%; height: 100%; object-fit: cover; }
.projet--1 .projet__img { aspect-ratio: 16 / 11; }
.projet--2 .projet__img { aspect-ratio: 3 / 4; }
.projet--3 .projet__img { aspect-ratio: 1; }
.projet--4 .projet__img { aspect-ratio: 16 / 10; }
.eva {
  position: absolute; right: -1rem; bottom: -1.5rem; width: 46%;
  border: 3px solid #fff; border-radius: .5rem; box-shadow: 0 18px 40px rgb(0 0 0 / .35); transform: rotate(3deg);
}
@media (max-width: 40em) { .eva { right: .5rem; bottom: .5rem; width: 44%; } }
.projet figcaption { padding-top: 1.4rem; }
.projet h3 { font-stretch: 88%; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1; margin-bottom: .6rem; }
.projet p { margin: 0 0 .8rem; color: var(--bleu-pale); max-width: 32rem; }
.projet a { color: var(--jaune); font-weight: 700; }

/* --- 4. Halluin, 1856 ---------------------------------------------------- */
.histoire { display: grid; background: var(--gris); }
@media (min-width: 62em) { .histoire { grid-template-columns: 1.15fr 1fr; min-height: 36rem; } }
.histoire__photo { position: relative; min-height: 22rem; }
.histoire__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.histoire__texte { padding: clamp(3rem, 2rem + 4vw, 6rem) var(--g); align-self: center; max-width: 36rem; }
.histoire h2 { font-stretch: 82%; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.histoire h2 .date { display: block; color: var(--brique); }
.labels { list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 2px solid var(--encre); display: grid; gap: .9rem; }
.labels li { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; align-items: baseline; }
.labels b { font-family: var(--titre); font-stretch: 88%; font-size: 1.15rem; }
.labels span { color: var(--doux); font-size: .95rem; }
.histoire .source { margin-top: 1rem; font-size: .85rem; color: var(--doux); }
.labels .an { grid-row: span 2; min-width: 5.5rem; font-family: var(--titre); font-weight: 800; font-size: 1rem; color: var(--brique); }

/* --- 5. Appel final ------------------------------------------------------ */
.final { padding: var(--section) 0; background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--carreau) 31px 32px); }
.final h2 { font-stretch: 82%; font-size: clamp(2.8rem, 1.5rem + 6vw, 7rem); line-height: .9; letter-spacing: -.03em; max-width: 12ch; margin-bottom: 2.5rem; }
.etapes { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: etape; max-width: 60rem; }
@media (min-width: 62em) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.etapes li { counter-increment: etape; border-top: 2px solid var(--encre); padding-top: .9rem; }
.etapes li::before {
  content: counter(etape); display: block; margin-bottom: .35rem;
  font-family: var(--titre); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--brique);
}
.etapes b { display: block; }
.etapes span { color: var(--doux); font-size: .95rem; }

/* ===== 05-pages.css ===== */
/* ==========================================================================
   Pages intérieures — page.php, single.php, home.php
   Même monde et même carrure que l'accueil. Chaque page a son moment fort :
   À propos : la frise · Infos : les panneaux qui s'empilent ·
   Actualités : la une · Contact : le numéro géant · Inscriptions : le parcours ·
   Articles : le slogan surligné.
   ========================================================================== */

/* --- Apparition générique (utilisée avec parcimonie) ---------------------- */
.apparait { transition: opacity .8s ease-out, transform .8s var(--courbe); }
.apparait.attend { opacity: 0; transform: translateY(2rem); }

/* --- Fil d'Ariane -------------------------------------------------------- */
.ariane ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; color: var(--doux); }
.ariane li + li::before { content: "/"; margin-right: .5rem; color: var(--carreau-fort); }
.ariane a { color: var(--doux); }

/* --- Tête de page : un morceau de cahier, grand format -------------------- */
.tete { position: relative; padding: 2.5rem 0 7rem; }
.tete::after {
  content: ""; position: absolute; inset: auto 0 0; height: 9rem;
  background: linear-gradient(transparent, var(--papier)); pointer-events: none;
}
.tete > .wrap { position: relative; z-index: 2; display: grid; gap: 3rem; }
@media (min-width: 62em) {
  .tete { padding: 3rem 0 8rem; }
  .tete > .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
  .tete--seule > .wrap { grid-template-columns: minmax(0, 1fr); }
}
.tete h1 {
  font-stretch: 82%; font-size: clamp(2.8rem, 1.3rem + 5.6vw, 6.4rem);
  line-height: .9; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.tete h1 .petit {
  display: block; margin-bottom: .4em; color: var(--doux);
  font-weight: 500; font-stretch: 100%; font-size: .34em; line-height: 1.15; letter-spacing: -.01em;
}
.tete__intro { font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); max-width: 34rem; margin-bottom: 2rem; }
.tete__intro:last-child { margin-bottom: 0; }
/* La banderole chevauche le bas de la tête de page */
.tete + .bandeau { margin-top: -4.5rem; }

/* --- Énoncé géant : quelques mots, très grands, surlignés un par un ------- */
.enonce { padding: var(--section) 0; }
.enonce .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 62em) { .enonce .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 4rem; } }
/* Espacement volontairement plus large qu'ailleurs : à cette taille, les lettres
   serrées (le « dir » de « Grandir ») se collaient en un bloc noir. */
.enonce__mots { margin: 0; font-family: var(--titre); font-weight: 800; font-stretch: 90%; font-size: clamp(3rem, 1.4rem + 6.4vw, 7rem); line-height: .92; letter-spacing: 0; }
.enonce__mots span { display: block; }
.enonce__mots .surligne { display: inline; }
.enonce__texte p { max-width: 30rem; }

/* --- Frise chronologique : la ligne se trace, les dates apparaissent ------- */
.frise { padding: var(--section) 0; background: var(--gris); }
.frise h2 { font-stretch: 82%; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: .95; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 3.5rem; }
.frise__liste { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.frise__liste::before {                         /* le trait qui relie les dates */
  content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 3px;
  background: var(--encre); transform-origin: top; transform: scaleY(var(--trace, 1));
  transition: transform 1.6s var(--courbe);
}
.frise__liste.attend { --trace: 0; }
.frise__liste li { position: relative; padding-left: 2.5rem; }
.frise__liste li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: var(--jaune); border: 3px solid var(--encre);
}
.frise__date { display: block; font-family: var(--titre); font-weight: 800; font-stretch: 82%; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; color: var(--brique); margin-bottom: .4rem; }
.frise__liste b { display: block; font-size: 1.15rem; margin-bottom: .25rem; }
.frise__liste p { margin: 0; color: var(--doux); max-width: 22rem; }
@media (min-width: 62em) {
  .frise__liste { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 2.5rem; }
  .frise__liste::before { left: 0; right: 0; top: .45rem; bottom: auto; width: auto; height: 3px; transform-origin: left; transform: scaleX(var(--trace, 1)); }
  .frise__liste li { padding-left: 0; padding-top: 1.5rem; }
  .frise__liste li::before { top: -2.55rem; }
}

/* Frise longue (À propos) : une colonne sur téléphone, en zigzag sur ordinateur */
.frise__img { margin-top: 1rem; width: 100%; max-width: 15rem; border: 3px solid var(--encre); border-radius: .5rem; filter: grayscale(.15); }
.frise__source { margin: 3rem 0 0; font-size: .95rem; color: var(--doux); }
@media (min-width: 62em) {
  .frise--longue .frise__liste { grid-template-columns: 1fr 1fr; column-gap: 7rem; row-gap: 0; padding-top: 0; }
  .frise--longue .frise__liste::before {
    left: 50%; right: auto; top: 0; bottom: 0; width: 3px; height: auto; margin-left: -1.5px;
    transform-origin: top; transform: scaleY(var(--trace, 1));
  }
  .frise--longue .frise__liste li { padding: 0 0 3rem; }
  .frise--longue .frise__liste li:nth-child(odd) { grid-column: 1; text-align: right; }
  .frise--longue .frise__liste li:nth-child(odd) p, .frise--longue .frise__liste li:nth-child(odd) .frise__img { margin-left: auto; }
  .frise--longue .frise__liste li:nth-child(even) { grid-column: 2; margin-top: 7rem; }
  .frise--longue .frise__liste li::before { top: .9rem; }
  .frise--longue .frise__liste li:nth-child(odd)::before { left: auto; right: -4.1rem; }
  .frise--longue .frise__liste li:nth-child(even)::before { left: -4.1rem; }
}

/* --- Mots géants en contour : se remplissent au survol -------------------- */
.valeurs { padding: calc(var(--section) * .8) 0; overflow: hidden; }
.valeurs h2 { font-stretch: 85%; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); line-height: 1; margin-bottom: 2rem; }
.valeurs ul { list-style: none; margin: 0; padding: 0; }
.valeurs li {
  font-family: var(--titre); font-weight: 800; font-stretch: 82%;
  font-size: clamp(3.2rem, 1rem + 10vw, 10rem); line-height: .86; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--encre);
  transition: color .35s ease-out;
}
.valeurs li:nth-child(even) { padding-left: clamp(1rem, 8vw, 10rem); }
.valeurs li:hover { color: var(--bleu); -webkit-text-stroke-color: var(--bleu); }
/* Sur écran tactile, pas de survol : les mots sont pleins */
@media (hover: none) { .valeurs li { color: var(--encre); -webkit-text-stroke: 0; } .valeurs li:nth-child(odd) { color: var(--bleu); } }

/* --- Bloc texte + photo, asymétrique ------------------------------------- */
.bloc { padding: var(--section) 0; }
.bloc .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62em) {
  .bloc .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5rem; }
  .bloc--inverse .bloc__photo { order: 2; }
}
.bloc h2 { font-stretch: 82%; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.bloc p { max-width: 36rem; }
.bloc__photo { position: relative; margin: 0; }
.bloc__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: .6rem; }
.bloc__photo--arche img { aspect-ratio: 4 / 5; border: 3px solid var(--encre); border-radius: 50% 50% .6rem .6rem / 34% 34% .6rem .6rem; }
.bloc--gris { background: var(--gris); }
.bloc__photo--archive img { aspect-ratio: auto; border: 3px solid var(--encre); filter: sepia(.15); }
.bloc__photo figcaption { margin-top: .6rem; font-size: .95rem; color: var(--doux); }
.devise {
  font-family: var(--titre); font-weight: 700; font-stretch: 88%; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  line-height: 1.2; padding-top: 1rem; border-top: 3px solid var(--encre);
}

/* --- Bande bleue : une phrase forte, en grand ---------------------------- */
.bande-bleue { position: relative; padding: var(--section) 0; background: var(--bleu); color: #fff; }
.bande-bleue::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0 31px, rgb(255 255 255 / .07) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / .07) 31px 32px);
}
.bande-bleue .wrap { position: relative; }
.bande-bleue h2 { font-stretch: 82%; font-size: clamp(2.4rem, 1.2rem + 4.8vw, 5.6rem); line-height: .92; letter-spacing: -.03em; max-width: 15ch; margin-bottom: 2rem; }
.bande-bleue h2 span { color: var(--jaune); }
.bande-bleue p { color: var(--bleu-pale); max-width: 38rem; font-size: 1.15rem; }
.bande-bleue a { color: var(--jaune); font-weight: 700; }
.bande-bleue__grille { display: grid; gap: 3rem; }
@media (min-width: 62em) { .bande-bleue__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: start; } }
/* Lignes de cahier en version blanche, sur fond bleu */
.bande-bleue .lignes > li::after { background: rgb(255 255 255 / .35); }
.bande-bleue .lignes h3 { color: #fff; }
/* Sur fond bleu, pas de surligneur au survol : le texte reste blanc et lisible */
.bande-bleue .lignes h3 span { background: none; }
.bande-bleue .lignes p { color: var(--bleu-pale); }
/* La disposition empilée des lignes est gérée par le composant (03-composants.css) */
.bande-bleue .ressource { color: var(--encre); }
.bande-bleue .ressource small { color: var(--doux); }

/* --- Section de lignes, titre fixe à gauche ------------------------------- */
.section-lignes { padding: var(--section) 0; }
.section-lignes .wrap { display: grid; gap: 2rem; }
@media (min-width: 62em) {
  .section-lignes .wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 5rem; }
  .section-lignes__titre { position: sticky; top: 7rem; align-self: start; }
}
.section-lignes h2 { font-stretch: 82%; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1rem; }
.section-lignes h2 em { font-style: normal; color: var(--bleu); }
.section-lignes__titre p { color: var(--doux); max-width: 24rem; }

/* --- Panneaux qui s'empilent au scroll (page Infos) ---------------------- */
.pile { padding: var(--section) 0 calc(var(--section) * .5); }
.pile > .wrap > h2 { font-stretch: 82%; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5.2rem); line-height: .92; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 3rem; }
.panneaux { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.panneau {
  display: grid; overflow: hidden; border: 3px solid var(--encre); border-radius: .9rem;
  background: #fff; box-shadow: 0 -12px 30px rgb(14 22 48 / .12);
}
@media (min-width: 62em) {
  .panneaux { gap: 3rem; }
  /* Même hauteur pour tous : chaque panneau recouvre exactement le précédent */
  .panneau { position: sticky; grid-template-columns: 1fr 1.1fr; height: min(30rem, 72vh); }
  .panneau:nth-child(1) { top: 6rem; }
  .panneau:nth-child(2) { top: 7rem; }
  .panneau:nth-child(3) { top: 8rem; }
  .panneau:nth-child(4) { top: 9rem; }
}
.panneau__texte { padding: clamp(1.5rem, 1rem + 2vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.panneau__num { font-family: var(--titre); font-weight: 800; font-size: 1rem; letter-spacing: .08em; color: var(--brique); margin-bottom: .75rem; }
.panneau h3 { font-stretch: 82%; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: .92; letter-spacing: -.03em; margin-bottom: 1rem; }
.panneau p { color: var(--doux); max-width: 32rem; }
.panneau p:last-child { margin-bottom: 0; }
.panneau__img { position: relative; min-height: 16rem; }
.panneau__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panneau--bleu { background: var(--bleu); color: #fff; }
.panneau--bleu p { color: var(--bleu-pale); }
.panneau--bleu .panneau__num { color: var(--jaune); }
.panneau--jaune { background: var(--jaune); }
.panneau--jaune p { color: var(--encre); }
.panneau--encre { background: var(--encre); color: #fff; }
.panneau--encre p { color: #C9D1EA; }
.panneau--encre .panneau__num { color: var(--jaune); }

/* --- La une (page Actualités) --------------------------------------------- */
.une { padding: 1rem 0 var(--section); }
.une__article { display: grid; gap: 2rem; color: inherit; text-decoration: none; }
@media (min-width: 62em) { .une__article { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; align-items: center; } }
.une__img { position: relative; overflow: hidden; border-radius: .6rem; border: 3px solid var(--encre); }
.une__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--courbe); }
.une__article:hover .une__img img { transform: scale(1.04); }
.date { display: inline-block; font-family: var(--titre); font-weight: 800; font-stretch: 85%; color: var(--brique); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .75rem; }
.une h2 { font-stretch: 82%; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1rem; }
.une__article:hover h2 span { background-size: 100% 100%; }
.une p { color: var(--doux); }
.une .lire { font-weight: 700; color: var(--bleu); }

.fil { padding: 0 0 var(--section); }
.fil__liste { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--encre); }
.fil__liste > li { position: relative; border-bottom: 2px solid var(--carreau-fort); }
.fil__liste a { display: grid; gap: .75rem 2rem; padding: 1.75rem 0; color: inherit; text-decoration: none; align-items: center; }
@media (min-width: 48em) { .fil__liste a { grid-template-columns: 9rem minmax(0, 1fr) 11rem; } }
.fil__jour { font-family: var(--titre); font-weight: 800; font-stretch: 82%; font-size: 2.6rem; line-height: .9; letter-spacing: -.03em; color: var(--brique); }
.fil__jour small { display: block; font-size: .95rem; font-stretch: 100%; letter-spacing: 0; color: var(--doux); margin-top: .25rem; }
.fil__liste h3 { font-stretch: 85%; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .5rem; }
.fil__liste h3 span { background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 88% / 0 .42em; transition: background-size .35s ease-out; }
.fil__liste a:hover h3 span { background-size: 100% .42em; }
.fil__liste p { margin: 0; color: var(--doux); }
.fil__vignette { overflow: hidden; border-radius: .5rem; }
.fil__vignette img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--courbe); }
.fil__liste a:hover .fil__vignette img { transform: scale(1.06); }

/* --- Contact : les coordonnées en très grand ------------------------------ */
.joindre { padding: 1rem 0 var(--section); }
.joindre__liste { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--encre); }
.joindre__liste > li { display: grid; gap: .3rem 2rem; padding: 1.75rem 0; border-bottom: 2px solid var(--carreau-fort); }
@media (min-width: 62em) { .joindre__liste > li { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; } }
.joindre__quoi { font-weight: 700; color: var(--doux); }
.joindre__geant {
  font-family: var(--titre); font-weight: 800; font-stretch: 82%;
  font-size: clamp(2rem, 1rem + 5vw, 5.4rem); line-height: .95; letter-spacing: -.03em;
  color: var(--encre); text-decoration: none; overflow-wrap: anywhere;
}
a.joindre__geant span { background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 88% / 0 .4em; transition: background-size .35s ease-out; }
a.joindre__geant:hover span, a.joindre__geant:focus-visible span { background-size: 100% .4em; }
.joindre__plus { grid-column: 1 / -1; color: var(--doux); margin: 0; }
@media (min-width: 62em) { .joindre__plus { grid-column: 2; } }

/* --- Inscriptions : le parcours en trois étapes --------------------------- */
.parcours { padding: var(--section) 0; }
.parcours h2 { font-stretch: 82%; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5.2rem); line-height: .92; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 3rem; }
.parcours__etapes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; counter-reset: etape; }
.parcours__etapes::before {
  content: ""; position: absolute; left: 1.75rem; top: 2rem; bottom: 2rem; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--encre) 0 10px, transparent 10px 18px);
  transform-origin: top; transform: scaleY(var(--trace, 1)); transition: transform 1.6s var(--courbe);
}
.parcours__etapes.attend { --trace: 0; }
.parcours__etapes > li { position: relative; padding-left: 5rem; counter-increment: etape; }
.parcours__etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--jaune); border: 3px solid var(--encre);
  font-family: var(--titre); font-weight: 800; font-size: 1.6rem;
}
.parcours__etapes h3 { font-stretch: 82%; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.03em; margin: .35rem 0 .75rem; }
.parcours__etapes p { color: var(--doux); max-width: 34rem; }
@media (min-width: 62em) {
  .parcours__etapes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .parcours__etapes::before {
    left: 1.75rem; right: 1.75rem; top: 1.75rem; bottom: auto; width: auto; height: 3px;
    background: repeating-linear-gradient(to right, var(--encre) 0 10px, transparent 10px 18px);
    transform-origin: left; transform: scaleX(var(--trace, 1));
  }
  .parcours__etapes > li { padding-left: 0; padding-top: 5rem; }
}

.parcours__apporter { margin: 3rem 0 0; padding-top: 1.25rem; border-top: 2px solid var(--carreau-fort); max-width: 48rem; color: var(--doux); }
.parcours__apporter strong { color: var(--encre); }

/* --- Inscriptions : les tarifs, en toute transparence --------------------- */
.tarifs { position: relative; padding: var(--section) 0; background: var(--bleu); color: #fff; }
.tarifs::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0 31px, rgb(255 255 255 / .07) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / .07) 31px 32px);
}
.tarifs__grille { position: relative; display: grid; gap: 3rem; }
@media (min-width: 62em) { .tarifs__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: start; } }
.tarifs h2 { font-stretch: 82%; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5rem); line-height: .92; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.tarifs h2 span { color: var(--jaune); }
.tarifs p { color: var(--bleu-pale); }
.tarifs a { color: var(--jaune); font-weight: 700; }
.tarifs__plus { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid rgb(255 255 255 / .35); }
.tarifs__plus li { padding: .9rem 0; border-bottom: 2px solid rgb(255 255 255 / .35); color: var(--bleu-pale); }
.tarifs__plus b { color: #fff; }
.tarifs__tableau { background: #fff; color: var(--encre); border: 3px solid var(--encre); border-radius: .8rem; padding: 1.5rem; }
.tarifs__tableau p { color: var(--doux); margin: 1rem 0 0; }
.tarifs__tableau a { color: var(--bleu); }
.tarifs table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarifs caption { text-align: left; font-weight: 700; margin-bottom: 1rem; }
.tarifs th { text-align: left; font-size: .9rem; color: var(--doux); padding: 0 0 .5rem; border-bottom: 3px solid var(--encre); }
.tarifs th:last-child, .tarifs td:last-child { text-align: right; }
.tarifs td { padding: .55rem 0; border-bottom: 1px solid var(--carreau-fort); }
.tarifs td:last-child { font-family: var(--titre); font-weight: 800; font-size: 1.2rem; }
.tarifs tbody tr:hover td { background: var(--jaune); }

/* --- Articles ------------------------------------------------------------ */
.article-tete { position: relative; padding: 2.5rem 0 3rem; }
.article-tete h1 { font-stretch: 82%; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5.2rem); line-height: .92; letter-spacing: -.03em; max-width: 18ch; margin-bottom: 1.5rem; }
.article-tete__chapo { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); max-width: 42rem; margin: 0; }
.article-une { margin: 0 0 var(--section); }
.article-une .wrap { position: relative; }
.article-une img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: .6rem; border: 3px solid var(--encre); }
@media (max-width: 47.99em) { .article-une img { aspect-ratio: 4 / 3; } }

/* Le slogan de l'article, géant et surligné */
.slogan { margin: 0 0 var(--section); }
.slogan blockquote { margin: 0; }
.slogan p {
  margin: 0; font-family: var(--titre); font-weight: 800; font-stretch: 82%;
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5rem); line-height: .98; letter-spacing: -.03em; max-width: 20ch;
}

.article-corps { padding-bottom: var(--section); }
.article-corps .wrap { display: grid; gap: 3rem; }
@media (min-width: 62em) {
  .article-corps .wrap { grid-template-columns: minmax(0, 1fr) 17rem; gap: 5rem; align-items: start; }
  .en-bref { position: sticky; top: 7rem; order: 2; }
}
.texte { max-width: 42rem; }
.texte > h2 {
  font-stretch: 85%; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.02; letter-spacing: -.025em;
  margin: 3.5rem 0 1rem;
}
.texte > h2:first-child { margin-top: 0; }
.texte > p:first-child::first-letter {           /* lettrine */
  float: left; margin: .08em .12em 0 0; font-family: var(--titre); font-weight: 800; font-stretch: 82%;
  font-size: 4.2em; line-height: .78; color: var(--bleu);
}
.texte figure { position: relative; margin: 2.5rem 0; }
.texte figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .6rem; }
.texte figure img.portrait { aspect-ratio: 3 / 4; max-width: 24rem; }
.texte figcaption { margin-top: .6rem; font-size: .95rem; color: var(--doux); }
.texte .cadre-photo .illustration { bottom: .5rem; }
.texte blockquote.citation {
  margin: 3rem 0; padding: 1.5rem 0 0; border-top: 3px solid var(--encre);
  font-family: var(--titre); font-weight: 700; font-stretch: 88%; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); line-height: 1.2;
}
.texte blockquote.citation p { margin: 0; }
.video-lien {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0; padding: 1.25rem;
  border: 3px solid var(--encre); border-radius: .6rem; color: var(--encre); text-decoration: none; font-weight: 700;
}
.video-lien svg { width: 3rem; height: 3rem; flex-shrink: 0; fill: var(--bleu); }
.video-lien small { display: block; font-weight: 400; color: var(--doux); }
.video-lien:hover { background: var(--jaune); }

.en-bref { border-top: 3px solid var(--encre); padding-top: 1rem; }
.en-bref h2 { font: 700 .82rem var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--doux); margin-bottom: 1rem; }
.en-bref ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.en-bref li { font-family: var(--titre); font-weight: 700; font-stretch: 88%; font-size: 1.2rem; line-height: 1.15; padding-bottom: .9rem; border-bottom: 2px solid var(--carreau-fort); }

.a-lire { padding: var(--section) 0; background: var(--gris); }
.a-lire h2 { font-stretch: 82%; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 2rem; }
.a-lire ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--encre); }
@media (min-width: 62em) { .a-lire ul { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
.a-lire li { border-bottom: 2px solid var(--carreau-fort); }
.a-lire a { display: block; padding: 1.25rem 0; color: var(--encre); text-decoration: none; font-family: var(--titre); font-weight: 800; font-stretch: 85%; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.05; }
.a-lire a span { background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 88% / 0 .42em; transition: background-size .35s ease-out; }
.a-lire a:hover span { background-size: 100% .42em; }

.temoignage--final { margin: 0 0 3.5rem; }

/* --- La parole aux anciens (À propos) ------------------------------------- */
.paroles { padding: var(--section) 0; }
.paroles h2 { font-stretch: 82%; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 3rem; max-width: 16ch; }
.paroles__grille { display: grid; gap: 3rem; }
@media (min-width: 62em) { .paroles__grille { grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: end; } }
.parole { margin: 0; padding-top: 1.25rem; border-top: 3px solid var(--encre); }
.parole blockquote { margin: 0 0 1rem; }
.parole p { margin: 0; font-family: var(--titre); font-weight: 700; font-stretch: 88%; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); line-height: 1.2; }
.parole--grande p { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.1; }
.parole--grande p::first-letter { color: var(--bleu); }
.parole figcaption { color: var(--doux); font-size: .95rem; }
.section-lignes__photo { margin: 2rem 0 0; }
.section-lignes__photo img { width: 100%; border: 3px solid var(--encre); border-radius: .6rem; }
.section-lignes__photo figcaption { margin-top: .5rem; font-size: .9rem; color: var(--doux); }

/* --- Pages légales : lecture simple -------------------------------------- */
.legal { padding: 0 0 var(--section); }
.legal .texte > h2 { margin-top: 2.5rem; }
.legal .texte > p:first-child::first-letter { all: unset; }
