/* Accueil « projet » de Blog Auto Moto : complète home.css de l'usine. */
.bh-b61a-home { --largeur: 1100px; --f-titre: var(--font-primary, Roboto, system-ui, sans-serif); --f-texte: var(--font-primary, Roboto, system-ui, sans-serif); --c-fond: #fafbfc; --c-fond-2: #f3f4f6; --c-texte: #4e4b66; --r-carte: .25rem; --r-bouton: .25rem; --ico-trait: 1.75; }
.bh-b61a-home h1, .bh-b61a-home h2, .bh-b61a-home h3 { color: #1a1a1a; font-family: var(--f-titre); }
.bh-b61a-home h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; margin-bottom: .75rem; }
.bh-b61a-home h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: .375rem; }
.bh-b61a-home p, .bh-b61a-home li { font-size: 1rem; line-height: 1.6; }
.bh-b61a-home ul, .bh-b61a-home ol { list-style: none; margin: 0; padding: 0; }
.bh-b61a-home .bh-b61a-bloc { padding-block: clamp(3rem, 7vw, 5rem); }

.bam-entete { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.bam-entete.bam-gauche { text-align: left; margin-inline: 0; }
.bam-topper { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c11519; margin-bottom: .5rem !important; }
.bam-centre { text-align: center; margin-top: 2rem !important; }
.bam-etroit { max-width: 860px; }
.bam-lien { color: #c11519 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 44px; line-height: 44px; }
.bam-ico { width: 28px; height: 28px; color: #c11519; flex: none; stroke-width: 1.75; }
.bam-ico-s { width: 20px; height: 20px; flex: none; vertical-align: -4px; margin-right: .5rem; }

/* boutons */
.bh-b61a-home .cs-button-solid, .bam-btn-contour { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.75rem; border-radius: .25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; text-decoration: none; }
.bh-b61a-home .cs-button-solid { background: #cf171a; color: #fff !important; border: 1px solid #cf171a; }
.bh-b61a-home .cs-button-solid:hover { background: #001f3f; border-color: #001f3f; }
.bam-btn-contour { border: 1px solid #1a1a1a; color: #1a1a1a !important; background: #fff; }
.bam-btn-contour:hover { background: #001f3f; border-color: #001f3f; color: #fff !important; }
.bam-boutons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* hero */
.bam-hero { position: relative; overflow: hidden; justify-content: center !important; align-items: stretch; min-height: calc(100svh - var(--header-h, 80px)); }
.bam-hero-img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; }
.bam-hero-voile { position: absolute; inset: 0; background: rgba(0, 31, 63, .78); }
.bam-hero-int { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.bam-hero h1 { color: #fff; font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.08; margin: 0 0 1.25rem; }
.bam-hero .bam-topper { color: #fff; }
.bam-hero-texte { color: #fff; font-size: 1.125rem !important; max-width: 40rem; margin-inline: auto !important; }
.bam-hero .bam-btn-contour { background: transparent; border-color: #fff; color: #fff !important; }
.bam-hero-img { opacity: 1 !important; z-index: 0; }
@media (min-width: 900px) {
  .bam-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; padding: 0 !important; background: #fafbfc; }
  .bam-hero-img { position: relative; inset: auto; grid-column: 2; grid-row: 1; width: 100%; height: 100% !important; min-height: 100%; object-fit: cover; }
  .bam-hero-voile { display: none; }
  .bam-hero-int { grid-column: 1; grid-row: 1; align-self: center; justify-self: end; width: 100%; max-width: 600px; margin: 0; padding: 3rem 3rem 3rem 2rem; text-align: left; }
  .bam-hero h1 { color: #1a1a1a; }
  .bam-hero .bam-topper { color: #c11519; }
  .bam-hero-texte { color: #4e4b66; margin-inline: 0 !important; }
  .bam-hero .bam-boutons { justify-content: flex-start; }
  .bam-hero .bam-btn-contour { background: transparent; border-color: #001f3f; color: #001f3f !important; border-radius: 0; }
  .bam-hero .cs-button-solid { border-radius: 0; }
}

/* grilles */
.bam-grille { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .bam-g2 { grid-template-columns: repeat(2, 1fr); } .bam-g3 { grid-template-columns: repeat(3, 1fr); } .bam-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bam-g4 { grid-template-columns: repeat(4, 1fr); } }
.bam-deux { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .bam-deux { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.bam-photo { width: 100%; height: 100%; max-height: 480px; object-fit: cover; border-radius: .25rem; aspect-ratio: 16/10; }

.bam-tuile { background: #fff; border: 1px solid #e6e7eb; border-radius: .25rem; padding: 1.5rem; border-top: 4px solid transparent; transition: border-color .2s; position: relative; }
.bam-tuile:hover { border-top-color: #cf171a; }
.bam-tuile h3 a::after { content: ""; position: absolute; inset: 0; }
.bam-tuile .bam-ico { margin-bottom: .75rem; }
.bam-tuile-ligne { display: flex; gap: 1rem; align-items: flex-start; }

.bam-liste-ico { display: grid; gap: 1.25rem; }
.bam-liste-ico li { display: flex; gap: 1rem; align-items: flex-start; }

/* calculateur */
.bam-rose { background: #f0dbdc !important; }
.bam-calcul { background: #fff; border-radius: .25rem; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.bam-calcul label { display: grid; gap: .375rem; font-weight: 700; color: #1a1a1a; }
.bam-calcul input { min-height: 48px; padding: 0 .875rem; border: 1px solid #b4b2c7; border-radius: .25rem; font: inherit; font-size: 1.125rem; }
.bam-resultat { font-size: 1.125rem !important; color: #1a1a1a; }
.bam-resultat output { font-size: 2rem; font-weight: 700; color: #c11519; }

/* étapes */
.bam-etapes { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .bam-etapes { grid-template-columns: 1fr 1.2fr; } .bam-etapes-img { position: sticky; top: 120px; } }
.bam-etapes-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: .25rem; }
.bam-etapes ol { counter-reset: pas; display: grid; gap: 1rem; }
.bam-etapes li { counter-increment: pas; position: relative; padding-left: 3.25rem; }
.bam-etapes li::before { content: counter(pas); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: .25rem; background: #cf171a; color: #fff; display: grid; place-items: center; font-weight: 700; }

/* onglets */
.bam-onglets-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.bam-onglets-liste button { min-height: 48px; padding: 0 1.25rem; border: 1px solid #1a1a1a; border-radius: .25rem; background: #fff; color: #1a1a1a; font: inherit; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.bam-onglets-liste button[aria-selected="true"] { background: #cf171a; border-color: #cf171a; color: #fff; }
.bam-panneau { background: #fff; border-radius: .25rem; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 2rem; }
.bam-panneau[hidden] { display: none; }
@media (min-width: 800px) { .bam-panneau { grid-template-columns: 1fr 1fr; } }
.bam-coches li { margin-bottom: .5rem; }
.bam-coches .bam-ico-s { color: #c11519; }
.bam-liens li a { display: block; min-height: 44px; padding: .625rem 0; color: #c11519 !important; font-weight: 700; text-decoration: underline; border-bottom: 1px solid #eee; }

/* magazine */
.bam-mag { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .bam-mag { grid-template-columns: 1.2fr 1fr; } }
.bam-mag-liste { display: grid; gap: 1rem; }
.bam-mini { display: grid !important; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding: .75rem; }
.bam-mini img { width: 120px; height: 75px; object-fit: cover; border-radius: .25rem; aspect-ratio: auto !important; }
.bam-mini .bam-carte-titre { font-size: 1rem; }
.bam-une img { max-height: 340px; }

/* erreurs */
.bam-erreur { background: #fff; border: 1px solid #e6e7eb; border-radius: .25rem; padding: 1.25rem 1.5rem; }
.bam-non { color: #1a1a1a; margin-bottom: .5rem !important; }
.bam-non .bam-ico-s { color: #c11519; }
.bam-oui .bam-ico-s { color: #1b7a3a; }

/* quiz */
.bam-marine { background: #001f3f !important; color: #fff !important; }
.bam-marine h2, .bam-marine p, .bam-marine .bam-topper { color: #fff !important; }
.bam-quiz { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: .25rem; padding: clamp(1.25rem, 3vw, 2rem); text-align: center; }
.bam-question-texte { font-size: 1.375rem !important; font-weight: 700; margin-bottom: 1rem !important; }
.bam-quiz button { min-height: 48px; padding: 0 1.25rem; margin: .25rem; border-radius: .25rem; border: 1px solid #fff; background: transparent; color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.bam-quiz button:hover { background: #cf171a; border-color: #cf171a; }
.bam-quiz-score { font-weight: 700; }

/* tableau */
.bam-tableau { overflow-x: auto; background: #fff; border-radius: .25rem; }
.bam-tableau table { width: 100%; border-collapse: collapse; min-width: 340px; }
.bam-tableau th, .bam-tableau td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid #e6e7eb; vertical-align: top; font-size: .9375rem; }
.bam-tableau thead th { background: #001f3f; color: #fff; text-transform: uppercase; font-size: .8125rem; letter-spacing: .04em; }
.bam-tableau tbody th { color: #1a1a1a; }

/* fonds photo */
.bam-photo-fond { position: relative; overflow: hidden; }
.bam-fond-img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; }
.bam-fond-voile { position: absolute; inset: 0; background: rgba(10, 14, 20, .82); }
.bam-voile-marine { background: rgba(0, 31, 63, .8); }
.bam-dessus { position: relative; z-index: 1; }
.bam-photo-fond .bam-entete h2, .bam-photo-fond .bam-topper, .bam-cta h2, .bam-cta p { color: #fff !important; }
.bam-carte-pad { padding: 1.5rem; }
.bam-cta { text-align: center; }
.bam-cta h2 { margin-bottom: 1rem; }
.bam-cta p { max-width: 36rem; margin: 0 auto 1.5rem !important; }

/* stats */
.bam-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem !important; text-align: center; }
.bam-chiffre { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #c11519; line-height: 1.1; }
.bam-libelle { display: block; font-size: 1rem; }

/* auteurs */
.bam-auteur { text-align: center; position: relative; }
.bam-auteur img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; }
.bam-auteur h3 a::after { content: ""; position: absolute; inset: 0; }

/* faq */
.bam-faq .cs-faq-item { background: #fff; border: 1px solid #e6e7eb; border-radius: .25rem; margin-bottom: .75rem; }
.bam-faq summary { cursor: pointer; padding: 1rem 1.25rem; min-height: 44px; font-weight: 700; color: #1a1a1a; }
.bam-faq details p { padding: 0 1.25rem 1.25rem; }

/* Boutons sur fond sombre : fond opaque pour un contraste mesurable */
@media (max-width: 899px) { .bam-hero .bam-btn-contour { background: #001f3f; border-color: #fff; color: #fff !important; } }
.bam-quiz button { background: #001f3f; color: #fff; }
.bam-quiz button:hover { background: #cf171a; }
/* Icone de tete du comparatif */
.bam-ico-tete { width: 40px; height: 40px; color: #cf171a; margin: 0 auto .75rem; display: block; }
/* Tuiles icone + texte : empilées en mobile pour garder une colonne large */
@media (max-width: 699px) { .bam-tuile-ligne { flex-direction: column; gap: .5rem; } .bam-tuile-ligne > div { width: 100%; } }

[data-usine-bloc="onglets_saisons"] .bam-coches li, [data-usine-bloc="onglets_saisons"] .bam-guides a { display: flex; align-items: flex-start; gap: .5rem; }
[data-usine-bloc="onglets_saisons"] .bam-ico-s { margin: .15rem 0 0; vertical-align: 0; }
[data-usine-bloc="onglets_saisons"] .bam-guides { list-style: none; margin: 0; padding: 0; }
[data-usine-bloc="onglets_saisons"] .bam-guides li { margin-bottom: .5rem; }
[data-usine-bloc="onglets_saisons"] .bam-guides a { min-height: 44px; color: #001f3f; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
[data-usine-bloc="onglets_saisons"] .bam-guides .bam-ico-s { color: #c11519; }
[data-usine-bloc="onglets_saisons"] .bam-panneau + .bam-panneau { margin-top: 1rem; }
.bam-js [data-usine-bloc="onglets_saisons"] .bam-panneau + .bam-panneau { margin-top: 0; }
[data-usine-bloc="erreurs_plutot"] .bam-non, [data-usine-bloc="erreurs_plutot"] .bam-oui { display: flex; align-items: flex-start; gap: .75rem; }
[data-usine-bloc="erreurs_plutot"] .bam-ico-s { width: 28px; height: 28px; stroke-width: 1.75; margin: 0; vertical-align: 0; }
[data-usine-bloc="erreurs_plutot"] .bam-non .bam-ico-s { color: #c11519; }
[data-usine-bloc="erreurs_plutot"] .bam-oui .bam-ico-s { color: #001f3f; }
[data-usine-bloc="quiz_idees_recues"] .bam-topper.cs-topper { color: #c11519 !important; background: #fff; display: inline-block; padding: .25rem .625rem; }
[data-usine-bloc="quiz_idees_recues"] .bam-entete { margin-bottom: 1rem; }
[data-usine-bloc="quiz_idees_recues"] .bam-entete > p:last-child { margin-bottom: 0 !important; }
[data-usine-bloc="saviez_vous"] .bam-fond-img { inset: 0; height: 100% !important; max-height: none !important; object-fit: cover; }
[data-usine-bloc="saviez_vous"] .bam-fond-voile { background: rgba(0, 31, 63, .88); }
[data-usine-bloc="saviez_vous"] .bam-sv-ico { display: block; width: 28px; height: 28px; color: #c11519; stroke-width: 1.75; margin-bottom: .75rem; }
[data-usine-bloc="faq"] summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
[data-usine-bloc="faq"] summary::-webkit-details-marker { display: none; }
[data-usine-bloc="faq"] summary::marker { content: ""; }
[data-usine-bloc="faq"] .bam-faq-ico { flex: none; width: 24px; height: 24px; color: #c11519; transition: transform .2s ease; }
[data-usine-bloc="faq"] details[open] .bam-faq-ico { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { [data-usine-bloc="faq"] .bam-faq-ico { transition: none; } }
@media (max-width: 47.99rem) {
  [data-usine-bloc="faq"] summary { flex-direction: column; align-items: stretch; gap: .5rem; padding: .875rem 1rem; }
  [data-usine-bloc="faq"] summary > span { width: 100%; }
  [data-usine-bloc="faq"] .bam-faq-ico { order: -1; align-self: flex-end; }
}
[data-usine-bloc="onglets_saisons"] .bam-panneau { align-items: start; align-content: start; }
[data-usine-bloc="onglets_saisons"] .bam-panneau > div > :last-child, [data-usine-bloc="onglets_saisons"] .bam-panneau li:last-child { margin-bottom: 0; }
[data-usine-bloc="onglets_saisons"] .bam-guides-rubrique { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid #eee; font-size: .9375rem; }
[data-usine-bloc="onglets_saisons"] .bam-guides-rubrique a { display: inline-flex; align-items: center; min-height: 44px; color: #4a4a4a; text-decoration: underline; text-underline-offset: 3px; }
[data-usine-bloc="onglets_saisons"] .bam-guides li { margin-bottom: 0; }
[data-usine-bloc="onglets_saisons"] .bam-guides a { align-items: center; }
/* hero plein écran : hauteur réelle de la tête collante (bandeau 37px + menu) */
.bh-b61a-home .bh-b61a-bloc.bh-b61a-hero[data-usine-bloc="hero"] { --tete-h: 105px; height: auto; min-height: calc(100svh - var(--tete-h)); }
@media (min-width: 64rem) { .bh-b61a-home .bh-b61a-bloc.bh-b61a-hero[data-usine-bloc="hero"] { --tete-h: 123px; } }
