/* ============================================================
   264 REPROG — noir profond / violet électrique
   Display: Unbounded · Body: Outfit · Data: JetBrains Mono
   ============================================================ */

:root {
  --bg: #0B0A12;
  --bg-2: #0F0D1A;
  --surface: #151226;
  --surface-2: #1C1832;
  --line: rgba(167, 139, 250, .14);
  --line-strong: rgba(167, 139, 250, .32);
  --violet: #7C3AED;
  --violet-2: #A78BFA;
  --lilac: #C4B5FD;
  --text: #F0EEFA;
  --muted: #9A94B8;
  --good: #4ADE80;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 60px rgba(124, 58, 237, .22);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 58, 237, .5); }

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

a { color: inherit; }

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

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Typo ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }

h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet-2), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 { font-weight: 600; font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--violet-2);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  max-width: 58ch;
  margin-top: 1rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--violet), #9F67FF);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, .35);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 58, 237, .5); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--violet-2); background: rgba(124, 58, 237, .1); }

.btn-phone {
  background: rgba(124, 58, 237, .14);
  border-color: var(--line-strong);
  color: var(--lilac);
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: .6rem 1.1rem;
  white-space: nowrap;
}
.btn-phone:hover { background: rgba(124, 58, 237, .28); }

.btn-sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Barre de progression ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--lilac));
  box-shadow: 0 0 12px rgba(124, 58, 237, .8);
  z-index: 100;
  pointer-events: none;
}

/* ---------- Logo image ---------- */

.logo-img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, .35));
}
.logo-img-footer { height: 74px; }

.hero-logo {
  width: clamp(240px, 30vw, 360px);
  margin: 0 0 1.4rem -1.2rem;
  filter: drop-shadow(0 0 24px rgba(124, 58, 237, .45));
  animation: logo-float 5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 22px rgba(124, 58, 237, .38)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 0 34px rgba(124, 58, 237, .6)); }
}

/* ---------- Bandeau défilant ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: .85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i { color: var(--violet); font-style: normal; font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Bouton d'appel flottant ---------- */

.fab-phone {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--violet), #9F67FF);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 10px 34px rgba(124, 58, 237, .5);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.fab-phone.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fab-phone:hover { transform: translateY(-2px); }
.fab-phone svg { animation: fab-ring 2.6s ease-in-out infinite; }
@keyframes fab-ring {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  94% { transform: rotate(-8deg); }
  98% { transform: rotate(4deg); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 18, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .9rem 0;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  text-decoration: none;
  font-family: var(--font-display);
}
.logo-mark {
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(120deg, var(--violet-2), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-text {
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 20%, rgba(124, 58, 237, .20), transparent 65%),
    radial-gradient(40% 45% at 10% 85%, rgba(124, 58, 237, .10), transparent 70%),
    linear-gradient(rgba(167, 139, 250, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, .05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  mask-image: linear-gradient(#000 60%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-sub { color: var(--muted); margin-top: 1.3rem; max-width: 50ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-badges {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-badges li { display: flex; flex-direction: column; gap: .1rem; }
.hero-badges strong {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--lilac);
}
.hero-badges span { font-size: .82rem; color: var(--muted); }

/* Dyno card (signature) */

.dyno-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-glow);
  transition: transform .18s ease-out;
  will-change: transform;
}

.dyno-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
}
.dyno-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}
.dyno-legend { display: flex; gap: 1.1rem; font-size: .78rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: .4rem; }
.lg::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.lg-stock::before { background: rgba(154, 148, 184, .75); }
.lg-stage::before { background: linear-gradient(90deg, var(--violet), var(--lilac)); }

.dyno-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.2s cubic-bezier(.4, 0, .2, 1) forwards;
}
.dyno-stock { animation-delay: .25s; stroke-dasharray: 6 5; stroke-dashoffset: 0; opacity: 0; animation-name: fadein; animation-duration: 1.6s; }
.dyno-fill { opacity: 0; animation: fadein 1.4s ease 1.1s forwards; }
.dyno-dot { opacity: 0; animation: fadein .5s ease 2s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.dyno-chips { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(124, 58, 237, .12);
  color: var(--lilac);
}
.chip-fuel { color: var(--good); border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); }

.dyno-note { margin-top: .9rem; font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Prestations ---------- */

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

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .4);
}
.svc-card p { color: var(--muted); font-size: .9rem; flex: 1; }

.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.svc-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--lilac) !important;
  flex: none !important;
  white-space: nowrap;
}

.svc-tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--violet-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .22rem .7rem;
}

.svc-featured {
  background: linear-gradient(160deg, rgba(124, 58, 237, .2), var(--surface) 60%);
  border-color: var(--line-strong);
}

.svc-cta {
  justify-content: center;
  text-align: left;
  background: linear-gradient(150deg, var(--violet), #4C1D95);
  border: none;
}
.svc-cta p { color: rgba(255, 255, 255, .8); flex: 0; }
.svc-cta .btn { align-self: flex-start; background: #fff; color: var(--violet); box-shadow: none; margin-top: .4rem; }
.svc-cta .btn:hover { transform: translateY(-2px); }

/* ---------- Simulateur Stage 1 ---------- */

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.4rem;
  align-items: start;
}
.sim-grid > * { min-width: 0; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet-2);
  pointer-events: none;
  font-size: .8rem;
}
.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  padding: .8rem 2.4rem .8rem .9rem;
  cursor: pointer;
  transition: border-color .15s ease;
}
.select-wrap select:focus { outline: none; border-color: var(--violet-2); }
.select-wrap select:disabled { opacity: .45; cursor: not-allowed; }
.select-wrap select option { background: var(--surface-2); color: var(--text); }

.sim-empty {
  color: var(--muted);
  text-align: center;
  padding: 2.6rem 1rem;
  font-size: .92rem;
  line-height: 1.7;
}

.sim-vehicle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .02em;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 1px dashed var(--line);
}

.sim-stat { margin-bottom: 1.5rem; }
.sim-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .55rem;
}
.sim-gain {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--good);
  font-size: 1rem;
}

.sim-row {
  display: grid;
  grid-template-columns: 60px 1fr 82px;
  gap: .8rem;
  align-items: center;
  margin-bottom: .5rem;
}
.sim-row .sim-label { font-size: .76rem; color: var(--muted); }
.sim-row strong {
  font-family: var(--font-mono);
  font-size: .95rem;
  text-align: right;
  white-space: nowrap;
}
.sim-row-stage strong { color: var(--lilac); }

.sim-note { font-size: .76rem; color: var(--muted); margin: .9rem 0 1.2rem; }

.sim-actions { display: flex; flex-direction: column; gap: .6rem; }
.sim-actions .btn { width: 100%; }

/* ---------- Process ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--violet-2);
  letter-spacing: .1em;
}
.step h3 { margin: .7rem 0 .5rem; }
.step p { color: var(--muted); font-size: .9rem; }
.step a { color: var(--lilac); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* ---------- Panels (calculateur) ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.panel-glow {
  background: linear-gradient(165deg, rgba(124, 58, 237, .16), var(--surface) 55%);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.calc-grid > * { min-width: 0; }

/* Champs */

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.label-hint { font-weight: 400; color: var(--muted); font-size: .8rem; }

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
.input-wrap:focus-within { border-color: var(--violet-2); }
.input-wrap input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  padding: .75rem .9rem;
}
.input-wrap input:focus { outline: none; }
.input-wrap .unit {
  padding-right: .9rem;
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  margin-top: .7rem;
  accent-color: var(--violet);
  cursor: pointer;
}

.cp-row { display: flex; gap: .6rem; }
.cp-row .input-wrap { flex: 1; }
.cp-row .btn { flex: none; }

.field-status { font-size: .82rem; color: var(--muted); margin-top: .5rem; min-height: 1.2em; }
.field-status.is-error { color: #F87171; }
.field-status.is-ok { color: var(--good); }

/* Liste stations */

.station-list {
  margin-top: .7rem;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.station {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  padding: .8rem .9rem;
  cursor: pointer;
  transition: background .12s ease;
}
.station:last-child { border-bottom: none; }
.station:hover { background: rgba(124, 58, 237, .1); }
.station.is-selected { background: rgba(124, 58, 237, .2); }
.station[disabled] { opacity: .45; cursor: not-allowed; }

.station-name { font-weight: 600; font-size: .88rem; }
.station-addr { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.station-prices {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}
.station-prices .p-e85 { color: var(--good); font-weight: 600; }

.manual-prices { margin-top: .4rem; }
.manual-prices summary {
  cursor: pointer;
  color: var(--violet-2);
  font-size: .86rem;
  font-weight: 500;
  padding: .3rem 0;
}
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .8rem; }
.manual-grid .field { margin-bottom: 0; }

.calc-src { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

/* Résultats calculateur */

.fuel-bars { display: flex; flex-direction: column; gap: 1.2rem; }

.fuel-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .45rem;
}
.fuel-bar-head small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.fuel-bar-head strong { font-family: var(--font-mono); font-size: 1.05rem; }

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .7s cubic-bezier(.4, 0, .2, 1);
}
.bar-sp98 { background: linear-gradient(90deg, #6D6683, #9A94B8); }
.bar-e85 { background: linear-gradient(90deg, var(--violet), var(--lilac)); }

.fuel-meta { font-size: .76rem; color: var(--muted); margin-top: .35rem; }

.saving-hero {
  text-align: center;
  margin: 1.7rem 0;
  padding: 1.4rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, .07);
  border: 1px solid rgba(74, 222, 128, .22);
}
.saving-label { font-size: .82rem; color: var(--muted); }
.saving-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--good);
  line-height: 1.2;
}
.saving-sub { font-size: .88rem; color: var(--muted); }

.amort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.amort-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.amort-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--lilac);
}
.amort-label { font-size: .76rem; color: var(--muted); margin-top: .3rem; }

/* Avantages E85 */

.e85-perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.e85-perks li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.e85-perks strong { font-family: var(--font-mono); color: var(--lilac); font-size: .95rem; }
.e85-perks span { color: var(--muted); font-size: .84rem; }

/* ---------- Garanties ---------- */

.assure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.assure { padding: 1.2rem 1.3rem; border-left: 2px solid var(--violet); }
.assure h3 { margin-bottom: .5rem; font-size: 1rem; }
.assure p { color: var(--muted); font-size: .88rem; }

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact-inner { max-width: 640px; }
.contact .section-sub { margin-inline: auto; }

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding: 1.1rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--violet), #9F67FF);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 14px 44px rgba(124, 58, 237, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.phone-big:hover { transform: translateY(-3px); box-shadow: 0 20px 54px rgba(124, 58, 237, .6); }

.contact-hours { margin-top: 1.1rem; color: var(--muted); font-size: .88rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.6rem 0 1.6rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-tag { color: var(--muted); font-size: .85rem; margin-top: .6rem; max-width: 34ch; }
.footer-grid nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-grid nav a:hover { color: var(--text); }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.footer-legal p { color: var(--muted); font-size: .74rem; max-width: 90ch; }

/* ============================================================
   CONFIGURATEUR
   ============================================================ */

.config-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }

.config-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3rem); }

.config-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.6rem;
  align-items: start;
}

.config-section { margin-bottom: 2.6rem; }

.config-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: 1.2rem;
}
.config-section-title small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
}
.csn {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--violet-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: center;
}

/* Packs */

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.pack-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.1rem;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.pack-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pack-card.is-active {
  border-color: var(--violet-2);
  background: linear-gradient(160deg, rgba(124, 58, 237, .24), var(--surface) 65%);
  box-shadow: 0 0 0 1px var(--violet-2), var(--shadow-glow);
}
.pack-card.is-active::after {
  content: "✓";
  position: absolute;
  top: .8rem; right: .9rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-right: 1.4rem; }
.pack-name { font-weight: 700; font-size: .98rem; }
.pack-price { font-family: var(--font-mono); font-weight: 700; color: var(--lilac); white-space: nowrap; }
.pack-desc { color: var(--muted); font-size: .82rem; flex: 1; }
.pack-inc { display: flex; flex-wrap: wrap; gap: .35rem; }
.pack-inc span {
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, .14);
  border: 1px solid var(--line);
  color: var(--violet-2);
}

.pack-none { border-style: dashed; justify-content: center; align-items: center; text-align: center; }
.pack-none .pack-name { color: var(--muted); font-weight: 500; }
.pack-none.is-active { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-strong); border-color: var(--line-strong); }
.pack-none.is-active::after { background: var(--muted); }

/* Stages */

.stages-list { display: flex; flex-direction: column; gap: .55rem; }

.stage-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.stage-row:hover { border-color: var(--line-strong); }
.stage-row.is-active {
  border-color: var(--violet-2);
  background: linear-gradient(120deg, rgba(124, 58, 237, .2), var(--surface) 70%);
}

.stage-row input { accent-color: var(--violet); width: 17px; height: 17px; flex: none; cursor: pointer; }
.stage-info { flex: 1; min-width: 0; }
.stage-name { font-weight: 600; font-size: .95rem; }
.stage-desc { color: var(--muted); font-size: .8rem; }
.stage-price { font-family: var(--font-mono); font-weight: 700; color: var(--lilac); white-space: nowrap; }

/* Options */

.opt-category { margin-bottom: 1.6rem; }
.opt-cat-title {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.opt-cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

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

.opt-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.opt-card:hover { border-color: var(--line-strong); }
.opt-card.is-active {
  border-color: var(--violet-2);
  background: linear-gradient(120deg, rgba(124, 58, 237, .18), var(--surface) 75%);
}
.opt-card input { accent-color: var(--violet); width: 16px; height: 16px; margin-top: .2rem; flex: none; cursor: pointer; }

.opt-info { flex: 1; min-width: 0; }
.opt-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.opt-name { font-weight: 600; font-size: .88rem; }
.opt-price { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; color: var(--lilac); white-space: nowrap; }
.opt-price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: .35rem; }
.opt-desc { color: var(--muted); font-size: .77rem; margin-top: .15rem; }

/* Récap */

.config-summary { position: sticky; top: 84px; }

.summary-card {
  background: linear-gradient(170deg, rgba(124, 58, 237, .16), var(--surface) 50%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-glow);
}
.summary-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 1.1rem;
}

.summary-lines { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.2rem; }
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
  padding-bottom: .55rem;
  border-bottom: 1px dashed var(--line);
}
.summary-lines .line-price { font-family: var(--font-mono); font-weight: 600; color: var(--lilac); white-space: nowrap; }
.summary-lines .line-discount { color: var(--good); }
.summary-lines .line-discount .line-price { color: var(--good); }
.summary-lines .line-note { color: var(--muted); font-size: .74rem; display: block; }
.summary-empty { color: var(--muted); font-size: .85rem; border-bottom: none !important; }

.summary-usb {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  cursor: pointer;
  margin-bottom: .4rem;
  transition: border-color .15s ease, background .15s ease;
}
.summary-usb:hover { border-color: var(--violet-2); }
.summary-usb:has(input:checked) {
  border-style: solid;
  border-color: var(--violet-2);
  background: rgba(124, 58, 237, .12);
}
.summary-usb input { accent-color: var(--violet); width: 16px; height: 16px; margin-top: .15rem; flex: none; cursor: pointer; }
.usb-info { flex: 1; min-width: 0; }
.usb-name { display: block; font-weight: 600; font-size: .86rem; }
.usb-desc { display: block; color: var(--muted); font-size: .73rem; }
.usb-price { font-family: var(--font-mono); font-weight: 700; font-size: .88rem; color: var(--lilac); white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .9rem 0 1.1rem;
  font-weight: 600;
}
.summary-total strong {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(100deg, var(--violet-2), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.summary-flex {
  font-size: .78rem;
  color: var(--good);
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .22);
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  margin-bottom: 1rem;
}

.summary-card .btn-block { margin-bottom: .6rem; }
.summary-note { font-size: .72rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .svc-grid, .steps, .e85-perks, .assure-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid, .sim-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .dyno-card { max-width: 620px; }
  .config-layout { grid-template-columns: 1fr; }
  .config-summary { position: static; }
  .packs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0F0D1A;
    border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.2rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-phone { margin-left: auto; }
  .header-inner { gap: .8rem; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }

  .svc-grid, .steps, .e85-perks, .assure-grid,
  .packs-grid, .opt-grid, .manual-grid, .amort-grid { grid-template-columns: 1fr; }

  .hero-badges { gap: 1.2rem; flex-wrap: wrap; }
  .cp-row { flex-direction: column; }
  .cp-row .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dyno-line, .dyno-fill, .dyno-dot { stroke-dashoffset: 0; opacity: 1; }
  .marquee-track, .hero-logo, .fab-phone svg { animation: none; }
}
