/* ============================================================
   AZZ DÉPAN ELEC — Feuille de style
   Système thémé : data-direction = confiance | energie | premium
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Tokens de base (marque) ---------- */
:root {
  --navy-950: #060d22;
  --navy-900: #081234;
  --navy-850: #0b1a44;
  --navy-800: #0e2257;
  --blue-700: #143a93;
  --blue-600: #1750c8;
  --blue-500: #2563eb;
  --blue-400: #4f86f2;
  --blue-300: #8db4f8;
  --blue-100: #dde9fd;

  --yellow:      #2563eb;
  --yellow-deep: #1750c8;
  --yellow-soft: #dde9fd;

  --ink:    #0a1222;
  --ink-70: #3a4256;
  --ink-50: #5d6680;
  --paper:  #f5f8fd;
  --white:  #ffffff;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(8, 18, 52, .06);
  --shadow-md: 0 14px 40px -16px rgba(8, 18, 52, .28);
  --shadow-lg: 0 40px 90px -40px rgba(8, 18, 52, .45);

  --accent: var(--yellow);
  --accent-deep: var(--yellow-deep);
  --focus: var(--blue-500);

  /* surchargés par les directions */
  --page-bg: var(--paper);
  --page-ink: var(--ink);
  --page-muted: #51607a;
  --hero-bg: radial-gradient(120% 130% at 80% -10%, var(--blue-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  --hero-ink: #ffffff;
  --hero-muted: #b9c8ef;
  --card-bg: #ffffff;
  --card-border: #e6ecf6;
  --section-alt: #eef3fb;
}

/* ---------- Base page ---------- */
body {
  font-family: var(--font-body);
  color: var(--page-ink);
  background: var(--page-bg);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: clip; /* coupe tout debordement horizontal sans casser le header sticky */
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; color: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- Utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent); display: inline-block;
}
.eyebrow.on-dark { color: var(--accent); }

.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
/* Decalage pour que le header collant ne masque pas le haut des sections ciblees par les ancres */
.section, .hero { scroll-margin-top: 88px; }
.section--alt { background: var(--section-alt); }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); color: var(--page-muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -10px rgba(23, 80, 200, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(23, 80, 200, .85); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.34); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--card-border); color: var(--page-ink); background: var(--white); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 17px; }

/* ---------- Bolt mark ---------- */
.bolt {
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 9px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.header.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.brand__name span { color: var(--accent-deep); }
.brand__tag { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--page-muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: 15px; color: var(--header-link, var(--page-ink));
  padding: 9px 15px; border-radius: 9px; transition: background .15s, color .15s; opacity: .9;
}
.nav a:hover { background: var(--blue-100); color: var(--blue-700); opacity: 1; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px;
  color: var(--header-link, var(--page-ink));
}
.header__phone svg { width: 17px; height: 17px; color: var(--accent-deep); }
.header__burger { display: none; width: 44px; height: 44px; border-radius: 11px; place-items: center; background: var(--blue-100); color: var(--blue-700); border: 1px solid var(--card-border); cursor: pointer; }
.header__burger svg { width: 22px; height: 22px; }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; overflow: hidden;
  background: rgba(8,18,52,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px);
  background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 6px;
  padding: 86px 20px 28px;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__panel a {
  font-weight: 700; font-size: 17px; color: var(--page-ink);
  padding: 14px 14px; border-radius: 11px; transition: background .15s, color .15s;
}
.mobile-menu__panel a:hover { background: var(--blue-100); color: var(--blue-700); }
.mobile-menu__phone {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  border-top: 1px solid var(--card-border); border-radius: 0 !important; padding-top: 20px !important;
}
.mobile-menu__phone svg { width: 18px; height: 18px; color: var(--accent-deep); }
.mobile-menu__cta { justify-content: center; margin-top: 10px; }

/* Le header est posé sur le fond clair de la page (le hero est en dessous, pas
   derrière) : on garde donc un texte sombre et lisible dès le haut de page.
   Au scroll, .scrolled lui ajoute un fond blanc translucide. */

/* ============================================================
   BANDEAU URGENCE 24/7
   ============================================================ */
.urgence {
  background: linear-gradient(90deg, var(--navy-900), var(--blue-700));
  color: #fff; font-size: 14px; font-weight: 600;
  position: relative; z-index: 70; overflow: hidden;
}
.urgence__inner { display: flex; align-items: center; gap: 18px; height: 44px; }
.urgence__pulse { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12.5px; color: var(--accent); }
.urgence__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(37,99,235,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,99,235,.6);} 70%{box-shadow:0 0 0 9px rgba(37,99,235,0);} 100%{box-shadow:0 0 0 0 rgba(37,99,235,0);} }
.urgence__sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }
.urgence__txt { opacity: .92; }
.urgence__phone { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.urgence__phone svg { width: 15px; height: 15px; }
.urgence__phone:hover { color: var(--accent); }
@media (max-width: 720px){ .urgence__txt { display: none; } .urgence__inner { gap: 12px; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 70px); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 1.7vw, 21px); color: var(--hero-muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: var(--hero-muted); }
.hero__trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Décor électrique */
.hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .9; }
.hero__glow::before { content:""; position:absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.55), transparent 65%); filter: blur(20px); }
.hero__grid-lines { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(80% 70% at 70% 20%, #000, transparent 80%); }

/* Média hero (carte visuelle) */
.hero__media { position: relative; }
.hero__photo {
  border-radius: var(--radius-lg); aspect-ratio: 4 / 4.4; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -26px; bottom: 34px; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; min-width: 230px;
}
.hero__badge .bolt { width: 44px; height: 44px; }
.hero__badge b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.hero__badge span { font-size: 13px; color: var(--page-muted); font-weight: 600; }
.hero__rating { position: absolute; right: -18px; top: 26px; background: var(--navy-900); color:#fff; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); }
.hero__rating .stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.hero__rating b { font-family: var(--font-display); font-size: 18px; }
.hero__rating span { display:block; font-size: 12px; color: var(--hero-muted); font-weight:600; }

/* ---------- Variante ÉNERGIE : hero plein cadre, texte centré ---------- */
[data-direction="energie"] {
  --hero-bg: linear-gradient(135deg, #0b1f63 0%, #1750c8 55%, #2563eb 100%);
}
[data-direction="energie"] .hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 940px; margin-inline: auto; }
[data-direction="energie"] .hero__media { display: none; }
[data-direction="energie"] .hero__lead { margin-inline: auto; }
[data-direction="energie"] .hero__cta { justify-content: center; }
[data-direction="energie"] .hero__trust { justify-content: center; }
[data-direction="energie"] .hero__eyebrow { justify-content: center; }
[data-direction="energie"] .hero h1 { font-size: clamp(40px, 7vw, 82px); }
[data-direction="energie"] .hero__glow::before { left: 50%; right: auto; transform: translateX(-50%); top: -200px; width: 760px; background: radial-gradient(circle, rgba(37,99,235,.22), transparent 60%); }
[data-direction="energie"] .hero__streak { position:absolute; inset:0; z-index:1; opacity:.5; background:
  radial-gradient(60% 50% at 10% 110%, rgba(37,99,235,.18), transparent 60%),
  radial-gradient(50% 60% at 95% 0%, rgba(141,180,248,.3), transparent 60%); }

/* ---------- Variante PREMIUM : hero clair et aéré ---------- */
[data-direction="premium"] {
  --page-bg: #ffffff;
  --section-alt: #f6f7f4;
  --hero-bg: linear-gradient(180deg, #fbfbf9 0%, #f3f5f0 100%);
  --hero-ink: #0a1222;
  --hero-muted: #51607a;
  --card-border: #e9e7e0;
  --accent: #2563eb;
  --accent-deep: #c98a00;
}
[data-direction="premium"] .hero__photo { border-color: var(--card-border); }
[data-direction="premium"] .hero__glow { display: none; }
[data-direction="premium"] .hero h1 em { color: var(--accent-deep); }
[data-direction="premium"] .hero__rating { background: #fff; color: var(--ink); border-color: var(--card-border); }
[data-direction="premium"] .hero__rating span { color: var(--page-muted); }
[data-direction="premium"] .hero__grid-lines { background-image: linear-gradient(rgba(10,18,34,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(10,18,34,.035) 1px, transparent 1px); }
[data-direction="premium"] .btn-ghost { color: var(--ink); border-color: var(--card-border); background: transparent; }
[data-direction="premium"] .btn-ghost:hover { background: var(--section-alt); }
[data-direction="premium"] .header.scrolled { background: rgba(255,255,255,.9); }

/* ---------- Photos réelles (remplissent leur cadre) ---------- */
.hero__photo img,
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Carte OpenStreetMap ---------- */
.zone__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.zone__map-link {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.94); color: var(--page-ink);
  font-weight: 700; font-size: 13.5px; padding: 9px 14px;
  border-radius: 10px; box-shadow: var(--shadow-md); border: 1px solid var(--card-border);
}
.zone__map-link:hover { background: #fff; }
.zone__map-link svg { width: 16px; height: 16px; color: var(--accent-deep); }

/* ---------- Placeholder photo (rayé + label mono) ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, rgba(255,255,255,.02) 14px 28px),
    linear-gradient(160deg, var(--blue-700), var(--navy-900));
  display: grid; place-items: center;
}
.ph--light {
  background:
    repeating-linear-gradient(135deg, rgba(10,18,34,.05) 0 14px, rgba(10,18,34,.015) 14px 28px),
    linear-gradient(160deg, #eef2f8, #dde6f3);
}
.ph__tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.82);
  background: rgba(8,18,52,.42); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 13px; border-radius: 8px; text-align: center;
}
.ph--light .ph__tag { color: #45526b; background: rgba(255,255,255,.7); border-color: rgba(10,18,34,.1); }

/* ============================================================
   BANDE STATS / CHIFFRES
   ============================================================ */
.stats { background: var(--navy-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 40px; }
.stat { text-align: center; padding: 8px; }
.stat b { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); display: block; line-height: 1; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { font-size: 14px; color: var(--blue-300); font-weight: 600; margin-top: 8px; display: block; }
[data-direction="premium"] .stats { background: var(--navy-900); }
@media (max-width: 680px){ .stats__grid { grid-template-columns: repeat(2,1fr); gap: 28px 12px; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.svc {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 30px 26px 28px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc::after { content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: linear-gradient(90deg, var(--blue-500), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc__num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--page-muted); position:absolute; top: 26px; right: 26px; }
.svc__ico { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); margin-bottom: 22px; }
.svc__ico svg { width: 28px; height: 28px; }
.svc h3 { font-size: 20px; letter-spacing: -0.01em; }
.svc p { margin-top: 11px; font-size: 15px; color: var(--page-muted); line-height: 1.55; }
.svc__list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.svc__list li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--page-ink); }
.svc__list svg { width: 15px; height: 15px; color: var(--accent-deep); flex: none; }
.svc--accent { background: linear-gradient(165deg, var(--navy-850), var(--navy-900)); border-color: transparent; color: #fff; }
.svc--accent .svc__num { color: var(--blue-300); }
.svc--accent h3 { color: #fff; }
.svc--accent p { color: var(--blue-300); }
.svc--accent .svc__ico { background: rgba(37,99,235,.16); color: var(--accent); }
.svc--accent .svc__list li { color: #fff; }
@media (max-width: 980px){ .services__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .services__grid { grid-template-columns: 1fr; } }

/* ============================================================
   POURQUOI / PROCESS  (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/5.6; box-shadow: var(--shadow-md); border: 1px solid var(--card-border); }
.feat-list { display: grid; gap: 16px; margin-top: 36px; }
.feat {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 20px 22px; transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.feat__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--accent); }
.feat__ico svg { width: 24px; height: 24px; }
.feat h4 { font-size: 18px; }
.feat p { font-size: 14.5px; color: var(--page-muted); margin-top: 5px; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split__media { order: -1; aspect-ratio: 16/10; } }

/* ============================================================
   AVIS CLIENTS
   ============================================================ */
.reviews__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.review {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 16px;
}
.review__stars { color: var(--accent); letter-spacing: 3px; font-size: 17px; }
.review p { font-size: 16px; line-height: 1.6; color: var(--page-ink); flex: 1; }
.review__by { display: flex; align-items: center; gap: 13px; padding-top: 8px; border-top: 1px solid var(--card-border); }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; flex: none; }
.review__by b { display: block; font-size: 15px; }
.review__by span { font-size: 13px; color: var(--page-muted); }
@media (max-width: 880px){ .reviews__grid { grid-template-columns: 1fr; } }

/* ============================================================
   ZONE D'INTERVENTION
   ============================================================ */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.zone__map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11; border: 1px solid var(--card-border); box-shadow: var(--shadow-md); position: relative; }
.zone__towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.zone__towns li { display: inline-flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-pill); padding: 9px 16px; font-weight: 600; font-size: 14.5px; }
.zone__towns svg { width: 14px; height: 14px; color: var(--accent-deep); }
@media (max-width: 860px){ .zone { grid-template-columns: 1fr; } }

/* ============================================================
   DEVIS (CTA + formulaire)
   ============================================================ */
.devis { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.devis__bg { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 80% at 20% 30%, #000, transparent 75%); }
.devis__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px,5vw,80px); align-items: center; position: relative; z-index: 2; }
.devis h2 { font-size: clamp(30px,4vw,50px); }
.devis__lead { color: var(--blue-300); margin-top: 18px; font-size: 18px; max-width: 440px; }
.devis__perks { margin-top: 30px; display: grid; gap: 14px; }
.devis__perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.devis__perks .bolt { width: 30px; height: 30px; border-radius: 8px; }
.devis__perks .bolt svg { width: 16px; height: 16px; }
.devis__call { margin-top: 32px; display: inline-flex; align-items: center; gap: 14px; padding: 16px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.devis__call small { display:block; color: var(--blue-300); font-size: 13px; font-weight: 600; }
.devis__call b { font-family: var(--font-display); font-size: 22px; }

.form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-lg);
}
.form__head { margin-bottom: 22px; }
.form__head h3 { font-size: 24px; }
.form__head p { font-size: 14.5px; color: var(--page-muted); margin-top: 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: #2a3346; }
.field label .req { color: #d23b3b; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  background: #f6f8fc; border: 1.5px solid #e4eaf4; border-radius: 12px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field input::placeholder, .field textarea::placeholder { color: #9aa6bc; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e0524d; background: #fdf3f2; }
.field__err { color: #d23b3b; font-size: 12.5px; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid .field__err { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__legal { font-size: 12px; color: var(--page-muted); margin-top: 12px; text-align: center; line-height: 1.5; }
.form__success { text-align: center; padding: 20px 8px; }
.form__success .check { width: 72px; height: 72px; border-radius: 50%; background: #e7f7ee; color: #18a558; display: grid; place-items: center; margin: 0 auto 20px; }
.form__success .check svg { width: 36px; height: 36px; }
.form__success h3 { font-size: 24px; }
.form__success p { color: var(--page-muted); margin-top: 10px; }
.form__success .btn { margin-top: 22px; }
@media (max-width: 880px){
  .devis__grid { grid-template-columns: 1fr; }
  /* Sur mobile, on remonte le formulaire au-dessus de la colonne d'intro :
     un clic sur "Devis" tombe directement sur le formulaire. */
  .devis__grid > div:last-child { order: -1; }
  .form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-950); color: #c7d3ec; padding-block: 64px 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer__brand .brand__name { color: #fff; }
.footer p { font-size: 14.5px; line-height: 1.6; margin-top: 16px; color: #9fb0d0; max-width: 280px; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a, .footer ul li { font-size: 14.5px; color: #9fb0d0; transition: color .15s; }
.footer ul a:hover { color: var(--accent); }
.footer__contact li { display: flex; align-items: center; gap: 11px; }
.footer__contact svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7e8fb0; }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */
@media (max-width: 940px){
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  [data-direction="confiance"] .hero__media, [data-direction="premium"] .hero__media { display: block; max-width: 460px; margin-top: 8px; }
  .nav { display: none; }
  .header__phone span { display: none; }
  .header__burger { display: grid; }
}
@media (max-width: 600px){
  body { font-size: 16px; }
  .header__cta .btn:not(.mobile-menu__cta) { display: none; }
}
/* le menu mobile ne doit jamais rester affiché en desktop (ex: redimensionnement) */
@media (min-width: 941px){
  .mobile-menu { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } .hero__glow, .urgence__dot { animation: none; } }
