/*
 * BE2T Ingénierie — feuille de style du thème.
 * Maquette Figma BE2T_Webdesign (1440 px) : grille de 1280 px, marges de 80 px, gouttière de 10 px.
 * Corps de texte en px de la maquette, réduits en dessous de 1440 par clamp().
 */

@font-face {
    font-family: "Aldrich";
    src: url("../fonts/aldrich-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/roboto-condensed-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --b2-rouge: #d32a20;
    --b2-noir: #000;
    --b2-blanc: #fff;
    --b2-fond-gris: #f5f5f5;
    --b2-texte-gris: #4d4e4f;
    --b2-texte-gris-2: #565656;
    --b2-gris-clair: #d8d8d8;
    --b2-bordure: #cdcdcd;
    --b2-exp: var(--b2-rouge);

    --b2-titre: "Aldrich", "Arial Narrow", sans-serif;
    --b2-corps: "Roboto Condensed", "Arial Narrow", sans-serif;

    --b2-t50: clamp(30px, 3.5vw, 50px);
    --b2-t40: clamp(26px, 2.8vw, 40px);
    --b2-t30: clamp(22px, 2.1vw, 30px);
    --b2-t25: clamp(20px, 1.75vw, 25px);
    --b2-t20: clamp(17px, 1.4vw, 20px);

    --b2-gut: 80px;
    --b2-max: 1280px;
    --b2-esp: clamp(40px, 4.65vw, 67px);
    --b2-ecart: 10px;
}
@media (max-width: 1279px) { :root { --b2-gut: 40px; } }
@media (max-width: 767px) { :root { --b2-gut: 16px; } }

/* Couleur de chaque expertise (fiches 2026) : posée sur le <body> d'une page ou sur une carte. */
.exp-infrastructure { --b2-exp: #d32a20; }
.exp-hydraulique { --b2-exp: #284b86; }
.exp-topographie { --b2-exp: #558d49; }
.exp-reseaux-divers { --b2-exp: #763e86; }

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: var(--b2-blanc);
    color: var(--b2-noir);
    font-family: var(--b2-corps);
    font-weight: 300;
    font-size: var(--b2-t20);
    line-height: 1.2;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--b2-exp); outline-offset: 3px; }
body.b2-bloque { overflow: hidden; }

.b2-wrap { width: min(var(--b2-max), calc(100% - 2 * var(--b2-gut))); margin-inline: auto; }
.b2-centre { text-align: center; }
.b2-invisible, .b2-evitement:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.b2-evitement:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 10px 16px; }

.b2-h1, .b2-h2, .b2-tuile__titre, .b2-carte__titre, .b2-etape__titre, .b2-bloc__titre, .b2-accordeon__titre, .b2-citation {
    font-family: var(--b2-titre);
    font-weight: 400;
    text-transform: uppercase;
    line-height: .98; /* interlignage « normal » d’Aldrich dans Figma : 147 px pour 3 lignes en 50 px */
}
.b2-h1 { font-size: var(--b2-t50); }
.b2-h2 { font-size: var(--b2-t40); }
.b2-marque { color: var(--b2-rouge); }
.b2-surtitre { font-weight: 700; font-size: var(--b2-t20); text-transform: uppercase; color: var(--b2-rouge); margin-bottom: 25px; }
.b2-intro, .b2-texte { color: var(--b2-texte-gris-2); letter-spacing: -0.01em; }
.b2-intro p + p, .b2-texte p + p, .b2-carte__texte p + p, .b2-etape__texte p + p { margin-top: 1.2em; }
.b2-texte { color: var(--b2-texte-gris); }
.b2-texte strong { font-weight: 700; }
.b2-texte ul { margin-top: 1.2em; padding-left: 1.2em; list-style: disc; }
.b2-texte li + li { margin-top: .5em; }

.b2-svg { flex: none; }
.b2-picto {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none;
    background: var(--b2-exp); color: #fff;
}
.b2-picto .b2-svg { max-width: 30px; max-height: 32px; width: auto; height: auto; }

.b2-bouton {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 45px; min-width: 184px; padding: 14px 15px;
    background: var(--b2-exp); color: #fff;
    font-family: var(--b2-titre); font-size: 16px; text-transform: uppercase; text-decoration: none;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.b2-bouton:hover, .b2-bouton:focus-visible { background: #000; color: #fff; }

/* Sections : 2 × 67 px entre deux sections blanches, comme la maquette ; les fonds gris ou noirs
   portent leur propre marge intérieure. */
.b2-section { padding-block: var(--b2-esp); }
.b2-sombre, .b2-gris { margin-block: var(--b2-esp); padding-block: clamp(56px, 6.7vw, 96px); }
.b2-sombre { background: #000; color: #fff; }
.b2-sombre .b2-intro { color: #fff; }
.b2-gris { background: var(--b2-fond-gris); }
.b2-gris + .b2-section:not(.b2-gris, .b2-sombre), .b2-sombre + .b2-section:not(.b2-gris, .b2-sombre) { padding-top: var(--b2-esp); }

/* Titre de section à gauche, introduction alignée sur la seconde colonne de cartes. */
.b2-entete-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--b2-ecart); align-items: start; margin-bottom: 68px; }
.b2-entete-section--metiers { grid-template-columns: 370px minmax(0, 542px); }
.b2-entete-section--serre { grid-template-columns: 470px minmax(0, 279px); }
.b2-entete-section--centre { grid-template-columns: 1fr; text-align: center; }
.b2-entete-section .b2-intro { padding-top: 12px; }

/* ------------------------------------------------------------------ En-tête */
.b2-entete { position: relative; z-index: 50; color: #000; }
.b2-entete--photo { position: absolute; inset: 0 0 auto; color: #fff; }
.b2-entete__inner {
    width: min(var(--b2-max), calc(100% - 2 * var(--b2-gut)));
    margin-inline: auto;
    padding-top: 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
}
.b2-entete__logo { justify-self: start; }
.b2-entete__logo img { width: 88px; height: 113px; }
.b2-nav { display: flex; gap: 42px; margin-top: 36px; }
.b2-nav__item { position: relative; display: flex; align-items: center; }
.b2-nav__lien {
    display: inline-flex; align-items: center; gap: 6px;
    padding-block: 3px;
    font-family: var(--b2-titre); font-size: 12px; line-height: 1.2; text-transform: uppercase; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
    transition: background-size .25s;
}
.b2-nav__lien:hover, .b2-nav__lien:focus-visible, .b2-nav__lien[aria-current], .b2-nav__item.est-actif > .b2-nav__lien,
.b2-nav__item--parent:hover > .b2-nav__lien { background-size: 100% 1px; }
.b2-nav__ouvrir--seul { display: inline-flex; align-items: center; height: 20px; padding-left: 5px; }
.b2-nav__chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.b2-nav__item--parent.est-ouvert .b2-nav__chevron { transform: translateY(1px) rotate(225deg); }
.b2-nav__sous {
    position: absolute; top: 100%; left: -18px;
    min-width: 250px; width: max-content; padding: 20px 18px 12px;
    display: flex; flex-direction: column;
    background: transparent;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.b2-nav__sous::before { content: ""; position: absolute; inset: 10px 0 0; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); z-index: -1; }
.b2-nav__item--parent:hover > .b2-nav__sous, .b2-nav__item--parent:focus-within > .b2-nav__sous, .b2-nav__item--parent.est-ouvert > .b2-nav__sous {
    opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s;
}
.b2-nav__sous-lien {
    padding: 9px 0; white-space: nowrap; color: #000; text-decoration: none;
    font-family: var(--b2-titre); font-size: 12px; text-transform: uppercase;
    border-bottom: 1px solid var(--b2-bordure);
}
.b2-nav__sous-lien:last-child { border-bottom: 0; }
.b2-nav__sous-lien:hover, .b2-nav__sous-lien:focus-visible, .b2-nav__sous-lien[aria-current] { color: var(--b2-rouge); }

.b2-raccourcis { justify-self: end; display: flex; gap: 22px; margin-top: 36px; }
.b2-raccourci { display: block; color: var(--b2-rouge); transition: transform .2s, color .2s; }
.b2-raccourci .b2-svg { width: 20px; height: 20px; }
.b2-raccourci:hover, .b2-raccourci:focus-visible { transform: translateY(-2px); color: currentColor; }
.b2-entete .b2-raccourci:hover { color: inherit; }
.b2-entete .b2-raccourci:hover .b2-svg { color: var(--b2-noir); }
.b2-entete--photo .b2-raccourci:hover .b2-svg { color: #fff; }

.b2-entete__cta { justify-self: end; margin-top: 26px; }
.b2-entete--photo .b2-entete__cta:hover, .b2-entete--photo .b2-entete__cta:focus-visible { background: #fff; color: #000; }
.b2-burger { display: none; justify-self: end; width: 44px; height: 44px; margin-top: 30px; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 8px; }
.b2-burger span { display: block; height: 2px; background: currentColor; }

.b2-panneau { position: fixed; inset: 0; z-index: 1000; background: #fff; color: #000; overflow-y: auto; display: flex; flex-direction: column; padding: 20px var(--b2-gut) 32px; }
.b2-panneau__haut { display: flex; justify-content: space-between; align-items: flex-start; }
.b2-panneau__haut img { width: 62px; height: 80px; }
.b2-panneau__fermer { position: relative; width: 44px; height: 44px; }
.b2-panneau__fermer span { position: absolute; left: 10px; right: 10px; top: 21px; height: 2px; background: currentColor; transform: rotate(45deg); }
.b2-panneau__fermer span + span { transform: rotate(-45deg); }
.b2-panneau__nav { display: flex; flex-direction: column; gap: 22px; margin-block: 40px; }
.b2-panneau__nav .b2-nav__item { flex-direction: column; align-items: flex-start; }
.b2-panneau__nav .b2-nav__lien { font-size: 24px; }
.b2-panneau__nav .b2-nav__sous { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 8px 0 0 16px; border-left: 2px solid var(--b2-rouge); margin-top: 10px; }
.b2-panneau__nav .b2-nav__sous::before { display: none; }
.b2-panneau__nav .b2-nav__sous-lien { font-size: 15px; border: 0; padding: 7px 0; }
/* Icônes à droite : le bouton flottant des préférences cookies (Cronos) occupe le coin bas gauche. */
.b2-panneau__bas { margin-top: auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.b2-panneau__bas .b2-raccourcis { margin: 0; }

/* ------------------------------------------------------------------ Tuiles photo (projets, métiers, antennes) */
.b2-grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--b2-ecart); }
.b2-tuile {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 635 / 332;
    background: #222; color: #fff; text-decoration: none;
}
.b2-tuile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); transition: background-color .3s; }
.b2-tuile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.b2-tuile:hover .b2-tuile__img, a.b2-tuile:focus-visible .b2-tuile__img { transform: scale(1.04); }
a.b2-tuile:hover::after { background: rgba(0, 0, 0, .5); }
.b2-tuile__corps { position: absolute; z-index: 1; inset: auto 33px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.b2-tuile__titre { font-size: var(--b2-t30); margin-top: 18px; }
.b2-tuile__texte { margin-top: 10px; font-size: var(--b2-t20); color: #fff; }
.b2-tuile__texte p { margin: 0; }

.b2-tuile--projet .b2-tuile__corps { inset: auto 40px 40px; gap: 14px; }
.b2-tuile--projet .b2-tuile__titre { margin: 0; }
.b2-etiquette {
    display: inline-flex; align-items: center; min-height: 17px; padding: 0 3px 1px;
    background: var(--b2-exp); color: #fff; text-decoration: none;
    font-size: 12px; font-weight: 400; text-transform: uppercase; line-height: 1.2;
}
.b2-etiquette:hover, .b2-etiquette:focus-visible { background: #fff; color: var(--b2-exp); }
.b2-lieu { display: inline-flex; align-items: center; gap: 3px; color: var(--b2-gris-clair); font-size: 12px; font-weight: 400; }
.b2-lieu .b2-svg { width: 9px; height: 11px; color: var(--b2-gris-clair); }

/* ------------------------------------------------------------------ Cartes grises (atouts, engagements du bureau) */
.b2-cartes { display: grid; gap: var(--b2-ecart); margin-top: 53px; }
.b2-cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b2-cartes--3 { grid-template-columns: repeat(3, minmax(0, 313px)); justify-content: center; margin-top: 89px; }
.b2-carte { background: var(--b2-fond-gris); padding: 34px 31px 39px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-height: 367px; }
.b2-cartes--3 .b2-carte { min-height: 316px; gap: 24px; }
.b2-carte__titre { font-size: var(--b2-t25); }
.b2-carte__texte { font-size: var(--b2-t20); max-width: 233px; }

/* ------------------------------------------------------------------ Ouverture de l'accueil
   Ouverture, bandeau et chiffres rognent leur photo : la parallaxe (main.js) la décale et l'agrandit,
   elle déborderait sinon hors du voile sombre. */
.b2-ouverture { position: relative; overflow: hidden; min-height: clamp(560px, 53.9vw, 900px); display: flex; align-items: flex-end; color: #fff; background: #111; }
.b2-ouverture::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.b2-ouverture__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2-ouverture__corps { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 105px; padding-bottom: 81px; }
.b2-ouverture__texte { width: 507px; flex: none; font-size: var(--b2-t20); }
.b2-ouverture__texte p + p { margin-top: 0; }

/* ------------------------------------------------------------------ Derniers projets et onglets */
.b2-projets { padding-top: 101px; }
.b2-onglets { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 64px; row-gap: 16px; margin-block: 48px 48px; }
.b2-onglet {
    position: relative; padding-block: 5px 9px;
    font-family: var(--b2-corps); font-weight: 700; font-size: var(--b2-t20); line-height: 1.2;
    text-transform: uppercase; text-decoration: none; color: var(--b2-gris-clair);
    transition: color .2s;
}
.b2-onglet::before, .b2-onglet::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--b2-exp); transform: scaleX(0); transition: transform .25s; }
.b2-onglet::before { top: 0; }
.b2-onglet::after { bottom: 0; }
.b2-onglet:hover, .b2-onglet:focus-visible { color: var(--b2-exp); }
.b2-onglet:hover::before, .b2-onglet:hover::after,
.b2-onglet:focus-visible::before, .b2-onglet:focus-visible::after { transform: scaleX(1); }
.b2-onglet[aria-pressed="true"], .b2-onglet[aria-current] { color: #000; }
.b2-onglet[aria-pressed="true"]::before, .b2-onglet[aria-pressed="true"]::after,
.b2-onglet[aria-current]::before, .b2-onglet[aria-current]::after { transform: scaleX(1); }
.b2-onglets--pages { margin-block: 48px 0; }

/* ------------------------------------------------------------------ Rails (Swiper) : jusqu'au bord droit de la fenêtre */
.b2-rail { position: relative; margin-right: calc((100% - 100vw) / 2); }
.b2-rail .swiper { overflow: visible; }
.b2-rail .swiper-wrapper { display: flex; gap: var(--b2-ecart); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b2-rail .swiper-wrapper::-webkit-scrollbar { display: none; }
.b2-rail .swiper-slide { flex: 0 0 var(--b2-carte, min(635px, 80vw)); width: var(--b2-carte, min(635px, 80vw)); scroll-snap-align: start; }
.b2-rail.est-swiper .swiper-wrapper { overflow: visible; gap: 0; scroll-snap-type: none; }
.b2-rail.est-swiper .swiper { overflow: hidden; }
/* La section coupe ce qui dépasse à droite, sans barre de défilement horizontale. */
.b2-projets, .b2-engagements, .b2-domaines, .b2-accompagnement, .b2-realisations { overflow-x: clip; }
.b2-rail .swiper-slide.b2-tuile { aspect-ratio: 635 / 332; height: auto; }
.b2-rail__nav { display: flex; gap: var(--b2-ecart); margin-top: 24px; }
.b2-rail:not(.est-swiper) .b2-rail__nav, .b2-rail.est-verrouille .b2-rail__nav { display: none; }
.b2-rail__fleche { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; transition: background-color .2s, color .2s, opacity .2s; }
.b2-rail__fleche .b2-svg { width: 17px; height: 18px; }
.b2-rail__fleche--prec .b2-svg { transform: rotate(-90deg); }
.b2-rail__fleche--suiv .b2-svg { transform: rotate(90deg); }
.b2-rail__fleche:hover, .b2-rail__fleche:focus-visible { background: var(--b2-exp); border-color: var(--b2-exp); color: #fff; }
.b2-rail__fleche:disabled, .b2-rail__fleche.swiper-button-disabled { opacity: .3; pointer-events: none; }
.b2-sombre .b2-rail__fleche { color: #fff; }

/* ------------------------------------------------------------------ Métiers et domaines (fond noir) */
.b2-metiers .b2-entete-section { align-items: center; margin-bottom: 53px; }
.b2-metiers .b2-entete-section .b2-intro { padding-top: 0; }
.b2-domaines .b2-h2 { margin-bottom: 62px; }
.b2-accompagnement .b2-entete-section { margin-bottom: 55px; }
.b2-domaines .b2-tuile__texte { max-width: 542px; }

/* ------------------------------------------------------------------ Chiffres clés */
.b2-chiffres { margin-top: 44px; position: relative; overflow: hidden; min-height: clamp(520px, 55.9vw, 900px); display: flex; align-items: flex-end; color: #fff; background: #000; }
.b2-chiffres::after { content: ""; position: absolute; inset: 0; background: linear-gradient(114deg, rgba(0, 0, 0, 0) 0%, #000 77%); }
.b2-chiffres__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2-chiffres__corps { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-bottom: 102px; }
.b2-chiffres__liste { margin: 0; display: grid; grid-template-columns: repeat(2, 233px); column-gap: 90px; row-gap: 67px; margin-right: -3px; }
.b2-chiffre { text-align: center; }
.b2-chiffre__valeur { font-family: var(--b2-titre); font-size: var(--b2-t50); line-height: 1.1; text-transform: uppercase; }
.b2-chiffre__libelle { margin: 0; color: var(--b2-gris-clair); font-size: var(--b2-t20); }

/* ------------------------------------------------------------------ Étapes numérotées (engagements, accompagnement) */
.b2-engagements { margin-top: 0; padding-top: clamp(56px, 7.7vw, 111px); }
.b2-chiffres + .b2-engagements { margin-top: 0; padding-top: clamp(56px, 7.7vw, 111px); }
.b2-engagements .b2-entete-section { margin-bottom: 61px; }
.b2-etape { background: var(--b2-fond-gris); padding: 60px 40px 40px; min-height: 264px; height: auto; }
.b2-etape--blanc { background: #fff; min-height: 304px; }
.b2-numero {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: var(--b2-rouge); color: #fff;
    font-family: var(--b2-titre); font-size: 30px; line-height: 1;
}
.b2-accompagnement .b2-numero { color: var(--b2-fond-gris); }
.b2-etape__titre { margin-top: 28px; font-size: var(--b2-t30); line-height: 36px; letter-spacing: .013em; }
.b2-etape__texte { margin-top: 16px; font-size: var(--b2-t20); line-height: 1.4; letter-spacing: -.02em; max-width: 566px; }

/* ------------------------------------------------------------------ Antennes */
.b2-antennes--centre .b2-entete-section { margin-bottom: 68px; }

/* ------------------------------------------------------------------ Pages intérieures : ouvertures */
.b2-ouverture-page { display: grid; grid-template-columns: 1fr 1fr; gap: var(--b2-ecart); align-items: center; padding-top: 30px; }
.b2-ouverture-page__corps { width: auto; margin: 0; padding-left: max(var(--b2-gut), calc((100% - var(--b2-max)) / 2)); padding-left: max(var(--b2-gut), calc((100vw - var(--b2-max)) / 2)); padding-right: 20px; }
.b2-ouverture-page .b2-h1 { max-width: 612px; }
.b2-ouverture-page__texte { margin-top: 23px; max-width: 507px; color: var(--b2-texte-gris); }
.b2-ouverture-page__visuel { position: relative; aspect-ratio: 715 / 444; background: #222; }
.b2-ouverture-page__visuel::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.b2-ouverture-page__img { width: 100%; height: 100%; object-fit: cover; }
.b2-engagement { padding-top: 92px; }

.b2-ouverture-centre { padding-top: 49px; padding-bottom: 0; }
.b2-ouverture-centre .b2-h1 { max-width: 612px; margin-inline: auto; }

/* ------------------------------------------------------------------ Équipe et partenaires : volets */
.b2-equipe { padding-top: clamp(56px, 5.6vw, 80px); }
.b2-equipe .b2-h2 { margin-bottom: 36px; }
.b2-equipe + .b2-antennes { padding-top: 0; }
.b2-accordeons { border-top: 1px solid #000; }
.b2-accordeon { border-bottom: 1px solid #000; }
.b2-accordeon__titre { font-size: var(--b2-t30); line-height: 36px; letter-spacing: .013em; }
.b2-accordeon__bouton {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 24px 0 27px; text-align: left; font-family: inherit; text-transform: inherit; letter-spacing: inherit;
}
.b2-accordeon__fleche { width: 34px; height: 37px; transform: rotate(180deg); transition: transform .3s, color .2s; }
.b2-accordeon__bouton[aria-expanded="true"] .b2-accordeon__fleche { transform: rotate(225deg); }
.b2-accordeon__bouton:hover .b2-accordeon__fleche { color: var(--b2-rouge); }
.b2-accordeon__panneau { padding: 10px 0 61px; }

.b2-trombi { display: grid; grid-template-columns: repeat(3, 359px); justify-content: center; gap: var(--b2-ecart); }
.b2-personne { background: #fff; padding: 33px 35px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.b2-personne__photo { width: 288px; height: 242px; object-fit: cover; object-position: 50% 25%; margin-bottom: 20px; }
.b2-personne__nom { font-family: var(--b2-titre); text-transform: uppercase; line-height: 36px; letter-spacing: .013em; }
.b2-personne__prenom { display: block; font-size: var(--b2-t25); }
.b2-personne__famille { display: block; font-size: var(--b2-t30); color: var(--b2-rouge); }
.b2-personne__poste { margin-top: 12px; font-size: var(--b2-t20); line-height: 1.4; letter-spacing: -.02em; }
.b2-personne--sans-photo { padding-block: 28px; justify-content: center; }

.b2-partenaires { padding-top: 69px; }
.b2-partenaires .b2-accordeon__panneau { padding: 10px 0 51px; }
.b2-logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 21px; }
.b2-logo { aspect-ratio: 165 / 132; display: flex; align-items: center; justify-content: center; background: #fff; }
.b2-logo__img { width: 100%; height: 100%; object-fit: contain; }

/* ------------------------------------------------------------------ Expertise */
.b2-bandeau { position: relative; overflow: hidden; min-height: clamp(300px, 26vw, 460px); display: flex; align-items: flex-end; color: #fff; background: #222; }
.b2-bandeau::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.b2-bandeau__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2-bandeau__corps { position: relative; z-index: 1; padding-bottom: 55px; text-align: center; }

.b2-ex-domaines { padding-top: 88px; }
.b2-ex-domaines__grille { display: grid; grid-template-columns: minmax(0, 1fr) 359px; gap: 40px; align-items: start; }
.b2-checks { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 428px)); column-gap: 34px; color: var(--b2-texte-gris); letter-spacing: -.01em; line-height: 29px; }
.b2-checks li { display: flex; gap: 10px; align-items: flex-start; }
.b2-checks .b2-svg { width: 22px; height: 22px; margin-top: 3px; color: var(--b2-exp); }
.b2-ex-domaines__visuel { position: relative; aspect-ratio: 359 / 279; background: #222; }
.b2-ex-domaines__visuel::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.b2-ex-domaines__img { width: 100%; height: 100%; object-fit: cover; }
.b2-ex-domaines__visuel .b2-bouton { position: absolute; z-index: 1; left: 50%; bottom: -24px; transform: translateX(-50%); min-width: 184px; white-space: nowrap; }

.b2-presentation { padding-top: 49px; }
.b2-presentation__grille { display: grid; grid-template-columns: 1fr 1fr; gap: var(--b2-ecart); align-items: start; }
.b2-citation { margin: 0; padding-right: 100px; font-size: var(--b2-t30); text-align: right; }
.b2-citation__guillemet { display: inline-block; margin-right: 10px; color: var(--b2-exp); font-size: var(--b2-t50); line-height: .8; vertical-align: top; }
.b2-presentation .b2-texte { max-width: 543px; }

.b2-realisations .b2-h2 { margin-bottom: 50px; }
.b2-real { display: flex; flex-direction: column; align-items: flex-start; height: auto; }
.b2-real__img { width: 100%; aspect-ratio: 235 / 292; object-fit: cover; background: var(--b2-fond-gris); }
.b2-real__titre { margin-top: 25px; font-family: var(--b2-corps); font-weight: 700; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.25; }
.b2-real__lieu { margin-top: 8px; font-size: var(--b2-t20); font-weight: 400; color: var(--b2-texte-gris); }
.b2-real__lien { margin-top: auto; padding-top: 30px; color: var(--b2-exp); font-size: 18px; font-weight: 400; text-underline-offset: 3px; }
.b2-real__lien:hover, .b2-real__lien:focus-visible { color: #000; }

.b2-blocs__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--b2-ecart); }
.b2-bloc { background: var(--b2-fond-gris); padding: 44px 34px 40px; min-height: 386px; }
.b2-bloc__titre { margin-top: 28px; margin-bottom: 22px; font-size: var(--b2-t25); }
.b2-coches li { display: flex; gap: 9px; align-items: flex-start; }
.b2-coches .b2-svg { width: 16px; height: 12px; margin-top: 6px; color: var(--b2-exp); }

.b2-missions__intro { max-width: 699px; margin: 14px auto 0; color: var(--b2-texte-gris); }
.b2-missions__grille { margin-top: 57px; display: grid; grid-template-columns: repeat(3, 359px); justify-content: center; gap: var(--b2-ecart); }
.b2-missions__grille li { min-height: 72px; background: var(--b2-fond-gris); display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--b2-texte-gris); line-height: 24px; letter-spacing: -.01em; }
.b2-missions__grille .b2-svg { width: 16px; height: 12px; color: var(--b2-exp); }

/* ------------------------------------------------------------------ Contact */
.b2-contact__intro { max-width: 700px; margin: 24px auto 0; }
.b2-contact { padding-top: 70px; }
.b2-contact__grille { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
.b2-contact__coord { display: flex; flex-direction: column; gap: var(--b2-ecart); }
.b2-carte--coord { min-height: 0; gap: 16px; padding: 34px; }
.b2-contact__email { margin-top: 14px; }
.b2-contact__form { background: var(--b2-fond-gris); padding: clamp(24px, 3vw, 44px); }
.b2-carte-zone__grille { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; }
.b2-carte-zone__grille .b2-intro { margin-top: 24px; }
.b2-carte-zone__img { width: 100%; max-width: 760px; margin-left: auto; }
.b2-carte-zone { margin-bottom: 0; }

/* Gravity Forms (Orbital) : police et bouton de la charte */
.b2-contact__form .gform_wrapper.gravity-theme, .b2-contact__form .gform-theme--orbital { font-family: var(--b2-corps); --gf-ctrl-font-family: var(--b2-corps); --gf-ctrl-label-font-family-primary: var(--b2-corps); --gf-ctrl-btn-font-family: var(--b2-titre); }
.b2-contact__form .gform_footer .gform_button, .b2-contact__form .gform-theme-button { font-family: var(--b2-titre) !important; text-transform: uppercase; letter-spacing: 0; }
.b2-contact__form .gform_footer .gform_button:hover { --gf-ctrl-btn-bg-color-primary: #000; }
/* L'extension « Styles & Layouts for Gravity Forms » pose ses réglages de l'ancien site en
   « body #gform_wrapper_1 … » : champs #ededed invisibles sur le fond gris, bouton à l'ancien rouge. */
.b2-contact__form .gform_wrapper .gfield input:not([type="submit"], [type="checkbox"], [type="radio"]),
.b2-contact__form .gform_wrapper .gfield textarea,
.b2-contact__form .gform_wrapper .gfield select {
    background: #fff !important; border: 1px solid var(--b2-bordure) !important; border-radius: 0 !important;
    font-family: var(--b2-corps) !important; font-size: 17px !important; font-weight: 400; color: #000;
}
.b2-contact__form .gform_wrapper .gfield input:focus, .b2-contact__form .gform_wrapper .gfield textarea:focus, .b2-contact__form .gform_wrapper .gfield select:focus { border-color: var(--b2-rouge) !important; outline: none; }
.b2-contact__form .gform_wrapper .gfield .gfield_label { color: #000 !important; font-weight: 700; }
.b2-contact__form .gform_wrapper .gform_footer .gform_button {
    background-color: var(--b2-rouge) !important; color: #fff !important; padding: 14px 32px !important; font-size: 16px !important; border: 0 !important; cursor: pointer; transition: background-color .2s;
}
.b2-contact__form .gform_wrapper .gform_footer .gform_button:hover, .b2-contact__form .gform_wrapper .gform_footer .gform_button:focus-visible { background-color: #000 !important; }

/* ------------------------------------------------------------------ Pages simples */
.b2-page__texte { max-width: 860px; color: var(--b2-texte-gris); line-height: 1.45; }
.b2-page__texte h2 { font-family: var(--b2-titre); text-transform: uppercase; font-size: var(--b2-t30); color: #000; margin: 1.6em 0 .6em; }
.b2-page__texte h3 { font-weight: 700; margin: 1.4em 0 .5em; color: #000; }
.b2-page__texte p, .b2-page__texte ul { margin-bottom: 1em; }
.b2-page__texte ul { list-style: disc; padding-left: 1.2em; }

/* ------------------------------------------------------------------ Pied de page */
/* 67 px de fin de section + 10 : l’écart des pages intérieures (69 à 84 px) ; l’accueil en laisse 141. */
.b2-pied { padding: 10px 0 49px; }
.home .b2-pied { padding-top: 74px; }
.b2-carte-zone + .b2-pied { padding-top: 69px; }
.b2-pied__inner { display: grid; grid-template-columns: 141px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 134px; row-gap: 20px; align-items: start; }
.b2-pied__logo { grid-row: 1 / 3; }
.b2-pied__logo img { width: 141px; height: 182px; }
.b2-pied__coord { padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.b2-pied__antenne { display: flex; flex-direction: column; gap: 6px; }
.b2-pied__antenne + .b2-pied__antenne { margin-top: 14px; }
.b2-pied__libelle { font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--b2-rouge); }
.b2-pied__ligne { display: flex; gap: 18px; align-items: flex-start; font-size: var(--b2-t20); line-height: 28px; letter-spacing: -.02em; color: #000; }
.b2-pied__ligne .b2-svg { width: 20px; height: 20px; margin-top: 4px; color: var(--b2-rouge); }
.b2-pied__ligne a { text-decoration: none; }
.b2-pied__ligne a:hover { color: var(--b2-rouge); }
.b2-pied__nav { padding-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 27px; justify-items: end; }
.b2-pied__nav a { font-family: var(--b2-titre); font-size: var(--b2-t25); line-height: 50px; text-transform: uppercase; text-decoration: none; text-align: right; min-width: 223px; transition: color .2s; }
.b2-pied__nav a:hover, .b2-pied__nav a:focus-visible { color: var(--b2-rouge); }
.b2-pied__legal { grid-column: 2 / 4; justify-self: end; align-self: end; font-size: 16px; line-height: 28px; letter-spacing: -.03em; text-align: right; }
.b2-pied__legal a { text-decoration: none; }
.b2-pied__legal a:hover { color: var(--b2-rouge); text-decoration: underline; }

/* ================================================================== Responsive */
@media (max-width: 1279px) {
    .b2-ouverture__corps { gap: 48px; }
    .b2-ouverture__texte { width: 420px; }
    .b2-trombi, .b2-missions__grille { grid-template-columns: repeat(3, minmax(0, 359px)); }
    .b2-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .b2-pied__inner { column-gap: 48px; }
    .b2-entete-section--metiers { grid-template-columns: 300px minmax(0, 542px); }
    .b2-entete-section--serre { grid-template-columns: 360px minmax(0, 279px); }
}

@media (max-width: 1023px) {
    .b2-nav, .b2-entete__cta { display: none; }
    .b2-burger { display: flex; }
    .b2-entete__inner { grid-template-columns: 1fr auto; padding-top: 24px; }
    .b2-entete__logo img { width: 62px; height: 80px; }

    .b2-ouverture__corps { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 48px; }
    .b2-ouverture__texte { width: auto; max-width: 560px; }
    .b2-cartes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2-carte { min-height: 0; }
    .b2-blocs__grille { grid-template-columns: 1fr; }
    .b2-bloc { min-height: 0; }
    .b2-trombi, .b2-missions__grille { grid-template-columns: repeat(2, minmax(0, 359px)); }
    .b2-ex-domaines__grille { grid-template-columns: 1fr; }
    .b2-ex-domaines__visuel { max-width: 520px; margin-bottom: 24px; }
    .b2-presentation__grille, .b2-contact__grille, .b2-carte-zone__grille { grid-template-columns: 1fr; gap: 32px; }
    .b2-citation { padding-right: 0; text-align: left; }
    .b2-ouverture-page { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
    .b2-ouverture-page__corps { padding-inline: var(--b2-gut); }
    .b2-chiffres__corps { justify-content: center; }
    .b2-chiffres__liste { margin-right: 0; column-gap: 40px; }
    .b2-pied__inner { grid-template-columns: 141px 1fr; }
    .b2-pied__nav { grid-column: 2; justify-items: start; }
    .b2-pied__nav a { text-align: left; min-width: 0; }
    .b2-pied__legal { grid-column: 1 / 3; justify-self: start; text-align: left; }
}

@media (max-width: 767px) {
    body, .b2-section, .b2-wrap { text-align: center; }
    .b2-entete-section, .b2-entete-section--metiers, .b2-entete-section--serre { grid-template-columns: 1fr; gap: 16px; text-align: center; margin-bottom: 32px; }
    .b2-entete-section .b2-intro { padding-top: 0; }
    .b2-projets { padding-top: 56px; }
    .b2-onglets { column-gap: 22px; margin-block: 24px 32px; }
    .b2-grille-2, .b2-cartes--4, .b2-cartes--3, .b2-trombi, .b2-missions__grille, .b2-checks { grid-template-columns: 1fr; }
    .b2-cartes--3 { margin-top: 40px; }
    .b2-tuile { aspect-ratio: 4 / 3; }
    .b2-rail .swiper-slide.b2-tuile { aspect-ratio: 4 / 3; }
    .b2-tuile__corps, .b2-tuile--projet .b2-tuile__corps { inset: auto 20px 24px; align-items: center; text-align: center; }
    .b2-carte, .b2-bloc, .b2-etape { align-items: center; text-align: center; padding: 32px 24px; }
    .b2-carte__texte { max-width: none; }
    .b2-etape { display: flex; flex-direction: column; min-height: 0; }
    .b2-ouverture { min-height: 620px; }
    .b2-ouverture__corps { align-items: center; text-align: center; }
    .b2-ouverture-page__corps { text-align: center; }
    .b2-ouverture-page .b2-h1, .b2-ouverture-page__texte { margin-inline: auto; }
    .b2-ouverture-page__texte { margin-top: 24px; }
    .b2-checks { justify-items: center; }
    .b2-checks li, .b2-coches li { justify-content: center; text-align: left; }
    .b2-ex-domaines__visuel { margin-inline: auto; }
    .b2-citation { text-align: center; }
    .b2-chiffres__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; width: 100%; }
    .b2-chiffres__corps { padding-bottom: 56px; }
    .b2-chiffres { min-height: 560px; }
    .b2-rail { margin-right: 0; }
    .b2-rail__nav { justify-content: center; }
    .b2-real { align-items: center; }
    .b2-accordeon__bouton { text-align: left; }
    .b2-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .b2-missions__grille li { justify-content: center; text-align: left; }
    .b2-contact__coord .b2-carte { align-items: center; }
    .b2-pied__ligne { justify-content: center; text-align: left; }
    .b2-pied__inner { grid-template-columns: 1fr; justify-items: center; row-gap: 28px; }
    .b2-pied__logo, .b2-pied__nav, .b2-pied__legal { grid-column: auto; grid-row: auto; justify-self: center; }
    .b2-pied__coord { padding-top: 0; align-items: center; }
    .b2-pied__nav { grid-template-columns: 1fr; justify-items: center; padding-top: 0; }
    .b2-pied__nav a { text-align: center; line-height: 40px; }
    .b2-pied__legal { text-align: center; }
    .b2-pied { padding-top: 72px; }
    .b2-panneau, .b2-panneau__nav .b2-nav__item { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    /* Pas de « transition-duration » sur * : elle crée une transition sur toutes les propriétés
       (transition-property vaut « all » par défaut) et GSAP lit alors une opacité en cours de
       transition, ce qui figeait le contenu à 0. On supprime les transitions, tout simplement. */
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ Hermès (bandeau cookies de Cronos)
   Couleurs réglées dans ses options (seed-be2t.php) ; ici ce que ses réglages ne couvrent pas :
   polices de la charte et angles carrés. Son rayon se règle mal (0 retombe à 16 px dans son script),
   et plusieurs arrondis sont écrits en dur : on les remet tous à zéro. */
html body #hermes-overlay { --hermes-font: var(--b2-corps); --hermes-radius: 0px; }
html body #hermes-overlay, html body #hermes-overlay *, html body #hermes-overlay *::before, html body #hermes-overlay *::after,
html body #hermes-badge, html body #hermes-badge.hermes-badge-btn, html body #hermes-badge * { border-radius: 0 !important; }
html body #hermes-overlay #hermes-modal .hermes-modal-title { font-family: var(--b2-titre) !important; text-transform: uppercase !important; letter-spacing: .01em; }
/* Spécificité à deux identifiants : Hermès impose sa police aux boutons en « #hermes-overlay .hermes-btn … !important ». */
html body #hermes-overlay #hermes-modal button:not(.hermes-btn-back) { font-family: var(--b2-titre) !important; text-transform: uppercase !important; letter-spacing: .02em; font-weight: 400 !important; }
html body #hermes-overlay #hermes-modal .hermes-btn-customize { border: 1px solid var(--b2-bordure) !important; }
/* Les capitales d'Aldrich sont larges : corps de 12 px, sans retour à la ligne ; empilés en mobile. */
html body #hermes-overlay #hermes-modal .hermes-buttons-row .hermes-btn { font-size: 12px !important; letter-spacing: 0; padding: 12px 8px !important; white-space: nowrap; }
@media (max-width: 600px) {
    html body #hermes-overlay #hermes-modal .hermes-buttons-row { flex-direction: column !important; align-items: stretch !important; }
    html body #hermes-overlay #hermes-modal .hermes-buttons-row .hermes-btn { width: 100% !important; font-size: 14px !important; min-height: 46px; }
}
html body #hermes-overlay .hermes-btn-back, html body #hermes-overlay .hermes-modal-desc a { font-family: var(--b2-corps) !important; text-transform: none; }
html body #hermes-badge.hermes-badge-btn { box-shadow: 0 6px 18px rgba(0, 0, 0, .15) !important; }
