/* da.css — la déclinaison jade du thème DevBlog, une seule famille d'accent.
 *
 * Le thème d'origine (devblog44) pose le cyan #0dccf2 : il est pris par un
 * autre site du parc, on le décline donc en jade #0b7a5e en gardant tout le
 * reste de sa signature : Aldrich en majuscules pour les titres, Roboto
 * Condensed pour le texte, cartes arrondies, ombres douces, boutons pleins à
 * radius 0.5rem. Aucune deuxième palette : tout ce qui est accent sur le site
 * sort de --c-primaire ou de ses déclinaisons.
 */
:root {
  --f-titre: 'Aldrich', 'Roboto Condensed', system-ui, sans-serif;
  --f-texte: 'Roboto Condensed', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-graisse-titre: 700;
  --f-casse-kicker: uppercase;
  --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.2rem, 5.2vw, 4rem);
  --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: 0.75rem;
  --r-bouton: 0.5rem;
  --r-image: 0.75rem;
  --largeur: 1200px;
  --ico-trait: 2;
  --header-h: 64px;
  --bandeau-h: 36px;
  --c-fond: #f4f8f6;
  --c-fond-2: #e8f0ed;
  --c-surface: #ffffff;
  --c-texte: #0f1f1c;
  --c-texte-2: #4a635c;
  --c-primaire: #0b7a5e;
  --c-sur-primaire: #ffffff;
  --c-secondaire: #12b083;
  --c-sur-secondaire: #06251c;
  --c-primaire-texte: #0b7a5e;
  --c-secondaire-texte: #075c46;
  --c-doux: #d9f0e8;
  --c-sur-doux: #075c46;
  --c-bord: #d7e5e0;
  /* Un aplat sombre reste sombre dans les deux modes : jamais --c-texte ni
   * --c-fond, qui s'inversent. */
  --c-voile: #0c1f19;
  --c-sur-voile: #ffffff;
  --c-ombre: #0b2a22;
  --o-carte: 0 10px 30px -12px color-mix(in srgb, #0b2a22 22%, transparent);
  --o-survol: 0 20px 44px -16px color-mix(in srgb, #0b2a22 32%, transparent);
  --carte-fond: #ffffff;
  --carte-encre: #0f1f1c;
  --carte-encre-2: #4a635c;
  --carte-lien: #0b7a5e;
  --carte-bord: 1px solid #d7e5e0;
  --btn-fond: #0b7a5e;
  --btn-texte: #ffffff;
  --btn-bord: 1px solid transparent;
  --btn-deco: none;
  --lien-couleur: #0b7a5e;
  --lien-deco: underline;
  --lien-epaisseur: 2px;
  --lien-fond: transparent;
  --lien-fond-encre: #0b7a5e;
}

/* Le site est en clair. Ce bloc n'existe que pour rester lisible si un mode
   sombre est un jour forcé : les aplats sombres y restent sombres. */
html[data-theme='dark'] {
  --c-fond: #101a17;
  --c-fond-2: #16241f;
  --c-surface: #17231f;
  --c-texte: #e9f2ee;
  --c-texte-2: #b3c7bf;
  --c-primaire: #3ec79a;
  --c-primaire-texte: #7fe0bd;
  --c-doux: #12332a;
  --c-sur-doux: #e9f2ee;
  --c-bord: #2c3f38;
  --c-voile: #0c1f19;
  --c-sur-voile: #ffffff;
  --carte-fond: #17231f;
  --carte-encre: #e9f2ee;
  --carte-encre-2: #b3c7bf;
  --carte-lien: #7fe0bd;
  --carte-bord: 1px solid #2c3f38;
  --btn-fond: #3ec79a;
  --btn-texte: #06251c;
  --lien-couleur: #7fe0bd;
  --lien-fond-encre: #7fe0bd;
}

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


/* La hauteur reelle du header collant, bandeau compris : le hero occupe l'ecran sous lui.
   Le script du Layout la remesure au chargement ; ces valeurs sont le repli sans JS. */
:root { --header-h: 109px; --bandeau-h: 44px; }
@media (min-width: 640px) { :root { --header-h: 105px; --bandeau-h: 40px; } }

/* usine:correctifs-home début */
/* Correctifs des blocs de home, recopiés sur chaque site à chaque build
   (astro_site.rafraichit_correctifs_home). bh-849f- 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-849f-acc:not(details) { padding-inline: var(--e5); }
.bh-849f-acc:not(details) > .bh-849f-acc-corps { padding-inline: 0; }

/* FAQ : une seule flèche, sur la ligne de la question (le marqueur natif doublait le chevron). */
.bh-849f-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--e3); }
.bh-849f-acc > summary::-webkit-details-marker { display: none; }
.bh-849f-acc > summary svg { flex: none; transition: transform .2s; }
.bh-849f-acc[open] > summary svg { transform: rotate(180deg); }
.bh-849f-acc > summary:not(:has(svg))::after { content: "+"; flex: none; font-weight: 400; }
.bh-849f-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-849f-b-faq .bh-849f-entete { margin-inline: auto; text-align: center; }
.bh-849f-b-faq .bh-849f-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-849f-b-faq.bh-849f-d-colle > .bh-849f-int { display: block; }
[data-alignement="centre"] .bh-849f-b-faq.bh-849f-d-colle > .bh-849f-int > .bh-849f-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-849f-carte:has(> .bh-849f-c-corps) > .bh-849f-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-849f-timeline .bh-849f-c-media img, .bh-849f-b-parcours .bh-849f-c-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 320px; object-fit: cover; }
@media (min-width: 900px) {
  .bh-849f-timeline .bh-849f-carte:has(> .bh-849f-c-media) { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: var(--e5); align-items: start; }
  .bh-849f-timeline .bh-849f-carte:has(> .bh-849f-c-media) > .bh-849f-c-media { margin: 0; }
}

/* Vrai ou faux : une affirmation à la fois (kit_vivant), cinq habillages (Cedia 26/09). */
.bh-849f-quiz { max-width: 46rem; margin-inline: auto; display: grid; gap: var(--e4); }
.bh-849f-quiz-q { padding: var(--e5); }
.bh-849f-quiz-affirmation { font-family: var(--f-titre, inherit); font-size: var(--t3, 1.35rem); font-weight: 700; line-height: 1.25; margin: 0; }
.bh-849f-quiz-verdict { font-weight: 800; margin: var(--e3) 0 .25rem; }
.bh-849f-quiz-expl { margin-top: var(--e3); }
.bh-849f-quiz-score:empty { display: none; }
.bh-849f-quiz-bandes .bh-849f-quiz-q { border-left: 6px solid var(--c-primaire, currentColor); border-radius: 0; box-shadow: none; }
.bh-849f-quiz-plein .bh-849f-quiz-q { background: var(--c-primaire); color: var(--c-sur-primaire, var(--c-fond)); text-align: center; }
.bh-849f-quiz-plein .kv-choix { justify-content: center; }
.bh-849f-quiz-plein .kv-bouton { color: inherit; border-color: currentColor; }
.bh-849f-quiz-split { max-width: none; }
@media (min-width: 900px) {
  .bh-849f-quiz-split .bh-849f-quiz-q { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--e6); align-items: start; }
  .bh-849f-quiz-split .bh-849f-quiz-q > * { grid-column: 2; }
  .bh-849f-quiz-split .bh-849f-quiz-q > .bh-849f-quiz-affirmation { grid-column: 1; grid-row: 1 / span 3; font-size: var(--t4, 1.6rem); }
}
.bh-849f-quiz-compact { max-width: 38rem; }
.bh-849f-quiz-compact .bh-849f-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-849f-b-sujets .bh-849f-mur { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--e3); }
.bh-849f-b-sujets .bh-849f-mur-col { display: contents; }
.bh-849f-b-sujets .bh-849f-carte.bh-849f-cs-pastille { background: transparent; border: 0; box-shadow: none; padding: 0; width: auto; }
.bh-849f-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-849f-c-pastille::after { content: "\2192"; font-weight: 400; }
.bh-849f-c-pastille:hover, .bh-849f-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-849f-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-849f-c-chiffre { font-size: max(28px, var(--t6, 2rem)); }
.bh-849f-c-label { font-size: max(14px, 1em) !important; }  /* !important : un .home .c-label de builder le ramenait à 12 px */
@media (max-width: 767px) { .bh-849f-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-849f-hero.bh-849f-hero-centre { position: relative; isolation: isolate; grid-template-rows: minmax(0, 1fr) !important; }
.bh-849f-hero.bh-849f-hero-centre > .bh-849f-hero-bas { position: absolute !important; inset: 0; margin: 0 !important; z-index: -1; }
.bh-849f-hero.bh-849f-hero-centre > .bh-849f-hero-bas img { width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover; border-radius: 0 !important; }
.bh-849f-hero.bh-849f-hero-centre > .bh-849f-hero-bas::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 24, .66), rgba(8, 12, 24, .52)); }
.bh-849f-home .bh-849f-hero-centre :is(.bh-849f-hero-kicker, .bh-849f-hero-h1, .bh-849f-hero-accroche) { color: #fff !important; }
.bh-849f-home .bh-849f-hero-centre .bh-849f-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-849f-hero.bh-849f-hero-bandeau { position: relative; isolation: isolate; justify-content: center !important; }
.bh-849f-hero.bh-849f-hero-bandeau > .bh-849f-hero-haut { position: absolute !important; inset: 0; margin: 0 !important; z-index: -1;
  height: auto !important; }
.bh-849f-hero.bh-849f-hero-bandeau > .bh-849f-hero-haut img { width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover; border-radius: 0 !important; }
.bh-849f-hero.bh-849f-hero-bandeau > .bh-849f-hero-haut::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 24, .50), rgba(8, 12, 24, .72)); }
.bh-849f-hero.bh-849f-hero-bandeau > .bh-849f-hero-bande { background: transparent !important; margin-block: auto; }
.bh-849f-home .bh-849f-hero-bandeau .bh-849f-hero-bande :is(p, h1, li, span, time, a:not(.bh-849f-bouton)) { color: #fff !important; }
.bh-849f-home .bh-849f-hero-bandeau .bh-849f-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-849f-b-logos.bh-849f-d-colle > .bh-849f-int { display: flex !important; flex-direction: column; align-items: center; }
.bh-849f-b-logos.bh-849f-d-colle .bh-849f-entete { position: static !important; text-align: center; max-width: 48rem; margin-inline: auto; }
.bh-849f-b-logos.bh-849f-d-colle .bh-849f-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-849f-home :is(p, li) { color: inherit; }
/* usine:correctifs-home fin */
