/* Blog Auto Moto : surcharges globales, chargées en dernier. */
:root {
  --bodyFont: var(--font-primary); --headerFont: var(--font-primary);
  --primary: #cf171a; --primaryLight: #c11519; --secondary: #001f3f;
  --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc;
  --header-h: 88px;
}
html { color-scheme: light; }
body { background: #fafbfc; color: #4e4b66; font-family: var(--font-primary); overflow-x: clip; }
h1, h2, h3, h4 { color: #1a1a1a; font-family: var(--font-primary); }

/* bandeau du mois : en haut, pleine largeur, fermable */
.bam-tete-collante { position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; }
.bam-tete-collante #cs-navigation { position: relative !important; }
.bam-bandeau { position: relative; top: 0; left: 0; width: 100%; margin: 0; z-index: 1001; background: #001f3f; color: #fff; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .5rem 3.5rem .5rem 1rem; box-sizing: border-box; text-align: center; }
.bam-bandeau[hidden] { display: none; }
.bam-bandeau-texte { margin: 0; font-size: .9375rem; line-height: 1.4; color: #fff; }
.bam-bandeau-fermer { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* en-tête */
#cs-navigation { position: sticky !important; top: 0 !important; background: #fff !important; box-shadow: 0 1px 0 #e6e7eb; z-index: 1000; }
#cs-navigation .cs-container { max-width: 1280px; gap: 32px; }
#cs-navigation .cs-logo { margin-left: 0; flex: none; height: auto; }
#cs-navigation .cs-logo img { height: 40px; width: auto; display: block; }
#cs-navigation .cs-li-link, #cs-navigation .cs-button-solid { white-space: nowrap; }
@media (min-width: 64rem) {
  #cs-navigation .cs-logo img { height: 56px; }
  #cs-navigation .cs-ul { gap: 32px; }
  #cs-navigation .cs-nav { margin-left: 0; }
}
@media (max-width: 63.99rem) { #cs-navigation .cs-toggle { width: 48px; height: 48px; } }

/* boutons */
.cs-button-solid { border-radius: .25rem !important; text-transform: uppercase; font-weight: 700; background-color: #cf171a; color: #fff !important; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1.5rem; text-decoration: none; letter-spacing: .03em; }
.cs-button-solid:before { border-radius: .25rem; background: #001f3f !important; }
.cs-button-solid:hover { background-color: #001f3f; }

/* pied de page */
#footer { background: #001f3f !important; }
#footer img[src$="logo.svg"] { filter: brightness(0) invert(1); }
#footer, #footer a, #footer p, #footer li, #footer h2, #footer h3 { color: #fff; }
#footer a { text-decoration-color: rgba(255,255,255,.5); }

/* pages internes */
.bam-page { width: min(100% - 2rem, 1100px); min-width: min(960px, 100% - 2rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0; box-sizing: border-box; }
.bam-texte > * { max-width: 70ch; }
.bam-texte h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1.25rem; }
.bam-texte h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin: 2.25rem 0 .75rem; }
.bam-texte p, .bam-texte li { font-size: 1.0625rem; line-height: 1.7; }
.bam-texte a:not(.cs-button-solid) { color: #c11519; text-underline-offset: 3px; }
.bam-texte ul { padding-left: 1.25rem; }
.bam-page-tete { max-width: 70ch; margin-bottom: 2.5rem; }
.bam-page-tete .cs-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.bam-page-tete .cs-text { margin-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.7; max-width: 70ch; }
.cs-topper { color: #c11519; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; font-size: .875rem; display: block; margin-bottom: .5rem; }

/* étiquettes */
.bam-puces { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.bam-tag { display: inline-block; text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .05em; background: #f0dbdc; color: #c11519 !important; border-radius: .25rem; padding: .25rem .5rem; text-decoration: none; margin-bottom: .5rem; }
.bam-puces .bam-tag { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .875rem; margin: 0; }

/* cartes */
.bam-cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .bam-cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bam-cartes { grid-template-columns: repeat(3, 1fr); } }
.bam-carte { background: #fff; border-radius: .25rem; border: 1px solid #e6e7eb; border-top: 4px solid transparent; overflow: hidden; position: relative; transition: border-color .2s; display: flex; flex-direction: column; }
.bam-carte:hover { border-top-color: #cf171a; }
.bam-carte > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; height: auto; }
.bam-carte-corps { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.bam-carte-titre { font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.bam-carte-titre a { color: #1a1a1a !important; text-decoration: none; }
.bam-carte-titre a::after { content: ""; position: absolute; inset: 0; }
.bam-carte-texte { margin: 0; font-size: .9375rem; line-height: 1.6; color: #4e4b66; }
.bam-carte time { font-size: .875rem; color: #334756; }

/* article */
.bam-tete { width: 100%; }
.bam-fil { font-size: .875rem; color: #334756; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; }
.bam-fil a { color: #c11519; display: inline-flex; align-items: center; min-height: 44px; }
.bam-tete h1 { width: 100%; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.bam-chapo { font-size: 1.1875rem; line-height: 1.6; color: #334756; max-width: 70ch; }

/* auteur */
.bam-portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 1.25rem; }
.bam-equipe { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .bam-equipe { grid-template-columns: repeat(3, 1fr); } }
.bam-equipe .bam-carte { padding: 1.5rem; }
.bam-equipe img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 1rem; }
.bam-section-titre { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3rem 0 1.5rem; }

/* Avatars auteurs : illustration SVG 160x160 en cercle sur fond rose */
.bam-portrait, .bam-equipe img, .bam-auteur img { width: 160px; height: 160px; border-radius: 50%; background: #f0dbdc; object-fit: cover; }
.bam-nom, .bam-nom a { font-family: var(--font-primary); font-weight: 900; }

/* Cible tactile du logo : 44 px minimum */
#cs-navigation .cs-logo { min-height: 44px !important; }
/* Formulaire de contact */
.bam-bandeau-lien { color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* builder-2 : pages internes */
.bam-rub-intro { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
.bam-rub-intro .bam-page-tete { margin-bottom: 0; }
.bam-rub-intro .bam-page-tete .cs-text, .bam-page-tete p:not(.cs-topper) { font-size: 1.0625rem; line-height: 1.7; }
.bam-rub-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .25rem; }
@media (min-width: 64rem) { .bam-rub-intro { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.bam-aut-grille { max-width: none; display: grid; gap: 2rem; }
@media (min-width: 64rem) { .bam-aut-grille { grid-template-columns: 320px 1fr; align-items: start; } }
.bam-aut-liens { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.bam-aut-liens a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid #001f3f; border-radius: .25rem; color: #001f3f; font-weight: 700; text-decoration: none; }
.bam-aut-spe-titre { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
.bam-aut-spe { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.bam-aut-role { font-weight: 700; color: #4e4b66; margin: 0; }
.bam-aut-ico { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.bam-aut-spe li { display: inline-flex; align-items: center; gap: .375rem; background: #f0dbdc; color: #1a1a1a; padding: .375rem .75rem; border-radius: .25rem; font-weight: 700; }
.bam-mentions { max-width: 760px; margin: 0 auto; }
.bam-mentions > * { max-width: none; }
.bam-mentions-topper { color: #c11519; }
.bam-mentions h2 { border-top: 1px solid #e3e3e3; padding-top: 1.5rem; margin-top: 2rem; }
.bam-page:has(.bam-aut-grille) .ur-lien { border-radius: .25rem !important; }
.bam-texte > .bam-mentions { max-width: 760px; width: 100%; }
.bam-mentions p, .bam-mentions li { max-width: none; }
