/* =====================================================================
   Toutes les pages, direction « Le Book » (ancienne maquette B). Chargée après site.css (le kit : en-tête,
   tiroir, pied de page, défilement des logos), sans aecf.css. Direction : docs/_analyse/maquette-b/.
   Papier chaud, cyan et marron du logo, Archivo + Source Sans 3, angles droits,
   aucun dégradé, aucune ombre, aucun halo. Le cyan ne porte jamais de texte blanc (2,3:1).
   ===================================================================== */
:root {
  --papier: #F6F3EE; --papier-2: #ECE7DF; --blanc: #FFFFFF;
  --encre: #1E2830; --encre-2: #46525E; --encre-3: #5E6872;
  --cyan: #22B8E8; --cyan-clair: #5CCBF0; --cyan-pale: #D5EEF9;
  --marron: #784020; --marron-fonce: #5E3118;
  --filet: #CFC8BC; --filet-fort: #8A8274;
  --fs-h2b: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  --band-h: clamp(46px, 8svh, 60px);
  --b-pad: clamp(16px, 4svh, 44px);

  /* Jetons du kit ramenés à B */
  --bg: var(--papier); --bg-blush: var(--papier-2); --bg-lilac: var(--papier-2); --bg-sky: var(--papier-2); --card: var(--blanc);
  --ink: var(--encre); --ink-soft: var(--encre-2); --ink-faint: var(--encre-3);
  --line: var(--filet); --line-strong: var(--filet-fort); --field-line: var(--filet-fort);
  --rose: var(--encre); --rose-dark: #000; --rose-ink: var(--marron); --rose-tint: var(--cyan-pale);
  --violet: var(--encre); --violet-tint: var(--papier-2); --blue: var(--cyan); --gold: var(--marron);
  --grad: linear-gradient(var(--encre), var(--encre)); --grad-text: var(--grad); --grad-soft: var(--papier); --grad-warm: var(--grad);
  --sh-1: none; --sh-2: none; --sh-3: none; --sh-btn: none;
  --r-xl: 2px; --r-lg: 2px; --r-md: 2px; --r-sm: 2px;
  --f-display: "Archivo", "Franklin Gothic Medium", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
body { background: var(--papier); color: var(--encre); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; color: var(--encre); text-wrap: balance; }
h3 { font-weight: 700; }
a { color: var(--encre); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--marron); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; border-radius: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- En-tête (même gabarit que A, couleurs de B) ---------- */
.site-header { background: var(--papier); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--filet); }
.site-header.is-scrolled { border-bottom-color: var(--filet-fort); box-shadow: none; }
/* Une signature trop longue pour la place (texte du CMS) se termine par « … » au lieu de pousser les boutons hors de l'écran
   (coupée en largeur seulement : les accents des capitales dépassent un peu de la ligne) */
.brand { flex: 0 1 auto; min-width: 0; }
.brand__text { min-width: 0; }
.brand__tag { min-width: 0; overflow-x: clip; text-overflow: ellipsis; }
.brand__logo { flex: none; height: 38px; max-width: none; border-radius: 0; }
.site-nav__link, .site-header__tel, .site-header__cta, .brand__tag { white-space: nowrap; }
.site-header__in { gap: 12px; }
@media (min-width: 1180px) and (max-width: 1480px) { .brand__text { display: none; } }
@media (max-width: 479px) { .brand__tag { display: none; } }
.site-nav__link { color: var(--encre); }
.site-nav__link.is-current, .site-nav__link[aria-current="page"] { color: var(--marron); }
.site-nav__panel { border-radius: 0; box-shadow: inset 0 0 0 1px var(--filet-fort); }
.site-header__tel { border-radius: 2px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--encre); }
.btn { border-radius: 2px; transition: background-color .12s; }
.btn:hover, .btn:active { transform: none !important; }
.btn--primary { background: var(--cyan); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.btn--primary:hover { background: var(--cyan-clair); color: var(--encre); }
.btn--light { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.btn--light:hover { background: var(--cyan-pale); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.drawer__nav a[aria-current="page"] { color: var(--marron); }
.mobile-bar { background: var(--papier); -webkit-backdrop-filter: none; backdrop-filter: none; border-top-color: var(--filet-fort); }

/* ---------- Pied de page : encre, texte blanc ---------- */
.site-footer { background: var(--encre); color: #fff; border-top: 0; padding-top: 0; }
.site-footer .b-filet { margin-bottom: 56px; }
.site-footer__logo { width: auto; height: 64px; border-radius: 0; background: var(--blanc); padding: 8px 10px; box-shadow: none; }
.site-footer__name, .site-footer__tel { color: #fff; }
.site-footer__name { margin-top: 14px; font-size: 1.05rem; line-height: 1.25; }
.site-footer p, .site-footer address, .site-footer__brand p:last-child { color: #D5DCE2; }
.site-footer__title { color: var(--cyan); }
.site-footer__col a, .site-footer__list a, .site-footer .link-arrow { color: #fff; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__list a[aria-current="page"] { color: var(--cyan); }
.site-footer__bottom { border-top-color: rgba(255, 255, 255, .22); color: #C9D1D8; }
.site-footer__legal a { color: #C9D1D8; }
.site-footer .chip { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); border-radius: 2px; }
.site-footer .socials a { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); border-radius: 2px; }
.site-footer .socials .icon { color: var(--cyan); }

/* ---------- Gabarit ---------- */
.b-wrap { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.b-section { padding-block: clamp(56px, 7vw, 96px); background: var(--papier); }
.b-section--blanc { background: var(--blanc); }
.b-section--fonce { background: var(--papier-2); }
.b-head { max-width: 760px; margin-bottom: clamp(22px, 3vw, 36px); }
.b-head h2, .b-h2 { font-size: var(--fs-h2b); margin-bottom: 12px; }
.b-head p { color: var(--encre-2); font-size: 1.125rem; }
.b-head p + p { margin-top: 10px; }
/* Le seul ornement : deux traits de 3 px collés, marron puis cyan, les couleurs du logo */
.b-filet { height: 0; border-top: 3px solid var(--marron); border-bottom: 3px solid var(--cyan); margin-bottom: 28px; }
.b-lien { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--encre); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.b-lien:hover { color: var(--marron); }
.b-plus { margin-top: 22px; }
.b-btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 22px; border: 0; border-radius: 2px; box-shadow: inset 0 0 0 2px var(--encre); color: var(--encre); font: 700 1.0625rem/1.1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s; }
.b-btn--cyan { background: var(--cyan); }
.b-btn--cyan:hover { background: var(--cyan-clair); color: var(--encre); }
.b-btn--line { background: var(--blanc); }
.b-btn--line:hover { background: var(--cyan-pale); color: var(--encre); }
.b-btn--encre { background: var(--encre); color: #fff; }
.b-btn--encre:hover { background: #000; color: #fff; }
.b-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.b-etiquette { display: inline-block; align-self: flex-start; padding: 3px 7px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--encre); color: var(--encre); font: 700 .72rem/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Premier écran : toujours tout l'écran, texte, boutons et bande visibles ---------- */
.b-hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; background: var(--papier); }
.b-hero__in { flex: 1; display: flex; flex-direction: column; gap: clamp(14px, 3svh, 28px); padding-block: var(--b-pad); }
.b-kicker { margin-bottom: clamp(8px, 1.6svh, 16px); color: var(--marron); font: 700 clamp(.95rem, .9rem + .2vw, 1.05rem)/1.3 var(--f-display); }
/* --k et --kl (posés par BHero, src/lib/heros.js) : titre et accroche plus petits quand leur texte est long ;
   la largeur de la boîte, en ch ou em, est divisée d'autant pour rester la même en pixels : toute largeur en ch du grand
   titre s'écrit calc(… / var(--k, 1)), ici et dans les feuilles des pages */
.b-hero h1 { max-width: calc(15ch / var(--k, 1)); margin-bottom: clamp(10px, 2svh, 18px); font-size: calc(clamp(2rem, min(1.1rem + 3vw, 7.6svh), 3.8rem) * var(--k, 1)); }
.b-lead { max-width: calc(34em / var(--kl, 1)); margin-bottom: clamp(14px, 3svh, 28px); color: var(--encre-2); font-size: calc(clamp(1.0625rem, min(1rem + .3vw, 2.7svh), 1.25rem) * var(--kl, 1)); line-height: 1.5; }
.b-hero .b-btn { --h: clamp(46px, 7svh, 54px); }
.b-hero__quali { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: clamp(12px, 3svh, 28px); color: var(--encre-3); font-size: .95rem; }
.b-hero__quali img { width: auto; height: clamp(26px, 4.4svh, 34px); }
.b-planche { display: grid; grid-template-columns: 3fr 4fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; margin: 0; min-height: 0; }
.b-planche img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 0; }
.b-planche__a { grid-row: 1 / 3; }
.b-planche figcaption { grid-column: 1 / -1; color: var(--encre-3); font-size: .875rem; }
.js .b-planche img { animation: b-fondu .3s ease-out both; }
@keyframes b-fondu { from { opacity: 0; } }
.b-bande { background: var(--cyan); color: var(--encre); }
.b-bande__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; min-height: var(--band-h); padding-block: 6px; font-size: 1rem; }
.b-bande p { margin: 0; line-height: 1.3; }
.b-bande b { font-family: var(--f-display); font-weight: 700; }
/* Téléphone et tablette : texte et boutons d'abord, la planche devient une bande de trois photos */
@media (max-width: 999px) {
  .b-planche { grid-template-columns: 1fr 1.5fr 1.3fr; grid-template-rows: minmax(0, 1fr); flex: 1 1 0; min-height: 110px; max-height: 300px; }
  .b-planche__a { grid-row: auto; }
  .b-planche figcaption { display: none; }
  .b-bande__right { display: none; }
}
@media (max-width: 999px) and (max-height: 760px) { .b-planche { display: none; } }
@media (max-width: 999px) and (max-height: 900px) { .b-hero__quali span { display: none; } }
@media (max-width: 479px) { .b-hero .b-ctas { display: grid; } .b-hero .b-btn { width: 100%; } }
/* Bureau : texte à gauche, planche à droite à la hauteur exacte de l'écran */
@media (min-width: 1000px) {
  .b-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
  .b-planche { height: calc(100svh - var(--header-h) - var(--band-h) - 2 * var(--b-pad)); max-height: 820px; }
}
/* Fenêtres basses (1024 × 560, 1366 × 625) : la seconde phrase s'efface */
@media (min-width: 1000px) and (max-height: 640px) { .b-hero__more { display: none; } .b-planche figcaption { display: none; } .b-planche { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-height: 700px) and (max-width: 479px) { .b-kicker { font-size: .9rem; } .b-hero__more { display: none; } }
/* Textes longs saisis dans le CMS : un mot trop long pour la ligne passe à la ligne au lieu de déborder ; le texte d'un
   bouton peut tenir sur deux lignes, le numéro de téléphone restant d'un seul tenant (.b-tel, posé par BHero). */
.b-hero h1, .b-kicker, .b-lead, .b-crumbs, .b-bande p, .b-hero figcaption { overflow-wrap: break-word; }
.b-hero .b-btn, .b-hero__quali span { overflow-wrap: anywhere; }
.b-hero .b-btn { white-space: normal; text-align: center; }
.b-hero .b-tel { white-space: nowrap; }
/* Dès 480 px, les deux boutons restent côte à côte, quelle que soit la longueur de leurs textes : l'un sous l'autre, ils
   prendraient 56 px de plus, ce que l'accueil n'a pas à 1024 × 560. Chacun garde sa largeur quand la place suffit ; sinon
   la place se partage à parts égales (grille, colonnes minmax(0, auto)) : un bouton court reste sur une ligne, le texte des
   boutons longs passe à la ligne, deux lignes chacun pour deux textes de 28 caractères à 1024 px. */
@media (min-width: 480px) { .b-hero .b-ctas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); justify-content: start; } }

/* ---------- Nos réalisations : filtres par cible et rangée de fiches ---------- */
.b-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.b-filtres button { padding: 10px 14px; border: 0; border-radius: 2px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet-fort); color: var(--encre); font: 700 1rem/1.1 var(--f-body); cursor: pointer; }
.b-filtres button:hover { box-shadow: inset 0 0 0 2px var(--encre); }
.b-filtres button[aria-pressed="true"] { background: var(--encre); color: #fff; box-shadow: none; }
.b-cible { max-width: 760px; margin-bottom: 22px; color: var(--encre-2); }
.b-cible a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.b-cible .icon { vertical-align: -.15em; }
.b-rangee__piste { --cote: max(var(--gutter), calc((100% - 1240px) / 2)); display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cote); padding: 2px var(--cote) 18px; list-style: none; scrollbar-width: thin; scrollbar-color: var(--filet-fort) transparent; }
.b-rangee__piste:focus-visible { outline-offset: -3px; }
.b-fiche { display: flex; flex: 0 0 clamp(260px, 26vw, 320px); flex-direction: column; scroll-snap-align: start; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); }
.b-fiche[hidden] { display: none; }
.b-fiche__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--papier-2); }
.b-fiche__img img { width: 100%; height: 100%; object-fit: cover; }
.b-fiche__corps { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.b-fiche h3 { font-size: 1.2rem; line-height: 1.15; }
.b-fiche h3 a { color: var(--encre); text-decoration: none; }
.b-fiche h3 a:hover { color: var(--marron); text-decoration: underline; text-decoration-thickness: 2px; }
.b-fiche__img--texte { display: grid; place-items: center; padding: 24px; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.b-fiche__img--texte img { width: auto; max-width: 62%; height: auto; max-height: 72px; object-fit: contain; }
.b-fiche__img--texte span { color: var(--encre-2); font: 800 1.5rem/1.1 var(--f-display); text-align: center; }
.b-cartouche { margin: auto 0 0; border-top: 1px solid var(--filet); }
.b-cartouche > div { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--filet); }
.b-cartouche dt, .b-identite dt { padding-top: 3px; color: var(--marron); font: 700 .72rem/1.35 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.b-cartouche dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: .95rem; line-height: 1.35; }
.b-cartouche dd img { width: auto; max-width: 80px; height: 22px; object-fit: contain; }
/* Textes saisis dans le CMS (intitulé, maître d'ouvrage, commune) : un mot trop long pour la fiche passe à la ligne au lieu
   de l'élargir ou d'en déborder */
.b-fiche h3, .b-fiche__img--texte span, .b-cartouche dd { overflow-wrap: anywhere; }
.b-rangee__nav { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.b-rangee__nav .b-lien { margin-left: auto; }
.b-rond { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 2px; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--encre); color: var(--encre); cursor: pointer; }
.b-rond:hover { background: var(--cyan-pale); }
.b-rond:disabled { opacity: .35; cursor: default; background: var(--blanc); }

/* ---------- Tableaux (chantiers en cours, qualifications) ---------- */
.b-table-wrap { background: var(--blanc); border: 1px solid var(--filet); }
.b-table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.b-table th { padding: 12px 16px; border-bottom: 2px solid var(--encre); color: var(--marron); font: 700 .75rem/1.2 var(--f-display); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.b-table td { padding: 11px 16px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.b-table tbody tr:nth-child(even) td { background: #FBF9F6; }
.b-table tbody tr:last-child td { border-bottom: 0; }
.b-table td:first-child { font-weight: 700; }
.b-table td .b-etiquette { margin-left: 8px; }
.b-quali { display: flex; align-items: center; gap: 10px; }
.b-quali img { width: 46px; height: 30px; flex: none; object-fit: contain; object-position: left center; }
@media (max-width: 699px) {
  .b-table thead { display: none; }
  .b-table tr { display: grid; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--filet); }
  .b-table tbody tr:nth-child(even) { background: #FBF9F6; }
  .b-table td, .b-table tbody tr:nth-child(even) td { padding: 0; border: 0; background: none; }
  .b-table td .b-etiquette { margin-left: 6px; }
}

/* ---------- Ils nous font confiance : deux bandes défilantes, logos en couleur, pause ---------- */
.b-logos__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 16px; }
.b-pause { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(22px, 3vw, 36px); padding: 8px 12px; border: 0; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px var(--filet-fort); color: var(--encre); font: 600 .95rem/1 var(--f-body); cursor: pointer; }
.b-pause:hover { box-shadow: inset 0 0 0 2px var(--encre); }
.b-pause .i-play, .b-pause[aria-pressed="true"] .i-pause { display: none; }
.b-pause[aria-pressed="true"] .i-play { display: block; }
.b-marquee { --gap: 12px; padding: 6px 0; -webkit-mask-image: none; mask-image: none; }
/* Plus précis que « .js .marquee.is-ready .marquee__track » du kit, dont le raccourci animation relancerait la bande */
.js .b-marquee.is-ready.is-paused .marquee__track, .b-marquee.is-paused .marquee__track { animation-play-state: paused; }
.b-logo { display: grid; place-items: center; width: 168px; height: 76px; padding: 12px 18px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); }
.b-logo img { width: auto; max-width: 100%; max-height: 44px; object-fit: contain; }

/* ---------- Deux colonnes, titre collant (savoir-faire, entreprise, zone) ---------- */
.b-deux { display: grid; gap: 32px; }
@media (min-width: 1000px) {
  .b-deux { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .b-deux--entreprise { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .b-collant { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.b-liste { list-style: none; border-top: 2px solid var(--encre); }
.b-liste li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--filet); }
.b-liste h3 { font-size: 1.3rem; }
.b-liste h3 a { color: var(--encre); text-decoration: none; }
.b-liste h3 a:hover { color: var(--marron); text-decoration: underline; text-decoration-thickness: 2px; }
.b-liste p { color: var(--encre-2); }
.b-liste .b-liste__ex { color: var(--marron); font-weight: 600; }
@media (min-width: 760px) { .b-liste li { grid-template-columns: 14em minmax(0, 1fr); column-gap: 28px; } .b-liste li > p { grid-column: 2; } .b-liste h3 { grid-row: 1 / span 2; } }

/* ---------- De l'étude à la livraison : frise dont le trait se remplit au défilement ---------- */
.b-frise { position: relative; padding-left: 48px; list-style: none; counter-reset: etape; }
.b-frise::before, .b-frise::after { content: ""; position: absolute; z-index: 0; left: 14px; top: 8px; width: 3px; }
.b-frise::before { bottom: 8px; background: var(--filet); }
.b-frise::after { height: calc((100% - 16px) * var(--p, 1)); background: var(--cyan); }
.b-frise li { position: relative; padding-bottom: 26px; counter-increment: etape; }
.b-frise li:last-child { padding-bottom: 0; }
.b-frise li::before { content: counter(etape); position: absolute; z-index: 1; left: -48px; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--encre); font: 800 .95rem/1 var(--f-display); transition: background-color .2s; }
.b-frise li.is-passe::before { background: var(--cyan); }
.b-frise h3 { margin-bottom: 4px; font-size: 1.2rem; }
.b-frise p { color: var(--encre-2); }
.b-photo figcaption, .b-moyens figcaption { color: var(--encre-3); font-size: .9rem; }

/* ---------- Nos moyens : photos à leur taille, même hauteur de ligne ---------- */
.b-moyens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b-moyens figure { margin: 0; }
.b-moyens img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.b-moyens figcaption { padding-top: 6px; }
@media (min-width: 900px) {
  .b-moyens { display: flex; }
  .b-moyens figure:nth-child(1) { flex: .75 1 0; }
  .b-moyens figure:nth-child(n + 2) { flex: 1.334 1 0; }
  .b-moyens img { aspect-ratio: auto; height: auto; }
}
.b-faits { display: grid; margin-top: 28px; border-top: 1px solid var(--filet); list-style: none; }
.b-faits li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--filet); }
.b-faits li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 12px; height: 3px; background: var(--marron); }
@media (min-width: 900px) { .b-faits { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* ---------- Qualifications et engagements ---------- */
.b-engagements { display: grid; gap: 24px; margin-top: 36px; }
.b-engagements > div { padding-top: 14px; border-top: 3px solid var(--encre); }
.b-engagements h3 { margin-bottom: 6px; font-size: 1.2rem; }
.b-engagements p { color: var(--encre-2); }
@media (min-width: 900px) { .b-engagements { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- L'entreprise : fiche d'identité ---------- */
.b-identite { margin: 0; border-top: 2px solid var(--encre); }
.b-identite > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--filet-fort); }
.b-identite dd { margin: 0; }
@media (min-width: 600px) { .b-identite > div { grid-template-columns: 11em minmax(0, 1fr); gap: 12px; } }
.b-photo { display: grid; gap: 8px; margin: 0; }
.b-photo img { width: 100%; height: auto; }

/* ---------- Zone d'intervention, questions fréquentes ---------- */
.b-communes { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; }
.b-communes li { padding: 4px 10px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); font-size: .95rem; }
.b-faq { border-top: 2px solid var(--encre); }
.b-faq details { border-bottom: 1px solid var(--filet); }
.b-faq summary { position: relative; padding: 16px 40px 16px 0; font: 700 1.1rem/1.3 var(--f-display); list-style: none; cursor: pointer; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after { content: "+"; position: absolute; right: 8px; top: 13px; color: var(--marron); font: 800 1.5rem/1 var(--f-display); }
.b-faq details[open] summary::after { content: "–"; }
.b-faq details p { padding: 0 0 16px; color: var(--encre-2); }

/* ---------- Nous contacter : bande cyan, texte encre (6,5:1) ---------- */
.b-contact { padding-block: clamp(48px, 6vw, 80px); background: var(--cyan); color: var(--encre); }
.b-contact__in { display: grid; align-items: end; gap: 24px; }
.b-contact h2 { margin-bottom: 8px; font-size: var(--fs-h2b); }
.b-contact__tel { display: inline-block; margin-bottom: 12px; color: var(--encre); font: 800 clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem)/1 var(--f-display); letter-spacing: -.01em; text-decoration: none; }
.b-contact__tel:hover { color: var(--encre); text-decoration: underline; }
.b-contact a:not(.b-btn) { color: var(--encre); }
.b-contact__h { margin-top: 8px; }
@media (min-width: 900px) { .b-contact__in { grid-template-columns: minmax(0, 1fr) auto; } }

@media (prefers-reduced-motion: reduce) {
  .js .b-planche img { animation: none; }
  .b-rangee__piste { scroll-behavior: auto; }
  .b-frise li::before { transition: none; }
}
/* Réglages fins du premier écran (contrôlés avec tools/fit.js sur 8 tailles) */
@media (max-width: 999px) { .b-hero { --b-pad: clamp(14px, 2.4svh, 24px); } .b-planche { min-height: 96px; } }
@media (min-width: 1000px) and (max-height: 640px) {
  .b-hero { --b-pad: clamp(10px, 2svh, 16px); }
  .b-hero h1 { max-width: calc(18ch / var(--k, 1)); font-size: calc(clamp(2rem, 7svh, 3rem) * var(--k, 1)); }
  .b-kicker { margin-bottom: 6px; }
  .b-hero__quali span { display: none; }
}

/* =====================================================================
   Toutes les pages (B devenue la maquette principale le 20/10/2026)
   ===================================================================== */
/* Fil d'Ariane dans le héros des pages intérieures */
.b-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(8px, 1.6svh, 14px); padding: 0; list-style: none; color: var(--encre-3); font-size: .9rem; }
.b-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--filet-fort); }
.b-crumbs a { color: var(--encre-2); text-decoration: none; }
.b-crumbs a:hover { color: var(--marron); text-decoration: underline; }
/* Visuel unique du héros : photo, document ou logo, à la hauteur de l'écran sur bureau, jamais agrandi */
.b-hmedia { display: grid; gap: 6px; align-content: center; justify-items: center; min-height: 0; margin: 0; }
.b-hmedia img { display: block; max-width: 100%; height: auto; }
.b-hmedia figcaption { justify-self: start; color: var(--encre-3); font-size: .875rem; }
.b-hmedia--doc { padding: clamp(10px, 2svh, 20px); background: var(--papier-2); }
.b-hmedia--logo .b-hmedia__tuile { display: grid; place-items: center; width: 100%; min-height: clamp(160px, 30svh, 300px); padding: 32px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); }
.b-hmedia--logo .b-hmedia__tuile img { max-width: 70%; max-height: 140px; width: auto; }
@media (max-width: 999px) {
  .b-hmedia { flex: 1 1 0; min-height: 110px; max-height: 300px; overflow: hidden; }
  .b-hmedia--photo img { width: 100%; height: 100%; object-fit: cover; }
  .b-hmedia--doc, .b-hmedia--logo { display: none; }
  .b-hmedia figcaption { display: none; }
}
@media (max-width: 999px) and (max-height: 760px) { .b-hmedia { display: none; } }
@media (min-width: 1000px) {
  .b-hmedia { height: calc(100svh - var(--header-h) - var(--band-h) - 2 * var(--b-pad)); max-height: 820px; grid-template-rows: minmax(0, 1fr) auto; }
  .b-hmedia img { max-height: 100%; width: auto; object-fit: contain; }
  .b-hmedia--photo img { width: 100%; height: 100%; object-fit: cover; }
  .b-hmedia--doc img { max-height: 100%; }
}
@media (min-width: 1000px) and (max-height: 640px) { .b-hmedia figcaption { display: none; } .b-hmedia { grid-template-rows: minmax(0, 1fr); } }

/* Photos à leur proportion réelle, même hauteur de ligne */
.b-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b-photos figure { margin: 0; }
.b-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.b-photos figcaption { padding-top: 6px; color: var(--encre-3); font-size: .9rem; }
@media (min-width: 900px) { .b-photos { display: flex; } .b-photos figure { flex: var(--ar, 1.333) 1 0; } .b-photos img { aspect-ratio: auto; } }
@media (max-width: 599px) { .b-photos figure:nth-child(odd):last-child:not(:first-child) { grid-column: 1 / -1; } }

/* Registre : filtres, recherche, compteur, message vide */
.b-registre__outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.b-registre__outils .b-filtres { margin-bottom: 0; }
.b-compte { margin-left: 4px; color: inherit; font-weight: 400; opacity: .75; font-variant-numeric: tabular-nums; }
.b-recherche input { width: min(100%, 340px); min-height: 44px; padding: 0 14px; border: 0; border-radius: 2px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet-fort); color: var(--encre); font: 400 1rem/1.2 var(--f-body); }
.b-recherche input:focus { outline: 3px solid var(--encre); outline-offset: 0; }
.b-registre__vide { margin-top: 14px; color: var(--encre-2); }
.b-table tr[hidden] { display: none; }


/* Formulaires (devis, DCE, candidature) dans les couleurs de B */
.quote-form { border-radius: 0; box-shadow: inset 0 0 0 1px var(--filet); }
.quote-form legend { font-family: var(--f-display); font-weight: 800; }
.quote-form legend span { border-radius: 0; background: var(--cyan) !important; color: var(--encre); }
.quote-form__prefill { border-radius: 0; background: var(--cyan-pale); }
.quote-form__done { border-radius: 0; box-shadow: inset 0 0 0 1px var(--filet); }
.field label { color: var(--encre); }
.field input, .field select, .field textarea { border-radius: 2px; border-color: var(--filet-fort); background-color: var(--blanc); color: var(--encre); font-family: var(--f-body); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--encre); box-shadow: 0 0 0 3px var(--cyan-pale); }
.field .check input { border-radius: 2px; }
.notice { border-radius: 0; }

/* Pied de page : qualifications en texte */
.site-footer__quali .chip { font-weight: 600; }
/* Grille de fiches (pages réalisations, cibles) */
.b-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; }
.b-grille .b-fiche { flex: none; }
.b-grille .b-fiche[hidden] { display: none; }
/* Registre : sans JavaScript, les outils ne font rien, on les masque ; lot sous l'intitulé */
html:not(.js) .b-registre__outils { display: none; }
.b-lot { display: block; color: var(--encre-3); font-size: .85rem; font-weight: 400; }
.b-table--registre td:first-child a { color: var(--encre); }
.b-table--registre td:first-child a:hover { color: var(--marron); }
/* Mur de logos fixe (BLogos fixe) */
.b-mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; }
.b-mur .b-logo { width: 100%; }
.b-mur figcaption, .b-mur .b-logo__nom { display: block; margin-top: 4px; color: var(--encre-3); font-size: .85rem; text-align: center; }

/* ---------- Réglages communs signalés par les pages (20/10/2026) ---------- */
/* Pages intérieures : titre un peu plus large, pour tenir en 2 ou 3 lignes */
.b-hero--page h1 { max-width: calc(18ch / var(--k, 1)); }
/* Photo et document du héros : cadrage réglable (pos), jamais agrandis au-delà de 1,3 fois (--w-max, --h-max posés par BHero) */
.b-hmedia--photo img, .b-hmedia--doc img { object-position: var(--pos, 50% 50%); }
.b-hmedia--photo img { max-width: min(100%, var(--w-max, 100%)); max-height: min(100%, var(--h-max, 100%)); }
.b-hmedia--photo { justify-items: center; }
/* Téléphone et tablette : le visuel reste visible en bande dès qu'il y a la place ; document et logo aussi */
@media (max-width: 999px) {
  .b-hmedia--doc, .b-hmedia--logo { display: grid; }
  .b-hmedia--doc { padding: 0; }
  .b-hmedia--doc img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0); }
  .b-hmedia--logo .b-hmedia__tuile { min-height: 0; height: 100%; padding: 12px; }
  .b-hmedia--logo .b-hmedia__tuile img { max-height: 64px; }
}
@media (max-width: 999px) and (max-height: 760px) { .b-hmedia, .b-planche { display: grid; } }
@media (max-width: 999px) and (max-height: 680px) { .b-hmedia, .b-planche { display: none; } }
/* Formulaires : cases à angles droits, focus encre de 3 px, message bref à angles droits */
.check { border-radius: 2px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet-fort); }
.check input { border-radius: 2px; border-color: var(--filet-fort); }
.check input:checked { background: var(--encre); border-color: var(--encre); }
.check:has(input:checked) { background: var(--cyan-pale); box-shadow: inset 0 0 0 2px var(--encre); }
.check--consent, .check--consent:has(input:checked) { background: transparent; box-shadow: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--encre); outline-offset: 0; box-shadow: none; }
.toast { border-radius: 2px; box-shadow: none; }
/* Sous-titre et note communs */
.b-h3 { margin: 28px 0 12px; font-size: 1.3rem; }
.b-note { margin-top: 10px; color: var(--encre-3); font-size: .9rem; }
.b-photo--portrait { max-width: min(100%, 470px); justify-self: center; }
/* Registre : champ de recherche assez large pour lire son texte d'aide */
.b-recherche { flex: 1 1 280px; max-width: 440px; }
.b-recherche input { width: 100%; }

/* ---------- Relecture des 14 pages : réglages communs ---------- */
/* Tableaux : l'étiquette suit l'année avec une espace ; sur téléphone, chaque cellule garde son libellé */
.b-table td .b-etiquette { margin-left: 4px; }
.b-quali__vide { display: inline-block; flex: none; width: 46px; height: 30px; }
@media (max-width: 699px) {
  .b-table td[data-label]::before { content: attr(data-label) "\00a0: "; color: var(--marron); font: 700 .7rem/1.4 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
  .b-table td[data-label=""]::before { content: none; }
  .b-table td:first-child { font-size: 1.02rem; }
}
/* Listes filetées : un titre-lien se reconnaît */
.b-liste h3 a { text-decoration: underline; text-decoration-color: var(--filet-fort); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.b-liste h3 a:hover { text-decoration-color: var(--marron); }
/* Rangées : la navigation se replie sur téléphone sans détacher la flèche */
.b-rangee__nav { flex-wrap: wrap; }
.b-lien { white-space: normal; }
.b-lien .icon { flex: none; }
/* Faits en deux colonnes : le dernier, seul sur sa ligne, prend toute la largeur */
@media (min-width: 900px) { .b-faits li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Photo du héros sur téléphone et tablette : cadrage réglable (pos) dans la bande */
@media (max-width: 999px) {
  .b-hmedia--photo { position: relative; }
  .b-hmedia--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
}
/* Pied de page : titres de colonnes en casse normale (pas de capitales espacées) */
.site-footer__title { font: 700 1rem/1.2 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--cyan); }
/* Champs fichier (DCE, CV) dans les couleurs de B */
.field input[type="file"] { padding: 8px; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 2px; background: var(--encre); color: #fff; font: 700 .9rem/1 var(--f-body); cursor: pointer; }
@media (max-width: 699px) { .b-table td[data-label]:empty { display: none; } }
/* Registre : un maître d'ouvrage inconnu (champ facultatif du CMS) s'affiche « — » sur bureau, comme une commune sur la page
   Entreprises ; sur téléphone, la cellule vide reste masquée (règle ci-dessus) */
@media (min-width: 700px) { .b-table--registre td[data-col="mo"]:empty::after { content: "—"; color: var(--encre-3); } }

/* ---------- Passe finale : réglages communs ---------- */
/* Photo seule du héros sur bureau : la légende suit l'image, l'ensemble est centré dans la hauteur. Une légende sur deux
   lignes (photo en hauteur, légende longue) prend sa place sur l'image, recadrée, au lieu de sortir du cadre (min-height) */
@media (min-width: 1000px) {
  .b-hmedia--photo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
  .b-hmedia--photo img { width: 100%; height: auto; min-height: 0; max-width: min(100%, var(--w-max, 100%)); max-height: calc(100% - 30px); object-fit: cover; }
  .b-hmedia--photo figcaption { flex: none; align-self: stretch; max-width: min(100%, var(--w-max, 100%)); margin-inline: auto; width: 100%; }
}
/* Liens longs : la flèche reste au bout du texte */
.b-lien { display: inline; }
.b-lien .icon { display: inline-block; vertical-align: -.15em; margin-left: 4px; }
/* Numéros de téléphone jamais coupés */
a[href^="tel:"] { white-space: nowrap; }
/* Case vide devant une qualification sans logo : retirée */
.b-quali__vide { display: none; }
/* Deux colonnes : chaque bloc garde sa hauteur naturelle */
.b-deux { align-items: start; }
/* Légende du document centrée sous lui */
/* Pied de page : liens légaux empilés sur téléphone */
.site-footer__legal { flex-wrap: wrap; gap: 8px 18px; }
.site-footer__legal a { white-space: nowrap; }
@media (max-width: 599px) { .site-footer__legal { flex-direction: column; } }
