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

/* =========================================================
   RIDER MONTRÉAL — COUCHE « STREET RACING » (2026)
   ---------------------------------------------------------
   Cette feuille arrive APRÈS style.css, identite.css et le
   thème dynamique (/api/theme.css). Elle ne modifie aucune
   structure, aucun identifiant et aucun gestionnaire JS :
   elle habille uniquement l’existant (noir profond, rouge
   néon, gris métallique, typographie de course, HUD).
   ========================================================= */

:root {
  --neon: #ff202e;
  --neon-rgb: 255, 43, 43;
  --neon-hot: #ff3a46;
  --neon-deep: #a80016;
  --ink: #07070a;
  --metal-0: #0b0c10;
  --metal-1: #111319;
  --metal-2: #171a21;
  --metal-3: #1f232c;
  --metal-4: #2a2f3a;
  --metal-edge: #353b47;
  --chrome: #c7cdd8;
  --racing-font: 'Barlow Condensed', var(--font-display), 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --cut: 14px;
  --hud-line: rgba(255, 43, 43, 0.28);
  --metal-panel: linear-gradient(155deg, #191d25 0%, #12141a 46%, #0c0d11 100%);
  --glow-neon: 0 0 28px rgba(255, 43, 43, 0.38);
}

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

html {
  background: var(--ink);
}

body {
  background: var(--ink);
  color: #f7f8fa;
  letter-spacing: 0.005em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 620px at 84% -8%, rgba(255, 43, 43, 0.2), transparent 60%),
    radial-gradient(900px 520px at -10% 18%, rgba(255, 43, 43, 0.08), transparent 68%),
    radial-gradient(760px 460px at 50% 118%, rgba(255, 90, 61, 0.1), transparent 72%),
    linear-gradient(180deg, #0a0a0e 0%, #07070a 52%, #050507 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    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 148px, rgba(255, 43, 43, 0.05) 148px 149px);
  background-size: 68px 68px, 68px 68px, auto;
  mask-image: radial-gradient(ellipse at 50% 6%, #000 16%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 6%, #000 16%, transparent 80%);
}

.page-watermark {
  opacity: 0.1;
  filter: drop-shadow(0 0 110px rgba(255, 43, 43, 0.4));
  background-position: center 42%;
}

::selection {
  background: var(--neon);
  color: #0a0507;
}

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

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: #0a0b0f;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a404c, #22262f);
  border: 2px solid #0a0b0f;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon), var(--neon-deep));
}

.container {
  width: min(1220px, 100% - 44px);
}

h1,
h2,
h3,
h4 {
  font-family: var(--racing-font);
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.accent,
.hero h1 .accent {
  color: var(--neon);
  text-shadow: 0 0 34px rgba(255, 43, 43, 0.45);
}

.muted {
  color: #9aa3b2;
}

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

.site-header {
  background: linear-gradient(180deg, rgba(9, 9, 12, 0.94), rgba(9, 9, 12, 0.76));
  border-bottom: 1px solid rgba(255, 43, 43, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon) 22%, #ff5a64 50%, var(--neon) 78%, transparent);
  opacity: 0.9;
  animation: hudLine 7s ease-in-out infinite;
}

.header-inner {
  min-height: 78px;
}

.brand {
  gap: 13px;
}

.brand-mark--logo {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(255, 43, 43, 0.22), rgba(255, 43, 43, 0.02));
  box-shadow:
    0 0 0 1px rgba(255, 43, 43, 0.45),
    0 0 26px rgba(255, 43, 43, 0.22);
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%);
}

.brand-logo {
  border-radius: 0;
}

.brand-text {
  font-family: var(--racing-font);
  font-style: italic;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-text span {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.46em;
  color: var(--neon);
  margin-top: 4px;
}

@media (min-width: 901px) {
  .site-nav {
    gap: 2px;
  }

  .site-nav a.nav-link {
    border-radius: 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #b7bfcc;
    padding: 10px 12px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }

  .site-nav a.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 43, 43, 0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .site-nav a.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  .site-nav a.nav-link:hover::before {
    opacity: 1;
  }

  .site-nav a.nav-link[aria-current='page'] {
    color: #fff;
    background: linear-gradient(135deg, #ff3a46, var(--neon) 46%, #a80016);
    box-shadow: 0 10px 26px -14px rgba(255, 43, 43, 0.95);
  }

  .site-nav a.nav-link[aria-current='page']::after {
    display: none;
  }
}

.nav-auth {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-user {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.nav-toggle {
  border-radius: 2px;
  border: 1px solid rgba(255, 43, 43, 0.4);
  background: var(--metal-2);
  font-family: var(--mono);
  letter-spacing: 0.16em;
  color: #fff;
}

.nav-toggle .bars span {
  background: var(--neon);
}

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

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: var(--racing-font);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.18s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(255, 43, 43, 0.55);
}

.btn::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(18deg);
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

.btn-primary {
  background: linear-gradient(115deg, #ff3a46 0%, var(--neon) 42%, #a80016 100%);
  color: #fff;
  border-color: rgba(255, 138, 92, 0.5);
  box-shadow:
    0 14px 34px -18px rgba(255, 43, 43, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px -18px rgba(255, 43, 43, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-ghost {
  background: linear-gradient(160deg, #1c2029, #101218);
  border-color: var(--metal-edge);
  color: #e8ecf2;
}

.btn-ghost:hover {
  border-color: rgba(255, 43, 43, 0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 43, 43, 0.18), 0 14px 30px -22px rgba(255, 43, 43, 0.8);
}

.btn-danger {
  background: linear-gradient(140deg, #3a0d12, #1b0709);
  border-color: rgba(255, 43, 43, 0.5);
  color: #ff9b9b;
}

.btn-danger:hover {
  background: linear-gradient(140deg, #5a1017, #2a090c);
  color: #ffd0d0;
}

.btn-small {
  font-size: 0.82rem;
  padding: 9px 16px;
  letter-spacing: 0.1em;
}

/* ---------- Kickers et titres de section ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #ff8a76;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 0;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.9);
}

.section {
  padding: 96px 0;
}

.section-head h2,
.page-head h1 {
  font-family: var(--racing-font);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.94;
}

.section-head h2::after,
.page-head h1::after {
  content: '';
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.link-arrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8f97;
}

.link-arrow:hover {
  color: #fff;
}

/* ---------- Héros ---------- */

.hero {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0 clamp(54px, 6vw, 84px);
  min-height: min(88svh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 78% 18%, rgba(255, 43, 43, 0.18), transparent 64%),
    linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.55) 82%, var(--ink));
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 43, 0.55), transparent);
}

.hero-grid {
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
}

.hero-bolt {
  position: absolute;
  top: -70px;
  left: -90px;
  width: clamp(260px, 34vw, 460px);
  z-index: -1;
  fill: rgba(255, 43, 43, 0.1);
  filter: drop-shadow(0 0 40px rgba(255, 43, 43, 0.35));
  transform: rotate(-6deg);
  animation: boltField 9s ease-in-out infinite;
}

.hero-brand {
  position: relative;
  margin: 0;
  font-family: var(--racing-font);
  font-style: italic;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero-brand-main {
  display: block;
  font-size: clamp(3.4rem, 9.6vw, 7.4rem);
  color: #ffffff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 255, 255, 0.08);
}

.hero-brand-sub {
  display: block;
  font-size: clamp(2.1rem, 6.1vw, 4.8rem);
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #ff3a46, var(--neon) 38%, #a80016 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 120, 96, 0.18);
  filter: drop-shadow(0 0 26px rgba(255, 43, 43, 0.35));
}

.hero-brand::after {
  content: '';
  position: absolute;
  top: 14%;
  right: 2%;
  width: clamp(68px, 11vw, 150px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon));
  transform: skewX(-32deg);
  opacity: 0.75;
}

.hero-slogan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 22px;
  font-family: var(--racing-font);
  font-size: clamp(1.16rem, 2.5vw, 1.72rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #eef1f6;
}

.hero-slogan span {
  display: inline-block;
}

.hero-slogan span + span::before {
  content: '/';
  margin-right: 12px;
  color: rgba(255, 43, 43, 0.85);
  font-style: italic;
}

.hero .lede {
  margin-top: 20px;
  max-width: 52ch;
  color: #a8b0bd;
  font-size: 1rem;
  font-weight: 300;
}

.hero-actions {
  margin-top: 30px;
  gap: 12px;
}

.hero-actions .btn {
  padding: 15px 30px;
}

.hero-actions .btn-primary {
  letter-spacing: 0.16em;
}

.hero-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #8d97a6;
  margin-top: 16px;
}

.hero-note strong {
  color: var(--neon);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.hero-stats div {
  position: relative;
  padding: 16px 18px;
  background: linear-gradient(165deg, #151922, #0d0e13);
  display: grid;
  gap: 4px;
}

.hero-stats div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #8b94a3;
}

.hero-stats dd {
  font-family: var(--racing-font);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 43, 43, 0.5);
}

.hero-stats dd::after {
  content: '';
}

/* Visuel du héros */

.hero-visual::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 43, 43, 0.26), transparent 66%);
  filter: blur(20px);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: auto -18px -22px 40px;
  height: 60%;
  z-index: -1;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 43, 43, 0.14) 22px 24px);
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, #000);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
}

.hero-photo {
  border-radius: 3px;
  border: 1px solid rgba(255, 43, 43, 0.38);
  background: #08080c;
  transform: perspective(1200px) rotateY(-4deg) rotate(-1deg);
  box-shadow:
    0 44px 90px -38px rgba(0, 0, 0, 0.98),
    0 0 60px -24px rgba(255, 43, 43, 0.6);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.hero-photo:hover {
  transform: perspective(1200px) rotateY(0deg) rotate(0deg);
}

.hero-photo img {
  filter: saturate(1.08) contrast(1.06) brightness(0.92);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.34), transparent 26%, transparent 62%, rgba(7, 7, 10, 0.78)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: normal;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 43, 43, 0.8);
  border-left-color: rgba(255, 43, 43, 0.8);
  clip-path: polygon(0 0, 46px 0, 46px 1px, 1px 1px, 1px 46px, 0 46px, 0 0, 100% 0, 100% 46px, calc(100% - 1px) 46px, calc(100% - 1px) 1px, calc(100% - 46px) 1px, calc(100% - 46px) 0);
  pointer-events: none;
}

.hero-hud {
  position: absolute;
  left: 26px;
  bottom: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: rgba(9, 9, 13, 0.82);
  border: 1px solid rgba(255, 43, 43, 0.4);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9edf4;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.hero-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.22);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.float-chip {
  border-radius: 2px;
  border: 1px solid rgba(255, 43, 43, 0.35);
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #dfe4ec;
  padding: 9px 13px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.float-chip .dot {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.9);
}

/* Bandeau défilant */

.racing-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 43, 43, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 43, 43, 0.14), transparent 30%, transparent 70%, rgba(255, 43, 43, 0.14)),
    #0a0a0e;
  padding: 11px 0;
}

.racing-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: tickerSlide 32s linear infinite;
  font-family: var(--racing-font);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cfd5df;
}

.racing-ticker-track i {
  width: 6px;
  height: 6px;
  background: var(--neon);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.9);
}

.racing-ticker-track span:nth-child(4n + 1) {
  color: #fff;
}

/* ---------- Cartes de sortie ---------- */

.ride-card {
  position: relative;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--metal-panel);
  box-shadow: 0 24px 50px -40px rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  overflow: hidden;
}

.ride-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
  opacity: 0.9;
}

.ride-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 43, 43, 0.16), transparent 68%);
  pointer-events: none;
}

.ride-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 43, 0.45);
  box-shadow:
    0 30px 60px -34px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 43, 43, 0.14),
    0 0 44px -18px rgba(255, 43, 43, 0.5);
}

.ride-date {
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(255, 43, 43, 0.14), rgba(255, 43, 43, 0.03));
  border: 1px solid rgba(255, 43, 43, 0.3);
}

.ride-date .day {
  font-family: var(--racing-font);
  font-weight: 800;
  font-size: 1.75rem;
  color: #fff;
}

.ride-date .dow,
.ride-date .month {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.tag {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.tag--debutant {
  color: #ff8f97;
  border-color: rgba(255, 43, 43, 0.45);
  background: rgba(255, 43, 43, 0.1);
}

.tag--you {
  color: #fff;
  border-color: rgba(255, 43, 43, 0.6);
  background: rgba(255, 43, 43, 0.14);
}

.ride-body h3 {
  font-family: var(--racing-font);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ride-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #98a1b0;
}

.ride-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
  background: #232833;
  border-color: #12141a;
  color: var(--neon);
  font-family: var(--mono);
}

.empty-state {
  border-radius: 3px;
  border: 1px dashed rgba(255, 43, 43, 0.35);
  background: rgba(255, 255, 255, 0.015);
}

.empty-state strong {
  font-family: var(--racing-font);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

/* ---------- Comment ça marche ---------- */

.steps {
  gap: 14px;
}

.step {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(28, 32, 41, 0.85), rgba(12, 13, 18, 0.92));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid rgba(255, 43, 43, 0.4);
  background: rgba(255, 43, 43, 0.08);
  font-family: var(--racing-font);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.step h3 {
  font-family: var(--racing-font);
  font-size: 1.3rem;
  font-weight: 700;
}

.step::after {
  background: linear-gradient(90deg, var(--neon), transparent);
}

/* ---------- Bandeau d’appel ---------- */

.cta-band {
  border-radius: 3px;
  border: 1px solid rgba(255, 43, 43, 0.35);
  background:
    radial-gradient(560px 240px at 12% 18%, rgba(255, 43, 43, 0.24), transparent 68%),
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 43, 43, 0.05) 26px 28px),
    linear-gradient(130deg, #171016, #0a0a0e 68%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.cta-band::after {
  background: linear-gradient(90deg, var(--neon), transparent 70%);
}

.cta-band h2 {
  font-family: var(--racing-font);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 0.95;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 43, 43, 0.24);
  background: linear-gradient(180deg, rgba(9, 9, 13, 0.86), rgba(5, 5, 7, 0.96));
}

.site-footer::before {
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

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

.footer-bottom {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #7f8896;
}

.footer-brand p {
  color: #98a1b0;
}

/* ---------- Formulaires et cartes ---------- */

.form-card,
.auth-form-wrap,
.card {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--metal-panel);
  box-shadow: 0 30px 60px -46px rgba(0, 0, 0, 0.95);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

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

.field input,
.field select,
.field textarea,
.gestion-field input[type='text'],
.gestion-field input[type='url'],
.gestion-field input[type='number'],
.gestion-field input[type='search'],
.gestion-field input[type='datetime-local'],
.gestion-field select,
.gestion-field textarea,
.gestion-toolbar input,
.gestion-toolbar select,
.gestion-inline input,
.gestion-inline select,
.gestion-inline textarea {
  border-radius: 2px;
  border: 1px solid #2c313b;
  background: linear-gradient(170deg, #14171e, #0d0f14);
  color: #f2f4f8;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.gestion-field input:focus-visible,
.gestion-field select:focus-visible,
.gestion-field textarea:focus-visible {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.18);
}

.auth-visual {
  border-radius: 3px;
  border-color: rgba(255, 43, 43, 0.25);
}

.auth-layout .eyebrow {
  color: #ff8f97;
}

/* ---------- Tableau de bord (cockpit) ---------- */

body[data-page='gestion'] {
  background: var(--ink);
}

.gestion-shell {
  gap: 18px;
}

.gestion-sidebar {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #14171e, #0b0c10);
  padding: 18px 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.gestion-sidebar-title {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--neon);
}

.gestion-menu-link {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: left;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gestion-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gestion-menu-link.is-active {
  background: linear-gradient(100deg, rgba(255, 43, 43, 0.24), rgba(255, 43, 43, 0.04));
  border-color: rgba(255, 43, 43, 0.42);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--neon);
}

.gestion-sidebar-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gestion-sidebar-note strong {
  font-family: var(--racing-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gestion-topbar {
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 2px solid var(--neon);
  background: linear-gradient(120deg, #15181f, #0b0c10);
  border-radius: 2px;
}

.gestion-eyebrow {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: #ff8f97;
}

.gestion-eyebrow::before {
  content: '// ';
  color: var(--neon);
}

.gestion-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.gestion-panel-head h1 {
  font-family: var(--racing-font);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.gestion-panel-head h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.gestion-card {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--metal-panel);
}

.gestion-card h2 {
  font-family: var(--racing-font);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gestion-stat {
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 43, 43, 0.1), transparent 55%),
    linear-gradient(170deg, #1a1e26, #0d0f14);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.gestion-stat strong {
  font-family: var(--racing-font);
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 43, 43, 0.45);
}

.gestion-stat span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #99a2b0;
}

.gestion-actions .btn {
  letter-spacing: 0.1em;
}

.gestion-audit,
.gestion-list,
.gestion-table {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.gestion-dialog {
  border-radius: 3px;
  border: 1px solid rgba(255, 43, 43, 0.4);
  background: #101218;
  box-shadow: 0 40px 90px -40px #000;
}

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

.admin-table {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.admin-table th {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #ff8f97;
  border-bottom: 1px solid rgba(255, 43, 43, 0.28);
}

.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table tr:hover td {
  background: rgba(255, 43, 43, 0.06);
}

.admin-summary,
.admin-audit {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--metal-panel);
}

.admin-role-note {
  border-left: 2px solid var(--neon);
  background: rgba(255, 43, 43, 0.06);
}

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

.boutique-hero::before {
  background:
    radial-gradient(720px 360px at 82% 0%, rgba(255, 43, 43, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.2), transparent 70%);
}

.boutique-hero::after {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 43, 43, 0.18);
}

.boutique-annonce,
.boutique-ouverture {
  border-radius: 2px;
  border: 1px solid rgba(255, 43, 43, 0.35);
  background: linear-gradient(120deg, rgba(255, 43, 43, 0.12), rgba(10, 10, 14, 0.6));
}

.boutique-filtre {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.boutique-filtre[aria-pressed='true'] {
  background: linear-gradient(135deg, #ff3a46, #a80016);
  color: #fff;
}

/* ---------- Pages construites ---------- */

.builder-hero {
  border-radius: 3px;
  border-color: rgba(255, 43, 43, 0.28);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 43, 43, 0.2), transparent 62%),
    linear-gradient(160deg, #171b23, #0b0c10);
}

/* ---------- Divers ---------- */

.toast {
  border-radius: 2px;
  border: 1px solid rgba(255, 43, 43, 0.5);
  background: rgba(12, 13, 18, 0.96);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  box-shadow: 0 0 30px -8px rgba(255, 43, 43, 0.5);
}

.toast--error {
  border-color: rgba(255, 107, 107, 0.6);
}

.site-announcement {
  background: linear-gradient(90deg, #a80016, var(--neon) 60%, #ff3a46);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apercu-banner {
  background: linear-gradient(90deg, #7a0a12, #a80016);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.notice {
  border-radius: 2px;
  border: 1px solid rgba(255, 43, 43, 0.4);
  background: rgba(255, 43, 43, 0.08);
}

.form-error,
.error {
  border-left: 2px solid var(--neon);
}

/* ---------- Animations ---------- */

@keyframes boltField {
  0%,
  86%,
  100% {
    opacity: 0.85;
    transform: rotate(-6deg) scale(1);
  }
  88% {
    opacity: 0.35;
  }
  90% {
    opacity: 1;
    transform: rotate(-6deg) scale(1.03);
  }
  92% {
    opacity: 0.5;
  }
  94% {
    opacity: 0.95;
    transform: rotate(-6deg) scale(1);
  }
}

@keyframes hudLine {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 43, 43, 0.06);
  }
}

@keyframes tickerSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bolt,
  .hero-hud-dot,
  .site-header::before,
  .racing-ticker-track,
  .btn::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-photo {
    transform: none;
  }
}

/* ---------- Adaptations ---------- */

@media (max-width: 1080px) {
  .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .hero-photo {
    transform: none;
  }

  .hero-bolt {
    top: -40px;
    left: -60px;
    width: 240px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1220px, 100% - 30px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-brand-main {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-brand-sub {
    font-size: clamp(1.9rem, 9.4vw, 3rem);
  }

  .hero-slogan {
    font-size: 1.02rem;
    letter-spacing: 0.07em;
    gap: 2px 10px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats div {
    padding: 12px 12px;
  }

  .hero-stats dt {
    font-size: 0.5rem;
  }

  .section {
    padding: 64px 0;
  }

  .ride-grid,
  .ride-grid--three,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    padding: 38px 24px;
  }

  .gestion-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .gestion-sidebar {
    position: static;
    clip-path: none;
  }

  .gestion-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .gestion-menu-link {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    scroll-snap-align: start;
  }

  .gestion-menu-link.is-active {
    box-shadow: inset 0 -2px 0 var(--neon);
  }

  .gestion-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-photo::after {
    inset: 8px;
  }

  .racing-ticker-track {
    font-size: 0.78rem;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .hero-brand::after {
    display: none;
  }

  .hero-stats dd {
    font-size: 1.5rem;
  }

  .hero-hud {
    left: 14px;
    bottom: 14px;
    font-size: 0.52rem;
  }
}

/* =========================================================
   ADMINISTRATION — LIEUX DE RENCONTRE (CARTE DES RIDERS)
   ========================================================= */

.admin-points {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 96px;
}

.admin-points-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-points-head h2 {
  margin: 0 0 6px;
  font-family: var(--racing-font);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-points-head p {
  margin: 0;
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(200, 208, 220, 0.7);
}

.admin-points-head a {
  color: #ff8a80;
  text-decoration: underline;
}

.admin-points-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-points-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.28));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.admin-points-form .field--full,
.admin-points-form .form-actions,
.admin-points-form .form-error,
.admin-points-form .hint,
.admin-points-form .admin-check {
  grid-column: 1 / -1;
}

.admin-points-form input,
.admin-points-form select,
.admin-points-form textarea {
  width: 100%;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.82);
  cursor: pointer;
}

.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--neon);
}

.admin-points-list h3,
.admin-rides-points h3 {
  margin: 0 0 6px;
  font-family: var(--racing-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-points-count {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 138, 128, 0.8);
}

.admin-points-items {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.admin-point {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 15, 0.6);
  border-left: 3px solid rgba(255, 43, 43, 0.55);
}

.admin-point-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-point-head h4 {
  margin: 0;
  font-family: var(--racing-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-point-statut {
  flex: none;
  padding: 2px 7px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-point-statut.is-publie {
  color: #7df3a5;
}

.admin-point-statut.is-brouillon {
  color: #ff6a00;
}

.admin-point-adresse {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(214, 221, 232, 0.78);
}

.admin-point-meta {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: rgba(184, 192, 205, 0.55);
}

.admin-point-desc {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(184, 192, 205, 0.62);
}

.admin-point-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-points-items::-webkit-scrollbar {
  width: 8px;
}

.admin-points-items::-webkit-scrollbar-thumb {
  background: rgba(255, 43, 43, 0.4);
}

.admin-rides-points {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 15, 0.5);
}

.admin-rides-points p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(200, 208, 220, 0.66);
  max-width: 72ch;
}

.admin-rides-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.admin-rides-row .field {
  flex: 1 1 240px;
  margin: 0;
}

.admin-rides-row select {
  width: 100%;
}

@media (max-width: 1000px) {
  .admin-points-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-points-items {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .admin-points-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .admin-rides-row {
    align-items: stretch;
  }

  .admin-rides-row .field {
    flex-basis: 100%;
  }
}
