/* =========================================================
   RIDER MONTRÉAL — IDENTITÉ « CARBONE ÉLECTRIQUE » (2026)
   ---------------------------------------------------------
   Palette reprise du logo officiel : vert électrique #ff202e
   et noir carbone #0b0c10. Le logo officiel reste la seule
   marque du site : en-tête, pied de page et grand filigrane
   d’arrière-plan (assets/logo.svg et sa variante transparente
   assets/logo-marque.svg, même tracé).
   Cette feuille complète style.css : elle ne modifie aucune
   fonctionnalité, seulement l’habillage.
   ========================================================= */

:root {
  --carbon: #0b0c10;
  --panel: linear-gradient(160deg, rgba(24, 31, 24, 0.94), rgba(9, 12, 9, 0.96));
  --lime-line: rgba(255, 43, 43, 0.22);
  --lime-soft: rgba(255, 43, 43, 0.08);
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9);
}

/* ---------- Fond : carbone, halo et horizon électrique ---------- */

body {
  background: #08090b;
}

body::before {
  background:
    radial-gradient(1200px 640px at 80% -14%, rgba(255, 43, 43, 0.16), transparent 62%),
    radial-gradient(900px 520px at -12% 26%, rgba(255, 43, 43, 0.06), transparent 70%),
    radial-gradient(760px 520px at 50% 116%, rgba(255, 43, 43, 0.08), transparent 72%),
    linear-gradient(180deg, #0a0b0e 0%, #08090b 52%, #040504 100%);
}

body::after {
  opacity: 0.6;
  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(118deg, transparent 0 140px, rgba(255, 43, 43, 0.035) 140px 141px);
  background-size: 72px 72px, 72px 72px, auto;
  mask-image: radial-gradient(ellipse at 50% 10%, #000 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 18%, transparent 82%);
}

/* Le logo officiel, en très grand, derrière le contenu. */
.page-watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../assets/logo-marque.svg') no-repeat center 38% /
    clamp(260px, 46vmin, 560px);
  opacity: 0.14;
  /* L’emblème officiel est une image sur fond noir : « screen » efface ce fond. */
  mix-blend-mode: screen;
  filter: none;
}

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

.site-header {
  background: rgba(7, 9, 7, 0.82);
  border-bottom: 1px solid var(--lime-line);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 43, 0.75), transparent);
  opacity: 0.8;
}

.brand-mark--logo {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: none;
  box-shadow:
    0 0 0 1px rgba(255, 43, 43, 0.3),
    0 0 22px rgba(255, 43, 43, 0.18);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.17em;
}

.brand-text span {
  letter-spacing: 0.38em;
}

.auth-required .brand-mark--logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.auth-required .brand-logo {
  border-radius: 50%;
}

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

  .site-nav a.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

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

  .site-nav a.nav-link[aria-current='page'] {
    color: #08090b;
    background: linear-gradient(135deg, #ff5a64, #ff202e 55%, #a80016);
    box-shadow: 0 8px 22px -10px rgba(255, 43, 43, 0.9);
  }

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

  .nav-auth {
    margin-left: 4px;
    padding-left: 14px;
  }
}

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

  .site-nav a.nav-link {
    padding: 8px 9px;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
  }

  .nav-auth {
    padding-left: 10px;
    gap: 8px;
  }

  .nav-auth .btn-small {
    padding: 9px 12px;
  }
}

.nav-toggle {
  min-height: 44px;
  border-color: var(--lime-line);
  background: rgba(12, 16, 12, 0.9);
}

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

/* ---------- Boutons : lame lumineuse ---------- */

.btn {
  min-height: 48px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  background-image: linear-gradient(
    115deg,
    #ff3a46 0%,
    #ff202e 38%,
    #f5f7fa 50%,
    #ff202e 63%,
    #a80016 100%
  );
  background-size: 240% 100%;
  background-position: 0% 0;
  color: #051003;
  box-shadow:
    0 12px 30px -14px rgba(255, 43, 43, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background-position 0.55s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow:
    0 18px 40px -14px rgba(255, 43, 43, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  border-color: rgba(255, 43, 43, 0.28);
  background: rgba(10, 14, 10, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 43, 43, 0.08);
  border-color: var(--green);
}

.btn-small {
  min-height: 40px;
}

.btn-danger {
  border-color: rgba(255, 107, 107, 0.4);
}

.link-arrow {
  padding: 8px 0;
}

/* ---------- Héros : piste, vitesse, énergie ---------- */

.hero {
  padding: 68px 0 88px;
}

.hero::before {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -2%;
  height: 48%;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 43, 43, 0.1) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, rgba(255, 43, 43, 0.08) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, transparent, rgba(255, 43, 43, 0.06));
  transform: perspective(540px) rotateX(63deg);
  transform-origin: bottom center;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent, #000 72%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 72%);
}

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

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #f5f7fa, #ff202e 48%, #ff202e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(255, 43, 43, 0.32));
}

.hero .lede {
  max-width: 52ch;
  font-size: 1.06rem;
}

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

.hero-stats {
  gap: 18px 34px;
  border-top: 1px solid var(--lime-line);
}

.hero-stats div {
  position: relative;
  padding-left: 16px;
}

.hero-stats div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--green), rgba(255, 43, 43, 0.1));
}

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

.hero-visual::after {
  content: '';
  position: absolute;
  right: -8%;
  bottom: -54px;
  width: min(440px, 84%);
  aspect-ratio: 3 / 2;
  z-index: -1;
  pointer-events: none;
  background: url('../assets/trottinette.svg') center / contain no-repeat;
  opacity: 0.2;
  filter: drop-shadow(0 0 28px rgba(255, 43, 43, 0.3));
}

.hero-photo {
  position: relative;
  border: 1px solid rgba(255, 43, 43, 0.3);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  box-shadow:
    0 44px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 60px -26px rgba(255, 43, 43, 0.6);
  transform: rotate(-1deg);
}

.hero-photo img {
  filter: saturate(1.06) contrast(1.02);
}

.hero-photo::after {
  background: linear-gradient(180deg, rgba(4, 6, 4, 0) 44%, rgba(4, 6, 4, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 43, 43, 0.12);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--green), var(--green)) top left / 30px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) top left / 2px 30px no-repeat,
    linear-gradient(var(--green), var(--green)) bottom right / 30px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) bottom right / 2px 30px no-repeat;
  opacity: 0.75;
}

.hero-hud {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 43, 43, 0.32);
  border-radius: 6px;
  background: rgba(5, 8, 5, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5f7fa;
}

.hero-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: rm-signal 2.4s ease-in-out infinite;
}

.float-chip {
  z-index: 4;
  border: 1px solid rgba(255, 43, 43, 0.3);
  border-radius: 8px;
  background: rgba(8, 12, 8, 0.94);
  color: #f5f7fa;
}

.float-chip--one {
  top: 16px;
  left: -18px;
}

.float-chip--two {
  right: -14px;
  bottom: 62px;
}

/* ---------- Rubans de section ---------- */

.section-head h2 {
  position: relative;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

/* ---------- En-têtes de pages internes ---------- */

.page-head {
  position: relative;
  padding: 54px 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.page-head::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: clamp(112px, 16vw, 188px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  background: var(--page-icon, url('../assets/logo-marque.svg')) center / contain no-repeat;
  opacity: 0.1;
  mix-blend-mode: screen;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

.page-head > p:not(.eyebrow) {
  max-width: 64ch;
  margin-top: 14px;
  color: var(--muted);
}

.page-head .eyebrow {
  margin-top: 0;
  color: var(--green);
}

body[data-page='sorties'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm16-8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3Cpath d='M7 16c0-5.5 10-3 10-8'/%3E%3C/svg%3E");
}

body[data-page='chat'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H8l-4 3v-6.6A8 8 0 0 1 12 4h1a8 8 0 0 1 8 8Z'/%3E%3Cpath d='M8 11h8M8 14.5h5'/%3E%3C/svg%3E");
}

body[data-page='voice'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='9' y='2' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M9 21h6'/%3E%3C/svg%3E");
}

body[data-page='profil'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

body[data-page='creer'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4h9l-1.6 4.2H19l-2.2 4.4H6'/%3E%3C/svg%3E");
}

body[data-page='admin'],
body[data-page='proprietaire'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4.4 3 7.6 7 9 4-1.4 7-4.6 7-9V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

body[data-page='connexion'],
body[data-page='inscription'],
body[data-page='mot-de-passe-oublie'],
body[data-page='reinitialiser'] {
  --page-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff202e' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='12' r='4'/%3E%3Cpath d='M12 12h9M18 12v3M15 12v2'/%3E%3C/svg%3E");
}

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

.ride-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ride-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(255, 43, 43, 0) 72%);
  opacity: 0.55;
}

.ride-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 43, 0.34);
  box-shadow:
    0 26px 60px -32px rgba(0, 0, 0, 0.95),
    0 0 40px -22px rgba(255, 43, 43, 0.65);
}

.ride-date {
  background: linear-gradient(165deg, rgba(255, 43, 43, 0.18), rgba(255, 43, 43, 0.02));
  border-right: 1px solid var(--lime-line);
}

.ride-date .day {
  color: var(--green);
  text-shadow: 0 0 22px rgba(255, 43, 43, 0.4);
}

.tag {
  border-radius: 6px;
  letter-spacing: 0.1em;
  border-color: rgba(255, 43, 43, 0.22);
  background: rgba(255, 43, 43, 0.06);
}

.ride-cta {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

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

.steps {
  position: relative;
}

@media (min-width: 901px) {
  .steps::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: repeating-linear-gradient(
      90deg,
      rgba(255, 43, 43, 0.4) 0 10px,
      transparent 10px 22px
    );
    pointer-events: none;
  }
}

.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 43, 43, 0.42);
  background: rgba(9, 13, 9, 0.98);
  color: var(--green);
  box-shadow: 0 0 26px -8px rgba(255, 43, 43, 0.55);
}

.step h3 {
  margin-top: 18px;
}

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

/* ---------- Bandeau d’appel à l’action ---------- */

.cta-band {
  position: relative;
  border-radius: 22px;
  border-color: rgba(255, 43, 43, 0.28);
  background:
    radial-gradient(600px 240px at 12% 18%, rgba(255, 43, 43, 0.18), transparent 70%),
    linear-gradient(128deg, #15171c, #0a0b0e 72%);
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  right: 1%;
  bottom: -16%;
  width: min(430px, 46%);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background: url('../assets/trottinette.svg') center / contain no-repeat;
  opacity: 0.22;
  transform: rotate(-4deg);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

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

.site-footer {
  position: relative;
  margin-top: 88px;
  border-top: 1px solid var(--lime-line);
  background: linear-gradient(180deg, rgba(8, 11, 8, 0.55), rgba(4, 5, 4, 0.96));
}

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

.footer-brand .brand-mark--logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.footer-brand .brand-logo {
  border-radius: 50%;
}

.footer-links a {
  position: relative;
  transition: color 0.18s ease;
}

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

.footer-bottom {
  border-top-color: var(--line);
}

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

.field input,
.field select,
.field textarea,
.chat-form textarea,
.voice-create input,
.admin-select {
  min-height: 48px;
  border-radius: 10px;
  border-color: var(--line-strong);
  background: rgba(6, 9, 6, 0.72);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.chat-form textarea:hover,
.voice-create input:hover {
  border-color: rgba(255, 43, 43, 0.35);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-form textarea:focus,
.voice-create input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.14);
  outline: none;
}

.form-card {
  position: relative;
  border-radius: 20px;
  border-color: var(--line-strong);
  background: linear-gradient(165deg, rgba(20, 26, 20, 0.97), rgba(9, 12, 9, 0.98));
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--green), transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Connexion / inscription ---------- */

.auth-visual {
  border-radius: 22px;
  border-color: rgba(255, 43, 43, 0.22);
  background:
    radial-gradient(520px 320px at 84% 6%, rgba(255, 43, 43, 0.2), transparent 70%),
    linear-gradient(150deg, #15171c, #070a07 72%);
}

.auth-visual::after {
  content: '';
  position: absolute;
  right: -6%;
  bottom: -6%;
  width: 62%;
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background: url('../assets/trottinette.svg') center / contain no-repeat;
  opacity: 0.16;
}

/* ---------- Chat des membres ---------- */

.chat-card {
  background: linear-gradient(180deg, rgba(16, 21, 16, 0.97), rgba(8, 11, 8, 0.99));
  border-color: var(--line-strong);
  border-radius: 18px;
}

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

.chat-avatar {
  border: 1px solid rgba(255, 43, 43, 0.35);
  background: rgba(255, 43, 43, 0.12);
  color: var(--green);
}

.chat-bubble {
  background: #15171c;
  border-color: #24272f;
}

.chat-msg--own .chat-bubble {
  background: rgba(255, 43, 43, 0.12);
  border-color: rgba(255, 43, 43, 0.34);
  box-shadow: 0 12px 30px -22px rgba(255, 43, 43, 0.8);
}

.chat-form {
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 6, 0.92);
}

.chat-count {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

/* ---------- Salons vocaux ---------- */

.voice-room {
  transition: background 0.18s ease;
}

.voice-room:hover {
  background: rgba(255, 43, 43, 0.05);
}

.voice-avatar {
  border: 1px solid rgba(255, 43, 43, 0.34);
  background: rgba(255, 43, 43, 0.12);
  color: var(--green);
}

.voice-person {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.voice-speaking-dot {
  box-shadow: 0 0 12px var(--green);
}

.voice-controls .btn {
  min-width: 172px;
}

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

.profile-hero {
  border-radius: 20px;
  border-color: var(--line-strong);
}

.profile-avatar {
  border: 1px solid rgba(255, 43, 43, 0.45);
  background: linear-gradient(140deg, rgba(255, 43, 43, 0.24), rgba(255, 43, 43, 0.04));
  color: var(--green);
  box-shadow: 0 0 34px -10px rgba(255, 43, 43, 0.6);
}

.stat-card {
  background: var(--panel);
  border-color: var(--line);
}

.stat-card .value {
  color: var(--green);
  text-shadow: 0 0 26px rgba(255, 43, 43, 0.28);
}

.profile-edit {
  border-color: var(--line);
  border-radius: 16px;
}

/* ---------- Administration / propriétaire ---------- */

.admin-summary .stat-card,
.owner-card {
  background: var(--panel);
}

.badge {
  border-radius: 6px;
  letter-spacing: 0.08em;
}

/* ---------- Adaptation mobile ---------- */

@media (max-width: 900px) {
  .page-watermark {
    background-size: min(66vmin, 340px);
    background-position: center 30%;
    opacity: 0.1;
  }

  .hero {
    padding: 44px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.6rem);
  }

  .hero-visual::after {
    right: 50%;
    bottom: -30px;
    width: 72%;
    transform: translateX(50%);
    opacity: 0.12;
  }

  .float-chip {
    display: none;
  }

  .page-head {
    padding: 40px 0 22px;
  }

  .page-head::before {
    width: 96px;
    opacity: 0.07;
  }

  .cta-band::after {
    width: 58%;
    opacity: 0.14;
  }

  .site-footer {
    margin-top: 64px;
  }

  .voice-controls .btn {
    min-width: 0;
    flex: 1;
  }

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

@media (max-width: 640px) {
  .hero-photo {
    transform: none;
  }

  .hero-hud {
    left: 12px;
    bottom: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding: 64px 0;
  }

  .page-head > p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .auth-required {
    border-radius: 18px;
  }
}

@keyframes rm-signal {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hud-dot,
  .float-chip,
  .orbit,
  .emblem {
    animation: none !important;
  }

  .btn-primary {
    transition: none;
  }
}
