/* ═══════════════════════════════════════════════════════════════════
   LA SPHÈRE V3 — Design System
   Une seule identité pour tout l'écosystème : site, espace membre,
   réservation, boutique, outils, administration.
   Deux directions artistiques complètes :
   · Clair  — nacre lumineuse, chrome argenté, rouge La Sphère
   · Sombre — noir studio/cinéma, chrome poli, glow rouge maîtrisé
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens : mode clair (défaut) ── */
:root,
html[data-v3-theme='light'] {
  color-scheme: light;
  --v3-bg: #f4f2ee;          /* fond de page */
  --v3-bg-2: #ebe8e2;        /* fond secondaire */
  --v3-lift: #ffffff;        /* surfaces élevées (cartes, panneaux) */
  --v3-surface: #ffffff;
  --v3-surface-2: #f7f6f3;
  --v3-ink: #0d0c0c;         /* texte principal */
  --v3-ink-2: rgba(13, 12, 12, 0.66);
  --v3-ink-3: rgba(13, 12, 12, 0.44);
  --v3-line: rgba(13, 12, 12, 0.1);
  --v3-line-2: rgba(13, 12, 12, 0.18);
  --v3-glass: #ffffff;
  --v3-glass-k: 9;           /* le « verre » blanc translucide devient nacré */
  --v3-shadow-rgb: 34, 22, 14;
  --v3-shadow-k: 0.32;
  --v3-glow-rgb: 255, 255, 255;
  --v3-glow-k: 0.5;
  --v3-red: #d0101e;
  --v3-red-hot: #ff2a3d;
  --v3-red-soft: rgba(208, 16, 30, 0.08);
  --v3-red-glow: rgba(255, 42, 61, 0.28);
  --v3-chrome: linear-gradient(180deg, #2a2a2c 0%, #5d5c5e 34%, #0f0f10 52%, #3c3b3d 74%, #111 100%);
  --v3-ok: #0f9d58;
  --v3-warn: #c77700;
  --v3-danger: #d0101e;
  --v3-info: #2b6cb0;
  --v3-elev-1: 0 1px 2px rgba(34,22,14,0.05), 0 8px 24px -12px rgba(34,22,14,0.16);
  --v3-elev-2: 0 2px 6px rgba(34,22,14,0.05), 0 24px 60px -24px rgba(34,22,14,0.24);
  --v3-elev-3: 0 4px 12px rgba(34,22,14,0.06), 0 50px 100px -40px rgba(34,22,14,0.36);
  --v3-ambient: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,0.95), transparent 70%),
                radial-gradient(40% 40% at 90% 8%, rgba(255,42,61,0.07), transparent 70%),
                radial-gradient(50% 45% at 5% 95%, rgba(190,185,176,0.35), transparent 70%);
}

/* ── Tokens : mode sombre ── */
html[data-v3-theme='dark'] {
  color-scheme: dark;
  --v3-bg: #070708;
  --v3-bg-2: #0d0d0f;
  --v3-lift: #2a2a2e;        /* référence : la surface la plus claire des anciennes pages */
  --v3-surface: #121214;
  --v3-surface-2: #18181b;
  --v3-ink: #f3f0ea;
  --v3-ink-2: rgba(243, 240, 234, 0.68);
  --v3-ink-3: rgba(243, 240, 234, 0.44);
  --v3-line: rgba(255, 255, 255, 0.09);
  --v3-line-2: rgba(255, 255, 255, 0.18);
  --v3-glass: #ffffff;
  --v3-glass-k: 1;
  --v3-shadow-rgb: 0, 0, 0;
  --v3-shadow-k: 1;
  --v3-glow-rgb: 255, 255, 255;
  --v3-glow-k: 1;
  --v3-red-soft: rgba(255, 42, 61, 0.12);
  --v3-red-glow: rgba(255, 42, 61, 0.4);
  --v3-chrome: linear-gradient(180deg, #ffffff 8%, #d4d2cd 42%, #6f6d69 58%, #f3f1ec 78%, #9b9893 100%);
  --v3-ok: #34d399;
  --v3-warn: #fbbf24;
  --v3-danger: #ff4d5e;
  --v3-info: #60a5fa;
  --v3-elev-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px -16px rgba(0,0,0,0.8);
  --v3-elev-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -30px rgba(0,0,0,0.9);
  --v3-elev-3: 0 1px 0 rgba(255,255,255,0.06) inset, 0 50px 100px -40px rgba(0,0,0,0.95);
  --v3-ambient: radial-gradient(55% 45% at 50% 0%, rgba(255,42,61,0.14), transparent 70%),
                radial-gradient(45% 40% at 95% 100%, rgba(255,255,255,0.04), transparent 70%);
}

/* Typo & rythme communs */
:root {
  --v3-f-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --v3-f-body: 'DM Sans', 'DM Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --v3-f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --v3-r-s: 10px;
  --v3-r: 16px;
  --v3-r-l: 24px;
  --v3-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --v3-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --v3-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ── Base commune à toutes les pages ── */
html[data-v3], html[data-v3] body { overflow-x: clip; }
html { background-color: var(--v3-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--v3-red); color: #fff; }
:focus-visible { outline: 2px solid var(--v3-red-hot); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--v3-line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--v3-line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* Transition de thème (repli quand les View Transitions ne sont pas disponibles) */
html.v3-theme-anim, html.v3-theme-anim *, html.v3-theme-anim *::before, html.v3-theme-anim *::after {
  transition: background-color 0.55s var(--v3-ease-io), color 0.55s var(--v3-ease-io), border-color 0.55s var(--v3-ease-io),
              fill 0.55s var(--v3-ease-io), box-shadow 0.55s var(--v3-ease-io) !important;
}
/* Transition de thème principale : révélation circulaire depuis le sélecteur */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: v3-reveal 0.75s var(--v3-ease-io) both; clip-path: circle(0 at var(--v3-vx, 50%) var(--v3-vy, 0%)); }
@keyframes v3-reveal { to { clip-path: circle(var(--v3-vr, 150vmax) at var(--v3-vx, 50%) var(--v3-vy, 0%)); } }

/* ═════════ Sélecteur de thème ═════════ */
.v3-theme {
  --h: 40px;
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: var(--h);
  border-radius: 999px; background: color-mix(in oklab, var(--v3-ink) 6%, transparent); border: 1px solid var(--v3-line);
  font: 500 12px/1 var(--v3-f-body); color: var(--v3-ink-2); isolation: isolate;
}
.v3-theme button {
  position: relative; z-index: 1; height: 100%; min-width: 34px; padding: 0 10px; border: 0; border-radius: 999px;
  background: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; transition: color 0.3s;
}
.v3-theme button[aria-pressed='true'] { color: var(--v3-ink); }
.v3-theme button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v3-theme .v3-theme-pill {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px;
  background: var(--v3-surface); box-shadow: var(--v3-elev-1);
  transition: transform 0.5s var(--v3-spring), width 0.5s var(--v3-spring);
}
html[data-v3-theme='dark'] .v3-theme .v3-theme-pill { background: color-mix(in oklab, var(--v3-ink) 14%, var(--v3-bg)); }
.v3-theme--compact button span { display: none; }
.v3-theme--float { position: fixed; right: 16px; bottom: 16px; z-index: 9990; box-shadow: var(--v3-elev-2); background: color-mix(in oklab, var(--v3-surface) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media print { .v3-theme, .v3-bar { display: none !important; } }

/* ═════════ Barre écosystème (pages qui n'ont pas leur propre nav V3) ═════════ */
.v3-bar, .v3-bar *, .v3-drawer, .v3-drawer * { box-sizing: border-box; letter-spacing: normal; text-transform: none; text-shadow: none; }
.v3-bar a, .v3-drawer a { position: static; margin: 0; border: 0; background: none; font-family: var(--v3-f-body); }
.v3-bar {
  position: sticky; top: 0; z-index: 9000; height: 60px; padding: 0 clamp(12px, 3vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; left: 0; right: 0; margin: 0;
  background: color-mix(in oklab, var(--v3-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--v3-line); font: 500 14px/1 var(--v3-f-body); color: var(--v3-ink);
}
.v3-bar a { color: inherit; text-decoration: none; }
.v3-bar .v3-bar-brand { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--v3-f-display); letter-spacing: 0.06em; }
.v3-bar-brand img { width: 34px; height: 34px; object-fit: contain; transition: transform 1.2s var(--v3-ease); }
.v3-bar-brand:hover img { transform: rotate(360deg); }
.v3-bar-links { display: flex; gap: 2px; align-items: center; }
.v3-bar .v3-bar-brand span { font: 400 22px/1 var(--v3-f-display); letter-spacing: .06em; }
.v3-bar .v3-bar-links a { display: inline-block; padding: 8px 12px; font: 500 14px/1 var(--v3-f-body); border-radius: 999px; color: var(--v3-ink-2); transition: color 0.3s, background 0.3s; }
.v3-bar-links a:hover { color: var(--v3-ink); background: color-mix(in oklab, var(--v3-ink) 7%, transparent); }
.v3-bar-links a[aria-current='page'] { color: var(--v3-ink); background: color-mix(in oklab, var(--v3-ink) 7%, transparent); }
.v3-bar-right { display: flex; align-items: center; gap: 8px; }
.v3-bar .v3-bar-cta { height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; color: #fff !important; font-weight: 600;
  background: linear-gradient(180deg, #ff3345, #d0101e); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 20px -10px rgba(208,16,30,0.8); }
.v3-bar-menu { display: none; }
@media (max-width: 980px) { .v3-bar-links { display: none; } .v3-bar-menu { display: inline-flex; } }
@media (max-width: 560px) { .v3-bar .v3-bar-brand span { display: none; } .v3-bar .v3-bar-cta { padding: 0 12px; font-size: 13px; } .v3-bar { gap: 8px; } .v3-bar .v3-theme button { min-width: 30px; padding: 0 6px; } }
.v3-bar-menu { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--v3-line-2); background: none; color: inherit; align-items: center; justify-content: center; cursor: pointer; }
.v3-bar-menu svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.v3-drawer { position: fixed; inset: 0; z-index: 9500; display: none; }
.v3-drawer.is-open { display: block; }
.v3-drawer-veil { position: absolute; inset: 0; background: rgb(var(--v3-shadow-rgb) / 0.35); animation: v3-fade 0.3s both; }
.v3-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); padding: 22px; overflow-y: auto;
  background: var(--v3-surface); box-shadow: var(--v3-elev-3); animation: v3-slide 0.5s var(--v3-ease) both; display: flex; flex-direction: column; gap: 4px; }
.v3-drawer-panel a { padding: 12px 14px; border-radius: 12px; color: var(--v3-ink); text-decoration: none; font: 500 16px/1.2 var(--v3-f-body); }
.v3-drawer-panel a:hover { background: color-mix(in oklab, var(--v3-ink) 6%, transparent); }
.v3-drawer-panel .v3-drawer-h { font: 400 11px/1 var(--v3-f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--v3-ink-3); margin: 18px 14px 6px; }
@keyframes v3-fade { from { opacity: 0; } }
@keyframes v3-slide { from { transform: translateX(40px); opacity: 0; } }

/* ═════════ Composants partagés (utilisés par les pages refondues) ═════════ */
.v3-btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 15px/1 var(--v3-f-body); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: scale 0.35s var(--v3-ease), box-shadow 0.4s var(--v3-ease), background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.v3-btn:active { scale: 0.97; }
.v3-btn[disabled], .v3-btn.is-loading { opacity: 0.55; pointer-events: none; }
.v3-btn::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent); transform: translateX(-160%) skewX(-20deg); transition: transform 0.9s var(--v3-ease); }
.v3-btn:hover::after { transform: translateX(330%) skewX(-20deg); }
.v3-btn--primary { color: #fff; background: linear-gradient(180deg, #ff3345, #d0101e); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 26px -10px rgba(208,16,30,0.7); }
.v3-btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 18px 40px -12px rgba(255,42,61,0.75); }
.v3-btn--ghost { color: var(--v3-ink); background: color-mix(in oklab, var(--v3-surface) 70%, transparent); border-color: var(--v3-line-2); }
.v3-btn--ghost:hover { background: var(--v3-ink); color: var(--v3-bg); border-color: var(--v3-ink); }
.v3-btn--ink { background: var(--v3-ink); color: var(--v3-bg); }
.v3-btn--s { --h: 38px; padding: 0 16px; font-size: 13px; }
.v3-btn--block { width: 100%; }
.v3-btn.is-loading::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: v3-spin 0.7s linear infinite; }
@keyframes v3-spin { to { transform: rotate(360deg); } }

.v3-card { position: relative; background: var(--v3-surface); border: 1px solid var(--v3-line); border-radius: var(--v3-r-l); box-shadow: var(--v3-elev-1); }
html[data-v3-theme='light'] .v3-card { border-color: rgba(255,255,255,0.9); }
.v3-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font: 500 12px/1 var(--v3-f-body); background: color-mix(in oklab, var(--v3-ink) 6%, transparent); color: var(--v3-ink-2); }
.v3-chip--red { background: var(--v3-red-soft); color: var(--v3-red-hot); }
.v3-chip--ok { background: color-mix(in oklab, var(--v3-ok) 14%, transparent); color: var(--v3-ok); }
.v3-chip--warn { background: color-mix(in oklab, var(--v3-warn) 16%, transparent); color: var(--v3-warn); }
.v3-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 20%, transparent); }
.v3-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 11px/1 var(--v3-f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--v3-ink-2); }
.v3-display { font-family: var(--v3-f-body); font-weight: 650; letter-spacing: -0.042em; line-height: 0.95; }
.v3-mono { font-family: var(--v3-f-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }

.v3-input, .v3-select, .v3-textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--v3-line-2);
  background: var(--v3-surface); color: var(--v3-ink); font: 400 15px/1.2 var(--v3-f-body); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.v3-textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.v3-input:focus, .v3-select:focus, .v3-textarea:focus { border-color: var(--v3-red-hot); box-shadow: 0 0 0 4px var(--v3-red-soft); }
.v3-label { display: block; margin: 0 0 8px; font: 500 13px/1.2 var(--v3-f-body); color: var(--v3-ink-2); }

.v3-skel { position: relative; overflow: hidden; border-radius: 10px; background: color-mix(in oklab, var(--v3-ink) 7%, transparent); }
.v3-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--v3-ink) 7%, transparent), transparent); animation: v3-shimmer 1.4s infinite; }
@keyframes v3-shimmer { to { transform: translateX(100%); } }

.v3-empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--v3-ink-2); }
.v3-empty-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--v3-ink) 6%, transparent); color: var(--v3-ink-3); }
.v3-empty-ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.v3-empty strong { color: var(--v3-ink); font-size: 16px; }

/* Toasts */
.v3-toasts { position: fixed; left: 50%; bottom: 22px; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.v3-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font: 500 14px/1.2 var(--v3-f-body);
  background: var(--v3-ink); color: var(--v3-bg); box-shadow: var(--v3-elev-3); animation: v3-toast-in 0.5s var(--v3-spring) both; }
.v3-toast.is-out { animation: v3-toast-out 0.35s var(--v3-ease-io) both; }
.v3-toast--ok::before, .v3-toast--err::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--v3-ok); }
.v3-toast--err::before { background: var(--v3-red-hot); }
@keyframes v3-toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes v3-toast-out { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* Modales / confirmations */
.v3-modal { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 20px; }
.v3-modal-veil { position: absolute; inset: 0; background: rgb(var(--v3-shadow-rgb) / 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: v3-fade 0.3s both; }
.v3-modal-box { position: relative; width: min(460px, 100%); padding: 28px; border-radius: var(--v3-r-l); background: var(--v3-surface); color: var(--v3-ink); box-shadow: var(--v3-elev-3); animation: v3-pop 0.45s var(--v3-spring) both; font-family: var(--v3-f-body); }
.v3-modal-box h3 { margin: 0 0 8px; font: 650 22px/1.15 var(--v3-f-body); letter-spacing: -0.03em; }
.v3-modal-box p { margin: 0 0 22px; color: var(--v3-ink-2); line-height: 1.5; }
.v3-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.v3-modal.is-out .v3-modal-box { animation: v3-pop-out 0.25s var(--v3-ease-io) both; }
.v3-modal.is-out .v3-modal-veil { animation: v3-fade 0.25s reverse both; }
@keyframes v3-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes v3-pop-out { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* Apparitions au défilement (pages refondues) */
.v3-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--v3-ease), transform 0.9s var(--v3-ease); }
.v3-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .v3-reveal { opacity: 1; transform: none; }
  ::view-transition-new(root) { animation: none; }
}

/* ═════════ Sous-barre : navigation propre à la page ═════════ */
html[data-v3] .v3-subnav {
  position: sticky !important; top: 60px !important; left: auto !important; right: auto !important; z-index: 8990 !important; width: 100% !important;
  display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 8px !important; flex-wrap: nowrap !important;
  min-height: 52px !important; height: auto !important; margin: 0 !important; padding: 8px clamp(12px, 3vw, 28px) !important; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in oklab, var(--v3-bg) 86%, transparent) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--v3-line) !important; box-shadow: none !important; transform: none !important;
}
html[data-v3] .v3-subnav::-webkit-scrollbar { display: none; }
html[data-v3] .v3-subnav .nav-logo, html[data-v3] .v3-subnav > a:first-of-type:has(img) { display: none !important; }
html[data-v3] .v3-subnav > div, html[data-v3] .v3-subnav .nav-links, html[data-v3] .v3-subnav .nav-right { display: flex !important; align-items: center; gap: 6px !important; margin-left: auto; flex-shrink: 0; }
html[data-v3] .v3-subnav a, html[data-v3] .v3-subnav button { white-space: nowrap; flex-shrink: 0; }
.v3-subnav-title { margin-right: auto; font: 650 15px/1.1 var(--v3-f-body); letter-spacing: -.02em; color: var(--v3-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }

/* ═════════ Barre d'onglets mobile ═════════ */
.v3-tabbar { display: none; }
@media (max-width: 760px) {
  .v3-tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9400;
    display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding: 6px; border-radius: 22px;
    background: color-mix(in oklab, var(--v3-surface) 86%, transparent); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid var(--v3-line); box-shadow: var(--v3-elev-3);
  }
  .v3-tabbar a, .v3-tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 16px; background: none;
    color: var(--v3-ink-3); text-decoration: none; font: 500 10.5px/1 var(--v3-f-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .v3-tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .v3-tabbar [aria-current='page'] { color: var(--v3-red-hot); background: var(--v3-red-soft); }
  .v3-tabbar a:active, .v3-tabbar button:active { transform: scale(.94); }
  html.has-tabbar body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  html.has-tabbar .v3-theme--float { bottom: calc(86px + env(safe-area-inset-bottom)); }
  html.has-tabbar .v3-toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .v3-bar .v3-bar-menu { display: none; }
  html.has-tabbar #cookieBanner { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
}

/* ═════════ Tableaux en cartes (téléphone) ═════════ */
@media (max-width: 760px) {
  html[data-v3-stack-tables] table.v3-stack, html[data-v3-stack-tables] table.v3-stack tbody { display: block; width: 100% !important; border: 0 !important; }
  html[data-v3-stack-tables] table.v3-stack thead, html[data-v3-stack-tables] table.v3-stack tr:has(> th) { display: none; }
  html[data-v3-stack-tables] table.v3-stack tr { display: block; margin: 0 0 10px; padding: 6px 14px; border-radius: 16px; background: var(--v3-surface); border: 1px solid var(--v3-line); box-shadow: var(--v3-elev-1); }
  html[data-v3-stack-tables] table.v3-stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0 !important; border: 0 !important; border-bottom: 1px solid var(--v3-line) !important; text-align: right; font-size: 14px !important; min-width: 0; overflow-wrap: anywhere; }
  html[data-v3-stack-tables] table.v3-stack td:last-child { border-bottom: 0 !important; }
  html[data-v3-stack-tables] table.v3-stack td[data-label]::before { content: attr(data-label); flex-shrink: 0; text-align: left; font: 400 10px/1.2 var(--v3-f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--v3-ink-3); }
  html[data-v3-stack-tables] table.v3-stack td > button, html[data-v3-stack-tables] table.v3-stack td > a { min-height: 40px; }
}

/* ── Fond néon (mode sombre) : logo en néon + petites lumières rouges / blanches ── */
.v3-neon { display: none; }
html[data-v3-theme='dark'] .v3-neon {
  display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(55% 40% at 50% -6%, rgba(255, 42, 61, 0.16), transparent 70%),
    radial-gradient(40% 35% at 100% 100%, rgba(255, 42, 61, 0.08), transparent 70%),
    radial-gradient(35% 30% at 0% 80%, rgba(255, 255, 255, 0.035), transparent 70%);
}
/* le fond passe sur <html> pour que le décor néon (z-index -1) reste visible derrière le contenu */
html[data-v3-theme='dark']:has(.v3-neon) { background: var(--v3-bg); }
html[data-v3-theme='dark']:has(.v3-neon) body { background: transparent !important; }
.v3-neon-logo {
  position: absolute; left: 50%; top: 50%; width: min(78vmin, 760px); aspect-ratio: 1; translate: -50% -50%;
  -webkit-mask: url('/assets/images/logo-records.webp') center / contain no-repeat;
          mask: url('/assets/images/logo-records.webp') center / contain no-repeat;
  background: linear-gradient(160deg, #fff 0%, #ff5a66 35%, #ff1f33 60%, #fff 100%);
  opacity: 0.075;
  animation: v3NeonHum 7s ease-in-out infinite;
}
.v3-neon-logo--glow { filter: blur(22px); opacity: 0.14; background: #ff2a3d; animation-duration: 9s; }
.v3-bokeh { position: absolute; border-radius: 50%; translate: -50% -50%; filter: blur(2px); animation: v3Bokeh 8s ease-in-out infinite; }
.v3-bokeh--r { background: radial-gradient(circle, rgba(255, 50, 66, 0.30), rgba(255, 42, 61, 0.08) 45%, transparent 70%); }
.v3-bokeh--w { background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 45%, transparent 70%); }
@keyframes v3Bokeh { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes v3NeonHum { 0%, 100% { opacity: 0.05; } 48% { opacity: 0.07; } 50% { opacity: 0.045; } 52% { opacity: 0.07; } }
.v3-neon-logo--glow { animation-name: v3NeonGlow; }
@keyframes v3NeonGlow { 0%, 100% { opacity: 0.09; } 50% { opacity: 0.14; } }
@media (max-width: 700px) { .v3-neon-logo { width: 92vw; } .v3-bokeh { scale: 0.6; } }
@media (prefers-reduced-motion: reduce) { .v3-neon-logo, .v3-bokeh { animation: none !important; } }
