/* =========================================================
   RIDER MONTRÉAL — IDENTITÉ « LIGNE ROUGE » (2026)
   ---------------------------------------------------------
   Couche de marque unique, chargée en dernier sur toutes les
   pages, après style.css, identite.css, /api/theme.css et
   racing.css.

   Elle ne modifie aucune structure HTML, aucun identifiant,
   aucun gestionnaire JS et aucune donnée. Elle unifie
   l’habillage : carbone, acier, rouge électrique, formes
   chanfreinées, typographie de course.

   Palette officielle :
   carbone #08090B · graphite #15171C · rouge #FF202E
   rouge profond #A80016 · blanc glacier #F5F7FA
   gris métallique #858B96 · orange alerte #FF6A00
   ========================================================= */

:root {
  --bg: #08090b;
  --bg-2: #0b0d10;
  --surface: #15171c;
  --surface-2: #1a1d23;
  --line: #24272f;
  --line-strong: #343a45;
  --text: #f5f7fa;
  --muted: #858b96;

  /* Accent historique : le nom est conservé pour ne rien casser. */
  --green: #ff202e;
  --green-soft: rgba(255, 32, 46, 0.1);
  --green-glow: rgba(255, 32, 46, 0.28);
  --accent: #ff202e;
  --accent-deep: #a80016;
  --accent-rgb: 255, 32, 46;
  --alert: #ff6a00;
  --steel: #c9cfd9;
  --danger: #ff202e;
  --warning: #ff6a00;

  --radius: 4px;
  --radius-sm: 2px;
  --cut: 14px;
  --header-h: 74px;

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

  --metal-panel: linear-gradient(158deg, #191d25 0%, #12141a 48%, #0c0d11 100%);
  --panel: linear-gradient(158deg, #191d25 0%, #12141a 48%, #0c0d11 100%);
  --metal-edge: #353b47;
  --shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.95);
  --glow-neon: 0 0 30px rgba(255, 32, 46, 0.34);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.004em;
}

body::before {
  background:
    radial-gradient(1100px 600px at 82% -12%, rgba(255, 32, 46, 0.17), transparent 62%),
    radial-gradient(820px 520px at -8% 24%, rgba(255, 32, 46, 0.07), transparent 70%),
    radial-gradient(900px 520px at 50% 116%, rgba(168, 0, 22, 0.1), transparent 72%),
    linear-gradient(180deg, #0a0b0e 0%, #08090b 54%, #060708 100%);
}

body::after {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    repeating-linear-gradient(116deg, transparent 0 148px, rgba(255, 32, 46, 0.045) 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%);
}

::selection {
  background: var(--accent);
  color: #08090b;
}

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

.page-watermark {
  opacity: 0.12;
  /* L’emblème officiel est une image sur fond noir : « screen » efface ce fond. */
  mix-blend-mode: screen;
  filter: none;
  background-size: clamp(240px, 42vmin, 520px);
}

.container {
  width: min(1240px, 100% - 48px);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.005em;
}

h1 {
  line-height: 0.84;
}

h2 {
  line-height: 0.92;
}

h3 {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eyebrow {
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 12px rgba(255, 32, 46, 0.55);
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(255, 32, 46, 0.32);
}

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

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

.site-header {
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.96), rgba(8, 9, 11, 0.8));
  border-bottom: 1px solid rgba(255, 32, 46, 0.24);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.site-header::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #ff6a5e 50%, var(--accent) 80%, transparent);
  opacity: 0.85;
}

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

.brand {
  gap: 12px;
}

.brand-mark--logo {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(38, 120, 255, 0.45));
}

.brand-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  line-height: 0.82;
  color: var(--text);
}

.brand-text span {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--steel);
  margin-top: 6px;
  transform: translateX(2px);
}

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

  .site-nav a.nav-link {
    min-height: 44px;
    padding: 12px 11px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    color: #aab2be;
    border-radius: 0;
    clip-path: none;
  }

  .site-nav a.nav-link::before {
    background: linear-gradient(180deg, transparent 62%, rgba(255, 32, 46, 0.16) 62%);
    clip-path: none;
  }

  .site-nav a.nav-link:hover {
    color: #fff;
    background: transparent;
  }

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

  .site-nav a.nav-link[aria-current='page']::after {
    display: block;
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(255, 32, 46, 0.8);
  }

  .nav-auth {
    margin-left: 10px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  .nav-auth .btn-small {
    min-height: 40px;
    padding: 9px 14px;
  }
}

/* Portables étroits : la navigation complète doit tenir sans débordement. */
@media (min-width: 901px) and (max-width: 1120px) {
  .site-nav a.nav-link {
    padding: 12px 7px;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }

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

  .brand {
    gap: 9px;
  }

  .brand-text {
    font-size: 1.16rem;
  }

  .nav-auth {
    margin-left: 6px;
    padding-left: 9px;
    gap: 7px;
  }

  .nav-auth .btn-small {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

.nav-user {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.nav-toggle {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--text);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle .bars span {
  background: var(--accent);
  border-radius: 0;
}

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

.btn {
  position: relative;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    transform 0.16s cubic-bezier(0.22, 0.9, 0.24, 1),
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.btn-primary {
  background: linear-gradient(112deg, #ff202e 0%, #e0001c 46%, #a80016 100%);
  border-color: rgba(255, 90, 100, 0.55);
  color: #08090b;
  box-shadow:
    0 16px 36px -18px rgba(255, 32, 46, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(112deg, #ff3a46 0%, #ff202e 52%, #c4001a 100%);
  color: #08090b;
  box-shadow:
    0 22px 44px -18px rgba(255, 32, 46, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: linear-gradient(158deg, #1a1e25, #0c0e12);
  border-color: var(--metal-edge);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 32, 46, 0.6);
  color: #fff;
  background: linear-gradient(158deg, #222832, #101218);
  box-shadow: 0 0 0 1px rgba(255, 32, 46, 0.18), 0 16px 30px -22px rgba(255, 32, 46, 0.8);
}

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

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

.btn-small {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

.btn[disabled] {
  opacity: 0.42;
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.link-arrow::after {
  background: var(--accent);
}

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

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 82px) 0 clamp(48px, 5vw, 74px);
  min-height: min(86svh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  background:
    radial-gradient(820px 460px at 74% 12%, rgba(255, 32, 46, 0.16), transparent 64%),
    radial-gradient(600px 420px at 6% 62%, rgba(168, 0, 22, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(6, 7, 8, 0.6) 84%, var(--bg));
}

.hero::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 32, 46, 0.55), transparent);
}

.hero-grid {
  gap: clamp(32px, 4.4vw, 64px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

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

.hero-bolt {
  display: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero-kicker::before {
  content: '';
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: skewX(-28deg);
  box-shadow: 0 0 14px rgba(255, 32, 46, 0.7);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-brand-main {
  display: block;
  font-size: clamp(4.1rem, 10.2vw, 8.6rem);
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 0 70px rgba(255, 255, 255, 0.07);
}

.hero-brand-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 3.9vw, 3rem);
  letter-spacing: 0.24em;
  color: transparent;
  background: linear-gradient(100deg, #f5f7fa 0%, #858b96 46%, #3a4048 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.08));
}

.hero-brand::after {
  width: clamp(80px, 11vw, 150px);
  height: 3px;
  top: 32%;
  right: 0;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.9;
}

.hero-slogan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 12px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.4vw, 1.62rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eef1f6;
}

.hero-slogan span + span::before {
  content: '//';
  margin-right: 10px;
  color: var(--accent);
  font-size: 0.72em;
}

.hero .lede {
  margin-top: 20px;
  max-width: 48ch;
  color: #a8b0bb;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

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

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

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

.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8592;
}

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

.hero-stats div {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: linear-gradient(165deg, #171b22, #0c0e12);
}

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

.hero-stats dt {
  order: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #8b94a0;
}

.hero-stats dd {
  order: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 32, 46, 0.4);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 32, 46, 0.28), transparent 66%);
}

.hero-visual::after {
  inset: auto -16px -24px 48px;
  background: repeating-linear-gradient(115deg, transparent 0 20px, rgba(255, 32, 46, 0.16) 20px 22px);
  opacity: 0.55;
}

.hero-photo {
  border: 1px solid rgba(255, 32, 46, 0.42);
  border-radius: 0;
  background: #060708;
  transform: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  box-shadow:
    0 44px 90px -38px rgba(0, 0, 0, 0.98),
    0 0 70px -26px rgba(255, 32, 46, 0.55);
}

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

.hero-photo img {
  aspect-ratio: 3 / 2;
  filter: saturate(0.8) contrast(1.08) brightness(0.92);
}

.hero-photo::before {
  background:
    linear-gradient(118deg, rgba(8, 9, 11, 0.52) 0%, rgba(8, 9, 11, 0.12) 42%, transparent 64%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.82) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 32, 46, 0.1), transparent 40%),
    radial-gradient(circle at 72% 28%, rgba(255, 32, 46, 0.2), transparent 62%);
  mix-blend-mode: normal;
  opacity: 1;
}

.hero-photo::after {
  inset: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 32, 46, 0.85);
  border-left-color: rgba(255, 32, 46, 0.85);
  clip-path: polygon(0 0, 52px 0, 52px 1px, 1px 1px, 1px 52px, 0 52px, 0 0, 100% 0, 100% 52px, calc(100% - 1px) 52px, calc(100% - 1px) 1px, calc(100% - 52px) 1px, calc(100% - 52px) 0);
}

.hero-hud {
  left: 22px;
  bottom: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 32, 46, 0.45);
  border-radius: 0;
  background: rgba(8, 9, 11, 0.85);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #eef1f5;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hero-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 32, 46, 0.2);
}

.hero-spec {
  position: absolute;
  right: -10px;
  top: 26px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(8, 9, 11, 0.86);
  border-left: 2px solid var(--accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero-spec-label {
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  color: #858b96;
}

.hero-spec-value {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #f5f7fa;
}

.float-chip {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(10, 12, 15, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.float-chip .dot {
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 32, 46, 0.8);
}

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

.racing-ticker {
  border-top: 1px solid rgba(255, 32, 46, 0.22);
  border-bottom: 1px solid rgba(255, 32, 46, 0.22);
  background: linear-gradient(90deg, #0b0d10, #15171c 50%, #0b0d10);
}

.racing-ticker-track {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #d7dce4;
}

.racing-ticker-track i {
  background: var(--accent);
  transform: skewX(-28deg);
}

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

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

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  text-transform: uppercase;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: skewX(-28deg);
  box-shadow: 0 0 16px rgba(255, 32, 46, 0.5);
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

.ride-card {
  position: relative;
  gap: 18px;
  padding: 22px;
  background: var(--metal-panel);
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition:
    transform 0.2s cubic-bezier(0.22, 0.9, 0.24, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ride-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 54%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.55;
  transition: opacity 0.2s ease, width 0.3s ease;
}

.ride-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 32, 46, 0.5);
  box-shadow: 0 26px 54px -30px rgba(255, 32, 46, 0.38);
}

.ride-card:hover::before {
  width: 100%;
  opacity: 1;
}

.ride-date {
  flex: 0 0 58px;
  height: 78px;
  border: 1px solid rgba(255, 32, 46, 0.28);
  border-radius: 0;
  background: linear-gradient(165deg, rgba(255, 32, 46, 0.12), rgba(255, 32, 46, 0.02));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.ride-date .dow,
.ride-date .month {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #9aa3ae;
}

.ride-date .day {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 32, 46, 0.5);
}

.ride-body h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.36rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ride-meta,
.ride-desc {
  color: #9aa3ae;
  font-size: 0.86rem;
}

.ride-meta span + span::before {
  background: rgba(255, 32, 46, 0.5);
}

.ride-foot {
  border-top-color: var(--line);
}

.riders {
  color: #9aa3ae;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.tag {
  border-radius: 0;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: #aab2be;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.tag--debutant {
  color: var(--steel);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.tag--intermediaire {
  color: #f5f7fa;
  border-color: rgba(201, 207, 217, 0.4);
  background: rgba(201, 207, 217, 0.08);
}

.tag--avance {
  color: #ff8f97;
  border-color: rgba(255, 32, 46, 0.45);
  background: rgba(255, 32, 46, 0.1);
}

.tag--you {
  color: var(--accent);
  border-color: rgba(255, 32, 46, 0.45);
}

.tag--past,
.tag--full {
  color: #737b87;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Étapes et bandeau final ---------- */

.steps {
  gap: 14px;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--metal-panel);
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.step::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 72%);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 32, 46, 0.5);
  border-radius: 0;
  background: rgba(255, 32, 46, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.step h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.42rem;
  text-transform: uppercase;
}

.step p {
  color: #9aa3ae;
  font-size: 0.92rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 32, 46, 0.32);
  border-radius: 0;
  background:
    linear-gradient(115deg, rgba(255, 32, 46, 0.16), transparent 52%),
    linear-gradient(158deg, #191d25, #0b0d10 68%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.cta-band::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 32, 46, 0.2) 18px 20px);
  transform: rotate(8deg);
  opacity: 0.55;
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

.cta-band p {
  color: #a8b0bb;
}

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

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

.field input,
.field select,
.field textarea,
.admin-select {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #0b0d10;
  color: var(--text);
  min-height: 46px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 32, 46, 0.16);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7d8592;
}

/* Une erreur vide ne doit afficher aucun trait ; le trait n’apparaît qu’avec un message. */
.field .error {
  min-height: 0;
  padding-left: 0;
  border-left: 0;
}

.field .error:not(:empty) {
  min-height: 1em;
  padding-left: 10px;
  border-left: 2px solid var(--alert);
}

.security-note {
  border: 1px solid rgba(255, 32, 46, 0.26);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: rgba(255, 32, 46, 0.05);
  color: #c3cad4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.security-note strong {
  color: #ff8f97;
}

.field .hint {
  color: #7d8592;
  font-size: 0.76rem;
}

.form-card,
.auth-form-wrap {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.form-card h2 {
  font-style: italic;
  text-transform: uppercase;
}

.form-success {
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: rgba(255, 32, 46, 0.07);
  color: #f5f7fa;
}

.form-error {
  border-left: 3px solid var(--alert);
  border-radius: 0;
  background: rgba(255, 106, 0, 0.08);
}

/* ---------- Messages, badges, notices ---------- */

.toast {
  border: 1px solid rgba(255, 32, 46, 0.45);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: #12151a;
  color: var(--text);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.toast--error {
  border-color: rgba(255, 106, 0, 0.55);
  border-left-color: var(--alert);
}

.notice {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: rgba(255, 32, 46, 0.05);
  color: #d7dce4;
}

.badge,
.gestion-badge {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.badge--role.badge--owner {
  color: #ff8f97;
  border-color: rgba(255, 32, 46, 0.55);
  background: rgba(255, 32, 46, 0.12);
}

.badge--role.badge--admin,
.gestion-badge--admin {
  color: #ffd0b8;
  border-color: rgba(255, 106, 0, 0.45);
  background: rgba(255, 106, 0, 0.08);
}

.badge--role.badge--moderator,
.gestion-badge--moderator {
  color: var(--steel);
  border-color: rgba(201, 207, 217, 0.4);
  background: rgba(201, 207, 217, 0.08);
}

.badge--role.badge--member {
  color: #aab2be;
  border-color: var(--line-strong);
}

.badge--status.badge--active {
  color: #f5f7fa;
  border-color: rgba(201, 207, 217, 0.4);
}

.badge--status.badge--suspended,
.badge--status.badge--banned {
  color: #ffb3b8;
  border-color: rgba(255, 32, 46, 0.45);
  background: rgba(255, 32, 46, 0.1);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.015);
  color: #9aa3ae;
}

/* ---------- Tableaux et gestion ---------- */

.gestion-card,
.stat-card,
.admin-table-wrap {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.gestion-card h2,
.stat-card .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3ae;
}

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

.gestion-eyebrow,
.admin-page-head .eyebrow {
  color: var(--accent);
}

.gestion-tabs,
.gestion-main nav {
  border-bottom: 1px solid var(--line);
}

.gestion-tabs a,
.gestion-tabs button {
  border-radius: 0;
}

.gestion-tabs a[aria-current='page'],
.gestion-tabs button[aria-selected='true'] {
  color: #fff;
  border-bottom: 2px solid var(--accent);
}

.admin-table th,
.gestion-table th {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b94a0;
  border-bottom: 1px solid var(--line-strong);
}

.admin-table td,
.gestion-table td {
  border-bottom: 1px solid var(--line);
}

.admin-table tbody tr:hover,
.gestion-table tbody tr:hover {
  background: rgba(255, 32, 46, 0.04);
}

.admin-summary,
.admin-audit-entry {
  border-radius: 0;
  border-color: var(--line);
  background: #101318;
}

.admin-role-note,
.gestion-hint {
  border-left: 2px solid var(--alert);
  padding-left: 12px;
  color: #aab2be;
}

.gestion-dialog,
.boutique-dialogue,
.gestion-dialog::backdrop {
  border-radius: 0;
}

.gestion-dialog,
.boutique-dialogue {
  border: 1px solid rgba(255, 32, 46, 0.4);
  background: #12151a;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---------- Portails d’accès et tuiles boutique ---------- */

.auth-required,
.gestion-gate,
.gestion-loading {
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(115deg, rgba(255, 32, 46, 0.08), transparent 56%),
    var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  box-shadow: var(--shadow);
}

.auth-required .brand-mark,
.gestion-gate .brand-mark {
  border: 1px solid rgba(255, 32, 46, 0.35);
  background: rgba(255, 32, 46, 0.07);
}

.auth-required h2,
.gestion-gate h1 {
  font-style: italic;
  text-transform: uppercase;
}

.categorie-tuile {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.categorie-tuile:hover {
  border-color: rgba(255, 32, 46, 0.45);
  background: linear-gradient(158deg, #1e232b, #0d0f13 72%);
}

.categorie-tuile[aria-pressed='true'] {
  border-color: var(--accent);
  background:
    linear-gradient(115deg, rgba(255, 32, 46, 0.16), transparent 62%),
    var(--metal-panel);
  box-shadow: 0 0 40px -24px rgba(255, 32, 46, 0.7);
}

.categorie-titre {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.categorie-detail,
.categorie-fleche {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #858b96;
}

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

.carte-frame,
.carte-map-panel,
.carte-lieux,
.carte-hud {
  border-radius: 0;
  border-color: var(--line);
  background: var(--metal-panel);
}

.carte-head h1,
.carte-list-head h2 {
  font-style: italic;
  text-transform: uppercase;
}

.carte-lieu {
  border-radius: 0;
  border-color: var(--line);
  background: linear-gradient(160deg, #181c23, #0d0f13);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.carte-lieu:hover {
  border-color: rgba(255, 32, 46, 0.5);
  background: linear-gradient(160deg, #1f242c, #101318);
}

.carte-pin,
.carte-marker {
  filter: drop-shadow(0 0 10px rgba(255, 32, 46, 0.65));
}

.carte-btn,
.carte-lieu-bouton {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 0;
  background: #12151a;
  color: var(--text);
  box-shadow: 0 20px 46px -22px rgba(0, 0, 0, 0.95);
}

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(255, 32, 46, 0.4);
}

.leaflet-container {
  background: #0b0d10;
  font-family: var(--font-body);
}

.leaflet-bar a {
  border-radius: 0;
  background: #15171c;
  color: var(--text);
  border-color: var(--line);
}

.leaflet-bar a:hover {
  background: #1f242c;
  color: var(--accent);
}

/* ---------- Chat et salons ---------- */

.chat-card,
.chat-shell {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.chat-head {
  border-bottom: 1px solid var(--line);
}

.chat-bubble {
  border-radius: 0;
  background: #1a1e25;
  border: 1px solid var(--line);
  color: #e8ecf2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.chat-msg--own .chat-bubble {
  background: linear-gradient(140deg, rgba(255, 32, 46, 0.2), rgba(168, 0, 22, 0.14));
  border-color: rgba(255, 32, 46, 0.4);
}

.chat-meta,
.chat-status {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: #8b94a0;
}

.chat-form,
.chat-composer-row {
  border-top: 1px solid var(--line);
}

.chat-delete,
.chat-report {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

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

.boutique-annonce,
.boutique-avis,
.boutique-ouverture,
.boutique-achat-note,
.boutique-info {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.boutique-info {
  border: 1px solid var(--line);
  background: var(--metal-panel);
}

.boutique-hero {
  border-radius: 0;
  border: 1px solid rgba(255, 32, 46, 0.28);
  background:
    linear-gradient(115deg, rgba(255, 32, 46, 0.14), transparent 56%),
    var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.boutique-filtre {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.boutique-filtre[aria-pressed='true'] {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #08090b;
}

.produit,
.boutique-grille > article {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--metal-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.boutique-info-tag,
.boutique-statut,
.boutique-badges span {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Profil et garage ---------- */

.profil-hero,
.profile-hero,
.garage-card,
.moto-card {
  border-radius: 0;
  border-color: var(--line);
  background: var(--metal-panel);
}

.profil-hero h1,
.profile-hero h1 {
  font-style: italic;
  text-transform: uppercase;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 32, 46, 0.24);
  background: linear-gradient(180deg, #0a0b0e, #060708);
}

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3ae;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: #8b94a0;
}

/* ---------- Intro : allumage ---------- */

.rm-boot {
  background: #060708;
}

.rm-boot-grid {
  background:
    radial-gradient(620px 420px at 50% 46%, rgba(255, 32, 46, 0.18), transparent 68%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
}

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .hero-brand::after {
    display: none;
  }

  .hero-spec {
    top: 14px;
    right: 0;
  }

  .hero-photo img {
    aspect-ratio: 16 / 10;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 0;
    padding-top: 34px;
  }

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

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

  .hero-stats {
    margin-top: 28px;
  }

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

  .hero-stats dt {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

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

  .site-header {
    min-height: 66px;
  }

  .brand-logo,
  .brand-mark--logo {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 1.18rem;
  }

  .btn {
    min-height: 50px;
  }

  .ride-card {
    padding: 18px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .hero-kicker {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
  }

  .hero-slogan {
    font-size: 1.02rem;
  }

  .hero-spec {
    display: none;
  }

  .float-chip--two {
    display: none;
  }
}

/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .ride-card,
  .hero-photo,
  .racing-ticker-track,
  .hero-hud-dot,
  .nav-toggle .bars span {
    animation: none !important;
    transition: none !important;
  }

  .btn::after {
    display: none;
  }

  .hero-photo:hover,
  .ride-card:hover,
  .btn:hover {
    transform: none;
  }

  .racing-ticker-track {
    transform: none !important;
  }
}

/* ---------- Demande d’accès à la création de sorties ---------- */
.access-card {
  margin: 26px 0;
  padding: 22px 24px;
  border: 1px solid rgba(var(--neon-rgb, 255, 32, 46), 0.34);
  background:
    linear-gradient(180deg, rgba(255, 32, 46, 0.07), transparent 70%),
    var(--metal-1, #15171c);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.access-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Barlow Condensed', system-ui, sans-serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-card p {
  margin: 0 0 16px;
  color: var(--metal-3, #858b96);
  line-height: 1.55;
}

.access-card .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Réseaux sociaux du propriétaire (pied de page) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #eef2f7;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #fff;
  background: rgba(38, 120, 255, 0.28);
  transform: translateY(-2px);
}

.footer-social-link svg {
  display: block;
}

/* Fiche trottinette du rider (profil) */
.scooter-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 22px 0 28px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 24, 33, 0.92), rgba(8, 10, 14, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scooter-photo {
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(38, 120, 255, 0.18), rgba(8, 10, 14, 0.9) 70%);
}

.scooter-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

.scooter-infos h2 {
  margin: 4px 0 8px;
  font-family: var(--font-display, 'Barlow Condensed', system-ui, sans-serif);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scooter-hint {
  margin: 0 0 14px;
  color: var(--metal-3, #9aa3b2);
  line-height: 1.55;
}

.scooter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 700px) {
  .scooter-card {
    grid-template-columns: 1fr;
  }
}
