/* ============================================================
   THÈME D — bouybouy : inspiré Bouygues Construction
   Blanc dominant · orange Akila en accent · titres CAPS géométriques
   · hero plein-cadre · bandeaux immersifs · marquee · KPI
   ============================================================ */
:root {
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --bg: #ffffff;
  --surface: #f4f5f7;
  --surface-2: #e9ebef;
  --primary: #14171c;
  --text: #34383f;
  --heading: #14171c;
  --text-muted: #6e747c;
  --accent: #fb7a0e;          /* orange Akila (choix utilisateur) */
  --accent-2: #ff9a3c;
  --accent-contrast: #ffffff;
  --green: #008d6e;           /* secondaire RSE (réservé) */
  --border: #e4e7ec;
  --border-strong: #d2d7de;

  --header-bg: #ffffff;

  --cta-bg: #14171c;
  --cta-text: #ffffff;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .06);
  --shadow-md: 0 20px 48px rgba(20, 23, 28, .12);
  --shadow-lg: 0 40px 90px rgba(20, 23, 28, .16);

  /* Footer anthracite */
  --footer-bg: #14171c;
  --footer-text: rgba(255, 255, 255, .66);
  --footer-heading: #ffffff;
  --footer-muted: rgba(255, 255, 255, .45);
  --footer-border: rgba(255, 255, 255, .10);
  --footer-logo: #ffffff;
}

/* ---- Typo : titres CAPS géométriques ---- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.005em; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .76rem; }

/* ---- Header : logo image + menu compact ---- */
.header__logo-img { height: 46px; width: auto; display: block; }
.header__inner { gap: clamp(16px, 2.5vw, 40px); min-height: 84px; }
.header__menu { gap: clamp(10px, 1.25vw, 22px); }
.header__menu a { text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.header__cta { border-radius: 40px; white-space: nowrap; }

/* Bascule en menu burger plus tôt (nav dense en capitales) */
@media (max-width: 1200px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
}
.header__logo-img { max-width: 168px; }
@media (max-width: 560px) { .header__logo-img { height: 40px; } }

/* ---- Boutons pill ---- */
.btn { border-radius: 40px; font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
.btn--accent { background: var(--accent); color: #fff; border: none; }
.btn--accent:hover { background: var(--accent-2); }
.btn--outline { border: 1.5px solid var(--border-strong); }

/* ---- HERO plein-cadre image + overlay ---- */
.hero { position: relative; min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: flex; align-items: center; overflow: hidden;
  background: #14171c center/cover no-repeat;
  background-image: url('/assets/img/bouy-chantier.webp'); }
/* Diaporama de fond : photos variées de projets en fondu enchaîné */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; will-change: opacity, transform; animation: heroFade 30s linear infinite; }
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }
.hero__slide:nth-child(5) { animation-delay: 24s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.04); }
  3% { opacity: 1; }
  18% { opacity: 1; }
  21% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.1); }
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,17,20,.62) 0%, rgba(15,17,20,.5) 45%, rgba(15,17,20,.78) 100%); }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
  .hero__slide:first-child { opacity: 1; }
}
.hero__inner { display: block; position: relative; z-index: 2; }
.hero__media { display: none; }            /* image servie en background CSS */
.hero__content { max-width: 780px; }
.hero__badge { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.hero__badge .dot { background: var(--accent); }
.hero__title { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1; }
.hero__title .accent { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.hero__lead { color: rgba(255,255,255,.86); max-width: 580px; }
.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--outline:hover { background: rgba(255,255,255,.1); }

/* Hero CENTRÉ */
.hero__content { max-width: 940px; margin-inline: auto; text-align: center; }
.hero__lead { margin-inline: auto; max-width: 600px; }
.hero__actions { justify-content: center; }

/* Carrousel de services : un seul mot visible à la fois (les voisins en contour se lisaient comme du texte coupé) */
.hero__rotator {
  position: relative; overflow: hidden; width: 100%; margin: 12px 0 var(--space-xl);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.hero__rotator-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); width: max-content; margin: 0; padding: 0; list-style: none; transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
.hero__rotator-track li {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(1.4rem, 3.2vw, 2.7rem); line-height: 1.05;
  color: transparent; opacity: 0;
  transition: color .4s ease, opacity .4s ease;
}
.hero__rotator-track li.is-active { color: var(--accent); opacity: 1; }

/* ---- Titres de section centrés + tiret orange ---- */
.section__head { text-align: center; margin-inline: auto; }
.section__title { text-transform: uppercase; font-weight: 800; letter-spacing: 0; }
.section__head .section__title::after { content: ""; display: block; width: 56px; height: 4px;
  background: var(--accent); border-radius: 2px; margin: 20px auto 0; }
.section__lead { margin-inline: auto; }

/* ---- KPI / stats surdimensionnés ---- */
/* KPI épurés : sans cases, chiffres centrés + séparateurs fins */
.stats { gap: 0; align-items: center; }
.stat { background: none; border: none; border-radius: 0; text-align: center; padding: var(--space-md) var(--space-lg); position: relative; }
@media (min-width: 760px) {
  .stat:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 1px; height: 60px; background: var(--border); }
}
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.4rem); color: var(--heading); line-height: 1; letter-spacing: -.02em; }
.stat__value .suffix { color: var(--accent); }
.stat__label { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 600; color: var(--text-muted); margin-top: 12px; }

/* ---- Cartes : ligne d'accent au survol ---- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); position: relative; overflow: hidden; transition: transform var(--dur-short), box-shadow var(--dur-short); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-mid, .3s); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card__title { font-family: var(--font-display); font-weight: 700; }
.card__num { color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.case { border-radius: var(--radius-md); overflow: hidden; }

/* ---- Cibles ---- */
.cibles { border-radius: var(--radius-md); overflow: hidden; }
.cible__name { font-family: var(--font-display); font-weight: 700; }

/* ---- CTA band anthracite + courbe ---- */
.cta-band { border-radius: var(--radius-lg); }
.cta-band__title { text-transform: uppercase; font-weight: 800; }

/* ---- Marquee (bandeau défilant) ---- */
.bouy-marquee { background: var(--heading); color: #fff; overflow: hidden; padding: 18px 0; }
.bouy-marquee__track { display: flex; width: max-content; white-space: nowrap; animation: bouy-scroll 30s linear infinite; }
.bouy-marquee__track span { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; padding: 0 28px; }
.bouy-marquee__track span::before { content: "◆"; color: var(--accent); margin-right: 28px; font-size: .7em; }
@keyframes bouy-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bouy-marquee__track { animation: none; } }

/* ---- Bande immersive chantier ---- */
.bouy-band { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.bouy-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bouy-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,17,20,.85) 0%, rgba(15,17,20,.45) 55%, rgba(15,17,20,.15) 100%); }
.bouy-band__inner { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.bouy-band__eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem; }
.bouy-band__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.04; margin-top: 14px; }
.bouy-band__text { color: rgba(255,255,255,.85); margin-top: 16px; max-width: 520px; }
.bouy-band__inner .btn { margin-top: 26px; }

/* ---- Header TRANSPARENT par-dessus le hero (accueil), opaque au scroll ---- */
body.has-hero .site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
body.has-hero .site-header:not([data-scrolled])::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,17,20,.55), transparent);
}
body.has-hero .site-header:not([data-scrolled]) .header__menu a { color: rgba(255,255,255,.92); }
body.has-hero .site-header:not([data-scrolled]) .header__menu a:hover,
body.has-hero .site-header:not([data-scrolled]) .header__menu a[aria-current="page"] { color: #fff; }
.header__logo-img { transition: filter var(--dur-short); }
/* Sur le hero : logo en blanc directement sur la photo (pas de carré "sticker") */
body.has-hero .site-header:not([data-scrolled]) .header__logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.6));
}
body.has-hero .site-header:not([data-scrolled]) .header__burger span { background: #fff; }
body.has-hero .site-header[data-scrolled] { background: var(--bg); border-bottom-color: var(--border); }

/* ---- Bande SERVICES : photo + défilement fantôme (type Bouygues) ---- */
.bouy-services { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px); background: var(--heading); }
.bouy-services__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bouy-services::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,17,20,.58), rgba(15,17,20,.4)); }
.bouy-services > * { position: relative; z-index: 2; }
.bouy-services__eyebrow { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .82rem; margin-bottom: var(--space-xl); }
.bouy-services .bouy-marquee { background: transparent; padding: 0; }
.bouy-services .bouy-marquee__track { animation-duration: 42s; }
.bouy-marquee--ghost .bouy-marquee__track span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.55); padding: 0 26px;
}
.bouy-marquee--ghost .bouy-marquee__track span::before { content: "•"; -webkit-text-stroke: 0; color: var(--accent); margin-right: 26px; font-size: .5em; vertical-align: middle; }
.bouy-marquee__label { color: var(--accent); }

/* ---- Carrousel projets ---- */
.carousel { position: relative; margin-top: var(--space-2xl); }
.carousel__track { display: flex; gap: var(--space-lg); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px var(--space-md); scrollbar-width: none; -ms-overflow-style: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.proj-card { flex: 0 0 340px; max-width: 340px; scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur-short), transform var(--dur-short); }
.proj-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.proj-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.proj-card:hover .proj-card__media img { transform: scale(1.06); }
.proj-card__body { padding: var(--space-lg); }
.proj-card__tag { display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--accent); }
.proj-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 8px; line-height: 1.15; }
.proj-card__desc { color: var(--text-muted); font-size: .92rem; margin-top: 8px; line-height: 1.5; }
.carousel__btn { position: absolute; top: 36%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-md); transition: background var(--dur-short); display: flex; align-items: center; justify-content: center; }
.carousel__btn:hover { background: var(--accent-2); }
.carousel__btn--prev { left: -12px; }
.carousel__btn--next { right: -12px; }
@media (max-width: 600px) { .carousel__btn { display: none; } .proj-card { flex-basis: 280px; } }

/* ---- Bannière photo de page (profils) ---- */
.page-banner { width: 100%; max-height: 400px; overflow: hidden; }
.page-banner img { width: 100%; height: 400px; object-fit: cover; display: block; }

/* ---- Bandeau références (noms clients) ---- */
.ref-logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-lg); }
.ref-logo {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: .8rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 40px;
  padding: 8px 16px; transition: color var(--dur-short), border-color var(--dur-short);
}
.ref-logo:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Mur de logos clients : grille de cartes (ça claque) ---- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: var(--space-xl); }
@media (min-width: 560px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.logo-grid__item {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 18px; min-height: 96px;
  transition: box-shadow var(--dur-short), transform var(--dur-short), border-color var(--dur-short);
}
.logo-grid__item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.logo-grid__item img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
/* Logos carrés ou très textuels (blocs-marques de l'État, emblèmes) : plus hauts pour rester lisibles */
.logo-grid__item img[src*="/ministere-"] { max-height: 76px; }
.logo-grid__item img[src*="/epf-normandie"], .logo-grid__item img[src*="/opac-oise"], .logo-grid__item img[src*="/citya"], .logo-grid__item img[src*="/dgac"] { max-height: 62px; }

/* ---- Cartes références projet ---- */
.ref-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-lg); display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  transition: box-shadow var(--dur-short), transform var(--dur-short);
}
.ref-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ref-card__client { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.ref-card__desc { color: var(--text-muted); font-size: .92rem; line-height: 1.55; }

/* ---- Footer : logo orange ---- */
.footer__logo { color: #fff; }

/* ============================================================
   MÉTIERS — mosaïque d'images (photo + nom en surimpression)
   ============================================================ */
.mosaic { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
.mosaic__tile { position: relative; display: block; min-height: 270px; border-radius: var(--radius-md); overflow: hidden; isolation: isolate; }
.mosaic__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .7s var(--ease-enter, ease); }
.mosaic__tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,17,20,.12) 0%, rgba(15,17,20,.5) 55%, rgba(20,23,28,.9) 100%); transition: background var(--dur-short); }
.mosaic__body { position: relative; z-index: 2; min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); color: #fff; }
.mosaic__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.12rem; line-height: 1.12; letter-spacing: -.01em; color: #fff; }
.mosaic__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: .9rem; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-short), transform var(--dur-short); }
.mosaic__tile:hover .mosaic__img { transform: scale(1.07); }
.mosaic__tile:hover::after { background: linear-gradient(180deg, rgba(251,122,14,.12) 0%, rgba(20,23,28,.5) 50%, rgba(251,122,14,.88) 100%); }
.mosaic__tile:hover .mosaic__more { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .mosaic__img { transition: none; } .mosaic__more { opacity: 1; transform: none; } }
/* 11 métiers : quand la grille ne tombe pas juste, la première tuile (Diagnostic structure, image HD) s'étire sur 2 colonnes */
@media (min-width: 620px) and (max-width: 979px) { .mosaic__tile:first-child:nth-last-child(2n+1) { grid-column: span 2; } }
@media (min-width: 980px) { .mosaic__tile:first-child:nth-last-child(3n+2) { grid-column: span 2; } }

/* ============================================================
   IMPLANTATION NATIONALE — carte de France + marqueurs agences
   ============================================================ */
.fr-map-block { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .fr-map-block { grid-template-columns: 1.02fr .98fr; } }
.fr-map { position: relative; }
.fr-map__svg { width: 100%; height: auto; max-width: 540px; margin-inline: auto; display: block; overflow: visible; }
.fr-map__land path { fill: #fff; stroke: var(--border-strong); stroke-width: 1; stroke-linejoin: round; }
.fr-map__pin circle { fill: var(--accent); stroke: #fff; stroke-width: 2; cursor: pointer; transition: fill var(--dur-short); }
.fr-map__pin:hover circle { fill: var(--accent-2); }
.fr-map__pin--siege circle { fill: var(--accent); }
.fr-map__label { fill: var(--heading); font-family: var(--font-display); font-size: 12.5px; font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
.fr-map__label--siege { fill: var(--accent); font-weight: 700; }
.fr-map__halo { fill: var(--accent); stroke: none; transform-origin: center; animation: frPulse 2.6s ease-out infinite; }
@keyframes frPulse { 0% { r: 7px; opacity: .5; } 70% { r: 18px; opacity: 0; } 100% { r: 18px; opacity: 0; } }
.fr-map-block__content .eyebrow { display: block; margin-bottom: 12px; }
.fr-map-block__content .section__title { text-align: left; text-transform: uppercase; font-weight: 800; }
.fr-map-block__content .section__title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin: 18px 0 0; }
.fr-map-block__content .section__lead { margin-inline: 0; }
.fr-points { list-style: none; margin: var(--space-lg) 0; padding: 0; display: grid; gap: 14px; }
.fr-point { position: relative; padding-left: 30px; color: var(--text); line-height: 1.5; }
.fr-point::before { content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, #fff); border: 2px solid var(--accent); }
.fr-point strong { color: var(--heading); font-family: var(--font-display); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .fr-map__halo { animation: none; } }

/* ============================================================
   RÉFÉRENCES — accords-cadres, mur de logos, teaser accueil
   (sections écrites sans condition de thème ; stylées ici, thème actif)
   ============================================================ */
/* Teaser accueil : grand chiffre + grille de 8 logos */
.ac-teaser { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .ac-teaser { grid-template-columns: .85fr 1.15fr; } }
.ac-teaser__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.2rem, 9vw, 7rem); line-height: .9; letter-spacing: -.04em; color: var(--accent); margin-top: 14px; }
.ac-teaser__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.12; margin-top: 10px; max-width: 460px; color: var(--heading); }
.ac-teaser__num--text { font-size: clamp(2.4rem, 4.2vw, 3.6rem); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.ac-teaser__text { color: var(--text-muted); margin-top: var(--space-lg); max-width: 520px; }
.ac-teaser .btn { margin-top: var(--space-xl); }
.logo-grid--4 { margin-top: 0; }
@media (min-width: 560px) { .logo-grid--4 { grid-template-columns: repeat(4, 1fr); } }
a.logo-grid__item { color: inherit; }
.logo-grid__badge { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--heading); text-align: center; line-height: 1.25; }

/* Mur de logos par typologie */
.logo-wall { margin-top: var(--space-2xl); }
.logo-wall:first-of-type { margin-top: 0; }
.logo-wall__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.logo-wall__title::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.logo-wall__count { font-size: .72rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 999px; padding: 3px 9px; }
.logo-wall .logo-grid { margin-top: var(--space-lg); }
@media (min-width: 860px) { .logo-wall .logo-grid { grid-template-columns: repeat(4, 1fr); } } /* 16 / 11 / 11 / 10 logos : rangées équilibrées */
.logo-wall__note { margin-top: var(--space-xl); font-size: .82rem; text-align: center; }

/* Cartes accords-cadres */
.ac-card { gap: 12px; }
.ac-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; }
.ac-card__logo { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.ac-card__logo[src*="/ministere-"] { max-height: 64px; }
.ac-card__logo[src*="/epf-normandie"], .ac-card__logo[src*="/opac-oise"] { max-height: 54px; }
.ac-card__badge { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--heading); line-height: 1.2; }
.ac-card__type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); white-space: nowrap; }
.ac-card .ref-card__client { font-size: 1.1rem; line-height: 1.2; }
.ac-card .ref-card__desc { color: var(--text); }
.ref-group { margin-top: var(--space-2xl); }
.ref-group:first-of-type { margin-top: 0; }
.ref-group .grid { margin-top: var(--space-lg); }

/* ============================================================
   NOTRE DÉMARCHE — 5 étapes, référentiels / essais / livrables, garanties
   ============================================================ */
.process { list-style: none; margin: 0; padding: 0; gap: var(--space-xl) var(--space-lg); }
@media (min-width: 760px) { .process--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .process--5 { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; border-top: 2px solid var(--border-strong); padding-top: var(--space-md); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.step__num { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.step__num::before { content: "Étape "; text-transform: uppercase; }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; margin-top: 10px; color: var(--heading); }
.step__desc { font-size: .9rem; line-height: 1.55; margin-top: 8px; }
.demarche-grid { display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); }
@media (min-width: 860px) { .demarche-grid { grid-template-columns: repeat(3, 1fr); } }
.demarche-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }
.demarche-col__title { font-family: var(--font-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--heading); }
.demarche-list { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: 8px; }
.demarche-list li { position: relative; padding-left: 18px; font-size: .92rem; line-height: 1.45; color: var(--text); }
.demarche-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.garanties { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.garantie { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--heading); background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; }
.garantie__icon { color: var(--accent); font-weight: 800; }

/* ============================================================
   FICHES PROJET — galerie d'extraits de rapport, encart « En bref »
   ============================================================ */
a.proj-card { color: inherit; }
.post-body.prose ul.check-list { list-style: none; padding-left: 0; margin-top: var(--space-md); } /* pas de puce en plus de la coche */
.post-body.prose ul.check-list li { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.gallery__item { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.gallery__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }
.gallery__item--contain img { object-fit: contain; padding: 10px; background: #fff; } /* schémas, radargrammes, logs : sans recadrage */
.gallery__item figcaption { padding: 10px 12px; font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.post-card__label { margin-top: var(--space-lg); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--text-muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-row .svc-tag { white-space: normal; font-size: .74rem; padding: 3px 9px; }

/* Bandeau de renvoi vers les références (page Nos projets) */
.ref-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.ref-band__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.15; margin-top: 10px; max-width: 600px; color: var(--heading); }
.ref-band__text { color: var(--text-muted); margin-top: 10px; max-width: 600px; }

/* ---- Diagnostic structurel obligatoire : bandeau accueil, encarts, FAQ ---- */
.reg-banner { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.reg-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 16px; }
.reg-banner__tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.reg-banner__text { flex: 1 1 360px; margin: 0; color: var(--text); font-size: .98rem; }
.reg-banner__text strong { color: var(--heading); }
.reg-banner__link { font-weight: 700; color: var(--accent); white-space: nowrap; }
.reg-banner__link:hover .arrow, .reg-callout:hover .arrow { transform: translateX(3px); }
.reg-callout { display: grid; gap: 8px; justify-items: start; margin-top: var(--space-xl); padding: var(--space-lg); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); transition: border-color var(--dur-short); }
.reg-callout:hover { border-color: var(--accent); }
.reg-callout strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--heading); }
.reg-callout > span:not(.reg-banner__tag):not(.reg-callout__more) { color: var(--text-muted); font-size: .95rem; }
.reg-callout__more { font-weight: 700; color: var(--accent); font-size: .92rem; }
.reg-callout--wide { margin: 0 0 var(--space-2xl); }
.reg-prose p { margin-top: var(--space-md); color: var(--text-muted); line-height: 1.7; max-width: 68ch; }
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform var(--dur-short); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq details p { margin: 0 0 18px; color: var(--text-muted); line-height: 1.7; max-width: 70ch; }
.reg-sources { max-width: 820px; margin: var(--space-xl) auto 0; font-size: .85rem; color: var(--text-muted); }
.reg-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.nav-badge { display: inline-block; margin-left: 6px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 6px; vertical-align: 1px; }

/* ---- Photos d'équipe et salons (photos du client, 25/09/2026) ---- */
.team-home__media { display: block; }
.team-home__img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.team-home__body { display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); align-items: start; }
@media (min-width: 900px) { .team-home__body { grid-template-columns: 1fr 1fr; gap: var(--space-3xl); } }
.team-home__title { text-align: left; margin-top: var(--space-sm); }
.team-home__text { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; max-width: 56ch; }
.team-home__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); align-items: center; }
.event-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .event-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.event { margin: 0; display: grid; gap: 12px; align-content: start; }
.event img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-md); }
.event figcaption { display: grid; gap: 2px; font-size: .9rem; color: var(--text-muted); line-height: 1.45; }
.event figcaption strong { font-family: var(--font-display); font-size: 1rem; color: var(--heading); }
.team-gallery { display: grid; gap: var(--space-lg); }
@media (min-width: 760px) { .team-gallery { grid-template-columns: repeat(3, 1fr); } }
.team-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* ---- Menu Nos métiers : 4 groupes (Diagnostics à gauche, les 3 autres empilés à droite) ---- */
.nav-panel--metiers { min-width: 560px; left: -180px; } /* décalé à gauche : le panneau (≈720 px) ne déborde pas de l'écran dès 1201 px */
.nav-col { display: grid; gap: var(--space-lg); align-content: start; min-width: 220px; }
.nav-col .nav-group__all { margin-top: 0; }
.header__mobile .is-group { padding: 14px 0 4px 18px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---- Accueil : « Ils nous font confiance » centré ---- */
.logo-grid--home { max-width: 1000px; margin-inline: auto; }
@media (min-width: 860px) { .logo-grid--home { grid-template-columns: repeat(4, 1fr); } }
.section__foot { display: flex; justify-content: center; margin-top: var(--space-xl); }

/* ---- Page Nos métiers : titres de groupe ---- */
.metier-group__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: var(--space-xl); }
.metier-group__head .eyebrow { margin: 0; }
.metier-group__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--heading); margin: 0; }
.card--reg { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.card--reg .reg-banner__tag { align-self: flex-start; }

/* ---- Photos de terrain (fournies par Akila, 28/09/2026) ---- */
.terrain { margin-top: var(--space-3xl); }
.terrain__title { font-size: 1.4rem; margin-bottom: var(--space-lg); }
.photo-strip { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 640px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .photo-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .photo-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-strip__item { margin: 0; display: grid; gap: 10px; align-content: start; }
.photo-strip__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--surface); }
.photo-strip__item figcaption { font-size: .88rem; line-height: 1.45; color: var(--text-muted); }

/* ---- Nos clients : défilement de logos (non exhaustif) ---- */
.marquee { overflow: hidden; margin-top: var(--space-lg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 16px; margin: 0; padding: 0 8px; list-style: none; }
.marquee__item { width: 200px; min-height: 104px; flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee__list { flex-wrap: wrap; justify-content: center; }
  .marquee__list[aria-hidden] { display: none; }
}

/* ---- À propos : « Notre histoire » en une seule taille de texte (retour client 28/09/2026) ---- */
.histoire__text { font-size: 1.07rem; line-height: 1.75; color: var(--text); max-width: 62ch; }
.histoire__text strong { color: var(--heading); font-weight: 700; }

/* ==========================================================================
   PHOTOS : système éditorial inspiré de mckinsey.com (29/09/2026)
   Règle : une photo est un rectangle à angles vifs ; l'interface (boutons,
   champs, cartes de texte) garde ses arrondis. Un seul réglage : --radius-media.
   ========================================================================== */
:root { --ink: #0f1114; --radius-media: 0; --accent-ink: #b85000; }

/* ---- Angles vifs sur toutes les photos et cartes à image ---- */
.mosaic__tile, .article-card, .article-card__media, .proj-card, .proj-card__media,
.team-home__img, .team-gallery img, .event img, .photo-strip__item img, .histoire__img,
.gallery__item, .gallery__item img, .case, .case img { border-radius: var(--radius-media); }
.histoire__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---- Bandeau des pages métiers ---- */
.metier-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.metier-hero__inner { position: relative; z-index: 2; padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 76px); }
.metier-hero .breadcrumb--light a { color: rgba(255,255,255,.8); }
.metier-hero .breadcrumb--light span { color: rgba(255,255,255,.6); }
.metier-hero .breadcrumb--light a:hover { color: #fff; }
.metier-hero__eyebrow { color: var(--accent); }
.metier-hero__title { color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin-top: var(--space-sm); max-width: 14ch; text-wrap: balance; }
.metier-hero__lead { margin-top: var(--space-lg); font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 34ch; }
.metier-hero__media { margin: 0; }
.metier-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.metier-hero__caption { font-size: .78rem; line-height: 1.4; color: rgba(255,255,255,.8); }
.metier-hero__caption::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
@media (min-width: 900px) {
  .metier-hero--photo { min-height: 440px; display: flex; align-items: center; }
  .metier-hero--photo .metier-hero__inner { width: 100%; }
  .metier-hero--photo .metier-hero__inner > * { max-width: min(46%, 560px); }
  .metier-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: min(50%, 760px); }
  .metier-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(15,17,20,.55) 16%, rgba(15,17,20,0) 42%),
                linear-gradient(0deg, rgba(15,17,20,.7) 0%, rgba(15,17,20,0) 34%); }
  .metier-hero__caption { position: absolute; z-index: 2; right: 24px; bottom: 18px; max-width: min(420px, 70%); text-align: right; text-wrap: balance; }
}
@media (max-width: 899px) {
  .metier-hero--photo { display: flex; flex-direction: column-reverse; }
  .metier-hero__media img { aspect-ratio: 16 / 10; height: auto; }
  .metier-hero__caption { padding: 10px 20px 14px; }
}

/* ---- Introduction du métier : phrase d'accroche ---- */
.metier-statement { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.5; font-weight: 500; color: var(--heading); max-width: 40ch; }

/* ---- Étiquette de section avec filet (« SUR LE TERRAIN ») ---- */
.rule-label { display: flex; align-items: center; gap: 16px; margin: 0 0 var(--space-lg); font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.rule-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---- Galerie « Sur le terrain » : figures numérotées façon rapport ---- */
.terrain-grid { display: grid; gap: var(--space-lg); }
.terrain-grid__item { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; }
.terrain-grid__frame { overflow: hidden; min-height: 0; background: var(--surface); }
.terrain-grid__frame img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.terrain-grid__item:hover .terrain-grid__frame img { transform: scale(1.03); }
.terrain-grid__item figcaption, .photo-strip__item figcaption { font-size: .86rem; line-height: 1.45; color: var(--text-muted); }
.fig-num { display: inline-block; margin-right: 8px; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
@media (min-width: 760px) {
  .terrain-grid--3 { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; height: 600px; }
  .terrain-grid--3 .terrain-grid__item:first-child { grid-row: span 2; }
  .terrain-grid--2 { grid-template-columns: 1fr 1fr; height: 460px; }
  .terrain-grid--1 { height: 480px; }
}
@media (max-width: 759px) { .terrain-grid__frame img { aspect-ratio: 4 / 3; height: auto; } }

/* ---- Bandes de photos (À propos, décret) et extraits de rapport : zoom au survol ---- */
.photo-strip__item img, .gallery__item img { cursor: zoom-in; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.photo-strip__item { overflow: hidden; }
.photo-strip__item:hover img { transform: scale(1.03); }
.gallery__item { border: 0; background: transparent; }
.gallery__item img { background: var(--surface); }
.gallery__item figcaption { padding: 10px 0 0; }

/* ---- Visionneuse plein écran ---- */
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; background: rgba(10,12,15,.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(10,12,15,.94); }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 80vh; object-fit: contain; }
.lightbox__caption { padding: 14px 20px 26px; font-size: .92rem; color: rgba(255,255,255,.82); text-align: center; max-width: 70ch; }
.lightbox__close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__close:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }

@media (prefers-reduced-motion: reduce) {
  .terrain-grid__frame img, .photo-strip__item img, .gallery__item img { transition: none; }
  .terrain-grid__item:hover .terrain-grid__frame img, .photo-strip__item:hover img { transform: none; }
}

/* Adresses e-mail en gras et en noir (retours client 05/11 et 10/11/2026) */
a[href^="mailto:"]:not(.btn) { font-weight: 700; color: var(--heading); }
a[href^="mailto:"]:not(.btn):hover { color: var(--accent); }
/* Pied de page sombre : « noir » y serait illisible, l'e-mail reste en blanc et en gras */
.site-footer a[href^="mailto:"] { color: var(--footer-heading, #fff); }
.form__status { margin-top: 12px; font-size: .92rem; font-weight: 600; }
.form__status--ok { color: #1f7a4d; }
.form__status--err { color: #b42318; }
