/* =========================================================================
   PGP — Les Puisatiers du Grand Paris
   Refonte 2026 — Direction artistique : ingénierie de précision
   Palette : bleu marine (logo) + vert (logo) + béton
   Typo : Archivo (display) · IBM Plex Sans (texte) · IBM Plex Mono (technique)
   ========================================================================= */

:root {
  /* Marque */
  --navy: #0e2b47;
  --navy-800: #0b2238;
  --navy-900: #081a2c;
  --navy-700: #14365a;
  --green: #2e9e48;
  --green-bright: #3fbb5c;
  --green-deep: #1f7c38;

  /* Neutres béton */
  --paper: #f4f3ee;        /* béton clair, fond principal */
  --concrete: #e7e6df;     /* béton moyen */
  --concrete-2: #dcdad1;
  --ink: #14181c;          /* presque noir */
  --slate: #3a424b;        /* texte courant */
  --steel: #69727c;        /* texte secondaire */
  --line: #d4d2c8;         /* filets sur fond clair */
  --line-dark: rgba(255, 255, 255, 0.12); /* filets sur fond sombre */

  /* Accent sécurité (hi-vis) — usage très parcimonieux */
  --hivis: #ffb000;

  --white: #ffffff;

  /* Rythme */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;
  --section-pad: clamp(72px, 11vw, 168px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(8, 26, 44, 0.06), 0 2px 8px rgba(8, 26, 44, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(8, 26, 44, 0.28);
  --shadow-lg: 0 40px 80px -24px rgba(8, 26, 44, 0.45);

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--slate);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--green); color: #fff; }

/* Grain / texture béton très subtile sur tout le fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; }

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

.section { padding-block: var(--section-pad); position: relative; }
.section--navy {
  background: var(--navy);
  color: #e9eef3;
}
.section--ink { background: var(--ink); color: #e9eef3; }

/* Filets de structure verticaux (motif plan/blueprint) */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  z-index: 0;
}
.gridlines::before,
.gridlines::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.section--navy .gridlines::before,
.section--navy .gridlines::after,
.section--ink .gridlines::before,
.section--ink .gridlines::after { background: var(--line-dark); }
.gridlines::before { left: 25%; }
.gridlines::after { left: 75%; }
@media (max-width: 760px) { .gridlines { display: none; } }

/* ----------------------------------------------------- Typographie utils */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 500;
}
.section--navy .kicker, .section--ink .kicker { color: var(--green-bright); }
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.kicker .idx { color: var(--steel); }
.section--navy .kicker .idx { color: rgba(233,238,243,0.5); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section--navy :is(h1,h2,h3,h4),
.section--ink :is(h1,h2,h3,h4) { color: #fff; }

.h-display {
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--steel);
  line-height: 1.55;
  max-width: 60ch;
}
.section--navy .lead, .section--ink .lead { color: #b9c6d4; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .h-section { margin-top: 20px; }

/* ----------------------------------------------------------- Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.05em 1.7em;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(46, 158, 72, 0.7);
}
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.section--navy .btn--ghost, .section--ink .btn--ghost {
  color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 1.2em 2em; font-size: 0.9rem; }

.textlink {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
  position: relative;
}
.section--navy .textlink { color: var(--green-bright); }
.textlink::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: currentColor;
  transition: width 0.4s var(--ease);
}
.textlink:hover::after { width: 100%; }
.textlink:hover svg { transform: translateX(4px); }
.textlink svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }

/* ====================================================== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(244, 243, 238, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -16px rgba(8,26,44,0.4);
}
/* En haut de page (au-dessus du hero sombre) : header clair */
.site-header:not(.scrolled) .nav__links a { color: rgba(255,255,255,0.92); }
.site-header:not(.scrolled) .nav__links a:hover { color: #fff; }
.site-header:not(.scrolled) .nav__phone { color: #fff; }
.site-header:not(.scrolled) .burger { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.site-header:not(.scrolled) .burger span { background: #fff; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
  transition: height 0.4s var(--ease);
}
.scrolled .header-inner { height: 70px; }

/* Logo — image officielle du site d'origine, posée sur une pastille blanche
   pour rester lisible sur fond clair comme sombre */
.brand { display: inline-flex; align-items: center; }
.brand__plate {
  background: #fff;
  border-radius: 9px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 14px -4px rgba(8, 26, 44, 0.22), 0 0 0 1px rgba(8, 26, 44, 0.04);
  transition: padding 0.4s var(--ease), box-shadow 0.4s;
}
.brand__plate img {
  height: 46px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}
.scrolled .brand__plate { padding: 6px 11px; }
.scrolled .brand__plate img { height: 38px; }
.brand:hover .brand__plate { box-shadow: 0 6px 20px -4px rgba(8, 26, 44, 0.3); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav__links { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { width: 100%; }

.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem;
  color: var(--navy);
}
.nav__phone svg { width: 16px; height: 16px; color: var(--green); }
.nav__phone span { transition: color 0.25s; }
.nav__phone:hover span { color: var(--green-deep); }

.nav__cta { padding: 0.8em 1.3em; font-size: 0.78rem; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__links, .nav__phone { display: none; }
  .nav__cta { display: none; }
  .burger { display: block; }
}

/* Menu mobile plein écran */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy);
  color: #fff;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}
body.nav-open .mobile-nav { transform: translateY(0); visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  display: flex; align-items: baseline; gap: 16px;
  padding: 6px 0;
  opacity: 0; transform: translateY(20px);
}
body.nav-open .mobile-nav a {
  animation: navItem 0.6s var(--ease) forwards;
}
.mobile-nav a .num {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--green-bright);
  font-weight: 500;
}
@keyframes navItem { to { opacity: 1; transform: translateY(0); } }
.mobile-nav__foot {
  margin-top: 48px; display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono); font-size: 0.95rem; color: #b9c6d4;
}
.mobile-nav__foot a { font-family: var(--font-mono); font-size: 0.95rem; color: var(--green-bright); }

/* ============================================================== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 7vw, 96px);
  padding-top: 140px;
  background: var(--navy-900);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,44,0.55) 0%, rgba(8,26,44,0.25) 35%, rgba(8,26,44,0.85) 100%),
    linear-gradient(90deg, rgba(8,26,44,0.7) 0%, rgba(8,26,44,0.1) 60%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow {
  color: var(--green-bright);
  margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 7.2vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 16ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.25s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.37s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.49s; }
.hero h1 em { font-style: normal; color: var(--green-bright); }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub {
  margin-top: 32px;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: #cdd8e4;
  line-height: 1.55;
  opacity: 0; transform: translateY(20px);
  animation: rise 0.9s var(--ease) 0.7s forwards;
}
.hero__actions {
  margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px;
  opacity: 0; transform: translateY(20px);
  animation: rise 0.9s var(--ease) 0.85s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Bandeau de réassurance bas de hero */
.hero__trust {
  position: relative; z-index: 2;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  opacity: 0; transform: translateY(20px);
  animation: rise 0.9s var(--ease) 1s forwards;
}
.hero__trust div { display: flex; flex-direction: column; gap: 4px; }
.hero__trust dt {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green-bright);
}
.hero__trust dd { color: #dfe7ef; font-size: 0.95rem; font-weight: 500; }
@media (max-width: 760px) {
  .hero__trust { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Indice de profondeur décoratif sur le côté du hero */
.hero__depth {
  position: absolute; right: var(--gutter); top: 45%; bottom: 12%;
  z-index: 2; width: 1px; background: var(--line-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end;
}
.hero__depth span {
  font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em; padding-right: 12px; position: relative;
  transform: translateY(50%);
}
.hero__depth span::after {
  content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 1px;
  background: rgba(255,255,255,0.45);
}
@media (max-width: 1080px) { .hero__depth { display: none; } }

.scrollcue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scrollcue .bar { width: 1px; height: 38px; background: rgba(255,255,255,0.3); overflow: hidden; position: relative; }
.scrollcue .bar::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--green-bright); animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown { 0% { top: -100%; } 60%,100% { top: 100%; } }
@media (max-width: 760px) { .scrollcue { display: none; } }

/* ============================================== BANDEAU LOGOS / INTRO ===== */
.intro { background: var(--paper); border-bottom: 1px solid var(--line); }
.intro .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.intro__statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.7vw, 2.4rem); line-height: 1.18;
  letter-spacing: -0.02em; color: var(--navy);
}
.intro__statement em { font-style: normal; color: var(--green-deep); }
.intro__body p { margin-bottom: 18px; }
.intro__body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .intro .container { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================ SAVOIR-FAIRE / SERVICES ===== */
.services .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 40px; flex-wrap: wrap; }
.services .section-head > div { max-width: 640px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.section--navy .svc-grid { background: var(--line-dark); border-color: var(--line-dark); }
.svc-card {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: background 0.4s var(--ease);
  overflow: hidden;
}
.section--navy .svc-card { background: var(--navy); }
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--green); transition: width 0.5s var(--ease);
}
.svc-card:hover { background: #fff; }
.section--navy .svc-card:hover { background: var(--navy-700); }
.svc-card:hover::before { width: 100%; }
.svc-card__num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel);
  letter-spacing: 0.12em;
}
.section--navy .svc-card__num { color: rgba(233,238,243,0.5); }
.svc-card__icon {
  width: 48px; height: 48px; margin: 22px 0 24px;
  color: var(--green-deep);
}
.section--navy .svc-card__icon { color: var(--green-bright); }
.svc-card__icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 1.4rem; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.02em; }
.svc-card p { font-size: 0.98rem; color: var(--steel); line-height: 1.55; flex: 1; }
.section--navy .svc-card p { color: #aebccb; }
.svc-card__tag {
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.section--navy .svc-card__tag { color: var(--green-bright); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* =================================================== CHIFFRES / STATS ===== */
.stats { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.stats :is(h1,h2,h3,h4) { color: #fff; }
.stats .kicker { color: var(--green-bright); }
.stats .kicker .idx { color: rgba(233,238,243,0.5); }
.stats__bg {
  position: absolute; inset: 0; opacity: 0.16; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(0.4) contrast(1.1);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
}
.stats .container { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); margin-top: 56px; border: 1px solid rgba(255,255,255,0.1); }
.stat {
  background: var(--ink); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem); line-height: 0.9;
  letter-spacing: -0.04em; color: #fff;
  display: flex; align-items: baseline; gap: 4px;
}
.stat__num .unit { font-size: 0.4em; color: var(--green-bright); font-weight: 700; letter-spacing: 0; }
.stat__label { font-size: 0.95rem; color: #9fb0c0; line-height: 1.4; max-width: 24ch; }
.stat__tick { font-family: var(--font-mono); font-size: 0.7rem; color: var(--green-bright); letter-spacing: 0.1em; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================== RÉALISATIONS / WORK ===== */
.work .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; flex-wrap: wrap; gap: 32px; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 28px); }
.proj {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-900);
  cursor: pointer;
  display: flex;
}
.proj img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: saturate(0.92);
}
.proj:hover img { transform: scale(1.06); filter: saturate(1.05); }
.proj__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,44,0) 30%, rgba(8,26,44,0.55) 65%, rgba(8,26,44,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 2.4vw, 34px);
  z-index: 1;
}
.proj__tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  background: var(--green-bright); padding: 6px 10px; border-radius: 3px;
  font-weight: 600;
  margin-bottom: auto;
  transform: translateY(-6px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.proj:hover .proj__tag { transform: translateY(0); opacity: 1; }
.proj__client { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 8px; }
.proj h3 { color: #fff; font-size: clamp(1.2rem, 1.8vw, 1.6rem); margin-bottom: 8px; }
.proj p { color: #c5d2e0; font-size: 0.92rem; line-height: 1.5; max-width: 46ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.5s; }
.proj:hover p { max-height: 160px; opacity: 1; margin-top: 2px; }
.proj__corner {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 26px; height: 26px;
  border-top: 2px solid rgba(255,255,255,0.5);
  border-right: 2px solid rgba(255,255,255,0.5);
  transition: all 0.4s var(--ease);
}
.proj:hover .proj__corner { width: 34px; height: 34px; border-color: var(--green-bright); }

/* Tailles asymétriques */
.proj--lg { grid-column: span 8; aspect-ratio: 16 / 10; }
.proj--sm { grid-column: span 4; aspect-ratio: 4 / 5; }
.proj--md { grid-column: span 6; aspect-ratio: 3 / 2; }
.proj--tall { grid-column: span 4; aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .proj--lg, .proj--sm, .proj--md, .proj--tall { grid-column: span 12; aspect-ratio: 16 / 11; }
  .proj p { max-height: 160px; opacity: 1; margin-top: 8px; }
  .proj__tag { opacity: 1; transform: none; }
}

/* =============================================== POURQUOI / VALEURS ===== */
.why .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__sticky { position: sticky; top: 120px; }
.why h2 { margin: 22px 0 24px; }
.value-list { display: flex; flex-direction: column; }
.value {
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  padding: 30px 0; border-top: 1px solid var(--line-dark);
  align-items: start;
}
.value:last-child { border-bottom: 1px solid var(--line-dark); }
.value__no { font-family: var(--font-mono); font-size: 0.85rem; color: var(--green-bright); padding-top: 4px; }
.value h3 { font-size: 1.45rem; margin-bottom: 10px; }
.value p { color: #aebccb; font-size: 1rem; }
.value__icon { width: 30px; height: 30px; color: var(--green-bright); margin-bottom: 14px; }
@media (max-width: 860px) {
  .why .container { grid-template-columns: 1fr; }
  .why__sticky { position: static; }
}

/* =================================================== TÉMOIGNAGES ========= */
.reviews .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; flex-wrap: wrap; gap: 24px; }
.reviews__score { display: flex; align-items: center; gap: 18px; }
.reviews__score .big { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--navy); line-height: 1; }
.stars { display: inline-flex; gap: 3px; color: var(--hivis); }
.stars svg { width: 18px; height: 18px; }
.reviews__score small { display: block; font-size: 0.82rem; color: var(--steel); font-family: var(--font-mono); letter-spacing: 0.04em; margin-top: 4px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
  position: relative;
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.review__quote { font-size: 1.05rem; color: var(--slate); line-height: 1.6; flex: 1; }
.review__quote::first-letter { }
.review__mark { font-family: var(--font-display); font-size: 3.4rem; color: var(--concrete-2); line-height: 0.5; height: 22px; }
.review__author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.review__author b { display: block; color: var(--navy); font-size: 0.98rem; font-weight: 700; }
.review__author span { font-size: 0.82rem; color: var(--steel); }
@media (max-width: 920px) { .review-grid { grid-template-columns: 1fr; } }

.reviews__note { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.attest-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.attest-strip a {
  display: block; width: 64px; height: 84px; border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.attest-strip a:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: var(--shadow-md); }
.attest-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4); }

/* ============================================ CERTIFICATIONS / BANDE ===== */
.certs { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.certs .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.certs__txt { max-width: 540px; }
.certs__txt h3 { font-size: 1.6rem; margin-bottom: 12px; }
.certs__txt p { color: var(--steel); }
.certs__badges { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.cert-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-badge svg { width: 38px; height: 38px; color: var(--green-deep); }
.cert-badge b { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.cert-badge span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }

/* =============================================== ZONE D'INTERVENTION ===== */
.zone .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.zone__map { position: relative; }
.zone-dept { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.zone-dept li {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 40px;
  color: #cdd8e4;
}
.zone-dept li b { color: var(--green-bright); }
@media (max-width: 860px) { .zone .container { grid-template-columns: 1fr; } }

/* ==================================================== CONTACT / CTA ===== */
.contact { background: var(--paper); }
.contact .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); }
.contact__info h2 { margin: 20px 0 22px; }
.contact__info .lead { margin-bottom: 36px; }
.contact-rows { display: flex; flex-direction: column; gap: 4px; }
.contact-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy); color: var(--green-bright); display: grid; place-items: center; }
.contact-row__icon svg { width: 20px; height: 20px; }
.contact-row__k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.contact-row__v { font-size: 1.1rem; color: var(--navy); font-weight: 500; }
.contact-row__v a:hover { color: var(--green-deep); }
.contact-row small { display: block; font-size: 0.85rem; color: var(--steel); font-weight: 400; margin-top: 2px; }

/* Formulaire */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(28px, 3.4vw, 48px); box-shadow: var(--shadow-md);
  align-self: start;
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--steel); font-size: 0.95rem; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.field label .req { color: var(--green-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 4px rgba(46,158,72,0.12);
}
.form-card button[type=submit] { width: 100%; justify-content: center; margin-top: 4px; }
.form-consent { font-size: 0.78rem; color: var(--steel); margin-top: 14px; line-height: 1.5; }
.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 30px 10px;
}
.form-success svg { width: 56px; height: 56px; color: var(--green); }
.form-success h3 { color: var(--navy); }
.form-card.sent .form-grid, .form-card.sent > p, .form-card.sent .form-consent, .form-card.sent button { display: none; }
.form-card.sent .form-success { display: flex; }
@media (max-width: 980px) { .contact .container { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* Carte (map) */
.map-embed { margin-top: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ====================================================== FINAL CTA ======== */
.bigcta { background: var(--green-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.bigcta::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(8,26,44,0.4), transparent 45%);
}
.bigcta .container { position: relative; z-index: 1; }
.bigcta h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 18ch; margin-inline: auto; }
.bigcta p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 22px auto 36px; font-size: 1.15rem; }
.bigcta .btn--primary { background: #fff; color: var(--green-deep); box-shadow: var(--shadow-lg); }
.bigcta .btn--primary:hover { background: var(--navy); color: #fff; }
.bigcta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6); }
.bigcta .btn--ghost:hover { background: #fff; color: var(--green-deep); }
.bigcta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ======================================================== FOOTER ========= */
.site-footer { background: var(--navy-900); color: #9fb0c0; padding-top: clamp(64px, 8vw, 110px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: #fff; margin-bottom: 22px; }
.footer-brand .brand__word b { color: #fff; }
.footer-brand p { font-size: 0.95rem; line-height: 1.6; max-width: 36ch; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: var(--radius);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark);
  color: #cdd8e4; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.footer-social a:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.95rem; transition: color 0.25s, padding 0.25s; }
.footer-col a:hover { color: var(--green-bright); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 0 40px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.footer-bottom .legal { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--green-bright); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ====================================================== LIGHTBOX ========= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,16,26,0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 5vw; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 4px; box-shadow: var(--shadow-lg); transform: scale(0.96); transition: transform 0.5s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox__caption { position: absolute; bottom: 4vw; left: 0; right: 0; text-align: center; color: #cdd8e4; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; }
.lightbox__close { position: absolute; top: 24px; right: 28px; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); color: #fff; display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.lightbox__close:hover { background: var(--green); transform: rotate(90deg); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ====================================================== REVEAL ANIM ====== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

/* Barre de progression scroll */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--green), var(--green-bright)); z-index: 200; transition: width 0.1s linear; }

/* Skip link a11y */
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 18px; z-index: 300; }
.skip:focus { left: 12px; top: 12px; }
