/* Home Finance et Entreprise : blocs bh-fe-* posés sur les composants du thème Bigspring. */
.bh-fe-home { --fe-r: .5rem; }
.bh-fe-home h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.bh-fe-home h3 { font-size: 1.2rem; }
.bh-fe-titre { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.bh-fe-titre p { margin-top: .6rem; }

/* 1. Hero mosaïque, pleine hauteur sous header + bandeau */
.bh-fe-hero { display: flex; align-items: center; min-height: calc(100svh - var(--header-total, 116px)); padding: 2rem 0; background: #fff; }
.bh-fe-hero > .container { width: 100%; }
.bh-fe-hero-rangee { row-gap: 2rem; }
.bh-fe-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.2; margin: 1rem 0 1.1rem; }
.bh-fe-accroche { font-size: 1.15rem; line-height: 1.6; max-width: 34em; }
.bh-fe-boutons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0; }
.bh-fe-hero-rubriques { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.bh-fe-mosaique { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; max-height: calc(100svh - var(--header-total, 116px) - 4rem); aspect-ratio: 1.2 / 1; margin-left: auto; }
.bh-fe-mosaique img { width: 100%; height: 100%; object-fit: cover; border-radius: .75rem; box-shadow: 0 12px 24px -6px #2d43791a; }
.bh-fe-m1 { grid-row: 1 / span 2; }
@media (max-width: 991px) {
  .bh-fe-mosaique { aspect-ratio: 16 / 10; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; max-height: 42svh; width: 100%; }
  .bh-fe-m1 { grid-row: auto; }
  .bh-fe-m3 { display: none; }
}
@media (max-width: 575px) {
  .bh-fe-hero { padding: 1.25rem 0; }
  .bh-fe-hero h1 { font-size: 2rem; }
  .bh-fe-accroche { font-size: 1.05rem; }
  .bh-fe-boutons { margin: 1.25rem 0; }
  .bh-fe-boutons .btn { padding: 14px 22px; }
  .bh-fe-mosaique { max-height: 30svh; }
  .bh-fe-hero-rubriques .fe-tag { min-height: 36px; }
}

/* 2. À la une : une grande carte puis trois petites */
.bh-fe-une-grille { display: grid; gap: 1.75rem; }
.bh-fe-une-petites { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-fe-une-grande .fe-carte--une img { max-height: 420px; }
@media (max-width: 991px) { .bh-fe-une-petites { grid-template-columns: 1fr; } .bh-fe-une-petites .fe-carte { flex-direction: row; } .bh-fe-une-petites .fe-carte img { width: 38%; aspect-ratio: auto; border-radius: .5rem 0 0 .5rem; } .bh-fe-une-petites .fe-carte p:not(.fe-carte-meta) { display: none; } }
@media (max-width: 575px) { .bh-fe-une-petites .fe-carte { flex-direction: column; } .bh-fe-une-petites .fe-carte img { width: 100%; aspect-ratio: 16 / 10; border-radius: .5rem .5rem 0 0; } }

/* Grilles de 5 (rubriques, équipe) sans carte seule sur sa rangée */
.bh-fe-cartes5 { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bh-fe-cartes5 > * { grid-column: span 2; }
.bh-fe-cartes5 > :nth-child(4) { grid-column: 2 / span 2; }
@media (min-width: 1100px) { .bh-fe-cartes5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .bh-fe-cartes5 > *, .bh-fe-cartes5 > :nth-child(4) { grid-column: auto; } }
@media (max-width: 767px) { .bh-fe-cartes5 { grid-template-columns: 1fr; } .bh-fe-cartes5 > *, .bh-fe-cartes5 > :nth-child(4) { grid-column: auto; } }

/* 3. Rubriques : feature-card du thème */
.bh-fe-rub { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem 1.4rem; background: #fff; border-radius: .5rem; }
.bh-fe-rub:hover { box-shadow: 0 12px 24px -6px #2d43791a; }
.bh-fe-rub h3 a::after { content: ""; position: absolute; inset: 0; }
.bh-fe-rub h3 a:hover { color: var(--fe-primaire); }
.bh-fe-nb { margin-top: auto; font-weight: 700; color: var(--fe-primaire); }

/* Service alterné : image et texte */
.bh-fe-media img { width: 100%; max-height: 460px; object-fit: cover; border-radius: .75rem; box-shadow: 0 12px 24px -6px #2d43791a; }
@media (max-width: 767px) { .bh-fe-media { margin-bottom: 1.75rem; } .bh-fe-media img { max-height: 280px; } }
.bh-fe-coches { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.bh-fe-coches li { display: flex; gap: .8rem; align-items: flex-start; }
.bh-fe-coches svg { color: var(--fe-icone); flex: none; margin-top: 2px; }
.bh-fe-coches strong { display: block; color: var(--fe-titre); }

/* Widgets (calcul, checklist, bascule) */
.bh-fe-widget { margin-top: 1.5rem; padding: 1.5rem; background: #fff; border-radius: .5rem; box-shadow: 0 12px 24px -6px #2d43791a; }
.bh-fe-champs { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh-fe-champs label { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; font-size: .95rem; color: var(--fe-titre); }
.bh-fe-champs input { width: 100%; min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--fe-bord); border-radius: 30px; font: inherit; font-weight: 400; color: var(--fe-titre); background: #fff; }
.bh-fe-champs input:focus { outline: none; border-color: var(--fe-primaire); box-shadow: 0 0 0 3px #0b7a7826; }
.bh-fe-sorties { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
.bh-fe-sorties p { margin: 0; padding: 1rem 1.2rem; border-radius: .5rem; background: var(--fe-light); display: flex; flex-direction: column; gap: .3rem; }
.bh-fe-sorties span { font-size: .9rem; }
.bh-fe-sorties output, .bh-fe-score output { font-size: 1.75rem; font-weight: 700; color: var(--fe-primaire); font-variant-numeric: tabular-nums; }
.bh-fe-note { margin-top: 1rem; font-size: .9rem; }
.bh-fe-note a { color: var(--fe-primaire); font-weight: 700; }
@media (max-width: 575px) { .bh-fe-champs, .bh-fe-sorties { grid-template-columns: 1fr; } }
.bh-fe-liste ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh-fe-liste label { display: flex; align-items: center; gap: .65rem; min-height: 56px; padding: .6rem .9rem; border: 1px solid var(--fe-bord); border-radius: .5rem; cursor: pointer; }
.bh-fe-liste input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-fe-liste label svg { color: #c4cccb; flex: none; }
.bh-fe-liste input:checked ~ svg { color: var(--fe-icone); }
.bh-fe-liste label:has(input:checked) { border-color: var(--fe-icone); background: var(--fe-light); }
.bh-fe-liste label:has(input:focus-visible) { outline: 2px solid var(--fe-primaire); outline-offset: 2px; }
.bh-fe-score { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; font-weight: 700; color: var(--fe-titre); }
.bh-fe-score span { font-weight: 400; color: var(--fe-texte); }
@media (max-width: 767px) { .bh-fe-liste ul { grid-template-columns: 1fr; } }
.bh-fe-carte-claire { padding: 2rem; }
.bh-fe-interrupteur { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin: 0 auto 1.5rem; background: #fff; border-radius: 30px; box-shadow: 0 12px 24px -6px #2d43791a; }
.bh-fe-bascule [data-bascule] { text-align: center; }
.bh-fe-interrupteur button { min-height: 44px; padding: .6rem 1.4rem; border: 0; border-radius: 30px; background: transparent; font: inherit; font-weight: 700; color: var(--fe-titre); cursor: pointer; }
.bh-fe-interrupteur button[aria-pressed="true"], .bh-fe-interrupteur button.kv-actif { background: var(--fe-primaire); color: #fff; }
.bh-fe-duo { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
.bh-fe-offre { padding: 1.5rem; background: #fff; border: 2px solid transparent; border-radius: .5rem; transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease; opacity: .8; }
.bh-fe-offre.kv-en-avant { border-color: var(--fe-icone); box-shadow: 0 12px 24px -6px #2d43791a; opacity: 1; }
.bh-fe-offre h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.bh-fe-offre h3 svg { color: var(--fe-icone); }
.bh-fe-offre ul { padding-left: 1.1rem; margin: 0; display: grid; gap: .45rem; }
.bh-fe-selon { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 700; color: var(--fe-titre); }
.bh-fe-selon svg { color: var(--fe-icone); flex: none; }
@media (max-width: 767px) { .bh-fe-duo { grid-template-columns: 1fr; } .bh-fe-carte-claire { padding: 1.25rem; } }

/* 8. Étapes photo (workflow du thème) */
.bh-fe-etapes-grille { display: grid; gap: 2rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
.bh-fe-etapes-grille > img { width: 100%; max-height: 440px; object-fit: cover; border-radius: .75rem; box-shadow: 0 12px 24px -6px #2d43791a; }
.bh-fe-etapes-grille ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.bh-fe-etapes-grille li { display: flex; gap: 1rem; padding: 1rem 1.2rem; border-radius: .5rem; border: 1px solid var(--fe-bord); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.bh-fe-etapes-grille li.kv-actif, .bh-fe-etapes-grille li[aria-current] { background: var(--fe-light); border-color: var(--fe-icone); }
.bh-fe-etapes-grille h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.bh-fe-etapes-grille p { margin: 0; }
.bh-fe-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fe-primaire); color: #fff; font-weight: 700; }
@media (max-width: 991px) { .bh-fe-etapes-grille { grid-template-columns: 1fr; } .bh-fe-etapes-grille > img { max-height: 300px; } }

/* 9. Erreurs à éviter */
.bh-fe-erreurs-grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-fe-erreur { padding: 1.4rem; background: #fff; border-radius: .5rem; box-shadow: 0 12px 24px -6px #2d43791a; display: grid; gap: .9rem; align-content: start; }
.bh-fe-erreur p { display: flex; gap: .6rem; margin: 0; }
.bh-fe-erreur svg { flex: none; margin-top: 2px; }
.bh-fe-faux { color: var(--fe-titre); font-weight: 700; }
.bh-fe-faux svg { color: #8a6464; }
.bh-fe-vrai svg { color: var(--fe-icone); }
@media (max-width: 991px) { .bh-fe-erreurs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .bh-fe-erreurs-grille { grid-template-columns: 1fr; } }

/* 10. Onglets */
.bh-fe-onglets [role="tablist"] { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.bh-fe-onglets [role="tablist"] button { min-height: 44px; padding: .55rem 1.3rem; border: 1px solid var(--fe-bord); border-radius: 30px; background: #fff; font: inherit; font-weight: 700; color: var(--fe-titre); cursor: pointer; }
.bh-fe-onglets [role="tablist"] button.kv-actif, .bh-fe-onglets [role="tablist"] button[aria-selected="true"] { background: var(--fe-primaire); border-color: var(--fe-primaire); color: #fff; }
.bh-fe-panneau { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 860px; margin: 0 auto; padding: 1.75rem; background: var(--fe-light); border-radius: .5rem; }
.bh-fe-panneau[hidden] { display: none; }
.bh-fe-panneau h3 { margin-bottom: .5rem; }
@media (max-width: 575px) { .bh-fe-panneau { flex-direction: column; padding: 1.25rem; } }

/* 11. Lecture rapide : 4 cartes, 4 en ligne ou 2 x 2 */
.bh-fe-lecture-grille { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bh-fe-lecture-grille .fe-carte p:not(.fe-carte-meta) { display: none; }
@media (max-width: 1099px) { .bh-fe-lecture-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .bh-fe-lecture-grille { grid-template-columns: 1fr; } }

/* 12. Sources */
.bh-fe-sources-grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bh-fe-source { padding: 1.5rem; border: 1px solid var(--fe-bord); border-radius: .5rem; display: grid; gap: .7rem; align-content: start; }
@media (max-width: 1099px) { .bh-fe-sources-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .bh-fe-sources-grille { grid-template-columns: 1fr; } }
.bh-fe-logo-cite { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin: 2rem auto 0; padding: 1rem 1.5rem; max-width: 760px; border-radius: .5rem; background: var(--fe-light); text-align: center; }
.bh-fe-logo-cite img { height: 56px; width: auto; }
.bh-fe-logo-cite:hover span { color: var(--fe-primaire); }

/* 13. Équipe */
.bh-fe-auteur { position: relative; text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: .5rem; box-shadow: 0 12px 24px -6px #2d43791a; }
.bh-fe-auteur img { width: 112px; height: 112px; object-fit: cover; object-position: center 25%; border-radius: 50%; margin: 0 auto 1rem; }
.bh-fe-auteur h3 a::after { content: ""; position: absolute; inset: 0; }
.bh-fe-auteur h3 a:hover { color: var(--fe-primaire); }
.bh-fe-role { font-size: .95rem; margin: .3rem 0; }

/* 14. FAQ */
.bh-fe-faq-liste { max-width: 860px; margin: 0 auto; display: grid; gap: .75rem; }
.bh-fe-question { border: 1px solid var(--fe-bord); border-radius: .5rem; background: #fff; }
.bh-fe-question summary { display: flex; gap: .7rem; align-items: center; min-height: 56px; padding: .9rem 1.2rem; font-weight: 700; color: var(--fe-titre); cursor: pointer; list-style: none; }
.bh-fe-question summary::-webkit-details-marker { display: none; }
.bh-fe-question summary svg { color: var(--fe-icone); flex: none; }
.bh-fe-question p { padding: 0 1.2rem 1.2rem 3.1rem; margin: 0; }
@media (max-width: 575px) { .bh-fe-question p { padding-left: 1.2rem; } }

/* 15. Cta */
.bh-fe-cta-carte { padding-left: 1.5rem; padding-right: 1.5rem; }
.bh-fe-lottie { width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .bh-fe-offre, .bh-fe-etapes-grille li { transition: none; }
}
@media (max-width: 575px) {
  .bh-fe-hero-rubriques { display: none; }
  .bh-fe-hero h1 { font-size: 1.85rem; margin: .75rem 0 .8rem; }
  .bh-fe-kicker { margin: 0; }
  .bh-fe-boutons { gap: .75rem; }
  .bh-fe-mosaique { max-height: 26svh; }
  .bh-fe-equipe .bh-fe-cartes5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-fe-equipe .bh-fe-cartes5 > :last-child { grid-column: 1 / -1; }
}

/* Largeur de lecture : aucune boîte de texte long sous 300 px (colonne_etroite) */
.bh-fe-rubriques .bh-fe-cartes5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bh-fe-rubriques .bh-fe-cartes5 > * { grid-column: span 2; }
.bh-fe-rubriques .bh-fe-cartes5 > :nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 1099px) {
  .bh-fe-rubriques .bh-fe-cartes5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-fe-rubriques .bh-fe-cartes5 > *, .bh-fe-rubriques .bh-fe-cartes5 > :nth-child(4) { grid-column: auto; }
  .bh-fe-rubriques .bh-fe-cartes5 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .bh-fe-rubriques .bh-fe-cartes5 { grid-template-columns: 1fr; }
  .bh-fe-rubriques .bh-fe-cartes5 > :last-child { grid-column: auto; }
}
.bh-fe-erreurs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh-fe-sources-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) {
  .bh-fe-erreurs-grille, .bh-fe-sources-grille { grid-template-columns: 1fr; }
  .bh-fe-erreur { padding: 1.1rem; }
  .bh-fe-erreur p { flex-direction: column; gap: .35rem; }
  .bh-fe-carte-claire { padding: .75rem; }
  .bh-fe-offre { padding: 1rem; }
  .bh-fe-offre ul { padding-left: 0; list-style-position: inside; }
  .bh-fe-selon { flex-direction: column; text-align: center; }
}
@media (max-width: 767px) { .bh-fe-carte-claire { padding: .5rem; } .bh-fe-offre { padding: .8rem; } }
@media (max-width: 575px) {
  .bh-fe-etapes-grille li { flex-direction: column; gap: .6rem; padding: 1rem; }
  .bh-fe-question summary { padding: .9rem .8rem; }
  .bh-fe-question summary svg { display: none; }
  .bh-fe-question p { padding: 0 .8rem 1rem; }
}
