/* ==========================================================================
   LETEC FINDER — Design system "Salle de contrôle nocturne"
   Fond noir profond, accent jaune TEC unique, typographie expressive.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-soft: #0e0e10;
  --card: #121214;
  --card-hover: #17171a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #ffcc07;
  --accent-hover: #ffd83d;
  --accent-ink: #171204;
  --accent-soft: rgba(255, 204, 7, 0.1);

  --text: #f6f6f4;
  --muted: #a3a3ad;
  --muted-2: #6e6e78;

  --green: #4ade80;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-accent: 0 4px 18px rgba(255, 204, 7, 0.18);
}

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

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

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 85% -5%, rgba(255, 204, 7, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 45% at 8% 12%, rgba(255, 255, 255, 0.025), transparent 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

/* ---------- Utilitaires ---------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - 3rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-s);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid rgba(255, 204, 7, 0.35);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

.eyebrow.center {
  display: table;
  margin-inline: auto;
}

/* ---------- Typographie ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-lead,
.page-lead,
.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.25s var(--ease-out);
}

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

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 204, 7, 0.24);
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

.brand img {
  height: 30px;
  width: auto;
  transition: opacity 0.2s;
}

.brand:hover img {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Navigation centrée dans le header (desktop) */
@media (min-width: 861px) {
  .main-nav ul {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.main-nav ul a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 100px;
  transition: color 0.2s, background-color 0.2s;
}

.main-nav ul a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

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

.main-nav ul a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta {
  font-size: 14px;
  padding: 10px 20px;
}

/* Burger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.nav-toggle span:nth-child(1) {
  top: 17px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 7vh, 80px));
  padding-bottom: clamp(48px, 8vh, 90px);
  /* clip horizontal uniquement : les suggestions de recherche
     doivent pouvoir dépasser sous le hero */
  overflow-x: clip;
}

/* ---------- Carte en fond, pleine zone droite ---------- */
.hero-map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(64%, 980px);
  background: url("../img/pretasuivre.png") center / cover no-repeat;
  pointer-events: none;
}

.hero-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 11, 0.55) 30%, rgba(10, 10, 11, 0.15) 60%, rgba(10, 10, 11, 0.4) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.75) 0%, rgba(10, 10, 11, 0.05) 30%, rgba(10, 10, 11, 0.05) 55%, var(--bg) 100%);
}

.hero-map-controls {
  position: absolute;
  right: 20px;
  top: 44%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.hero-map-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 23, 0.85);
  color: var(--muted);
  cursor: default;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vh, 32px);
  font-size: 13.5px;
  color: var(--muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 14, 0.75);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.live-count strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  margin-bottom: clamp(18px, 3vh, 26px);
}

.hero-lead {
  margin-bottom: clamp(26px, 4vh, 38px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Marqueurs bus (injectés en JS) */
.bus-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: marker-bob 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
  z-index: 1;
}

@keyframes marker-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 7px)); }
}

.bus-plate {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: rgba(12, 12, 14, 0.9);
  border: 1px solid var(--border-strong);
  padding: 3px 6px;
  border-radius: 5px;
}

.bus-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid rgba(12, 12, 14, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.bus-pin svg {
  width: 16px;
  height: 16px;
}

.bus-marker.is-focus .bus-pin {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow:
    0 0 0 7px rgba(255, 204, 7, 0.16),
    0 0 34px 6px rgba(255, 204, 7, 0.4);
  animation: focus-glow 2.6s ease-in-out infinite;
}

@keyframes focus-glow {
  0%, 100% { box-shadow: 0 0 0 7px rgba(255, 204, 7, 0.16), 0 0 34px 6px rgba(255, 204, 7, 0.4); }
  50% { box-shadow: 0 0 0 11px rgba(255, 204, 7, 0.08), 0 0 44px 10px rgba(255, 204, 7, 0.55); }
}

/* ---------- Recherche ---------- */
.search-panel {
  max-width: 820px;
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 5px 5px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-form:focus-within {
  border-color: rgba(255, 204, 7, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 204, 7, 0.08);
}

.search-icon {
  flex-shrink: 0;
  color: var(--muted-2);
}

.search-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 15.5px;
  padding: 9px 0;
}

.search-form input::placeholder {
  color: var(--muted-2);
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-submit {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}

.search-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding-left: 8px;
}

.search-popular > span {
  font-size: 13px;
  color: var(--muted-2);
}

.search-popular ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-popular ul a {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}

.search-popular ul a:hover {
  color: var(--accent);
  border-color: rgba(255, 204, 7, 0.4);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* ---------- Suggestions de lignes ---------- */
.search-field {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 8px;
  max-height: 340px;
  overflow-y: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-strong);
  background: #101013;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.search-suggest[hidden] {
  display: none;
}

.search-suggest li[role="option"] {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.search-suggest li[role="option"]:hover,
.search-suggest li[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.06);
}

.sug-line {
  flex-shrink: 0;
  min-width: 46px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
}

.sug-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sug-agency {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

.sug-group {
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  cursor: default;
}

.sug-stop {
  flex-shrink: 0;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(77, 163, 255, 0.4);
  background: rgba(77, 163, 255, 0.12);
  color: #4da3ff;
}

.sug-buses {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sug-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.sug-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.sug-act svg {
  flex-shrink: 0;
}

.sug-act:hover {
  color: #fff;
  background: #2f7fe0;
  border-color: #2f7fe0;
}

.sug-act-accent {
  color: #4da3ff;
  border-color: rgba(77, 163, 255, 0.45);
  background: rgba(77, 163, 255, 0.12);
}

@media (max-width: 700px) {
  .search-suggest .sug-buses {
    display: none;
  }
}

.sug-buses i {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.sug-more {
  font-size: 11px;
  color: var(--muted-2);
}

.sug-msg {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--muted-2);
  cursor: default;
}

/* ==========================================================================
   FONCTIONNALITÉS / MOCKUP TÉLÉPHONE
   ========================================================================== */
.features {
  padding-block: clamp(36px, 6vh, 76px) clamp(56px, 9vh, 110px);
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.features h2,
.why h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  margin-block: 18px 16px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(26px, 4vh, 40px);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease-out);
}

.feature-list li:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  transform: translateX(6px);
}

.feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 204, 7, 0.22);
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 2px;
}

.feature-list li strong + * {
  color: var(--muted);
}

.feature-list span:last-child {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Téléphone ---------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(320px, 84vw);
  border-radius: 52px;
  padding: 10px;
  background: linear-gradient(160deg, #2c2c30, #101012 55%, #232327);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.8);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease-out);
}

.phone:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 5;
}

.phone-screen {
  aspect-ratio: 1 / 1.78;
  border-radius: 42px;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==========================================================================
   STATS — "Le réseau en chiffres"
   ========================================================================== */
.stats {
  padding-block: clamp(10px, 2vh, 20px) clamp(64px, 10vh, 120px);
}

.stats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.stats-head h2 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem);
  margin-top: 16px;
}

.stats-refresh {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 13px;
  padding-bottom: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: 16px;
  align-items: stretch;
}

/* ---------- Carte principale : bus + agences ---------- */
.stat-hero {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(255, 204, 7, 0.08), transparent 55%),
    var(--card);
}

.stat-hero header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-hero-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.stat-hero-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 22px;
}

.stats-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.agency-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.agency-list li,
.endpoint-list li {
  display: grid;
  grid-template-columns: minmax(96px, 34%) 1fr auto;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.row-label {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.row-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 204, 7, 0.55), var(--accent));
  transition: width 0.8s var(--ease-out);
}

.row-value {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
  text-align: right;
}

/* ---------- Colonne droite : KPIs + endpoints ---------- */
.stats-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi {
  padding: 20px 22px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.kpi:hover {
  border-color: rgba(255, 204, 7, 0.3);
  transform: translateY(-3px);
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  color: var(--accent);
  border: 1px solid rgba(255, 204, 7, 0.35);
  background: rgba(255, 204, 7, 0.05);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.stat-endpoints {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
}

.stat-endpoints header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-endpoints h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 13px;
  flex: 1;
}

.endpoint-list .row-value {
  min-width: 5.4em;
}


/* ==========================================================================
   POURQUOI
   ========================================================================== */
.why {
  padding-block: clamp(30px, 5vh, 60px) clamp(64px, 10vh, 120px);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.why-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background-color 0.35s;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 7, 0.35);
  background: var(--card-hover);
}

.why-card .feature-icon {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.why-card h3 {
  grid-column: 2;
  font-size: 16px;
  margin-block: 2px 4px;
}

.why-card p {
  grid-column: 2;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ==========================================================================
   MENTIONS
   ========================================================================== */
.mentions {
  padding-block: clamp(20px, 4vh, 50px) clamp(64px, 10vh, 120px);
}

.mentions-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.mention {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.mention:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.mention-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 74px;
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px;
  overflow: hidden;
}

.mention-logo img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.mention figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding-block: 0 clamp(64px, 10vh, 120px);
}

.cta-panel {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 90px) clamp(24px, 5vw, 60px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.35) 50%, rgba(10, 10, 11, 0.7) 100%),
    url("../img/pretasuivre.png") center / cover no-repeat;
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.cta-panel p {
  color: #c9c9d1;
  max-width: 52ch;
  margin: 0 auto 30px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   SOUS-PAGES
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 100px));
  padding-bottom: clamp(40px, 7vh, 80px);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem);
  margin-block: 20px 18px;
}

/* ---------- À propos ---------- */
.about-block {
  padding-bottom: clamp(56px, 9vh, 110px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem);
  margin-bottom: 22px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 58ch;
}

.about-card {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--accent);
}

.about-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: var(--text);
}

/* ---------- Soutien ---------- */
.support {
  padding-bottom: clamp(56px, 9vh, 110px);
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255, 204, 7, 0.07), transparent 60%),
    linear-gradient(180deg, #131316, #0d0d0f);
}

.support-content h2 {
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem);
  margin-block: 18px 16px;
}

.support-content p {
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 56ch;
}

.support-content strong {
  color: var(--text);
}

.support-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.support-figure {
  padding: 22px 20px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.support-figure strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  color: var(--accent);
}

.support-figure span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--card);
  transition: border-color 0.25s, background-color 0.25s;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: rgba(255, 204, 7, 0.35);
  background: var(--card-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted-2);
  transition: color 0.25s;
}

.faq-item[open] .faq-num {
  color: var(--accent);
}

.faq-question {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
}

.faq-chevron {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.35s var(--ease-out), color 0.25s, border-color 0.25s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
  border-color: rgba(255, 204, 7, 0.4);
}

.faq-answer {
  padding: 0 22px 24px 57px;
  color: var(--muted);
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--accent);
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-answer strong {
  color: var(--text);
}

.faq-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius-m);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-section {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 26px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
}

.contact-card h3 {
  font-size: 17px;
  margin-block: 16px 6px;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-card > a,
.contact-socials a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}

.contact-card > a:hover,
.contact-socials a:hover {
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 18px;
}

.contact-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 204, 7, 0.25);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 13.5px;
}

.contact-note svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.contact-form {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-field .optional {
  color: var(--muted-2);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-2);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255, 204, 7, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 204, 7, 0.08);
}

.form-status {
  margin-top: 16px;
  font-size: 14.5px;
  min-height: 1.4em;
}

.form-status.is-success,
.form-status.is-error {
  animation: statusIn 0.45s var(--ease-out) both;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: #f87171;
}

/* ---------- Bouton d'envoi : états animés ---------- */
.contact-btn {
  position: relative;
  min-width: 232px;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.contact-btn:disabled {
  cursor: default;
  transform: none !important;
}

.contact-btn .btn-icon-spinner,
.contact-btn .btn-icon-check {
  display: none;
}

/* — Envoi en cours — */
.contact-btn.is-loading .btn-icon-arrow {
  display: none;
}

.contact-btn.is-loading .btn-icon-spinner {
  display: block;
  animation: btnSpin 0.7s linear infinite;
}

.contact-btn.is-loading {
  animation: btnPulse 1.3s ease-in-out infinite;
}

/* — Succès — */
.contact-btn.is-success {
  background: var(--green);
  color: #06230f;
  box-shadow: 0 6px 22px rgba(74, 222, 128, 0.28);
}

.contact-btn.is-success .btn-icon-arrow {
  display: none;
}

.contact-btn.is-success .btn-icon-check {
  display: block;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.5s var(--ease-out) 0.1s forwards;
}

/* — Erreur — */
.contact-btn.is-error {
  animation: formShake 0.5s var(--ease-out);
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(255, 204, 7, 0.16); }
  50% { box-shadow: 0 4px 30px rgba(255, 204, 7, 0.38); }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes formShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-btn.is-loading,
  .contact-btn.is-error,
  .form-status.is-success,
  .form-status.is-error {
    animation: none;
  }

  .contact-btn.is-success .btn-icon-check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ---------- Prose (pages légales) ---------- */
.prose-section {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.prose {
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--card);
}

.prose h2 {
  font-size: 21px;
  margin: 30px 0 12px;
  color: var(--accent);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose a {
  color: var(--accent);
}

.prose a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080a;
  padding-top: clamp(48px, 7vh, 76px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vh, 60px);
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), background-color 0.2s;
}

.footer-social a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

.footer-legal {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.footer-love span[aria-hidden] {
  color: #e4032d;
}

.studio-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
  transition: color 0.25s;
}

.studio-credit strong {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s;
}

.studio-star {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: var(--accent);
  transition: transform 0.5s var(--ease-out), filter 0.3s;
}

.studio-credit:hover {
  color: var(--muted);
}

.studio-credit:hover strong {
  color: var(--accent);
}

.studio-credit:hover .studio-star {
  transform: rotate(180deg) scale(1.2);
  filter: drop-shadow(0 0 6px rgba(255, 204, 7, 0.7));
}

/* ==========================================================================
   ANIMATIONS D'ENTRÉE
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.d-1 { transition-delay: 0.08s; }
.reveal.d-2 { transition-delay: 0.16s; }
.reveal.d-3 { transition-delay: 0.24s; }
.reveal.d-4 { transition-delay: 0.32s; }

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Sans JS, tout reste visible */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  /* Contenu d'abord, puis la map en carte arrondie premium */
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + clamp(24px, 4.5vh, 44px));
    padding-bottom: clamp(44px, 7vh, 72px);
  }

  .hero-inner {
    order: 1;
  }

  .hero-content {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-map {
    order: 2;
    position: relative;
    inset: auto;
    width: min(100% - 3rem, 640px);
    height: 320px;
    margin: clamp(32px, 5vh, 52px) auto 0;
    border-radius: var(--radius-l);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.5),
      0 8px 36px rgba(255, 204, 7, 0.07);
  }

  .hero-map::before {
    background:
      linear-gradient(180deg, rgba(10, 10, 11, 0.3) 0%, transparent 30%, transparent 72%, rgba(10, 10, 11, 0.45) 100%);
  }

  .search-panel {
    margin-top: clamp(28px, 5vh, 44px);
  }

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

  .phone-wrap {
    order: 2;
  }

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

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

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

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

  .contact-grid,
  .about-grid,
  .support-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(8, 8, 10, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .main-nav ul a {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    padding: 10px 24px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }

  body.nav-open .main-nav ul a {
    opacity: 1;
    transform: none;
  }

  body.nav-open .main-nav ul li:nth-child(1) a { transition-delay: 0.05s; }
  body.nav-open .main-nav ul li:nth-child(2) a { transition-delay: 0.1s; }
  body.nav-open .main-nav ul li:nth-child(3) a { transition-delay: 0.15s; }
  body.nav-open .main-nav ul li:nth-child(4) a { transition-delay: 0.2s; }
  body.nav-open .main-nav ul li:nth-child(5) a { transition-delay: 0.25s; }

  .nav-cta {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease-out) 0.3s, transform 0.4s var(--ease-out) 0.3s;
  }

  body.nav-open .nav-cta {
    opacity: 1;
    transform: none;
  }

  .nav-toggle {
    display: block;
  }
}

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

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    padding-inline: 14px;
    white-space: nowrap;
  }

  .live-badge {
    flex-direction: column;
    gap: 10px;
  }

  .hero-map {
    height: 280px;
  }

  .search-popular {
    padding-left: 2px;
  }

  /* KPI compactes en rangée : icône à gauche, valeur + libellé à droite */
  .stats-kpis {
    grid-template-columns: 1fr;
  }

  .kpi {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 14px 16px;
  }

  .kpi-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
    width: 40px;
    height: 40px;
  }

  .kpi-value {
    font-size: 1.25rem;
  }

  .kpi-label {
    font-size: 12.5px;
  }

  .agency-list li,
  .endpoint-list li {
    grid-template-columns: minmax(80px, 38%) 1fr auto;
    gap: 10px;
    font-size: 12.5px;
  }

  .stat-hero-value {
    margin-bottom: 16px;
  }

  .why-cards {
    grid-template-columns: 1fr;
  }

  .mentions-row {
    grid-template-columns: 1fr 1fr;
  }

  .mention:last-child {
    grid-column: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .faq-answer {
    padding-left: 22px;
  }
}

/* ==========================================================================
   ACCESSIBILITÉ — mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
