/* Variables du site alignées sur le thème Bigspring (theme.json) : Lato, sarcelle #0aa8a7, fonds #fff / #edf6f5. */
:root {
  color-scheme: light;
  --f-titre: var(--font-primary, 'Lato'), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-texte: var(--font-primary, 'Lato'), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-graisse-titre: 700;
  --f-casse-kicker: uppercase;
  --tm: .8rem; --t1: 1rem; --t2: 1.2rem; --t3: 1.44rem; --t4: 1.728rem; --t5: 2.074rem; --t6: 2.488rem; --t7: 2.986rem;
  --t-hero: clamp(2.2rem, 4.5vw, 3.2rem);
  --e1: .3rem; --e2: .6rem; --e3: .9rem; --e4: 1.2rem; --e5: 1.8rem; --e6: 2.4rem; --e7: 3.6rem; --e8: 4.8rem;
  --r-carte: 12px; --r-bouton: 30px; --r-image: 8px;
  --largeur: 1100px;
  --ico-trait: 2;
  --header-h: 150px;
  --c-fond: #ffffff;
  --c-fond-2: #edf6f5;
  --c-surface: #ffffff;
  --c-surface-2: #edf6f5;
  --c-texte: #555555;
  --c-texte-2: #555555;
  --c-titre: #222222;
  --c-primaire: #0aa8a7;
  --c-primaire-fonce: #077d7c;
  --c-sur-primaire: #ffffff;
  --c-secondaire: #077d7c;
  --c-sur-secondaire: #ffffff;
  --c-primaire-texte: #077d7c;
  --c-secondaire-texte: #077d7c;
  --c-doux: #edf6f5;
  --c-sur-doux: #0a4f4e;
  --c-bord: #e9e9e9;
  --c-voile: #0a2e2e;
  --c-sur-voile: #ffffff;
  --c-alerte: #fff5e6;
  --c-ombre: #0a2e2e;
  --o-carte: none;
  --o-survol: 0 12px 24px -6px rgba(45, 67, 121, .1);
  --carte-fond: #ffffff;
  --carte-encre: #555555;
  --carte-encre-2: #555555;
  --carte-lien: #077d7c;
  --carte-bord: 1px solid #e9e9e9;
  --btn-fond: #077d7c;
  --btn-texte: #ffffff;
  --btn-bord: 0;
  --btn-ombre: none;
  --btn-deco: none;
  --lien-couleur: #077d7c;
  --lien-deco: underline;
  --lien-epaisseur: 1px;
  --lien-fond: transparent;
  --lien-fond-encre: #077d7c;
}
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--f-texte); line-height: 1.7; }
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--c-titre); }

/* Boutons pilule du thème : fond sarcelle foncé pour un texte blanc lisible (5:1). */
.btn { min-height: 44px; }
.btn-primary, .btn-primary::after { background-color: var(--c-primaire-fonce) !important; }
.btn-outline-primary { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-titre); }
.btn-outline-primary svg { position: relative; z-index: 1; color: var(--c-primaire-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-primaire); outline-offset: 3px; border-radius: 4px;
}

/* ---- Header centré collant : bandeau du mois, logo, menu ---- */
.header.bh-e6e3-header { position: sticky; top: 0; z-index: 50; padding: 0 !important; background: #fff; border-bottom: 1px solid var(--c-bord); }
.bh-e6e3-bandeau { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; margin: 0; padding: .45rem 3rem .45rem 1rem; background: var(--c-voile); color: #fff; font-size: .9rem; line-height: 1.4; position: relative; text-align: center; }
.bh-e6e3-bandeau[hidden] { display: none; }
.bh-e6e3-bandeau strong { color: #7fe0df; font-weight: 700; }
.bh-e6e3-bandeau [data-mois-court] { display: none; }
.bh-e6e3-bandeau [data-fermer] { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: transparent; border: 0; cursor: pointer; }
@media (max-width: 640px) { .bh-e6e3-bandeau { font-size: 13px; line-height: 1.35; padding: .5rem 3rem .5rem 1rem; } .bh-e6e3-bandeau [data-mois-texte] { display: inline !important; white-space: normal; } }
.bh-e6e3-nav { width: min(1100px, calc(100% - 40px)); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 16px 0 6px; position: relative; }
@media (min-width: 768px) { .bh-e6e3-header .bh-e6e3-nav > .bh-e6e3-menu { width: 100%; justify-content: center !important; margin-inline: auto; } }
.bh-e6e3-nav [data-usine="logo"] { display: inline-flex; align-items: center; }
.bh-e6e3-nav [data-usine="logo"] img { height: 48px; width: auto; }
.bh-e6e3-menu { display: flex; align-items: center; justify-content: center; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.bh-e6e3-menu > li { position: relative; }
.bh-e6e3-menu a, .bh-e6e3-menu button { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .5rem; font-weight: 700; color: var(--c-titre); white-space: nowrap; background: none; border: 0; cursor: pointer; font-size: 1rem; }
.bh-e6e3-menu a:hover, .bh-e6e3-menu button:hover, .bh-e6e3-menu [aria-current="page"] { color: var(--c-primaire-fonce); }
.bh-e6e3-menu button[aria-expanded="true"] svg { transform: rotate(180deg); }
.bh-e6e3-sous { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 270px; margin: 0; padding: .5rem; list-style: none; background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); box-shadow: 0 12px 24px -6px rgba(45, 67, 121, .15); z-index: 60; }
.bh-e6e3-sous[hidden] { display: none; }
.bh-e6e3-sous a { width: 100%; padding: 0 .75rem; border-radius: 8px; }
.bh-e6e3-sous a:hover { background: var(--c-fond-2); }
.bh-e6e3-burger { display: none; }
@media (max-width: 767px) {
  .bh-e6e3-nav { flex-direction: row; justify-content: space-between; padding: 10px 0; }
  .bh-e6e3-nav [data-usine="logo"] img { height: 36px; }
  .bh-e6e3-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--c-bord); border-radius: 30px; color: var(--c-titre); cursor: pointer; }
  .bh-e6e3-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; background: #fff; border-top: 1px solid var(--c-bord); }
  .bh-e6e3-nav[data-ouvert] .bh-e6e3-menu { display: flex; }
  .bh-e6e3-menu a, .bh-e6e3-menu button { width: 100%; justify-content: space-between; }
  .bh-e6e3-sous { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
}

/* ---- Footer : bande de marque puis deux colonnes ---- */
.bh-e6e3-footer { background: var(--c-fond-2); padding: 70px 0 0; }
.bh-e6e3-footer .bh-e6e3-cadre { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.bh-e6e3-bande { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 32px; background: #fff; border-radius: var(--r-carte); border: 1px solid var(--c-bord); }
.bh-e6e3-bande img { height: 48px; width: auto; }
.bh-e6e3-bande p { margin: 0; max-width: 60ch; }
.bh-e6e3-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 48px 0; }
.bh-e6e3-footer-cols h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.bh-e6e3-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
.bh-e6e3-footer-cols a { display: inline-flex; min-height: 44px; align-items: center; color: var(--c-texte); }
.bh-e6e3-footer-cols a:hover { color: var(--c-primaire-fonce); }
.bh-e6e3-legal { border-top: 1px solid var(--c-bord); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: .9rem; }
.bh-e6e3-legal a { color: var(--c-texte); text-decoration: underline; }
@media (max-width: 767px) { .bh-e6e3-bande { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } .bh-e6e3-footer-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---- Article : colonne du kit à côté (registre sidebar) ; un seul encadré auteur ---- */
.ka-grille > .ka-cote .ka-cote-in > .ks-author { display: none !important; } /* un seul encadré auteur : section.ka-auteur, en bas de l'article */
.ka-entete { border-left: 0 !important; }
.ka-note-vide { margin: 0; color: var(--c-texte); font-weight: 600; }

/* ---- Pages internes et listes ---- */
.bh-e6e3-cadre { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.bh-e6e3-cadre > *, .bh-e6e3-grille > * { min-width: 0; }
.bh-e6e3-entete { background: var(--c-fond-2); padding: 56px 0; text-align: center; }
.bh-e6e3-entete h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: .4rem 0 .8rem; }
.bh-e6e3-entete p { max-width: 65ch; margin-inline: auto; }
.bh-e6e3-kicker { font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; color: var(--c-primaire-fonce); margin: 0 0 .5rem; }
.bh-e6e3-pastille { display: inline-flex; align-items: center; min-height: 28px; padding: 0 .9rem; border-radius: 30px; background: var(--c-fond-2); color: var(--c-primaire-fonce); font-size: .85rem; font-weight: 700; }
a.bh-e6e3-pastille { min-height: 44px; }
.bh-e6e3-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bh-e6e3-grille-une > :first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: center; }
@media (max-width: 1023px) { .bh-e6e3-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bh-e6e3-grille-une > :first-child { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .bh-e6e3-grille { grid-template-columns: minmax(0, 1fr); } }
.post img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-image); max-height: 480px; }
.post .bh-e6e3-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .9rem; margin-top: .5rem; }
.post h2 a, .post h3 a { color: var(--c-titre); }
.post h2 a:hover, .post h3 a:hover { color: var(--c-primaire-fonce); }
.bh-e6e3-prose { max-width: 65ch; margin-inline: auto; }
.bh-e6e3-cartes-auteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.bh-e6e3-carte { background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); padding: 30px; }
.bh-e6e3-portrait { border-radius: 50%; object-fit: cover; }

/* Grille équilibrée des cartes articles (aucune carte seule sur sa rangée) */
.bh-e6e3-grille-eq { display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 1fr); }
.bh-e6e3-grille-eq > * { min-width: 0; }
@media (min-width: 640px) and (max-width: 1023px) {
  .bh-e6e3-grille-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-e6e3-grille-eq > .bh-e6e3-g2-plein { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bh-e6e3-grille-eq { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bh-e6e3-grille-eq > * { grid-column: span 2; }
  .bh-e6e3-grille-eq > .bh-e6e3-g3-demi { grid-column: span 3; }
  .bh-e6e3-grille-eq > .bh-e6e3-g3-plein { grid-column: 1 / -1; }
}
.bh-e6e3-g3-plein .post, .bh-e6e3-g2-plein .post { height: 100%; }
@media (min-width: 768px) {
  .bh-e6e3-une .post, .bh-e6e3-grille-eq > .bh-e6e3-g3-plein .post { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: center; }
}
@media (min-width: 640px) and (max-width: 1023px) { .bh-e6e3-grille-eq > .bh-e6e3-g3-plein:not(.bh-e6e3-g2-plein) .post { display: block; } }
.bh-e6e3-une { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--c-bord); }
.bh-e6e3-une img { max-height: 420px; }

/* Article : colonne centrée, en-tête pleine largeur de l’article */
.bh-e6e3-cadre-article { width: min(880px, calc(100% - 40px)); }
.bh-e6e3-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; margin-bottom: 1rem; }
.bh-e6e3-ariane a { color: var(--c-texte); display: inline-flex; min-height: 44px; align-items: center; }
.bh-e6e3-article h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 1rem 0; }
.bh-e6e3-chapo { font-size: 1.15rem; color: var(--c-titre); }
.ka-sommaire, [data-ka="sommaire"] { top: calc(var(--header-h) + 16px); }
.header .bh-e6e3-bandeau { background: var(--c-voile) !important; color: #fff !important; }
/* la place de la croix est réservée : aucun mot ne passe dessous (kit-vivant remettait padding: .55rem 1rem) */
.header .bh-e6e3-bandeau[data-bandeau] { padding-inline: 16px 48px; }
.header .bh-e6e3-bandeau[data-bandeau] [data-fermer] { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; margin: 0; }
/* menu centré sous le logo, dans le même cadre que la home */
@media (min-width: 768px) { .header .bh-e6e3-nav.flex-col { flex-direction: column; } .header .bh-e6e3-nav > .bh-e6e3-menu { justify-content: center !important; margin-inline: auto !important; } }
.btn-primary { text-transform: none !important; }
.bh-e6e3-footer { border-top: 1px solid var(--c-bord); }

/* Largeur de lecture : aucune boîte de texte sous 300 px ; pages internes à 75 caractères au plus */
.bh-e6e3-prose { max-width: min(60ch, 34em); }
@media (max-width: 640px) {
  .bh-e6e3-carte { padding: 16px; }
  [data-usine-page] .bh-e6e3-carte[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .ka-auteur { grid-template-columns: minmax(0, 1fr) !important; padding: 12px !important; }
}
[data-usine-page] .bh-e6e3-entete p, [data-usine-page] .bh-e6e3-carte p, [data-usine-page] .bh-e6e3-prose li { max-width: min(60ch, 34em); margin-inline: auto; }
/* Lato est étroite : 30em ≈ 68 caractères par ligne */
[data-usine-page] .bh-e6e3-prose, [data-usine-page] .bh-e6e3-prose p, [data-usine-page] .bh-e6e3-prose li, [data-usine-page] .bh-e6e3-entete p, [data-usine-page] .bh-e6e3-carte p { max-width: 30em; }
[data-usine-page] .bh-e6e3-prose { margin-inline: auto; }
@media (max-width: 640px) { .ks-author-content { grid-template-columns: minmax(0, 1fr) !important; } }

/* Avant-footer commun (chaîne usine) : cadre 1100 px, fond clair du thème, bouton pilule */
.uf-block[data-avant-footer] { width: min(1100px, calc(100% - 40px)) !important; max-width: none !important; margin: 70px auto 0 !important; background: var(--c-fond-2, #edf6f5) !important; color: var(--c-texte) !important; border-radius: 16px; }
.uf-block[data-avant-footer] h2 { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; line-height: 1.25 !important; color: var(--c-titre) !important; }
.uf-block[data-avant-footer] p { color: var(--c-texte-2, #555) !important; max-width: 65ch; }
.uf-block[data-avant-footer] .af-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 17px 28px !important; border-radius: 999px !important; background: #077d7c !important; color: #fff !important; font-weight: 700; border: 0 !important; text-transform: none; }
/* Article : listes de la prose avec coches et numéros sarcelle */
.ka-corps ul:not(.ka-tete *):not([class]) { list-style: none !important; padding-left: 0 !important; }
.ka-corps ul:not(.ka-tete *):not([class]) > li { position: relative; padding-left: 1.9em; }
.ka-corps ul:not(.ka-tete *):not([class]) > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2em; height: 1.2em; background: var(--c-primaire-fonce); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ka-corps ol:not(.ka-tete *):not([class]) { list-style: none !important; padding-left: 0 !important; counter-reset: ka-num; }
.ka-corps ol:not(.ka-tete *):not([class]) > li { position: relative; padding-left: 2.4em; counter-increment: ka-num; }
.ka-corps ol:not(.ka-tete *):not([class]) > li::before { content: counter(ka-num); position: absolute; left: 0; top: .15em; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--c-primaire-fonce); color: #fff; font-weight: 700; font-size: .9em; display: grid; place-items: center; line-height: 1; }
.ka-note-vide { margin: 0; font-weight: 700; color: var(--c-primaire-texte); }
/* Page auteur : réseaux centrés sous l’en-tête */
[data-usine-page="interne"] .bh-e6e3-entete :is(ul, p, div)[class*="reseau"], [data-usine-page="interne"] .bh-e6e3-entete :is(ul, div)[class*="social"] { display: flex; flex-wrap: wrap; justify-content: center; margin-inline: auto; }
/* Mentions légales : hiérarchie resserrée, mesure de 65 caractères */
.bh-e6e3-prose-legal { width: 100%; max-width: 65ch !important; margin-inline: auto; }
.bh-e6e3-prose-legal h2 { font-size: 1.5rem !important; line-height: 1.3 !important; margin-top: 2rem; }
.bh-e6e3-prose-legal p { font-size: 1rem; }

/* Page auteur : réseaux et bouton centrés */
[data-usine-page="interne"] .social, [data-usine-page="interne"] ul.social, [data-usine-page="interne"] .ur-reseaux, [data-usine-page="interne"] .ur-reseaux > ul { display: flex; flex-wrap: wrap; justify-content: center !important; margin-inline: auto !important; }
