/* ==========================================================================
   Dépann'ÔGAZ — Chauffage & Sanitaire
   Feuille de style principale — mobile-first
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #050b16;
  --navy-900: #0a1628;
  --navy-850: #0c1b31;
  --navy-800: #10233f;
  --navy-700: #17335a;

  --ink: #0e2038;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #b9c7da;
  --slate-200: #d7e0ec;

  --line: #e5eaf1;
  --line-dark: rgba(255, 255, 255, 0.09);

  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-400: #ffb454;
  /* Orange accessible pour du texte sur fond clair (≥ 4,5:1 sur blanc) */
  --orange-text: #c2410c;

  --blue-400: #5db8ff;
  --blue-600: #1d63d8;

  --grad-flame: linear-gradient(135deg, #ffb454 0%, #f97316 48%, #ea580c 100%);
  --grad-flame-soft: linear-gradient(135deg, rgba(255, 180, 84, 0.16), rgba(234, 88, 12, 0.16));
  /* Dégradé des CTA : assez sombre pour du texte blanc conforme WCAG AA */
  --grad-cta: linear-gradient(135deg, #c2410c 0%, #a83a0f 55%, #9a3412 100%);

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 6px 16px rgba(10, 22, 40, 0.09), 0 2px 6px rgba(10, 22, 40, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(10, 22, 40, 0.22);
  --shadow-orange: 0 12px 28px -8px rgba(234, 88, 12, 0.45);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --header-h: 102px; /* logo officiel vertical dans le header */
  --container: 1200px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

strong { color: inherit; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--orange-text); /* ≥ 3:1 sur fonds clairs comme sombres */
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(249, 115, 22, 0.25); }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.container--narrow { max-width: 860px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-pill);
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -8px rgba(234, 88, 12, 0.55); }

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

.btn--outline {
  background: #fff;
  color: var(--orange-text);
  border-color: var(--orange-text);
}
.btn--outline:hover { background: var(--orange-text); color: #fff; transform: translateY(-2px); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn--xl { padding: 15px 26px; font-size: 1.02rem; }

.btn__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}
.btn__stack b { font-size: 1.05em; letter-spacing: 0.3px; }
.btn__stack small { font-size: 0.78em; font-weight: 500; }

.btn--pulse { position: relative; isolation: isolate; }
.btn--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-flame);
  opacity: 0.55;
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  background: rgba(8, 17, 32, 0.92);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(3, 8, 18, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

/* Le logo est l'image officielle (version blanche pour fonds sombres),
   typographie d'origine incluse — aucune reconstruction. */
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.brand__lockup {
  height: 86px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.25));
}
.brand__lockup--lg { height: 170px; }

.header__phone { padding: 10px 14px; font-size: 0.9rem; min-height: 44px; min-width: 44px; }
.header__phone span { display: none; }

.nav-toggle {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav — panneau mobile (positionné en absolu sous le header : le
   backdrop-filter du header en fait le bloc conteneur des descendants fixes) */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 24px 40px;
  background: linear-gradient(180deg, #081020 0%, #050b16 100%);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.nav-locked { overflow: hidden; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__link {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  color: #eef3fa;
  font-size: 1.15rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--orange-400); }
.nav__link.is-active { color: var(--orange-400); background: rgba(249, 115, 22, 0.1); }

.nav__cta { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(23, 51, 90, 0.85), transparent 60%),
    radial-gradient(900px 480px at -15% 110%, rgba(234, 88, 12, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--slate-300);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 110px;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero__glow--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 65%);
  animation: glow-drift 9s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -110px;
  background: radial-gradient(circle, rgba(29, 99, 216, 0.3), transparent 65%);
  animation: glow-drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 24px) scale(1.12); }
}
/* Sur mobile, les glows restent mais ne s'animent pas (économie GPU/batterie) */
@media (max-width: 767px) {
  .hero__glow--1, .hero__glow--2 { animation: none; }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 30%, transparent 100%);
}

.hero__embers { position: absolute; inset: 0; }
.ember {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-400);
  opacity: 0;
  animation: ember-rise linear infinite;
}
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  8% { opacity: 0.7; }
  60% { opacity: 0.45; }
  100% { transform: translateY(-88vh) translateX(var(--sway, 24px)) scale(0.25); opacity: 0; }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 56px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange-400);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 22px;
  color: #fff;
  font-size: clamp(2.2rem, 8.5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__title .accent {
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.08rem;
  font-weight: 300;
}
.hero__lead strong { color: #fff; font-weight: 600; }

.hero__script {
  margin-top: 18px;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--amber-400);
  transform: rotate(-1.6deg);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-200);
}
.hero__badges li b { color: #fff; }
.hero__badges .icon { color: var(--orange-400); width: 1.5em; height: 1.5em; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--slate-300);
}
.hero__hours .icon { color: var(--orange-400); }

/* Visuel hero — carte "diagnostic" */
.hero__visual {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.device {
  position: relative;
  /* Cadre dégradé flamme → bleu sur la carte (double background :
     fond sombre en padding-box, dégradé en border-box) */
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, rgba(30, 52, 84, 0.97), rgba(13, 26, 46, 0.99)) padding-box,
    linear-gradient(150deg, #ffb454 0%, #f97316 30%, #a83a0f 55%, #1d63d8 100%) border-box;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 40px 80px -30px rgba(2, 6, 14, 0.8);
}

/* Comme le logo : l'image au-dessus, l'écriture en dessous */
.device__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 22px;
  text-align: center;
}
.device__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}
.device__title small { font-weight: 400; font-size: 0.74rem; color: var(--slate-300); }
/* Sous le titre en mobile, dans le coin de la carte dès 480px */
.device__status {
  order: 3;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 600;
}
.device__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.device__dial {
  display: grid;
  place-items: center;
  margin: 18px auto 0;
}
.device__flame {
  /* Halo doux et statique derrière le logo */
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.45));
}
.device__flame img { width: 60px; height: auto; }

.device__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device__rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
  font-size: 0.88rem;
}
.device__rows .icon {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border-radius: 50%;
  padding: 3px;
  width: 1.55em;
  height: 1.55em;
}

.device__bar { margin-top: 18px; }
.device__bar-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 8px;
}
.device__bar-track {
  display: block;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.device__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--grad-flame);
  transform-origin: left;
  animation: bar-fill 2.8s var(--ease-out) both;
  animation-delay: 0.8s;
}
@keyframes bar-fill {
  from { transform: scaleX(0.05); }
  to { transform: scaleX(1); }
}

/* Pied de carte : badges intégrés, alignés sur une ligne */
.device__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.device__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.device__badge .icon { color: var(--orange-400); width: 1.2em; height: 1.2em; }
.device__badge .stars { color: #fbbf24; letter-spacing: 1.5px; font-size: 0.85em; }

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 46px; }

/* ---------- Sections génériques ---------- */
.section { padding-block: 72px; }

.section--soft { background: var(--bg-soft); }

.section--dark {
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(23, 51, 90, 0.7), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--slate-300);
}
.section--dark .section__title { color: #fff; }
.section--dark .section__sub { color: var(--slate-300); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 44px;
}
.section__head--left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: 24px;
}

.section__eyebrow {
  display: inline-block;
  color: var(--orange-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--orange-400); }

.section__title {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-flame);
  margin: 16px auto 0;
}
.section__head--left .section__title::after { margin-inline: 0; }

.section__sub {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--slate-600);
}

/* ---------- Cartes services ---------- */
.services__grid {
  display: grid;
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.35);
}

.service-card { display: flex; flex-direction: column; }
.service-card__icon,
.pro-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--grad-flame);
  color: #fff;
  box-shadow: var(--shadow-orange);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease-out);
}
.service-card__icon .icon,
.pro-card__icon .icon { width: 28px; height: 28px; }
.card:hover .service-card__icon,
.card:hover .pro-card__icon { transform: rotate(-6deg) scale(1.07); }

.service-card h3, .pro-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card > p, .pro-card > p { font-size: 0.95rem; }

.service-card__list {
  margin-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--slate-500);
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-flame-soft);
  border: 2px solid var(--orange-500);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  margin-bottom: -10px;
  color: var(--orange-text);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card-link .icon { transition: transform 0.25s var(--ease-out); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-link:hover .icon { transform: translateX(5px); }

/* ---------- Pourquoi ---------- */
.why__grid {
  display: grid;
  gap: 14px;
}
.why__item {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}
.why__item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(249, 115, 22, 0.4);
}
.why__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.13);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--orange-400);
  margin-bottom: 16px;
}
.why__icon .icon { width: 24px; height: 24px; }
.why__item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.why__item p { font-size: 0.9rem; color: var(--slate-300); }

/* ---------- Marques ---------- */
/* Spécificité 0,2,0 : survit aux padding-block des media queries de .section */
.section.brands { padding-bottom: 60px; }

.brands__marquee {
  overflow: hidden;
  padding-block: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
/* Chaque série porte son propre gap + un padding droit égal au gap :
   la demi-largeur de la piste correspond exactement à une période,
   translateX(-50%) boucle donc sans saut visible. */
.brands__set {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}
.brands__marquee:hover .brands__track,
.brands__marquee.is-paused .brands__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 18px 34px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.brand-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-pill--saunier { color: #c8102e; }
.brand-pill--elm { color: #005ca9; }
.brand-pill--viessmann { color: #e30613; letter-spacing: 0.12em; }
.brand-pill--viessmann b { color: #e87511; }
.brand-pill--dedietrich { color: #1a1a1a; }

.brands__note {
  text-align: center;
  margin-top: 26px;
  font-size: 0.98rem;
  color: var(--slate-500);
}
.brands__note a {
  display: inline-block;
  margin-left: 6px;
  padding-block: 8px;
  margin-block: -8px;
  color: var(--orange-text);
  font-weight: 700;
}
.brands__note a:hover { text-decoration: underline; }

/* ---------- Zone ---------- */
.zone__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.zone__lead { font-size: 1.05rem; }
.zone__lead strong { color: var(--ink); }

.zone__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.zone__chips li {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, color 0.25s;
}
.zone__chips li:hover {
  transform: translateY(-2px);
  border-color: var(--orange-400);
  color: var(--orange-text);
}
.zone__chip-more {
  background: var(--grad-flame-soft) !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
  color: var(--orange-text) !important;
  font-weight: 600;
}

.zone__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
  font-weight: 500;
  color: var(--ink);
}

.zone__map { position: relative; }

/* Carré dégradé décalé derrière la carte — même rayon que le cadre */
.zone__map::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  right: -14px;
  bottom: 20px;
  border-radius: 10px;
  background: var(--grad-flame);
  opacity: 0.14;
}

/* Vraie carte (Leaflet, tuiles claires) dans un cadre simple, bordure marquée */
.zone__map-frame {
  position: relative;
  height: clamp(320px, 70vw, 440px);
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--navy-900);
  box-shadow: var(--shadow-lg);
  background: #eef2f7; /* visible pendant le chargement des tuiles */
}
.zone__map-canvas {
  position: absolute;
  inset: 0;
  background: #eef2f7;
}
/* Épingle-marqueur aux couleurs de la marque */
.map-pin svg {
  filter: drop-shadow(0 8px 12px rgba(10, 22, 40, 0.4));
}
.zone__map-credit {
  margin-top: 12px;
  font-size: 0.78rem;
  text-align: center;
  color: var(--slate-600);
}
.zone__map-credit a { text-decoration: underline; text-underline-offset: 2px; }
.zone__map-credit a:hover { color: var(--orange-text); }
.zone__badge {
  position: absolute;
  z-index: 800; /* au-dessus des calques Leaflet */
  right: 14px;
  bottom: 48px; /* au-dessus de la ligne de crédit */
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: var(--shadow-orange);
}
.zone__badge b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }

/* ---------- Particuliers / Pro ---------- */
.pro__grid {
  display: grid;
  gap: 18px;
}
.pro-card__icon {
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.pro-card:hover .pro-card__icon { background: var(--grad-flame); }

.pro__cta {
  text-align: center;
  margin-top: 34px;
  max-width: 620px;
  margin-inline: auto;
  font-weight: 500;
  color: var(--ink);
}
.pro__cta a {
  display: inline-block;
  margin-top: 6px;
  padding-block: 8px;
  margin-block: -2px -8px;
  color: var(--orange-text);
  font-weight: 700;
}
.pro__cta a:hover { text-decoration: underline; }

/* ---------- Avis ---------- */
.reviews__google-link a { font-weight: 800; font-size: 1.15em; letter-spacing: -0.02em; }
.reviews__score { white-space: nowrap; }
.reviews__score .stars { color: #d97706; letter-spacing: 2px; }
.reviews__score b { color: var(--ink); }
.g-blue { color: #4285f4; }
.g-red { color: #ea4335; }
.g-yellow { color: #fbbc05; }
.g-green { color: #34a853; }

.reviews__carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.reviews__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 8px;
  border-radius: var(--radius);
}
.reviews__viewport::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review-card__stars {
  color: #d97706; /* ≥ 3:1 sur blanc (1.4.11) */
  font-size: 1.15rem;
  letter-spacing: 3px;
}
.review-card blockquote {
  font-size: 0.98rem;
  color: var(--slate-600);
  flex: 1;
}
.review-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.review-card__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-flame);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
}
.review-card__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  margin-right: auto;
}
.review-card__meta b { color: var(--ink); font-size: 0.95rem; }
.review-card__meta small { color: var(--slate-500); font-size: 0.8rem; }
.review-card__g {
  display: grid;
  place-items: center;
  flex: none;
  padding: 10px;
  margin: -10px;
  border-radius: 50%;
  transition: transform 0.2s var(--ease-out);
}
.review-card__g:hover { transform: scale(1.15); }
.review-card__g svg { display: block; }

.reviews__arrow {
  display: none;
  align-self: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.reviews__arrow:hover { background: var(--orange-500); color: #fff; transform: scale(1.06); }
.reviews__arrow--prev .icon { transform: rotate(180deg); }
.reviews__arrow .icon { margin: auto; }

.reviews__carousel.is-static .reviews__arrow { display: none; }
.reviews__dots.is-hidden { display: none; }

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 12px;
}
/* Cible tactile de 34×34px, pastille visuelle de 9px via ::before */
.reviews__dots button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.reviews__dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--slate-500);
  transition: background 0.25s, transform 0.25s;
}
.reviews__dots button:hover::before { background: var(--slate-600); }
.reviews__dots button.is-active::before {
  background: var(--orange-text);
  transform: scale(1.35);
}

/* ---------- FAQ ---------- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq__item[open] {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: var(--shadow-md);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--bg-soft); }
.faq__item summary .icon {
  color: var(--orange-500);
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] summary .icon { transform: rotate(180deg); }

.faq__answer { padding: 0 20px 20px; }
.faq__answer p { font-size: 0.95rem; }

/* ---------- Contact / CTA final ---------- */
.contact { position: relative; overflow: hidden; }
.contact__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  left: 50%;
  top: -320px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact__tags {
  text-align: center;
  margin-top: 22px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.contact__cards {
  display: grid;
  gap: 14px;
  margin-top: 44px;
}
.contact-card p a { overflow-wrap: anywhere; }
.contact-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--orange-400);
  margin-bottom: 14px;
}
.contact-card h3 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-card p { color: #fff; font-weight: 600; font-size: 1.02rem; }
.contact-card p a:hover { color: var(--orange-400); }
.contact-card small { display: block; margin-top: 4px; color: var(--slate-300); font-size: 0.82rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: var(--slate-300);
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  display: grid;
  gap: 36px;
  padding-block: 56px 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer__brand .brand { margin-right: 0; }
.footer__script {
  margin-top: 16px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600; /* seule graisse Caveat chargée */
  line-height: 1.25;
  color: var(--amber-400);
  transform: rotate(-1.2deg);
}
.footer__col h3 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Zone tactile élargie — uniquement les liens des listes, surtout pas
   les boutons CTA du footer (ils se superposeraient) */
.footer__col li a {
  display: inline-block;
  padding-block: 8px;
  margin-block: -8px;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.footer__col li a:hover { color: var(--orange-400); }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}
.footer__contact .icon { color: var(--orange-400); margin-top: 3px; }

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.footer__cta .btn { justify-content: flex-start; }

.footer__legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 20px 96px; /* espace pour le bouton d'appel flottant */
  font-size: 0.82rem;
  color: #8296ad; /* ≥ 4,5:1 sur navy-950 */
}
.footer__legal a {
  display: inline-block;
  padding-block: 8px;
  margin-block: -8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal a:hover { color: var(--orange-400); }

/* ---------- FAB appel mobile ---------- */
.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.fab-call .icon { width: 24px; height: 24px; animation: fab-ring 3.2s ease-in-out infinite; }
@keyframes fab-ring {
  0%, 84%, 100% { transform: rotate(0); }
  88% { transform: rotate(-14deg); }
  92% { transform: rotate(12deg); }
  96% { transform: rotate(-8deg); }
}
.fab-call.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ---------- Animations d'apparition ---------- */
/* Masquées uniquement si le JS est actif (classe .js posée dans <head>),
   pour que le contenu reste visible sans JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ancres : compenser le header fixe */
section[id], [id="contact"] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ==========================================================================
   Breakpoints — mobile-first
   ========================================================================== */

/* ≤ 379px : header compact */
@media (max-width: 379px) {
  .container { padding-inline: 16px; }
  .header__inner { gap: 8px; }
  .brand__lockup { height: 74px; }
  .header__phone { padding: 10px 12px; }
}

/* ≥ 480px */
@media (min-width: 480px) {
  .device__status { position: absolute; top: 16px; right: 16px; margin-top: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .header__phone span { display: inline; }
}

/* ≥ 768px */
@media (min-width: 768px) {
  :root { --header-h: 110px; }
  .brand__lockup { height: 94px; }
  .section { padding-block: 96px; }
  .footer__legal { padding-block: 20px; }
  .hero { padding-top: calc(var(--header-h) + 72px); }
  .hero__badges li { font-size: 0.82rem; }
  .pro__grid { grid-template-columns: repeat(2, 1fr); }
  .zone__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .reviews__viewport { grid-auto-columns: 46%; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .fab-call { display: none; }
}

/* ≥ 1024px : navigation desktop */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .header__phone { display: inline-flex; }

  .nav {
    position: static;
    height: auto; /* indispensable : la hauteur du panneau mobile resterait sinon */
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    margin-left: auto;
    margin-right: 6px;
  }
  .nav__list { flex-direction: row; gap: 0; }
  .nav__link {
    padding: 9px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-pill);
  }
  .nav__link.is-active { background: rgba(249, 115, 22, 0.12); }
  .nav__cta { display: none; }
  .brand { margin-right: 0; }

  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
  }
  .hero__visual { margin-inline: 0 auto; }
  .hero__title { font-size: clamp(2.8rem, 4.2vw, 4rem); }

  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reviews__viewport { grid-auto-columns: calc((100% - 32px) / 3); }
  .reviews__arrow { display: grid; }
  .footer__inner { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; }
  .footer__cta { align-items: flex-start; }
  .hero__wave svg { height: 70px; }
}

/* ≥ 1280px */
@media (min-width: 1280px) {
  .section { padding-block: 110px; }
  .nav__list { gap: 4px; }
  .nav__link { font-size: 0.95rem; padding: 9px 13px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ember { display: none; }
}
