:root {
  --f-titre: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-texte: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-graisse-titre: 500;
  --f-casse-kicker: none;
  --tm: 0.707rem;
  --t1: 1.0rem;
  --t2: 1.414rem;
  --t3: 1.999rem;
  --t4: 2.827rem;
  --t5: 3.998rem;
  --t6: 5.653rem;
  --t7: 7.993rem;
  --t-hero: clamp(4.0rem, 6vw, 11.3rem);
  --e1: 0.25rem;
  --e2: 0.5rem;
  --e3: 0.75rem;
  --e4: 1.0rem;
  --e5: 1.5rem;
  --e6: 2.0rem;
  --e7: 3.0rem;
  --e8: 4.0rem;
  --r-carte: 6px;
  --r-bouton: 6px;
  --r-image: 4px;
  --largeur: 1360px;
  --ico-trait: 2.5;
  --header-h: 72px;
  --c-fond: #f5f8f8;
  --c-fond-2: #e2eded;
  --c-surface: #fefefe;
  --c-texte: #1d3535;
  --c-texte-2: #446f6f;
  --c-primaire: #0bdada;
  --c-sur-primaire: #142929;
  --c-secondaire: #4ab5b5;
  --c-sur-secondaire: #142929;
  --c-primaire-texte: #067474;
  --c-secondaire-texte: #2f7474;
  --c-doux: #daf1f1;
  --c-sur-doux: #142929;
  --c-bord: #cddfdf;
  --c-voile: #0c1818;
  --c-sur-voile: #ffffff;
  --c-ombre: #0f2424;
  --o-carte: none;
  --o-survol: 0 18px 40px -12px color-mix(in srgb, #0f2424 28%, transparent);
  --carte-fond: #daf1f1;
  --carte-encre: #142929;
  --carte-encre-2: #142929;
  --carte-lien: #142929;
  --carte-bord: 0 solid transparent;
  --btn-fond: #0bdada;
  --btn-texte: #142929;
  --btn-bord: 2px solid #0bdada;
  --btn-ombre: none;
  --btn-deco: none;
  --lien-couleur: #067474;
  --lien-deco: none;
  --lien-epaisseur: 1px;
  --lien-fond: #daf1f1;
  --lien-fond-encre: #142929;
}
html.dark, html[data-theme="dark"], html[data-mode="dark"], html.theme-dark, body.dark, [data-theme="dark"] [data-bh-home] {
  --c-fond: #101b1b;
  --c-fond-2: #182828;
  --c-surface: #1e3131;
  --c-texte: #e5f0f1;
  --c-texte-2: #adcdcd;
  --c-primaire: #47f5f5;
  --c-sur-primaire: #142929;
  --c-secondaire: #6ec4c4;
  --c-sur-secondaire: #142929;
  --c-primaire-texte: #6ef7f7;
  --c-secondaire-texte: #9ad5d6;
  --c-doux: #1c4a4a;
  --c-sur-doux: #f5f9f9;
  --c-bord: #385757;
  --c-voile: #0c1818;
  --c-sur-voile: #ffffff;
  --c-ombre: #030707;
  --o-carte: none;
  --o-survol: 0 18px 40px -12px color-mix(in srgb, #030707 28%, transparent);
  --carte-fond: #1c4a4a;
  --carte-encre: #f5f9f9;
  --carte-encre-2: #f5f9f9;
  --carte-lien: #f5f9f9;
  --carte-bord: 0 solid transparent;
  --btn-fond: #47f5f5;
  --btn-texte: #142929;
  --btn-bord: 2px solid #47f5f5;
  --btn-ombre: none;
  --btn-deco: none;
  --lien-couleur: #6ef7f7;
  --lien-deco: none;
  --lien-epaisseur: 1px;
  --lien-fond: #1c4a4a;
  --lien-fond-encre: #f5f9f9;
}

body { font-family: var(--f-texte); }
h1, h2, h3, h4 { font-family: var(--f-titre); }

/* usine:correctifs-home début */
/* Correctifs des blocs de home, recopiés sur chaque site à chaque build
   (astro_site.rafraichit_correctifs_home). bh-7e38- devient le préfixe du site. */

/* Un .acc employé comme carte (quiz : pas de <summary>) garde la marge intérieure d'une carte :
   le texte et les boutons touchaient le bord (journal-auto-moto, bloc 13, Cedia 26/09). */
.bh-7e38-acc:not(details) { padding-inline: var(--e5); }
.bh-7e38-acc:not(details) > .bh-7e38-acc-corps { padding-inline: 0; }

/* FAQ : une seule flèche, sur la ligne de la question (le marqueur natif doublait le chevron). */
.bh-7e38-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--e3); }
.bh-7e38-acc > summary::-webkit-details-marker { display: none; }
.bh-7e38-acc > summary svg { flex: none; transition: transform .2s; }
.bh-7e38-acc[open] > summary svg { transform: rotate(180deg); }
.bh-7e38-acc > summary:not(:has(svg))::after { content: "+"; flex: none; font-weight: 400; }
.bh-7e38-acc[open] > summary:not(:has(svg))::after { content: "\2212"; }

/* FAQ centrée : la liste restait calée à gauche sur 60rem, un tiers du bloc vide à droite
   (journal-auto-moto, bloc 17, Cedia 26/09). */
.bh-7e38-b-faq .bh-7e38-entete { margin-inline: auto; text-align: center; }
.bh-7e38-b-faq .bh-7e38-accordeon { margin-inline: auto; }
/* Même FAQ dans une home « centrée » : le collage deux colonnes (.d-colle) gardait le titre dans
   la colonne de gauche et la règle [data-alignement=centre] .d-colle .entete le recalait à gauche,
   plus spécifique que la ligne ci-dessus (469 px à gauche, 791 px de vide à droite : revue-assurance.com,
   home:faq-centree, 26/09). La FAQ repasse en une colonne, en-tête centré. */
[data-alignement="centre"] .bh-7e38-b-faq.bh-7e38-d-colle > .bh-7e38-int { display: block; }
[data-alignement="centre"] .bh-7e38-b-faq.bh-7e38-d-colle > .bh-7e38-int > .bh-7e38-entete {
  margin-inline: auto; text-align: center; position: static;
}

/* Lien « Voir la rubrique » posé À CÔTÉ du corps de carte (builder) : le corps porte la marge
   intérieure, pas la carte ; le lien restait collé au bord (revue-auto-moto 26/09, home:cartes-marge-interne). */
.bh-7e38-carte:has(> .bh-7e38-c-corps) > .bh-7e38-c-suite { margin: 0 var(--e5) var(--e5); }

/* Parcours / frise : une vignette à côté du texte, jamais une photo pleine largeur par étape
   (journal-entreprise, bloc parcours : trois photos de 1298 x 812 px à la suite, Cedia 26/09). */
.bh-7e38-timeline .bh-7e38-c-media img, .bh-7e38-b-parcours .bh-7e38-c-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 320px; object-fit: cover; }
@media (min-width: 900px) {
  .bh-7e38-timeline .bh-7e38-carte:has(> .bh-7e38-c-media) { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: var(--e5); align-items: start; }
  .bh-7e38-timeline .bh-7e38-carte:has(> .bh-7e38-c-media) > .bh-7e38-c-media { margin: 0; }
}

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

/* Pastilles de sujets : une vraie pastille cliquable, en nuage centré, jamais une barre grise plate
   (Cedia 26/09, journal-entreprise). */
.bh-7e38-b-sujets .bh-7e38-mur { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--e3); }
.bh-7e38-b-sujets .bh-7e38-mur-col { display: contents; }
.bh-7e38-b-sujets .bh-7e38-carte.bh-7e38-cs-pastille { background: transparent; border: 0; box-shadow: none; padding: 0; width: auto; }
.bh-7e38-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-7e38-c-pastille::after { content: "\2192"; font-weight: 400; }
.bh-7e38-c-pastille:hover, .bh-7e38-c-pastille:focus-visible { background: var(--c-primaire); color: var(--c-sur-primaire); transform: translateY(-1px); }

/* Hero : les boutons ne touchent jamais le texte voisin (Cedia 26/09, journal-entreprise : collés au 3e titre). */
.bh-7e38-hero-actions { margin-top: var(--e5); }

/* Cartes de chiffres lisibles (Cedia 27/09, revue-assurance.com : libellé en 12 px ; gestion-finance-entreprise :
   « 7 184 dirigeants suivis » en 13 px). Chiffre ≥ 28 px en bureau, ≥ 24 px en mobile ; libellé ≥ 14 px.
   Contrôle socle:stats-lisibles (verif_socle). */
.bh-7e38-c-chiffre { font-size: max(28px, var(--t6, 2rem)); }
.bh-7e38-c-label { font-size: max(14px, 1em) !important; }  /* !important : un .home .c-label de builder le ramenait à 12 px */
@media (max-width: 767px) { .bh-7e38-c-chiffre { font-size: max(24px, var(--t6, 1.75rem)); } }

/* Hero centré : l'image passe DERRIÈRE le texte, pleine largeur et pleine hauteur, jamais en bande sous le texte
   (Cedia 27/09, revue-assurance.com : « texte centré suivi d'une bande photo »). Voile sombre pour le contraste,
   texte clair. Contrôle socle:hero-plein-media (média à côté ou derrière le texte, bas du hero ≥ 90 % de la fenêtre). */
.bh-7e38-hero.bh-7e38-hero-centre { position: relative; isolation: isolate; grid-template-rows: minmax(0, 1fr) !important; }
.bh-7e38-hero.bh-7e38-hero-centre > .bh-7e38-hero-bas { position: absolute !important; inset: 0; margin: 0 !important; z-index: -1; }
.bh-7e38-hero.bh-7e38-hero-centre > .bh-7e38-hero-bas img { width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover; border-radius: 0 !important; }
.bh-7e38-hero.bh-7e38-hero-centre > .bh-7e38-hero-bas::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 24, .66), rgba(8, 12, 24, .52)); }
.bh-7e38-home .bh-7e38-hero-centre :is(.bh-7e38-hero-kicker, .bh-7e38-hero-h1, .bh-7e38-hero-accroche) { color: #fff !important; }
.bh-7e38-home .bh-7e38-hero-centre .bh-7e38-bouton-2 { color: #fff !important; border-color: #fff !important; background: transparent !important; }

/* Hero bandeau : même règle que le hero centré, l'image couvre TOUT le hero et le texte est posé dessus, centré
   verticalement (Cedia 27/09 : photo en bande au-dessus d'un aplat de couleur = « pas d'image dans le hero »). */
.bh-7e38-hero.bh-7e38-hero-bandeau { position: relative; isolation: isolate; justify-content: center !important; }
.bh-7e38-hero.bh-7e38-hero-bandeau > .bh-7e38-hero-haut { position: absolute !important; inset: 0; margin: 0 !important; z-index: -1;
  height: auto !important; }
.bh-7e38-hero.bh-7e38-hero-bandeau > .bh-7e38-hero-haut img { width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover; border-radius: 0 !important; }
.bh-7e38-hero.bh-7e38-hero-bandeau > .bh-7e38-hero-haut::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 24, .50), rgba(8, 12, 24, .72)); }
.bh-7e38-hero.bh-7e38-hero-bandeau > .bh-7e38-hero-bande { background: transparent !important; margin-block: auto; }
.bh-7e38-home .bh-7e38-hero-bandeau .bh-7e38-hero-bande :is(p, h1, li, span, time, a:not(.bh-7e38-bouton)) { color: #fff !important; }
.bh-7e38-home .bh-7e38-hero-bandeau .bh-7e38-bouton-2 { color: #fff !important; border-color: #fff !important; background: transparent !important; }

/* Bloc logos en disposition « collée » : le titre restait seul à gauche au-dessus d'une rangée de logos centrée,
   entre deux blocs aux titres centrés (Cedia 27/09, actu-pme.com bloc 02). Un bloc de logos centre son titre.
   Contrôle socle:titres-blocs-centres. */
.bh-7e38-b-logos.bh-7e38-d-colle > .bh-7e38-int { display: flex !important; flex-direction: column; align-items: center; }
.bh-7e38-b-logos.bh-7e38-d-colle .bh-7e38-entete { position: static !important; text-align: center; max-width: 48rem; margin-inline: auto; }
.bh-7e38-b-logos.bh-7e38-d-colle .bh-7e38-entete > * { text-align: center !important; margin-inline: auto; }

/* Mode sombre (27/09, Intermediate-Astro) : un thème qui colore p et li en dur (p, li { color: #4e4b66 }) laissait ce gris
   sur les fonds sombres des blocs ; en sombre, le texte suit la couleur du bloc. */
:is(html.dark, [data-theme="dark"]) .bh-7e38-home :is(p, li) { color: inherit; }
/* usine:correctifs-home fin */
