/* =========================================================
   RIDER MONTRÉAL — COUCHE « ATELIER CARBONE » (2026)
   ---------------------------------------------------------
   Couche 100 % visuelle, chargée en dernier après style.css,
   identite.css, /api/theme.css, racing.css et brand-2026.css.

   Aucune structure HTML, aucun identifiant, aucun attribut de
   données et aucun gestionnaire JS n’est modifié : seules des
   propriétés de présentation sont redéfinies (couleurs,
   matières, ombres, typographie, transitions, espacements).

   Direction artistique : noir carbone haute performance,
   rouge néon, acier brossé, fibre de carbone, lumière froide
   de studio et halos rouges.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;1,600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ---------- Matières ---------- */
  --carbon-0: #04050a;
  --carbon-1: #070910;
  --carbon-2: #0b0e16;
  --carbon-3: #10141d;
  --carbon-4: #161b26;

  --bg: var(--carbon-0);
  --bg-2: var(--carbon-1);
  --surface: var(--carbon-2);
  --surface-2: var(--carbon-3);

  --line: #1b202b;
  --line-strong: #2a3140;

  --text: #f4f7fb;
  --muted: #8b94a4;
  --steel: #c7cdd9;
  --steel-dim: #9aa3b2;

  /* L’accent historique s’appelle « green » dans le code : on ne
     renomme rien, on ajuste seulement sa teinte (rouge néon). */
  --green: #ff1e3c;
  --accent: #ff1e3c;
  --accent-rgb: 255, 30, 60;
  --accent-deep: #8e0016;
  --accent-soft: rgba(255, 30, 60, 0.1);
  --green-soft: rgba(255, 30, 60, 0.1);
  --green-glow: rgba(255, 30, 60, 0.32);
  --alert: #ff7a1a;
  --warning: #ff7a1a;
  --danger: #ff1e3c;

  /* ---------- Formes et profondeur ---------- */
  --radius: 12px;
  --radius-sm: 8px;
  --cut: 16px;
  --shadow: 0 40px 90px -50px rgba(0, 0, 0, 1);
  --glow-neon: 0 0 34px rgba(255, 30, 60, 0.32);
  --ease-out: cubic-bezier(0.22, 0.9, 0.24, 1);

  /* ---------- Typographie ---------- */
  --font-body: 'Manrope', 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ---------- Surfaces techniques ---------- */
  --carbon-weave:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 4px);

  --metal-panel:
    linear-gradient(152deg, rgba(24, 29, 40, 0.96) 0%, rgba(12, 15, 22, 0.98) 46%, rgba(6, 8, 13, 1) 100%);
  --panel: var(--metal-panel);
  --metal-edge: #2f3746;

  --glass: rgba(10, 13, 19, 0.72);
  --glass-line: rgba(255, 255, 255, 0.07);
}

/* ---------- Base ---------- */

html {
  background: var(--carbon-0);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--carbon-0);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Lumière de studio : deux halos rouges + un bleu froid très discret
   pour éviter un noir « plat ». */
body::before {
  background:
    radial-gradient(1200px 640px at 84% -14%, rgba(255, 30, 60, 0.2), transparent 60%),
    radial-gradient(880px 540px at -10% 22%, rgba(255, 30, 60, 0.08), transparent 72%),
    radial-gradient(900px 600px at 50% 118%, rgba(142, 0, 22, 0.16), transparent 70%),
    radial-gradient(700px 500px at 92% 78%, rgba(72, 120, 255, 0.05), transparent 70%),
    linear-gradient(180deg, #070910 0%, #05060a 52%, #04050a 100%);
}

/* Fibre de carbone + trame technique très légère sur tout le fond. */
body::after {
  opacity: 0.6;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.42) 0 1px, transparent 1px 5px),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    repeating-linear-gradient(116deg, transparent 0 156px, rgba(255, 30, 60, 0.05) 156px 157px);
  background-size: 10px 10px, 10px 10px, 72px 72px, 72px 72px, auto;
  mask-image: radial-gradient(ellipse at 50% 4%, #000 12%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 4%, #000 12%, transparent 82%);
}

/* Grain photographique : donne de la matière aux aplats noirs. */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

::selection {
  background: var(--accent);
  color: #05060a;
}

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

/* Barre de défilement discrète, façon cockpit. */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a3140 #05060a;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #05060a;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #05060a;
  border-radius: 999px;
  background: linear-gradient(180deg, #333b4b, #161b26);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff2b43, #8e0016);
}

/* Fines rayures d’acier brossé, réutilisables. */
.rm-brushed {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 3px
  );
}

/* ---------- Typographie ---------- */

h1,
h2,
h3 {
  letter-spacing: 0.004em;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 800;
}

h3 {
  letter-spacing: 0.012em;
}

p {
  color: inherit;
}

.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(255, 30, 60, 0.35);
}

.eyebrow::before {
  background: linear-gradient(90deg, var(--accent), rgba(255, 30, 60, 0.15));
  box-shadow: 0 0 14px rgba(255, 30, 60, 0.7);
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(255, 30, 60, 0.32);
}

.section-head h2::after {
  background: linear-gradient(90deg, var(--accent), rgba(255, 30, 60, 0));
  box-shadow: 0 0 22px rgba(255, 30, 60, 0.55);
}

.page-head h1::after {
  background: linear-gradient(90deg, var(--accent), rgba(255, 30, 60, 0));
  box-shadow: 0 0 22px rgba(255, 30, 60, 0.5);
}

.link-arrow {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease, letter-spacing 0.25s ease;
}

.link-arrow:hover {
  letter-spacing: 0.19em;
}

/* ---------- En-tête ---------- */

.site-header {
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.96) 0%, rgba(6, 8, 12, 0.86) 70%, rgba(6, 8, 12, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 3px);
  border-bottom: 1px solid rgba(255, 30, 60, 0.22);
  box-shadow:
    0 22px 46px -34px rgba(0, 0, 0, 0.95),
    inset 0 -1px 0 rgba(255, 30, 60, 0.1);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.site-header::before {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 30, 60, 0.7) 16%,
    #ff7a68 48%,
    rgba(255, 30, 60, 0.7) 82%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(255, 30, 60, 0.55);
  opacity: 0.95;
}

.brand-logo {
  filter:
    drop-shadow(0 0 16px rgba(255, 30, 60, 0.42))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  transition: filter 0.3s ease, transform 0.3s var(--ease-out);
}

.brand:hover .brand-logo {
  filter:
    drop-shadow(0 0 24px rgba(255, 30, 60, 0.7))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
  transform: scale(1.04);
}

.brand-text {
  color: var(--text);
  text-shadow: 0 0 26px rgba(255, 30, 60, 0.18);
}

.brand-text span {
  color: var(--steel-dim);
  letter-spacing: 0.46em;
}

@media (min-width: 901px) {
  .site-nav a.nav-link {
    position: relative;
    color: #9ba4b3;
    transition: color 0.2s ease, text-shadow 0.25s ease;
  }

  .site-nav a.nav-link::after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), #ff8a76);
    box-shadow: 0 0 14px rgba(255, 30, 60, 0.75);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s var(--ease-out);
  }

  .site-nav a.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 30, 60, 0.35);
  }

  .site-nav a.nav-link:hover::after {
    transform: scaleX(1);
  }

  .site-nav a.nav-link[aria-current='page'] {
    color: #fff;
  }

  .site-nav a.nav-link[aria-current='page']::after {
    display: block;
    left: 11px;
    right: 11px;
    bottom: 5px;
    transform: scaleX(1);
  }

  /* La barre de navigation ne doit jamais être coupée : les liens
     restent sur une seule ligne, et défilent horizontalement si
     l’écran est trop étroit. Le bloc de connexion reste épinglé. */
  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a.nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-auth {
    flex: 0 0 auto;
    position: sticky;
    right: 0;
    background: linear-gradient(90deg, rgba(6, 8, 12, 0), rgba(6, 8, 12, 0.96) 26%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .nav-auth .btn-small {
    letter-spacing: 0.1em;
  }
}

/* Écrans de bureau confortables : tout le menu tient sur une ligne. */
@media (min-width: 1280px) {
  .site-nav a.nav-link {
    padding: 12px 6px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .site-nav a.nav-link::after,
  .site-nav a.nav-link[aria-current='page']::after {
    left: 6px;
    right: 6px;
  }

  .nav-auth {
    margin-left: 6px;
    padding-left: 10px;
  }

  .nav-auth .btn-small {
    padding: 9px 11px;
    font-size: 0.74rem;
  }
}

.nav-user {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 30, 60, 0.45);
}

.nav-toggle {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(158deg, rgba(26, 31, 42, 0.95), rgba(8, 10, 15, 0.98));
  color: var(--steel);
  letter-spacing: 0.18em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 30, 60, 0.65);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 22px rgba(255, 30, 60, 0.3);
}

.nav-toggle .bars span {
  background: linear-gradient(90deg, var(--accent), #ff8a76);
  box-shadow: 0 0 10px rgba(255, 30, 60, 0.7);
}

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

.btn {
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.65s var(--ease-out);
  opacity: 0.9;
}

.btn:hover::after {
  transform: translateX(260%) skewX(-18deg);
}

.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 46%),
    linear-gradient(112deg, #ff3348 0%, #e4001e 46%, #8e0016 100%);
  border-color: rgba(255, 90, 105, 0.5);
  color: #08090d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 20px 44px -24px rgba(255, 30, 60, 0.95),
    0 0 0 1px rgba(255, 60, 84, 0.3);
}

.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 48%),
    linear-gradient(112deg, #ff4b5c 0%, #ff1e3c 48%, #b0001c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 26px 52px -22px rgba(255, 30, 60, 1),
    0 0 30px rgba(255, 30, 60, 0.35);
}

.btn-ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 40%),
    linear-gradient(158deg, #1a1f2a, #090b11);
  border-color: #303848;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.btn-ghost:hover {
  border-color: rgba(255, 30, 60, 0.65);
  background:
    linear-gradient(180deg, rgba(255, 30, 60, 0.1), rgba(255, 255, 255, 0) 60%),
    linear-gradient(158deg, #232a37, #0c0f16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 36px -26px rgba(255, 30, 60, 0.9),
    0 0 0 1px rgba(255, 30, 60, 0.2);
}

.btn-danger {
  background: linear-gradient(150deg, #45101a, #17060a);
  border-color: rgba(255, 30, 60, 0.45);
  color: #ffc3c9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-danger:hover {
  background: linear-gradient(150deg, #671423, #260a10);
  color: #ffe6e9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px -26px rgba(255, 30, 60, 0.9);
}

.btn-small {
  letter-spacing: 0.11em;
}

/* ---------- Accueil : hero ---------- */

.hero {
  isolation: isolate;
}

.hero::before {
  background:
    radial-gradient(900px 520px at 76% 8%, rgba(255, 30, 60, 0.22), transparent 62%),
    radial-gradient(640px 460px at 4% 66%, rgba(142, 0, 22, 0.2), transparent 70%),
    radial-gradient(520px 420px at 30% -6%, rgba(120, 150, 255, 0.05), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(4, 5, 10, 0.55) 78%, var(--carbon-0) 100%);
}

.hero-bolt {
  filter:
    drop-shadow(0 0 18px rgba(255, 30, 60, 0.75))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
}

.hero-kicker {
  color: #b6bdc9;
  letter-spacing: 0.24em;
}

.hero-brand-main {
  background: linear-gradient(172deg, #ffffff 6%, #eef2f8 40%, #a6afbe 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 46px rgba(255, 255, 255, 0.07));
}

.hero-brand-sub {
  filter: drop-shadow(0 0 26px rgba(255, 30, 60, 0.38));
}

.hero-slogan {
  color: #dfe5ee;
}

.hero .lede {
  color: #a7b0bf;
}

.hero-note {
  color: #8e97a6;
}

.hero-stats {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 60%),
    rgba(8, 10, 16, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 60px -44px #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-stats div::before {
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(255, 30, 60, 0.6);
}

.hero-stats dt {
  color: #8e97a6;
  letter-spacing: 0.16em;
}

.hero-stats dd {
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 30, 60, 0.4);
}

.hero-photo {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 50px 110px -50px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(255, 30, 60, 0.18),
    0 0 70px -20px rgba(255, 30, 60, 0.35);
}

.hero-photo img {
  filter: saturate(1.12) contrast(1.08) brightness(1.02);
  transition: transform 0.8s var(--ease-out), filter 0.6s ease;
}

.hero-photo:hover img {
  transform: scale(1.035);
  filter: saturate(1.2) contrast(1.12) brightness(1.05);
}

.hero-photo::after {
  background: linear-gradient(180deg, rgba(4, 5, 10, 0) 42%, rgba(4, 5, 10, 0.82) 100%);
}

.hero-hud {
  color: #d7dde7;
  letter-spacing: 0.1em;
}

.hero-hud-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 30, 60, 0.18), 0 0 16px rgba(255, 30, 60, 0.9);
}

.hero-spec {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(20, 25, 34, 0.92), rgba(6, 8, 13, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px -30px #000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-spec-label {
  color: #8b94a4;
  letter-spacing: 0.18em;
}

.hero-spec-value {
  color: #fff;
}

.float-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(22, 27, 37, 0.94), rgba(6, 8, 13, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 44px -30px #000;
  color: #dde3ec;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.float-chip .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 30, 60, 0.16), 0 0 12px rgba(255, 30, 60, 0.85);
}

.racing-ticker {
  border-top: 1px solid rgba(255, 30, 60, 0.16);
  border-bottom: 1px solid rgba(255, 30, 60, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 30, 60, 0.12), transparent 26%, transparent 74%, rgba(255, 30, 60, 0.12)),
    rgba(6, 8, 13, 0.85);
}

.racing-ticker-track {
  color: #aab3c1;
}

.racing-ticker-track i {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 30, 60, 0.9);
}

/* ---------- Cartes ---------- */

.ride-card,
.produit,
.produit-carte,
.annonce,
.communaute-carte,
.stat-card,
.gestion-card,
.form-card,
.auth-form-wrap,
.profile-hero,
.scooter-card,
.access-card,
.boutique-info,
.boutique-hero,
.carte-frame,
.carte-map-panel,
.carte-lieux,
.chat-card,
.chat-shell,
.annonce-form-card,
.progression-hero,
.step {
  border-color: var(--line);
  background-color: var(--carbon-1);
  background-image: var(--carbon-weave), var(--metal-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 34px 70px -52px rgba(0, 0, 0, 1);
}

.ride-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 30, 60, 0.2), transparent 68%);
  opacity: 0.9;
}

.communaute-carte::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 110px;
  height: 110px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 30, 60, 0.14), transparent 70%);
}

.ride-card:hover,
.produit:hover,
.produit-carte:hover,
.annonce:hover,
.communaute-carte:hover,
.stat-card:hover,
.gestion-card:hover,
.form-card:hover,
.profile-hero:hover,
.scooter-card:hover,
.boutique-info:hover,
.carte-frame:hover,
.chat-card:hover,
.step:hover {
  border-color: rgba(255, 30, 60, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 80px -50px rgba(0, 0, 0, 1),
    0 0 40px -14px rgba(255, 30, 60, 0.35);
}

.ride-card:hover {
  transform: translateY(-5px);
}

.ride-date {
  border: 1px solid rgba(255, 30, 60, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%),
    linear-gradient(165deg, rgba(255, 30, 60, 0.16), rgba(255, 30, 60, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px -12px rgba(255, 30, 60, 0.5);
}

.ride-date .day {
  text-shadow: 0 0 22px rgba(255, 30, 60, 0.65);
}

.ride-body h3 {
  letter-spacing: 0.025em;
}

.tag {
  border-color: #303748;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.02);
  letter-spacing: 0.11em;
}

.tag--avance {
  border-color: rgba(255, 30, 60, 0.5);
  background: linear-gradient(150deg, rgba(255, 30, 60, 0.18), rgba(255, 30, 60, 0.04));
  color: #ff9aa4;
  box-shadow: 0 0 22px -12px rgba(255, 30, 60, 0.8);
}

.steps {
  counter-reset: rm-step;
}

.step {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.step:hover {
  transform: translateY(-3px);
}

.step-number {
  color: transparent;
  background: linear-gradient(170deg, #fff, #8e97a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 30, 60, 0.35));
}

.step h3 {
  letter-spacing: 0.02em;
}

.step p {
  color: #9ba4b3;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 30, 60, 0.26);
  background:
    radial-gradient(700px 300px at 84% 0%, rgba(255, 30, 60, 0.24), transparent 62%),
    linear-gradient(150deg, rgba(26, 30, 42, 0.95), rgba(8, 10, 15, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 90px -60px rgba(255, 30, 60, 0.5);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #ff8a76 50%, var(--accent) 70%, transparent);
  opacity: 0.85;
}

/* ---------- Formulaires ---------- */

.field label,
.field .label,
.label {
  color: #a3acba;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.admin-select,
.communaute-barre input,
.communaute-barre select,
.annonces-filtres input,
.annonces-filtres select {
  border: 1px solid #262d3a;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 70%),
    rgba(6, 8, 13, 0.9);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 10px 24px -20px rgba(0, 0, 0, 0.9);
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.admin-select:hover,
.communaute-barre input:hover,
.communaute-barre select:hover {
  border-color: #333c4d;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-select:focus,
.communaute-barre input:focus,
.communaute-barre select:focus,
.annonces-filtres input:focus,
.annonces-filtres select:focus {
  border-color: rgba(255, 30, 60, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(255, 30, 60, 0.16),
    0 0 30px -12px rgba(255, 30, 60, 0.7);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d7684;
}

.field .hint,
.security-note {
  color: #8b94a4;
}

.security-note {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%),
    rgba(10, 13, 20, 0.85);
}

.form-error {
  border: 1px solid rgba(255, 30, 60, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 30, 60, 0.1);
  color: #ffb3ba;
}

.form-success {
  border: 1px solid rgba(88, 220, 150, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(60, 200, 130, 0.08);
  color: #b8f2d2;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 70%),
    rgba(8, 10, 16, 0.96);
  box-shadow:
    0 30px 60px -34px rgba(0, 0, 0, 1),
    0 0 40px -22px rgba(255, 30, 60, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toast--error {
  border-left-color: #ff5a4a;
}

.notice {
  border: 1px solid rgba(255, 30, 60, 0.22);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255, 30, 60, 0.1), rgba(255, 30, 60, 0.02));
  color: #c3cad6;
}

/* ---------- Badges, étiquettes, états ---------- */

.badge,
.gestion-badge,
.annonce-badge,
.boutique-statut {
  border-radius: 999px;
  letter-spacing: 0.12em;
  border: 1px solid #2c3342;
  background: rgba(255, 255, 255, 0.03);
}

.badge--role.badge--owner {
  border-color: rgba(255, 30, 60, 0.55);
  color: #ff9aa4;
  background: rgba(255, 30, 60, 0.12);
  box-shadow: 0 0 20px -12px rgba(255, 30, 60, 0.9);
}

.empty-state,
.boutique-vide,
.annonces-vide,
.communaute-vide {
  color: #8f98a7;
}

.empty-state {
  border: 1px dashed #262d3a;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

/* ---------- Profil ---------- */

.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 30, 60, 0.16);
  background:
    radial-gradient(560px 240px at 8% 0%, rgba(255, 30, 60, 0.18), transparent 66%),
    var(--carbon-weave),
    var(--metal-panel);
}

.profile-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 30, 60, 0.5), transparent);
}

.profile-avatar {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 30, 60, 0.28), rgba(8, 10, 16, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(255, 255, 255, 0.03),
    0 0 44px -14px rgba(255, 30, 60, 0.75);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-identity h1,
.profile-identity .bio {
  color: var(--text);
}

.profile-identity .meta {
  color: #8f98a7;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card .value,
.stat-card strong {
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 30, 60, 0.35);
}

.stat-card .label {
  color: #8f98a7;
  letter-spacing: 0.16em;
}

.scooter-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.scooter-photo img {
  filter: saturate(1.08) contrast(1.06);
  border-radius: var(--radius-sm);
}

.profile-edit {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 11, 17, 0.65);
}

.profile-edit summary,
.profile-edit > summary {
  color: #d8dee8;
  letter-spacing: 0.02em;
}

.access-card {
  border: 1px solid rgba(255, 30, 60, 0.3);
  background:
    linear-gradient(150deg, rgba(255, 30, 60, 0.14), rgba(8, 10, 16, 0.95));
}

/* ---------- Communauté et progression ---------- */

.communaute-onglet {
  border: 1px solid #262d3a;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 60%),
    rgba(9, 12, 18, 0.9);
  color: #a6afbd;
  letter-spacing: 0.1em;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.communaute-onglet:hover {
  color: #fff;
  border-color: rgba(255, 30, 60, 0.45);
  transform: translateY(-1px);
}

.communaute-onglet.is-actif {
  color: #08090d;
  border-color: rgba(255, 90, 105, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 52%),
    linear-gradient(112deg, #ff3348, #b0001c);
  box-shadow:
    0 18px 36px -22px rgba(255, 30, 60, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.communaute-carte {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.communaute-carte:hover {
  transform: translateY(-3px);
}

.communaute-auteur {
  color: #fff;
  letter-spacing: 0.02em;
}

.communaute-date {
  color: #7f8896;
}

.communaute-meta {
  color: #9aa3b2;
}

.communaute-texte {
  color: #c4cbd7;
}

.communaute-media {
  border-radius: var(--radius-sm);
  filter: saturate(1.06) contrast(1.05);
}

.communaute-video,
.communaute-lien,
.communaute-contact {
  border: 1px solid rgba(255, 30, 60, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 30, 60, 0.08);
  color: #ff9aa4;
}

.communaute-video:hover,
.communaute-lien:hover,
.communaute-contact:hover {
  background: rgba(255, 30, 60, 0.16);
  box-shadow: 0 0 26px -14px rgba(255, 30, 60, 0.9);
}

/* Fil : J’aime et commentaires */
.fil-aimer {
  border: 1px solid #2a3140;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.02);
  color: #d7dce5;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.fil-aimer:hover {
  border-color: rgba(255, 30, 60, 0.5);
  color: #fff;
}

.fil-aimer.is-aime {
  border-color: rgba(255, 30, 60, 0.6);
  background: linear-gradient(150deg, rgba(255, 30, 60, 0.28), rgba(255, 30, 60, 0.08));
  color: #ffb0b8;
  box-shadow: 0 0 26px -12px rgba(255, 30, 60, 0.9);
}

.fil-commentaire {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.028);
}

.fil-commentaire-auteur {
  color: #fff;
}

.fil-supprimer-commentaire {
  color: #ff8a94;
}

.fil-commentaire-form input {
  border: 1px solid #262d3a;
  border-radius: 999px;
  background: rgba(6, 8, 13, 0.9);
}

.fil-commentaire-form input:focus {
  border-color: rgba(255, 30, 60, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 30, 60, 0.14);
}

.progression-hero {
  border: 1px solid rgba(255, 30, 60, 0.18);
  background:
    radial-gradient(620px 260px at 88% 0%, rgba(255, 30, 60, 0.2), transparent 64%),
    var(--carbon-weave),
    var(--metal-panel);
}

.progression-jauge {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 6, 10, 0.9);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.progression-jauge span {
  background: linear-gradient(90deg, #8e0016, #ff1e3c 55%, #ff8a76);
  box-shadow: 0 0 24px rgba(255, 30, 60, 0.75);
}

.progression-chiffre {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%),
    rgba(9, 12, 18, 0.8);
}

.progression-chiffre dd {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 30, 60, 0.3);
}

.classement-ligne {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.classement-ligne.is-moi {
  background: linear-gradient(90deg, rgba(255, 30, 60, 0.14), rgba(255, 30, 60, 0.02));
  box-shadow: inset 2px 0 0 var(--accent);
}

.badge {
  border-radius: var(--radius-sm);
}

.badge--obtenu,
.recompense--active {
  border-color: rgba(255, 30, 60, 0.5);
  background:
    linear-gradient(160deg, rgba(255, 30, 60, 0.16), rgba(255, 30, 60, 0.03));
  box-shadow: 0 0 30px -18px rgba(255, 30, 60, 0.9);
}

.recompense {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Annonces ---------- */

.annonces-note {
  border: 1px solid rgba(255, 30, 60, 0.24);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255, 30, 60, 0.1), rgba(255, 30, 60, 0.02));
}

.annonces-compte {
  color: #9aa3b2;
  letter-spacing: 0.1em;
}

.annonce {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.annonce-media {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 30, 60, 0.16), rgba(6, 8, 13, 0.96) 74%);
}

.annonce-photo {
  filter: saturate(1.08) contrast(1.06);
  transition: transform 0.6s var(--ease-out), filter 0.4s ease;
}

.annonce:hover .annonce-photo {
  transform: scale(1.04);
  filter: saturate(1.16) contrast(1.1);
}

.annonce-prix {
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 30, 60, 0.4);
}

.annonce-titre {
  color: #f2f5fa;
}

.annonce-meta,
.annonce-desc,
.annonce-vendeur {
  color: #98a1b0;
}

.annonce-badge {
  border-radius: 999px;
  border-color: rgba(255, 30, 60, 0.35);
  background: rgba(255, 30, 60, 0.1);
  color: #ff9aa4;
}

.annonce-joindre summary {
  color: var(--accent);
}

.annonce-contact {
  border: 1px solid #262d3a;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.annonce-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.annonce-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.annonce-apercu img {
  border-radius: var(--radius-sm);
}

/* ---------- Boutique ---------- */

.boutique-hero {
  border: 1px solid rgba(255, 30, 60, 0.24);
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(255, 30, 60, 0.2), transparent 62%),
    var(--carbon-weave),
    var(--metal-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 90px -60px rgba(255, 30, 60, 0.45);
}

.boutique-badges li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #c1c8d4;
}

.categorie-tuile {
  border: 1px solid #262d3a;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%),
    rgba(9, 12, 18, 0.85);
  transition: transform 0.24s var(--ease-out), border-color 0.22s ease, box-shadow 0.28s ease;
}

.categorie-tuile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 30, 60, 0.45);
  box-shadow: 0 20px 40px -30px rgba(255, 30, 60, 0.8);
}

.categorie-tuile[aria-pressed='true'] {
  border-color: rgba(255, 30, 60, 0.6);
  background:
    linear-gradient(160deg, rgba(255, 30, 60, 0.2), rgba(255, 30, 60, 0.04));
}

.categorie-icone {
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(255, 30, 60, 0.45));
}

.boutique-filtre {
  border: 1px solid #262d3a;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #a6afbd;
}

.boutique-filtre:hover {
  border-color: rgba(255, 30, 60, 0.45);
  color: #fff;
}

.boutique-filtre[aria-pressed='true'] {
  border-color: rgba(255, 90, 105, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 52%),
    linear-gradient(112deg, #ff3348, #b0001c);
  color: #08090d;
  box-shadow: 0 16px 34px -24px rgba(255, 30, 60, 0.95);
}

.produit,
.produit-carte {
  border: 1px solid var(--line);
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.produit-carte:hover {
  transform: translateY(-4px);
}

.produit-media {
  background: radial-gradient(circle at 50% 26%, rgba(255, 30, 60, 0.14), rgba(6, 8, 13, 0.96) 74%);
}

.produit-media img {
  filter: saturate(1.06) contrast(1.05);
  transition: transform 0.6s var(--ease-out);
}

.produit-carte:hover .produit-media img {
  transform: scale(1.04);
}

.produit-nom {
  color: #f2f5fa;
}

.produit-prix {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 30, 60, 0.35);
}

.produit-action {
  color: var(--accent);
}

.boutique-dialogue {
  border: 1px solid rgba(255, 30, 60, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(560px 240px at 90% 0%, rgba(255, 30, 60, 0.16), transparent 64%),
    var(--carbon-weave),
    linear-gradient(158deg, #161b25, #070910);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1);
}

.boutique-dialogue::backdrop,
.gestion-dialog::backdrop {
  background: rgba(2, 3, 6, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Carte ---------- */

.carte-frame,
.carte-map-panel,
.carte-lieux {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.leaflet-container {
  background: #070910;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 1px solid rgba(255, 30, 60, 0.3);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(158deg, #171c26, #080a10);
  color: var(--text);
  box-shadow: 0 30px 60px -40px #000;
}

.carte-lieu {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.carte-lieu:hover {
  border-color: rgba(255, 30, 60, 0.4);
  background: rgba(255, 30, 60, 0.06);
}

.carte-pin,
.carte-marker {
  filter: drop-shadow(0 0 10px rgba(255, 30, 60, 0.8));
}

.carte-btn,
.carte-lieu-bouton {
  border: 1px solid rgba(255, 30, 60, 0.45);
  border-radius: 999px;
  background: rgba(255, 30, 60, 0.1);
  color: #ff9aa4;
}

/* ---------- Chat ---------- */

.chat-card,
.chat-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chat-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.chat-bubble {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: linear-gradient(160deg, #1a1f2a, #101520);
  color: #e7ecf3;
  box-shadow: 0 18px 30px -28px #000;
}

.chat-msg--own .chat-bubble {
  border-color: rgba(255, 30, 60, 0.45);
  background: linear-gradient(150deg, rgba(255, 30, 60, 0.28), rgba(142, 0, 22, 0.18));
  box-shadow: 0 18px 34px -26px rgba(255, 30, 60, 0.75);
}

.chat-form,
.chat-composer-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Administration ---------- */

.gestion-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gestion-tabs a,
.gestion-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #a6afbd;
  letter-spacing: 0.08em;
}

.gestion-tabs a:hover,
.gestion-tabs button:hover {
  color: #fff;
  border-color: rgba(255, 30, 60, 0.4);
}

.gestion-tabs a[aria-current='page'],
.gestion-tabs button[aria-selected='true'] {
  color: #fff;
  border-color: rgba(255, 30, 60, 0.55);
  background: rgba(255, 30, 60, 0.12);
  box-shadow: 0 0 26px -16px rgba(255, 30, 60, 0.9);
}

.admin-table,
.gestion-table {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.admin-table th,
.gestion-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #9aa3b2;
  letter-spacing: 0.12em;
}

.admin-table td,
.gestion-table td {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.admin-table tbody tr:hover,
.gestion-table tbody tr:hover {
  background: rgba(255, 30, 60, 0.06);
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gestion-dialog {
  border: 1px solid rgba(255, 30, 60, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 220px at 90% 0%, rgba(255, 30, 60, 0.16), transparent 64%),
    linear-gradient(158deg, #161b25, #070910);
  color: var(--text);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1);
}

.auth-required,
.gestion-gate,
.gestion-loading {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(255, 30, 60, 0.14), transparent 66%),
    var(--metal-panel);
}

/* ---------- Pied de page ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 30, 60, 0.22);
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(255, 30, 60, 0.09), transparent 70%),
    var(--carbon-weave),
    linear-gradient(180deg, #070910, #030408);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 30, 60, 0.6), transparent);
}

.footer-brand .brand-text span {
  color: var(--steel-dim);
}

.footer-links a {
  color: #98a1b0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #7f8896;
}

/* ---------- Filigrane ---------- */

.page-watermark {
  opacity: 0.09;
  filter: drop-shadow(0 0 60px rgba(255, 30, 60, 0.25));
}

/* ---------- Animations (désactivées si l’utilisateur le demande) ---------- */

@keyframes rm-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rm-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 30, 60, 0.55);
  }
  60% {
    box-shadow: 0 0 0 8px rgba(255, 30, 60, 0);
  }
}

@keyframes rm-scan {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  35% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}@media (prefers-reduced-motion: no-preference) {
  .ride-card,
  .annonce,
  .produit-carte,
  .communaute-carte,
  .stat-card,
  .progression-chiffre {
    animation: rm-rise 0.55s var(--ease-out) backwards;
  }

  .ride-card:nth-child(2),
  .annonce:nth-child(2),
  .communaute-carte:nth-child(2) {
    animation-delay: 0.05s;
  }

  .ride-card:nth-child(3),
  .annonce:nth-child(3),
  .communaute-carte:nth-child(3) {
    animation-delay: 0.1s;
  }

  .ride-card:nth-child(4),
  .annonce:nth-child(4),
  .communaute-carte:nth-child(4) {
    animation-delay: 0.15s;
  }

  .ride-card:nth-child(5),
  .annonce:nth-child(5),
  .communaute-carte:nth-child(5) {
    animation-delay: 0.2s;
  }

  .ride-card:nth-child(6),
  .annonce:nth-child(6),
  .communaute-carte:nth-child(6) {
    animation-delay: 0.25s;
  }

  .hero-hud-dot,
  .float-chip .dot {
    animation: rm-pulse 2.6s ease-out infinite;
  }

  .hero-brand-sub {
    animation: rm-rise 0.8s var(--ease-out) backwards;
  }
}

/* ---------- Ajustements mobiles ---------- */

@media (max-width: 760px) {
  body::after {
    background-size: 8px 8px, 8px 8px, 56px 56px, 56px 56px, auto;
    opacity: 0.45;
  }

  .hero-photo {
    box-shadow:
      0 30px 70px -40px rgba(0, 0, 0, 1),
      0 0 0 1px rgba(255, 30, 60, 0.2);
  }

  .btn {
    letter-spacing: 0.1em;
  }

  .communaute-onglet {
    letter-spacing: 0.06em;
  }

  .stat-card:hover,
  .annonce:hover,
  .communaute-carte:hover,
  .produit-carte:hover {
    transform: none;
  }
}
/* =========================================================
   RIDER MONTRÉAL — V2 « SIGNATURE 2026.2 »
   ---------------------------------------------------------
   Seconde passe visuelle, ajoutée à la suite de la couche
   « Atelier Carbone ». Toujours 100 % présentation : aucun
   sélecteur de structure, aucun identifiant, aucun attribut
   de données et aucun comportement JS n’est introduit ou
   modifié. Toutes les règles ci-dessous ne redéfinissent que
   des propriétés de rendu (couleur, matière, typographie,
   espacement, ombre, transition, mise en page fluide).
   ========================================================= */

/* ---------- 1. Jetons de design V2 ---------- */

:root {
  --ink-void: #03040a;
  --ink-1: #05060c;
  --ink-2: #090b13;
  --ink-3: #0e111a;
  --ink-4: #141926;

  --steel-hi: #f2f5fa;
  --steel-mid: #b9c1cf;
  --steel-low: #7d8797;

  --accent-hot: #ff3a55;
  --accent-core: #ff1e3c;
  --accent-deep-2: #a8001d;
  --accent-veil: rgba(255, 30, 60, 0.14);
  --accent-veil-soft: rgba(255, 30, 60, 0.07);

  --hair: rgba(255, 255, 255, 0.06);
  --hair-strong: rgba(255, 255, 255, 0.12);

  --metal-panel-v2:
    linear-gradient(158deg, rgba(22, 27, 38, 0.94) 0%, rgba(11, 14, 21, 0.97) 44%, rgba(5, 6, 12, 1) 100%);
  --metal-chrome:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(198, 206, 219, 0.55) 42%, rgba(120, 130, 146, 0.5) 100%);

  --sheen: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  --accent-gradient: linear-gradient(135deg, #ff4258 0%, #ff1e3c 42%, #c4001f 100%);

  --shadow-card: 0 30px 70px -44px rgba(0, 0, 0, 1), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-lift: 0 46px 90px -46px rgba(0, 0, 0, 1), 0 0 42px -12px rgba(255, 30, 60, 0.34);
  --glow-soft: 0 0 26px rgba(255, 30, 60, 0.22);

  --radius-lg: 18px;
  --radius-xl: 24px;

  --space-section: clamp(56px, 7vw, 108px);
  --display-tracking: -0.018em;
  --header-h: 74px;
}

/* ---------- 2. Fond global et profondeur ---------- */

html {
  background: var(--ink-void);
  overflow-x: clip;
}

body {
  background-color: var(--ink-void);
  background-image:
    radial-gradient(130% 70% at 50% -18%, rgba(255, 30, 60, 0.16) 0%, transparent 62%),
    radial-gradient(90% 60% at 88% 8%, rgba(90, 120, 180, 0.09) 0%, transparent 66%),
    linear-gradient(180deg, #05060c 0%, #04050a 46%, #04050a 100%);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--steel-hi);
  overflow-x: clip;
}

body::selection,
::selection {
  background: rgba(255, 30, 60, 0.32);
  color: #fff;
}

/* ---------- 3. Typographie display ---------- */

h1,
h2,
h3 {
  letter-spacing: var(--display-tracking);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 0.98;
}

h3 {
  font-weight: 700;
}

.section-head h2,
.page-head h2 {
  position: relative;
  padding-left: 20px;
}

.section-head h2::before,
.page-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent-deep-2));
  box-shadow: 0 0 18px rgba(255, 30, 60, 0.5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-core);
  box-shadow: 0 0 12px rgba(255, 30, 60, 0.9);
}

.lede {
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.72;
  color: var(--steel-mid);
  max-width: 62ch;
}

.muted,
.gestion-muted {
  color: var(--steel-low);
}

/* ---------- 4. En-tête ---------- */

.site-header {
  background:
    linear-gradient(180deg, rgba(4, 5, 10, 0.94) 0%, rgba(4, 5, 10, 0.72) 70%, rgba(4, 5, 10, 0.34) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 1);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 30, 60, 0.55) 24%, rgba(255, 255, 255, 0.14) 52%, rgba(255, 30, 60, 0.4) 78%, transparent);
  opacity: 0.65;
  pointer-events: none;
}

.header-inner {
  min-height: var(--header-h);
  gap: 18px;
}

.brand-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 18px;
}

.brand-text span {
  color: var(--accent-core);
  text-shadow: 0 0 18px rgba(255, 30, 60, 0.45);
}

.brand-mark--logo img {
  filter: drop-shadow(0 0 12px rgba(255, 30, 60, 0.42));
}

.brand-mark {
  box-shadow: 0 0 0 1px var(--hair-strong), 0 8px 22px -14px rgba(255, 30, 60, 0.8);
}

.nav-link {
  position: relative;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-mid);
  padding: 10px 2px;
  transition: color 0.24s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: #fff;
}

.nav-toggle {
  border: 1px solid var(--hair-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 44px;
  border-radius: 10px;
}

.bars span {
  background: var(--steel-hi);
}

/* ---------- 5. Accueil : hero signature ---------- */

.hero {
  position: relative;
  padding-top: clamp(34px, 5vw, 74px);
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(48% 42% at 22% 18%, rgba(255, 30, 60, 0.2) 0%, transparent 68%),
    radial-gradient(42% 38% at 82% 8%, rgba(120, 150, 200, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}

.hero-brand {
  margin: 14px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 10.6vw, 146px);
  line-height: 0.8;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  background: linear-gradient(176deg, #ffffff 6%, #dfe5ee 38%, #98a2b3 72%, #5d6575 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
}

.hero-brand-sub {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.5vw, 17px);
  font-weight: 700;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--accent-core);
  text-shadow: 0 0 22px rgba(255, 30, 60, 0.55);
}

.hero-slogan {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(21px, 2.6vw, 36px);
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--steel-hi);
  margin-bottom: 14px;
}

.hero-slogan .accent {
  color: var(--accent-hot);
  text-shadow: 0 0 26px rgba(255, 30, 60, 0.4);
}

.hero-copy .lede {
  margin-bottom: 24px;
}

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

.hero-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-low);
  margin-top: 16px;
}

.hero-stats {
  margin-top: clamp(26px, 3vw, 40px);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 18px 0;
}

.hero-stats > div {
  padding: 0 22px;
  border-left: 1px solid var(--hair);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-low);
}

.hero-stats dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  color: #fff;
  margin-top: 6px;
  text-shadow: 0 0 30px rgba(255, 30, 60, 0.28);
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hair-strong);
  box-shadow:
    0 60px 120px -60px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(255, 30, 60, 0.14),
    0 0 70px -30px rgba(255, 30, 60, 0.4);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 10, 0.18) 0%, transparent 42%, rgba(4, 5, 10, 0.72) 100%),
    linear-gradient(115deg, transparent 52%, rgba(255, 30, 60, 0.12) 100%);
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out);
  filter: contrast(1.08) saturate(1.05) brightness(0.96);
}

.hero-photo:hover img {
  transform: scale(1.045);
  filter: contrast(1.14) saturate(1.12) brightness(1.02);
}

.hero-hud {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-hi);
  background: rgba(6, 8, 14, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  padding: 8px 14px;
  z-index: 2;
}

.hero-hud-dot {
  box-shadow: 0 0 12px rgba(255, 30, 60, 0.95);
}

.hero-spec {
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}

.hero-spec-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.hero-spec-value {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: #fff;
}

.float-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(6, 8, 14, 0.74);
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 1);
}

.float-chip .dot {
  background: var(--accent-core);
  box-shadow: 0 0 12px rgba(255, 30, 60, 0.9);
}

/* ---------- 6. Sections ---------- */

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  position: relative;
}

.section--tight {
  padding-top: calc(var(--space-section) * 0.7);
  padding-bottom: calc(var(--space-section) * 0.7);
}

.section-head {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 42px);
}

.section-head p:not(.eyebrow) {
  color: var(--steel-low);
  max-width: 46ch;
  line-height: 1.66;
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hot);
  border-bottom: 1px solid rgba(255, 30, 60, 0.4);
  padding-bottom: 4px;
  transition: color 0.24s var(--ease-out), border-color 0.24s var(--ease-out), transform 0.24s var(--ease-out);
  white-space: nowrap;
}

.link-arrow:hover {
  color: #fff;
  border-color: #fff;
  transform: translateX(4px);
}

.cta-band {
  border-radius: var(--radius-xl);
  border: 1px solid var(--hair-strong);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 30, 60, 0.2) 0%, transparent 62%),
    linear-gradient(150deg, rgba(20, 25, 36, 0.96) 0%, rgba(8, 10, 17, 1) 58%, rgba(4, 5, 10, 1) 100%);
  padding: clamp(26px, 3.6vw, 52px);
  box-shadow: 0 50px 110px -60px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 46%;
  height: 180%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.05) 46%, transparent 62%);
  transform: rotate(8deg);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 8px 0 12px;
}

.cta-band p {
  color: var(--steel-mid);
  max-width: 54ch;
  line-height: 1.68;
}

/* ---------- 7. Boutons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid var(--hair-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  color: var(--steel-hi);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 1), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    background-color 0.28s var(--ease-out),
    color 0.28s var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sheen);
  transform: translateX(-120%);
  transition: transform 0.72s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px -16px rgba(0, 0, 0, 1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

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

.btn-primary {
  border-color: rgba(255, 90, 110, 0.5);
  background: var(--accent-gradient);
  color: #fff;
  box-shadow:
    0 18px 40px -22px rgba(255, 30, 60, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.btn-primary:hover {
  border-color: rgba(255, 140, 155, 0.7);
  box-shadow:
    0 26px 60px -24px rgba(255, 30, 60, 0.95),
    0 0 34px -6px rgba(255, 30, 60, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(180deg, rgba(255, 60, 84, 0.16), rgba(160, 0, 28, 0.32));
  border-color: rgba(255, 60, 84, 0.42);
  color: #ffd3da;
}

.btn-danger:hover {
  background: linear-gradient(180deg, rgba(255, 60, 84, 0.26), rgba(180, 0, 32, 0.42));
  color: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 0 15px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  border-radius: 9px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- 8. Cartes et panneaux ---------- */

.ride-card,
.produit,
.produit-carte,
.annonce,
.communaute-carte,
.stat-card,
.gestion-card,
.profile-hero,
.carte-frame,
.carte-map-panel,
.carte-lieux,
.chat-card,
.chat-shell,
.annonce-form-card,
.step,
.form-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hair);
  background: var(--metal-panel-v2);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.32s var(--ease-out),
    box-shadow 0.36s var(--ease-out),
    border-color 0.32s var(--ease-out);
}

.ride-card:hover,
.produit:hover,
.produit-carte:hover,
.annonce:hover,
.communaute-carte:hover,
.stat-card:hover,
.gestion-card:hover,
.profile-hero:hover,
.carte-frame:hover,
.chat-card:hover,
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 30, 60, 0.34);
  box-shadow: var(--shadow-lift);
}

.ride-card::after,
.annonce::after,
.produit-carte::after,
.communaute-carte::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 30, 60, 0.75) 34%, rgba(255, 255, 255, 0.22) 62%, transparent);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.ride-card:hover::after,
.annonce:hover::after,
.produit-carte:hover::after,
.communaute-carte:hover::after {
  opacity: 1;
}

.ride-body h3,
.annonce-titre,
.communaute-titre {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.05;
  color: #fff;
}

.ride-date {
  border-radius: 12px;
  border: 1px solid rgba(255, 30, 60, 0.28);
  background: linear-gradient(180deg, rgba(255, 30, 60, 0.14), rgba(255, 30, 60, 0.04));
  box-shadow: 0 0 22px -8px rgba(255, 30, 60, 0.5);
}

.ride-date .day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: #fff;
}

.ride-meta,
.annonce-meta,
.communaute-meta,
.when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-low);
}

.ride-desc,
.annonce-corps,
.communaute-texte {
  color: var(--steel-mid);
  line-height: 1.62;
}

.ride-foot {
  border-top: 1px solid var(--hair);
}

.annonce-prix,
.produit-prix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  color: #fff;
  letter-spacing: 0.01em;
}

.annonce-badge,
.tag,
.boutique-info-tag,
.communaute-onglet {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag {
  border: 1px solid var(--hair-strong);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  font-size: 10px;
  padding: 5px 10px;
  color: var(--steel-mid);
}

.tag--you,
.tag--full {
  border-color: rgba(255, 30, 60, 0.4);
  background: rgba(255, 30, 60, 0.12);
  color: #ffd2d9;
}

.stat-card,
.gestion-card {
  padding: clamp(18px, 2vw, 26px);
}

.stat-card .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 30, 60, 0.25);
}

.steps {
  gap: clamp(14px, 1.6vw, 22px);
}

.step {
  padding: clamp(20px, 2.2vw, 30px);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 30, 60, 0.62);
  letter-spacing: 0.02em;
}

.step h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0.01em;
  margin-top: 10px;
}

.step p {
  color: var(--steel-low);
  line-height: 1.66;
}

/* ---------- 9. Formulaires ---------- */

.field label,
.gestion-field label,
.label,
.field > span:first-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-low);
}

.field input,
.field select,
.field textarea,
.gestion-field input,
.gestion-field select,
.gestion-field textarea,
.gestion-form input,
.gestion-form select,
.gestion-form textarea,
.communaute-barre input,
.communaute-barre select,
input[type="search"] {
  min-height: 47px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--hair-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), #06070d;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px -26px rgba(0, 0, 0, 1);
  transition: border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), background-color 0.24s var(--ease-out);
}

.field textarea,
.gestion-field textarea,
.gestion-form textarea {
  min-height: 124px;
  line-height: 1.6;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.gestion-field input::placeholder,
.gestion-field textarea::placeholder,
.communaute-barre input::placeholder,
input[type="search"]::placeholder {
  color: #5d6675;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.gestion-field input:hover,
.gestion-field select:hover,
.gestion-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.gestion-field input:focus,
.gestion-field select:focus,
.gestion-field textarea:focus,
.gestion-form input:focus,
.gestion-form select:focus,
.gestion-form textarea:focus,
.communaute-barre input:focus,
.communaute-barre select:focus,
input[type="search"]:focus {
  outline: none;
  border-color: rgba(255, 30, 60, 0.62);
  background: #080a11;
  box-shadow:
    0 0 0 3px rgba(255, 30, 60, 0.16),
    0 0 26px -8px rgba(255, 30, 60, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

select,
.gestion-field select,
.communaute-barre select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff1e3c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.field input[aria-invalid="true"],
.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 30, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 30, 60, 0.12);
}

.form-error,
.error,
.gestion-feedback[data-state="error"] {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #ff8b9b;
}

.form-card {
  padding: clamp(20px, 2.4vw, 32px);
}

.hint,
.gestion-hint {
  font-size: 12px;
  color: var(--steel-low);
  line-height: 1.55;
}

/* ---------- 10. Onglets, menus, panneaux, tableaux ---------- */

.communaute-onglet {
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.022);
  color: var(--steel-mid);
  font-size: 10.5px;
  padding: 10px 14px;
  min-height: 42px;
  transition: color 0.24s var(--ease-out), border-color 0.24s var(--ease-out), background-color 0.24s var(--ease-out);
}

.communaute-onglet:hover {
  color: #fff;
  border-color: var(--hair-strong);
  background: rgba(255, 255, 255, 0.05);
}

.communaute-onglet.is-actif {
  color: #fff;
  border-color: rgba(255, 30, 60, 0.5);
  background: linear-gradient(180deg, rgba(255, 30, 60, 0.2), rgba(255, 30, 60, 0.06));
  box-shadow: 0 0 24px -10px rgba(255, 30, 60, 0.7);
}

.gestion-menu-link {
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--steel-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 13px;
  min-height: 44px;
  transition: color 0.22s var(--ease-out), background-color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.gestion-menu-link:hover,
.gestion-menu-link.is-active {
  color: #fff;
  border-color: rgba(255, 30, 60, 0.34);
  background: rgba(255, 30, 60, 0.1);
}

.gestion-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hair);
  background: linear-gradient(160deg, rgba(18, 22, 32, 0.9), rgba(6, 8, 14, 0.98));
  box-shadow: var(--shadow-card);
}

.gestion-panel-head {
  border-bottom: 1px solid var(--hair);
}

.gestion-card-head h3,
.gestion-panel-head h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(17px, 1.4vw, 21px);
}

.gestion-list {
  border-radius: 12px;
  border: 1px solid var(--hair);
  overflow: hidden;
}

.gestion-list > * + * {
  border-top: 1px solid var(--hair);
}

.gestion-list > *:hover {
  background: rgba(255, 255, 255, 0.028);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
}

th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-low);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair-strong);
  background: rgba(255, 255, 255, 0.025);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--steel-mid);
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
}

/* ---------- 11. Dialogues et notifications ---------- */

.gestion-dialog,
.boutique-dialogue,
.report-dialog {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hair-strong);
  background: linear-gradient(160deg, rgba(20, 25, 36, 0.98), rgba(5, 6, 12, 1));
  box-shadow: 0 60px 130px -60px rgba(0, 0, 0, 1), 0 0 60px -30px rgba(255, 30, 60, 0.5);
  color: var(--steel-hi);
}

.gestion-dialog::backdrop,
.boutique-dialogue::backdrop,
.report-dialog::backdrop,
dialog::backdrop {
  background: rgba(2, 3, 7, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.boutique-dialogue-media,
.annonce-media,
.annonce-photo {
  border-radius: 14px;
  border: 1px solid var(--hair);
  overflow: hidden;
}

.toast {
  border-radius: 12px;
  border: 1px solid var(--hair-strong);
  background: rgba(10, 13, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 1), 0 0 30px -14px rgba(255, 30, 60, 0.5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.toast--error {
  border-color: rgba(255, 30, 60, 0.5);
}

/* ---------- 12. Carte, chat, profil, boutique ---------- */

.carte-frame,
.carte-map-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hair);
  overflow: hidden;
}

.carte-lieux {
  padding: clamp(16px, 1.8vw, 22px);
}

.popup-titre {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.popup-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.popup-adresse,
.popup-texte {
  color: var(--steel-low);
  line-height: 1.6;
}

.chat-shell,
.chat-card {
  border-radius: var(--radius-lg);
}

.chat-head {
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.022);
}

.chat-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-low);
}

.chat-empty,
.empty-state {
  color: var(--steel-low);
  border: 1px dashed var(--hair-strong);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.profile-hero {
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.4vw, 34px);
  background:
    radial-gradient(110% 140% at 8% 0%, rgba(255, 30, 60, 0.16) 0%, transparent 58%),
    var(--metal-panel-v2);
}

.avatar {
  border-radius: 50%;
  border: 1px solid rgba(255, 30, 60, 0.42);
  box-shadow: 0 0 24px -8px rgba(255, 30, 60, 0.6);
}

.boutique-info {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hair);
  background: var(--metal-panel-v2);
  padding: clamp(16px, 1.8vw, 24px);
}

.boutique-info-tag {
  border: 1px solid rgba(255, 30, 60, 0.34);
  background: rgba(255, 30, 60, 0.1);
  color: #ffd2d9;
  border-radius: 999px;
  font-size: 9.5px;
  padding: 4px 9px;
}

.progress-track,
.bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress-track > *,
.bar > * {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep-2), var(--accent-hot));
  box-shadow: 0 0 18px -4px rgba(255, 30, 60, 0.7);
}

/* ---------- 13. Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--hair);
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(255, 30, 60, 0.08) 0%, transparent 62%),
    linear-gradient(180deg, rgba(5, 6, 12, 0.9), #03040a 70%);
  padding-top: clamp(34px, 4vw, 58px);
}

.footer-brand p {
  color: var(--steel-low);
  line-height: 1.68;
  max-width: 42ch;
}

.footer-links {
  gap: 10px 22px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-mid);
  transition: color 0.22s var(--ease-out);
}

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

.footer-bottom {
  border-top: 1px solid var(--hair);
  color: var(--steel-low);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding-top: 18px;
  margin-top: clamp(22px, 3vw, 38px);
}

/* ---------- 14. Animations V2 ---------- */

@keyframes rm-sheen-run {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes rm-pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 30, 60, 0.28);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 30, 60, 0);
  }
}

@keyframes rm-rise-v2 {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-hud-dot,
.float-chip .dot,
.eyebrow::before {
  animation: rm-pulse-soft 3.2s ease-in-out infinite;
}

@supports (animation-timeline: view()) {
  .section > .container > .section-head,
  .section > .container > .steps,
  .section > .container > .cta-band,
  .section > .container > .ride-grid {
    animation: rm-rise-v2 linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 26%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hud-dot,
  .float-chip .dot,
  .eyebrow::before,
  .section > .container > .section-head,
  .section > .container > .steps,
  .section > .container > .cta-band,
  .section > .container > .ride-grid {
    animation: none !important;
  }

  .btn::after {
    display: none;
  }

  * {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 15. Tablette ---------- */

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 3vw, 34px);
  }

  .hero-visual {
    order: -1;
    max-width: 720px;
  }

  .hero-brand-main {
    font-size: clamp(58px, 12vw, 110px);
  }
}

/* ---------- 16. Téléphone (priorité) ---------- */

@media (max-width: 760px) {
  :root {
    --space-section: clamp(38px, 9vw, 60px);
    --radius-lg: 16px;
    --radius-xl: 20px;
  }

  body {
    background-attachment: scroll, scroll, scroll;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-inner {
    min-height: 60px;
    gap: 10px;
  }

  .brand-text {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    margin-left: auto;
    padding: 0 14px;
    font-size: 10.5px;
    min-height: 42px;
    border-radius: 10px;
  }

  .site-nav.is-open {
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair-strong);
    background: linear-gradient(180deg, rgba(6, 8, 14, 0.99), rgba(4, 5, 10, 1));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1);
    padding: 10px 0 18px;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 6px;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--hair);
    color: var(--steel-hi);
  }

  .site-nav .nav-link::after {
    display: none;
  }

  .site-nav .nav-link:active {
    background: rgba(255, 30, 60, 0.1);
  }

  .nav-auth .btn {
    width: 100%;
    margin-top: 12px;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 12px;
  }

  .hero-brand {
    margin: 12px 0 16px;
  }

  .hero-brand-main {
    font-size: clamp(48px, 15vw, 82px);
    line-height: 0.84;
  }

  .hero-brand-sub {
    font-size: 10.5px;
    letter-spacing: 0.4em;
  }

  .hero-slogan {
    font-size: clamp(19px, 6vw, 26px);
  }

  .hero-copy .lede {
    font-size: 15px;
    line-height: 1.66;
    margin-bottom: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 14px 0;
    margin-top: 20px;
  }

  .hero-stats > div {
    padding: 0 10px;
  }

  .hero-stats dt {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    line-height: 1.3;
  }

  .hero-stats dd {
    font-size: 26px;
    margin-top: 4px;
  }

  .float-chip,
  .hero-spec {
    display: none;
  }

  .hero-photo {
    border-radius: 16px;
  }

  .hero-hud {
    font-size: 9px;
    padding: 6px 10px;
    letter-spacing: 0.1em;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-head h2,
  .page-head h2 {
    font-size: clamp(26px, 7.6vw, 36px);
    padding-left: 14px;
  }

  .section-head h2::before,
  .page-head h2::before {
    width: 3px;
  }

  .section-head p:not(.eyebrow) {
    font-size: 14px;
  }

  .btn {
    min-height: 48px;
    font-size: 11px;
    padding: 0 18px;
  }

  .btn-small {
    min-height: 42px;
    padding: 0 13px;
    font-size: 10px;
  }

  .ride-card,
  .annonce,
  .produit,
  .produit-carte,
  .communaute-carte,
  .stat-card,
  .gestion-card,
  .step,
  .chat-card,
  .carte-lieux {
    border-radius: 14px;
  }

  .ride-card:hover,
  .annonce:hover,
  .produit:hover,
  .produit-carte:hover,
  .communaute-carte:hover,
  .stat-card:hover,
  .gestion-card:hover,
  .step:hover {
    transform: none;
  }

  .field input,
  .field select,
  .field textarea,
  .gestion-field input,
  .gestion-field select,
  .gestion-field textarea,
  .communaute-barre input,
  .communaute-barre select,
  input[type="search"] {
    font-size: 16px;
    min-height: 50px;
    border-radius: 12px;
  }

  .communaute-onglet {
    min-height: 44px;
    flex: 0 0 auto;
  }

  .cta-band {
    padding: 22px 18px;
  }

  .cta-band .btn {
    width: 100%;
    margin-top: 16px;
  }

  .footer-links {
    gap: 12px 18px;
  }

  .footer-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  .site-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 10px;
  }
}

/* ---------- 17. Très petits écrans ---------- */

@media (max-width: 400px) {
  .hero-brand-main {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero-stats dd {
    font-size: 22px;
  }

  .hero-stats dt {
    font-size: 8px;
  }

  .btn {
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
  }
}

/* ---------- 18. Impression ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .hero-visual,
  .float-chip,
  .hero-spec,
  .cta-band {
    display: none !important;
  }
}
