/* =========================================================
   GeoAqua Green — Refonte 2026 (chargée après style.css)
   Système : neutres chauds « sable », contraste AA, rythme
   de sections alterné, photos réelles, motion unifié.
   ========================================================= */
:root {
  --ink: #0A1F33;
  --text: #24323F;
  --muted: #56646F;           /* 5.9:1 sur fond clair (était #6B7A88, 4.2:1) */
  --line: #E6E1D6;
  --bg: #FBFAF7;              /* blanc cassé chaud, plus de #FFF pur */
  --bg-soft: #F3EFE6;
  --aqua: #8EE3E8;
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* courbe signature */
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t-quick: 160ms; --t-std: 320ms; --t-slow: 900ms;
  --shadow: 0 1px 2px rgba(10,31,51,.06), 0 12px 32px -16px rgba(10,31,51,.22);
}
body { background: var(--bg); }
.stack-front { background: var(--bg); }

/* ---------- Typo : hiérarchie et mesure ---------- */
h2 { letter-spacing: -0.025em; line-height: 1.04; }
.lead { color: var(--muted); max-width: 62ch; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.stat b, .kpis b, .sc-big { font-variant-numeric: tabular-nums; }

/* Hero : la ligne « eau » passe en aqua (le jaune se perdait dans le ciel doré) */
.hero.cine h1 .hl { color: var(--aqua); }
.hero.cine::after { background: linear-gradient(180deg, rgba(10,31,51,.45) 0%, rgba(10,31,51,.15) 35%, rgba(10,31,51,.7) 100%); }

/* ---------- États interactifs (R11) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 12px;
}
.btn .pill { transition: background-color var(--t-quick) ease, transform var(--t-quick) var(--ease-out); }
.btn .arrow { transition: transform var(--t-std) var(--ease-out), background-color var(--t-quick) ease; }
.btn:active .pill, .btn:active .arrow { transform: scale(.97); }
.field input, .field select, .field textarea { transition: border-color var(--t-quick) ease, background-color var(--t-quick) ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CFC8B8; }

/* ---------- Photos : conteneurs et voiles de lisibilité ---------- */
.svc-card .media, .proj .media, .quote .side, .img-card, .feature-media, .page-hero { position: relative; isolation: isolate; }
.svc-card .media { min-height: 260px; border-radius: 16px; }
.svc-card .media img.cover, .proj .media img.cover, .feature-media img.cover { object-position: center 50%; }
.img-card::after, .quote .side::after, .proj .media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,31,51,0) 40%, rgba(10,31,51,.78) 100%);
}
.proj .media::after { background: linear-gradient(180deg, rgba(10,31,51,.25) 0%, rgba(10,31,51,0) 35%); }
.img-card { min-height: 260px; }
.img-card.light .cap { color: #fff; top: auto; bottom: 16px; }
.img-card .cap, .quote .side .over { z-index: 2; }
.page-hero > img.cover { z-index: 0; object-position: center 55%; }
.page-hero:has(> img.cover)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,31,51,.6) 0%, rgba(10,31,51,.12) 40%, rgba(10,31,51,.88) 100%);
}
.page-hero .header { z-index: 3; }
.page-hero .inner { z-index: 2; }
.proj .media { height: 280px; overflow: hidden; }
.proj:hover img.cover, .img-card:hover img.cover, .feature-media:hover img.cover { transform: scale(1.04); }
.proj { transition: transform var(--t-std) var(--ease-out), box-shadow var(--t-std) ease; }
.proj:hover { box-shadow: var(--shadow); }

/* ---------- Bandeau de confiance (nouvelle section) ---------- */
.trust-band { padding: 8px 0 64px; }
.trust-band .tb-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust-band .tb-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.marquee-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.marquee-item:nth-child(3n+2) i { background: var(--sun); }
.marquee-item:nth-child(3n) i { background: var(--lagoon); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres : séparateurs fins au lieu de blocs uniformes ---------- */
.count-stats .stat { padding: 8px 24px 8px 0; border-right: 1px solid var(--line); }
.count-stats .stat:last-child { border-right: 0; }
.count-stats .stat b { color: var(--ink); }
.count-stats .stat:nth-child(odd) b { color: var(--green); }

/* ---------- Méthode : numéros forts, texte lisible ---------- */
.step::before { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); opacity: .9; display: block; line-height: 1; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Équipe : monogrammes (pas de visages inventés) ---------- */
.monogram { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: inherit; }
.monogram span { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); opacity: .14; }
.member:nth-child(3n+1) .monogram { background: #EAF4EC; }
.member:nth-child(3n+2) .monogram { background: #FFF4D6; }
.member:nth-child(3n) .monogram { background: #E3F2F4; }

/* ---------- Section de transition : chapitre « eau » ---------- */
.chapter { position: relative; height: 72vh; min-height: 460px; margin: 0 16px; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.chapter img.cover { object-position: center 60%; }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,31,51,.1), rgba(10,31,51,.72)); }
.chapter .ch-in { position: absolute; z-index: 2; left: 44px; right: 44px; bottom: 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; color: #fff; }
.chapter h2 { color: #fff; font-size: clamp(36px, 5.2vw, 76px); max-width: 14ch; }
.chapter p { color: rgba(255,255,255,.86); max-width: 38ch; font-size: 17px; }
@media (max-width: 760px) {
  .chapter { height: 64vh; margin: 0 10px; }
  .chapter .ch-in { left: 22px; right: 22px; bottom: 26px; flex-direction: column; align-items: flex-start; }
  .count-stats .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
  .count-stats .stat:last-child { border-bottom: 0; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track > [aria-hidden="true"] { display: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  img.cover { transition: none; }
}

/* ---------- Contenu éditorial WordPress (pages par défaut) ---------- */
.entry { max-width: 820px; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry a:not(.btn) { color: var(--lagon); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry img { border-radius: 18px; height: auto; }
.entry article + article { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
