/* ============================================================
   RIDER SUPREME — DarkStar Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-deep: #0a0a0a;
  --bg-card: #111111;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(124,58,237,0.4);
  /* M2 : utilisées par le résultat du Scan QR admin (displayCarnetFromQR) */
  --border-color: rgba(255,255,255,0.08);
  --accent-gold: #fcd34d;

  --purple: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;
  --yellow: #eab308;

  --grad-main: linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #f97316 100%);
  --grad-card-basic: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --grad-card-standard: linear-gradient(135deg, #1a2744 0%, #1d4ed8 100%);
  --grad-card-premium: linear-gradient(135deg, #2d1b69 0%, #7c3aed 100%);
  --grad-card-platinum: linear-gradient(135deg, #1c1008 0%, #92400e 50%, #d97706 100%);

  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-glow: 0 0 40px rgba(124,58,237,0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-secondary);
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }

/* ===================== TYPOGRAPHY ===================== */
h1,h2,h3,h4,h5 { color: var(--text-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); }

p { color: var(--text-secondary); }

a { color: var(--purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--pink); }

/* ===================== LAYOUT ===================== */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.view { display: none; }
.view.active { display: block; }

/* ===================== LOGIN PAGE ===================== */
#login-view {
  height: 100dvh;           /* FIXE — permet le déclenchement de overflow-y */
  display: none;
  flex-direction: column;
  align-items: center;      /* safe center non supporté iOS Safari → align:center */
  justify-content: flex-start; /* flex-start + margin:auto sur la carte = centrage sûr */
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
#login-view.active { display: flex; }

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124,58,237,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(236,72,153,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 10%, rgba(249,115,22,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  width: min(460px, calc(100vw - 32px));
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  position: relative;
  z-index: 1;
  margin: auto 0; /* centre la carte quand il y a de l'espace, 0 quand overflow */
}

/* ── Responsive login — écrans de hauteur moyenne (iPhone 14/15) ── */
@media screen and (max-height: 800px) {
  .login-card {
    padding: 28px 28px;
  }
  .login-logo {
    margin-bottom: 14px !important;
  }
  .login-logo-svg {
    width: 180px !important;
  }
  .tagline-gradient {
    margin: 8px 0 14px !important;
  }
  .login-tabs {
    margin-bottom: 16px !important;
  }
  .form-group {
    margin-bottom: 14px !important;
  }
  .form-input {
    padding: 12px 14px !important;
  }
}

/* ── Responsive login — petits écrans (iPhone SE, mini) ── */
@media screen and (max-height: 700px) {
  .login-card {
    padding: 20px 20px;
  }
  .login-logo {
    margin-bottom: 8px !important;
  }
  .login-logo-svg {
    width: 150px !important;
  }
  .logo-sub {
    font-size: 0.65rem;
  }
  .tagline-gradient {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin: 4px 0 10px !important;
  }
  .login-tabs {
    margin-bottom: 12px !important;
    padding: 3px !important;
  }
  .login-tab {
    padding: 8px !important;
    font-size: 0.8rem !important;
  }
  .form-group {
    margin-bottom: 10px !important;
  }
  .form-label {
    margin-bottom: 5px !important;
    font-size: 0.72rem !important;
  }
  .form-input {
    padding: 10px 12px !important;
    font-size: 0.875rem !important;
  }
  .btn {
    padding: 11px 20px !important;
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-svg {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* Couronne : animation gérée par JS (crownAnimation dans index.html) */

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

.tagline-gradient {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 14px 0 20px;
  background: linear-gradient(90deg, #c850c0, #e040a0, #ff6b35, #ffb347);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.login-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.login-tab.active {
  --neon-angle: 0deg;
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(from var(--neon-angle), #8115ff 0%, #ff2ad0 40%, #ff8f2a 65%, #8115ff 100%) border-box;
  border: 2px solid transparent;
  color: rgba(255, 255, 255, 0.71);
  box-shadow: none;
  position: relative;
  overflow: visible;
  transition: color 0.3s ease, box-shadow 0.5s ease;
}

.login-tab.active:hover {
  animation: neonBorderSpin 3s linear infinite;
  color: rgba(255, 255, 255, 1);
  box-shadow:
    0 0 10px 2px rgba(129, 21, 255, 0.4),
    0 0 20px 4px rgba(255, 42, 208, 0.2),
    0 0 30px 6px rgba(255, 143, 42, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--text-dim); }

/* ── Password visibility toggle ───────────────────────── */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper .form-input {
  padding-right: 46px;
  width: 100%;
}
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.toggle-pw:hover { color: var(--text); }
.toggle-pw:focus { outline: none; }

.form-input:focus {
  border-color: var(--purple);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
}

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

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(124,58,237,0.4);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}

.btn-danger {
  background: rgba(239,68,68,0.12);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-success {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
}
.btn-success:hover { background: rgba(34,197,94,0.2); }

/* ===================== NEON GLOW BUTTON ===================== */

/* Propriété CSS animable pour l'angle du dégradé */
@property --neon-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: true;
}

@keyframes neonBorderSpin {
  to { --neon-angle: 360deg; }
}

.btn-neon-glow {
  --neon-angle: 0deg;
  position: relative;
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(from var(--neon-angle), #8115ff 0%, #ff2ad0 40%, #ff8f2a 65%, #8115ff 100%) border-box !important;
  border: 2px solid transparent !important;
  border-radius: 300px !important;
  color: rgba(255, 255, 255, 0.71) !important;
  box-shadow: none !important;
  z-index: 0;
  overflow: visible !important;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.5s ease !important;
}

/* Hover : bordure tourne autour du bouton + halo via box-shadow (ne saigne jamais à l'intérieur) */
.btn-neon-glow:hover {
  animation: neonBorderSpin 3s linear infinite;
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 1) !important;
  box-shadow:
    0 0 10px 2px rgba(129, 21, 255, 0.4),
    0 0 20px 4px rgba(255, 42, 208, 0.2),
    0 0 30px 6px rgba(255, 143, 42, 0.1) !important;
}

/* ── Bouton Carnet — fond noir + bordure néon tournante ── */
@property --carnet-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes carnetBorderSpin {
  to { --carnet-angle: 360deg; }
}
.btn-carnet-neon {
  --carnet-angle: 0deg;
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(from var(--carnet-angle), #8115ff 0%, #ff2ad0 40%, #ff8f2a 65%, #8115ff 100%) border-box !important;
  border: 2px solid transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: none !important;
  animation: carnetBorderSpin 3s linear infinite;
  transition: color 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-carnet-neon:hover {
  color: #ffffff !important;
  box-shadow:
    0 0 8px 2px rgba(129, 21, 255, 0.4),
    0 0 16px 3px rgba(255, 42, 208, 0.2) !important;
}

/* ── Scanner QR — arc comète RS style + anneau pointillé counter-rotatif ── */
@keyframes dashSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.scanner-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}

/* Anneau pointillé counter-rotatif (hors du bouton, toujours visible) */
.scanner-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dotted rgba(129, 21, 255, 0.55);
  animation: dashSpin 30s linear infinite;
  pointer-events: none;
}

.scanner-circle-btn {
  --carnet-angle: 0deg;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  /* Arc comète : 60% transparent → gradient violet→rose→orange sur 40% */
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(
      from var(--carnet-angle),
      transparent 0%,
      transparent 58%,
      rgba(129, 21, 255, 0.5)  68%,
      rgba(255, 42, 208, 0.9)  80%,
      rgba(255, 143, 42, 1.0)  91%,
      rgba(255, 169, 17, 1.0)  96%,
      transparent              100%
    ) border-box;
  border: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  transition: transform 0.15s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  animation: carnetBorderSpin 3s linear infinite;
  box-shadow: 0 0 8px 2px rgba(129, 21, 255, 0.25);
}

.scanner-circle-btn:hover {
  box-shadow:
    0 0 12px 4px rgba(129, 21, 255, 0.6),
    0 0 24px 6px rgba(255, 42, 208, 0.3);
}

.scanner-circle-btn:active {
  transform: scale(0.94);
}

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: none;
}

.demo-hint {
  margin-top: 20px;
  padding: 16px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.demo-hint strong { color: var(--purple); }

/* ===================== MAIN APP LAYOUT ===================== */
#main-layout {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
}
#main-layout.active { display: flex; }

/* ===================== TOP HEADER ===================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: env(safe-area-inset-top) 20px 0;
  height: calc(64px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo-svg {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,200,0,0.3));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.header-user-info {
  display: flex;
  flex-direction: column;
}

.header-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.header-user-level {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-logout {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-logout:hover { background: rgba(239,68,68,0.2); }

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 4px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  gap: 2px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
}

.nav-item .nav-icon { font-size: 1.3rem; transition: var(--transition); }

.nav-item.active {
  color: var(--text-primary);
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 8px var(--purple));
  transform: scale(1.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
}

.nav-item:hover:not(.active) { color: var(--text-muted); background: var(--bg-glass); }

/* ===================== PAGE CONTENT ===================== */
.page-content {
  flex: 1;
  padding: 24px 20px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===================== SECTION ===================== */
.section { margin-bottom: 28px; }

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(124,58,237,0.25);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

/* ===================== MEMBER CARD ===================== */
.member-card {
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 180px;
}

.member-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.member-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.member-card.basic { background: var(--grad-card-basic); border: 1px solid rgba(99,102,241,0.4); }
.member-card.standard { background: var(--grad-card-standard); border: 1px solid rgba(59,130,246,0.4); }
.member-card.premium { background: var(--grad-card-premium); border: 1px solid rgba(124,58,237,0.5); }
.member-card.platinum { background: var(--grad-card-platinum); border: 1px solid rgba(217,119,6,0.5); box-shadow: 0 0 30px rgba(217,119,6,0.15); }

.member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.member-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.badge-basic { background: rgba(99,102,241,0.25); border: 1px solid rgba(99,102,241,0.5); color: #a5b4fc; }
.badge-standard { background: rgba(59,130,246,0.25); border: 1px solid rgba(59,130,246,0.5); color: #93c5fd; }
.badge-premium { background: rgba(124,58,237,0.3); border: 1px solid rgba(167,139,250,0.5); color: #c4b5fd; }
.badge-platinum { background: rgba(217,119,6,0.25); border: 1px solid rgba(251,191,36,0.5); color: #fcd34d; }

.member-logo-sm {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.member-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}

.member-id {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-family: monospace;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.member-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.member-discount {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.member-discount-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.member-since {
  text-align: right;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}

/* ===================== STAT CARDS ===================== */
.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--bg-glass-hover);
}

.stat-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.12);
  border-radius: 10px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================== PROGRESS BAR ===================== */
.progress-wrap { margin-top: 8px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--grad-main);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ===================== ORDER CARD ===================== */
.order-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.order-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(124,58,237,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.order-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
  letter-spacing: 0.5px;
}

.order-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.order-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.order-product {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-pending { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.status-processing { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.status-shipped { background: rgba(249,115,22,0.12); color: #fed7aa; border: 1px solid rgba(249,115,22,0.25); }
.status-delivered { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.status-open { background: rgba(234,179,8,0.12); color: #fde68a; border: 1px solid rgba(234,179,8,0.25); }
.status-closed { background: rgba(107,114,128,0.12); color: #d1d5db; border: 1px solid rgba(107,114,128,0.25); }
.status-validated { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.status-refused { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }

/* Order progress steps */
.order-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  z-index: 1;
  transition: var(--transition);
}

.step-dot.active {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(124,58,237,0.6);
}

.step-dot.done { background: var(--green); }

.step-line {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-line.done { background: var(--grad-main); }

.step-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

.step-item:last-child .step-line { display: none; }

/* ===================== TICKET ===================== */
.ticket-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
}

.ticket-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(124,58,237,0.25);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.ticket-number {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-muted);
}

.ticket-subject {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ticket-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===================== PLAN CARDS ===================== */
.plan-card {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card.active-plan {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
}

.plan-card.active-plan::before {
  content: 'ACTIF';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  background: var(--grad-main);
  padding: 3px 8px;
  border-radius: 99px;
}

.plan-name { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.plan-price { font-size: 1.6rem; font-weight: 900; color: var(--text-primary); }
.plan-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.plan-discount { font-size: 1rem; font-weight: 700; margin: 8px 0; }
.plan-features { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 6px; }
.plan-features li::before { content: '✦'; color: var(--purple); font-size: 0.6rem; margin-top: 2px; flex-shrink: 0; }

/* ===================== FORM ELEMENTS ===================== */
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
  outline: none;
}

.form-textarea::placeholder { color: var(--text-dim); }
.form-textarea:focus {
  border-color: var(--purple);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.file-upload:hover {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.04);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-text { font-size: 0.875rem; color: var(--text-muted); }

/* ===================== ADMIN ===================== */
.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  --neon-angle: 0deg;
  padding: 9px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    conic-gradient(from var(--neon-angle), #8115ff 0%, #ff2ad0 40%, #ff8f2a 65%, #8115ff 100%) border-box;
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.admin-tab.active {
  color: #ffffff;
  animation: neonBorderSpin 3s linear infinite;
  box-shadow:
    0 0 8px 2px rgba(129, 21, 255, 0.4),
    0 0 18px 3px rgba(255, 42, 208, 0.2);
}

.admin-tab:hover:not(.active) {
  color: rgba(255,255,255,0.75);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:hover td { background: rgba(255,255,255,0.025); }

.table-wrap {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

/* ===================== COUPON CARD ===================== */
.coupon-balance-card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1c1008 0%, #92400e 50%, #d97706 100%);
  border: 1px solid rgba(251,191,36,0.3);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(217,119,6,0.15);
}

.coupon-balance-card::after {
  content: '⚡';
  position: absolute;
  right: 20px;
  bottom: -5px;
  font-size: 5rem;
  opacity: 0.08;
  pointer-events: none;
}

.coupon-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #fcd34d;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(252,211,77,0.3);
}

.coupon-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  transform: translateX(110%);
  animation: slideInToast 0.3s cubic-bezier(0.4,0,0.2,1) forwards, slideOutToast 0.3s cubic-bezier(0.4,0,0.2,1) 2.7s forwards;
  max-width: 280px;
}

@keyframes slideInToast {
  to { transform: translateX(0); }
}
@keyframes slideOutToast {
  to { transform: translateX(110%); opacity: 0; }
}

/* ===================== SELECT ===================== */
select.form-input {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.form-input option {
  background: #1a1a1a;
  color: var(--text-primary);
}

/* ===================== DIVIDER ===================== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}

.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 0.875rem; }

/* ===================== REPLY CARD (Admin) ===================== */
.reply-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
}

.reply-card-label {
  font-size: 0.7rem;
  color: var(--purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ===================== MODAL (simple) ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #161616;
  border: 1px solid var(--border-accent);
  border-radius: 24px 24px 20px 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(239,68,68,0.15); color: var(--red); }

/* ===================== GRADIENT TEXT ===================== */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== UTILS ===================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards; }

/* ===================== RESPONSIVE ===================== */

/* ── Tablette portrait (600–900px) ── */
@media (min-width: 600px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { max-width: 680px; }
}

/* ── Mobile — tout téléphone ≤ 480px ── */
@media (max-width: 480px) {

  /* Login : plein écran, scrollable si le contenu déborde */
  /* padding: 0 — .login-card gère déjà les safe-area sur mobile, évite le double-comptage */
  #login-view { overflow-y: auto; align-items: flex-start; padding: 0; }

  .login-card {
    width: 100%;
    /* min-height: 100dvh supprimé — c'est #login-view height:100dvh qui gère ça */
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: calc(env(safe-area-inset-top) + 32px) 20px calc(env(safe-area-inset-bottom) + 24px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* flex-start pour éviter le clip en haut sur petits écrans */
    margin: 0; /* reset du margin:auto défini en base */
  }

  /* Réduction du logo et de la tagline */
  .login-logo-svg { width: 190px; }
  .tagline-gradient { font-size: 0.95rem; letter-spacing: 2px; margin: 10px 0 16px; }
  .login-logo { margin-bottom: 20px; }
  .form-group { margin-bottom: 16px; }
  .demo-hint { padding: 12px; font-size: 0.73rem; line-height: 1.7; }

  /* Header compact */
  .app-header { padding: env(safe-area-inset-top) 12px 0; gap: 8px; height: calc(58px + env(safe-area-inset-top)); }
  .header-user-info { display: none; }
  .btn-logout { padding: 7px 11px; font-size: 0.73rem; }
  .header-avatar { width: 34px; height: 34px; font-size: 0.8rem; }

  /* Contenu des pages */
  .page-content {
    padding: 16px 14px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .page-header { margin-bottom: 18px; }
  .page-title { font-size: 1.3rem; }
  .section { margin-bottom: 20px; }
  .section-title { font-size: 0.7rem; }

  /* Carte membre */
  .member-card { padding: 18px 16px; min-height: 160px; }
  .member-discount { font-size: 1.8rem; }
  .member-name { font-size: 1.1rem; }
  .member-level-badge { padding: 5px 12px; font-size: 0.67rem; }

  /* Stats — auto-fit : s'adapte au nombre de colonnes disponibles */
  .stats-row {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }
  .stat-card { padding: 12px 10px; gap: 6px; }
  .stat-icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 8px; }
  .stat-value { font-size: 1.25rem; }
  .stat-label { font-size: 0.69rem; }

  /* Tableau */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { font-size: 0.76rem; min-width: 420px; }
  .data-table th { padding: 9px 8px; }
  .data-table td { padding: 10px 8px; }

  /* Fleet row — grille simplifiée : nom + batterie + statut */
  .fleet-row {
    grid-template-columns: 1fr 52px 30px;
    grid-template-rows: auto auto;
    gap: 4px 8px;
  }
  .fleet-row-bar  { display: none; }
  .fleet-row-km   { display: none; }
  .fleet-row-mode { display: none; }
  .fleet-row-name { grid-column: 1; grid-row: 1; }
  .fleet-row-batt { grid-column: 2; grid-row: 1; text-align: right; }
  .fleet-row-status { grid-column: 3; grid-row: 1; }

  /* Carte moto */
  .moto-meta-grid { grid-template-columns: 1fr 1fr; }
  .moto-icon-circle { width: 44px; height: 44px; font-size: 1.3rem; }

  /* Admin tabs (scroll horizontal déjà actif) */
  .admin-tab { padding: 8px 12px; font-size: 0.75rem; }

  /* Coupon */
  .coupon-amount { font-size: 2.4rem; }
  .coupon-balance-card { padding: 18px; }

  /* Toast */
  .toast-container { right: 10px; bottom: 88px; }
  .toast { max-width: calc(100vw - 20px); font-size: 0.82rem; padding: 10px 14px; }

  /* Cards générales */
  .card { padding: 16px; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }

  /* Plan cards */
  .plan-card { padding: 16px; }
  .plan-price { font-size: 1.4rem; }

  /* Order cards */
  .order-card { padding: 14px 16px; }
  .order-number { font-size: 0.85rem; }

  /* Scanner QR */
  .scanner-wrap { width: 84px; height: 84px; }
  .scanner-circle-btn { width: 84px; height: 84px; font-size: 1.9rem; }

  /* Electric dashboard */
  .electric-dashboard { padding: 16px 14px 22px; }
  .ed-metrics-grid { gap: 8px; }
  .ed-metric-tile { padding: 10px; }
  .ed-metric-value { font-size: 0.95rem; }

  /* Bottom nav */
  .nav-item { font-size: 0.6rem; padding: 6px 2px; }
  .nav-item .nav-icon { font-size: 1.2rem; }
}

/* ── Très petits écrans ≤ 360px (iPhone SE 1ère gen, Android compact) ── */
@media (max-width: 360px) {

  /* Login : centrage → flex-start pour permettre le scroll naturel */
  .login-card {
    padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 16px);
    justify-content: flex-start;
  }
  .login-logo-svg { width: 155px; }
  .tagline-gradient { font-size: 0.8rem; letter-spacing: 1.5px; margin: 8px 0 12px; }
  .login-tabs { margin-bottom: 18px; }
  .form-input { padding: 11px 13px; font-size: 0.88rem; }
  .form-group { margin-bottom: 13px; }
  .demo-hint { font-size: 0.69rem; margin-top: 14px; }

  /* Stats : 2 colonnes max sur écran vraiment étroit */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.1rem; }
  .stat-icon { width: 32px; height: 32px; font-size: 0.95rem; }

  /* Carte membre compacte */
  .member-card { padding: 14px 12px; min-height: 140px; }
  .member-discount { font-size: 1.5rem; }
  .member-name { font-size: 0.95rem; }
  .member-level-badge { font-size: 0.62rem; padding: 4px 10px; }

  /* Header encore plus compact */
  .app-header { height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0; }
  .header-avatar { width: 30px; height: 30px; font-size: 0.72rem; }
  .btn-logout { padding: 6px 9px; font-size: 0.69rem; }
  .header-logo-svg { height: 26px; }

  /* Contenu */
  .page-content { padding: 12px; }
  .page-title { font-size: 1.15rem; }
  .card { padding: 13px 12px; }

  /* Coupon */
  .coupon-amount { font-size: 2rem; }

  /* Tableau encore plus compact */
  .data-table { font-size: 0.71rem; }
  .data-table th { padding: 7px 6px; }
  .data-table td { padding: 8px 6px; }
}

/* ===================== MES MOTOS ===================== */
.moto-card {
  background: var(--bg-glass);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.moto-card:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 30px rgba(124,58,237,0.08);
}

.moto-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.06));
  border-bottom: 1px solid var(--border);
}

.moto-icon-circle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1e1b4b, #2d1b69);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.moto-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.moto-meta-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.moto-meta-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.moto-meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.intervention-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.intervention-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.intervention-dot.certified { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.intervention-dot.pending   { background: var(--yellow); box-shadow: 0 0 6px rgba(234,179,8,0.5); }

.carnet-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #fcd34d;
  line-height: 1.5;
}
.carnet-info-banner strong { color: #fbbf24; }

.add-moto-card {
  --carnet-angle: 0deg;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    conic-gradient(from var(--carnet-angle), #8115ff 0%, #ff2ad0 40%, #ff8f2a 65%, #8115ff 100%) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  animation: carnetBorderSpin 3s linear infinite;
  transition: box-shadow 0.3s ease;
}
.add-moto-card:hover {
  box-shadow:
    0 0 10px 2px rgba(129, 21, 255, 0.4),
    0 0 20px 4px rgba(255, 42, 208, 0.2);
}

.moto-badge-electric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #00e676;
  background: rgba(0,230,118,0.12);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 20px;
  padding: 2px 8px;
  vertical-align: middle;
}

/* .btn-electric styles → voir section "Effet électrique" ci-dessous */
.btn-electric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,230,118,0.6);
}

/* ============================================================
   BOUTON QR CARNET — Neon spin (même effet que login)
   ============================================================ */
.btn-carnet-qr {
  --neon-angle: 0deg;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    conic-gradient(from var(--neon-angle), #8115ff 0%, #ff2ad0 40%, #ff8f2a 65%, #8115ff 100%) border-box !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4) !important;
  animation: neonBorderSpin 3s linear infinite;
  color: rgba(255,255,255,0.85) !important;
}

/* ============================================================
   BOUTON MODE COMPTEUR — Effet électrique vert/blanc
   ============================================================ */
@property --electric-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes electricSpin {
  to { --electric-angle: 360deg; }
}

.btn-electric {
  --electric-angle: 0deg;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    conic-gradient(from var(--electric-angle), #00e676 0%, #ffffff 20%, #b2ff59 45%, #ffffff 70%, #00e676 100%) border-box;
  border: 2px solid transparent;
  color: #00e676;
  font-size: 0.95rem;
  padding: 16px 24px;
  box-shadow: 0 0 20px rgba(0,230,118,0.25);
  animation: electricSpin 1.5s linear infinite;
}

/* ===================== ELECTRIC DASHBOARD ===================== */
.electric-dashboard {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 300;
  display: none;
  flex-direction: column;
  padding: 20px 18px 28px;
  overflow-y: auto;
}
.electric-dashboard.open { display: flex; }

.ed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ed-title { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.ed-subtitle { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; color: #00e676; margin-top: 2px; }
.ed-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}

.ed-demo-badge {
  align-self: center;
  font-size: 0.62rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  margin: 6px auto 10px;
  letter-spacing: 1px;
}

.ed-gauge-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}
.ed-gauge { width: 100%; max-width: 320px; }
.ed-speed-value {
  margin-top: -34px;
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
}
.ed-speed-unit { font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }

.ed-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.ed-metric-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.ed-metric-icon { font-size: 1.3rem; margin-bottom: 4px; }
.ed-metric-label { font-size: 0.64rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; }
.ed-metric-value { font-size: 1.02rem; font-weight: 800; color: var(--text-primary); }

.ed-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.ed-mode-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}
.ed-mode-btn.active[data-mode="eco"] { background: linear-gradient(135deg,#16a34a,#22c55e); color: #fff; border-color: transparent; }
.ed-mode-btn.active[data-mode="sport"] { background: linear-gradient(135deg,#ea580c,#f97316); color: #fff; border-color: transparent; }
.ed-mode-btn.active[data-mode="boost"] { background: linear-gradient(135deg,#b91c1c,#ef4444); color: #fff; border-color: transparent; }

.ed-bluetooth-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: not-allowed;
}
.ed-bt-note { font-size: 0.66rem; opacity: 0.7;
}

/* ===================== PRO CLUB ===================== */
.proclub-plan-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fcd34d;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 3px 10px;
}

.fleet-status {
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 9px;
}
.fleet-status.ok      { color: var(--green);  background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3); }
.fleet-status.warning { color: var(--yellow); background: rgba(234,179,8,0.1);  border: 1px solid rgba(234,179,8,0.3); }
.fleet-status.late    { color: #ef4444;       background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3); }

.cast-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.cast-btn:hover { color: var(--purple); border-color: rgba(124,58,237,0.4); }

.fleet-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 62px minmax(80px, 1.2fr) 58px 48px 26px;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}
.fleet-row:hover { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.05); }
.fleet-row.low  { border-color: rgba(249,115,22,0.5); background: rgba(249,115,22,0.06); }
.fleet-row.crit { border-color: rgba(239,68,68,0.6); background: rgba(239,68,68,0.08); animation: pulse-crit 1.6s infinite; }
@keyframes pulse-crit { 50% { background: rgba(239,68,68,0.16); } }

.fleet-row-name { font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-row-batt { font-weight: 700; color: var(--text-secondary); }
.fleet-row.low  .fleet-row-batt { color: var(--orange); }
.fleet-row.crit .fleet-row-batt { color: #ef4444; }
.fleet-row-bar  { font-family: monospace; font-size: 0.7rem; color: var(--green); letter-spacing: -1px; overflow: hidden; }
.fleet-row.low  .fleet-row-bar { color: var(--orange); }
.fleet-row.crit .fleet-row-bar { color: #ef4444; }
.fleet-row-km   { color: var(--text-muted); text-align: right; }
.fleet-row-mode { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px; color: var(--text-dim); text-align: center; }
.fleet-row-status { text-align: center; }

/* ===================== TV MODE ===================== */
.tv-mode {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 400;
  display: none;
  flex-direction: column;
  padding: 34px 40px;
}
.tv-mode.open { display: flex; }

.tv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}
.tv-title { font-size: 1.9rem; font-weight: 900; color: var(--text-primary); }
.tv-subtitle { font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; color: #00e676; margin-top: 4px; }
.tv-clock { font-size: 2rem; font-weight: 800; font-family: monospace; color: var(--text-secondary); }

.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-content: start;
  flex: 1;
}
.tv-bike {
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}
.tv-bike.low  { border-color: rgba(249,115,22,0.6); }
.tv-bike.crit { border-color: rgba(239,68,68,0.8); animation: pulse-crit 1.6s infinite; }
.tv-bike-name { font-size: 1.6rem; font-weight: 900; color: var(--text-primary); margin-bottom: 10px; }
.tv-bike-batt { font-size: 2.4rem; font-weight: 900; color: var(--green); margin-bottom: 12px; }
.tv-bike.low  .tv-bike-batt { color: var(--orange); }
.tv-bike.crit .tv-bike-batt { color: #ef4444; }
.tv-bike-gauge {
  height: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tv-bike-gauge-fill { height: 100%; background: linear-gradient(90deg, #00c853, #00e676); border-radius: 8px; transition: width 0.8s; }
.tv-bike.low  .tv-bike-gauge-fill { background: linear-gradient(90deg, #ea580c, #f97316); }
.tv-bike.crit .tv-bike-gauge-fill { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.tv-bike-meta { font-size: 1.15rem; font-weight: 700; color: var(--text-muted); }

/* ===================== VELTRAX BOOT SPLASH ===================== */
.veltrax-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.veltrax-boot.done { opacity: 0; pointer-events: none; }

.boot-logo {
  width: 140px;
  opacity: 0;
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(20,80,255,0.5));
  transition: opacity 0.8s ease;
}
.veltrax-boot.start .boot-logo { opacity: 1; }

.boot-bar {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease 0.5s;
}
.veltrax-boot.start .boot-bar { opacity: 1; }

.boot-bar-fill {
  width: 0;
  height: 100%;
  background: #1450ff;
  box-shadow: 0 0 8px #1450ff;
  transition: width 1.2s ease 0.8s;
}
.veltrax-boot.start .boot-bar-fill { width: 100%; }

/* ============================================================
   MODE PRÉSENTATION — Veltrax Launch Event
   ============================================================ */
#pres-indicator {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 99999;
  background: rgba(10, 10, 26, 0.82);
  border: 1.5px solid rgba(129, 21, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 9px 20px 9px 16px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 24px rgba(129, 21, 255, 0.25), 0 2px 16px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}
#pres-indicator.active {
  display: flex;
}
#pres-indicator:hover {
  border-color: rgba(255, 42, 208, 0.7);
  box-shadow: 0 0 32px rgba(255, 42, 208, 0.3), 0 2px 16px rgba(0,0,0,0.5);
}
.pres-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.pres-dot.passed {
  background: var(--purple, #8115ff);
}
.pres-dot.current {
  background: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
.pres-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono, monospace);
}
.pres-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}
.pres-step-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.3px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres-arrow {
  font-size: 1rem;
  color: rgba(129, 21, 255, 0.8);
  font-weight: 700;
  line-height: 1;
}

/* ======= Animation scanner QR ======= */
@keyframes qrScanLine {
  0%   { top: 8px;            opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* ============================================================
   ELECTRIC DASHBOARD — MODE PAYSAGE (LANDSCAPE)
   Tout visible en une seule fois, sans défilement
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  /* Grille 2 colonnes : compteur gauche | métriques droite */
  .electric-dashboard.open {
    display: grid !important;
    grid-template-columns: 42% 58%;
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas:
      "header  header"
      "gauge   badge"
      "gauge   metrics"
      "gauge   modes"
      "gauge   bt";
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    gap: 0;
  }

  /* Header : barre fine en haut */
  .ed-header {
    grid-area: header;
    margin-bottom: 0;
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
  }
  .ed-title    { font-size: 0.92rem; }
  .ed-subtitle { font-size: 0.58rem; }

  /* Badge DÉMO */
  .ed-demo-badge {
    grid-area: badge;
    margin: 4px auto 0;
    font-size: 0.54rem;
    padding: 2px 8px;
  }

  /* Compteur — colonne gauche entière */
  .ed-gauge-wrap {
    grid-area: gauge;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 6px 10px 10px;
    border-right: 1px solid var(--border);
    background: rgba(0,0,0,0.12);
  }
  .ed-gauge       { max-width: none; width: 96%; }
  .ed-speed-value { margin-top: -18px; font-size: 1.65rem; }

  /* Métriques 2×2 compactes */
  .ed-metrics-grid {
    grid-area: metrics;
    gap: 5px;
    margin-bottom: 0;
    padding: 4px 10px;
    align-content: center;
  }
  .ed-metric-tile  { padding: 5px 6px; }
  .ed-metric-icon  { font-size: 1rem; margin-bottom: 1px; }
  .ed-metric-label { font-size: 0.56rem; }
  .ed-metric-value { font-size: 0.82rem; }

  /* Boutons ECO / SPORT / BOOST */
  .ed-modes {
    grid-area: modes;
    margin-bottom: 0;
    padding: 0 10px 5px;
    gap: 5px;
  }
  .ed-mode-btn { padding: 7px 4px; font-size: 0.65rem; }

  /* Bluetooth */
  .ed-bluetooth-btn {
    grid-area: bt;
    margin: 0 10px 6px;
    padding: 6px 8px;
    font-size: 0.66rem;
  }
  .ed-bt-note { display: none; }
}
/* ===================== BIOMÉTRIE (Face ID / Touch ID) ===================== */
#btn-biometric-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  margin-bottom: 4px;
  border: 1px solid rgba(124,58,237,0.45);
  border-radius: var(--radius-sm);
  background: rgba(124,58,237,0.1);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
}
#btn-biometric-login:hover {
  background: rgba(124,58,237,0.18);
  border-color: var(--purple);
  transform: translateY(-1px);
}

.biometric-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 1px;
}
.biometric-separator::before,
.biometric-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

#modal-biometric-setup .modal { max-width: 380px; }

/* ============================================================
   CARROUSEL PROMOTIONS
   ============================================================ */
.promo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  height: 110px;
  cursor: pointer;
}

.promo-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  height: 100%;
}

.promo-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Pub prestataire : visuel plein cadre, aucun texte ajouté par l'app */
.promo-slide-display {
  background: #0a0a0a;
}
.promo-slide-display img {
  object-fit: cover;
}
.promo-slide-sponsor {
  position: absolute;
  bottom: 7px;
  right: 9px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 6px;
  pointer-events: none;
}

/* Overlay gradient pour lisibilité du texte */
.promo-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  gap: 3px;
}

.promo-slide-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 5px;
  padding: 2px 7px;
  width: fit-content;
  margin-bottom: 2px;
}

.promo-slide-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.promo-slide-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.promo-slide-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Dots de navigation */
.promo-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.promo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, width 0.3s;
}

.promo-dot.active {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}

/* Placeholder skeleton si aucune promo */
.promo-carousel-empty {
  display: none;
}

/* ── Carrousel Fonds d'écran offerts (scroll-snap) ── */
.wp-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:14px;}
.wp-carousel::-webkit-scrollbar{display:none;}
.wp-slide{position:relative;flex:0 0 100%;scroll-snap-align:center;cursor:pointer;}
.wp-slide img{width:100%;height:72vh;max-height:820px;object-fit:contain;background:#05040a;display:block;border-radius:14px;}
.wp-slide-grad{position:absolute;inset:0;border-radius:14px;background:linear-gradient(180deg,transparent 52%,rgba(10,8,20,0.92) 100%);pointer-events:none;}
.wp-slide-cap{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;}
.wp-slide-label{font-size:0.82rem;font-weight:800;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,0.85);}
.wp-dl{font-size:0.72rem;font-weight:700;color:#fff;background:rgba(249,115,22,0.92);padding:6px 12px;border-radius:20px;white-space:nowrap;box-shadow:0 2px 8px rgba(249,115,22,0.4);}
.wp-dots{display:flex;justify-content:center;gap:6px;margin-top:10px;}
.wp-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,0.25);transition:all .25s ease;}
.wp-dot.active{background:#f97316;width:22px;border-radius:4px;}
