:root {
  --f-titre: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-texte: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-graisse-titre: 500;
  --f-casse-kicker: none;
  --tm: 0.75rem;
  --t1: 1.0rem;
  --t2: 1.333rem;
  --t3: 1.777rem;
  --t4: 2.369rem;
  --t5: 3.157rem;
  --t6: 4.209rem;
  --t7: 5.61rem;
  --t-hero: clamp(3.16rem, 6vw, 7.48rem);
  --e1: 0.212rem;
  --e2: 0.425rem;
  --e3: 0.637rem;
  --e4: 0.85rem;
  --e5: 1.275rem;
  --e6: 1.7rem;
  --e7: 2.55rem;
  --e8: 3.4rem;
  --r-carte: 16px;
  --r-bouton: 999px;
  --r-image: 12px;
  --largeur: 1120px;
  --ico-fleche: '»';
  --ico-trait: 2.5;
  --header-h: 72px;
  --c-fond: #f8f7f9;
  --c-fond-2: #e8f0e6;
  --c-surface: #ffffff;
  --c-texte: #281d35;
  --c-texte-2: #5e4a78;
  --c-primaire: #6918cd;
  --c-sur-primaire: #f7f5f9;
  --c-secondaire: #5dc23d;
  --c-sur-secondaire: #192914;
  --c-primaire-texte: #6217bf;
  --c-secondaire-texte: #3a7826;
  --c-doux: #e0f0db;
  --c-sur-doux: #1d1429;
  --c-bord: #d5cddf;
  --c-voile: #110c18;
  --c-sur-voile: #ffffff;
  --c-ombre: #180f24;
  --o-carte: 0 1px 2px color-mix(in srgb, #180f24 8%, transparent), 0 8px 24px color-mix(in srgb, #180f24 8%, transparent);
  --o-survol: 0 18px 40px -12px color-mix(in srgb, #180f24 28%, transparent);
  --carte-fond: #e8f0e6;
  --carte-encre: #281d35;
  --carte-encre-2: #5e4a78;
  --carte-lien: #6217bf;
  --carte-bord: 0 solid transparent;
  --btn-fond: transparent;
  --btn-texte: #6217bf;
  --btn-bord: 0 solid transparent;
  --btn-ombre: none;
  --btn-deco: underline;
  --lien-couleur: #6217bf;
  --lien-deco: none;
  --lien-epaisseur: 1px;
  --lien-fond: transparent;
  --lien-fond-encre: #6217bf;
}
html.dark, html[data-theme="dark"], html[data-mode="dark"], html.theme-dark, body.dark, [data-theme="dark"] .bh-home {
  --c-fond: #15101b;
  --c-fond-2: #1c2818;
  --c-surface: #271e31;
  --c-texte: #eae5f1;
  --c-texte-2: #bbadcd;
  --c-primaire: #9149e9;
  --c-sur-primaire: #faf9fc;
  --c-secondaire: #7ece64;
  --c-sur-secondaire: #192914;
  --c-primaire-texte: #ac76ef;
  --c-secondaire-texte: #a4dd92;
  --c-doux: #29471f;
  --c-sur-doux: #f7f5f9;
  --c-bord: #463857;
  --c-voile: #110c18;
  --c-sur-voile: #ffffff;
  --c-ombre: #050307;
  --o-carte: 0 1px 2px color-mix(in srgb, #050307 8%, transparent), 0 8px 24px color-mix(in srgb, #050307 8%, transparent);
  --o-survol: 0 18px 40px -12px color-mix(in srgb, #050307 28%, transparent);
  --carte-fond: #1c2818;
  --carte-encre: #eae5f1;
  --carte-encre-2: #bbadcd;
  --carte-lien: #ac76ef;
  --carte-bord: 0 solid transparent;
  --btn-fond: transparent;
  --btn-texte: #ac76ef;
  --btn-bord: 0 solid transparent;
  --btn-ombre: none;
  --btn-deco: underline;
  --lien-couleur: #ac76ef;
  --lien-deco: none;
  --lien-epaisseur: 1px;
  --lien-fond: transparent;
  --lien-fond-encre: #ac76ef;
}

/* home.css — la banque de blocs home. AUCUNE couleur ni police ici :
   tout vient des tokens posés par da.py (--c-*, --f-*, --t*, --e*, --r-*...).
   Un test statique refuse toute couleur littérale dans ce fichier. */

html { overflow-x: clip; }
body { overflow-x: clip; }
.bh-home {
  font-family: var(--f-texte); color: var(--c-texte); background: var(--c-fond);
  font-size: var(--t1); line-height: 1.6;
  width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  position: relative; box-sizing: border-box; text-align: left;
}
.bh-home *, .bh-home *::before, .bh-home *::after { box-sizing: border-box; }
.bh-home * { min-width: 0; }
.bh-home :is(a, p, span, small) { opacity: 1; }
.bh-home img { max-width: 100%; display: block; }
.bh-home a { color: inherit !important; }
.bh-home :is(h1, h2, h3, h4, blockquote) { color: inherit; }
.bh-home p { margin: 0; }
.bh-home h2, .bh-home h3 { margin: 0; }
.bh-home .bh-h2 { color: var(--c-texte) !important; }
.bh-home .bh-intro { color: var(--c-texte) !important; }
.bh-home :is(.bh-kicker, .bh-num) { color: var(--c-texte) !important; }
.bh-home .bh-c-p { color: var(--carte-encre) !important; }
.bh-home :is(.bh-c-titre, .bh-c-meta, .bh-c-kicker, .bh-c-suite) { color: var(--carte-encre) !important; }
.bh-marque-site {
  position: absolute; z-index: 10; inset-block-start: var(--e3); inset-inline-start: var(--e5);
  padding: var(--e2) var(--e3); background: var(--c-fond); color: var(--c-texte);
  border: var(--bordure) solid var(--c-bordure); border-radius: var(--r-bouton);
}

/* ─── sections : un écran chacune ─── */
.bh-home .bh-bloc {
  min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column;
  justify-content: center; padding-block: var(--e7); background: var(--c-fond) !important; color: var(--c-texte) !important;
}
.bh-home .bh-fond-b { background: var(--c-fond-2) !important; }
.bh-home .bh-fond-doux {
  background: var(--c-doux) !important;
  --c-texte: var(--c-sur-doux); --c-texte-2: var(--c-sur-doux); --c-primaire-texte: var(--c-sur-doux);
}
/* Contraste sur fond doux. Les jetons dérivés (--btn-texte, --carte-lien, --lien-couleur) sont
   résolus sur :root avec la couleur primaire : posés à même un fond doux (bouton contour ou
   souligné, lien hors carte), ils tombaient sous 4.5 (mesuré le 24/09 : 4.06 à 4.45). Sur fond
   doux ils prennent l'encre du doux ; dans une carte, qui a son propre fond, ils reprennent
   leur valeur d'origine gardée sur .bh-home. */
.bh-home { --btn-texte-racine: var(--btn-texte); --btn-bord-racine: var(--btn-bord); --carte-lien-racine: var(--carte-lien); }
.bh-home .bh-fond-doux { --carte-lien: var(--c-sur-doux); --lien-couleur: var(--c-sur-doux); --lien-fond-encre: var(--c-sur-doux); }
.bh-home:is([data-bouton="contour"], [data-bouton="souligne"]) .bh-fond-doux { --btn-texte: var(--c-sur-doux); }
.bh-home[data-bouton="contour"] .bh-fond-doux { --btn-bord: 2px solid var(--c-sur-doux); }
.bh-home .bh-fond-doux :is(.bh-carte, .bh-acc) {
  --carte-lien: var(--carte-lien-racine); --btn-texte: var(--btn-texte-racine); --btn-bord: var(--btn-bord-racine);
}
.bh-int { width: min(100% - 2 * var(--e5), var(--largeur)); margin-inline: auto; }

/* ─── en-tête de section ─── */
.bh-entete { margin-bottom: var(--e6); max-width: 64ch; }
[data-alignement="centre"] .bh-entete { margin-inline: auto; text-align: center; }
[data-alignement="centre"] .bh-d-colle .bh-entete { margin-inline: 0; text-align: left; }
.bh-num { display: none; }
[data-titres="numero"] .bh-num {
  display: block; font-family: var(--f-titre); font-size: var(--t4); line-height: 1;
  color: var(--c-primaire-texte); margin-bottom: var(--e3);
}
.bh-kicker { font-size: var(--tm); text-transform: var(--f-casse-kicker); letter-spacing: .08em; color: var(--c-primaire-texte); font-weight: 600; }
.bh-h2 {
  font-family: var(--f-titre); font-weight: var(--f-graisse-titre); line-height: 1.08;
  font-size: clamp(var(--t3), 4vw, var(--t5)); color: var(--c-texte); margin-bottom: var(--e3);
  letter-spacing: -.01em;
}
[data-titres="geant"] .bh-h2 { font-size: clamp(var(--t4), 6vw, var(--t6)); letter-spacing: -.025em; }
[data-titres="trait"] .bh-h2 { padding-bottom: var(--e3); border-bottom: 3px solid var(--c-primaire-texte); display: inline-block; }
[data-titres="kicker"] .bh-entete::before {
  content: ""; display: block; width: 3rem; height: 4px; background: var(--c-primaire); margin-bottom: var(--e4);
}
[data-alignement="centre"][data-titres="kicker"] .bh-entete::before { margin-inline: auto; }
.bh-intro { color: var(--c-texte-2); font-size: var(--t2); }
.bh-entete-lien { margin-top: var(--e4); }

/* ─── boutons et liens ─── */
.bh-home .bh-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.35em; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--btn-fond) !important; color: var(--btn-texte) !important; border: var(--btn-bord);
  border-radius: var(--r-bouton); box-shadow: var(--btn-ombre);
  text-decoration: var(--btn-deco); text-underline-offset: .35em; text-decoration-thickness: 2px;
  transition: transform .15s ease;
}
.bh-bouton:hover { transform: translateY(-2px); }
.bh-fleche::after { content: " " var(--ico-fleche); }
.bh-home :is(.bh-c-suite, .bh-intro a) {
  color: var(--carte-lien) !important; font-weight: 600; text-decoration: var(--lien-deco);
  text-decoration-thickness: var(--lien-epaisseur); text-underline-offset: .3em; width: fit-content;
}
/* surligné : l encre du doux, en !important sinon la règle .bh-c-suite (encre de lien) gagnait : 3.85 mesuré en sombre */
.bh-home[data-lien="surligne"] .bh-c-suite { background: var(--c-doux); color: var(--c-sur-doux) !important; padding: .1em .35em; }

/* ─── cartes ─── */
.bh-home .bh-carte {
  background: var(--carte-fond) !important; color: var(--carte-encre) !important; border: var(--carte-bord);
  border-radius: var(--r-carte); box-shadow: var(--o-carte); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.bh-carte:hover { box-shadow: var(--o-survol); }
.bh-c-corps { padding: var(--e5); display: flex; flex-direction: column; gap: var(--e2); flex: 1; }
.bh-c-titre { font-family: var(--f-titre); font-weight: var(--f-graisse-titre); font-size: var(--t2); line-height: 1.2; color: var(--carte-encre); }
.bh-c-titre a { text-decoration: none; color: inherit; }
.bh-c-titre a:hover { text-decoration: underline; text-underline-offset: .2em; }
.bh-c-p { color: var(--carte-encre-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bh-c-kicker { font-size: var(--tm); text-transform: var(--f-casse-kicker); letter-spacing: .06em; color: var(--carte-lien); font-weight: 600; }
.bh-c-meta { font-size: var(--tm); color: var(--carte-encre-2); }
.bh-c-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.bh-cs-texte, .bh-cs-qr, .bh-cs-fait, .bh-cs-citation { padding: var(--e5); gap: var(--e3); }
.bh-cs-image-gauche { flex-direction: row; }
.bh-cs-image-gauche .bh-c-media { flex: 0 0 38%; min-height: 100%; }
.bh-cs-image-gauche .bh-c-media img { width: 100%; height: 100%; min-height: 9rem; object-fit: cover; }
.bh-cs-superpose { min-height: 15rem; justify-content: flex-end; }
.bh-cs-superpose .bh-c-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.bh-c-voile {
  position: relative; padding: var(--e5); display: flex; flex-direction: column; gap: var(--e2);
  background: linear-gradient(to top, color-mix(in srgb, var(--c-voile) 92%, transparent) 55%, color-mix(in srgb, var(--c-voile) 0%, transparent));
  color: var(--c-sur-voile); padding-top: var(--e8);
}
.bh-c-voile .bh-c-titre, .bh-c-voile .bh-c-kicker, .bh-c-voile .bh-c-meta { color: var(--c-sur-voile); }
.bh-c-vedette .bh-c-titre { font-size: var(--t4); }
.bh-cs-portrait { align-items: flex-start; }
.bh-c-avatar { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; margin: var(--e5) var(--e5) 0; }
.bh-c-vedette .bh-c-avatar { width: 9rem; height: 9rem; }
.bh-cs-numero .bh-c-numero {
  font-family: var(--f-titre); font-size: var(--t5); line-height: 1; color: var(--carte-lien);
  padding: var(--e5) var(--e5) 0; font-weight: var(--f-graisse-titre);
}
.bh-cs-ligne { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--e4); }
.bh-cs-ligne .bh-c-corps { padding-block: var(--e4); }
.bh-c-fleche { padding: var(--e4); text-decoration: none; font-size: var(--t3); color: var(--carte-lien); }
.bh-c-fleche::after { content: var(--ico-fleche); }
.bh-cs-pastille { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.bh-c-pastille {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--e3);
  padding: .7em 1.1em; border-radius: var(--r-bouton); border: var(--carte-bord);
  background: var(--carte-fond); color: var(--carte-encre); text-decoration: none; font-weight: 600;
}
.bh-c-pastille small { color: var(--carte-encre-2); font-weight: 400; }
.bh-c-pastille:hover { background: var(--c-primaire); color: var(--c-sur-primaire); }
.bh-c-pastille:hover small { color: var(--c-sur-primaire); }
.bh-c-citation { margin: 0; font-family: var(--f-titre); font-size: var(--t2); line-height: 1.45; }
.bh-c-vedette .bh-c-citation { font-size: var(--t4); }
.bh-c-signature { display: grid; gap: .1em; font-size: var(--tm); color: var(--carte-encre-2); }
.bh-c-signature strong { color: var(--carte-encre); font-size: var(--t1); }
.bh-etoiles { letter-spacing: .15em; font-size: var(--t1); }
.bh-etoiles-pleines { color: var(--carte-lien); }
.bh-etoiles-vides { color: var(--c-bord); }
.bh-c-chiffre { font-family: var(--f-titre); font-size: var(--t6); line-height: 1; color: var(--carte-lien); font-weight: var(--f-graisse-titre); overflow-wrap: anywhere; }
.bh-c-label { font-weight: 600; }
.bh-cs-image-seule { background: transparent; border: 0; box-shadow: none; gap: var(--e2); }
.bh-cs-image-seule img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-image); }
.bh-c-legende { font-size: var(--tm); color: var(--c-texte-2); }

/* ─── grilles (colonnes posées par le composeur : --cd --ct --cm) ─── */
.bh-grille { display: grid; gap: var(--e5); grid-template-columns: repeat(var(--cm), minmax(0, 1fr)); }
@media (min-width: 640px) { .bh-grille { grid-template-columns: repeat(var(--ct), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bh-grille { grid-template-columns: repeat(var(--cd), minmax(0, 1fr)); } }
.bh-g-pastille { gap: var(--e3); }

/* magazine : une vedette et une grille de deux colonnes */
.bh-magazine { display: grid; gap: var(--e5); }
.bh-mag-vedette .bh-c-img { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) {
  .bh-magazine { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
  .bh-mag-droite .bh-mag-vedette { order: 2; }
  .bh-mag-vedette, .bh-mag-vedette .bh-carte { height: 100%; }
  .bh-mag-reste .bh-cs-image-gauche .bh-c-p { -webkit-line-clamp: 2; }
}
.bh-mag-reste .bh-c-titre { font-size: var(--t1); }

/* bento : rectangle toujours plein */
.bh-bento { display: grid; gap: var(--e4); grid-template-columns: minmax(0, 1fr); }
.bh-bento > .bh-carte { min-height: 13rem; }
@media (min-width: 640px) {
  .bh-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-bento > :first-child { grid-column: span 2; }
  .bh-bento-4 > :nth-child(2), .bh-bento-6 > :nth-child(2) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bh-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(11rem, 1fr); }
  .bh-bento-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-bento-3 > :nth-child(1) { grid-area: 1 / 1 / 3 / 2; } .bh-bento-3 > :nth-child(2) { grid-area: 1 / 2 / 2 / 3; } .bh-bento-3 > :nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
  .bh-bento-4 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-bento-4 > :nth-child(2) { grid-area: 1 / 3 / 2 / 5; } .bh-bento-4 > :nth-child(3) { grid-area: 2 / 3 / 3 / 4; } .bh-bento-4 > :nth-child(4) { grid-area: 2 / 4 / 3 / 5; }
  .bh-bento-5 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-bento-5 > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; } .bh-bento-5 > :nth-child(3) { grid-area: 1 / 4 / 2 / 5; } .bh-bento-5 > :nth-child(4) { grid-area: 2 / 3 / 3 / 4; } .bh-bento-5 > :nth-child(5) { grid-area: 2 / 4 / 3 / 5; }
  .bh-bento-6 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-bento-6 > :nth-child(2) { grid-area: 1 / 3 / 2 / 5; } .bh-bento-6 > :nth-child(3) { grid-area: 2 / 3 / 3 / 4; } .bh-bento-6 > :nth-child(4) { grid-area: 2 / 4 / 3 / 5; } .bh-bento-6 > :nth-child(5) { grid-area: 3 / 1 / 4 / 3; } .bh-bento-6 > :nth-child(6) { grid-area: 3 / 3 / 4 / 5; }
  .bh-bento-7 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-bento-7 > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; } .bh-bento-7 > :nth-child(3) { grid-area: 1 / 4 / 2 / 5; } .bh-bento-7 > :nth-child(4) { grid-area: 2 / 3 / 3 / 5; } .bh-bento-7 > :nth-child(5) { grid-area: 3 / 1 / 4 / 2; } .bh-bento-7 > :nth-child(6) { grid-area: 3 / 2 / 4 / 3; } .bh-bento-7 > :nth-child(7) { grid-area: 3 / 3 / 4 / 5; }
  .bh-bento > .bh-carte { min-height: 0; }
}
.bh-mosaique > .bh-carte { min-height: 10rem; }
.bh-mosaique .bh-c-lienimg { display: block; flex: 1; min-height: 0; }
.bh-mosaique .bh-cs-image-seule img { aspect-ratio: auto; height: 100%; min-height: 10rem; }

/* split : image ou aplat d'un côté, liste de l'autre */
.bh-split { display: grid; gap: var(--e6); align-items: center; }
.bh-split-media { margin: 0; }
.bh-split-media img { width: 100%; height: min(68svh, 40rem); object-fit: cover; border-radius: var(--r-image); }
.bh-split-texte {
  background: var(--c-primaire); color: var(--c-sur-primaire); border-radius: var(--r-carte);
  min-height: 22rem; padding: var(--e7); display: flex; align-items: flex-end;
}
.bh-split-grand { font-family: var(--f-titre); font-size: clamp(var(--t4), 3.4vw, var(--t6)); line-height: 1.08; font-weight: var(--f-graisse-titre); }
.bh-split-liste { display: grid; gap: var(--e4); }
@media (min-width: 1024px) {
  .bh-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bh-split-droite .bh-split-media { order: 2; }
}

/* carrousel */
.bh-car-piste {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 21rem); gap: var(--e5);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--e4); scrollbar-width: thin;
}
.bh-car-piste > * { scroll-snap-align: start; }
.bh-car-nav { display: flex; gap: var(--e3); margin-top: var(--e4); }
.bh-car-nav .bh-bouton {
  padding: .4em .9em; font-size: var(--t2); line-height: 1;
  color: var(--c-texte); background: var(--c-fond);
}

/* timeline */
.bh-timeline { list-style: none; margin: 0; padding: 0 0 0 var(--e6); border-left: 2px solid var(--c-bord); display: grid; gap: var(--e5); }
.bh-tl-pas { position: relative; }
.bh-tl-pas::before {
  content: ""; position: absolute; left: calc(-1 * var(--e6) - 8px); top: 1.4rem;
  width: 14px; height: 14px; border-radius: 50%; background: var(--c-primaire); border: 3px solid var(--c-fond);
}
@media (min-width: 1024px) {
  .bh-tl-alterne { border-left: 0; padding: 0; position: relative; }
  .bh-tl-alterne::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid var(--c-bord); }
  .bh-tl-alterne .bh-tl-pas { width: calc(50% - var(--e6)); }
  .bh-tl-alterne .bh-tl-pas:nth-child(even) { margin-left: calc(50% + var(--e6)); }
  .bh-tl-alterne .bh-tl-pas::before { left: auto; right: calc(-1 * var(--e6) - 8px); }
  .bh-tl-alterne .bh-tl-pas:nth-child(even)::before { right: auto; left: calc(-1 * var(--e6) - 8px); }
}

/* onglets */
.bh-onglets-barre { display: flex; flex-wrap: wrap; gap: var(--e2); margin-bottom: var(--e5); }
.bh-onglet {
  font: inherit; font-weight: 600; cursor: pointer; padding: .6em 1.1em; border-radius: var(--r-bouton);
  border: var(--carte-bord); background: var(--carte-fond); color: var(--carte-encre);
}
.bh-onglet[aria-selected="true"] { background: var(--c-primaire); color: var(--c-sur-primaire); }
.bh-panneau .bh-carte { font-size: var(--t2); }
.bh-panneau .bh-cs-image-gauche .bh-c-media { flex-basis: 45%; }

/* accordéon */
.bh-accordeon { display: grid; gap: var(--e3); max-width: 60rem; }
[data-alignement="centre"] .bh-accordeon { margin-inline: auto; }
.bh-acc { background: var(--carte-fond); color: var(--carte-encre); border: var(--carte-bord); border-radius: var(--r-carte); box-shadow: var(--o-carte); }
.bh-acc summary { cursor: pointer; padding: var(--e4) var(--e5); font-family: var(--f-titre); font-weight: var(--f-graisse-titre); font-size: var(--t2); }
.bh-acc-corps { padding: 0 var(--e5) var(--e5); display: grid; gap: var(--e3); color: var(--carte-encre-2); }
.bh-acc-corps a { color: var(--carte-lien); font-weight: 600; }

/* mur à colonnes explicites */
.bh-mur { display: grid; gap: var(--e5); grid-template-columns: minmax(0, 1fr); }
.bh-mur-col { display: grid; gap: var(--e5); align-content: start; }
@media (min-width: 640px) {
  .bh-mur { grid-template-columns: repeat(var(--k), minmax(0, 1fr)); grid-template-rows: repeat(var(--r), auto); }
  .bh-mur-col { grid-row: 1 / -1; grid-template-rows: subgrid; }
}

/* tableau */
.bh-tableau-cadre { overflow-x: auto; }
.bh-tableau { width: 100%; border-collapse: collapse; font-size: var(--t1); }
.bh-tableau th, .bh-tableau td { padding: var(--e4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-bord); }
.bh-tableau thead th { font-size: var(--tm); text-transform: var(--f-casse-kicker); letter-spacing: .06em; color: var(--c-texte-2); }
.bh-tableau tbody th { font-family: var(--f-titre); font-weight: var(--f-graisse-titre); font-size: var(--t2); width: 34%; }
.bh-tableau tbody th a { color: inherit; text-decoration: none; }
.bh-tableau td { color: var(--c-texte-2); }

/* bandes pleine largeur */
.bh-bandes { display: grid; border-top: 1px solid var(--c-bord); }
.bh-bande { display: grid; gap: var(--e3); padding-block: var(--e6); border-bottom: 1px solid var(--c-bord); }
.bh-bande-titre { font-family: var(--f-titre); font-size: clamp(var(--t3), 3vw, var(--t5)); line-height: 1.1; font-weight: var(--f-graisse-titre); }
.bh-bande-titre a { text-decoration: none; color: inherit; }
.bh-bande-titre a:hover { color: var(--c-primaire-texte); }
.bh-bande-corps { display: grid; gap: var(--e2); color: var(--c-texte-2); }
.bh-bande-corps .bh-c-kicker { color: var(--c-primaire-texte); }
.bh-bande-corps .bh-c-p, .bh-bande-corps .bh-c-meta { color: var(--c-texte-2); }
@media (min-width: 1024px) { .bh-bande { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: baseline; } }

/* zigzag */
.bh-zigzag { display: grid; gap: var(--e6); }
.bh-zz .bh-cs-image-gauche { flex-direction: column; }
.bh-zz .bh-c-media { flex-basis: auto; }
.bh-zz .bh-c-media img { aspect-ratio: 16 / 10; height: auto; }
@media (min-width: 1024px) {
  .bh-zz .bh-cs-image-gauche { flex-direction: row; align-items: center; }
  .bh-zz .bh-c-media { flex: 0 0 52%; }
  .bh-zz-inverse .bh-cs-image-gauche { flex-direction: row-reverse; }
  .bh-zz .bh-c-titre { font-size: var(--t4); }
}

/* pile centrée */
.bh-pile { display: grid; gap: var(--e5); max-width: 54rem; }
[data-alignement="centre"] .bh-pile { margin-inline: auto; }
.bh-pile .bh-c-citation, .bh-pile .bh-cs-texte .bh-c-p { font-size: var(--t3); -webkit-line-clamp: 12; }

/* défilant */
.bh-defilant { display: grid; gap: var(--e4); overflow: hidden; }
.bh-def-rang { overflow: hidden; white-space: nowrap; }
.bh-def-piste { display: inline-flex; gap: var(--e7); animation: bh-defile 70s linear infinite; }
.bh-def-inverse .bh-def-piste { animation-direction: reverse; }
.bh-def-mot { font-family: var(--f-titre); font-size: clamp(var(--t3), 4vw, var(--t6)); font-weight: var(--f-graisse-titre); text-decoration: none; color: var(--c-texte); }
.bh-def-mot:nth-child(3n+2) { color: var(--c-primaire-texte); }
@keyframes bh-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bh-def-piste { animation: none; } }

/* rail : une vedette, un rail dessous */
.bh-rail { display: grid; gap: var(--e5); }
.bh-rail-vedette .bh-cs-image-gauche .bh-c-media { flex-basis: 50%; }
.bh-rail-vedette .bh-c-titre { font-size: var(--t4); }
@media (max-width: 1023px) { .bh-rail-vedette .bh-cs-image-gauche { flex-direction: column; } }

/* colle : intro collée à gauche */
.bh-d-colle .bh-int { display: grid; gap: var(--e6); }
.bh-colle-liste { display: grid; gap: var(--e4); }
@media (min-width: 1024px) {
  .bh-d-colle .bh-int { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: start; }
  .bh-d-colle .bh-entete { position: sticky; top: calc(var(--header-h) + var(--e5)); }
}

/* ─── hero ─── */
.bh-hero { height: calc(100svh - var(--header-h)); min-height: 0; padding-block: 0; position: relative; overflow: hidden; justify-content: flex-end; }
.bh-hero-kicker { font-size: var(--tm); text-transform: var(--f-casse-kicker); letter-spacing: .1em; font-weight: 600; margin-bottom: var(--e3); }
.bh-home .bh-hero-h1 { font-family: var(--f-titre); font-weight: var(--f-graisse-titre); font-size: clamp(2.2rem, 5.2vw, var(--t-hero)); line-height: 1; letter-spacing: -.02em; margin: 0 0 var(--e3); }
.bh-home .bh-hero-accroche { font-size: var(--t2); max-width: 46ch; margin-bottom: var(--e5); }
.bh-hero-actions { display: flex; flex-wrap: wrap; gap: var(--e3); }
.bh-hero-titres { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3); }
.bh-hero-titres a { display: grid; gap: .15em; text-decoration: none; color: inherit; border-top: 1px solid currentColor; padding-top: var(--e2); }
.bh-hero-titres a:hover span:last-child { text-decoration: underline; }
.bh-hero-date { font-size: var(--tm); opacity: .85; }
.bh-hero-titres span:last-child { font-weight: 600; }

.bh-hero-plein-cadre .bh-hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-hero-voile {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding-block: var(--e7);
  color: var(--c-sur-voile);
  background: linear-gradient(to top, color-mix(in srgb, var(--c-voile) 94%, transparent) 0%, color-mix(in srgb, var(--c-voile) 78%, transparent) 50%, color-mix(in srgb, var(--c-voile) 10%, transparent) 85%);
}
.bh-hero-bas { display: grid; gap: var(--e6); align-items: end; }
@media (min-width: 1024px) { .bh-hero-bas { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (max-width: 1023px) { .bh-hero-plein-cadre .bh-hero-titres { display: none; } }

.bh-hero-scinde { display: grid; grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--c-fond); }
.bh-hero-moitie { min-height: 0; margin: 0; }
.bh-hero-gauche { display: flex; align-items: flex-end; padding: var(--e6) var(--e5); }
.bh-hero-media { position: relative; order: -1; }
.bh-hero-media img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-hero-media figcaption { position: absolute; left: var(--e4); bottom: var(--e4); right: var(--e4); }
.bh-hero-media figcaption a { background: var(--c-surface); color: var(--c-texte); padding: .4em .7em; border-radius: var(--r-bouton); text-decoration: none; font-size: var(--tm); font-weight: 600; }
.bh-hero-gauche .bh-hero-kicker { color: var(--c-primaire-texte); }
@media (min-width: 1024px) {
  .bh-hero-scinde { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .bh-hero-media { order: 0; }
  .bh-hero-gauche { padding: var(--e7) var(--e7) var(--e7) max(var(--e5), calc((100vw - var(--largeur)) / 2)); }
  .bh-hero-gauche .bh-hero-titres { margin-top: var(--e6); }
}
@media (max-width: 1023px) { .bh-hero-scinde .bh-hero-titres { display: none; } }

.bh-hero-mosaique { background: var(--c-fond-2); }
.bh-hero-grille { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--e4); padding: var(--e4); }
.bh-hero-mosaique-img { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--e3); min-height: 0; order: -1; }
.bh-hero-vignette { position: relative; overflow: hidden; border-radius: var(--r-image); min-height: 0; display: block; }
.bh-hero-vignette img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-hero-vignette span {
  position: absolute; inset: auto 0 0 0; padding: var(--e3); font-weight: 600; font-size: var(--tm); color: var(--c-sur-voile);
  background: linear-gradient(to top, color-mix(in srgb, var(--c-voile) 92%, transparent) 60%, color-mix(in srgb, var(--c-voile) 0%, transparent));
}
.bh-hero-grille .bh-hero-texte { padding: var(--e3) var(--e3) var(--e4); }
@media (min-width: 1024px) {
  .bh-hero-grille { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); grid-template-rows: minmax(0, 1fr); align-items: end; padding: var(--e5) max(var(--e5), calc((100vw - var(--largeur)) / 2)); gap: var(--e7); }
  .bh-hero-mosaique-img { order: 2; height: 100%; }
  .bh-hero-vignette span { font-size: var(--t1); }
}
@media (max-width: 639px) { .bh-hero-vignette span { display: none; } }

.bh-hero-bandeau { justify-content: stretch; }
.bh-hero-haut { flex: 1 1 auto; min-height: 0; margin: 0; }
.bh-hero-haut img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-hero-bande { flex: 0 0 auto; background: var(--c-primaire); color: var(--c-sur-primaire); padding-block: var(--e6); }
.bh-hero-bande-int { display: grid; gap: var(--e5); align-items: end; }
@media (min-width: 1024px) { .bh-hero-bande-int { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (max-width: 1023px) { .bh-hero-bande .bh-hero-titres { display: none; } }

.bh-hero-typo { background: var(--c-fond-2); }
.bh-hero-typo-int { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--e7); }
.bh-hero-typo .bh-hero-kicker { color: var(--c-primaire-texte); }
.bh-home .bh-hero-geant { font-family: var(--f-titre); font-size: clamp(2.8rem, 10.5vw, 10.5rem); line-height: .92; letter-spacing: -.035em; margin: 0 0 var(--e5); color: var(--c-texte); font-weight: var(--f-graisse-titre); overflow-wrap: anywhere; }
.bh-hero-typo-bas { display: grid; gap: var(--e5); align-items: end; border-top: 2px solid var(--c-texte); padding-top: var(--e5); }
.bh-hero-titres-ligne { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .bh-hero-typo-bas { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
  .bh-hero-titres-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) { .bh-hero-typo .bh-hero-titres { display: none; } }

/* Boutons posés sur le voile ou la bande primaire : leurs couleurs doivent battre la règle
   générale .bh-home .bh-bouton (en !important). Sans cela, un bouton contour gardait l encre
   primaire sur la bande primaire : 1.07 à 3.5 mesurés le 24/09 sur 8 homes hero/v5. */
.bh-home .bh-hero-voile .bh-bouton-1 { background: var(--c-sur-voile) !important; color: var(--c-voile) !important; border: 2px solid var(--c-sur-voile); box-shadow: none; text-decoration: none; }
.bh-home .bh-hero-voile .bh-bouton-2 { background: transparent !important; color: var(--c-sur-voile) !important; border: 2px solid var(--c-sur-voile); box-shadow: none; }
.bh-home .bh-hero-bande .bh-bouton-1 { background: var(--c-sur-primaire) !important; color: var(--c-primaire) !important; border: 2px solid var(--c-sur-primaire); box-shadow: none; text-decoration: none; }
.bh-home .bh-hero-bande .bh-bouton-2 { background: transparent !important; color: var(--c-sur-primaire) !important; border: 2px solid var(--c-sur-primaire); box-shadow: none; }
.bh-home .bh-hero-bande :is(h1, h2, p, span, small, strong, li):not(.bh-bouton, .bh-bouton *) { color: var(--c-sur-primaire) !important; }

@media (max-width: 639px) {
  .bh-bloc { padding-block: var(--e6); }
  .bh-cs-image-gauche { flex-direction: column; }
  .bh-cs-image-gauche .bh-c-media { flex-basis: auto; }
  .bh-cs-image-gauche .bh-c-media img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .bh-home .bh-hero-accroche { font-size: var(--t1); }
}

/* ─── garde-fous de largeur : une grille ne s'élargit jamais sur le contenu ─── */
.bh-rail, .bh-split, .bh-magazine, .bh-zigzag, .bh-bandes, .bh-pile, .bh-d-colle .bh-int, .bh-split-liste,
.bh-colle-liste, .bh-accordeon, .bh-timeline { grid-template-columns: minmax(0, 1fr); }
.bh-carte, .bh-bande, .bh-acc { overflow-wrap: anywhere; }
.bh-cs-ligne .bh-c-corps { min-width: 0; }
@media (min-width: 1024px) {
  .bh-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bh-magazine { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .bh-d-colle .bh-int { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); }
}
