/* ══════════════════════════════════════════════════════════════
   RénéVéo — styles.css
   Header · Menu mobile · Notifications · Toasts · Footer
   Même langage que l'accueil : barre couleur du fond, gris système, pilules,
   verre dépoli, pas de bordures.
══════════════════════════════════════════════════════════════ */

/* Anciens jetons conservés pour les autres pages qui les utilisent */
:root {
  --p:    #6934da;
  --p2:   #8f61ff;
  --bg:   #080808;
  --card: #101010;
  --card2:#171717;
  --txt:  #ffffff;
  --muted:#9a9aaa;
  --bdr:  rgba(255,255,255,.07);
  --live: #ff4d6d;
  --gold: #f4c542;
  --fire: #ff6428;
  --r:    14px;
  --hh:   62px;

  /* Jetons du header / footer (indépendants de la page) */
  --rv-sys:   -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --rv-s1:    #1c1c1e;
  --rv-s2:    #2c2c2e;
  --rv-s3:    #3a3a3c;
  --rv-l1:    #fff;
  --rv-l2:    rgba(235,235,245,.62);
  --rv-l3:    rgba(235,235,245,.32);
  --rv-fill:  rgba(120,120,128,.36);
  --rv-fill2: rgba(120,120,128,.5);
  --rv-glass: rgba(28,28,30,.72);
  --rv-live:  #ff375f;
  --rv-gold:  #ffd60a;
  --rv-fire:  #ff9f0a;
  --rv-acc:   #8f61ff;
  --rv-pad:   clamp(16px, 4.4vw, 64px);
  --rv-ease:  cubic-bezier(.22,1,.36,1);
}

.rv-header *, .rv-footer *, .rv-toast *, .rv-notif-panel * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.rv-header a, .rv-footer a, .rv-notif-panel a, .rv-toast a { text-decoration: none; }
.rv-notif-panel a, .rv-toast a { color: inherit; }
.rv-header button, .rv-notif-panel button { font: inherit; color: inherit; }

.rv-header :focus-visible,
.rv-footer :focus-visible,
.rv-notif-panel :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Point rouge « en direct » (nav, menu, footer) */
.rv-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rv-live);
  flex-shrink: 0;
  animation: rv-blink 2s ease-in-out infinite;
}
@keyframes rv-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.rv-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  height: var(--hh);
  font-family: var(--rv-sys);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}

/* En haut de page : même couleur que le fond des pages (var(--bg)).
   Sur un pseudo-élément pour que le flou du menu mobile fonctionne. */
.rv-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg, #080808);
  pointer-events: none;
  transition: opacity .35s ease;
}

.rv-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--rv-pad);
  gap: 28px;
  border-radius: 0;
  background: rgba(28,28,30,0);
  transition:
    max-width     .5s var(--rv-ease),
    height        .5s var(--rv-ease),
    padding       .5s var(--rv-ease),
    transform     .5s var(--rv-ease),
    border-radius .5s var(--rv-ease),
    background    .35s ease,
    box-shadow    .45s ease;
}

/* Au scroll : capsule de verre détachée */
.rv-header.rv-scrolled::before { opacity: 0; }
.rv-header.rv-scrolled .rv-header-inner {
  max-width: min(1180px, calc(100% - 32px));
  height: 54px;
  padding: 0 8px 0 22px;
  transform: translateY(8px);
  border-radius: 999px;
  background: var(--rv-glass);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 12px 40px rgba(0,0,0,.55), inset 0 .5px 0 rgba(255,255,255,.08);
}
.rv-header.rv-scrolled .rv-logo { height: 24px; }

/* ── Logo ─────────────────────────────────── */
.rv-logo-link { display: flex; align-items: center; flex-shrink: 0; min-width: 0; }
.rv-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  transition: height .4s var(--rv-ease), opacity .2s;
}
.rv-logo-link:hover .rv-logo { opacity: .82; }

/* ── Nav desktop : onglets en pilule, actif en blanc ── */
.rv-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.rv-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--rv-l2);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.rv-nav-link:hover  { color: var(--rv-l1); background: rgba(255,255,255,.08); }
.rv-nav-link.active { color: #000; background: #fff; }
.rv-nav-link.active .rv-live-dot { animation: none; }

/* ── Côté droit ───────────────────────────── */
.rv-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.rv-auth-buttons { display: flex; align-items: center; gap: 8px; }

/* Bouton principal : blanc, comme « Regarder » sur l'accueil */
.rv-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--rv-ease), background .2s;
}
.rv-btn-login:hover { background: rgba(255,255,255,.86); }
.rv-btn-login:active { transform: scale(.97); }

/* Bouton secondaire : verre gris */
.rv-btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--rv-fill);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: #fff;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--rv-ease), background .2s;
}
.rv-btn-register:hover { background: var(--rv-fill2); }
.rv-btn-register:active { transform: scale(.97); }

/* Zone connectée */
.rv-user-area { display: flex; align-items: center; gap: 8px; }

/* ── Points ───────────────────────────────── */
.rv-user-pts,
.rv-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--rv-fill);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background .15s;
}
.rv-user-pts { cursor: pointer; }
.rv-user-pts:hover { background: var(--rv-fill2); }
.rv-user-pts i { color: var(--rv-gold); font-size: .82rem; }
.rv-user-pts b { font-weight: 700; }
.rv-user-pts.rv-pts-bump { animation: rv-pop .45s ease; }

/* ── Série ────────────────────────────────── */
.rv-streak-badge { display: none; cursor: default; padding: 0 12px; gap: 6px; }
.rv-streak-badge i { color: var(--rv-fire); font-size: .84rem; }
.rv-streak-badge.rv-streak-bump { animation: rv-pop .5s ease; }

@keyframes rv-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ── Cloche ───────────────────────────────── */
.rv-notif-btn {
  position: relative;
  display: none; /* affichée par le JS si connecté */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--rv-fill);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: #fff;
  font-size: .9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.rv-notif-btn:hover { background: var(--rv-fill2); }
.rv-notif-btn.active { background: #fff; color: #000; }

/* Point rouge non lu */
.rv-notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rv-live);
  box-shadow: 0 0 0 2px #2a2a2c;
  pointer-events: none;
}

/* ── Avatar ───────────────────────────────── */
.rv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6934da, #8f61ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  text-transform: uppercase;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s var(--rv-ease);
}
.rv-avatar:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.rv-avatar.has-photo { background: var(--rv-s2); }
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Burger : deux traits ─────────────────── */
.rv-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--rv-fill);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  cursor: pointer;
  transition: background .15s;
}
.rv-burger:hover { background: var(--rv-fill2); }
.rv-burger span {
  display: block;
  width: 15px;
  height: 1.75px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--rv-ease), background .15s;
}
.rv-burger.open { background: #fff; }
.rv-burger.open span { background: #000; }
.rv-burger.open span:nth-child(1) { transform: translateY(3.9px) rotate(45deg); }
.rv-burger.open span:nth-child(2) { transform: translateY(-3.9px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   MENU MOBILE — feuille de verre sous le header
══════════════════════════════════════════════════════════════ */
.rv-mobile-menu {
  display: none;
  position: absolute;
  top: calc(var(--hh) + 4px);
  left: 10px;
  right: 10px;
  max-height: calc(100dvh - var(--hh) - 18px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: rgba(28,28,30,.86);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 .5px 0 rgba(255,255,255,.08);
  padding: 10px;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform .32s var(--rv-ease),
    opacity .2s ease,
    visibility 0s linear .32s;
  font-family: var(--rv-sys);
}
.rv-mobile-menu::-webkit-scrollbar { display: none; }
.rv-mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: all;
  transition:
    transform .32s var(--rv-ease),
    opacity .2s ease,
    visibility 0s;
}
.rv-header.rv-scrolled .rv-mobile-menu { top: calc(var(--hh) + 12px); }

.rv-mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rv-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background .15s;
}
.rv-mobile-nav a i { width: 20px; text-align: center; font-size: .95rem; color: var(--rv-l2); }
.rv-mobile-nav a .rv-live-dot { margin-left: auto; }
.rv-mobile-nav a:hover { background: rgba(255,255,255,.06); }
.rv-mobile-nav a.active { background: rgba(255,255,255,.1); }
.rv-mobile-nav a.active i { color: #fff; }

.rv-mobile-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 4px;
}
.rv-mobile-auth .rv-btn-login,
.rv-mobile-auth .rv-btn-register { height: 46px; font-size: .94rem; width: 100%; }

/* Apparition en cascade */
.rv-mobile-nav li,
.rv-mobile-auth {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .35s var(--rv-ease);
}
.rv-mobile-menu.open .rv-mobile-nav li,
.rv-mobile-menu.open .rv-mobile-auth { opacity: 1; transform: none; }
.rv-mobile-menu.open .rv-mobile-nav li:nth-child(2) { transition-delay: .03s; }
.rv-mobile-menu.open .rv-mobile-nav li:nth-child(3) { transition-delay: .06s; }
.rv-mobile-menu.open .rv-mobile-nav li:nth-child(4) { transition-delay: .09s; }
.rv-mobile-menu.open .rv-mobile-nav li:nth-child(5) { transition-delay: .12s; }
.rv-mobile-menu.open .rv-mobile-auth                { transition-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  .rv-header::before,
  .rv-header-inner,
  .rv-mobile-menu,
  .rv-mobile-nav li,
  .rv-mobile-auth,
  .rv-notif-panel,
  .rv-toast { transition: none !important; }
  .rv-live-dot { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   PANNEAU NOTIFICATIONS
══════════════════════════════════════════════════════════════ */
.rv-notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: transparent;
  pointer-events: none;
}
.rv-notif-overlay.open { pointer-events: all; }

.rv-notif-panel {
  position: fixed;
  top: calc(var(--hh) + 10px);
  right: 16px;
  z-index: 1100;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: min(520px, calc(100dvh - var(--hh) - 24px));
  display: flex;
  flex-direction: column;
  background: rgba(28,28,30,.9);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 .5px 0 rgba(255,255,255,.08);
  font-family: var(--rv-sys);
  -webkit-font-smoothing: antialiased;
  color: #fff;
  transform-origin: top right;
  transform: scale(.96) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s var(--rv-ease), opacity .15s ease;
  overflow: hidden;
}
.rv-notif-panel.open { transform: none; opacity: 1; pointer-events: all; }

.rv-notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 8px 18px;
  flex-shrink: 0;
}
.rv-notif-panel-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }

.rv-notif-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--rv-fill);
  color: #fff;
  cursor: pointer;
  font-size: .8rem;
  transition: background .15s;
}
.rv-notif-close:hover { background: var(--rv-fill2); }

.rv-notif-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
  padding: 4px 8px;
}

.rv-notif-panel-footer { flex-shrink: 0; padding: 8px 12px 12px; }
.rv-notif-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  background: var(--rv-fill);
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  transition: background .15s;
}
.rv-notif-view-all:hover { background: var(--rv-fill2); }

.rv-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
  color: var(--rv-l2);
  font-size: .86rem;
  font-weight: 500;
}
.rv-notif-empty i { font-size: 1.4rem; color: var(--rv-l3); }

.rv-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  transition: background .12s;
  cursor: default;
  user-select: none;
  position: relative;
}
.rv-notif-item.rv-notif-clickable { cursor: pointer; }
.rv-notif-item.rv-notif-clickable:hover { background: rgba(255,255,255,.06); }

.rv-notif-icon-wrap { position: relative; flex-shrink: 0; }
.rv-notif-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  /* fond et couleur posés en inline par TYPE_META */
}

.rv-notif-unread-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rv-live);
  box-shadow: 0 0 0 2px #1f1f21;
}

.rv-notif-content { flex: 1; min-width: 0; }
.rv-notif-title-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.rv-notif-item-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.rv-notif-item:not(.rv-notif-unread) .rv-notif-item-title { color: var(--rv-l2); }
.rv-notif-time-only {
  font-size: .74rem;
  font-weight: 500;
  color: var(--rv-l3);
  white-space: nowrap;
  flex-shrink: 0;
}
.rv-notif-item-sub {
  font-size: .82rem;
  font-weight: 400;
  color: var(--rv-l2);
  line-height: 1.45;
  word-break: break-word;
}
.rv-notif-cta-row { margin-top: 6px; }
.rv-notif-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--rv-acc);
}
.rv-notif-cta i { font-size: .62rem; }


/* ══════════════════════════════════════════════════════════════
   TOASTS
══════════════════════════════════════════════════════════════ */
.rv-toast {
  position: fixed;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  font-family: var(--rv-sys);
  -webkit-font-smoothing: antialiased;
  color: #fff;
  min-width: 280px;
  max-width: 360px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(28,28,30,.88);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 .5px 0 rgba(255,255,255,.08);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  transition: transform .4s var(--rv-ease), opacity .28s ease;
  cursor: pointer;
}
.rv-toast.rv-toast-in  { transform: none; opacity: 1; pointer-events: all; }
.rv-toast.rv-toast-out {
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  transition: transform .3s ease, opacity .25s ease;
}

#rvToastDaily  { top: calc(var(--hh) + 14px); --tc: var(--rv-gold); --tbg: rgba(255,214,10,.16); }
#rvToastStreak { top: calc(var(--hh) + 14px + 82px); --tc: var(--rv-fire); --tbg: rgba(255,159,10,.16); }

.rv-toast-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--tbg, var(--rv-fill));
  color: var(--tc, #fff);
}
.rv-toast-body  { flex: 1; min-width: 0; }
.rv-toast-title { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }
.rv-toast-sub   { font-size: .78rem; font-weight: 500; color: var(--rv-l2); line-height: 1.35; }
.rv-toast-pts   { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; flex-shrink: 0; color: var(--tc, #fff); font-variant-numeric: tabular-nums; }

.rv-toast-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: transparent;
}
.rv-toast-bar-fill {
  height: 100%; width: 100%;
  transform-origin: left;
  background: var(--tc, #fff);
  opacity: .7;
  animation: rv-toast-drain linear forwards;
}
@keyframes rv-toast-drain {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.rv-footer {
  font-family: var(--rv-sys);
  -webkit-font-smoothing: antialiased;
  color: #fff;
  background: transparent;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 0 var(--rv-pad) 24px;
}
.rv-footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 22px;
  background: var(--rv-s1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
}
.rv-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 360px; }
.rv-footer-logo  { height: 26px; width: auto; object-fit: contain; }
.rv-footer-tagline { color: var(--rv-l2); font-size: .9rem; font-weight: 400; line-height: 1.55; }
.rv-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  margin-top: 4px;
  border-radius: 999px;
  background: #fff;
  color: #000 !important;
  font-size: .88rem;
  font-weight: 600;
  transition: background .2s;
}
.rv-footer-cta:hover { background: rgba(255,255,255,.86); }

.rv-footer-cols { display: flex; gap: clamp(32px, 5vw, 72px); }
.rv-footer-col h4 {
  font-size: .82rem;
  font-weight: 600;
  color: var(--rv-l3);
  margin-bottom: 14px;
}
.rv-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rv-footer-col a {
  color: var(--rv-l2);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.rv-footer-col a:hover { color: #fff; }

.rv-footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px clamp(28px, 3vw, 40px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.rv-footer-bottom span { color: var(--rv-l3); font-size: .78rem; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .rv-nav          { display: none; }
  .rv-auth-buttons { margin-right: 0; }
  .rv-auth-buttons .rv-btn-register { display: none; }
  .rv-auth-buttons .rv-btn-login { height: 34px; padding: 0 15px; font-size: .84rem; }
  .rv-burger       { display: flex; }
  .rv-mobile-menu  { display: block; }
  .rv-header-inner { gap: 0; }
  .rv-header.rv-scrolled .rv-header-inner {
    max-width: calc(100% - 20px);
    padding: 0 6px 0 16px;
  }

  /* Connecté sur mobile : tout tient sur une ligne, le logo rétrécit si besoin */
  .rv-logo-link { flex-shrink: 1; margin-right: 10px; }
  .rv-logo { max-width: 100%; }
  .rv-header-right { gap: 6px; min-width: 0; }
  .rv-user-area { gap: 6px; }
  .rv-user-pts, .rv-streak-badge { height: 34px; padding: 0 11px; font-size: .8rem; gap: 5px; }
  .rv-pts-u { display: none; }
  .rv-avatar, .rv-notif-btn, .rv-burger { width: 34px; height: 34px; flex-shrink: 0; }

  .rv-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .rv-footer-cols  { flex-wrap: wrap; gap: 28px 40px; }

  .rv-toast { right: 12px; left: 12px; min-width: 0; max-width: none; }
}

/* Menu ouvert : la barre devient la capsule (même en haut de page)
   et se soude au menu pour former un seul bloc de verre */
@media (max-width: 900px) {
  .rv-header.rv-menu-open::before,
  .rv-header.rv-notif-open::before { opacity: 0; }
  .rv-header.rv-menu-open .rv-header-inner,
  .rv-header.rv-notif-open .rv-header-inner {
    max-width: calc(100% - 20px);
    height: 54px;
    padding: 0 6px 0 16px;
    transform: translateY(8px);
    border-radius: 22px 22px 0 0;
    background: rgba(28,28,30,.92);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    box-shadow: inset 0 .5px 0 rgba(255,255,255,.08);
    transition-property: max-width, height, padding, transform, background, box-shadow;
  }
  .rv-header.rv-menu-open .rv-logo,
  .rv-header.rv-notif-open .rv-logo { height: 24px; }

  /* Notifications : même soudure que le menu */
  .rv-notif-panel {
    top: 62px !important;
    left: 10px; right: 10px !important;
    width: auto; max-width: none;
    max-height: calc(100dvh - 76px);
    border-radius: 0 0 22px 22px;
    background: rgba(28,28,30,.92);
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
    transform: none;
    transition: opacity .2s ease;
  }
  .rv-notif-panel .rv-notif-panel-header { padding-top: 10px; }
  .rv-header.rv-menu-open .rv-mobile-menu {
    top: 62px;                      /* 8px de décalage + 54px de barre */
    left: 10px;
    right: 10px;
    border-radius: 0 0 22px 22px;
    background: rgba(28,28,30,.92);
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
    padding-top: 4px;
    transform: none;
    transition: opacity .2s ease, visibility 0s;
  }
}

@media (max-width: 420px) {
  .rv-logo, .rv-header.rv-scrolled .rv-logo { height: 22px; }
  .rv-header-right, .rv-user-area { gap: 5px; }
  .rv-user-pts, .rv-streak-badge { height: 32px; padding: 0 9px; gap: 4px; font-size: .78rem; }
  .rv-avatar, .rv-notif-btn, .rv-burger { width: 32px; height: 32px; }
  .rv-notif-btn { font-size: .82rem; }
  .rv-header.rv-scrolled .rv-header-inner,
  .rv-header.rv-menu-open .rv-header-inner,
  .rv-header.rv-notif-open .rv-header-inner { padding: 0 5px 0 12px; }
  .rv-footer-cols .rv-footer-col { min-width: calc(50% - 20px); }
  .rv-footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 350px) {
  .rv-streak-badge { display: none !important; }
}