/* ==========================================================================
   J2T ELEC — feuille de styles
   1. Polices & variables   2. Base   3. Composants   4. Sections   5. Utilitaires
   ========================================================================== */

/* ── 1. Polices (auto-hébergées, licence SIL OFL) ───────────────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Couleurs de marque (identiques dans les deux thèmes) */
  --volt: #f2a65a;
  --volt-hi: #f7bd80;
  --ink: #0a1f18;
  --green: #0e3b2c;
  --red: #d42f25;
  --red-hi: #e8392f;
  --ink-2: #10271f;
  --paper: #f4f2eb;
  --ok: #3ddc84;

  /* Thème clair */
  --bg: #f4f2eb;
  --bg-2: #ebe8dd;
  --surface: #ffffff;
  --field: #f8f7f2;
  --text: #0b1f18;
  --muted: #4f5f58;
  --dim: #9a9c9a;
  --line: rgba(11, 31, 24, 0.1);
  --line-strong: rgba(11, 31, 24, 0.2);
  --focus: #0b1f18;
  --danger: #b42318;
  --grid: rgba(11, 31, 24, 0.07);
  --glow: 34%;
  --logo-bg: var(--ink);
  --logo-fg: var(--volt);
  --shadow-sm: 0 1px 2px rgba(11, 31, 24, 0.05), 0 6px 16px -8px rgba(11, 31, 24, 0.1);
  --shadow-lg: 0 2px 4px rgba(11, 31, 24, 0.04), 0 32px 64px -32px rgba(11, 31, 24, 0.28);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #07140f;
  --bg-2: #0a1a14;
  --surface: #10271f;
  --field: #0a1c15;
  --text: #f3f1ea;
  --muted: #9db0a7;
  --dim: #5d7269;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --focus: #f2a65a;
  --danger: #ff9c8f;
  --grid: rgba(255, 255, 255, 0.05);
  --glow: 13%;
  --logo-bg: var(--volt);
  --logo-fg: var(--ink);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 32px 64px -32px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

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

::selection {
  background: var(--volt);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--volt);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: currentColor;
}

/* Surlignage « fluo » */
.mark {
  margin-inline: -0.06em;
  padding-inline: 0.06em;
  background: linear-gradient(var(--volt), var(--volt)) no-repeat 0 82% / 100% 0.36em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s var(--ease) 0.45s;
}

[data-theme="dark"] .mark {
  background: none;
  color: var(--volt);
}

.js [data-reveal]:not(.is-in) .mark {
  background-size: 0 0.36em;
}

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

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

.urgent h2 .volt {
  display: block;
}

/* Apparition au défilement */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.theming *,
html.theming *::before,
html.theming *::after {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease !important;
}

/* ── 3. Composants ──────────────────────────────────────────────────────── */

/* Boutons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  min-height: 42px;
  padding: 0 1.05rem;
  font-size: 0.95rem;
}

.btn--lg {
  min-height: 58px;
  padding: 0 1.6rem;
  font-size: 1.0625rem;
}

.btn--xl {
  min-height: 72px;
  padding: 0 2rem;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn--primary:hover {
  background: var(--red-hi);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 12px 28px -10px color-mix(in srgb, var(--red) 80%, transparent);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn--dark {
  background: var(--text);
  color: var(--bg);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--text) 60%, transparent);
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-color: var(--line-strong);
}

/* Sur-titre */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--volt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a1f18' d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E")
    center / 62% no-repeat;
}

.eyebrow--volt {
  color: rgba(243, 241, 234, 0.7);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 12px;
}

.logo__mark {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
  transition: transform 0.4s var(--ease);
}

.logo__mark img {
  width: 100%;
  height: 100%;
}

.logo__img--dark,
[data-theme="dark"] .logo__img--light,
.logo--light .logo__img--light {
  display: none;
}

[data-theme="dark"] .logo__img--dark,
.logo--light .logo__img--dark {
  display: block;
}

.logo:hover .logo__mark {
  transform: rotate(-6deg) scale(1.05);
}

.logo__word {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo__word span {
  margin-left: 0.3em;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 0.82em;
}

.logo--light {
  color: #f3f1ea;
}

/* ── 4. Sections ────────────────────────────────────────────────────────── */

/* En-tête */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled,
.header.is-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-open {
  background: var(--bg);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.nav ul {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.nav a[aria-current="true"] {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--volt);
  box-shadow: 0 0 0 1px rgba(10, 31, 24, 0.12);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav a[aria-current="true"]::after {
  transform: translateX(-50%) scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  font-variant-numeric: tabular-nums;
}

.header__phone:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.theme-toggle__sun,
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 10px;
}

.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle__bars i:first-child {
  top: 0;
}

.menu-toggle__bars i:last-child {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: menu-in 0.35s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 100%;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
}

.mobile-menu li + li {
  border-top: 1px solid var(--line);
}

.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-menu li a span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mobile-menu__cta {
  display: grid;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--header-h);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 34rem at 88% 18%, color-mix(in srgb, var(--volt) var(--glow), transparent), transparent 62%),
    radial-gradient(40rem 26rem at 0% 100%, color-mix(in srgb, var(--volt) calc(var(--glow) / 3), transparent), transparent 65%);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 68% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 80% at 68% 30%, #000 15%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(3rem, 8vh, 6rem) clamp(3.5rem, 9vh, 6.5rem);
  min-height: min(calc(100svh - var(--header-h) - 64px), 860px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fb866;
}

.pill__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #1fb866;
  animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
  from {
    opacity: 0.8;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.75rem, 5.6vw + 0.6rem, 5.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__trust .icon {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  stroke-width: 3;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}

/* Pastilles flottantes */
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  line-height: 1.25;
  animation: float 7s ease-in-out infinite alternate;
}

.chip strong {
  display: block;
  font-size: 0.92rem;
}

.chip small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.chip__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--volt);
  color: var(--ink);
}

.chip__icon--ok {
  background: color-mix(in srgb, var(--ok) 22%, var(--surface));
  color: #0d7a41;
}

[data-theme="dark"] .chip__icon--ok {
  color: var(--ok);
}

.chip__icon--ok .icon {
  stroke-width: 2.6;
}

.chip--a {
  top: -2.6rem;
  left: -3.25rem;
}

.chip--b {
  right: -2.25rem;
  bottom: -1.75rem;
  animation-delay: -3.5s;
}

@keyframes float {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(8px);
  }
}

/* Tableau électrique (toujours sombre : c'est un appareil) */
.board {
  --b-text: #f3f1ea;
  --b-muted: #8fa59b;
  --b-line: rgba(255, 255, 255, 0.08);
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background: linear-gradient(180deg, #123a2d 0%, #0a1c15 100%);
  color: var(--b-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 10px color-mix(in srgb, var(--text) 5%, transparent),
    0 50px 90px -40px rgba(10, 31, 24, 0.65);
}

[data-theme="dark"] .board {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 120px -30px color-mix(in srgb, var(--volt) 30%, transparent);
}

.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.4rem 1rem;
}

.board__brand,
.board__status,
.board__label {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  color: var(--b-muted);
}

.board__brand .icon {
  width: 14px;
  height: 14px;
  color: var(--volt);
}

.board__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent), 0 0 12px var(--ok);
  animation: led 2.4s ease-in-out infinite;
}

@keyframes led {
  50% {
    opacity: 0.55;
  }
}

.board__meter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 1.5rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid var(--b-line);
  border-radius: 22px;
  background:
    radial-gradient(18rem 8rem at 0% 0%, rgba(242, 166, 90, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.board__label {
  display: block;
  color: var(--b-muted);
}

.board__value {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.board__value small {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--b-muted);
}

.board__gauge {
  padding-bottom: 0.45rem;
  text-align: right;
}

.gauge {
  position: relative;
  height: 12px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gauge__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e08a3c, var(--volt));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.6s var(--ease), background-color 0.3s;
}

.gauge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 2px), #0d251c calc(100% / 12 - 2px) calc(100% / 12));
}

.board__rows {
  margin-top: 0.5rem;
}

.breaker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.72rem 0.4rem;
}

.breaker + .breaker {
  border-top: 1px solid var(--b-line);
}

.breaker__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--b-muted);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.breaker:has([aria-checked="true"]) .breaker__icon {
  background: rgba(242, 166, 90, 0.14);
  color: var(--volt);
  box-shadow: inset 0 0 0 1px rgba(242, 166, 90, 0.25);
}

.breaker__text {
  min-width: 0;
  line-height: 1.3;
}

.breaker__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.breaker__text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--b-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s;
}

.switch::before {
  /* zone tactile élargie (44 px minimum) */
  content: "";
  position: absolute;
  inset: -7px -4px;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7d9389;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), background-color 0.3s;
}

.switch[aria-checked="true"] {
  background: var(--volt);
  box-shadow: 0 0 22px -4px rgba(242, 166, 90, 0.7);
}

.switch[aria-checked="true"]::after {
  background: var(--ink);
  transform: translateX(26px);
}

.switch:focus-visible {
  outline-color: var(--volt);
}

.board__foot {
  margin-top: 0.4rem;
  padding: 0.85rem 0.4rem 0.2rem;
  border-top: 1px solid var(--b-line);
  font-size: 0.84rem;
  color: var(--b-muted);
  min-height: 3.6em;
}

.board__trip {
  display: none;
  gap: 0.6rem;
  color: #ffb4a8;
}

.board__trip .icon {
  margin-top: 0.1em;
}

.board__trip a {
  color: var(--volt);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.board.is-tripped {
  animation: shake 0.45s;
}

.board.is-tripped .led {
  background: #ff5a47;
  box-shadow: 0 0 0 3px rgba(255, 90, 71, 0.25), 0 0 12px #ff5a47;
  animation-duration: 0.5s;
}

.board.is-tripped .board__hint {
  display: none;
}

.board.is-tripped .board__trip {
  display: flex;
}

@keyframes shake {
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

/* Bandeau défilant */
.ticker {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.ticker__track {
  display: flex;
  flex: none;
  animation: ticker 38s linear infinite;
}

.ticker ul {
  display: flex;
  flex: none;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.15rem 0 1.15rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ticker li::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--volt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a1f18' d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E")
    center / 62% no-repeat;
}

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

/* Promesses chiffrées */
.promises {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.promises__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.promises__grid li {
  padding: 0.5rem clamp(1rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--line);
}

.promises__grid li:first-child {
  padding-left: 0;
  border-left: 0;
}

.promises__num {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.promises__num small {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dim);
}

.promises__txt {
  max-width: 15rem;
  margin-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Gabarit de section */
.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

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

.section__head {
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section h2,
.urgent h2 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 3.6vw + 0.6rem, 3.75rem);
  letter-spacing: -0.035em;
}

.section__lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.section__head--center .section__lead {
  margin-inline: auto;
}

/* Services — grille « bento » */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}

.card:not(.card--strip):hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.card:hover .card__icon {
  background: var(--volt);
  color: var(--ink);
  transform: rotate(-6deg);
}

.card h3 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.7rem);
  letter-spacing: -0.025em;
}

.card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.card__list li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.6rem;
  font-weight: 600;
}

.card__link::after {
  /* toute la carte est cliquable */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link:focus-visible {
  outline: none;
}

.card__link:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}

.card__link .icon {
  transition: transform 0.3s var(--ease);
}

.card:hover .card__link .icon {
  transform: translateX(5px);
}

.card--feature {
  grid-column: span 7;
  min-height: 25rem;
  border-color: transparent;
  background: linear-gradient(160deg, #14463a, #0b2a20);
  color: #f3f1ea;
}

[data-theme="dark"] .card--feature {
  border-color: rgba(242, 166, 90, 0.28);
}

.card--feature p {
  max-width: 30rem;
  color: #a9bab2;
}

.card--feature .card__icon,
.card--feature:hover .card__icon {
  background: var(--volt);
  color: var(--ink);
}

.card--feature .card__list li {
  border-color: rgba(255, 255, 255, 0.16);
}

.card--feature .card__link {
  color: var(--volt);
}

.card--feature .card__link:focus-visible::after {
  outline-color: var(--volt);
}

.tag {
  align-self: flex-start;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(242, 166, 90, 0.14);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__wave {
  position: absolute;
  top: 1.6rem;
  right: 0;
  width: 62%;
  height: 110px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}

.card__wave svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.card__wave path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.card__wave .wave-base {
  stroke: rgba(255, 255, 255, 0.12);
}

.card__wave .wave-pulse {
  stroke: var(--volt);
  stroke-dasharray: 0.22 0.78;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(242, 166, 90, 0.8));
  animation: pulse-run 3.2s linear infinite;
}

@keyframes pulse-run {
  to {
    stroke-dashoffset: 0;
  }
}

.card--wide {
  grid-column: span 5;
}

.card--strip {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chips li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  font-weight: 500;
}

/* Urgence (toujours sombre) */
.urgent {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background:
    radial-gradient(46rem 30rem at 12% 0%, rgba(242, 166, 90, 0.16), transparent 62%),
    var(--green);
  color: #f3f1ea;
}

.urgent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--volt) 0 14px, #0a1f18 14px 28px);
}

.urgent :focus-visible {
  outline-color: var(--volt);
}

.urgent__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.urgent__lead {
  max-width: 32rem;
  margin: 1.4rem 0 2.2rem;
  font-size: 1.15rem;
  color: #a9bab2;
}

.urgent__steps {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.urgent__steps h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.urgent__steps ol {
  margin-top: 1.25rem;
}

.urgent__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  color: #bccbc4;
  line-height: 1.5;
}

.urgent__steps li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.urgent__steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.urgent__steps strong {
  color: #f3f1ea;
  font-weight: 600;
}

.urgent__note {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 90, 71, 0.12);
  color: #ffc4bb;
  font-size: 0.93rem;
  line-height: 1.45;
}

.urgent__note .icon {
  margin-top: 0.1em;
}

.urgent__note a {
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Méthode */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps::after {
  background: linear-gradient(90deg, #e08a3c, var(--volt));
  box-shadow: 0 0 12px rgba(242, 166, 90, 0.7);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps.is-in::after {
  transform: scaleX(1);
}

.step {
  position: relative;
  z-index: 1;
}

.step__node {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.75rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 0 0 8px var(--bg);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
  transition-delay: calc(var(--i, 0) * 0.55s + 0.1s);
}

.step:nth-child(2) {
  --i: 1;
}

.step:nth-child(3) {
  --i: 2;
}

.step:nth-child(4) {
  --i: 3;
}

.steps.is-in .step__node {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--ink);
  box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px rgba(10, 31, 24, 0.08), 0 8px 24px -4px rgba(242, 166, 90, 0.6);
}

.step h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.step p {
  max-width: 20rem;
  margin-top: 0.65rem;
  color: var(--muted);
}

/* Engagements */
.why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.why__head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.why__head .btn {
  margin-top: 2rem;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.why__grid li {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.why__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--volt);
  color: var(--ink);
}

.why__grid h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.why__grid p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
}

/* Avis */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review blockquote::before {
  content: "“";
  display: block;
  height: 0.55em;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--volt);
  -webkit-text-stroke: 1px rgba(10, 31, 24, 0.14);
}

.review blockquote p {
  font-size: 1.12rem;
  line-height: 1.55;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 1.3;
}

.review figcaption strong {
  display: block;
  font-weight: 600;
}

.review figcaption small {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.review--accent {
  border-color: transparent;
  background: var(--volt);
  color: var(--ink);
}

.review--accent blockquote::before {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.review--accent figcaption small {
  color: rgba(10, 31, 24, 0.7);
}

.review--accent .review__avatar {
  background: var(--ink);
  color: var(--volt);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.faq__head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-size: clamp(1.15rem, 0.8vw + 1rem, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.faq__plus {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}

.faq__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq summary:hover .faq__plus {
  border-color: var(--text);
}

.faq details[open] .faq__plus {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--ink);
  transform: rotate(180deg);
}

.faq details[open] .faq__plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer {
  max-width: 40rem;
  padding: 0 0.25rem 1.6rem;
  color: var(--muted);
}

@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* Contact / devis */
.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50rem 32rem at 100% 100%, color-mix(in srgb, var(--volt) var(--glow), transparent), transparent 62%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.contact__list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.4;
}

.contact__list li > div {
  min-width: 0;
}

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.contact__list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__list a,
.contact__list p {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact__list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

.contact__list a:hover {
  text-decoration-color: var(--volt);
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form {
  display: grid;
  gap: 1.4rem;
}

.form[hidden] {
  display: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form legend,
.field label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.field__opt {
  margin-left: 0.3rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--field);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
  opacity: 1;
}

.field input:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, var(--text) 45%, transparent);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--volt) 55%, transparent);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--danger);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.choice:hover span {
  border-color: var(--text);
}

.choice input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  width: 100%;
}

.form__submit[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.form__legal {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding-block: clamp(1.5rem, 5vw, 4rem);
  outline: none;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
  animation: pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.form-success__icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.form-success h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.form-success p {
  max-width: 30rem;
  color: var(--muted);
}

/* Pied de page (toujours sombre) */
.footer {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: #06140f;
  color: #9db0a7;
  overflow: clip;
}

.footer :focus-visible {
  outline-color: var(--volt);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer__brand p {
  max-width: 22rem;
  margin-top: 1.25rem;
  font-size: 0.98rem;
}

.footer__col h2 {
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6c8279;
}

.footer__col li + li {
  margin-top: 0.15rem;
}

.footer__col a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 0.98rem;
  color: #d6ddd9;
  transition: color 0.2s;
}

.footer__col a:hover,
.footer__bottom a:hover {
  color: var(--volt);
}

.footer__giant {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 -0.12em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 19.5vw, 19rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.01) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #06140f;
  font-size: 0.9rem;
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Barre d'action mobile */
.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}

.dock.is-visible {
  transform: none;
  visibility: visible;
}

.dock .btn {
  flex: 1;
  min-height: 52px;
}

/* Page « mentions légales » */
.legal {
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) clamp(4rem, 8vw, 7rem);
}

.legal__inner {
  max-width: 46rem;
}

.legal h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.legal h2 {
  margin: 3rem 0 0.9rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p + p {
  margin-top: 0.9rem;
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
}

.legal dt {
  font-weight: 600;
}

.legal dd {
  margin: 0;
  color: var(--muted);
}

.todo {
  padding: 0.05em 0.4em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--volt) 45%, transparent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* ── 5. Adaptations ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .header__phone span {
    display: none;
  }

  .header__phone {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border: 1.5px solid var(--line);
  }

  .chip--a {
    left: -1rem;
  }

  .chip--b {
    right: -0.75rem;
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(2.5rem, 7vw, 4rem);
  }

  .hero__visual {
    justify-self: center;
    max-width: 520px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    grid-column: span 1;
  }

  .card--feature,
  .card--wide,
  .card:nth-child(5),
  .card--strip {
    grid-column: 1 / -1;
  }

  .card--feature {
    min-height: 0;
  }

  .urgent__grid,
  .why,
  .faq,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why__head,
  .faq__head {
    position: static;
  }

  .reviews {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-inline: auto;
  }

  .footer__top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .promises__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 0;
  }

  .promises__grid li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .steps::before,
  .steps::after {
    top: 0;
    bottom: 0;
    left: 29px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps::after {
    transform-origin: center top;
    transform: scaleY(0);
  }

  .steps.is-in::after {
    transform: scaleY(1);
  }

  .step {
    padding-left: 84px;
    min-height: 60px;
  }

  .step__node {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .step h3 {
    padding-top: 0.2rem;
  }

  .step p {
    max-width: 30rem;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .dock {
    display: flex;
  }

  .footer__bottom {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }

  .card--strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
    --radius: 24px;
  }

  .header__phone,
  .header__cta {
    display: none;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .hero__trust {
    flex-direction: column;
  }

  .chip {
    display: none;
  }

  .board {
    padding: 1rem;
    border-radius: 28px;
  }

  .board__value {
    font-size: 2.9rem;
  }

  .board__brand-name {
    display: none;
  }

  .board__meter {
    gap: 1rem;
    padding: 1rem;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .card__wave {
    opacity: 0.6;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .legal dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .legal dd {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 400px) {
  .logo__word {
    font-size: 1.15rem;
  }

  .logo__mark {
    width: 36px;
    height: 36px;
  }

  .header__actions {
    gap: 0.4rem;
  }
}

@media (max-width: 380px) {
  .board__meter {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .board__gauge {
    padding-bottom: 0;
    text-align: left;
  }

  .board__brand,
  .board__status,
  .board__label {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .breaker__icon {
    display: none;
  }

  .breaker {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ticker__track {
    animation: none;
  }

  .card__wave .wave-pulse {
    display: none;
  }
}

@media print {
  .header,
  .dock,
  .ticker,
  .hero__visual {
    display: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
