/* ==========================================================================
   SM BAT — Maçonnerie générale & gros œuvre à Valence
   Feuille de style principale
   ========================================================================== */

/* ------------------------------ Variables ------------------------------ */
:root {
  --ink: #10161f;
  --ink-2: #38414d;
  --muted: #5d6875;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #e5e8ee;

  --accent: #3e7bbc;
  --accent-ink: #2e5d90;
  --accent-light: #78a9de;
  --accent-soft: #eaf1fa;
  --amber: #f2b32c;

  --dark: #0b1017;
  --dark-2: #101724;
  --on-dark: #eef2f7;
  --on-dark-dim: #9aa7b8;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 31, .06), 0 4px 14px rgba(16, 22, 31, .06);
  --shadow-md: 0 2px 6px rgba(16, 22, 31, .07), 0 14px 34px rgba(16, 22, 31, .11);
  --shadow-lg: 0 8px 24px rgba(5, 10, 18, .28), 0 24px 64px rgba(5, 10, 18, .30);

  --header-h: 76px;
  --container: 1180px;
  --gutter: 20px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Zones de securite iPhone (encoche et barre d'accueil) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

section { scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 8px); }
.section { padding-block: clamp(72px, 9vw, 118px); }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Barre de progression ------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 12px rgba(62, 123, 188, .7);
  transition: width .1s linear;
}

/* ------------------------------ Typo utilitaires ------------------------------ */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.overline::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-intro { margin-inline: auto; }
.section-intro { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

.accent { color: var(--accent); }

/* ------------------------------ Boutons ------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 123, 188, .35);
}
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 26px rgba(44, 87, 135, .45); }

/* Reflet qui balaie le bouton */
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 70%  { left: -60%; }
  100%     { left: 130%; }
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

.btn-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ------------------------------ En-tête ------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, height .3s ease;
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  transition: transform .3s var(--ease-out);
}
.brand:hover { transform: scale(1.03); }
/* Barre de navigation : « SMBAT » écrit, aux couleurs du logo */
.brand-text {
  font-family: var(--font-head);
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .005em;
}
.bt-sm  { color: var(--accent); }
.bt-bat { color: #fff; transition: color .3s ease; }
/* En-tête devenu blanc au défilement : « BAT » passe en noir */
.site-header.scrolled .bt-bat { color: var(--ink); }

/* Logo complet (pied de page) : version blanche sur fond sombre, noire sur fond clair */
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.brand-logo.on-light { display: none; }

/* En-tête devenu blanc au défilement : logo noir */
.site-header.scrolled .brand-logo.on-dark { display: none; }
.site-header.scrolled .brand-logo.on-light { display: block; }

/* Pied de page (fond sombre) : logo complet en blanc */
.footer-brand .brand-logo { height: 66px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 6px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right .28s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--ink); }

.nav-cta { margin-left: 4px; padding: 11px 18px; font-size: .9rem; }

/* En-tête transparent au-dessus du hero */
.site-header.on-hero:not(.scrolled) { color: #fff; }
.site-header.on-hero:not(.scrolled) .brand { color: #fff; }
.site-header.on-hero:not(.scrolled) .nav-link { color: rgba(255, 255, 255, .85); }
.site-header.on-hero:not(.scrolled) .nav-link:hover,
.site-header.on-hero:not(.scrolled) .nav-link.is-active { color: #fff; }

.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(16, 22, 31, .07);
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 70;
}
.nav-toggle span {
  display: block;
  height: 2.4px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s ease, background-color .25s ease;
}
.site-header.on-hero:not(.scrolled) .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ------------------------------ Hero (centré) ------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding-block: calc(var(--header-h) + var(--safe-top) + 54px) 128px;
}

.hero-bg { position: absolute; inset: -6% 0; z-index: -1; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: hero-zoom 20s ease-out both;
  will-change: transform;
}
@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Vidéo de fond en boucle */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transition: opacity 1.1s ease;
  will-change: opacity;
}
.hero-video.is-ready { opacity: 1; }
/* Quand la vidéo est visible, l'image de secours s'efface */
.hero-bg:has(.hero-video.is-ready) > img { opacity: 0; }
.hero-bg > img { transition: opacity 1.1s ease; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(6, 11, 19, .66) 0%, rgba(6, 11, 19, .86) 60%, rgba(6, 11, 19, .95) 100%),
    linear-gradient(to bottom, rgba(6, 11, 19, .68), transparent 32%, rgba(6, 11, 19, .8));
}

/* Halo bleu animé */
.hero-glow {
  position: absolute;
  left: 50%; top: 52%;
  width: min(1100px, 120vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(62, 123, 188, .30), transparent 62%);
  filter: blur(14px);
  animation: glow-pulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.09); }
}

.hero-content {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 26px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5ce08a;
  box-shadow: 0 0 0 0 rgba(92, 224, 138, .7);
  animation: pulse-ring 2.2s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(92, 224, 138, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(92, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 224, 138, 0); }
}

/* Titre animé mot par mot */
.hero-title {
  color: #fff;
  margin-bottom: .45em;
  max-width: 18ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  transform: translateY(105%);
  animation: word-up .95s var(--ease-out) forwards;
}
.hero-title .word.accent { color: var(--accent-light); }
.hero-title .word.dot { color: var(--accent-light); }
.hero-title .line:nth-child(1) .word { animation-delay: .12s; }
.hero-title .line:nth-child(2) .word { animation-delay: .24s; }
.hero-title .line:nth-child(3) .word { animation-delay: .36s; }
@keyframes word-up {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  max-width: 62ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin: 0;
  padding: 0;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  font-size: .89rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.hero-badges li:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-3px);
}
.hero-badges svg { width: 19px; height: 19px; color: var(--accent-light); flex: none; }

/* Ligne de texte qui tourne */
.hero-rotator {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 22px;
}
.rotator-label { color: rgba(255, 255, 255, .6); font-weight: 500; }

.rotator {
  display: inline-block;
  height: 1.35em;
  overflow: hidden;
  vertical-align: bottom;
}
.rotator-list {
  display: flex;
  flex-direction: column;
  animation: rotate-words 12.5s cubic-bezier(.85, 0, .15, 1) infinite;
}
.rotator-list > span {
  display: block;
  height: 1.35em;
  line-height: 1.35em;
  white-space: nowrap;
  color: var(--accent-light);
}
@keyframes rotate-words {
  0%, 14%    { transform: translateY(0); }
  20%, 34%   { transform: translateY(-1.35em); }
  40%, 54%   { transform: translateY(-2.7em); }
  60%, 74%   { transform: translateY(-4.05em); }
  80%, 94%   { transform: translateY(-5.4em); }
  100%       { transform: translateY(-6.75em); }
}

/* Badge circulaire rotatif */
.spin-badge {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(24px, 5vw, 64px);
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  color: #fff;
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  fill: rgba(255, 255, 255, .9);
  text-transform: uppercase;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-badge-center {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(62, 123, 188, .55);
  transition: transform .35s var(--ease-out), background-color .25s ease;
}
.spin-badge-center svg {
  position: static;
  width: 21px; height: 21px;
  animation: none;
}
.spin-badge:hover .spin-badge-center { transform: scale(1.12); background: var(--accent-ink); }

/* Indicateur de défilement */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .8);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: float-y 2.8s ease-in-out infinite;
}
.hero-scroll:hover { color: #fff; }
.mouse {
  width: 25px; height: 40px;
  border: 1.8px solid currentColor;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.wheel {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: currentColor;
  animation: wheel-move 1.9s ease-in-out infinite;
}
@keyframes wheel-move {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}
@keyframes float-y {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Entrées animées du hero */
.anim-in {
  opacity: 0;
  transform: translateY(24px);
  animation: anim-in .9s var(--ease-out) forwards;
}
.anim-in.d2 { animation-delay: .42s; }
.anim-in.d3 { animation-delay: .55s; }
.anim-in.d4 { animation-delay: .65s; }
.anim-in.d5 { animation-delay: .8s; }
@keyframes anim-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------ Bandeau défilant ------------------------------ */
.marquee {
  overflow: hidden;
  background: var(--dark);
  border-block: 1px solid rgba(255, 255, 255, .07);
  padding-block: 15px;
  position: relative;
  z-index: 2;
  -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;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee span {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--on-dark);
  white-space: nowrap;
}
.marquee i { color: var(--accent); font-style: normal; font-size: .7rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------ Chiffres clés ------------------------------ */
.stats { position: relative; z-index: 5; padding-top: 0; }

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 52px);
  background: linear-gradient(135deg, var(--dark) 0%, #131c2b 100%);
  color: var(--on-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(62, 123, 188, .28), transparent 65%);
  pointer-events: none;
}

.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -10px; top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, .1);
}
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-value sup { color: var(--accent-light); font-size: .55em; }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--on-dark-dim);
}

/* ------------------------------ Savoir-faire ------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.about-media { position: relative; padding-bottom: 74px; }

.about-photo-main,
.about-photo-alt { margin: 0; border-radius: var(--radius); overflow: hidden; }

.about-photo-main { box-shadow: var(--shadow-md); }
.about-photo-main img { aspect-ratio: 4 / 3.1; object-fit: cover; width: 100%; }

.about-photo-alt {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 56%;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-md);
}
.about-photo-alt img { aspect-ratio: 16 / 10.5; object-fit: cover; width: 100%; }

.about-badge {
  position: absolute;
  left: -6px;
  bottom: 26px;
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(62, 123, 188, .45);
}
.about-badge strong {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.08;
}
.about-badge span { font-size: .82rem; opacity: .9; }

.float { animation: float-badge 5.5s ease-in-out infinite; }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.about-text h2 { margin-bottom: .7em; }
.about-text > p { color: var(--ink-2); }

.check-list {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
}
.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  transition: transform .25s var(--ease-out);
}
.check-list li:hover { transform: translateX(4px); }
.check-ico {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ease-out);
}
.check-list li:hover .check-ico { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.08); }
.check-ico svg { width: 17px; height: 17px; }
.check-list strong { display: block; font-size: .99rem; }
.check-list span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }

.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------ Services ------------------------------ */
.services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-media { margin: 0; position: relative; overflow: hidden; }
.service-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.08); }

.service-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(11, 16, 23, .72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 34px 24px 22px;
}

.service-ico {
  position: absolute;
  top: -26px;
  left: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(62, 123, 188, .45);
  transition: transform .4s var(--ease-out), background-color .3s ease;
}
.service-card:hover .service-ico { transform: translateY(-4px) rotate(-8deg); background: var(--accent-ink); }
.service-ico svg { width: 26px; height: 26px; }

.service-body h3 { margin-bottom: 12px; }

.service-body ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: .92rem;
}
.service-body ul li { position: relative; padding-left: 20px; }
.service-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .85;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--accent-ink);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.service-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.service-link:hover svg { transform: translateX(5px); }

/* ------------------------------ Toutes les prestations ------------------------------ */
.prestations { background: var(--bg); }

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.presta-col {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.presta-col:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.presta-col h3 {
  font-size: 1.05rem;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent-soft);
}

.presta-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.presta-col li {
  position: relative;
  padding-left: 19px;
  font-size: .93rem;
  color: var(--ink-2);
}
.presta-col li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.presta-note, .zone-note {
  margin: 30px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .97rem;
}
.presta-note a, .zone-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------ Méthode ------------------------------ */
.method { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.method::before {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(62, 123, 188, .18), transparent 65%);
  pointer-events: none;
}
.method .overline { color: var(--accent-light); }
.method .overline::before { background: var(--accent); }
.method h2 { color: #fff; }

.method-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.method-step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out), border-color .3s ease, background-color .3s ease;
}
.method-step:hover {
  transform: translateY(-7px);
  border-color: rgba(111, 163, 220, .5);
  background: #131d2e;
}

.method-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--accent);
  margin-bottom: 14px;
  letter-spacing: .02em;
  transition: color .35s ease;
}
.method-step:hover .method-num { color: rgba(62, 123, 188, .22); }

.method-step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.method-step p { color: var(--on-dark-dim); font-size: .92rem; margin: 0; }

/* ------------------------------ Réalisations ------------------------------ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
}
.gallery-item:nth-child(8n + 1),
.gallery-item:nth-child(8n + 4),
.gallery-item:nth-child(8n + 6) { grid-row: span 2; }
.gallery-item:nth-child(8n + 3) { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(6, 11, 19, .86), transparent);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--ease-out);
}
.gallery-item figcaption span {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2px;
}
.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption { opacity: 1; transform: translateY(0); }

.gallery-item.is-hidden { display: none; }

.gallery-note {
  margin-top: 22px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------ Zone d'intervention ------------------------------ */
.zone { background: var(--surface); }

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.zone-block {
  padding: 30px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.zone-block:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }

.zone-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.city-list li {
  font-size: .89rem;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}
.city-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------ Engagements ------------------------------ */
.pledges { background: var(--bg); }

.pledges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pledge-card {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.pledge-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.pledge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.pledge-card:hover::after { opacity: 1; }

.pledge-ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out);
}
.pledge-card:hover .pledge-ico {
  background: var(--accent);
  color: #fff;
  transform: rotate(-8deg) scale(1.07);
}
.pledge-ico svg { width: 26px; height: 26px; }

.pledge-card h3 { margin-bottom: 9px; font-size: 1.12rem; }
.pledge-card p {
  margin: 0;
  font-size: .94rem;
  color: var(--ink-2);
  position: relative;
}

/* ------------------------------ FAQ ------------------------------ */
.faq { background: var(--surface); }

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 2.4px solid var(--accent);
  border-bottom: 2.4px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq-answer {
  padding: 0 22px 20px;
  animation: faq-open .35s var(--ease-out);
}
.faq-answer p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------ Partenaires ------------------------------ */
.partners { background: var(--bg); padding-bottom: clamp(60px, 7vw, 90px); }
.partners .section-head { margin-bottom: 30px; }

.partners-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partners-row li {
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.partners-row li:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* ------------------------------ Bandeau CTA ------------------------------ */
.cta-band {
  position: relative;
  padding-block: clamp(80px, 10vw, 130px);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 50% 50%, rgba(6, 11, 19, .72), rgba(6, 11, 19, .92)),
    linear-gradient(90deg, rgba(62, 123, 188, .22), transparent);
}

.cta-content { max-width: 760px; margin-inline: auto; }
.cta-content h2 { color: #fff; }
.cta-content p { font-size: 1.12rem; color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ------------------------------ Contact ------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-2);
}
.form-field label span { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(62, 123, 188, .14);
}
.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: #d64545; }

.form-status { min-height: 1.2em; font-size: .9rem; font-weight: 500; margin: 0 0 12px; }
.form-status.ok { color: #1d7a46; }
.form-status.err { color: #c23c3c; }

.form-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}
.form-hint a { font-weight: 600; }

.contact-cards {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateX(5px); box-shadow: var(--shadow-sm); }

.contact-ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color .25s ease, color .25s ease;
}
.contact-card:hover .contact-ico { background: var(--accent); color: #fff; }
.contact-ico svg { width: 22px; height: 22px; }

.contact-card strong {
  display: block;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-card a, .contact-card div > span { font-size: .99rem; font-weight: 500; color: var(--ink); }
.contact-card a:hover { color: var(--accent-ink); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* ------------------------------ Pied de page ------------------------------ */
.site-footer { background: var(--dark); color: var(--on-dark-dim); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(52px, 6vw, 76px) 40px;
}

.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 36ch; margin: 14px 0 0; }
.footer-phone { margin-top: 14px !important; }
.footer-phone a {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.footer-phone a:hover { color: var(--accent-light); }

.footer-nav, .footer-contact, .footer-services { display: grid; gap: 10px; align-content: start; }
.footer-nav strong, .footer-contact strong, .footer-services strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.footer-nav a, .footer-contact a, .footer-services a {
  color: var(--on-dark-dim);
  font-size: .92rem;
  width: fit-content;
  transition: color .2s ease, transform .2s var(--ease-out);
}
.footer-nav a:hover, .footer-contact a:hover, .footer-services a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-hours { font-size: .92rem; }

.footer-cities {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .8rem;
  line-height: 1.9;
  color: #6f7c8d;
}
.footer-cities strong { color: var(--on-dark-dim); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom strong { color: var(--on-dark); }

/* ------------------------------ Boutons flottants ------------------------------ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s var(--ease-out), background-color .25s ease;
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 21px; height: 21px; }

/* Barre d'action flottante (mobile) : masquee sur l'accueil, elle
   apparait en glissant des que l'on descend dans la page. */
.mobile-bar {
  position: fixed;
  inset: auto 12px calc(10px + var(--safe-bottom)) 12px;
  z-index: 55;
  display: none;
  gap: 7px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(12, 18, 27, .78);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 12px 34px rgba(4, 8, 14, .5);
  transform: translateY(calc(100% + 26px));
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s ease;
  pointer-events: none;
}
.mobile-bar.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border-radius: 15px;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  transition: transform .18s var(--ease-out), background-color .2s ease;
}
.mobile-bar-btn svg { width: 18px; height: 18px; flex: none; }
.mobile-bar-btn:active { transform: scale(.96); }
.mobile-bar-btn.is-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 16px rgba(62, 123, 188, .45);
}

/* Variantes de texte selon la largeur d'écran */
.only-narrow { display: none; }

/* ------------------------------ Visionneuse ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 9, 15, .94);
  backdrop-filter: blur(6px);
  animation: fade-in .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: grid;
  gap: 12px;
  animation: zoom-in .35s var(--ease-out);
}
@keyframes zoom-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption {
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 56px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); border-color: #fff; transform: scale(1.08); }
.lightbox button svg { width: 22px; height: 22px; }

.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ------------------------------ Apparition au défilement ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Décalage en cascade dans les grilles */
.services-grid .reveal:nth-child(3n + 2),
.pledges-grid .reveal:nth-child(3n + 2),
.zone-grid .reveal:nth-child(3n + 2),
.prestations-grid .reveal:nth-child(4n + 2),
.method-grid .reveal:nth-child(4n + 2) { transition-delay: .1s; }
.services-grid .reveal:nth-child(3n),
.pledges-grid .reveal:nth-child(3n),
.zone-grid .reveal:nth-child(3n),
.prestations-grid .reveal:nth-child(4n + 3),
.method-grid .reveal:nth-child(4n + 3) { transition-delay: .2s; }
.prestations-grid .reveal:nth-child(4n),
.method-grid .reveal:nth-child(4n) { transition-delay: .3s; }
.faq-list .reveal:nth-child(2) { transition-delay: .06s; }
.faq-list .reveal:nth-child(3) { transition-delay: .12s; }
.faq-list .reveal:nth-child(4) { transition-delay: .18s; }
.faq-list .reveal:nth-child(5) { transition-delay: .24s; }
.faq-list .reveal:nth-child(6) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .anim-in { opacity: 1; transform: none; }
  .hero-title .word { transform: none; }
  .rotator-list { animation: none; }
  .spin-badge svg { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1150px) {
  .main-nav { gap: 16px; }
  .nav-link { font-size: .88rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pledges-grid { grid-template-columns: repeat(2, 1fr); }
  .prestations-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .gallery-item:nth-child(8n + 3) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  .brand-text { font-size: 1.5rem; }
  .brand-logo { height: 42px; }
  .footer-brand .brand-logo { height: 56px; }

  .nav-toggle { display: flex; }

  /* Menu plein écran, cadence d'application mobile */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 65;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(165deg, #0d131d 0%, var(--dark) 55%, #0a1520 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    overflow-y: auto;
    padding: calc(80px + var(--safe-top)) 26px calc(34px + var(--safe-bottom));
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }

  .main-nav .nav-link {
    width: 100%;
    max-width: 380px;
    font-family: var(--font-head);
    font-size: 1.24rem;
    font-weight: 600;
    color: var(--on-dark);
    padding: 15px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(14px);
  }
  body.nav-open .main-nav .nav-link {
    animation: nav-item-in .42s var(--ease-out) forwards;
  }
  .main-nav .nav-link:nth-child(1) { animation-delay: .04s; }
  .main-nav .nav-link:nth-child(2) { animation-delay: .08s; }
  .main-nav .nav-link:nth-child(3) { animation-delay: .12s; }
  .main-nav .nav-link:nth-child(4) { animation-delay: .16s; }
  .main-nav .nav-link:nth-child(5) { animation-delay: .20s; }
  .main-nav .nav-link:nth-child(6) { animation-delay: .24s; }
  .main-nav .nav-link:nth-child(7) { animation-delay: .28s; }
  .main-nav .nav-link:nth-child(8) { animation-delay: .32s; }
  @keyframes nav-item-in { to { opacity: 1; transform: translateY(0); } }

  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .12);
  }
  .nav-cta {
    width: 100%;
    max-width: 380px;
    margin: 18px 0 0;
    min-height: 54px;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(14px);
  }
  body.nav-open .nav-cta { animation: nav-item-in .42s var(--ease-out) .36s forwards; }

  body.nav-open { overflow: hidden; }

  /* Barre d'action fixe : on libère la place en bas de page */
  .mobile-bar { display: flex; }
  .to-top { display: none; }
  /* Le pied de page sombre descend jusqu'au bord de l'ecran, sous la barre
     flottante de Safari : plus aucune bande blanche. */
  .site-footer { padding-bottom: calc(68px + var(--safe-bottom)); }

  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .stat + .stat::before { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin-inline: auto; }

  .zone-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pledges-grid { grid-template-columns: 1fr 1fr; }
  .partners-row { grid-template-columns: repeat(2, 1fr); }

  .spin-badge { width: 100px; height: 100px; }
  .spin-badge text { font-size: 15px; }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ==========================================================================
   Mobile — présentation façon application
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --radius: 20px;
    --radius-sm: 14px;
  }

  body { font-size: 15.8px; }

  /* Typographie resserrée : plus de titres qui s'étalent sur 4 lignes */
  h1 { font-size: 1.96rem; line-height: 1.08; letter-spacing: -.025em; }
  h2 { font-size: 1.62rem; line-height: 1.15; letter-spacing: -.02em; }
  h3 { font-size: 1.08rem; }
  .section-intro { font-size: .97rem; }
  .overline { font-size: .72rem; letter-spacing: .14em; margin-bottom: 10px; }
  .overline::before { width: 22px; }

  /* Sections plus compactes */
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }

  /* Les titres sur deux lignes forcées passent en flux naturel */
  h2 br { display: none; }

  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .hero-sub .only-narrow { display: block; }

  /* ---------- Accueil : tout tient sur un écran ---------- */
  .hero {
    min-height: 100svh;
    padding-block: calc(var(--header-h) + var(--safe-top) + 18px) 26px;
  }
  .hero-content { justify-content: center; }
  .hero-kicker {
    font-size: .68rem;
    padding: 7px 14px;
    letter-spacing: .06em;
    margin-bottom: 16px;
  }
  .hero-title { margin-bottom: .32em; max-width: none; }
  .hero-rotator { font-size: 1.02rem; gap: 6px; margin-bottom: 14px; }
  .hero-sub {
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 34ch;
  }
  .hero-actions { width: 100%; gap: 10px; margin-bottom: 20px; }
  .hero-actions .btn { width: 100%; min-height: 54px; border-radius: 16px; }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .hero-badges li {
    justify-content: center;
    font-size: .74rem;
    padding: 9px 6px;
    gap: 5px;
    text-align: center;
  }
  .hero-badges svg { width: 14px; height: 14px; }

  .hero-scroll, .spin-badge { display: none; }

  .marquee { padding-block: 12px; }
  .marquee span { font-size: .88rem; }

  /* ---------- Chiffres ---------- */
  .stats-card { padding: 24px 18px; gap: 22px 14px; }
  .stat-value { font-size: 1.62rem; }
  .stat-label { font-size: .78rem; margin-top: 5px; }

  /* ---------- Savoir-faire ---------- */
  .about-media { padding-bottom: 58px; }
  .about-photo-alt { right: 0; width: 52%; border-width: 4px; }
  .about-badge { left: 0; bottom: 18px; padding: 13px 16px; }
  .about-badge strong { font-size: 1.2rem; }
  .about-badge span { font-size: .75rem; }
  .check-list { grid-template-columns: 1fr; gap: 14px; margin: 22px 0 24px; }
  .about-actions { flex-direction: column; }
  .about-actions .btn { width: 100%; min-height: 52px; }

  /* ---------- Services : carrousel que l'on fait glisser ---------- */
  .services-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 30px var(--gutter) 6px;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .service-card:hover { transform: none; }
  .service-media img { aspect-ratio: 16 / 9; }
  .service-body { padding: 30px 20px 18px; }
  .service-ico { width: 46px; height: 46px; top: -23px; left: 18px; }
  .service-ico svg { width: 23px; height: 23px; }
  .service-body ul { font-size: .88rem; }

  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-size: .8rem;
    color: var(--muted);
  }

  /* ---------- Prestations : listes repliables ---------- */
  .prestations-grid { grid-template-columns: 1fr; gap: 12px; }
  .presta-col { padding: 20px 18px; }
  .presta-col:hover { transform: none; }
  .presta-col h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 10px; }
  .presta-col li { font-size: .9rem; }

  .presta-col ul.is-collapsed li:nth-child(n + 5) { display: none; }
  .presta-more {
    margin-top: 12px;
    padding: 9px 16px;
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--accent-ink);
    font-family: var(--font-body);
    font-size: .87rem;
    font-weight: 600;
    cursor: pointer;
  }
  .presta-more:active { transform: scale(.98); }

  /* ---------- Méthode ---------- */
  .method-grid { grid-template-columns: 1fr; gap: 12px; }
  .method-step { padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
  .method-step:hover { transform: none; }
  .method-num { grid-row: span 2; font-size: 1.9rem; margin: 0; align-self: start; }
  .method-step h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .method-step p { font-size: .88rem; }

  /* ---------- Réalisations ---------- */
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    gap: 8px;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .filter-btn { padding: 8px 16px; font-size: .85rem; white-space: nowrap; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 8px; }
  .gallery-item figcaption {
    opacity: 1;
    transform: none;
    padding: 34px 10px 9px;
    font-size: .78rem;
    background: linear-gradient(to top, rgba(6, 11, 19, .94) 0%, rgba(6, 11, 19, .62) 55%, transparent 100%);
  }
  .gallery-item figcaption span { font-size: .6rem; letter-spacing: .1em; }

  /* ---------- Zone d'intervention ---------- */
  .zone-block { padding: 22px 18px; }
  .zone-block:hover { transform: none; }
  .zone-block h3 { font-size: 1rem; margin-bottom: 12px; }
  .city-list { grid-template-columns: 1fr 1fr; gap: 7px 10px; }
  .city-list li { font-size: .83rem; }

  /* ---------- Engagements ---------- */
  .pledges-grid { grid-template-columns: 1fr; gap: 12px; }
  .pledge-card { padding: 22px 20px; }
  .pledge-card:hover { transform: none; }
  .pledge-ico { width: 44px; height: 44px; margin-bottom: 13px; border-radius: 12px; }
  .pledge-ico svg { width: 22px; height: 22px; }
  .pledge-card h3 { font-size: 1.04rem; }
  .pledge-card p { font-size: .9rem; }

  /* ---------- FAQ ---------- */
  .faq-item summary { font-size: .95rem; padding: 15px 16px; gap: 12px; }
  .faq-item summary::after { width: 11px; height: 11px; }
  .faq-answer { padding: 0 16px 16px; }
  .faq-answer p { font-size: .91rem; }

  /* ---------- Partenaires ---------- */
  .partners-row li { padding: 20px 10px; font-size: .95rem; }

  /* ---------- Bandeau d'appel ---------- */
  .cta-band { padding-block: 62px; }
  .cta-content p { font-size: 1rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; min-height: 54px; border-radius: 16px; }

  /* ---------- Contact ---------- */
  .contact-form { padding: 20px 16px; border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-field { gap: 5px; margin-bottom: 12px; }
  .form-field label { font-size: .8rem; }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;            /* évite le zoom automatique sur iPhone */
    padding: 12px 13px;
    border-radius: 12px;
  }
  .form-field textarea { min-height: 96px; }
  .contact-form .btn { min-height: 54px; border-radius: 16px; }
  .contact-card { padding: 15px 16px; gap: 13px; }
  .contact-card:hover { transform: none; }
  .contact-ico { width: 40px; height: 40px; border-radius: 11px; }
  .contact-ico svg { width: 20px; height: 20px; }
  .contact-map iframe { height: 220px; }

  /* ---------- Pied de page ---------- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
    padding-block: 40px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; font-size: .88rem; }
  .footer-phone a { font-size: 1.45rem; }
  .footer-nav, .footer-services, .footer-contact { gap: 7px; }
  .footer-nav a, .footer-services a, .footer-contact a {
    font-size: .86rem;
    min-height: 34px;
    display: flex;
    align-items: center;
  }
  .contact-card a { min-height: 30px; display: inline-flex; align-items: center; }
  .footer-nav strong, .footer-services strong, .footer-contact strong { font-size: .95rem; margin-bottom: 3px; }
  .footer-cities { font-size: .74rem; line-height: 1.8; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; font-size: .8rem; text-align: center; }

  /* ---------- Visionneuse ---------- */
  .lightbox { padding: 14px; }
  .lightbox button { width: 42px; height: 42px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox-prev:hover, .lightbox-next:hover { transform: scale(1.08); }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-figure img { max-height: 66vh; }
}

/* Ecrans peu hauts (iPhone SE, navigateur avec barres) : on allege l'accueil */
@media (max-width: 640px) and (max-height: 700px) {
  .hero-rotator { display: none; }
  .hero-badges li:nth-child(n + 3) { display: none; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 18px; }
  .hero-actions { margin-bottom: 16px; }
  .hero-actions .btn { min-height: 50px; }
}

/* Très petits écrans */
@media (max-width: 380px) {
  h1 { font-size: 1.95rem; }
  .hero-sub { font-size: .9rem; }
  .service-card { flex-basis: 86%; }
  .city-list { grid-template-columns: 1fr; }
}
