/*
Theme Name: SOGETRAP
Theme URI: https://sogetrapsarl.com
Author: SOGETRAP SARL
Description: Thème bloc sur mesure de SOGETRAP SARL — génie électrique et travaux publics. Contenu entièrement modifiable dans l'éditeur.
Version: 1.0.1792452484
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sogetrap
Tags: block-theme, full-site-editing, business
*/

/* ===== src/styles/global.css ===== */
/* ==========================================================================
   SOGETRAP — Système de design « Feuille de plan »
   ========================================================================== */

:root {
  /* Couleurs */
  --nuit: #081827;
  --nuit-2: #0d2235;
  --plan: #0a1f33;          /* fond « bleu de plan » de la section signature */
  --acier: #203b50;
  --acier-2: #2b4a62;
  --calque: #f5f6f3;
  --calque-2: #eaece7;
  --gris: #9ca8b0;
  --gris-fonce: #56636d;    /* texte secondaire sur fond clair (contraste 5.6:1) */
  --jaune: #f3b63f;
  --jaune-vif: #ffc757;
  --cyan: #25afc0;

  --line-dark: rgb(156 168 176 / 0.18);   /* filets sur fond sombre */
  --line-light: rgb(8 24 39 / 0.12);      /* filets sur fond clair */

  /* Typographie */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --fs-hero: clamp(3.1rem, 1.55rem + 6.6vw, 8.75rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 3.7vw, 5.25rem);
  --fs-h3: clamp(1.6rem, 1.35rem + 0.9vw, 2.25rem);
  --fs-lead: clamp(1.075rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.95rem;

  /* Espacements */
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);
  --container: 90rem;
  --cut: 14px;               /* chanfrein signature */

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 220ms;
  --dur-base: 480ms;

  --header-h: 76px;
  color-scheme: light;
}

/* ----- Reset ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--nuit);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--jaune); color: var(--nuit); }

:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 3px;
}
.on-light :focus-visible { outline-color: var(--acier); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--jaune);
  color: var(--nuit);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ----- Mise en page ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.on-dark { background: var(--nuit); color: var(--calque); }
.on-light { background: var(--calque); color: var(--nuit); }

/* Quadrillage de plan, très discret */
.blueprint-grid {
  background-image:
    linear-gradient(to right, rgb(156 168 176 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}

/* ----- Typographie ----- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
}

.h2 {
  font-size: var(--fs-h2);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 38em;
  text-wrap: pretty;
}

.muted { color: var(--gris); }
.on-light .muted { color: var(--gris-fonce); }

/* Sur-titre : repère de planche (trait + intitulé) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jaune);
}
.kicker::before {
  content: '';
  width: 2.25rem;
  height: 2px;
  background: currentColor;
}
.on-light .kicker { color: var(--acier); }
.on-light .kicker::before { background: var(--jaune); }

/* ----- Chanfrein signature ----- */
.chamfer {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.chamfer-lg { --cut: clamp(20px, 3vw, 44px); }

/* ----- Boutons ----- */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --cut: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--nuit), inset 0 0 0 4px var(--jaune); }

.btn .btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .btn-icon { transform: translateX(4px); }

.btn-primary { --btn-bg: var(--jaune); --btn-fg: var(--nuit); }
.btn-primary:hover { --btn-bg: var(--jaune-vif); }

/* Bouton contour : le contour suit le chanfrein grâce à un SVG de bordure */
.btn-outline {
  --btn-fg: var(--calque);
  --btn-line: rgb(245 246 243 / 0.5);
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--btn-line);
  clip-path: polygon(
    evenodd,
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 0,
    1px 1px, 1px calc(100% - var(--cut) - 0.4px), calc(var(--cut) + 0.4px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(var(--cut) + 0.4px), calc(100% - var(--cut) - 0.4px) 1px, 1px 1px
  );
  transition: background-color var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.btn-outline:hover { --btn-line: var(--jaune); color: var(--jaune); }
.on-light .btn-outline { --btn-fg: var(--nuit); --btn-line: rgb(8 24 39 / 0.4); }
.on-light .btn-outline:hover { --btn-line: var(--nuit); color: var(--nuit); background-color: rgb(8 24 39 / 0.04); }

.btn-dark { --btn-bg: var(--nuit); --btn-fg: var(--calque); }
.btn-dark:hover { --btn-bg: var(--acier); }

/* Lien texte avec soulignement animé */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding-block: 0.25rem;
}
.link-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0.35);
  opacity: 0.6;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
.link-line:hover::after,
.link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; opacity: 1; }

/* ----- Repères de plan ----- */
.reg-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  color: var(--gris);
  opacity: 0.5;
}
.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.reg-mark::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg-mark::after { top: 50%; left: 0; right: 0; height: 1px; }

.rule {
  height: 1px;
  background: var(--line-dark);
  transform-origin: left;
}
.on-light .rule { background: var(--line-light); }

/* Légende d'image (visuels d'illustration) */
.caption {
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--gris-fonce);
}
.on-dark .caption { color: var(--gris); }

/* Images */
.media {
  position: relative;
  overflow: hidden;
  background: var(--acier);
}
.media picture,
.media img {
  width: 100%;
  height: 100%;
}
.media img { object-fit: cover; }

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ===== src/components/components.css ===== */
/* ----- Logo officiel : PNG transparent, sans fond ----- */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img { display: block; width: auto; max-width: none; }

/* En-tête : version compacte, hauteur pilotée par --logo-h */
.logo--compact { --logo-h: 46px; }
.logo--compact img { height: var(--logo-h); }

/* Pied de page : logo complet avec slogan */
.logo--full img { width: min(100%, 320px); height: auto; }

/* ----- Titres masqués ----- */
.mask-line {
  display: block;
  overflow: hidden;
  /* marge interne pour ne pas rogner les accents et jambages */
  padding-block: 0.06em 0.04em;
  margin-block: -0.06em -0.04em;
}
.mask-line-inner {
  display: inline-block;
  will-change: transform;
}

/* ----- Révélation des photographies (rideau) ----- */
.reveal-image {
  position: relative;
  overflow: hidden;
}
.reveal-curtain {
  position: absolute;
  inset: -1px;
  background: var(--calque);
  transform-origin: 50% 0%;
  pointer-events: none;
}
.on-dark .reveal-curtain { background: var(--nuit); }
.why .reveal-curtain { background: var(--calque-2); }

/* ----- En-tête de section ----- */
.section-head {
  display: grid;
  gap: 1.5rem;
}
.section-head .h2 { margin-top: 0.25rem; }


/* ===== src/components/PageHero.css ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgb(37 175 192 / 0.07), transparent 70%),
    var(--plan);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(156 168 176 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

/* Fil d'Ariane */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gris);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}
.breadcrumb a { transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--jaune); }
.breadcrumb [aria-current='page'] { color: var(--calque); font-weight: 600; }

.page-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.page-hero.has-image .page-hero-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.page-hero-text { display: grid; gap: 1.5rem; justify-items: start; }
.page-hero-title {
  font-size: clamp(3rem, 1.3rem + 5.6vw, 7.5rem);
  line-height: 0.88;
  margin-top: 0.25rem;
}
.page-hero-lead {
  max-width: 36em;
  color: rgb(245 246 243 / 0.82);
  animation: page-rise 0.8s var(--ease-out) both;
}
@keyframes page-rise {
  from { transform: translateY(14px); }
}
.page-hero-extra { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 0.5rem; }

.page-hero-media { aspect-ratio: 4 / 3.2; }

/* Pied : filet + cartouche de plan */
.page-hero-foot {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.page-hero-rule {
  flex: 1;
  height: 1px;
  margin-bottom: 0.4rem;
  background: rgb(245 246 243 / 0.3);
  transform-origin: left;
}

.cartouche {
  display: grid;
  grid-template-columns: auto auto auto;
  border: 1px solid rgb(245 246 243 / 0.28);
  font-size: 0.75rem;
}
.cartouche > div {
  padding: 0.5rem 0.85rem;
  border-left: 1px solid rgb(245 246 243 / 0.28);
}
.cartouche > div:first-child { border-left: 0; }
.cartouche dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
}
.cartouche dd {
  font-weight: 700;
  color: var(--calque);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .page-hero.has-image .page-hero-main { grid-template-columns: 1fr; }
  .page-hero-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  .page-hero-title { font-size: min(3rem, 12.5vw); }
  .page-hero-foot { flex-direction: column; align-items: stretch; gap: 1rem; }
  .page-hero-rule { display: none; }
  .cartouche { grid-template-columns: 1fr 1fr 1fr; }
}


/* ===== src/sections/Hero.css ===== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .hero { min-height: max(680px, min(100svh, 1080px)); }
}

/* Photographie : poste électrique */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg picture,
.hero-bg img { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 62% 40%; }

/* Voile bleu nuit : lisibilité du titre en bas à gauche */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--nuit) 0%, rgb(8 24 39 / 0.85) 20%, rgb(8 24 39 / 0.2) 55%, rgb(8 24 39 / 0.45) 100%),
    linear-gradient(to right, rgb(8 24 39 / 0.7) 0%, rgb(8 24 39 / 0.15) 55%, transparent 100%);
}

.hero-content { position: relative; }
.hero-kicker { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }

.hero-title {
  font-size: var(--fs-hero);
  line-height: 0.86;
}
@media (min-width: 768px) {
  .hero-title .mask-line-inner { white-space: nowrap; }
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.75rem clamp(2rem, 5vw, 6rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid rgb(245 246 243 / 0.25);
  max-width: 76rem;
}
.hero-lead { max-width: 34em; color: rgb(245 246 243 / 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.hero-css-in { animation: hero-in 0.8s var(--ease-out) var(--d, 0s) both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 1023px) {
  .hero-foot { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero { padding-bottom: 2rem; }
  .hero-bg img { object-position: 50% 40%; }
  .hero-veil {
    background: linear-gradient(to top, var(--nuit) 0%, rgb(8 24 39 / 0.9) 38%, rgb(8 24 39 / 0.3) 70%, rgb(8 24 39 / 0.6) 100%);
  }
  .hero-title { font-size: min(3.1rem, 13vw); }
  .hero-kicker { font-size: 0.8rem; gap: 0.6rem; }
  .hero-kicker::before { width: 1.5rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}


/* ===== src/sections/IdentityBand.css ===== */
.band {
  position: relative;
  background: var(--acier);
  color: var(--calque);
  border-block: 1px solid rgb(245 246 243 / 0.08);
  overflow: hidden;
}

.band-viewport {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.band-track {
  display: flex;
  flex: none;
  animation: band-scroll 60s linear infinite;
}
.band:hover .band-track { animation-play-state: paused; }

.band-row {
  display: flex;
  flex: none;
}
.band-row li {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 1.35rem clamp(1.5rem, 3vw, 3rem) 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Séparateur : losange jaune, rappel du repère de section active */
.band-sep {
  width: 7px;
  height: 7px;
  background: var(--jaune);
  transform: rotate(45deg);
}

@keyframes band-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; }
  .band-row[aria-hidden] { display: none; }
  .band-row { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .band-viewport { mask-image: none; -webkit-mask-image: none; justify-content: center; }
}


/* ===== src/sections/About.css ===== */
.about-grid {
  align-items: start;
  row-gap: 3rem;
}

.about-figure {
  grid-column: 1 / span 6;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.about-media { aspect-ratio: 4 / 5; background: #000; }
.about-media img { object-position: 50% 15%; }

.about-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.about-caption-tick { width: 1.5rem; height: 1px; background: currentColor; }

.about-reg { top: -11px; right: -11px; }

.about-body {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(0rem, 4vw, 4rem);
}

.about-title { margin-top: 1.5rem; }
.about-rule { align-self: stretch; margin-block: clamp(2rem, 3vw, 2.75rem); }

.about-text { display: grid; gap: 1.25rem; }

.about-facts {
  align-self: stretch;
  display: grid;
  margin-block: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.about-facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-light);
}
.about-facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-fonce);
}
.about-facts dd { font-weight: 600; }

.about-toggle-icon { transition: transform var(--dur-base) var(--ease-out) !important; }
.about-toggle:hover .about-toggle-icon { transform: none; }
.about-toggle[aria-expanded='true'] .about-toggle-icon { transform: rotate(45deg); }

.about-more { overflow: hidden; align-self: stretch; }
.about-more-inner {
  display: grid;
  gap: 1rem;
  padding-top: 2.25rem;
}
.about-missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1rem;
}
.about-missions li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 2px solid var(--jaune);
  font-size: 0.95rem;
  line-height: 1.55;
}
.about-missions span { color: var(--gris-fonce); }

@media (max-width: 1023px) {
  .about-figure { grid-column: 1 / -1; position: relative; top: auto; }
  .about-media { aspect-ratio: 1 / 1; max-width: 560px; }
  .about-media img { object-position: 50% 8%; }
  .about-body { grid-column: 1 / -1; padding-top: 0; }
}
@media (max-width: 767px) {
  .about-media { aspect-ratio: 1 / 1; }
  .about-missions { grid-template-columns: 1fr; }
  .about-facts > div { grid-template-columns: 6rem 1fr; }
}


/* ===== src/sections/Expertises.css ===== */
.expertises { background-color: var(--nuit); }

.exp-header {
  align-items: end;
  row-gap: 1.5rem;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}
.exp-header-title { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.exp-header-lead { grid-column: 9 / span 4; display: grid; gap: 1.25rem; justify-items: start; }
.exp-all { color: var(--jaune); }

/* Composition asymétrique sur 12 colonnes */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  row-gap: clamp(3.5rem, 6vw, 6rem);
  align-items: start;
}
.exp-card--genie-electrique { grid-column: 1 / span 7; }
.exp-card--travaux-publics { grid-column: 9 / span 4; margin-top: clamp(0rem, 9vw, 9rem); }
.exp-card--energies-renouvelables { grid-column: 1 / span 5; }
.exp-card--ouvrages-hydrauliques { grid-column: 6 / span 4; margin-top: clamp(0rem, 6vw, 6rem); }
.exp-card--exploitation { grid-column: 10 / span 3; margin-top: clamp(0rem, 12vw, 12rem); }

.exp-card--genie-electrique .exp-media { aspect-ratio: 2 / 1; }
.exp-card--travaux-publics .exp-media { aspect-ratio: 4 / 5; }
.exp-card--travaux-publics .exp-media img { object-position: 30% 50%; }
.exp-card--energies-renouvelables .exp-media { aspect-ratio: 16 / 10; }
.exp-card--ouvrages-hydrauliques .exp-media { aspect-ratio: 1 / 1; }
.exp-card--ouvrages-hydrauliques .exp-media img { object-position: 60% 50%; }
.exp-card--exploitation .exp-media { aspect-ratio: 1 / 1; }

/* ----- Carte ----- */
.exp-card { position: relative; }

.exp-media img,
.exp-media picture { width: 100%; height: 100%; }
.exp-media img { transition: transform 900ms var(--ease-out); }

.exp-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(8 24 39 / 0.55), rgb(243 182 63 / 0.18));
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.exp-media-drawing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--acier);
}
.exp-diagram { width: 78%; height: auto; overflow: visible; }
.exp-diagram path,
.exp-diagram rect,
.exp-diagram circle:not(.exp-node) {
  stroke: rgb(245 246 243 / 0.7);
  stroke-width: 1.5;
  stroke-linecap: butt;
}
.exp-diagram .is-bus { stroke: var(--calque); stroke-width: 3; }
.exp-diagram .is-signal { stroke: var(--jaune); }
.exp-diagram .is-dash { stroke-dasharray: 4 5; }
.exp-node { fill: var(--cyan); }

.exp-body {
  position: relative;
  padding-top: 1.6rem;
}
.exp-line {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 1px;
  background: var(--line-dark);
}
.exp-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jaune);
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}

.exp-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.exp-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--jaune);
}
.exp-title { transition: transform 600ms var(--ease-out); }
.exp-card--genie-electrique .exp-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); }

.exp-summary {
  margin-top: 1rem;
  max-width: 36em;
  color: rgb(245 246 243 / 0.78);
  font-size: 0.975rem;
}

.exp-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.exp-items li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-dark);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gris);
}

.exp-link {
  min-height: 44px;
  margin-top: 1rem;
  color: var(--calque);
  font-size: 0.95rem;
}
/* toute la carte est cliquable (le clic est relayé au lien) */
.exp-media,
.exp-head { cursor: pointer; }
.exp-arrow { width: 1rem; height: 1rem; transition: transform 500ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .exp-card:hover .exp-media img { transform: scale(1.045); }
  .exp-card:hover .exp-tint { opacity: 1; }
  .exp-card:hover .exp-line::after { transform: scaleX(1); }
  .exp-card:hover .exp-title { transform: translateX(6px); }
  .exp-card:hover .exp-arrow { transform: translateX(6px); }
  .exp-card:hover .exp-link { color: var(--jaune); }
}
.exp-card:focus-within .exp-line::after { transform: scaleX(1); }

@media (max-width: 1023px) {
  .exp-header-title,
  .exp-header-lead { grid-column: 1 / -1; }
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-card { grid-column: auto !important; margin-top: 0 !important; }
  .exp-card--genie-electrique { grid-column: 1 / -1 !important; }
  .exp-card--travaux-publics .exp-media { aspect-ratio: 4 / 3; }
  .exp-card--ouvrages-hydrauliques .exp-media,
  .exp-card--exploitation .exp-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .exp-grid { grid-template-columns: 1fr; row-gap: 3rem; }
  .exp-card--genie-electrique .exp-media { aspect-ratio: 16 / 10; }
}


/* ===== src/sections/Signature.css ===== */
.signature {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 55%, rgb(37 175 192 / 0.08), transparent 70%),
    var(--plan);
  padding-block: clamp(6rem, 4rem + 9vw, 12rem);
  isolation: isolate;
}

/* Quadrillage double (mineur / majeur), comme un calque millimétré */
.signature-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(156 168 176 / 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.09) 1px, transparent 1px),
    linear-gradient(to right, rgb(156 168 176 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.04) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  mask-image: radial-gradient(ellipse 85% 80% at 60% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 60% 50%, #000 40%, transparent 100%);
}

.sig-reg--tl { top: 2rem; left: 2rem; }
.sig-reg--br { bottom: 2rem; right: 2rem; }

.signature-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-height: min(78vh, 760px);
}

.signature-text {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 6;
  grid-row: 1;
}
.signature-title {
  font-size: clamp(3rem, 1.6rem + 5.6vw, 7.75rem);
  line-height: 0.88;
}
.signature-lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 30em; }

.signature-drawing {
  grid-column: 4 / -1;
  grid-row: 1;
  z-index: 1;
  will-change: transform;
}
.signature-drawing svg { width: 100%; height: auto; overflow: visible; }

.signature-drawing path {
  stroke: rgb(245 246 243 / 0.62);
  stroke-width: 1.4;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.signature-drawing .is-thin { stroke: rgb(245 246 243 / 0.3); stroke-width: 1; }
.signature-drawing .is-dash { stroke-dasharray: 5 6; stroke: rgb(156 168 176 / 0.55); }
.signature-drawing .is-accent { stroke: var(--jaune); stroke-width: 2; }
.signature-drawing .sd-wire { stroke: rgb(243 182 63 / 0.75); stroke-width: 1.2; }
.signature-drawing .sd-dims path { stroke: rgb(156 168 176 / 0.75); stroke-width: 1; }

.sd-node { fill: var(--cyan); filter: drop-shadow(0 0 6px rgb(37 175 192 / 0.7)); }

.sd-labels text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--gris);
}
.sd-labels circle { stroke: rgb(156 168 176 / 0.75); stroke-width: 1; fill: var(--plan); }
.sd-labels .sd-axis { font-size: 13px; letter-spacing: 0; fill: var(--calque); }

/* Voile pour garder le titre lisible sur la partie gauche du dessin */
.signature-text::before {
  content: '';
  position: absolute;
  inset: -20% -15% -20% -40%;
  z-index: -1;
  background: radial-gradient(ellipse at 35% 50%, rgb(10 31 51 / 0.92) 30%, transparent 72%);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .signature-inner { min-height: 0; row-gap: 3rem; }
  .signature-text { grid-column: 1 / -1; }
  .signature-drawing { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(var(--gutter) * -0.5); }
}
@media (max-width: 767px) {
  .signature-inner { grid-template-columns: 1fr; }
  .signature-text,
  .signature-drawing { grid-column: 1; }
  .sig-reg { display: none; }
  /* recadrage sur le pylône et le poste : traits plus grands, libellés retirés */
  .signature-drawing { margin-inline: 0; overflow: visible; }
  .signature-drawing svg { width: 165%; max-width: none; margin-left: -42%; }
  .sd-labels text { display: none; }
}


/* ===== src/sections/Projects.css ===== */
.projects { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }

.projects-head {
  align-items: end;
  row-gap: 2rem;
}
.projects-head-title { grid-column: 1 / span 6; display: grid; gap: 1.5rem; }
.projects-head-aside {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.projects-rule { margin-top: clamp(4rem, 8vw, 7rem); }

/* ----- Galerie ----- */
.gallery { margin-top: clamp(3rem, 6vw, 5rem); }

.gallery-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.project-card {
  flex: none;
  width: clamp(280px, 42vw, 640px);
  scroll-snap-align: start;
}
.project-link { display: block; }
.project-media { aspect-ratio: 4 / 3; }
.project-media img { transition: transform 900ms var(--ease-out); }
.project-body { padding-top: 1.25rem; display: grid; gap: 0.6rem; }
.project-meta {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-fonce);
}
.project-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: var(--gris-fonce);
}
.project-location svg { width: 1rem; height: 1rem; }
.project-desc { max-width: 40em; }

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-media img { transform: scale(1.04); }
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.gallery-progress {
  flex: 1;
  height: 2px;
  background: var(--line-light);
}
.gallery-progress span {
  display: block;
  height: 100%;
  background: var(--nuit);
  transform-origin: left;
  transition: transform 200ms linear;
}
.gallery-buttons { display: flex; gap: 0.5rem; }
.gallery-btn {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(8 24 39 / 0.3);
  background: transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.gallery-btn svg { width: 1.2rem; height: 1.2rem; }
.gallery-btn:hover:not(:disabled) { background: var(--nuit); color: var(--calque); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 1023px) {
  .projects-head-title,
  .projects-head-aside { grid-column: 1 / -1; }
}

/* Mobile : lecture verticale naturelle */
@media (max-width: 767px) {
  .gallery-track {
    flex-direction: column;
    overflow: visible;
    padding-inline: var(--gutter);
    gap: 3rem;
  }
  .project-card { width: 100%; }
  .gallery-controls { display: none; }
}


/* ===== src/sections/WhyUs.css ===== */
.why { background: var(--calque-2); }

.why-head {
  grid-column: 1 / span 5;
  display: grid;
  gap: 1.5rem;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}

.why-list {
  grid-column: 7 / span 6;
  display: grid;
}
.why-item { padding-bottom: clamp(2rem, 3vw, 3rem); }
.why-item:last-child { padding-bottom: 0; }
.why-rule { margin-bottom: clamp(1.75rem, 2.5vw, 2.5rem); background: rgb(8 24 39 / 0.18) !important; }

.why-item-inner {
  display: grid;
  grid-template-columns: clamp(4.5rem, 7vw, 7rem) 1fr;
  gap: 1.25rem;
}
.why-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--acier);
}
.why-content { display: grid; gap: 0.75rem; max-width: 34em; }
.why-icon { width: 1.75rem; height: 1.75rem; color: var(--acier); }
.why-title { margin-top: 0.25rem; }

@media (max-width: 1023px) {
  .why-head { grid-column: 1 / -1; position: static; margin-bottom: 3rem; }
  .why-list { grid-column: 1 / -1; }
}


/* ===== src/sections/Method.css ===== */
.method { background: var(--acier); }

.method-head { align-items: end; row-gap: 1.5rem; margin-bottom: clamp(4rem, 7vw, 6.5rem); }
.method-head-title { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.method-head-lead { grid-column: 9 / span 4; }

.method-steps-wrap { position: relative; }
.method-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: none;
}

/* Rail horizontal passant par les repères */
.method-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 1px;
  background: rgb(245 246 243 / 0.18);
}
.method-track-fill {
  position: absolute;
  inset: 0;
  background: var(--jaune);
  transform-origin: left;
}
.method-track-fill.is-vertical { display: none; }

.method-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}
/* étape pas encore atteinte : seuls le repère, l'index et le titre changent, le texte reste lisible */
.method-step .method-index,
.method-step .method-title { transition: color 600ms var(--ease-out); }
.method-step:not(.is-active) .method-index { color: var(--gris); }
.method-step:not(.is-active) .method-title { color: rgb(245 246 243 / 0.68); }

.method-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-bottom: 1.25rem;
  border: 1px solid rgb(245 246 243 / 0.45);
  background: var(--acier);
  transform: rotate(45deg);
  transition: border-color 500ms var(--ease-out);
}
.method-marker span {
  width: 9px;
  height: 9px;
  background: var(--jaune);
  transform: scale(0);
  transition: transform 500ms var(--ease-out);
}
.is-active .method-marker { border-color: var(--jaune); }
.is-active .method-marker span { transform: scale(1); }

.method-index {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jaune);
}
.method-text { color: rgb(245 246 243 / 0.78); max-width: 26em; }

@media (max-width: 1023px) {
  .method-head-title,
  .method-head-lead { grid-column: 1 / -1; }
  .method-steps-wrap { padding-left: 3rem; }
  .method-steps { grid-template-columns: 1fr; gap: 2.75rem; }
  .method-track { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .method-track-fill { display: none; }
  .method-track-fill.is-vertical { display: block; transform-origin: top; }
  .method-marker { position: absolute; left: -3rem; top: 0; margin: 0; }
}


/* ===== src/sections/FinalCta.css ===== */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  background:
    radial-gradient(ellipse 50% 60% at 85% 100%, rgb(243 182 63 / 0.1), transparent 70%),
    var(--nuit);
}

.cta-wire {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(3rem, 5vw, 4.5rem);
  height: 1px;
}
.cta-wire-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgb(243 182 63 / 0.45) 15%, rgb(243 182 63 / 0.45) 85%, transparent);
  transform-origin: left;
}
.cta-pulse {
  position: absolute;
  top: -3px;
  width: 120px;
  height: 7px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--jaune-vif), rgb(243 182 63 / 0) 70%);
  filter: blur(1px);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.cta-title {
  font-size: clamp(2.8rem, 1.4rem + 4vw, 6.25rem);
  line-height: 0.9;
}
@media (min-width: 1024px) {
  .cta-title .mask-line-inner { white-space: nowrap; }
}
.cta-side { display: grid; gap: 2rem; justify-items: start; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

@media (max-width: 1023px) {
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cta-actions { flex-direction: column; align-self: stretch; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .cta-side { justify-items: stretch; }
}


/* ===== src/sections/Contact.css ===== */
.contact-grid { align-items: start; row-gap: 3.5rem; }

.contact-info {
  grid-column: 1 / span 5;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.contact-list {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.contact-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-light);
}
.contact-list svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--acier); }
.contact-list div { display: grid; gap: 0.15rem; justify-items: start; }
.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gris-fonce);
}

.contact-panel-wrap { grid-column: 7 / span 6; }
.contact-panel {
  background: #fff;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  box-shadow: 0 1px 0 var(--line-light);
}

.form-intro {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 700; }
.field-req,
.field-opt { font-weight: 500; color: var(--gris-fonce); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(8 24 39 / 0.22);
  border-radius: 0;
  background: var(--calque);
  font-size: 1rem; /* évite le zoom automatique sur iOS */
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--nuit) 50%), linear-gradient(135deg, var(--nuit) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgb(8 24 39 / 0.45); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--nuit);
  background-color: #fff;
  box-shadow: inset 0 -2px 0 var(--jaune);
}
.has-error input,
.has-error select,
.has-error textarea { border-color: #b3261e; }
.field-hint { font-size: 0.8rem; color: var(--gris-fonce); }
.field-error { font-size: 0.85rem; font-weight: 600; color: #b3261e; }

.form-error {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid #b3261e;
  background: #fbeeed;
  font-size: 0.925rem;
  overflow: hidden;
}
.form-error svg { width: 1.3rem; height: 1.3rem; color: #b3261e; }
.form-error div { display: grid; gap: 0.5rem; justify-items: start; }
.form-error:focus { outline: none; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}
.form-legal { font-size: 0.8rem; color: var(--gris-fonce); max-width: 26rem; }
.form-legal .link-line { font-weight: 600; padding: 0; }
.form-foot .btn:disabled { opacity: 0.7; cursor: progress; }

.form-done { display: grid; gap: 1rem; justify-items: start; padding-block: 2rem; }
.form-done:focus { outline: none; }
.form-done-icon { width: 2.5rem; height: 2.5rem; color: var(--acier); }

@media (max-width: 1023px) {
  .contact-info,
  .contact-panel-wrap { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .contact-panel { --cut: 20px; }
}


/* ===== src/sections/Footer.css ===== */
.site-footer {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}

/* Grand nom de l'entreprise en filigrane, en tête du pied de page */
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 1rem + 19vw, 21rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgb(156 168 176 / 0.28);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  white-space: nowrap;
  user-select: none;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.footer-tagline { font-size: 0.875rem; line-height: 1.5; color: var(--jaune); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem 2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: grid; gap: 1.25rem; align-content: start; max-width: 26rem; }
.footer-brand .muted { font-size: 0.925rem; }

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col address { font-style: normal; }
.footer-col li { font-size: 0.925rem; color: rgb(245 246 243 / 0.8); }
.footer-social { margin-top: 1.25rem; }

.footer-link {
  position: relative;
  color: rgb(245 246 243 / 0.8);
  transition: color var(--dur-fast);
}
.footer-link:hover { color: var(--jaune); }

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--gris);
}
.footer-bottom ul { display: flex; gap: 1.5rem; }

.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--calque);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.to-top svg { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.to-top:hover { border-color: var(--jaune); color: var(--jaune); }
.to-top:hover svg { transform: translateY(-3px); }

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { margin-left: 0; }
}


/* ===== src/pages/EntreprisePage.css ===== */
/* ----- Ambition ----- */
.ent-ambition .grid-12 { align-items: center; row-gap: 3rem; }
.ent-ambition-text { grid-column: 1 / span 7; display: grid; gap: 1.5rem; justify-items: start; }
.ent-ambition-figure { grid-column: 9 / span 4; display: grid; gap: 0.9rem; }
.ent-portrait { aspect-ratio: 4 / 5; background: #000; }
.ent-portrait img { object-position: 50% 12%; }
.ent-rule { align-self: stretch; width: 100%; }
.ent-paras { display: grid; gap: 1.25rem; max-width: 40em; }

/* ----- Vision ----- */
.ent-vision { background: var(--acier); }
.ent-vision .grid-12 { align-items: end; row-gap: 2.5rem; }
.ent-vision-head { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.ent-vision-title { font-size: clamp(3.5rem, 1.5rem + 7vw, 9.5rem); line-height: 0.85; }
.ent-vision-title .mask-line:nth-child(2) .mask-line-inner { color: var(--jaune); }
.ent-vision-text { grid-column: 9 / span 4; color: rgb(245 246 243 / 0.85); }

/* ----- Missions ----- */
.ent-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.ent-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}
.ent-mission {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--jaune);
}
.ent-mission-icon { width: 2rem; height: 2rem; color: var(--acier); }
.ent-mission .h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.85rem); }

/* ----- Chaîne de valeur ----- */
.ent-chain { background-color: var(--plan); }
.ent-chain-head { align-items: end; row-gap: 1.5rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.ent-chain-title { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.ent-chain-lead { grid-column: 9 / span 4; }

.chain { position: relative; }
.chain-wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  width: 100%;
  height: 20px;
  overflow: visible;
}
.chain-wire path { stroke: var(--jaune); stroke-width: 1.5; vector-effect: non-scaling-stroke; fill: none; }
.chain-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}
.chain-step { display: grid; align-content: start; gap: 0.9rem; }
.chain-step p { color: rgb(245 246 243 / 0.78); max-width: 26em; }
.chain-node {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 1rem;
  border: 1px solid var(--jaune);
  background: var(--plan);
  transform: rotate(45deg);
}
.chain-node span { width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 10px rgb(37 175 192 / 0.8); }
.chain-index {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--jaune);
}
.chain-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 3.25rem); }

/* ----- QHSE ----- */
.ent-qhse { background: var(--calque); }
.ent-qhse .grid-12 { align-items: center; row-gap: 3rem; }
.ent-qhse-text { grid-column: 1 / span 6; display: grid; gap: 1.5rem; }
.ent-commitments { grid-column: 8 / span 5; display: grid; gap: 1.75rem; }
.ent-commitments li { display: grid; gap: 1rem; }
.ent-commit-rule { background: rgb(8 24 39 / 0.2) !important; }
.ent-commit {
  font-size: clamp(2.6rem, 1.5rem + 3.4vw, 5rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--nuit);
}
.ent-commitments li:last-child .ent-commit { color: var(--nuit); -webkit-text-stroke: 0; }

/* ----- Fiche d'identité ----- */
.ent-identity { background: #fff; }
.ent-identity .grid-12 { row-gap: 2.5rem; }
.ent-identity-head { grid-column: 1 / span 5; display: grid; gap: 1.5rem; align-content: start; }
.ent-identity-list { grid-column: 7 / span 6; border-top: 1px solid var(--line-light); }
.ent-identity-list > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-light);
}
.ent-identity-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-fonce);
}
.ent-identity-list dd { font-weight: 600; }
.ent-identity-list .link-line { padding: 0; }

@media (max-width: 1023px) {
  .ent-ambition-text,
  .ent-vision-head,
  .ent-vision-text,
  .ent-chain-title,
  .ent-chain-lead,
  .ent-qhse-text,
  .ent-commitments,
  .ent-identity-head,
  .ent-identity-list { grid-column: 1 / -1; }
  .ent-ambition-figure { grid-column: 1 / -1; max-width: 420px; }
  .ent-mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .chain-wire { display: none; }
  .chain-steps { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 1.5rem; border-left: 1px solid var(--jaune); }
  .chain-node { position: absolute; margin: 0; transform: translateX(calc(-1.5rem - 12.5px)) rotate(45deg); }
  .chain-step { position: relative; }
}
@media (max-width: 767px) {
  .ent-mission-grid { grid-template-columns: 1fr; }
  .ent-identity-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}


/* ===== src/pages/ExpertisesPage.css ===== */
/* ----- Sous-menu collant ----- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.subnav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative;
  display: inline-block;
  padding-block: 1.05rem;
  font-weight: 700;
  font-size: 0.925rem;
  white-space: nowrap;
  color: var(--gris-fonce);
  transition: color var(--dur-fast);
}
.subnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--jaune);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.subnav a:hover,
.subnav a[aria-current='true'] { color: var(--nuit); }
.subnav a[aria-current='true']::after { transform: scaleX(1); }

/* Les ancres tiennent compte de l'en-tête + du sous-menu */
.pole,
.integrated { scroll-margin-top: calc(var(--header-h) + 3.5rem); }

/* ----- Pôles ----- */
.pole--alt { background: var(--calque-2); }
.pole--alt .reveal-curtain { background: var(--calque-2); }

.pole-head { align-items: end; row-gap: 1.5rem; }
.pole-title { grid-column: 1 / span 7; display: grid; gap: 1.25rem; }
.pole-title .h2 { font-size: clamp(3rem, 1.6rem + 4.6vw, 6.5rem); }
.pole-intro { grid-column: 9 / span 4; }

.pole-images {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  margin-block: clamp(3rem, 6vw, 5rem);
}
.pole-image .media { aspect-ratio: 16 / 10; }
.pole-image--1 { margin-top: clamp(0rem, 6vw, 6rem); }
.pole-image--1 .media { aspect-ratio: 4 / 3.4; }

.pole-capabilities { display: grid; }
.pole-cap-rule { display: block; background: rgb(8 24 39 / 0.16) !important; }
.pole-cap-inner {
  display: grid;
  grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 6fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: clamp(1.4rem, 2.2vw, 2rem);
}
.pole-cap-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--acier);
}
.pole-cap-title { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.2rem); }
.pole-cap-text { color: var(--gris-fonce); max-width: 44em; }

.pole-cta { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* ----- Projets intégrés ----- */
.integrated { background-color: var(--nuit); }
.integrated-head { align-items: end; row-gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.integrated-title { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.integrated-lead { grid-column: 9 / span 4; }

.contracts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.contract {
  --cut: 18px;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.2vw, 2.25rem);
  background: var(--acier);
  transition: background-color var(--dur-base) var(--ease-out);
}
.contract:hover { background: var(--acier-2); }
.contract-code {
  font-size: clamp(2.6rem, 1.8rem + 2vw, 3.75rem);
  line-height: 0.9;
  color: var(--jaune);
}
.contract-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.contract p { color: rgb(245 246 243 / 0.78); font-size: 0.95rem; }

.principles {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 2rem;
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.principles ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.principles li { display: grid; gap: 0.5rem; }
.principles strong { font-weight: 700; }
.principles span { color: rgb(245 246 243 / 0.75); font-size: 0.95rem; }

@media (max-width: 1023px) {
  .pole-title,
  .pole-intro,
  .integrated-title,
  .integrated-lead { grid-column: 1 / -1; }
  .contracts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pole-images { grid-template-columns: 1fr; }
  .pole-image--1 { margin-top: 0; }
  .pole-cap-inner { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.5rem; }
  .pole-cap-text { grid-column: 2; }
  .contracts { grid-template-columns: 1fr; }
  .principles ul { grid-template-columns: 1fr; }
}


/* ===== src/pages/RealisationsPage.css ===== */
/* ----- Galerie filtrable ----- */
.ref-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.ref-chip {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgb(8 24 39 / 0.25);
  background: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.ref-chip:hover { border-color: var(--nuit); }
.ref-chip[aria-pressed='true'] { background: var(--nuit); border-color: var(--nuit); color: var(--calque); }

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 2rem);
}
.ref-grid .project-card { width: auto; }

/* ----- Références sur demande ----- */
.ref-request .grid-12 { align-items: end; row-gap: 2.5rem; }
.ref-request-title { grid-column: 1 / span 6; display: grid; gap: 1.5rem; }
.ref-request-body {
  grid-column: 8 / span 5;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.ref-request-body .btn { margin-top: 0.75rem; }

/* ----- Domaines d'intervention ----- */
.ref-fields { background-color: var(--nuit); }
.ref-fields-head { align-items: end; row-gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.ref-fields-title { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.ref-fields-lead { grid-column: 9 / span 4; display: grid; gap: 1rem; justify-items: start; }
.ref-fields-link { color: var(--jaune); }
.ref-fields-link svg { width: 1rem; height: 1rem; }

.ref-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.ref-field {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color var(--dur-base) var(--ease-out);
}
.ref-field:hover { background: rgb(32 59 80 / 0.45); }
.ref-field-icon { width: 2.25rem; height: 2.25rem; color: var(--jaune); }
.ref-field-title { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.9rem); }
.ref-field p { color: rgb(245 246 243 / 0.75); font-size: 0.95rem; }

@media (max-width: 1023px) {
  .ref-request-title,
  .ref-request-body,
  .ref-fields-title,
  .ref-fields-lead { grid-column: 1 / -1; }
  .ref-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ref-grid,
  .ref-field-grid { grid-template-columns: 1fr; }
}


/* ===== src/pages/ContactPage.css ===== */
/* ----- Préparer sa demande ----- */
.ct-prepare { background: var(--acier); }
.ct-prepare-head { align-items: end; row-gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.ct-prepare-title { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.ct-prepare-lead { grid-column: 9 / span 4; }

.ct-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}
.ct-check {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--jaune);
}
.ct-check-icon { width: 2rem; height: 2rem; color: var(--jaune); }
.ct-check-title { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem); }
.ct-check p { color: rgb(245 246 243 / 0.8); font-size: 0.95rem; }

/* ----- Siège ----- */
.ct-office .grid-12 { align-items: center; row-gap: 2.5rem; }
.ct-office-title { grid-column: 1 / span 5; display: grid; gap: 1.5rem; }
.ct-office-card {
  grid-column: 7 / span 6;
  display: grid;
  gap: 2rem;
  justify-items: start;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: #fff;
}
.ct-office-list { align-self: stretch; width: 100%; border-top: 1px solid var(--line-light); }
.ct-office-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-light);
}
.ct-office-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-fonce);
}
.ct-office-list dd { font-weight: 600; }
.ct-office-list .link-line { padding: 0; }

@media (max-width: 1023px) {
  .ct-prepare-title,
  .ct-prepare-lead,
  .ct-office-title,
  .ct-office-card { grid-column: 1 / -1; }
  .ct-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}
@media (max-width: 767px) {
  .ct-checklist { grid-template-columns: 1fr; }
  .ct-office-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}


/* ===== src/pages/NotFoundPage.css ===== */
.notfound {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
  background: var(--plan);
}
.notfound-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(156 168 176 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
}
.notfound-inner { display: grid; gap: 1.5rem; justify-items: start; position: relative; }
.notfound-code {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  font-size: clamp(8rem, 4rem + 22vw, 26rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgb(156 168 176 / 0.25);
}
@media (max-width: 767px) {
  .notfound-code { top: -4.5rem; transform: none; font-size: 7rem; }
}
.notfound-title { font-size: clamp(3rem, 1.5rem + 5vw, 7rem); line-height: 0.88; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 0.5rem; }
.notfound-links a { color: var(--jaune); }
.notfound-links svg { width: 1rem; height: 1rem; }


/* ===== wordpress/theme-src/wp.css ===== */
/* ==========================================================================
   Adaptations WordPress — ajoutées APRÈS les feuilles du site React.
   Le CSS des blocs est imprimé après style.css : toute surcharge d'un style
   de bloc est écrite plus spécifique, jamais simplement plus tard.
   ========================================================================== */

:root {
  --font-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

/* ----- Neutralisation de l'espacement Gutenberg, à spécificité nulle ----- */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons),
:where(.wp-block-post-content) > :where(*) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
img { height: auto; }
.wp-site-blocks { padding: 0; }
.wp-block-post-content { margin: 0; }

/* Images en cadre : remplissent leur conteneur, quel que soit l'attribut height */
.wp-block-image.media,
.wp-block-image.hero-bg { display: block; }
.wp-block-image.media img,
.wp-block-image.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Liens inline dans les paragraphes : RichText n'accepte pas de classe sur <a> */
.entry-content a:where(:not(.wp-element-button)),
.wp-block-post-content a:where(:not(.wp-element-button)) { text-decoration: none; }

/* ----- Boutons : la classe est sur le conteneur, le style sur le lien ----- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.wp-block-button[class*='b-'] { margin: 0; }
.wp-block-button[class*='b-'] .wp-block-button__link {
  --cut: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.wp-block-button.b-arrow .wp-block-button__link::after {
  content: '→';
  font-weight: 700;
  transition: transform var(--dur-base) var(--ease-out);
}
.wp-block-button.b-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }

.wp-block-button.b-primary .wp-block-button__link { background: var(--jaune); color: var(--nuit); }
.wp-block-button.b-primary .wp-block-button__link:hover { background: var(--jaune-vif); }
.wp-block-button.b-dark .wp-block-button__link { background: var(--nuit); color: var(--calque); }
.wp-block-button.b-dark .wp-block-button__link:hover { background: var(--acier); }
.wp-block-button.b-outline .wp-block-button__link { background: transparent; color: var(--calque); --line: rgb(245 246 243 / 0.5); }
.wp-block-button.b-outline .wp-block-button__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--line);
  clip-path: polygon(
    evenodd,
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 0,
    1px 1px, 1px calc(100% - var(--cut) - 0.4px), calc(var(--cut) + 0.4px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(var(--cut) + 0.4px), calc(100% - var(--cut) - 0.4px) 1px, 1px 1px
  );
  pointer-events: none;
}
.wp-block-button.b-outline .wp-block-button__link:hover { --line: var(--jaune); color: var(--jaune); }
.on-light .wp-block-button.b-outline .wp-block-button__link { color: var(--nuit); --line: rgb(8 24 39 / 0.4); }
.wp-block-button .wp-block-button__link:focus-visible { outline: 2px solid var(--jaune); outline-offset: 3px; }

/* ----- En-tête ----- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--calque); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(8 24 39 / 0.9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: calc(var(--header-h) + 20px);
  transition: height 400ms var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: var(--header-h); }

.wp-block-site-logo.header-logo { flex: none; line-height: 0; }
.wp-block-site-logo.header-logo img { width: auto !important; height: 64px; transition: height 400ms var(--ease-out); }
.site-header.is-scrolled .wp-block-site-logo.header-logo img { height: 52px; }

.wp-block-navigation.header-nav { margin-inline: auto; }
.wp-block-navigation.header-nav .wp-block-navigation__container { gap: clamp(1.25rem, 2.2vw, 2.5rem); }
.wp-block-navigation.header-nav .wp-block-navigation-item__content {
  position: relative;
  padding-block: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(245 246 243 / 0.78);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.wp-block-navigation.header-nav .wp-block-navigation-item__content:hover,
.wp-block-navigation.header-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--calque); }
.wp-block-navigation.header-nav .current-menu-item > .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--jaune);
  transform: rotate(45deg);
}
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-open,
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-close { color: var(--calque); }
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
/* Panneau mobile : blanc sur blanc sans ceci (CSS du bloc imprimé après) */
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--nuit) !important;
  color: var(--calque) !important;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
}
.wp-block-navigation.header-nav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch !important; }
.wp-block-navigation.header-nav .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--line-dark); width: 100%; }
.wp-block-navigation.header-nav .is-menu-open .wp-block-navigation-item__content {
  padding-block: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--calque);
}
.wp-block-navigation.header-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--jaune); }
.wp-block-navigation.header-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content::after { display: none; }

/* Bouton du menu mobile : carré à bordure fine, trois traits, aligné à droite */
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-open,
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(245 246 243 / 0.3);
  background: transparent;
  color: var(--calque);
}
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-open::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}
/* Au-delà du seuil mobile de WordPress (600px), le menu est affiché en ligne : pas de bouton */
@media (min-width: 600px) {
  .wp-block-navigation.header-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
}
.wp-block-navigation.header-nav .wp-block-navigation__responsive-container-close svg { width: 24px; height: 24px; }
/* Fermeture : à la place exacte du bouton d'ouverture */
.wp-block-navigation.header-nav .is-menu-open .wp-block-navigation__responsive-container-close {
  position: fixed;
  top: calc((var(--header-h) - 48px) / 2);
  right: var(--gutter);
}
/* Le logo reste visible au-dessus du panneau ouvert */
.wp-block-site-logo.header-logo { position: relative; z-index: 100001; }
.wp-block-navigation.header-nav .is-menu-open .wp-block-navigation-item__content:focus:not(:focus-visible) { outline: none; }
@media (max-width: 1023px) {
  .wp-block-navigation.header-nav { margin-left: auto; margin-right: 0; }
}

.wp-block-buttons.header-cta .wp-block-button__link { min-height: 2.9rem; padding-inline: 1.25rem; font-size: 0.9rem; }
@media (max-width: 1023px) {
  .wp-block-buttons.header-cta { display: none; }
  .wp-block-site-logo.header-logo img { height: 50px; }
  .site-header.is-scrolled .wp-block-site-logo.header-logo img { height: 50px; }
}
@media (max-width: 767px) {
  .wp-block-site-logo.header-logo img,
  .site-header.is-scrolled .wp-block-site-logo.header-logo img { height: 44px; }
}

/* ----- Pied de page ----- */
/* Grand nom SOGETRAP : occupe exactement la largeur du contenu, à toutes les tailles
   d'écran (rapport largeur/corps de la police mesuré : 3,45 → 28,8cqi ≈ 99 %). */
.site-footer > .container { container-type: inline-size; }
.site-footer .footer-wordmark {
  position: relative;
  font-size: 28.8cqi;
  text-align: center;
  letter-spacing: 0;
}
.site-footer .footer-col a,
.site-footer .footer-bottom a { color: rgb(245 246 243 / 0.8); text-decoration: none; transition: color var(--dur-fast); }
.site-footer .footer-col a:hover,
.site-footer .footer-bottom a:hover { color: var(--jaune); }
.site-footer .footer-col .wp-block-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-col p { font-size: 0.925rem; color: rgb(245 246 243 / 0.8); }
.site-footer .footer-col p + p { margin-top: 0.6rem; }
.wp-block-navigation.footer-nav .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.wp-block-navigation.footer-nav .wp-block-navigation-item__content { font-size: 0.925rem; padding: 0; color: rgb(245 246 243 / 0.8); }
.wp-block-navigation.footer-nav .wp-block-navigation-item__content:hover { color: var(--jaune); }
.footer-brand .muted { font-size: 0.925rem; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 1.75rem; font-size: 0.85rem; color: var(--gris); }
.footer-bottom p:last-child { display: flex; gap: 1.5rem; }

/* ----- Héro de l'accueil : voile en pseudo-élément ----- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--nuit) 0%, rgb(8 24 39 / 0.85) 20%, rgb(8 24 39 / 0.2) 55%, rgb(8 24 39 / 0.45) 100%),
    linear-gradient(to right, rgb(8 24 39 / 0.7) 0%, rgb(8 24 39 / 0.15) 55%, transparent 100%);
}
.wp-block-image.hero-bg { position: absolute; inset: 0; z-index: -2; }
.wp-block-image.hero-bg img { object-position: 62% 40%; }
/* Animation d'entrée du héro : voir anim.css (séquence unique) */
@keyframes wp-rise { from { transform: translateY(18px); } }
@keyframes wp-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(to top, var(--nuit) 0%, rgb(8 24 39 / 0.9) 38%, rgb(8 24 39 / 0.3) 70%, rgb(8 24 39 / 0.6) 100%); }
  .wp-block-image.hero-bg img { object-position: 70% 40%; }
  .hero-foot .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .hero-foot .wp-block-button .wp-block-button__link { width: 100%; }
}

/* ----- Bandeau ----- */
.band .band-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0.25rem var(--gutter);
  list-style: none;
}
.band .band-row li {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 1.1rem clamp(1rem, 2vw, 1.75rem) 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.band .band-row li::before { content: ''; width: 7px; height: 7px; background: var(--jaune); transform: rotate(45deg); }

/* ----- Repères communs ----- */
.section-head { display: grid; gap: 1.5rem; }
.about-caption::before { content: ''; width: 1.5rem; height: 1px; background: currentColor; }
.about-figure .caption,
.ent-ambition-figure .caption { margin-top: 0.9rem; }
.about-body .wp-block-buttons { margin-top: 0.5rem; }

/* Listes de faits (remplacent les <dl> de la maquette) */
.facts { align-self: stretch; display: grid; border-top: 1px solid var(--line-light); }
.facts .fact {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line-light);
}
.facts .fact-k {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-fonce);
}
.facts .fact-v { font-weight: 600; }
.facts .fact-v a { color: inherit; border-bottom: 1px solid currentColor; }
.about-facts { margin-block: 2.5rem; }
@media (max-width: 767px) {
  .facts .fact { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ----- Expertises (accueil) ----- */
.exp-body { border-top: 1px solid var(--line-dark); }
.exp-body::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--jaune);
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}
.exp-card:hover .exp-body::before { transform: scaleX(1); }
.exp-items { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.exp-link { margin-top: 1rem; }
.exp-link a,
.exp-all a { display: inline-flex; gap: 0.5rem; font-weight: 700; color: var(--calque); padding-block: 0.6rem; border-bottom: 1px solid rgb(245 246 243 / 0.35); }
.exp-link a::after,
.exp-all a::after { content: '→'; transition: transform var(--dur-base) var(--ease-out); }
.exp-link a:hover,
.exp-all a { color: var(--jaune); }
.exp-link a:hover::after,
.exp-all a:hover::after { transform: translateX(5px); }
.exp-header-lead { display: grid; gap: 1.25rem; justify-items: start; }
.exp-card--exploitation .wp-block-image.media img { object-fit: contain; background: var(--acier); }

/* ----- Signature : le plan technique est un décor CSS ----- */
.signature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(156 168 176 / 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.09) 1px, transparent 1px),
    linear-gradient(to right, rgb(156 168 176 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.04) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}
.signature-inner::after {
  content: '';
  grid-column: 4 / -1;
  grid-row: 1;
  z-index: 1;
  aspect-ratio: 1200 / 820;
  background: url('assets/img/plan-signature.svg') center / contain no-repeat;
}
@media (max-width: 1023px) {
  .signature-inner::after { grid-column: 1 / -1; grid-row: 2; }
}

/* ----- Pourquoi / Méthode ----- */
.why-item { border-top: 1px solid rgb(8 24 39 / 0.18); padding-top: clamp(1.75rem, 2.5vw, 2.5rem); display: grid; grid-template-columns: clamp(4.5rem, 7vw, 7rem) 1fr; gap: 1.25rem; }
.why-list { display: grid; gap: clamp(2rem, 3vw, 3rem); grid-column: 7 / span 6; }
/* Tablette et mobile : le titre passe au-dessus de la liste (sinon les deux colonnes se chevauchent) */
@media (max-width: 1023px) {
  .why-head { grid-column: 1 / -1; position: static; margin-bottom: 1rem; }
  .why-list { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .why-item { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; }
}
.method-steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 1px;
  background: var(--jaune);
}
.method-step { opacity: 1; padding-top: 3rem; }
.method-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border: 1px solid var(--jaune);
  background: radial-gradient(var(--jaune) 0 4.5px, var(--acier) 5px);
  transform: rotate(45deg);
}
@media (max-width: 1023px) {
  .method-steps { padding-left: 3rem; }
  .method-steps::before { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .method-step { padding-top: 0; }
  .method-step::before { left: -3rem; }
}

/* ----- CTA final ----- */
.final-cta::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(3rem, 5vw, 4.5rem);
  height: 1px;
  background: linear-gradient(to right, transparent, rgb(243 182 63 / 0.45) 15%, rgb(243 182 63 / 0.45) 85%, transparent);
}

/* ----- Contact + Contact Form 7 ----- */
.contact-list { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line-light); }
.contact-item { display: grid; gap: 0.15rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line-light); }
.contact-label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; color: var(--gris-fonce); }
.contact-value a { color: var(--nuit); font-weight: 700; border-bottom: 1px solid currentColor; }
.contact-panel .wpcf7 { margin: 0; }
.contact-panel .wpcf7-form-control-wrap { display: block; }
.contact-panel .field label { display: block; font-size: 0.875rem; font-weight: 700; }
.contact-panel .field label .wpcf7-form-control-wrap { margin-top: 0.45rem; }
.contact-panel .field-req,
.contact-panel .field-opt { font-weight: 500; color: var(--gris-fonce); }
.about-body .lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.about-body .muted { margin-top: 1.25rem; }
.contact-panel .wpcf7 input[type='text'],
.contact-panel .wpcf7 input[type='email'],
.contact-panel .wpcf7 input[type='tel'],
.contact-panel .wpcf7 select,
.contact-panel .wpcf7 textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(8 24 39 / 0.22);
  border-radius: 0;
  background: var(--calque);
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
}
.contact-panel .wpcf7 textarea { min-height: 8rem; resize: vertical; }
.contact-panel .wpcf7 :is(input, select, textarea):focus { outline: none; border-color: var(--nuit); background: #fff; box-shadow: inset 0 -2px 0 var(--jaune); }
.contact-panel .wpcf7-not-valid { border-color: #b3261e !important; }
.contact-panel .wpcf7-not-valid-tip { margin-top: 0.35rem; font-size: 0.85rem; font-weight: 600; color: #b3261e; }
.contact-panel .form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.contact-panel .form-legal { font-size: 0.8rem; color: var(--gris-fonce); max-width: 26rem; }
.contact-panel .form-legal a { color: var(--nuit); font-weight: 600; border-bottom: 1px solid currentColor; }
.contact-panel .wpcf7-submit {
  --cut: 10px;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--jaune);
  color: var(--nuit);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.contact-panel .wpcf7-submit:hover { background: var(--jaune-vif); }
.contact-panel .wpcf7-spinner { margin: 0 0 0 0.75rem; }
.contact-panel .wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 1rem 1.1rem; border: 0; border-left: 3px solid var(--acier); background: var(--calque); font-size: 0.925rem; }
.contact-panel .wpcf7 form.invalid .wpcf7-response-output,
.contact-panel .wpcf7 form.failed .wpcf7-response-output { border-left-color: #b3261e; background: #fbeeed; }
.contact-panel .wpcf7 form.sent .wpcf7-response-output { border-left-color: #2e7d32; background: #edf7ee; }
@media (max-width: 767px) {
  .contact-panel .wpcf7-submit { width: 100%; }
}

/* ----- En-tête des pages intérieures ----- */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(156 168 176 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(156 168 176 / 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.breadcrumb { font-size: 0.85rem; color: var(--gris); }
.breadcrumb a { color: var(--gris); }
.breadcrumb a:hover { color: var(--jaune); }
.page-hero-foot::before { content: ''; flex: 1; height: 1px; margin-bottom: 0.4rem; background: rgb(245 246 243 / 0.3); }
.cartouche { display: grid; grid-template-columns: auto auto auto; border: 1px solid rgb(245 246 243 / 0.28); font-size: 0.75rem; }
.cartouche-cell { padding: 0.5rem 0.85rem; border-left: 1px solid rgb(245 246 243 / 0.28); }
.cartouche-cell:first-child { border-left: 0; }
.cartouche-k { font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.cartouche-v { font-weight: 700; color: var(--calque); white-space: nowrap; }
@media (max-width: 767px) {
  .page-hero-foot::before { display: none; }
  .cartouche { grid-template-columns: 1fr 1fr 1fr; }
}

/* ----- Entreprise ----- */
.ent-ambition-text .wp-block-heading { margin-bottom: 0.5rem; }
.ent-commitments .ent-commit { padding-top: 1rem; border-top: 1px solid rgb(8 24 39 / 0.2); }
.chain-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}
.chain-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 1.5px; background: var(--jaune); }
.chain-step { position: relative; display: grid; align-content: start; gap: 0.9rem; padding-top: 3rem; }
.chain-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--jaune);
  background: radial-gradient(var(--cyan) 0 5px, var(--plan) 5.5px);
  transform: rotate(45deg);
}
.chain-text { color: rgb(245 246 243 / 0.78); max-width: 26em; }
@media (max-width: 1023px) {
  .chain-steps { grid-template-columns: 1fr; padding-left: 3rem; }
  .chain-steps::before { left: 11px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .chain-step { padding-top: 0; }
  .chain-step::before { left: -3rem; }
}

/* ----- Expertises (page) ----- */
.subnav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); overflow-x: auto; white-space: nowrap; }
.subnav-links a { display: inline-block; padding-block: 1.05rem; font-weight: 700; font-size: 0.925rem; color: var(--gris-fonce); border-bottom: 2px solid transparent; }
.subnav-links a:hover { color: var(--nuit); border-bottom-color: var(--jaune); }
.pole-cap { display: grid; grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 6fr); gap: 1.5rem; align-items: baseline; padding-block: clamp(1.4rem, 2.2vw, 2rem); border-top: 1px solid rgb(8 24 39 / 0.16); }
.pole-cta { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.wp-block-image.pole-image { aspect-ratio: 16 / 10; }
.wp-block-image.pole-image--1 { aspect-ratio: 4 / 3.4; }
.principles-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.principle { display: grid; gap: 0.5rem; }
.principle-t { font-weight: 700; }
.principle-d { color: rgb(245 246 243 / 0.75); font-size: 0.95rem; }
@media (max-width: 767px) {
  .pole-cap { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.5rem; }
  .pole-cap-text { grid-column: 2; }
  .principles-list { grid-template-columns: 1fr; }
}

/* ----- Réalisations / Contact (pages) ----- */
.ref-field-text,
.ct-check-text { color: rgb(245 246 243 / 0.78); font-size: 0.95rem; }
.ct-office-card .facts { width: 100%; }

/* ----- Pages légales ----- */
.legal .legal-main { max-width: 48rem; }
.legal .legal-h { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; margin: 2.5rem 0 0.75rem; }
.legal .legal-h:first-child { margin-top: 0; }
.legal p,
.legal li { color: var(--gris-fonce); margin-bottom: 0.75rem; }
.legal ul { list-style: square; padding-left: 1.25rem; }
.legal a { color: var(--nuit); border-bottom: 1px solid currentColor; }
.legal strong { padding: 0 0.35rem; background: rgb(243 182 63 / 0.3); color: var(--nuit); }

/* ----- 404 ----- */
.notfound-links a { color: var(--jaune); }



/* ===== wordpress/theme-src/anim.css ===== */
/* ==========================================================================
   Animations du thème WordPress (équivalent du système de mouvement React).
   Actives seulement quand app.js a posé html.anim : sans JavaScript, dans
   l'éditeur, ou avec « réduire les animations », tout reste visible.
   Le script ajoute .is-in à l'entrée dans l'écran : aucun contenu injecté.
   ========================================================================== */

.anim [data-anim] { transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }

/* Apparition discrète (paragraphes, listes, boutons) */
.anim [data-anim='fade']:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* Grands titres : dévoilés de bas en haut, comme derrière un masque */
.anim [data-anim='title'] { transition-duration: 1.1s; }
.anim [data-anim='title']:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }
.anim [data-anim='title'].is-in { clip-path: inset(-0.2em -0.2em -0.2em -0.2em); }

/* Sur-titres : le filet se trace puis le texte apparaît */
.anim [data-anim='kicker']:not(.is-in) { opacity: 0; }
.anim [data-anim='kicker']::before { transform-origin: left; transition: transform 0.9s var(--ease-out) var(--delay, 0s); }
.anim [data-anim='kicker']:not(.is-in)::before { transform: scaleX(0); }

/* Photographies : un rideau couleur du fond se lève, l'image se pose.
   (Pas de clip-path ici : il entrerait en conflit avec le chanfrein .chamfer,
   et le navigateur ne sait pas interpoler entre les deux formes.) */
.anim [data-anim='image'] { position: relative; overflow: hidden; }
/* Comme la photo du héro : l'image découverte se pose lentement (zoom qui se resserre) */
.anim [data-anim='image'] img { transition: transform 2.4s var(--ease-out) calc(var(--delay, 0s) + 0.15s); }
.anim [data-anim='image']:not(.is-in) img { transform: scale(1.14); }
.anim [data-anim='image']::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
  background: var(--calque);
  transform-origin: 50% 0%;
  transition: transform 1.1s var(--ease-in-out) var(--delay, 0s);
  pointer-events: none;
}
.anim .on-dark [data-anim='image']::after { background: var(--nuit); }
.anim .pole--alt [data-anim='image']::after { background: var(--calque-2); }
.anim [data-anim='image'].is-in::after { transform: scaleY(0); }

/* Parallaxe des photos (variable --py posée par app.js). « translate » et « scale » sont des
   propriétés indépendantes de « transform » : elles se cumulent avec le zoom d'apparition et
   le zoom de survol sans les annuler. */
.px .wp-block-image.media img,
.px .wp-block-image.hero-bg img {
  scale: 1.1;
  translate: 0 var(--py, 0px);
  will-change: translate;
}
.px .exp-card--exploitation .wp-block-image.media img { scale: none; translate: none; }

/* Cartes « Nos domaines d'expertise » : survol comme dans la version d'origine —
   la photo avance légèrement et un voile nuit/jaune se pose (le schéma garde son ::before). */
.exp-card:not(.exp-card--exploitation) .wp-block-image.exp-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgb(8 24 39 / 0.55), rgb(243 182 63 / 0.18));
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  pointer-events: none;
}
.wp-block-image.exp-media { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .exp-card:not(.exp-card--exploitation):hover .wp-block-image.exp-media::before { opacity: 1; }
  .exp-card:hover .wp-block-image.exp-media img { transform: scale(1.045); transition-duration: 900ms; transition-delay: 0s; }
}

/* Filets, lignes de progression et plan technique : ils se dessinent */
.anim .method-steps::before,
.anim .chain-steps::before,
.anim .final-cta::before { transform-origin: left; transition: transform 1.6s var(--ease-in-out) 0.2s; }
.anim .method-steps:not(.is-in)::before,
.anim .chain-steps:not(.is-in)::before,
.anim .final-cta:not(.is-in)::before { transform: scaleX(0); }
@media (max-width: 1023px) {
  .anim .method-steps::before,
  .anim .chain-steps::before { transform-origin: top; }
  .anim .method-steps:not(.is-in)::before,
  .anim .chain-steps:not(.is-in)::before { transform: scaleY(0); }
}
/* Plan technique : la version animée (tracés SVG qui se dessinent) est chargée par app.js
   à l'entrée dans l'écran, pour que le dessin démarre à ce moment-là. */
.anim .signature-inner::after { background-image: var(--plan, none); }
/* Schéma unifilaire (carte Exploitation) : la version animée recouvre l'image fixe,
   qui reste affichée telle quelle sans JavaScript ou avec « réduire les animations ». */
.anim .exp-card--exploitation .exp-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--diag, none) center / cover no-repeat #203b50;
  pointer-events: none;
}
.anim .method-step::before,
.anim .chain-step::before { transition: transform 0.5s var(--ease-out) var(--delay, 0s), opacity 0.5s var(--delay, 0s); }
.anim .method-steps:not(.is-in) .method-step::before,
.anim .chain-steps:not(.is-in) .chain-step::before { transform: rotate(45deg) scale(0); opacity: 0; }

/* Héro de l'accueil : séquence d'entrée unique, en CSS pur, jouée une seule fois au
   chargement (sans attendre le script : aucun clignotement, aucun double déclenchement).
   1. la photo sort de la nuit et se pose   2. le sur-titre se dévoile de gauche à droite
   3. le titre monte derrière un masque    4. le filet se trace   5. texte puis boutons */
.hero { background-color: var(--nuit); }
.wp-block-image.hero-bg img { animation: hero-settle 2.6s var(--ease-out) both; }
.hero-kicker { animation: hero-wipe 0.9s var(--ease-in-out) 0.35s both; }
.hero-title { animation: hero-title 1.2s var(--ease-out) 0.55s both; }
.hero-foot { position: relative; border-top-color: transparent !important; }
.hero-foot::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgb(245 246 243 / 0.25);
  transform-origin: left;
  animation: hero-line 1.3s var(--ease-in-out) 1s both;
  pointer-events: none;
}
.hero-lead { animation: hero-up 0.9s var(--ease-out) 1.2s both; }
.hero-actions { animation: hero-up 0.9s var(--ease-out) 1.35s both; }
/* En-têtes des pages intérieures (Entreprise, Expertises, Réalisations, Contact, pages légales) :
   même langage que l'accueil, joué une fois au chargement. La photo se découvre derrière un
   rideau bleu nuit qui se lève, puis se pose lentement, comme la photo du héro. */
.page-hero .breadcrumb { animation: hero-up 0.8s var(--ease-out) 0.1s both; }
.page-hero .kicker { animation: hero-wipe 0.9s var(--ease-in-out) 0.25s both; }
.page-hero-title { animation: hero-title 1.2s var(--ease-out) 0.4s both; }
.page-hero-lead { animation: hero-up 0.9s var(--ease-out) 0.95s both; }
.page-hero-extra { animation: hero-up 0.9s var(--ease-out) 1.1s both; }
.wp-block-image.page-hero-media { position: relative; overflow: hidden; }
.wp-block-image.page-hero-media img { animation: hero-settle 2.6s var(--ease-out) 0.3s both; }
.wp-block-image.page-hero-media::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
  background: var(--plan);
  transform-origin: 50% 0%;
  animation: hero-curtain 1.2s var(--ease-in-out) 0.35s both;
  pointer-events: none;
}
.page-hero-foot::before { transform-origin: left; animation: hero-line 1.3s var(--ease-in-out) 1s both; }
.page-hero .cartouche { animation: hero-up 0.8s var(--ease-out) 1.4s both; }
@keyframes hero-curtain { from { transform: scaleY(1); } to { transform: scaleY(0); } }

@keyframes hero-settle { from { opacity: 0; transform: scale(1.14); } 35% { opacity: 1; } to { opacity: 1; transform: scale(1.04); } }
@keyframes hero-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-title {
  from { clip-path: inset(0 -0.2em 100% -0.2em); transform: translateY(0.3em); }
  to { clip-path: inset(-0.2em -0.2em -0.2em -0.2em); transform: none; }
}
@keyframes hero-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Bandeau : défilement horizontal lent, en pause au survol */
.anim .band { overflow: hidden; }
.anim .band .band-row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: band-scroll 60s linear infinite; }
.anim .band:hover .band-row { animation-play-state: paused; }
.anim .band .band-row li { white-space: nowrap; }

/* Grand nom du pied de page (départ 2 s après son entrée à l'écran) : un arc lumineux le trace de gauche à droite, puis un reflet
   jaune le traverse lentement à intervalles réguliers, comme un courant dans la ligne.
   Uniquement de la peinture (découpe, fond, position absolue) : la mise en page du pied
   de page ne bouge jamais. */
.anim .footer-wordmark {
  background-image: linear-gradient(100deg, transparent 0 42%, rgb(243 182 63 / 0.55) 50%, transparent 58% 100%);
  background-size: 260% 100%;
  background-position: 150% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: clip-path 1.9s var(--ease-in-out) 2s, -webkit-text-stroke-color 1.2s ease 3.5s;
}
.anim .footer-wordmark:not(.is-in) { clip-path: inset(-10% 100% -10% 0); }
.anim .footer-wordmark.is-in {
  clip-path: inset(-10% -2% -10% 0);
  -webkit-text-stroke-color: rgb(156 168 176 / 0.4);
  animation: wm-sheen 7s var(--ease-in-out) 4.1s infinite;
}
.anim .footer-wordmark::after {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 0;
  width: 2px;
  transform: translateX(-100%); /* juste derrière le bord découvert, donc visible */
  background: var(--jaune);
  box-shadow: 0 0 12px 2px rgb(243 182 63 / 0.7), 0 0 40px 6px rgb(243 182 63 / 0.25);
  opacity: 0;
  pointer-events: none;
}
.anim .footer-wordmark.is-in::after { animation: wm-scan 1.9s var(--ease-in-out) 2s both; }
@keyframes wm-scan {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes wm-sheen {
  0% { background-position: 150% 0; }
  45%, 100% { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .anim [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .anim .band .band-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .wp-block-image.hero-bg img,
  .hero-kicker,
  .hero-title,
  .hero-foot::after,
  .hero-lead,
  .hero-actions,
  .page-hero .breadcrumb,
  .page-hero .kicker,
  .page-hero-title,
  .page-hero-lead,
  .page-hero-extra,
  .wp-block-image.page-hero-media img,
  .page-hero-foot::before,
  .page-hero .cartouche { animation: none; }
  .wp-block-image.page-hero-media::after { display: none; }
  .wp-block-image.hero-bg img { transform: scale(1.04); }
}

