/* da.css — les jetons du site, alignés sur la signature du thème (Astroship) :
   blanc et slate, un seul accent indigo, boutons noirs à 4 px, cartes à 8 px.
   Light mode forcé : aucun bloc sombre automatique, aucune image de fond, aucun dégradé. */
:root {
  --f-titre: 'Bricolage Grotesque Variable', 'Bricolage Grotesque', system-ui, sans-serif;
  --f-texte: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-graisse-titre: 700;
  --f-casse-kicker: uppercase;
  --tm: 0.833rem;
  --t1: 1rem;
  --t2: 1.2rem;
  --t3: 1.44rem;
  --t4: 1.728rem;
  --t5: 2.074rem;
  --t6: 2.488rem;
  --t7: 2.986rem;
  --t-hero: clamp(2.4rem, 1.4rem + 3vw, 4.5rem);
  --e1: 0.25rem;
  --e2: 0.5rem;
  --e3: 0.75rem;
  --e4: 1rem;
  --e5: 1.5rem;
  --e6: 2rem;
  --e7: 3rem;
  --e8: 4rem;
  --r-carte: 8px;
  --r-bouton: 4px;
  --r-image: 8px;
  --largeur: 41rem;
  --ico-trait: 2;
  --header-h: 84px;
  --bandeau-h: 40px;
  --c-fond: #ffffff;
  --c-fond-2: #f8fafc;
  --c-surface: #ffffff;
  --c-texte: #0f172a;
  --c-texte-2: #475569;
  --c-primaire: #4f46e5;
  --c-sur-primaire: #ffffff;
  --c-secondaire: #4338ca;
  --c-sur-secondaire: #ffffff;
  --c-primaire-texte: #4338ca;
  --c-secondaire-texte: #4338ca;
  --c-doux: #eef2ff;
  --c-sur-doux: #312e81;
  --c-bord: #e2e8f0;
  --c-voile: #0b1120;
  --c-sur-voile: #ffffff;
  --c-ombre: #0f172a;
  --o-carte: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --o-survol: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --carte-fond: #ffffff;
  --carte-encre: #0f172a;
  --carte-encre-2: #475569;
  --carte-lien: #4338ca;
  --carte-bord: 1px solid #e2e8f0;
  --btn-fond: #000000;
  --btn-texte: #ffffff;
  --btn-bord: 2px solid transparent;
  --btn-ombre: none;
  --btn-deco: none;
  --lien-couleur: #4338ca;
  --lien-deco: underline;
  --lien-epaisseur: 1px;
  --lien-fond: transparent;
  --lien-fond-encre: #ffffff;
}

body {
  font-family: var(--f-texte);
  color: var(--c-texte);
  background: var(--c-fond);
}

h1, h2, h3, h4 { font-family: var(--f-titre); }
h1 em, h2 em, .sit-geant { font-style: normal; }

/* ── le hero prend l'écran entier sous le header et le bandeau, jamais moins ── */
.sit-hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - var(--bandeau-h));
}

/* ── en-tête de page interne : pleine largeur, texte en colonne lisible sans cadre ── */
[data-usine-page="interne"] { width: 100%; }
.sit-cpl { max-width: min(60ch, 34em); }

/* ── composants du thème, en classes réutilisables ── */
.sit-carte {
  background: #ffffff;
  border: 1px solid var(--c-bord);
  border-radius: var(--r-carte);
  box-shadow: var(--o-carte);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.sit-carte:hover, a:hover > .sit-carte {
  transform: translateY(-4px);
  box-shadow: var(--o-survol);
}
.sit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--c-doux);
  color: var(--c-sur-doux);
}
.sit-pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
}
.sit-lien { color: var(--c-secondaire); text-decoration: underline; text-underline-offset: 3px; }
.sit-lien:hover { color: var(--c-primaire); }

/* les visuels d'articles et de blocs : jamais plus haut que la place qu'ils prennent */
.sit-visuel { display: block; width: 100%; height: auto; border-radius: var(--r-image); object-fit: cover; }

/* chiffres clés lisibles (28 px au moins) */
.sit-chiffre { font-size: 2.25rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

/* le curseur des blocs interactifs du kit reste dans la famille d'accent */
[data-quiz] { --kv-nb: 6; }

@media (prefers-reduced-motion: reduce) {
  .sit-carte, a.sit-carte:hover, a:hover > .sit-carte { transition: none; transform: none; }
}


/* usine:etapes-photo debut
   Les trois étapes « comment ça marche » portent chacune leur photo : le kit
   estompait les étapes inactives (opacity .5 sur [data-etape]), ce qui rendait
   les photos et les textes gris. On garde le balisage du kit, on rend les trois
   étapes lisibles en entier. Sélecteur plus spécifique que celui du kit : il
   gagne quel que soit l'ordre des feuilles. */
[data-etapes] [data-etape] { opacity: 1; }
[data-etapes] [data-etape].kv-actif { transform: none; }
/* usine:etapes-photo fin */

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

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

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