/* ============================================================
   BKL Projection — landing page
   Palette et typographies dérivées du logo (voir SKILL.md)
   ============================================================ */

:root {
  --ink: #16150f;
  --paper: #eff1e9;
  --paper-2: #e4e7db;
  --forest: #1e7a3e;
  --forest-d: #12522a;
  --gold: #e3a400;
  --carmine: #a81f27;
  --stone: #58543f; /* gris chaud foncé — texte secondaire (contraste AA sur --paper et --paper-2) */
  --line: #cdc9ba;

  --container: 1180px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --header-h: 76px;

  /* Titres : grotesque gras condensé */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  /* Interface : nav, boutons, labels, titres de carte */
  --font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Corps de texte : serif de lecture */
  --font-body: "Lora", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--forest-d);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--forest);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.2;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

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

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  background: var(--paper);
}
.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-top: 0.6rem;
}
.section-head .lede {
  margin-top: 0.9rem;
  color: var(--stone);
  font-size: 1.05rem;
}
.section-head-tight {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.lede {
  font-size: 1.06rem;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow-light {
  color: rgba(239, 241, 233, 0.92);
}

/* ---------- Device « trois barres » ---------- */
.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
}
.bars i {
  width: 9px;
  display: block;
}
.bars i:nth-child(1) {
  height: 42%;
  background: var(--forest);
}
.bars i:nth-child(2) {
  height: 68%;
  background: var(--gold);
}
.bars i:nth-child(3) {
  height: 100%;
  background: var(--carmine);
}
.bars-sm {
  height: 20px;
  gap: 3px;
}
.bars-sm i {
  width: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.btn-primary {
  background: var(--forest);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--forest-d);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost-light {
  border-color: rgba(239, 241, 233, 0.7);
  color: var(--paper);
}
.btn-ghost-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.18s;
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-logo img {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  transition: opacity 0.25s;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.25s;
}

/* état transparent (sur le hero) : logo blanc visible */
.site-header .logo-dark {
  opacity: 0;
}
.site-header .logo-light {
  opacity: 1;
}

/* état solide (après le hero) */
.site-header.is-solid {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .brand-name {
  color: var(--ink);
}
.site-header.is-solid .logo-dark {
  opacity: 1;
}
.site-header.is-solid .logo-light {
  opacity: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0;
}
.nav-list a {
  position: relative;
  font-family: var(--font-ui);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--paper);
  transition: color 0.2s;
  padding-block: 0.3rem;
}
.nav-list a:hover {
  color: #fff;
}
/* ligne animée sous les liens du menu (pas le bouton Contact, pas les icônes sociales) */
.nav-list > li:not(.nav-social) > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-list > li:not(.nav-social) > a:not(.nav-cta):hover::after,
.nav-list > li:not(.nav-social) > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) {
  .nav-list > li:not(.nav-social) > a:not(.nav-cta)::after {
    transition: none;
  }
}

/* icônes réseaux sociaux, à droite du menu */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: 0.35rem;
  padding-left: 1.15rem;
  border-left: 1px solid rgba(239, 241, 233, 0.28);
}
.site-header.is-solid .nav-social {
  border-left-color: rgba(22, 21, 15, 0.16);
}
.nav-social a {
  display: inline-flex;
  padding: 0;
  color: var(--paper);
  transition:
    color 0.2s,
    transform 0.2s;
}
.nav-social a:hover,
.nav-social a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}
.site-header.is-solid .nav-social a {
  color: var(--ink);
}
.site-header.is-solid .nav-social a:hover,
.site-header.is-solid .nav-social a:focus-visible {
  color: var(--forest);
}
.nav-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.site-header.is-solid .nav-list a {
  color: var(--ink);
}
.site-header.is-solid .nav-list a:hover {
  color: var(--forest);
}

/* bouton « Contact » : même logique que le CTA fantôme « Découvrir nos missions » */
.nav-cta {
  border: 1.5px solid rgba(239, 241, 233, 0.7);
  padding: 0.5rem 1.15rem !important;
  border-radius: 2px;
  color: var(--paper) !important;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.25s ease;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--paper);
  color: var(--ink) !important;
  border-color: var(--paper);
}
.site-header.is-solid .nav-cta {
  border-color: var(--ink);
  color: var(--ink) !important;
}
.site-header.is-solid .nav-cta:hover,
.site-header.is-solid .nav-cta:focus-visible {
  background: var(--ink);
  color: var(--paper) !important;
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 2rem) clamp(4rem, 12vh, 7rem);
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(22, 21, 15, 0.3) 0%,
      rgba(22, 21, 15, 0.05) 32%,
      rgba(22, 21, 15, 0.55) 78%,
      rgba(22, 21, 15, 0.82) 100%
    ),
    linear-gradient(90deg, rgba(22, 21, 15, 0.45) 0%, rgba(22, 21, 15, 0) 55%);
}
/* fallback sans photo hero */
.hero.no-img .hero-img {
  display: none;
}
.hero.no-img .hero-overlay {
  background:
    radial-gradient(120% 90% at 15% 0%, #23241b 0%, var(--ink) 60%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      transparent 2px 26px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-top: 0.9rem;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgba(239, 241, 233, 0.9);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  z-index: 1;
  opacity: 0.8;
}
.hero-scroll:hover {
  opacity: 1;
}

/* ============================================================
   PILIERS
   ============================================================ */
.piliers-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: 1fr 1fr;
}
.pilier {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.pilier:hover {
  border-color: var(--stone);
}
.section-alt .pilier {
  background: var(--paper);
}
.pilier-body {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pilier-body h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.35rem;
}
.pilier-body p {
  color: var(--stone);
}
.pilier-body .link-arrow {
  margin-top: auto;
}

/* ---------- Cadres image + fallback ---------- */
.shot {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 0;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* au repos : légèrement désaturée / plus sombre */
  filter: saturate(0.9) brightness(0.96) contrast(1.02);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s ease;
}
/* au survol (de la carte ou de la vignette) : zoom doux + l'image « s'allume » */
.shot:hover img,
.pilier:hover .shot img,
.depot:hover .shot img,
.engagement:hover .engagement-portrait img {
  transform: scale(1.05);
  filter: saturate(1.12) brightness(1.05) contrast(1.03);
}
.gallery .shot:hover img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .shot img {
    transition: filter 0.45s ease;
  }
  .shot:hover img,
  .pilier:hover .shot img,
  .depot:hover .shot img,
  .engagement:hover .engagement-portrait img,
  .gallery .shot:hover img {
    transform: none;
  }
}
.r-3x2 {
  aspect-ratio: 3 / 2;
}
.r-4x3 {
  aspect-ratio: 4 / 3;
}
.r-4x5 {
  aspect-ratio: 4 / 5;
}
.r-16x10 {
  aspect-ratio: 16 / 10;
}

.shot.no-img img {
  display: none;
}
.shot.no-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--paper-2), var(--paper)),
    repeating-linear-gradient(
      115deg,
      rgba(22, 21, 15, 0.035) 0 2px,
      transparent 2px 22px
    );
}
.shot.no-img::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 54px;
  height: 40px;
  background:
    linear-gradient(var(--forest) 0 0) 0 60% / 22% 40% no-repeat,
    linear-gradient(var(--gold) 0 0) 39% 25% / 22% 75% no-repeat,
    linear-gradient(var(--carmine) 0 0) 78% 0 / 22% 100% no-repeat;
}

/* ============================================================
   MISSIONS
   ============================================================ */
.missions-grid,
.commerce-grid {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.mission,
.commerce {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}
.section-alt .mission,
.section-alt .commerce {
  background: var(--paper-2);
}
.mission:hover,
.commerce:hover {
  background: var(--paper);
}
.section-alt .mission:hover,
.section-alt .commerce:hover {
  background: #ecefe3;
}
.mission-icon {
  color: var(--forest-d);
  width: 40px;
  height: 40px;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.mission-icon svg {
  width: 100%;
  height: 100%;
}
.mission:hover .mission-icon,
.commerce:hover .mission-icon {
  transform: translateY(-2px);
}
/* état « activé » au clic : l'icône change de couleur */
.mission.is-active .mission-icon,
.commerce.is-active .mission-icon {
  color: var(--gold);
}
/* animation one-shot rejouée à chaque clic */
.mission-icon.is-animating {
  animation: icon-pop 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes icon-pop {
  0% {
    transform: scale(1) rotate(0);
  }
  35% {
    transform: scale(1.28) rotate(-9deg);
  }
  65% {
    transform: scale(0.9) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mission-icon,
  .mission:hover .mission-icon,
  .commerce:hover .mission-icon {
    transition: color 0.2s ease;
    transform: none;
  }
  .mission-icon.is-animating {
    animation: none;
  }
}
.mission h3,
.commerce h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-top: 0.25rem;
}
.mission p,
.commerce p {
  color: var(--stone);
  font-size: 0.97rem;
  line-height: 1.55;
}

.commerce-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* ---------- Dépôts de gaz ---------- */
.depots {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.depots-head {
  max-width: 54ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.depots-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-top: 0.5rem;
}
.depots-head p {
  margin-top: 0.5rem;
  color: var(--stone);
}
.depots-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr 1fr;
}
.depot {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}
.depot:hover {
  border-color: var(--stone);
}
.section-alt .depot {
  background: var(--paper-2);
}
.depot-body {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.depot-body h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
}
.depot-body p {
  color: var(--stone);
  font-size: 0.96rem;
}

/* ---------- Galerie ---------- */
.gallery {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.gallery-item {
  cursor: zoom-in;
}
/* survol galerie : on assombrit (au lieu d'éclaircir) pour faire ressortir loupe + libellé */
.gallery .shot:hover img {
  filter: saturate(1.05) brightness(0.78) contrast(1.02);
}
.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.6rem 0.9rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(22, 21, 15, 0.72));
  pointer-events: none;
}
.gallery-item__trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-item__trigger svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 21, 15, 0.55);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.gallery-item:hover .gallery-item__trigger svg,
.gallery-item__trigger:focus-visible svg {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item__trigger svg {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(16, 15, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__figure {
  margin: 0;
  max-width: min(1000px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transform: translateY(12px);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lightbox.is-open .lightbox__figure {
  transform: none;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(239, 241, 233, 0.9);
  text-align: center;
  max-width: 60ch;
}
.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 241, 233, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.lightbox__close:hover {
  background: rgba(239, 241, 233, 0.12);
  transform: rotate(90deg);
}
.lightbox__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__figure {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .lightbox__close:hover {
    transform: none;
  }
}

/* ============================================================
   ENGAGEMENT + POURQUOI
   ============================================================ */
.engagement {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: center;
}
.engagement-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.engagement-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}
.engagement-text p {
  color: var(--ink);
  max-width: 56ch;
}
.engagement-text p + p {
  color: var(--stone);
}

.reasons {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.reason {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.reason h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
}
.reason p {
  color: var(--stone);
  font-size: 0.97rem;
}

/* ============================================================
   ÉQUIPE DIRIGEANTE
   ============================================================ */
.section-head-center {
  margin-inline: auto;
  text-align: center;
}
.section-head-center .bars {
  margin-inline: auto;
}
.team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  justify-content: center;
}
.team-member {
  position: relative;
}
.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.96);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s ease;
}
.team-member:hover .team-photo img,
.team-member:focus-within .team-photo img {
  transform: scale(1.07) translateY(-1.5%);
  filter: saturate(1.05) brightness(1);
}

/* bandeau qui remonte au survol */
.team-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.2rem 1.15rem;
  color: var(--paper);
  background: linear-gradient(
    transparent,
    rgba(22, 21, 15, 0.55) 28%,
    rgba(22, 21, 15, 0.93)
  );
  transform: translateY(101%);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.team-member:hover .team-overlay,
.team-member:focus-within .team-overlay {
  transform: translateY(0);
}

/* bande tricolore animée (déploiement horizontal) */
.team-bar {
  display: block;
  height: 4px;
  width: 60px;
  margin-bottom: 0.7rem;
  background: linear-gradient(
    90deg,
    var(--forest) 0 33.3%,
    var(--gold) 33.3% 66.6%,
    var(--carmine) 66.6%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease 0.12s;
}
.team-member:hover .team-bar,
.team-member:focus-within .team-bar {
  transform: scaleX(1);
}

.team-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.team-role {
  font-size: 0.85rem;
  color: rgba(239, 241, 233, 0.82);
  margin-top: 0.15rem;
}
.team-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.team-social a {
  display: inline-flex;
  color: rgba(239, 241, 233, 0.72);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.team-social a:hover,
.team-social a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}
.team-social svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

/* touch / pas de survol : bandeau toujours visible */
@media (hover: none) {
  .team-overlay {
    transform: translateY(0);
  }
  .team-bar {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-photo img,
  .team-overlay,
  .team-bar,
  .team-social a {
    transition: none;
  }
  .team-member:hover .team-photo img,
  .team-member:focus-within .team-photo img {
    transform: none;
  }
}
@media (max-width: 820px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 260px));
  }
}
@media (max-width: 540px) {
  .team {
    grid-template-columns: minmax(0, 320px);
  }
}

/* ---------- Partenaires ---------- */
.partners {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.partners-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
}
/* Bandeau défilant (marquee) */
.partners-marquee {
  position: relative;
  margin-top: 1.4rem;
  overflow: hidden;
}
/* fondu progressif aux deux bords (recouvrement, pas de masque : évite d'isoler le rendu) */
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2.5rem, 9vw, 7rem);
  z-index: 2;
  pointer-events: none;
}
.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-2), rgba(228, 231, 219, 0));
}
.partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper-2), rgba(228, 231, 219, 0));
}
.marquee-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: partners-scroll 42s linear infinite;
}
.partners-marquee:hover .marquee-track,
.partners-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  flex: none;
  display: flex;
  align-items: center;
}
/* séparateur : le device « trois barres » entre chaque logo */
.marquee-item::after {
  content: "";
  flex: none;
  width: 15px;
  height: 22px;
  margin: 0 clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(var(--forest) 0 0) 0 100% / 4px 45% no-repeat,
    linear-gradient(var(--gold) 0 0) 50% 100% / 4px 72% no-repeat,
    linear-gradient(var(--carmine) 0 0) 100% 100% / 4px 100% no-repeat;
}
.marquee-item img {
  width: 150px;
  height: 66px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.25s ease;
}
.marquee-item img:hover,
.marquee-item img:focus-visible {
  filter: grayscale(0) opacity(1);
}

@keyframes partners-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee {
    overflow: visible;
  }
  .partners-marquee::before,
  .partners-marquee::after {
    display: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0.5rem;
  }
  .marquee-item::after {
    display: none;
  }
}
.partners-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--stone);
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.section-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 21, 15, 0.75),
    rgba(22, 21, 15, 0.9)
  );
}
.section-contact.no-img .contact-bg {
  display: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-top: 0.6rem;
}
.contact-info .lede {
  color: rgba(239, 241, 233, 0.85);
  margin-top: 0.9rem;
}
.contact-info a {
  color: var(--paper);
  text-decoration-color: rgba(239, 241, 233, 0.5);
}
.contact-info a:hover {
  color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
}
.contact-list li {
  line-height: 1.6;
}
.contact-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(239, 241, 233, 0.72);
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
}
.field .opt {
  color: var(--stone);
  font-weight: 400;
}
.field input,
.field textarea {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--forest);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--stone);
  opacity: 0.55;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.3rem;
}
.form-note {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.5;
}
.form-note a {
  color: var(--forest-d);
}
.form-status {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
  border-left: 3px solid var(--stone);
  background: var(--paper-2);
  color: var(--ink);
}
.form-status.is-ok {
  border-left-color: var(--forest);
}
.form-status.is-err {
  border-left-color: var(--carmine);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(239, 241, 233, 0.85);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 620px;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-nav a {
  font-family: var(--font-ui);
  color: rgba(239, 241, 233, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(239, 241, 233, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(239, 241, 233, 0.62);
}
.visits-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.visits-counter__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  flex: none;
}
#visitsCount {
  font-variant-numeric: tabular-nums;
  color: rgba(239, 241, 233, 0.8);
}

/* ============================================================
   BOUTON REMONTER EN HAUT
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 241, 233, 0.14);
  border-radius: 50%;
  background: var(--forest-d);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(22, 21, 15, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--ink);
}
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .to-top {
    transform: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      background 0.2s ease;
  }
}

/* ============================================================
   REVEAL AU SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-img {
    transform: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 120;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: var(--paper);
    transition:
      transform 0.2s,
      opacity 0.2s,
      background 0.25s;
  }
  .site-header.is-solid .nav-toggle-bar,
  .site-header.is-solid .nav-toggle-bar::before,
  .site-header.is-solid .nav-toggle-bar::after {
    background: var(--ink);
  }
  .nav-toggle-bar::before {
    position: absolute;
    translate: 0 -7px;
  }
  .nav-toggle-bar::after {
    position: absolute;
    translate: 0 7px;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    translate: 0 0;
    transform: rotate(45deg);
    background: var(--ink);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    translate: 0 0;
    transform: rotate(-45deg);
    background: var(--ink);
  }

  .nav-list {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -8px 0 30px rgba(22, 21, 15, 0.15);
  }
  .nav-list.is-open {
    transform: translateX(0);
  }
  .nav-list a,
  .site-header .nav-list a {
    color: var(--ink);
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
  }
  /* pas de ligne animée dans le menu mobile (déjà des séparateurs) */
  .nav-list > li:not(.nav-social) > a:not(.nav-cta)::after {
    display: none;
  }
  /* icônes sociales : rangée en bas du panneau mobile */
  .nav-list .nav-social {
    margin: 0.5rem 0 0;
    padding: 1.25rem 0 0;
    border-left: 0;
    gap: 1.6rem;
  }
  .nav-list .nav-social a {
    padding: 0;
    border-bottom: 0;
    color: var(--ink);
  }
  .nav-list .nav-social svg {
    width: 22px;
    height: 22px;
  }
  .nav-cta {
    border: 0 !important;
    padding: 0.95rem 0 !important;
    color: var(--forest-d) !important;
  }

  .piliers-grid {
    grid-template-columns: 1fr;
  }
  .depots-grid {
    grid-template-columns: 1fr;
  }
  .engagement {
    grid-template-columns: 1fr;
  }
  .engagement-portrait {
    max-width: 340px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
