:root {
  --f-titre: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-texte: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --f-graisse-titre: 600;
  --f-casse-kicker: none;
  --tm: 0.8rem;
  --t1: 1.0rem;
  --t2: 1.25rem;
  --t3: 1.562rem;
  --t4: 1.953rem;
  --t5: 2.441rem;
  --t6: 3.052rem;
  --t7: 3.815rem;
  --t-hero: clamp(2.44rem, 6vw, 4.77rem);
  --e1: 0.3rem;
  --e2: 0.6rem;
  --e3: 0.9rem;
  --e4: 1.2rem;
  --e5: 1.8rem;
  --e6: 2.4rem;
  --e7: 3.6rem;
  --e8: 4.8rem;
  --r-carte: 16px;
  --r-bouton: 0px;
  --r-image: 12px;
  --largeur: 1120px;
  --ico-trait: 2.5;
  --header-h: 72px;
  --c-fond: #fcfcfc;
  --c-fond-2: #eceef0;
  --c-surface: #ffffff;
  --c-texte: #23272f;
  --c-texte-2: #575e6b;
  --c-primaire: #0e55d8;
  --c-sur-primaire: #f5f7f9;
  --c-secondaire: #5472ab;
  --c-sur-secondaire: #f9fafc;
  --c-primaire-texte: #0d4fc9;
  --c-secondaire-texte: #435c89;
  --c-doux: #dae2f1;
  --c-sur-doux: #141b29;
  --c-bord: #d3d5d9;
  --c-voile: #0c1018;
  --c-sur-voile: #ffffff;
  --c-ombre: #0f1624;
  --o-carte: 0 18px 40px -12px color-mix(in srgb, #0f1624 28%, transparent);
  --o-survol: 0 18px 40px -12px color-mix(in srgb, #0f1624 28%, transparent);
  --carte-fond: #ffffff;
  --carte-encre: #23272f;
  --carte-encre-2: #575e6b;
  --carte-lien: #0d4fc9;
  --carte-bord: 0 solid transparent;
  --btn-fond: #5472ab;
  --btn-texte: #f9fafc;
  --btn-bord: 2px solid #23272f;
  --btn-ombre: 4px 4px 0 #23272f;
  --btn-deco: none;
  --lien-couleur: #0d4fc9;
  --lien-deco: underline;
  --lien-epaisseur: 3px;
  --lien-fond: transparent;
  --lien-fond-encre: #0d4fc9;
}
html.da-sombre-desactive {
  --c-fond: #141518;
  --c-fond-2: #1c1f24;
  --c-surface: #24262b;
  --c-texte: #e8eaee;
  --c-texte-2: #b6bbc3;
  --c-primaire: #4985f3;
  --c-sur-primaire: #141b29;
  --c-secondaire: #768fbc;
  --c-sur-secondaire: #141b29;
  --c-primaire-texte: #6f9ef6;
  --c-secondaire-texte: #9fb0d0;
  --c-doux: #1d2c49;
  --c-sur-doux: #f5f7f9;
  --c-bord: #42464d;
  --c-voile: #0c1018;
  --c-sur-voile: #ffffff;
  --c-ombre: #030407;
  --o-carte: 0 18px 40px -12px color-mix(in srgb, #030407 28%, transparent);
  --o-survol: 0 18px 40px -12px color-mix(in srgb, #030407 28%, transparent);
  --carte-fond: #24262b;
  --carte-encre: #e8eaee;
  --carte-encre-2: #b6bbc3;
  --carte-lien: #6f9ef6;
  --carte-bord: 0 solid transparent;
  --btn-fond: #768fbc;
  --btn-texte: #141b29;
  --btn-bord: 2px solid #e8eaee;
  --btn-ombre: 4px 4px 0 #e8eaee;
  --btn-deco: none;
  --lien-couleur: #6f9ef6;
  --lien-deco: underline;
  --lien-epaisseur: 3px;
  --lien-fond: transparent;
  --lien-fond-encre: #6f9ef6;
}

/* 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-3c59-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-3c59-home *, .bh-3c59-home *::before, .bh-3c59-home *::after { box-sizing: border-box; }
.bh-3c59-home * { min-width: 0; }
.bh-3c59-home :is(a, p, span, small) { opacity: 1; }
.bh-3c59-home img { max-width: 100%; display: block; }
.bh-3c59-home a { color: inherit !important; }
.bh-3c59-home :is(h1, h2, h3, h4, blockquote) { color: inherit; }
.bh-3c59-home p { margin: 0; }
.bh-3c59-home h2, .bh-3c59-home h3 { margin: 0; }
.bh-3c59-home .bh-3c59-h2 { color: var(--c-texte) !important; }
.bh-3c59-home .bh-3c59-intro { color: var(--c-texte) !important; }
.bh-3c59-home :is(.bh-3c59-kicker, .bh-3c59-num) { color: var(--c-texte) !important; }
.bh-3c59-home .bh-3c59-c-p { color: var(--carte-encre) !important; }
.bh-3c59-home :is(.bh-3c59-c-titre, .bh-3c59-c-meta, .bh-3c59-c-kicker, .bh-3c59-c-suite) { color: var(--carte-encre) !important; }
.bh-3c59-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);
}

/* */
.bh-3c59-home .bh-3c59-bloc {
  display: flex; flex-direction: column;
  justify-content: flex-start; padding-block: var(--e8); background: var(--c-fond) !important; color: var(--c-texte) !important;
}
.bh-3c59-home .bh-3c59-fond-b { background: var(--c-fond-2) !important; }
.bh-3c59-home .bh-3c59-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-3c59-home. */
.bh-3c59-home { --btn-texte-racine: var(--btn-texte); --btn-bord-racine: var(--btn-bord); --carte-lien-racine: var(--carte-lien); }
.bh-3c59-home .bh-3c59-fond-doux { --carte-lien: var(--c-sur-doux); --lien-couleur: var(--c-sur-doux); --lien-fond-encre: var(--c-sur-doux); }
.bh-3c59-home:is([data-bouton="contour"], [data-bouton="souligne"]) .bh-3c59-fond-doux { --btn-texte: var(--c-sur-doux); }
.bh-3c59-home[data-bouton="contour"] .bh-3c59-fond-doux { --btn-bord: 2px solid var(--c-sur-doux); }
.bh-3c59-home .bh-3c59-fond-doux :is(.bh-3c59-carte, .bh-3c59-acc) {
  --carte-lien: var(--carte-lien-racine); --btn-texte: var(--btn-texte-racine); --btn-bord: var(--btn-bord-racine);
}
/* Gouttière de 1 rem, pas 1,5 rem (garde du parc 29/09/2026, actu-pme.com) : à 390 px, --e5
   (1,5 rem) ne laissait que 351 px de conteneur, et la moindre marge intérieure de carte faisait
   passer le texte sous les 300 px exigés par `page_cassee.colonne_etroite`. Au-delà de 1360 px
   (--largeur) la valeur ne change rien : le plafond décide. */
.bh-3c59-int { width: min(100% - 2 * var(--e4), var(--largeur)); margin-inline: auto; }

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

/* ─── boutons et liens ─── */
.bh-3c59-home .bh-3c59-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-3c59-bouton:hover { transform: translateY(-2px); }
/* Les flèches de la banque sont des tracés SVG posés par rendu.py, plus des
   glyphes de fonte injectés par CSS (le « » seul se lisait comme un caractère
   orphelin, centré sous les cartes de forme « ligne »). */
.bh-3c59-fleche svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.bh-3c59-home :is(.bh-3c59-c-suite, .bh-3c59-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-3c59-c-suite (encre de lien) gagnait : 3.85 mesuré en sombre */
.bh-3c59-home[data-lien="surligne"] .bh-3c59-c-suite { background: var(--c-doux); color: var(--c-sur-doux) !important; padding: .1em .35em; }

/* ─── cartes ─── */
.bh-3c59-home .bh-3c59-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-3c59-carte:hover { box-shadow: var(--o-survol); }
.bh-3c59-c-corps { padding: var(--e5); display: flex; flex-direction: column; gap: var(--e2); flex: 1; }
.bh-3c59-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-3c59-c-titre a { text-decoration: none; color: inherit; }
.bh-3c59-c-titre a:hover { text-decoration: underline; text-underline-offset: .2em; }
/* Plafond de lignes des paragraphes de carte. Il ne sert plus à faire tenir un
   texte dans une mise en page : le budget rédactionnel est de 240 caractères
   (phrase complète) et tient en 8 lignes à 360 px. Douze lignes ne coupent donc
   jamais un texte écrit, elles protègent d'un collage pathologique. Même valeur
   que .bh-3c59-pile, qui l'appliquait déjà à ses propres cartes. */
.bh-3c59-c-p { color: var(--carte-encre-2); display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }
.bh-3c59-c-kicker { font-size: var(--tm); text-transform: var(--f-casse-kicker); letter-spacing: .06em; color: var(--carte-lien); font-weight: 600; }
.bh-3c59-c-meta { font-size: var(--tm); color: var(--carte-encre-2); }
.bh-3c59-c-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.bh-3c59-cs-texte, .bh-3c59-cs-qr, .bh-3c59-cs-fait, .bh-3c59-cs-citation { padding: var(--e5); gap: var(--e3); }
/* ─── plancher de lecture des cartes (garde du parc 30/09/2026, decorateur-maison.com) ───
   `page_cassee.colonne_etroite` refuse tout texte de 60 caractères et plus dans une boîte de
   moins de 300 px. La marge intérieure HORIZONTALE d'une carte se paie deux fois : dans un
   conteneur de --largeur une grille de trois colonnes donne une carte de 354 px (1120 px de
   --largeur, 28,8 px de gouttière --e5) et --e5 (28,8 px de chaque côté) ne laissait que
   296 px au paragraphe — 4 px sous le seuil. On garde --e5 en vertical (la respiration de la
   carte ne bouge pas) et on ramène l'horizontale à --e4 : 316 px de texte à trois colonnes,
   313 px à une colonne sur un écran de 390 px. C'est le remède que quatre gardes du parc ont
   porté à la main dans la copie figée de leur site (actu-pme, assurance-et-famille,
   actu-maison, maison-bien-etre) : il manquait au gabarit lui-même, donc tout site neuf
   renaissait avec le défaut. Figé par `tests/test_colonne_etroite_grille_kit.py`. */
.bh-3c59-c-corps,
.bh-3c59-cs-texte, .bh-3c59-cs-qr, .bh-3c59-cs-fait, .bh-3c59-cs-citation { padding-inline: var(--e4); }
/* Les formes de carte sont préfixées par .bh-3c59-home : sans cela elles restaient à
   (0,1,0) sous `.bh-3c59-home .bh-3c59-carte` (0,2,0), qui impose `flex-direction:
   column` à toutes les cartes. La forme « ligne » était donc empilée et son
   icône « lire la suite » tombait seule et centrée sous le texte. À
   spécificité égale, l'ordre de source tranche : ces règles sont plus bas dans
   le fichier, elles gagnent enfin.
   `min-height: 100%` sur un item dont la hauteur de parent est inconnue
   chassait .bh-3c59-c-corps hors de la carte : `align-self: stretch` étire la photo
   sans écraser le texte. */
.bh-3c59-home .bh-3c59-cs-image-gauche { flex-direction: row; }
.bh-3c59-cs-image-gauche .bh-3c59-c-media { flex: 0 0 38%; align-self: stretch; min-height: 0; }
.bh-3c59-cs-image-gauche .bh-3c59-c-media img { width: 100%; height: 100%; min-height: 9rem; object-fit: cover; }
.bh-3c59-cs-superpose { min-height: 15rem; justify-content: flex-end; }
.bh-3c59-cs-superpose .bh-3c59-c-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.bh-3c59-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-3c59-c-voile .bh-3c59-c-titre, .bh-3c59-c-voile .bh-3c59-c-kicker, .bh-3c59-c-voile .bh-3c59-c-meta { color: var(--c-sur-voile); }
.bh-3c59-c-vedette .bh-3c59-c-titre { font-size: var(--t4); }
.bh-3c59-cs-portrait { align-items: flex-start; }
.bh-3c59-c-avatar { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; margin: var(--e5) var(--e5) 0; }
.bh-3c59-c-vedette .bh-3c59-c-avatar { width: 9rem; height: 9rem; }
.bh-3c59-cs-numero .bh-3c59-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-3c59-home .bh-3c59-cs-ligne { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--e4); }
.bh-3c59-cs-ligne .bh-3c59-c-corps { padding-block: var(--e4); }
.bh-3c59-c-fleche {
  display: inline-flex; align-items: center; padding: var(--e4); text-decoration: none;
  font-size: var(--t3); color: var(--carte-lien);
}
.bh-3c59-cs-pastille { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.bh-3c59-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-3c59-c-pastille small { color: var(--carte-encre-2); font-weight: 400; }
.bh-3c59-c-pastille:hover { background: var(--c-primaire); color: var(--c-sur-primaire); }
.bh-3c59-c-pastille:hover small { color: var(--c-sur-primaire); }
.bh-3c59-c-citation { margin: 0; font-family: var(--f-titre); font-size: var(--t2); line-height: 1.45; }
.bh-3c59-c-vedette .bh-3c59-c-citation { font-size: var(--t4); }
.bh-3c59-c-signature { display: grid; gap: .1em; font-size: var(--tm); color: var(--carte-encre-2); }
.bh-3c59-c-signature strong { color: var(--carte-encre); font-size: var(--t1); }
/* étoiles : toujours en rangée, pleines = la note (le builder les pose parfois en SVG, qui
   passaient en display:block et s'empilaient : « Ce que vous en dites » cassé, 26/09) */
.bh-3c59-etoiles { letter-spacing: .15em; font-size: var(--t1); display: flex; align-items: center; gap: .15em; flex-wrap: nowrap; margin: 0; line-height: 1; }
.bh-3c59-etoiles svg { display: inline-block; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; color: var(--carte-lien); }
.bh-3c59-etoile { color: var(--carte-lien); }
.bh-3c59-etoiles .bh-3c59-etoile-vide { color: var(--c-bord); }
.bh-3c59-etoiles-vides { display: inline-flex; gap: .15em; }
.bh-3c59-etoiles-pleines { color: var(--carte-lien); }
.bh-3c59-etoiles-vides { color: var(--c-bord); }
.bh-3c59-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-3c59-c-label { font-weight: 600; }
/* La carte image seule n'a pas de chrome : l'image EST la carte. Il faut .bh-3c59-home et
   !important, sinon `.bh-3c59-home .bh-3c59-carte` (0,2,0, `background: var(--carte-fond)
   !important`) repeint la carte et le texte de la légende se retrouve collé à son bord
   gauche (decorateur-maison.com 28/09, contrôle home:cartes-marge-interne). */
.bh-3c59-home .bh-3c59-cs-image-seule { background: transparent !important; border: 0; box-shadow: none; gap: var(--e2); }
.bh-3c59-cs-image-seule img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-image); }
.bh-3c59-c-legende { font-size: var(--tm); color: var(--c-texte-2); }

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

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

/* bento : rectangle toujours plein */
.bh-3c59-bento { display: grid; gap: var(--e4); grid-template-columns: minmax(0, 1fr); }
.bh-3c59-bento > .bh-3c59-carte { min-height: 13rem; }
@media (min-width: 640px) {
  .bh-3c59-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-3c59-bento > :first-child { grid-column: span 2; }
  .bh-3c59-bento-4 > :nth-child(2), .bh-3c59-bento-6 > :nth-child(2) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bh-3c59-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(11rem, 1fr); }
  .bh-3c59-bento-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-3c59-bento-3 > :nth-child(1) { grid-area: 1 / 1 / 3 / 2; } .bh-3c59-bento-3 > :nth-child(2) { grid-area: 1 / 2 / 2 / 3; } .bh-3c59-bento-3 > :nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
  .bh-3c59-bento-4 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-3c59-bento-4 > :nth-child(2) { grid-area: 1 / 3 / 2 / 5; } .bh-3c59-bento-4 > :nth-child(3) { grid-area: 2 / 3 / 3 / 4; } .bh-3c59-bento-4 > :nth-child(4) { grid-area: 2 / 4 / 3 / 5; }
  .bh-3c59-bento-5 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-3c59-bento-5 > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; } .bh-3c59-bento-5 > :nth-child(3) { grid-area: 1 / 4 / 2 / 5; } .bh-3c59-bento-5 > :nth-child(4) { grid-area: 2 / 3 / 3 / 4; } .bh-3c59-bento-5 > :nth-child(5) { grid-area: 2 / 4 / 3 / 5; }
  .bh-3c59-bento-6 > :nth-child(1) { grid-area: 1 / 1 / 3 / 3; } .bh-3c59-bento-6 > :nth-child(2) { grid-area: 1 / 3 / 2 / 5; } .bh-3c59-bento-6 > :nth-child(3) { grid-area: 2 / 3 / 3 / 4; } .bh-3c59-bento-6 > :nth-child(4) { grid-area: 2 / 4 / 3 / 5; } .bh-3c59-bento-6 > :nth-child(5) { grid-area: 3 / 1 / 4 / 3; } .bh-3c59-bento-6 > :nth-child(6) { grid-area: 3 / 3 / 4 / 5; }
  /* Sept cartes sur TROIS colonnes, pas quatre (garde du parc 29/09/2026, actu-pme.com) : à quatre
     colonnes dans un conteneur de 1360 px, une carte mesure 328 px et son texte (marge intérieure
     de carte + bordure) tombe à 278-294 px — sous les 300 px exigés par `page_cassee.colonne_etroite`
     pour tout texte de 60 caractères et plus. Aucun réglage de marge intérieure ne rattrape 22 px ;
     c'est le NOMBRE DE COLONNES qui fait la largeur de lecture. Trois colonnes = 442 px de carte,
     392 à 408 px de texte. Neuf cellules, sept cartes, aucun trou : 2+1 / 1+1+1 / 1+2, dans l'ordre
     de lecture. La 7e carte garde DEUX colonnes comme la vedette : c'est souvent une carte
     horizontale (image | texte), dont les deux moitiés divisent la largeur — à une seule colonne son
     texte tombait à 188 px (mesuré sur actu-pme.com le 29/09). */
  .bh-3c59-bento-7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-3c59-bento-7 > :nth-child(1) { grid-area: 1 / 1 / 2 / 3; } .bh-3c59-bento-7 > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; } .bh-3c59-bento-7 > :nth-child(3) { grid-area: 2 / 1 / 3 / 2; } .bh-3c59-bento-7 > :nth-child(4) { grid-area: 2 / 2 / 3 / 3; } .bh-3c59-bento-7 > :nth-child(5) { grid-area: 2 / 3 / 3 / 4; } .bh-3c59-bento-7 > :nth-child(6) { grid-area: 3 / 1 / 4 / 2; } .bh-3c59-bento-7 > :nth-child(7) { grid-area: 3 / 2 / 4 / 4; }
  .bh-3c59-bento > .bh-3c59-carte { min-height: 0; }
}
.bh-3c59-mosaique > .bh-3c59-carte { min-height: 10rem; }
.bh-3c59-mosaique .bh-3c59-c-lienimg { display: block; flex: 1; min-height: 0; }
.bh-3c59-mosaique .bh-3c59-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-3c59-split { display: grid; gap: var(--e6); align-items: center; }
.bh-3c59-split-media { margin: 0; }
.bh-3c59-split-media img { width: 100%; height: min(68svh, 40rem); object-fit: cover; border-radius: var(--r-image); }
.bh-3c59-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-3c59-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-3c59-split-liste { display: grid; gap: var(--e4); }
@media (min-width: 1024px) {
  .bh-3c59-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bh-3c59-split-droite .bh-3c59-split-media { order: 2; }
}

/* carrousel — le plancher de la carte est un plancher de LECTURE : une carte de
   21rem (336 px) moins 2 x --e5 et 2 px de bord laissait 291 px de texte, sous
   les 300 px de `page_cassee:colonne_etroite`. 22rem en laisse 307. */
.bh-3c59-car-piste {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(22rem, 24rem); gap: var(--e5);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--e4); scrollbar-width: thin;
}
.bh-3c59-car-piste > * { scroll-snap-align: start; }
.bh-3c59-car-nav { display: flex; gap: var(--e3); margin-top: var(--e4); }
.bh-3c59-car-nav .bh-3c59-bouton {
  padding: .4em .9em; font-size: var(--t2); line-height: 1;
  color: var(--c-texte); background: var(--c-fond);
}

/* */
.bh-3c59-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-3c59-home .bh-3c59-timeline[data-frise] { border-left: 0; padding: 0 0 0 calc(var(--e7) + .25rem); position: relative; }
.bh-3c59-home .bh-3c59-timeline[data-frise]::before, .bh-3c59-home .bh-3c59-timeline[data-frise]::after {
  content: ""; position: absolute; left: calc(var(--e5) - 2px); top: .5rem; width: 4px; border-radius: 4px; }
.bh-3c59-home .bh-3c59-timeline[data-frise]::before { bottom: .5rem; height: auto; background: var(--c-bord); }
.bh-3c59-home .bh-3c59-timeline[data-frise]::after { height: calc((100% - 1rem) * var(--kv-progression, 1)); background: var(--c-primaire); transition: height .2s linear; }
.bh-3c59-home .bh-3c59-timeline[data-frise] > .bh-3c59-tl-pas::before {
  left: calc(-1 * var(--e7) - .25rem + var(--e5) - 11px); top: 1.35rem; width: 22px; height: 22px;
  background: var(--c-fond); border: 4px solid var(--c-bord); box-sizing: border-box; transition: all .25s ease; z-index: 1; }
.bh-3c59-home .bh-3c59-timeline[data-frise] > .bh-3c59-tl-pas.kv-atteint::before { border-color: var(--c-primaire); background: var(--c-primaire); }
.bh-3c59-home .bh-3c59-timeline[data-frise] > [data-jalon]::after { content: none; }
.bh-3c59-home .bh-3c59-timeline[data-frise] .bh-3c59-carte { transition: transform .3s ease, box-shadow .3s ease; }
.bh-3c59-home .bh-3c59-timeline[data-frise] > .kv-atteint .bh-3c59-carte { box-shadow: var(--o-survol); }
.bh-3c59-c-echeance { display: inline-flex; align-self: flex-start; align-items: center; gap: .4em; font-weight: 700; font-size: var(--tm);
  letter-spacing: .04em; padding: .3em .75em; border-radius: 999px; background: var(--c-primaire); color: var(--c-sur-primaire); }
.bh-3c59-home .bh-3c59-carte .bh-3c59-c-echeance { color: var(--c-sur-primaire) !important; }
.bh-3c59-cs-jalon, .bh-3c59-cs-repere { padding: var(--e5); padding-inline: var(--e4); gap: var(--e3); }
/* La marge intérieure horizontale d'une carte jalon/repere se paie UNE fois : le corps de carte ne
   la reprend pas. `correctifs.css` la pose sur tous les `.bh-3c59-c-corps` d'un site déjà construit,
   d'où 230 px de texte à 1440 px en quatre colonnes (326 - 2 × --e5 - 2 × --e4, garde du parc
   30/09/2026, journal-entreprise.com). */
.bh-3c59-cs-jalon > .bh-3c59-c-corps, .bh-3c59-cs-repere > .bh-3c59-c-corps { padding-inline: 0; }
/* À 390 px, la marge intérieure de carte --e5 (20,4 px de chaque côté) ramenait le texte d'une carte
   jalon sous les 300 px exigés par `page_cassee.colonne_etroite` : 390 - 2 × --e4 (gouttière .bh-3c59-int)
   - 2,25 rem (rail de frise) - 2 × --e5 = 286 px. Un `.cs-jalon` posé dans une frise cumule les trois
   retraits — même remède que la gouttière ci-dessus, ramené à --e4 sur mobile seulement
   (garde du parc 29/09/2026, assurance-et-famille.com). Au-delà de 640 px les valeurs de bureau
   restent : la mesure ne descend plus sous le seuil.
   30/09/2026 (journal-entreprise.com) : le retrait de 1,75 rem ne suffisait pas — sur un site dont
   --e4 vaut 1,2 rem, il laissait 285 px. Sous 640 px le rail est donc MASQUÉ et le retrait RETIRÉ
   (masquer le rail en gardant le retrait ne répare rien) : 352 px de carte, 313 px de texte. */
@media (max-width: 639px) {
  .bh-3c59-home .bh-3c59-timeline[data-frise] { padding-left: 0; }
  .bh-3c59-home .bh-3c59-timeline[data-frise]::before,
  .bh-3c59-home .bh-3c59-timeline[data-frise]::after,
  .bh-3c59-home .bh-3c59-timeline[data-frise] > .bh-3c59-tl-pas::before { content: none; }
  .bh-3c59-cs-jalon, .bh-3c59-cs-repere { padding: var(--e4); }
}
.bh-3c59-tl-pas { position: relative; }
.bh-3c59-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-3c59-tl-alterne { border-left: 0; padding: 0; position: relative; }
  .bh-3c59-tl-alterne::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid var(--c-bord); }
  .bh-3c59-tl-alterne .bh-3c59-tl-pas { width: calc(50% - var(--e6)); }
  .bh-3c59-tl-alterne .bh-3c59-tl-pas:nth-child(even) { margin-left: calc(50% + var(--e6)); }
  .bh-3c59-tl-alterne .bh-3c59-tl-pas::before { left: auto; right: calc(-1 * var(--e6) - 8px); }
  .bh-3c59-tl-alterne .bh-3c59-tl-pas:nth-child(even)::before { right: auto; left: calc(-1 * var(--e6) - 8px); }
}

/* onglets */
.bh-3c59-onglets-barre { display: flex; flex-wrap: wrap; gap: var(--e2); margin-bottom: var(--e5); }
.bh-3c59-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-3c59-onglet[aria-selected="true"] { background: var(--c-primaire); color: var(--c-sur-primaire); }
.bh-3c59-panneau .bh-3c59-carte { font-size: var(--t2); }
.bh-3c59-panneau .bh-3c59-cs-image-gauche .bh-3c59-c-media { flex-basis: 45%; }

/* accordéon */
.bh-3c59-accordeon { display: grid; gap: var(--e3); max-width: 60rem; }
[data-alignement="centre"] .bh-3c59-accordeon { margin-inline: auto; }
.bh-3c59-acc { background: var(--carte-fond); color: var(--carte-encre); border: var(--carte-bord); border-radius: var(--r-carte); box-shadow: var(--o-carte); }
.bh-3c59-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-3c59-acc-corps { padding: 0 var(--e5) var(--e5); display: grid; gap: var(--e3); color: var(--carte-encre-2); }
.bh-3c59-acc-corps a { color: var(--carte-lien); font-weight: 600; }
/* À 390 px la marge intérieure d'une carte d'accordéon se paie deux fois (conteneur --e4 + carte --e5
   + résumé --e5) : 352 - 2 × 28,8 = 292 px pour la question, sous les 300 px de
   `page_cassee.colonne_etroite` (garde du parc 30/09/2026, journal-entreprise.com). */
@media (max-width: 639px) {
  .bh-3c59-home .bh-3c59-acc > summary { padding: var(--e4); }
  .bh-3c59-home .bh-3c59-acc-corps { padding: 0 var(--e4) var(--e4); }
}

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

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

/* bandes pleine largeur */
.bh-3c59-bandes { display: grid; border-top: 1px solid var(--c-bord); }
.bh-3c59-bande { display: grid; gap: var(--e3); padding-block: var(--e6); border-bottom: 1px solid var(--c-bord); }
.bh-3c59-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-3c59-bande-titre a { text-decoration: none; color: inherit; }
.bh-3c59-bande-titre a:hover { color: var(--c-primaire-texte); }
.bh-3c59-bande-corps { display: grid; gap: var(--e2); color: var(--c-texte-2); }
.bh-3c59-bande-corps .bh-3c59-c-kicker { color: var(--c-primaire-texte); }
.bh-3c59-bande-corps .bh-3c59-c-p, .bh-3c59-bande-corps .bh-3c59-c-meta { color: var(--c-texte-2); }
@media (min-width: 1024px) { .bh-3c59-bande { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: baseline; } }

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

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

/* défilant */
.bh-3c59-defilant { display: grid; gap: var(--e4); overflow: hidden; }
.bh-3c59-def-rang { overflow: hidden; white-space: nowrap; }
.bh-3c59-def-piste { display: inline-flex; gap: var(--e7); animation: bh-3c59-defile 70s linear infinite; }
.bh-3c59-def-inverse .bh-3c59-def-piste { animation-direction: reverse; }
.bh-3c59-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-3c59-def-mot:nth-child(3n+2) { color: var(--c-primaire-texte); }
@keyframes bh-3c59-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bh-3c59-def-piste { animation: none; } }

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

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

/* ─── hero ─── */
.bh-3c59-hero { height: calc(100svh - var(--header-h)); min-height: 0; padding-block: 0; position: relative; overflow: hidden; justify-content: flex-end; }
.bh-3c59-hero-kicker { font-size: var(--tm); text-transform: var(--f-casse-kicker); letter-spacing: .1em; font-weight: 600; margin-bottom: var(--e3); }
.bh-3c59-home .bh-3c59-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); }
/* Plancher 320 px (garde du parc 29/09/2026, actu-pme.com) : `ch` suit la taille de police de
   l'élément, elle-même relative à la racine du thème (12,8 px en mobile). 46ch ne valaient plus
   que 294 px à 390 px de large : `page_cassee.colonne_etroite` refuse tout texte de 60 caractères
   et plus dans une boîte de moins de 300 px. Le plafond de lecture ne bouge pas au-delà. */
.bh-3c59-home .bh-3c59-hero-accroche { font-size: var(--t2); max-width: max(320px, 46ch); margin-bottom: var(--e5); }
.bh-3c59-hero-actions { display: flex; flex-wrap: wrap; gap: var(--e3); }
.bh-3c59-hero-titres { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3); }
.bh-3c59-hero-titres a { display: grid; gap: .15em; text-decoration: none; color: inherit; border-top: 1px solid currentColor; padding-top: var(--e2); }
.bh-3c59-hero-titres a:hover span:last-child { text-decoration: underline; }
.bh-3c59-hero-date { font-size: var(--tm); opacity: .85; }
.bh-3c59-hero-titres span:last-child { font-weight: 600; }

.bh-3c59-hero-plein-cadre .bh-3c59-hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-3c59-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) 45%, transparent) 100%);
}
.bh-3c59-hero-bas { display: grid; gap: var(--e6); align-items: end; }
@media (min-width: 1024px) { .bh-3c59-hero-bas { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (max-width: 1023px) { .bh-3c59-hero-plein-cadre .bh-3c59-hero-titres { display: none; } }

.bh-3c59-hero-scinde { display: grid; grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--c-fond); }
.bh-3c59-hero-moitie { min-height: 0; margin: 0; }
.bh-3c59-hero-gauche { display: flex; align-items: flex-end; padding: var(--e6) var(--e5); }
.bh-3c59-hero-media { position: relative; order: -1; }
.bh-3c59-hero-media img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-3c59-hero-media figcaption { position: absolute; left: var(--e4); bottom: var(--e4); right: var(--e4); }
.bh-3c59-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-3c59-hero-gauche .bh-3c59-hero-kicker { color: var(--c-primaire-texte); }
@media (min-width: 1024px) {
  .bh-3c59-hero-scinde { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .bh-3c59-hero-media { order: 0; }
  .bh-3c59-hero-gauche { padding: var(--e7) var(--e7) var(--e7) max(var(--e5), calc((100vw - var(--largeur)) / 2)); }
  .bh-3c59-hero-gauche .bh-3c59-hero-titres { margin-top: var(--e6); }
}
@media (max-width: 1023px) { .bh-3c59-hero-scinde .bh-3c59-hero-titres { display: none; } }

.bh-3c59-hero-mosaique { background: var(--c-fond-2); }
.bh-3c59-hero-grille { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--e4); padding: var(--e4); }
.bh-3c59-hero-mosaique-img { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--e3); min-height: 0; order: -1; }
.bh-3c59-hero-vignette { position: relative; overflow: hidden; border-radius: var(--r-image); min-height: 0; display: block; }
.bh-3c59-hero-vignette img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bh-3c59-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-3c59-hero-grille .bh-3c59-hero-texte { padding: var(--e3) var(--e3) var(--e4); }
@media (min-width: 1024px) {
  .bh-3c59-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-3c59-hero-mosaique-img { order: 2; height: 100%; }
  .bh-3c59-hero-vignette span { font-size: var(--t1); }
}
@media (max-width: 639px) { .bh-3c59-hero-vignette span { display: none; } }

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

.bh-3c59-hero-typo { background: var(--c-fond-2); }
.bh-3c59-hero-typo-int { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--e7); }
.bh-3c59-hero-typo .bh-3c59-hero-kicker { color: var(--c-primaire-texte); }
.bh-3c59-home .bh-3c59-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-3c59-hero-typo-bas { display: grid; gap: var(--e5); align-items: end; border-top: 2px solid var(--c-texte); padding-top: var(--e5); }
.bh-3c59-hero-titres-ligne { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .bh-3c59-hero-typo-bas { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
  .bh-3c59-hero-titres-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) { .bh-3c59-hero-typo .bh-3c59-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-3c59-home .bh-3c59-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-3c59-home .bh-3c59-hero-voile .bh-3c59-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-3c59-home .bh-3c59-hero-voile .bh-3c59-bouton-2 { background: transparent !important; color: var(--c-sur-voile) !important; border: 2px solid var(--c-sur-voile); box-shadow: none; }
.bh-3c59-home .bh-3c59-hero-bande .bh-3c59-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-3c59-home .bh-3c59-hero-bande .bh-3c59-bouton-2 { background: transparent !important; color: var(--c-sur-primaire) !important; border: 2px solid var(--c-sur-primaire); box-shadow: none; }
.bh-3c59-home .bh-3c59-hero-bande :is(h1, h2, p, span, small, strong, li):not(.bh-3c59-bouton, .bh-3c59-bouton *) { color: var(--c-sur-primaire) !important; }

@media (max-width: 639px) {
  .bh-3c59-home .bh-3c59-bloc:not(.bh-3c59-hero) { padding-block: var(--e7); }
  /* Préfixée elle aussi, sinon la règle de forme (0,2,0) la battrait et le texte
     passerait à côté de l'image sur téléphone. */
  .bh-3c59-home .bh-3c59-cs-image-gauche { flex-direction: column; }
  .bh-3c59-cs-image-gauche .bh-3c59-c-media { flex-basis: auto; }
  .bh-3c59-cs-image-gauche .bh-3c59-c-media img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .bh-3c59-home .bh-3c59-hero-accroche { font-size: var(--t1); }
}

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

/* ─── reprises du 24/09 : bloc par bloc, jamais plus loin ───────────────────
   Chaque règle est portée par l'identifiant du bloc concerné. Les mises en page
   du même type (zigzag, magazine, bento, bandes, split) servent à plusieurs
   blocs : une règle non préfixée les toucherait toutes. */

/* Une : les deux cartes du zigzag ont la hauteur de leur photo, et le texte
   occupe toute la colonne (titre en haut, « Lire l'article » en bas) au lieu de
   laisser le coin bas droit vide. Même traitement que la vedette des articles. */
.bh-3c59-b-une .bh-3c59-cs-image-gauche { align-items: stretch; }
.bh-3c59-b-une .bh-3c59-cs-image-gauche .bh-3c59-c-suite { margin-top: auto; }
@media (min-width: 1024px) {
  .bh-3c59-b-une .bh-3c59-zz .bh-3c59-c-media { flex: 0 0 52%; }
  .bh-3c59-b-une .bh-3c59-zz .bh-3c59-c-media img { aspect-ratio: auto; height: 100%; object-fit: cover; }
}

/* le lien « Lire l article » garde sa flèche sur la même ligne */
.bh-3c59-home .bh-3c59-c-suite { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; width: fit-content; }

/* */

/* Idées reçues : de vraies cartes (fond, bord, ombre), l'idée barrée d'une croix, la réalité
   cochée ; avant, du texte flottant sans boîte. */
.bh-3c59-home .bh-3c59-cs-idee { padding: 0; gap: 0; border: var(--carte-bord); border-radius: max(var(--r-carte), 6px); box-shadow: var(--o-carte, none); }
.bh-3c59-cs-idee .bh-3c59-ir-faux, .bh-3c59-cs-idee .bh-3c59-ir-vrai { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--e3); padding: var(--e5); align-items: start; }
.bh-3c59-cs-idee .bh-3c59-ir-faux { background: color-mix(in srgb, var(--c-bord) 35%, var(--carte-fond)); border-bottom: 1px solid var(--c-bord); }
.bh-3c59-cs-idee .bh-3c59-ir-vrai { flex: 1; }
.bh-3c59-ir-ico { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: 0 0 auto; }
.bh-3c59-ir-ico svg { width: 1.25rem; height: 1.25rem; }
.bh-3c59-ir-faux .bh-3c59-ir-ico { background: var(--carte-encre-2); color: var(--carte-fond); }
.bh-3c59-ir-vrai .bh-3c59-ir-ico { background: var(--c-primaire); color: var(--c-sur-primaire); }
.bh-3c59-ir-etiquette { display: block; font-size: var(--tm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--carte-encre-2); margin-bottom: .2em; }
.bh-3c59-ir-vrai .bh-3c59-ir-etiquette { color: var(--carte-lien); }
.bh-3c59-ir-faux .bh-3c59-c-titre { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--carte-encre) 45%, transparent); }

/* Le vrai/faux tient DEUX pistes : l'icône (2,25rem) et le texte. Sous 640 px la carte fait la
   largeur de la page (342 à 390 px) et la marge --e5 mange le reste : 342 - 48 - 36 - 12 = 246 px
   de texte, rouge `page_cassee:colonne_etroite` par construction, quelle que soit la longueur de
   la phrase — et aucune réduction de marge ne suffit à repasser 300 px. L'icône passe donc
   AU-DESSUS du texte sous 640 px, et l'horizontale à --e4 : 342 - 32 = 310 px.
   Garde : `tests/test_colonne_etroite_cs_idee_20260930.py`. */
@media (max-width: 639px) {
  .bh-3c59-home .bh-3c59-cs-idee .bh-3c59-ir-faux,
  .bh-3c59-home .bh-3c59-cs-idee .bh-3c59-ir-vrai {
    grid-template-columns: minmax(0, 1fr); padding: var(--e4);
  }
}

/* */
.bh-3c59-cs-repere .bh-3c59-rp-ico { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: color-mix(in srgb, var(--c-primaire) 14%, var(--carte-fond)); color: var(--carte-lien); }
.bh-3c59-cs-repere .bh-3c59-rp-ico svg { width: 1.35rem; height: 1.35rem; }
.bh-3c59-cs-repere .bh-3c59-c-chiffre { font-size: var(--t6); margin-top: var(--e2); }
.bh-3c59-cs-repere .bh-3c59-c-suite { margin-top: auto; }
.bh-3c59-c-vedette.bh-3c59-cs-repere { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: var(--e5); align-items: center; }
.bh-3c59-c-vedette.bh-3c59-cs-repere > * { margin: 0; }
.bh-3c59-c-vedette.bh-3c59-cs-repere .bh-3c59-c-p, .bh-3c59-c-vedette.bh-3c59-cs-repere .bh-3c59-c-suite { grid-column: 3; }
.bh-3c59-c-vedette.bh-3c59-cs-repere .bh-3c59-c-label { grid-column: 3; font-size: var(--t2); }
.bh-3c59-c-vedette.bh-3c59-cs-repere .bh-3c59-rp-ico { grid-row: 1 / span 3; }
.bh-3c59-c-vedette.bh-3c59-cs-repere .bh-3c59-c-chiffre { grid-row: 1 / span 3; font-size: var(--t7); }
@media (max-width: 639px) {
  .bh-3c59-c-vedette.bh-3c59-cs-repere { grid-template-columns: auto minmax(0, 1fr); }
  .bh-3c59-c-vedette.bh-3c59-cs-repere .bh-3c59-c-chiffre { grid-row: auto; grid-column: 2; font-size: var(--t6); }
  .bh-3c59-c-vedette.bh-3c59-cs-repere :is(.bh-3c59-c-p, .bh-3c59-c-suite, .bh-3c59-c-label) { grid-column: 1 / -1; }
}

/* Avis : cartes citation lisibles, jamais plus étroites que 18rem ; la signature en pied. */
.bh-3c59-home .bh-3c59-cs-citation { gap: var(--e3); }
.bh-3c59-cs-citation .bh-3c59-c-citation p { margin: 0; }
.bh-3c59-cs-citation .bh-3c59-c-signature { margin-top: auto; padding-top: var(--e3); border-top: 1px solid var(--c-bord); }
.bh-3c59-b-avis .bh-3c59-c-vedette .bh-3c59-c-citation { font-size: var(--t3); max-width: 60ch; }
@media (max-width: 639px) { .bh-3c59-b-avis .bh-3c59-c-vedette .bh-3c59-c-citation, .bh-3c59-c-vedette .bh-3c59-c-citation { font-size: var(--t2); } }
.bh-3c59-b-avis .bh-3c59-grille { align-items: stretch; }

/* Le hero garde son écran plein quoi que le builder pose comme hauteur : sans le min-height général
   des blocs (retiré le 26/09), un hero calculé « écran moins header moins bandeau » s'arrêtait 44 px
   trop haut alors que le bandeau est DANS le header (portier_da da_hauteurs, revue-auto-moto). */
.bh-3c59-home .bh-3c59-bloc.bh-3c59-hero { min-height: calc(100svh - var(--header-h)); }

/* */
/* */
.bh-3c59-timeline .bh-3c59-c-media img, .bh-3c59-b-parcours .bh-3c59-c-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 320px; object-fit: cover; }
@media (min-width: 900px) {
  .bh-3c59-timeline .bh-3c59-carte:has(> .bh-3c59-c-media) { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: var(--e5); align-items: start; }
  .bh-3c59-timeline .bh-3c59-carte:has(> .bh-3c59-c-media) > .bh-3c59-c-media { margin: 0; }
}

/* */
.bh-3c59-quiz { max-width: 46rem; margin-inline: auto; display: grid; gap: var(--e4); }
.bh-3c59-quiz-q { padding: var(--e5); }
.bh-3c59-quiz-affirmation { font-family: var(--f-titre, inherit); font-size: var(--t3, 1.35rem); font-weight: 700; line-height: 1.25; margin: 0; }
.bh-3c59-quiz-verdict { font-weight: 800; margin: var(--e3) 0 .25rem; }
.bh-3c59-quiz-expl { margin-top: var(--e3); }
.bh-3c59-quiz-score:empty { display: none; }
.bh-3c59-quiz-bandes .bh-3c59-quiz-q { border-left: 6px solid var(--c-primaire, currentColor); border-radius: 0; box-shadow: none; }
.bh-3c59-quiz-plein .bh-3c59-quiz-q { background: var(--c-primaire); color: var(--c-sur-primaire, var(--c-fond)); text-align: center; }
.bh-3c59-quiz-plein .kv-choix { justify-content: center; }
.bh-3c59-quiz-plein .kv-bouton { color: inherit; border-color: currentColor; }
.bh-3c59-quiz-split { max-width: none; }
@media (min-width: 900px) {
  .bh-3c59-quiz-split .bh-3c59-quiz-q { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--e6); align-items: start; }
  .bh-3c59-quiz-split .bh-3c59-quiz-q > * { grid-column: 2; }
  .bh-3c59-quiz-split .bh-3c59-quiz-q > .bh-3c59-quiz-affirmation { grid-column: 1; grid-row: 1 / span 3; font-size: var(--t4, 1.6rem); }
}
.bh-3c59-quiz-compact { max-width: 38rem; }
.bh-3c59-quiz-compact .bh-3c59-quiz-affirmation { font-size: var(--t2, 1.1rem); }

/* */
.bh-3c59-b-sujets .bh-3c59-mur { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--e3); }
.bh-3c59-b-sujets .bh-3c59-mur-col { display: contents; }
.bh-3c59-b-sujets .bh-3c59-carte.bh-3c59-cs-pastille { background: transparent; border: 0; box-shadow: none; padding: 0; width: auto; }
.bh-3c59-c-pastille {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .55em 1.2em;
  border-radius: 999px; border: 1.5px solid var(--c-primaire); background: var(--carte-fond);
  color: var(--c-primaire-texte, var(--carte-encre)); text-decoration: none; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.bh-3c59-c-pastille::after { content: "\2192"; font-weight: 400; }
.bh-3c59-c-pastille:hover, .bh-3c59-c-pastille:focus-visible { background: var(--c-primaire); color: var(--c-sur-primaire); transform: translateY(-1px); }

/* */
.bh-3c59-hero-actions { margin-top: var(--e5); }

/* 28/09 decorateur-maison : sur le hero plein cadre, tout le texte est sur la photo voilée ; les couleurs du hero
   scindé (hero-gauche, kicker primaire, H1 foncé) le rendaient illisible. */
.bh-3c59-home .bh-3c59-hero-plein-cadre :is(.bh-3c59-hero-kicker, .bh-3c59-hero-h1, .bh-3c59-hero-geant, .bh-3c59-hero-accroche) { color: var(--c-sur-voile); }

/* 28/09 maison-bien-etre : en mobile, l image 4/3 (248 px) sortait de son cadre de 164 px et passait sous le titre de la carte. Le cadre coupe son image. */
.bh-3c59-carte .bh-3c59-c-media { overflow: hidden; }

/* 28/09 decorateur-maison : hero-gauche dans le conteneur centré (hero plein cadre) : pas de marge d'écran en plus. */
@media (min-width: 1024px) { .bh-3c59-home .bh-3c59-int .bh-3c59-hero-gauche { padding-left: 0; } }

/* */
.bh-am-home { width: 100%; max-width: 1100px; margin: -2rem auto 0; display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1rem; color: var(--c-texte, #4c4948); }
.bh-am-home img { max-width: 100%; }
.bh-am-bloc { scroll-margin-top: calc(var(--header-h, 104px) + 1rem); }
.bh-am-h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-align: center; margin: 0 auto .6rem; max-width: 30ch; }
.bh-am-intro { text-align: center; max-width: 62ch; margin: 0 auto 1.6rem; font-size: 1.02rem; line-height: 1.65; color: var(--c-texte-2, #63666b); }
.bh-am-carte { padding: clamp(1.25rem, 4vw, 2.5rem); }
.bh-am-boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.bh-am-boutons.centre { justify-content: center; }
.bh-am-renvoi { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .96rem; }
.bh-am-renvoi.centre { justify-content: center; }
.bh-am-renvoi svg { width: 1.1em; height: 1.1em; color: #024bc0; }
.bh-am-renvoi a:not(.pilule) { color: #024bc0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Hero mosaïque : pleine largeur, hauteur de l’écran moins header et bandeau */
.bh-am-hero { width: 100vw; margin-left: calc(50% - 50vw); min-height: calc(100svh - var(--header-h, 104px)); display: flex; align-items: center; background: linear-gradient(180deg, #f0f2f4 0%, #e6f0fb 100%); padding: clamp(1rem, 3vw, 2rem) 0; box-sizing: border-box; }
.bh-am-hero-dedans { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(.75rem, 3vw, 1.5rem); box-sizing: border-box; display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: 1fr; align-items: center; }
.bh-am-hero-carte { padding: clamp(1.4rem, 4vw, 2.6rem); }
.bh-am-kicker { display: inline-flex !important; align-items: center; gap: .4rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem !important; padding: .35rem .9rem !important; color: #4c4948; }
.bh-am-kicker svg { width: 1.1em; height: 1.1em; color: #024bc0; }
.bh-am-h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 1rem 0 .9rem; }
.bh-am-accroche { font-size: 1.08rem; line-height: 1.7; color: var(--c-texte, #4c4948); max-width: 52ch; }
.bh-am-hero-meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .86rem; color: var(--c-texte-2, #63666b); }
.bh-am-hero-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.bh-am-hero-meta svg { width: 1.05em; height: 1.05em; color: #024bc0; }
.bh-am-mosaique { display: grid; gap: .75rem; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(14rem, 34svh, 22rem); }
.bh-am-mosaique img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .12); display: block; min-height: 0; }
.bh-am-mosaique .m1 { grid-row: 1 / 3; }
@media (min-width: 56rem) {
  .bh-am-hero-dedans { grid-template-columns: 5fr 6fr; }
  .bh-am-mosaique { height: min(calc(100svh - var(--header-h, 104px) - 4rem), 36rem); min-height: 24rem; }
}

/* À la une : une grande carte puis trois petites */
.bh-am-une-grille { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.bh-am-une-petites { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.carte-grande img { aspect-ratio: 16 / 9; }
.carte-grande h3, .carte-grande h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.carte-petite { flex-direction: row; }
.carte-petite img { width: 38%; max-width: 11rem; aspect-ratio: 1 / 1; height: auto; border-radius: 8px 0 0 8px; flex: none; }
.carte-petite .carte-corps { padding: .9rem 1rem; min-width: 0; }
.carte-petite h3 { font-size: 1.02rem; }
@media (max-width: 30rem) { .carte-petite { flex-direction: column; } .carte-petite img { width: 100%; max-width: none; aspect-ratio: 3 / 2; border-radius: 8px 8px 0 0; } }
@media (min-width: 64rem) { .bh-am-une-grille { grid-template-columns: 1.25fr 1fr; } }

/* Le mot de l’auteure */
.bh-am-mot-carte { padding: clamp(1.4rem, 4vw, 2.6rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.bh-am-mot-nom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; }
.bh-am-mot blockquote { position: relative; margin: 1.1rem auto 0; max-width: 60ch; font-style: italic; font-size: 1.08rem; line-height: 1.8; }
.bh-am-mot blockquote svg { width: 1.8rem; height: 1.8rem; color: #1E8CD9; display: block; margin: 0 auto .4rem; }

/* Widgets */
.bh-am-calcul { background: #e6f0fb; border-radius: 8px; padding: clamp(1rem, 3vw, 1.75rem); display: grid; gap: 1.25rem; }
.bh-am-champs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .bh-am-champs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bh-am-champs label { display: flex; flex-direction: column; gap: .45rem; font-weight: 600; font-size: .92rem; }
.bh-am-champs label > span { display: inline-flex; align-items: center; gap: .4rem; }
.bh-am-champs svg { width: 1.15em; height: 1.15em; color: #024bc0; flex: none; }
.bh-am-champs input { width: 100%; min-height: 44px; border: 1px solid #cccccc; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; background: #fff; color: #4c4948; box-sizing: border-box; }
.bh-am-resultats { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .bh-am-resultats { grid-template-columns: 1fr 1fr; } }
.bh-am-resultats p { background: #fff; border-radius: 8px; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / .08); }
.bh-am-resultats span { font-size: .9rem; color: #4c4948; font-weight: 600; }
.bh-am-resultats output { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: #024bc0; line-height: 1.1; }
.bh-am-interrupteur { display: flex !important; width: max-content; margin: 0 auto 1.4rem; }
.bh-am-interrupteur button, .bh-am-onglet { min-height: 44px; padding: .5rem 1.2rem; border-radius: 999px; border: 0; background: transparent; font: inherit; font-weight: 600; color: #4c4948; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.bh-am-interrupteur button.kv-actif, .bh-am-onglet.kv-actif { background: #024bc0; color: #fff; }
.bh-am-onglet svg { width: 1.1em; height: 1.1em; }
.bh-am-formules { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .bh-am-formules { grid-template-columns: 1fr 1fr; } }
.bh-am-formule { border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem; background: #fff; transition: box-shadow .4s, border-color .4s; }
.bh-am-formule.kv-en-avant { border-color: #1E8CD9; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.bh-am-formule h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; font-weight: 700; color: #024bc0; }
.bh-am-formule h3 svg { width: 1.3em; height: 1.3em; }
.bh-am-formule-def { margin: .5rem 0 1rem; color: var(--c-texte-2, #63666b); line-height: 1.6; }
.bh-am-formule ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.bh-am-formule li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.55; }
.bh-am-formule li svg { width: 1.3em; height: 1.3em; flex: none; margin-top: .1rem; }
.bh-am-formule li.oui svg { color: #157347; }
.bh-am-formule li.non svg { color: #b42318; }
.bh-am-formule li strong { display: block; }
.bh-am-selon { margin-top: 1.25rem; background: #e6f0fb; border-radius: 8px; padding: 1rem 1.2rem; display: flex; gap: .6rem; line-height: 1.6; }
.bh-am-selon svg { width: 1.3em; height: 1.3em; color: #024bc0; flex: none; margin-top: .15rem; }
.bh-am-selon[hidden] { display: none; }

/* Rubriques en onglets */
.bh-am-onglets { display: flex; flex-direction: column; align-items: stretch; }
.bh-am-onglets-liste { display: flex !important; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0 auto 1.4rem; max-width: 100%; border-radius: 1.5rem !important; }
.bh-am-panneau { display: grid; gap: 1.25rem; }
.bh-am-panneau[hidden] { display: none; }
.bh-am-panneau-tete { padding: 1.2rem 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; }
.bh-am-panneau-tete p { line-height: 1.6; }
.bh-am-panneau-grille { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .bh-am-panneau-grille.n2, .bh-am-panneau-grille.n4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .bh-am-panneau-grille.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bon à savoir : bento 3 colonnes, 3 larges + 3 étroites */
.bh-am-bento-grille { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .bh-am-bento-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .bh-am-bento-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bh-am-bento-carte.large { grid-column: span 2; } }
.bh-am-bento-carte { padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.bh-am-pastille { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: #e6f0fb; color: #024bc0; display: inline-flex; align-items: center; justify-content: center; }
.bh-am-pastille svg { width: 1.35rem; height: 1.35rem; }
.bh-am-bento-carte h3 { font-weight: 700; font-size: 1.1rem; }
.bh-am-bento-carte p { line-height: 1.6; color: var(--c-texte-2, #63666b); }

/* Étapes photo */
.bh-am-etapes-corps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.bh-am-etapes-visuel { width: 100%; aspect-ratio: 3 / 2; max-height: 420px; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .12); }
@media (min-width: 56rem) { .bh-am-etapes-corps { grid-template-columns: 1fr 1fr; } }
.bh-am-etapes-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.bh-am-etape { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 8px; cursor: pointer; transition: background-color .3s, box-shadow .3s; }
.bh-am-etape.kv-actif { background: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.bh-am-etape .btn-num { flex: none; font-weight: 700; color: #024bc0; }
.bh-am-etape h3 { font-weight: 700; font-size: 1.08rem; margin-bottom: .25rem; }
.bh-am-etape p { line-height: 1.6; color: var(--c-texte-2, #63666b); }

/* Checklist */
.bh-am-checklist-corps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .bh-am-checklist-corps { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.bh-am-cases { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.bh-am-cases label { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 8px; background: #f7f9fb; cursor: pointer; line-height: 1.55; min-height: 44px; }
.bh-am-cases input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-am-case { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 999px; border: 2px solid #1E8CD9; display: inline-flex; align-items: center; justify-content: center; color: transparent; background: #fff; margin-top: .05rem; }
.bh-am-case svg { width: 1rem; height: 1rem; }
.bh-am-cases input:checked + .bh-am-case { background: #024bc0; border-color: #024bc0; color: #fff; }
.bh-am-cases input:focus-visible + .bh-am-case { outline: 2px solid #024bc0; outline-offset: 2px; }
.bh-am-cases strong { display: block; color: #4c4948; }
.bh-am-checklist-cote { background: #e6f0fb; border-radius: 8px; padding: 1.25rem; text-align: center; }
.bh-am-lottie { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; margin: 0 auto; }
.bh-am-jauge-texte { font-weight: 700; margin-top: .6rem; }
.bh-am-jauge-texte output { font-size: 1.8rem; color: #024bc0; font-weight: 800; }
.bh-am-jauge { height: .5rem; border-radius: 999px; background: #fff; overflow: hidden; margin-top: .6rem; }
.bh-am-jauge span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0ed2f7, #024bc0); transition: width .3s; }
.bh-am-checklist-cote .bh-am-renvoi { justify-content: center; }

/* Frise des délais */
.bh-am-frise { margin: 0 auto; max-width: 760px; display: grid; gap: 1rem; }
.bh-am-jalon { padding: 1.1rem 1.3rem; }
.bh-am-jalon::before { left: -1.95rem !important; }
.bh-am-delai { display: inline-flex !important; align-items: center; gap: .35rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: #024bc0; }
.bh-am-delai svg { width: 1.05em; height: 1.05em; }
.bh-am-jalon h3 { font-weight: 700; font-size: 1.08rem; margin: .5rem 0 .25rem; }
.bh-am-jalon p { line-height: 1.6; color: var(--c-texte-2, #63666b); }
.bh-am-frise [data-jalon]::before { border-color: #1E8CD9; }
.bh-am-frise::after { background: #1E8CD9 !important; }

/* Quiz */
.bh-am-quiz-carte { max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.bh-am-quiz [data-explication] { font-family: var(--f-texte); line-height: 1.7; }

/* Glossaire */
.bh-am-glossaire-grille { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 48rem) { .bh-am-glossaire-grille { grid-template-columns: 1fr 1fr; } }
.bh-am-terme { padding: 0; }
.bh-am-terme summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; min-height: 44px; cursor: pointer; font-weight: 700; }
.bh-am-terme summary::-webkit-details-marker { display: none; }
.bh-am-terme summary svg { width: 1.2em; height: 1.2em; color: #024bc0; flex: none; }
.bh-am-terme summary span { flex: 1; }
.bh-am-terme[open] .bh-am-chevron { transform: rotate(180deg); }
.bh-am-terme p { padding: 0 1.2rem; line-height: 1.65; color: var(--c-texte-2, #63666b); }
.bh-am-terme .btn-sm { margin: .8rem 1.2rem 1.1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Acteurs du secteur */
.bh-am-acteurs-grille { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .bh-am-acteurs-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bh-am-acteur { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; color: #4c4948; text-decoration: none; }
.bh-am-acteur-logo { height: 64px; display: flex; align-items: center; }
.bh-am-acteur-logo img { max-height: 56px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.bh-am-acteur:hover .bh-am-acteur-logo img { filter: none; opacity: 1; }
.bh-am-acteur-nom { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #024bc0; }
.bh-am-acteur-nom svg { width: 1em; height: 1em; }
.bh-am-acteur-role { line-height: 1.6; font-size: .95rem; }

/* Le carnet en chiffres */
.bh-am-chiffres-grille { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 56rem) { .bh-am-chiffres-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bh-am-chiffre { padding: 1.3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.bh-am-chiffre svg { width: 1.5rem; height: 1.5rem; color: #024bc0; }
.bh-am-nombre { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; color: #024bc0; line-height: 1.1; }
.bh-am-chiffre > span:last-child { font-size: .95rem; font-weight: 600; }

/* Appel final : aplat bleu sombre qui reste sombre dans les deux modes */
.bh-am-appel { border-radius: 8px; background: linear-gradient(135deg, #024bc0 0%, #0b2f73 100%); color: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .15); }
.bh-am-appel-dedans { padding: clamp(2rem, 5vw, 3.2rem) clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
.bh-am-appel .bh-am-h2 { color: #fff; }
.bh-am-appel p { max-width: 56ch; margin: 0 auto; line-height: 1.7; color: #fff; }
.bh-am-appel-icone { width: 2.2rem; height: 2.2rem; margin: 0 auto .6rem; display: block; color: #fff; }
.pilule-blanche { background: #fff; color: #024bc0 !important; }
.pilule-blanche:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / .25); }
.pilule-contour { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }
.pilule-contour:hover { background: rgb(255 255 255 / .12); }
@media (prefers-reduced-motion: reduce) { .bh-am-home * { transition: none !important; } }
@media (max-width: 40rem) {
  .bh-am-hero { padding: .75rem 0; }
  .bh-am-hero-dedans { gap: .75rem; }
  .bh-am-hero-carte { padding: 1.1rem 1.1rem 1.2rem; }
  .bh-am-h1 { margin: .7rem 0 .6rem; }
  .bh-am-accroche { font-size: .98rem; line-height: 1.58; }
  .bh-am-boutons { margin-top: 1rem; gap: .5rem; }
  .bh-am-hero .pilule { padding: .55rem 1.1rem; }
  .bh-am-hero-meta { margin-top: 1rem; }
  .bh-am-hero-meta span:nth-child(n+2) { display: none; }
  .bh-am-mosaique { height: 8.5rem; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr; }
  .bh-am-mosaique .m1 { grid-row: auto; }
}
.bh-am-etape.kv-actif, .bh-am-etape { transform: none !important; }
@media (max-width: 40rem) {
  .bh-am-carte { padding: 1.1rem .75rem; }
  .bh-am-formule { padding: .9rem .6rem; }
  .bh-am-formule li, .bh-am-selon, .bh-am-cases label, .bh-am-etape { flex-direction: column; gap: .4rem; }
  .bh-am-cases label { padding: .7rem .6rem; }
  .bh-am-etape { padding: .8rem .6rem; }
  .bh-am-checklist-cote { padding: 1rem .6rem; }
  .bh-am-calcul { padding: .9rem .6rem; }
}
.bh-am-etapes-corps { overflow: hidden; }


/* Étapes : vignette par étape, photo collée en haut de la colonne */
[data-usine-bloc="etapes"] .bh-am-etapes-corps { align-items: start; }
[data-usine-bloc="etapes"] .bh-am-etape-vignette { flex: none; width: 96px; height: 64px; object-fit: cover; border-radius: 8px; margin-left: auto; box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1); }
[data-usine-bloc="etapes"] [data-etapes] [data-etapes-visuel] { position: static; align-self: start; margin-top: 0; }
@media (max-width: 40rem) { [data-usine-bloc="etapes"] .bh-am-etape-vignette { display: none; } }
/* Checklist : flèche et lien sur la même ligne, encadré collant */
[data-usine-bloc="checklist"] .bh-am-renvoi-lien { display: inline-flex; align-items: center; gap: .4rem; color: #024bc0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
[data-usine-bloc="checklist"] .bh-am-renvoi-lien svg { flex: none; }
@media (min-width: 56rem) { [data-usine-bloc="checklist"] .bh-am-checklist-cote { position: sticky; top: calc(var(--header-h, 104px) + 1rem); } }
/* Acteurs : trois logos à la même hauteur, alignés à gauche */
[data-usine-bloc="acteurs"] .bh-am-acteur-logo { display: flex; align-items: center; justify-content: flex-start; height: 2.5rem; }
[data-usine-bloc="acteurs"] .bh-am-acteur-logo { overflow: visible; width: auto; max-width: 100%; }
[data-usine-bloc="acteurs"] .bh-am-acteur-logo img { height: 2.5rem; max-height: 2.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
/* Hero mobile : mosaïque en trois colonnes égales, sans débordement */
@media (max-width: 48rem) {
  [data-usine-bloc="hero"] .bh-am-mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: .5rem; height: auto; min-height: 0; max-width: 100%; overflow: hidden; align-items: start; }
  [data-usine-bloc="hero"] .bh-am-mosaique img, [data-usine-bloc="hero"] .bh-am-mosaique img:nth-child(n) { grid-row: auto; width: 100%; height: auto; aspect-ratio: 1; min-width: 0; margin: 0 !important; transform: none !important; translate: none; }
}
/* Rubriques : liste compacte (titre + date) quand la rubrique n’a plus d’article libre pour une carte */
[data-usine-bloc="rubriques"] .bh-am-panneau-liste { display: block; padding: 1rem 1.4rem; color: inherit; text-decoration: none; }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; padding: .7rem 0; border-bottom: 1px solid rgb(0 0 0 / .08); min-height: 44px; }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste li:last-child { border-bottom: 0; }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste li svg { flex: none; width: 1.1em; height: 1.1em; color: #024bc0; }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste li span { flex: 1 1 16rem; font-weight: 700; font-family: var(--f-titre); }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste li time { font-size: .9rem; color: var(--c-texte-2, #63666b); }
[data-usine-bloc="rubriques"] .bh-am-panneau-liste:hover li span { color: #024bc0; }
