/* ===================================================================
   Matlex Énergies — redesign landing (thème sombre uniquement)
   Montserrat (titres) + Inter (texte).
   L'orange est la couleur PRINCIPALE, le vert la couleur SECONDAIRE :
   les deux alternent (eyebrows, boutons, bordures, hover, chiffres…).
   Orange : hero, offres, stats, réalisations, contact, boutons pleins.
   Vert   : zone RGE, méthode, à propos, avis, boutons ghost au survol.
   Les fonds de section restent sombres et alternent surface-0/surface-1.
   =================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --surface-0: #0b0b0a;   /* fond de base, presque noir */
  --surface-1: #17130d;   /* fond alterné, chaud et un peu plus clair */
  --surface-2: #221d15;
  --ink: #ffffff;
  --ink-muted: #b2b3a9;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);

  --orange: #f2801e;
  --orange-bright: #ff9d43;
  --orange-deep: #c65f0c;
  --green: #8bc53f;
  --green-bright: #a8e063;
  --green-deep: #223f13;   /* vert sombre de réserve */
  --star: #ffc23d;

  --accent: var(--orange);
  --black: #0b0b0a;
  --white: #ffffff;

  --font-display: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Empêche tout défilement horizontal dû aux translations d'apparition,
     sans casser le position: sticky de l'en-tête (contrairement à hidden). */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, blockquote, p, dl, figure { margin: 0; }
input, select, textarea { font: inherit; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 4rem); }
h2 { font-size: clamp(1.8rem, 2.6vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1vw + 1rem, 1.35rem); font-weight: 700; }
h1 .accent, h2 .accent { color: var(--orange); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head-center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-muted); }

.text-link {
  font-weight: 700;
  color: var(--orange);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--orange-bright); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 14px 30px -14px rgba(242, 128, 30, 0.6);
}
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ---------- Révélation au défilement ----------
   Base : montée + léger zoom + flou qui se dissipe.
   Variantes directionnelles via [data-anim] (gauche, droite, zoom, grande
   montée). Le décalage --delay crée l'effet d'apparition en cascade. */
.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.85s var(--ease),
    transform 1s var(--ease),
    filter 0.85s var(--ease);
  transition-delay: calc(var(--delay, 0) * 110ms);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Variantes directionnelles */
.reveal[data-anim="left"]  { transform: translateX(-56px); filter: blur(8px); }
.reveal[data-anim="right"] { transform: translateX(56px);  filter: blur(8px); }
.reveal[data-anim="scale"] { transform: scale(0.9);        filter: blur(10px); }
.reveal[data-anim="up-lg"] { transform: translateY(80px);  filter: blur(8px); }
.reveal[data-anim="left"].is-visible,
.reveal[data-anim="right"].is-visible,
.reveal[data-anim="scale"].is-visible,
.reveal[data-anim="up-lg"].is-visible { transform: none; filter: blur(0); }

/* Une image qui se dévoile par un volet (clip) — effet premium sur les visuels. */
.reveal-clip { position: relative; }
.reveal-clip img { clip-path: inset(0 0 0 0); }
.reveal-clip:not(.is-visible) img {
  clip-path: inset(0 0 100% 0);
}
.reveal-clip img {
  transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease);
  transition-delay: calc(var(--delay, 0) * 110ms);
}
.reveal-clip:not(.is-visible) img { transform: scale(1.15); }

/* ===================== EN-TÊTE ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
  min-width: 0;
}
/* Le mot "matlex" du logo est blanc : fond noir permanent pour le lire. */
.logo {
  flex-shrink: 0; line-height: 0;
  background: var(--black);
  padding: 12px 18px;
  border-radius: 12px;
}
.logo img { height: 34px; width: auto; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; flex-shrink: 0; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  padding-block: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-tel { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.header-tel svg { width: 18px; height: 18px; fill: var(--green); }

.burger {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

.mobile-panel {
  position: fixed; inset: 0;
  background: var(--surface-0);
  color: var(--ink);
  z-index: 200;
  padding: 28px 24px;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-panel:not([hidden]) { display: flex; }
.mobile-panel[data-open="true"] { transform: translateX(0); }
.mobile-panel nav { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.mobile-panel nav a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; }
.mobile-panel .header-tel { color: var(--ink); font-size: 1.05rem; }
.mobile-panel .header-tel svg { fill: var(--green); }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--ink); font-weight: 700;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding-block: 108px 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--black); }
.hero-bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  animation: heroZoom 22s var(--ease) forwards;
}
/* Zoom lent et continu du fond : le hero respire. */
@keyframes heroZoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
/* Assombrit surtout la gauche (où va le texte) et fond vers le bas. */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,10,0.2) 0%, rgba(11,11,10,0.55) 68%, var(--surface-0) 100%),
    linear-gradient(90deg, rgba(11,11,10,0.92) 0%, rgba(11,11,10,0.55) 42%, rgba(11,11,10,0.05) 100%);
}
.hero-grid { position: relative; width: 100%; }
.hero-content { max-width: 720px; }
/* Label du hero en vert : la couleur secondaire dès le haut de page. */
.hero .eyebrow { color: var(--green-bright); }
.hero-lead { margin-top: 22px; font-size: 1.15rem; max-width: 48ch; color: rgba(255,255,255,0.88); }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: var(--white); color: var(--white); }
.hero .btn-ghost:hover { border-color: var(--orange-bright); color: var(--orange-bright); }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--white);
  animation: scrollCue 1.6s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(10px); }
}

/* Entrée échelonnée du hero */
.hero-reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i) * 0.14s);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { opacity: 1; transform: none; filter: none; animation: none; }
  .hero-bg video { animation: none; transform: none; }
  .hero-scroll span { animation: none; }
}

/* ===================== ZONE D'INTERVENTION + QUALIFS ===================== */
.assurance { padding-block: 34px; background: var(--surface-1); border-bottom: 1px solid var(--line-soft); }
.assurance-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.assurance-lead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.assurance-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--green) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.assurance-icon svg { width: 24px; height: 24px; fill: var(--green); }
.assurance-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.assurance-zone { font-size: 0.92rem; color: var(--ink-muted); margin-top: 2px; }
.assurance-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.assurance-badges li { background: var(--white); border-radius: 8px; padding: 5px 9px; display: flex; align-items: center; }
.assurance-badges img { height: 30px; width: auto; }

/* ===================== OFFRES (fond sombre de base) ===================== */
.offers { padding-block: 110px; background: var(--surface-0); }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.offer-card {
  background: var(--surface-1);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  /* Le survol (transform/ombre/bordure) ET la révélation (opacité/flou)
     partagent la même déclaration, sinon l'un écrase l'autre. */
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.8s var(--ease),
    filter 0.8s var(--ease);
  /* Décalage marqué : les 4 cartes se dévoilent nettement une par une. */
  transition-delay: calc(var(--delay, 0) * 180ms);
  display: flex;
  flex-direction: column;
}
/* Au survol, plus de décalage : la carte réagit instantanément. */
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: var(--orange); transition-delay: 0s; }
.offer-media { height: 190px; overflow: hidden; position: relative; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.offer-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,11,10,0.5) 100%); }
.offer-card:hover .offer-media img { transform: scale(1.09); }
.offer-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offer-body h3 { color: var(--ink); }
.offer-body p { font-size: 0.92rem; color: var(--ink-muted); flex: 1; }
.offer-link {
  background: none; border: none; padding: 0;
  color: var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; margin-top: 6px;
}
.offer-link span { transition: transform 0.2s var(--ease); }
.offer-link:hover { color: var(--orange-bright); }
.offer-link:hover span { transform: translateX(4px); }

/* ===================== STATS (bande sombre unie, chiffres orange + vert) ===================== */
.stats {
  padding-block: 84px;
  background: var(--surface-2);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 12px; position: relative; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: var(--line);
}
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4vw + 1rem, 3.6rem); color: var(--orange); line-height: 1; }
/* Le chiffre du milieu passe au vert : l'orange et le vert alternent. */
.stat:nth-child(2) .stat-num { color: var(--green); }
.stat dd { margin-top: 10px; font-size: 0.94rem; font-weight: 500; color: var(--ink-muted); }

/* ===================== COMMENT ÇA MARCHE (fond alterné) ===================== */
.process { background: var(--surface-1); padding-block: 110px; }
/* Section verte : le vert est la couleur secondaire, l'orange reste dominant ailleurs. */
.process .eyebrow { color: var(--green-bright); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-steps li { position: relative; padding-top: 8px; }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
  display: block; margin-bottom: 10px; line-height: 1;
}
.process-steps h3 { margin-bottom: 10px; color: var(--ink); }
.process-steps p { font-size: 0.92rem; color: var(--ink-muted); }

/* ===================== CARROUSEL GÉNÉRIQUE (reel) ===================== */
.reel { position: relative; }
/* Hauteur FIXE de la scène : toutes les diapos se superposent en
   absolu, donc le bas de la page ne bouge plus au changement. */
.reel-stage {
  position: relative;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
}
.reel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.995);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.reel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* Réalisations : fond sombre de base, image + légende côte à côte */
.projects { padding-block: 110px; background: var(--surface-0); }
.projects .reel-stage { background: var(--surface-1); border: 1px solid var(--line); }
.projects .reel-slide { display: grid; grid-template-columns: 1.25fr 1fr; height: 100%; }
.reel-media { position: relative; overflow: hidden; height: 100%; }
.reel-media img { width: 100%; height: 100%; object-fit: cover; }
.reel-caption { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.reel-cat {
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--orange); margin-bottom: 16px;
}
.reel-caption h3 { color: var(--ink); margin-bottom: 14px; font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem); }
.reel-caption p { color: var(--ink-muted); font-size: 1rem; }

.reel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.reel-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.reel-arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.reel-arrow svg { width: 20px; height: 20px; }
.reel-dots { display: flex; gap: 10px; }
.reel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; padding: 0;
  background: var(--line);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.reel-dot:hover { background: var(--ink-muted); }
.reel-dot.is-active { background: var(--orange); transform: scale(1.25); }

/* ===================== À PROPOS (fond alterné) ===================== */
.about { background: var(--surface-1); padding-block: 110px; }
.about .eyebrow { color: var(--green-bright); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; filter: grayscale(100%) contrast(1.05); }
.about-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(11,11,10,0.85), transparent);
}
.about-lead { margin-top: 20px; font-size: 1.1rem; color: var(--ink-muted); max-width: 52ch; }
.about-quote {
  margin-top: 28px;
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 26px 28px;
}
.about-quote-mark { width: 40px; height: 30px; fill: var(--green); opacity: 0.45; margin-bottom: 8px; }
.about-quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.about-quote figcaption { margin-top: 16px; font-size: 0.9rem; color: var(--ink-muted); }
.about-quote figcaption strong { color: var(--green-bright); }
.about-content .btn { margin-top: 28px; }

/* ===================== AVIS (fond sombre uni, cartes en marquee infini) ===================== */
.reviews {
  padding-block: 100px 110px;
  background: var(--surface-0);
  color: var(--ink);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
}
/* L'eyebrow des avis est vert : le vert reste la couleur secondaire. */
.reviews .eyebrow { color: var(--green-bright); }
.google-logo { display: inline-flex; margin-bottom: 18px; }
.google-logo svg { width: 40px; height: 40px; }
.reviews-summary { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 1rem; color: var(--ink-muted); }
.reviews-summary strong { color: var(--ink); font-weight: 700; }
.stars { color: var(--star); letter-spacing: 2px; }

/* Le ruban défile en continu de droite à gauche ; les bords sont fondus. */
.reviews-marquee {
  position: relative;
  margin-top: 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track {
  display: flex;
  width: max-content;
  animation: reviewsScroll 55s linear infinite;
}
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
/* -50 % = exactement une copie du jeu de cartes (marge comprise) → boucle sans saut. */
@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 clamp(300px, 30vw, 380px);
  margin-right: 24px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card .stars { font-size: 1.05rem; }
.review-card blockquote {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}
/* Avatars alternés orange / vert. */
.review-card:nth-child(odd) .review-avatar { background: var(--orange); }
.review-card:nth-child(even) .review-avatar { background: var(--green); }
.review-meta { display: flex; flex-direction: column; text-align: left; }
.review-meta strong { color: var(--ink); font-size: 0.96rem; }
.review-source { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-muted); }
.g-mark { display: inline-flex; }
.g-mark svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee {
    -webkit-mask-image: none; mask-image: none;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
  }
  .reviews-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .review-card { margin: 0 12px 24px; }
}

/* ===================== CONTACT / DEVIS (fond de base) ===================== */
.contact { background: var(--surface-0); padding-block: 110px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.contact-lead { margin-top: 18px; font-size: 1.05rem; color: var(--ink-muted); max-width: 42ch; }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.98rem; }
.contact-details svg { width: 20px; height: 20px; fill: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-details a:hover { color: var(--orange); }

.devis-form { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: var(--ink); }
.field .optional { font-weight: 400; opacity: 0.6; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--surface-0); color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: none; }
.field textarea { resize: vertical; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 24px; cursor: pointer; }
.field-check input { margin-top: 3px; accent-color: var(--orange); }
.form-success { text-align: center; padding: 20px 0; }
.form-success h3 { color: var(--orange); margin-bottom: 12px; }
.form-success p { color: var(--ink-muted); }

/* ===================== PIED DE PAGE ===================== */
.site-footer { background: var(--surface-1); color: var(--ink-muted); padding-top: 80px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-brand .logo-chip { display: inline-flex; background: var(--black); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand .logo-chip img { height: 26px; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.social-links a:hover { background: var(--orange); color: var(--black); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h3 { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 26px; font-size: 0.82rem; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--orange); }

/* Filet de sécurité anti-débordement (min-width auto de grid/flex) */
.hero-grid > *, .about-grid > *, .contact-grid > *, .projects .reel-slide > *,
.offer-grid > *, .process-steps > li, .footer-top > *, .hero-cta > *,
.stats-grid > *, .assurance-inner > *, .header-inner > * {
  min-width: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Bascule burger avant que la nav complète ne déborde */
@media (max-width: 1330px) {
  .main-nav { display: none; }
  .header-actions .header-tel,
  .header-actions .btn-primary { display: none; }
  .burger { display: flex; }
}

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .assurance-inner { justify-content: flex-start; }
  /* Carrousel réalisations empilé, hauteur fixe conservée */
  .projects .reel-stage { height: 600px; }
  .projects .reel-slide { grid-template-columns: 1fr; grid-template-rows: 260px 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-block: 88px 72px; min-height: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .hero-scroll { display: none; }
  .offer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat:not(:last-child)::after { display: none; }
  .stat { padding: 14px; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: none; }
  .process-steps { grid-template-columns: 1fr; row-gap: 36px; }
  .projects .reel-stage { height: 640px; }
  .projects .reel-slide { grid-template-rows: 240px 1fr; }
  .reel-caption { padding: 24px; }
  .reel-nav { gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .devis-form { padding: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
