/* ─────────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────────────────── */
:root {
  --bg:    #05050c;
  --bg1:   #0a0a16;
  --bg2:   #0f0f1e;
  --bg3:   #151528;

  /* Glass */
  --g0: rgba(255,255,255,.022);
  --g1: rgba(255,255,255,.05);
  --g2: rgba(255,255,255,.10);
  --gb: rgba(255,255,255,.065);
  --gbh:rgba(255,255,255,.13);

  /* Card (alias utilisé dans le projet) */
  --card: rgba(255,255,255,.028);
  --card-border: rgba(255,255,255,.07);

  /* Purple brand */
  --p:    #7c3aed;
  --pl:   #a78bfa;
  --pd:   #5b21b6;
  --pglow:rgba(124,58,237,.4);

  /* Amber brand */
  --am:   #f59e0b;
  --aml:  #fcd34d;
  --amd:  #d97706;
  --aglow:rgba(245,158,11,.35);

  /* Text */
  --t1: #eeeef8;
  --t2: #9898c8;
  --t3: #7272a8;

  /* Status */
  --green:  #10b981;
  --red:    #ef4444;
  --orange: #f97316;

  /* Shape */
  --r:   10px;
  --r2:  14px;
  --rl:  16px;
  --rxl: 22px;
  --rf:  9999px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --fast: .15s var(--ease);
  --mid:  .25s var(--ease);
  --slow: .4s  var(--ease);
}

/* ─────────────────────────────────────────────────────────────
   THÈME CLAIR
───────────────────────────────────────────────────────────── */
html.light {
  --bg:    #f2f1fa;
  --bg1:   #eae9f5;
  --bg2:   #e2e0f0;
  --bg3:   #d8d6ea;

  --g0: rgba(255,255,255,.85);
  --g1: rgba(255,255,255,.92);
  --g2: rgba(255,255,255,1);
  --gb: rgba(80,60,160,.1);
  --gbh:rgba(80,60,160,.18);

  --card: rgba(255,255,255,.9);
  --card-border: rgba(80,60,160,.12);

  --t1: #12102a;
  --t2: #4a4272;
  --t3: #8e87b8;

  --pglow: rgba(124,58,237,.2);
  --aglow: rgba(245,158,11,.2);
}

/* Body light overrides */
html.light body { background: var(--bg); color: var(--t1); }

/* Sidebar light */
html.light .sidebar {
  background: rgba(255,255,255,.95);
  border-right-color: rgba(80,60,160,.12);
  backdrop-filter: blur(20px);
}
html.light .sb-logo-name { color: var(--t1); }
html.light .sb-logo-sub  { color: var(--t2); }
html.light .nav-item      { color: var(--t2); }
html.light .nav-item:hover, html.light .nav-item.active {
  background: rgba(124,58,237,.08);
  color: var(--p);
}
html.light .sb-section-label { color: var(--t3); }
html.light .sb-name  { color: var(--t1); }
html.light .sb-email { color: var(--t2); }
html.light .sb-user  { border-top-color: var(--card-border); }
html.light .sb-avatar { background: rgba(124,58,237,.12); color: var(--p); }

/* Main light */
html.light .main { background: var(--bg); }
html.light .sec-hd h1 { color: var(--t1); }

/* Cards / glass light */
html.light .card {
  background: rgba(255,255,255,.9);
  border-color: rgba(80,60,160,.12);
  box-shadow: 0 2px 16px rgba(80,60,160,.06);
}

/* Inputs light */
html.light .form-input {
  background: rgba(255,255,255,.95);
  border-color: rgba(80,60,160,.18);
  color: var(--t1);
}
html.light .form-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
html.light .form-input:disabled {
  background: rgba(80,60,160,.05);
  color: var(--t3);
}
html.light .form-label { color: var(--t2); }

/* Video cards light */
html.light .video-card {
  background: #fff;
  border-color: rgba(80,60,160,.1);
  box-shadow: 0 2px 16px rgba(80,60,160,.07);
}
html.light .video-card:hover {
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 16px 48px rgba(80,60,160,.18), 0 0 0 1px rgba(124,58,237,.14);
}
html.light .video-title { color: var(--t1); }
html.light .video-date  { color: var(--t2); }
html.light .v-chip {
  background: rgba(0,0,0,.12);
  border-color: rgba(255,255,255,.3);
}
html.light .video-thumb-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.04) 0%, rgba(0,0,0,.55) 100%);
}

/* Sections headers light */
html.light .sec-hd { border-bottom-color: var(--card-border); }
html.light .sub-stat {
  background: rgba(255,255,255,.85);
  border-color: rgba(80,60,160,.1);
}
html.light .sub-stat-label { color: var(--t2); }
html.light .sub-stat-value { color: var(--t1); }
html.light .sub-hero-rocket {
  background: linear-gradient(135deg, #eee9ff 0%, #e3e9ff 100%);
  border-color: rgba(124,58,237,.20);
}
html.light .sub-hero-spot {
  background: linear-gradient(135deg, #fff3de 0%, #ffe8c7 100%);
  border-color: rgba(217,119,6,.24);
}
html.light .sub-hero-rocket .sub-hero-bg {
  background: radial-gradient(ellipse at top left, rgba(124,58,237,.12) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(79,70,229,.10) 0%, transparent 60%);
}
html.light .sub-hero-spot .sub-hero-bg {
  background: radial-gradient(ellipse at top left, rgba(245,158,11,.14) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(217,119,6,.10) 0%, transparent 60%);
}
html.light .sub-hero-name { color: #141132; }
html.light .sub-hero-renewal {
  color: #2f2a57;
  background: rgba(255,255,255,.78);
  border-color: rgba(80,60,160,.18);
}
html.light .sub-hero-actions {
  border-top-color: rgba(80,60,160,.14);
}
html.light .sub-cancel-btn {
  color: #4a4272 !important;
}
html.light .sub-cancel-btn:hover {
  color: #dc2626 !important;
  border-color: rgba(220,38,38,.35) !important;
}
html.light .sub-cancel-notice {
  background: rgba(234,88,12,.07);
  border-color: rgba(234,88,12,.22);
  color: #9a3412;
}
html.light .sub-cancel-notice strong { color: #7c2d12; }
html.light .sub-cancel-notice svg { color: #c2410c; }

/* ── Upsell modal — thème clair ── */
html.light .upsell-modal {
  background: rgba(60,50,120,.55);
}
html.light .upsell-box {
  background: #fff;
  border-color: rgba(80,60,160,.14);
  box-shadow: 0 32px 80px rgba(60,40,140,.18), 0 0 0 1px rgba(80,60,160,.08);
}
html.light .upsell-close {
  background: rgba(80,60,160,.07);
  border-color: rgba(80,60,160,.12);
  color: #4a3f85;
}
html.light .upsell-close:hover { background: rgba(80,60,160,.14); }
html.light .upsell-head h2 { color: #0f0a2e; }
html.light .upsell-head p  { color: #3d3569; }
html.light .up-card {
  background: rgba(80,60,160,.04);
  border-color: rgba(80,60,160,.14);
}
html.light .up-card:hover { border-color: rgba(124,58,237,.3); }
html.light .up-featured {
  background: linear-gradient(160deg, rgba(245,158,11,.08) 0%, rgba(124,58,237,.05) 100%);
  border-color: rgba(217,119,6,.35);
}
html.light .up-name    { color: #0f0a2e; }
html.light .up-price   { color: #0f0a2e; }
html.light .up-price-period { color: #4a3f85; }
html.light .up-price-equiv  { color: #6b60a0; }
html.light .up-feats li { color: #3d3569; }
html.light .up-feats li::before { color: #16a34a; }
html.light .up-featured .up-feats li::before { color: #d97706; }
html.light .up-badge-spot   { color: #4a3f85; }
html.light .up-badge-rocket { color: #b45309; }
html.light .up-toggle-btn   { background: rgba(80,60,160,.07); border-color: rgba(80,60,160,.15); color: #3d3569; }
html.light .up-toggle-btn.active { background: var(--p); color: #fff; }
html.light .up-save-badge   { background: rgba(22,163,74,.15); color: #15803d; }
html.light .upsell-footer   { color: #6b60a0; }
html.light .upsell-banner {
  background: rgba(80,60,160,.05);
  border-color: rgba(80,60,160,.18);
}
html.light .upsell-banner-title { color: #0f0a2e; }
html.light .upsell-banner-sub   { color: #4a3f85; }
html.light .no-sub-card {
  background: rgba(80,60,160,.04);
  border-color: rgba(80,60,160,.12);
}
html.light .no-sub-card h2 { color: #0f0a2e; }
html.light .no-sub-card p  { color: #4a3f85; }

/* Video page in light mode */
html.light .vp-header {
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(80,60,160,.14);
}
html.light .vp-back { color: #4a4272; }
html.light .vp-back:hover { color: #12102a; }
html.light .vp-logo { color: #12102a; }
html.light .vp-info-top .vp-info-inner {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(80,60,160,.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 16px rgba(80,60,160,.08);
}
html.light .vp-title { color: #12102a; }
html.light .vp-date { color: #4a4272; }

/* Profile light */
html.light .profile-avatar-card,
html.light .profile-info-card,
html.light .profile-hero-card,
html.light .profile-card {
  background: rgba(255,255,255,.92);
  border-color: rgba(80,60,160,.1);
  box-shadow: 0 2px 16px rgba(80,60,160,.06);
}
html.light .profile-info-item {
  background: rgba(80,60,160,.04);
  border-color: rgba(80,60,160,.08);
}
html.light .profile-info-label  { color: var(--t3); }
html.light .profile-info-value  { color: var(--t1); }
html.light .profile-section-title { color: var(--t3); }
html.light .profile-section-label { color: var(--t3); }
html.light .profile-since { background: rgba(80,60,160,.06); border-color: rgba(80,60,160,.12); color: var(--t2); }
html.light .profile-field-label  { color: var(--t3); }
html.light .profile-field-label-tiny { color: var(--t3); }
html.light .profile-status-block .profile-status-none { background: rgba(80,60,160,.06); color: var(--t2); }
/* Inline edit rows */
html.light .profile-field-row:not(.profile-field-row-static):hover {
  background: rgba(80,60,160,.05);
  border-color: rgba(80,60,160,.1);
}
html.light .profile-field-row-edit {
  background: rgba(80,60,160,.04);
  border-color: rgba(124,58,237,.3) !important;
}
html.light .profile-edit-btn {
  background: rgba(80,60,160,.07);
  border-color: rgba(80,60,160,.14);
  color: var(--t2);
}
html.light .profile-edit-btn:hover {
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.3);
  color: var(--p);
}
html.light .profile-lock-tag {
  background: rgba(80,60,160,.07);
  border-color: rgba(80,60,160,.14);
  color: var(--t3);
}
html.light .profile-avatar-info-btn {
  background: rgba(80,60,160,.08);
  border-color: rgba(80,60,160,.15);
  color: var(--t3);
}
html.light .profile-avatar-info-btn::before {
  background: rgba(20,15,40,.92);
  border-color: rgba(0,0,0,.1);
}
/* Spinners light mode */
html.light .avatar-spinner {
  border-color: rgba(80,60,160,.15);
  border-top-color: var(--p);
}
/* Sub active block light */
html.light .profile-sub-active {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.2);
}
html.light .profile-sub-name { color: var(--t1); }
html.light .profile-sub-none { color: var(--t2); }
html.light .profile-sub-manage { color: var(--p); }
html.light .profile-danger-card {
  background: rgba(254, 242, 242, 0.75) !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
}
html.light .profile-section-label-danger { color: #dc2626 !important; }
html.light .profile-danger-notice {
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #78350f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
html.light .profile-danger-notice svg {
  color: #b45309;
  stroke: #b45309;
}
html.light .profile-danger-notice .link-accent {
  color: #6d28d9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.light .profile-danger-notice .link-accent:hover {
  color: #5b21b6;
}

/* Theme toggle light */
html.light .theme-btn {
  background: rgba(80,60,160,.07);
  border-color: rgba(80,60,160,.12);
  color: var(--t2);
}
html.light .theme-btn:hover  { border-color: rgba(124,58,237,.3); color: var(--t1); }
html.light .theme-btn.active { background: var(--p); border-color: var(--p); color: #fff; }

/* Orbs light — réduits */
html.light .orb { opacity: .25; }

/* Toast light */
html.light #toast {
  background: #ffffff;
  color: #181433;
  border-color: rgba(80,60,160,.18);
  box-shadow: 0 8px 28px rgba(80,60,160,.18);
}
html.light #toast.toast-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: rgba(16,185,129,.45);
}
html.light #toast.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: rgba(239,68,68,.45);
}
html.light #toast.toast-info {
  background: #eef2ff;
  color: #3730a3;
  border-color: rgba(99,102,241,.4);
}

/* Footer light */
html.light .site-footer { background: rgba(255,255,255,.8); border-top-color: rgba(80,60,160,.1); }
html.light .footer-link { color: var(--t2); }
html.light .footer-link:hover { color: var(--t1); }
html.light .footer-desc { color: var(--t2); }
html.light .footer-bottom { color: var(--t3); border-top-color: rgba(80,60,160,.08); }

/* Mob header light */
html.light .mob-header {
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(80,60,160,.12);
}
html.light .mob-hamburger span { background: var(--t1); }
html.light .mob-avatar { background: rgba(124,58,237,.12); color: var(--p); }

/* ── Divers éléments light ── */
/* Chips & badges dark-only */
html.light .v-chip {
  background: rgba(0,0,0,.09);
  border-color: rgba(0,0,0,.12);
  color: var(--t1);
}
html.light .v-tag {
  color: #fff;
}
/* Section header */
html.light .sec-hd h1 { color: var(--t1); }
html.light .sec-hd p  { color: var(--t2); }
/* Video page chips (vp-chip) */
html.light .vp-chip {
  background: rgba(0,0,0,.1);
  border-color: rgba(0,0,0,.12);
  color: rgba(255,255,255,.9);
}
/* Exchange links */
html.light .exchange-link {
  background: rgba(255,255,255,.85);
  border-color: rgba(80,60,160,.12);
  box-shadow: 0 2px 12px rgba(80,60,160,.08);
}
html.light .exchange-link-blofin {
  background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(255,255,255,.85) 100%);
}
html.light .exchange-link-blofin .exchange-logo-blofin {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
html.light .exchange-link-bybit {
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(255,255,255,.85) 100%);
}
html.light .exchange-link-bybit .exchange-logo-bybit {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
html.light .exchange-brand { color: var(--t1); }
html.light .exchange-label { color: var(--t3); }
html.light .exchange-logo { opacity: 1; }
html.light .exchange-arrow { color: var(--t2); }
html.light .exchange-link:hover { border-color: rgba(80,60,160,.22); }
/* Sub stats */
html.light .sub-stat {
  background: rgba(255,255,255,.85);
  border-color: rgba(80,60,160,.1);
}
html.light .invoice-row {
  border-bottom-color: rgba(80,60,160,.07);
  color: var(--t2);
}
html.light .invoice-amount { color: var(--t1); }
/* No-sub card */
html.light .no-sub-card {
  background: rgba(255,255,255,.8);
  border-color: rgba(80,60,160,.1);
}
/* Sub pending */
html.light .sub-pending-card {
  background: rgba(255,255,255,.8);
  border-color: rgba(80,60,160,.1);
}
html.light .sub-pending-title { color: var(--t1); }
html.light .sub-pending-desc  { color: var(--t2); }
html.light .flash-success {
  background: #ecfdf5;
  border-color: rgba(16,185,129,.38);
  color: #065f46;
}

/* ─────────────────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────────────────── */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
textarea { resize: vertical; }

/* ─────────────────────────────────────────────────────────────
   AMBIENT
───────────────────────────────────────────────────────────── */
.orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  will-change: transform; filter: blur(1px);
}
.orb-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.2) 0%, transparent 65%);
  top: -350px; left: -350px;
  animation: orb1 22s ease-in-out infinite;
}
.orb-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle at 60% 60%, rgba(245,158,11,.13) 0%, transparent 65%);
  bottom: -250px; right: -250px;
  animation: orb2 28s ease-in-out infinite;
}
.orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,.09) 0%, transparent 65%);
  top: 40%; left: 40%;
  animation: orb3 19s ease-in-out infinite;
}
@keyframes orb1 {
  0%,100%{transform:translate(0,0)}
  33%{transform:translate(70px,50px)}
  66%{transform:translate(-40px,80px)}
}
@keyframes orb2 {
  0%,100%{transform:translate(0,0)}
  50%{transform:translate(-90px,-70px)}
}
@keyframes orb3 {
  0%,100%{transform:translate(-50%,-50%) scale(1)}
  50%{transform:translate(-50%,-50%) scale(1.5)}
}

/* Grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: .5;
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────────────────────── */
.gtext {
  background: linear-gradient(135deg, var(--pl) 0%, var(--am) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gtext-am {
  background: linear-gradient(135deg, var(--aml), var(--am));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.25rem;
  border: none; border-radius: var(--r);
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
  white-space: nowrap; position: relative; overflow: hidden;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }

/* Shimmer on hover */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .55s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--p) 0%, var(--pd) 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(255,255,255,.08) inset, 0 4px 24px rgba(124,58,237,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(255,255,255,.08) inset, 0 8px 32px rgba(124,58,237,.42); }

.btn-gold {
  background: linear-gradient(135deg, var(--aml) 0%, var(--amd) 100%);
  color: #0a0500; font-weight: 800;
  box-shadow: 0 2px 0 rgba(255,255,255,.25) inset, 0 4px 24px rgba(245,158,11,.22);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(255,255,255,.25) inset, 0 8px 32px rgba(245,158,11,.36); }

.btn-ghost {
  background: transparent; color: var(--t1);
  border: 1px solid var(--gb);
}
.btn-ghost:hover { background: var(--g1); border-color: var(--gbh); }

.btn-danger {
  background: rgba(239,68,68,.09); color: var(--red);
  border: 1px solid rgba(239,68,68,.16);
}
.btn-danger:hover { background: rgba(239,68,68,.18); }

.btn-sm  { padding: .32rem .75rem; font-size: 12px; }
.btn-lg  { padding: .8rem 1.8rem; font-size: 15px; }
.btn-xl  { padding: .95rem 2.2rem; font-size: 15.5px; border-radius: var(--rl); }
.btn-full { width: 100%; }
.btn-icon {
  background: transparent; border: none; color: var(--t2);
  padding: .3rem; display: inline-flex; align-items: center;
  transition: color var(--fast);
}
.btn-icon:hover { color: var(--t1); }

/* ─────────────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--t2); margin-bottom: .4rem;
}
.form-input {
  width: 100%; padding: .72rem 1rem;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--gb);
  border-radius: var(--r); color: var(--t1);
  font-size: 13.5px; font-family: inherit; font-weight: 500;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--p);
  background: rgba(124,58,237,.055);
  box-shadow: 0 0 0 3px rgba(124,58,237,.14);
}
.form-input:disabled { opacity: .4; cursor: not-allowed; }
.form-input::placeholder { color: var(--t3); }
.form-input.input-error {
  border-color: rgba(239,68,68,.6) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}
.form-error-hint {
  margin-top: .4rem;
  font-size: 11.5px; font-weight: 600;
  color: #fca5a5;
  display: flex; align-items: center; gap: .3rem;
}
.form-error-hint::before { content: '⚠'; font-size: 11px; }
html.light .form-input.input-error {
  border-color: rgba(220,38,38,.5) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important;
}
html.light .form-error-hint { color: #dc2626; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237070a0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.75rem;
}
textarea.form-input { min-height: 88px; }

/* ─────────────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────────────── */
.card {
  background: var(--g0);
  border: 1px solid var(--gb);
  border-radius: var(--rxl);
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card-sm { padding: 1.2rem; border-radius: var(--rl); }

/* ─────────────────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .7rem; border-radius: var(--rf);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.badge-purple  { background: rgba(124,58,237,.14); color: var(--pl); border: 1px solid rgba(124,58,237,.2); }
.badge-gold    { background: rgba(245,158,11,.13);  color: var(--aml); border: 1px solid rgba(245,158,11,.2); }
.badge-success { background: rgba(16,185,129,.12);  color: var(--green); border: 1px solid rgba(16,185,129,.2); }
.badge-warning { background: rgba(249,115,22,.12);  color: var(--orange); border: 1px solid rgba(249,115,22,.2); }
.badge-dot::before { content: '●'; font-size: 7px; }

/* ─────────────────────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────────────────────── */
.alert {
  padding: .8rem 1rem; border-radius: var(--r);
  font-size: 13.5px; margin-bottom: 1rem;
  display: flex; gap: .55rem; align-items: flex-start;
}
.alert-error   { background: rgba(239,68,68,.07); color: #fca5a5; border: 1px solid rgba(239,68,68,.18); }
.alert-success { background: rgba(16,185,129,.07); color: #6ee7b7; border: 1px solid rgba(16,185,129,.18); }

/* ─────────────────────────────────────────────────────────────
   DIVIDER
───────────────────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: .9rem;
  color: var(--t3); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gb);
}

/* ─────────────────────────────────────────────────────────────
   CHECKBOXES
───────────────────────────────────────────────────────────── */
.checkbox-group {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-bottom: .75rem; cursor: pointer;
}
.checkbox-group input[type=checkbox] { display: none; }
.checkbox-custom {
  width: 17px; height: 17px; min-width: 17px;
  border: 1.5px solid var(--gb); border-radius: 5px;
  background: var(--g0); transition: all var(--fast);
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.checkbox-group input:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--p), var(--pd));
  border-color: transparent;
  box-shadow: 0 2px 8px var(--pglow);
}
.checkbox-group input:checked + .checkbox-custom::after {
  content: '✓'; color: #fff; font-size: 10px; font-weight: 900;
}
.checkbox-label { font-size: 12.5px; color: var(--t2); line-height: 1.5; }

/* Cases à cocher en erreur */
.checkbox-group.checkbox-error .checkbox-custom {
  border-color: rgba(239,68,68,.7);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.checkbox-group.checkbox-error .checkbox-label {
  color: #fca5a5;
}

/* Message d'erreur inline sous un champ */
.field-error {
  margin-top: .4rem;
  font-size: 12px; font-weight: 600;
  color: #fca5a5;
  line-height: 1.4;
}
html.light .field-error { color: #dc2626; }
html.light .checkbox-group.checkbox-error .checkbox-label { color: #dc2626; }
html.light .checkbox-group.checkbox-error .checkbox-custom { border-color: rgba(220,38,38,.5); }

/* Étoile obligatoire */
.req-star { color: #f87171; font-weight: 700; font-style: normal; }

.checkbox-label .auth-inline-legal {
  color: var(--pl);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-label .auth-inline-legal:hover { color: var(--am); }

/* ─────────────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-content {
  background: var(--bg2);
  border: 1px solid var(--gb);
  border-radius: var(--rxl);
  padding: 2rem;
  width: 100%; max-width: 560px;
  position: relative;
  max-height: 92vh; overflow-y: auto;
  animation: modal-in .28s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-content h2 { font-size: 19px; font-weight: 800; margin-bottom: 1.5rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--g1); border: 1px solid var(--gb);
  border-radius: 50%; color: var(--t2);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: all var(--fast);
}
.modal-close:hover { background: var(--g2); color: var(--t1); }

/* ─────────────────────────────────────────────────────────────
   DISCLAIMER
───────────────────────────────────────────────────────────── */
.disclaimer {
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.14);
  border-radius: var(--r);
  padding: .75rem 1rem;
  font-size: 12px; color: var(--t2); line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bg3);
  border: 1px solid var(--gb);
  border-radius: var(--rl);
  padding: .75rem 1.2rem;
  font-size: 13px; font-weight: 600;
  z-index: 9999;
  transform: translateY(130%); opacity: 0;
  transition: transform .3s var(--ease), opacity .3s;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  max-width: 300px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.toast-success { border-color: rgba(16,185,129,.28); color: #6ee7b7; }
#toast.toast-error   { border-color: rgba(239,68,68,.28); color: #fca5a5; }
#toast.toast-info    { border-color: rgba(167,139,250,.28); color: #c4b5fd; }

/* ─────────────────────────────────────────────────────────────
   LANDING
───────────────────────────────────────────────────────────── */
.page-landing {
  min-height: 100vh; display: flex; flex-direction: column;
  position: relative; z-index: 2;
}

/* Nav */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 10;
  background: rgba(5,5,12,.7);
}
.topnav-logo { font-size: 18px; font-weight: 900; letter-spacing: -.03em; }
.topnav-actions { display: flex; gap: .6rem; }

/* Hero */
.hero {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.5rem 3rem;
}
.hero-inner { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.18);
  color: var(--aml);
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--rf); margin-bottom: 1.75rem;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--am);
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-h1 {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900; line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 16.5px; color: var(--t2); line-height: 1.7;
  margin-bottom: 2.25rem; max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* Stats */
.hero-stats {
  display: inline-flex; align-items: center; gap: 1.75rem;
  padding: 1.25rem 2rem;
  background: var(--g0);
  border: 1px solid var(--gb);
  border-radius: var(--rxl);
  backdrop-filter: blur(16px);
  flex-wrap: wrap; justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.stat-v { font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.stat-l { font-size: 10.5px; color: var(--t2); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-top: 1px; }
.stat-sep { width: 1px; height: 32px; background: var(--gb); }

/* Trust strip */
.trust-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 1.75rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gb);
  border-bottom: 1px solid var(--gb);
  position: relative; z-index: 2;
}
.trust-item { display: flex; align-items: center; gap: .45rem; font-size: 12.5px; color: var(--t2); }
.trust-item svg { color: var(--pl); flex-shrink: 0; }

/* Auth area */
.auth-wrap {
  display: flex; justify-content: center;
  padding: 3rem 1.5rem 5rem;
  position: relative; z-index: 2;
}
.auth-box { width: 100%; max-width: 420px; }

.auth-hd { text-align: center; margin-bottom: 1.75rem; }
.auth-hd h2 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 3px; }
.auth-hd p  { font-size: 13px; color: var(--t2); }

/* ─────────────────────────────────────────────────────────────
   APP LAYOUT (dashboard / admin)
───────────────────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; position: relative; z-index: 2; }

/* Sidebar */
.sidebar {
  width: 240px; min-width: 240px;
  background: rgba(8,8,18,.85);
  border-right: 1px solid var(--gb);
  display: flex; flex-direction: column;
  padding: 1.25rem .9rem;
  position: sticky; top: 0; height: 100vh;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sb-logo { padding: .4rem .5rem 1.5rem; border-bottom: 1px solid var(--gb); margin-bottom: .9rem; }
.sb-logo-name { font-size: 19px; font-weight: 900; letter-spacing: -.04em; }
.sb-logo-sub  { font-size: 9.5px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .12em; margin-top: 1px; }

.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sb-section-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--t3);
  padding: .85rem .8rem .25rem; margin-top: .4rem;
}
.nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem; border-radius: var(--r);
  color: var(--t2); font-size: 13px; font-weight: 600;
  transition: all var(--fast); position: relative;
}
.nav-item:hover { background: var(--g1); color: var(--t1); }
.nav-item.active { background: rgba(124,58,237,.11); color: var(--pl); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 2.5px; border-radius: var(--rf);
  background: linear-gradient(180deg, var(--p), var(--pl));
}

.sb-user {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem .5rem 0;
  border-top: 1px solid var(--gb);
  margin-top: auto;
}
.sb-avatar {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--am));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.sb-name  { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-email { font-size: 11px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main content */
.main { flex: 1; padding: 2.25rem 2rem; min-width: 0; }

.section { display: none; }
.section.active {
  display: block;
  animation: sec-in .28s var(--ease);
}
@keyframes sec-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem; flex-wrap: wrap; gap: .75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gb);
}
.sec-hd h1 { font-size: 24px; font-weight: 900; letter-spacing: -.04em; }

/* Search */
.search-row { display: flex; gap: .55rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.search-row .form-input { flex: 1; min-width: 160px; }

/* ─────────────────────────────────────────────────────────────
   VIDEOS GRID
───────────────────────────────────────────────────────────── */
/* ── Grille principale ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Carte vidéo ── */
.video-card {
  background: linear-gradient(160deg, rgba(255,255,255,.038) 0%, rgba(255,255,255,.012) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--mid), border-color var(--mid), box-shadow var(--mid);
  will-change: transform;
}
.video-card:hover {
  border-color: rgba(124,58,237,.35);
  transform: translateY(-6px);
  box-shadow:
    0 28px 72px rgba(0,0,0,.65),
    0 0 0 1px rgba(124,58,237,.14),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.video-card:active { transform: translateY(-2px); }

/* ── Miniature ── */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0a0714;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
}
.video-thumb-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 140% 80% at 10% -10%, rgba(124,58,237,.22), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.02) 0%, rgba(0,0,0,.72) 100%);
}
.video-chip-row {
  position: absolute; left: .75rem; right: .75rem; top: .7rem;
  display: flex; align-items: center; justify-content: flex-start;
  gap: .5rem; z-index: 2;
}

/* ── Chip durée ── */
.v-chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

/* ── Bouton play ── */
.play-btn {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.play-ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--mid), border-color var(--mid), box-shadow var(--mid), transform var(--mid);
  opacity: .7;
  transition: all var(--mid);
}
.video-card:hover .play-ring {
  background: var(--p);
  border-color: var(--p);
  box-shadow: 0 0 32px var(--pglow);
  transform: scale(1.14);
  opacity: 1;
}
.play-ring svg { margin-left: 3px; }

/* ── Infos ── */
.video-info {
  padding: .9rem 1rem 1rem;
  display: flex; flex-direction: column; gap: .45rem;
}

/* ── Tag plan (dans la grille, hors miniature) ── */
.v-tag {
  display: inline-flex; align-items: center;
  font-size: 9.5px; font-weight: 900;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.v-tag-rocket    { color: rgba(198,170,255,.95); border-color: rgba(124,58,237,.3); background: rgba(124,58,237,.12); }
.v-tag-spotlight { color: rgba(255,214,149,.95); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.1); }

.video-title {
  font-size: 13.5px; font-weight: 800;
  line-height: 1.35; letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--t1);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.video-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: auto;
}
.video-date     { font-size: 11px; color: var(--t3); font-weight: 600; white-space: nowrap; }
.video-duration { font-size: 11px; color: var(--t2); font-weight: 600; white-space: nowrap; margin-left: auto; }
.video-lock     { font-size: 11px; opacity: .7; }

/* Video player */
.player-wrap { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.empty-state {
  grid-column: 1/-1; text-align: center; padding: 4rem 2rem; color: var(--t3);
}
.empty-icon { font-size: 36px; margin-bottom: .75rem; opacity: .35; }

/* ─────────────────────────────────────────────────────────────
   UPSELL / PLANS
───────────────────────────────────────────────────────────── */
.upsell {
  text-align: center;
  padding: 1.5rem 0 2rem;
}
.upsell h2 { font-size: 28px; font-weight: 900; letter-spacing: -.04em; margin-bottom: .5rem; }
.upsell-sub { font-size: 14.5px; color: var(--t2); margin-bottom: 2.5rem; }

.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; max-width: 600px; margin: 0 auto;
}
.plan-card {
  background: var(--g0); border: 1px solid var(--gb);
  border-radius: var(--rxl); padding: 1.6rem;
  text-align: left; position: relative; overflow: hidden;
  transition: transform var(--mid), border-color var(--mid);
}
.plan-card:hover { transform: translateY(-3px); }
.plan-card.featured {
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.03);
}
.plan-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--am), var(--aml), var(--am));
}
.plan-top-badge {
  font-size: 9.5px; font-weight: 800; color: var(--am);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem;
}
.plan-name { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.plan-desc { font-size: 12.5px; color: var(--t2); margin-bottom: 1.3rem; line-height: 1.5; }
.plan-feats { list-style: none; margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.plan-feats li { display: flex; align-items: flex-start; gap: .5rem; font-size: 12px; color: var(--t2); }
.plan-feats li::before { content: '✓'; color: var(--green); font-weight: 900; font-size: 10px; margin-top: 2px; flex-shrink: 0; }

/* ── Subscription main card ─────────────────────────────────── */
.sub-main-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--rxl);
  padding: 1.6rem 1.8rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Header : icône plan + nom + statut + actions */
.sub-header {
  display: flex; align-items: flex-start; gap: 1.1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.sub-plan-icon {
  font-size: 24px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); flex-shrink: 0;
}
.sub-icon-spot   { background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.2); }
.sub-icon-rocket { background: rgba(124,58,237,.10); border: 1px solid rgba(124,58,237,.2); }

.sub-plan-info { flex: 1; min-width: 0; }
.sub-plan-name { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }

.sub-header-actions {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  margin-left: auto;
}
.sub-cancel-btn { color: var(--t3) !important; }
.sub-cancel-btn:hover { color: #f87171 !important; border-color: rgba(248,113,113,.3) !important; }

/* Grille d'infos */
.sub-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1rem; margin-bottom: 1.2rem;
}
.sub-info-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r); padding: .8rem 1rem;
}
.sub-info-label { font-size: 10.5px; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.sub-info-value { font-size: 14px; font-weight: 700; color: var(--t1); }
.sub-info-warn  { color: var(--orange); }

/* Coupon badge */
.sub-coupon-row {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: 12.5px; color: var(--t2);
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.18);
  border-radius: var(--r); padding: .65rem 1rem;
  margin-bottom: 1rem;
}
.sub-coupon-row svg { color: #fbbf24; flex-shrink: 0; }
.sub-coupon-badge {
  font-size: 10.5px; font-weight: 800;
  background: rgba(251,191,36,.18); color: #fbbf24;
  padding: .1rem .45rem; border-radius: 99px;
}

/* Annulation programmée */
.sub-cancel-notice {
  font-size: 12.5px; color: var(--orange);
  background: rgba(249,115,22,.07); border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--r); padding: .65rem 1rem;
}

/* Section factures dans l'onglet abonnement */
.sub-invoices-section { max-width: 640px; }
.sub-invoices-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.sub-invoices-hd h2 { font-size: 15px; font-weight: 800; }

/* Legacy — gardés pour compatibilité */
.sub-card { max-width: 480px; }
.sub-name { font-size: 21px; font-weight: 900; letter-spacing: -.03em; margin: .5rem 0 .35rem; }
.sub-meta { font-size: 12.5px; color: var(--t2); margin: 0 0 1.5rem; }
.sub-actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────
   ADMIN LIST
───────────────────────────────────────────────────────────── */
.admin-list { display: flex; flex-direction: column; gap: .5rem; }
.admin-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--g0); border: 1px solid var(--gb);
  border-radius: var(--rl); padding: .9rem 1.2rem;
  transition: border-color var(--fast);
}
.admin-row:hover { border-color: var(--gbh); }
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-title { font-size: 13.5px; font-weight: 700; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-meta  { display: flex; align-items: center; gap: .5rem; }
.admin-row-actions { display: flex; gap: .35rem; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   ADMIN SUPPORT
───────────────────────────────────────────────────────────── */
.support-count-pill {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
  background: rgba(124, 58, 237, .15); color: var(--pl); vertical-align: middle;
}
.support-admin-filters { display: flex; align-items: flex-end; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.support-admin-list { display: flex; flex-direction: column; gap: .5rem; }
.support-admin-empty { color: var(--t3); font-size: 14px; padding: 1rem 0; }
.support-admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--g0); border: 1px solid var(--gb); border-radius: var(--rl);
  padding: .9rem 1.1rem; text-decoration: none; color: inherit;
  transition: border-color var(--fast), background var(--fast);
}
.support-admin-row:hover { border-color: var(--gbh); background: rgba(124, 58, 237, .04); }
.support-admin-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.support-ticket-id { font-size: 11px; font-weight: 800; color: var(--t3); letter-spacing: .04em; }
.support-admin-subject { font-size: 14px; font-weight: 700; color: var(--t1); }
.support-admin-meta { font-size: 12px; color: var(--t3); }
.support-admin-row-side { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.support-admin-date { font-size: 11.5px; color: var(--t3); }
.support-reply-count { font-size: 11px; color: var(--am); font-weight: 600; }
.support-badge-open { background: rgba(245, 158, 11, .12); color: #d97706; border: 1px solid rgba(245, 158, 11, .25); }
.support-badge-answered { background: rgba(34, 197, 94, .1); color: #15803d; border: 1px solid rgba(34, 197, 94, .22); }
.support-badge-closed { background: rgba(100, 116, 139, .12); color: var(--t3); border: 1px solid var(--gb); }
.support-admin-pagination { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.support-page-info { font-size: 13px; color: var(--t3); }
.support-detail-hd { flex-direction: column; align-items: flex-start !important; gap: .5rem; }
.support-back-link { font-size: 13px; font-weight: 600; color: var(--pl); text-decoration: none; }
.support-back-link:hover { text-decoration: underline; }
.support-detail-card {
  background: var(--g0); border: 1px solid var(--gb); border-radius: var(--rxl);
  padding: 1.25rem 1.35rem; margin-bottom: 1.5rem;
}
.support-detail-meta { font-size: 13px; color: var(--t2); line-height: 1.6; margin-bottom: 1rem; }
.support-detail-subject { font-size: 16px; font-weight: 800; color: var(--t1); margin-top: .35rem; }
.support-detail-userid { font-size: 12px; color: var(--t3); margin-top: .25rem; }
.support-detail-date { font-size: 12px; color: var(--t3); margin-top: .35rem; }
.support-msg-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: .5rem; }
.support-msg-body { font-size: 14px; line-height: 1.65; color: var(--t2); white-space: pre-wrap; }
.support-detail-message { border-top: 1px solid var(--gb); padding-top: 1rem; }
.support-replies-title { font-size: 15px; font-weight: 800; margin: 0 0 .75rem; }
.support-replies-list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.5rem; }
.support-reply-card {
  background: rgba(124, 58, 237, .06); border: 1px solid rgba(124, 58, 237, .15);
  border-radius: var(--rl); padding: 1rem 1.1rem;
}
.support-reply-head { display: flex; justify-content: space-between; gap: .5rem; font-size: 12px; margin-bottom: .5rem; color: var(--t3); }
.support-reply-date { flex-shrink: 0; }
.support-reply-form-card, .support-status-card {
  background: var(--g0); border: 1px solid var(--gb); border-radius: var(--rxl);
  padding: 1.25rem 1.35rem; margin-bottom: 1rem;
}
.support-reply-hint { font-size: 12.5px; color: var(--t3); margin: 0 0 .75rem; }
.support-reply-textarea { min-height: 140px; resize: vertical; }
.support-status-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .35rem; }
.support-closed-note { font-size: 13px; color: var(--t3); font-style: italic; }

.admin-support-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gb);
  border-radius: var(--rxl);
  background: rgba(124, 58, 237, 0.06);
}
.admin-support-prompt-text { flex: 1; min-width: 200px; }
.admin-support-prompt-title { font-weight: 800; font-size: 15px; color: var(--t1); }
.admin-support-prompt-desc { font-size: 13px; color: var(--t3); margin: 0.35rem 0 0; line-height: 1.45; }
.admin-support-prompt-btn { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.dash-support-list .support-admin-row { align-items: flex-start; }

/* ── Support membre — fil conversation (détail ticket) ───────── */
.member-support-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.member-post {
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
}

.member-post-inner {
  flex: 1;
  min-width: 0;
}

.member-post-marker {
  width: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 2.5rem;
}

.member-post-marker--you {
  background: linear-gradient(180deg, var(--pl) 0%, rgba(124, 58, 237, 0.45) 100%);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

.member-post-marker--team {
  background: linear-gradient(180deg, #22c55e 0%, rgba(34, 197, 94, 0.45) 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.18);
}

.member-post-hd {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.member-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-post-avatar--you {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--pl2);
}

.member-post-avatar--team {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.member-post-hd-text {
  min-width: 0;
  padding-top: 2px;
}

.member-post-role {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.member-post-time {
  display: block;
  font-size: 11.5px;
  color: var(--t3);
  margin-top: 0.2rem;
}

.member-bubble {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  line-height: 1.65;
}

.member-bubble--you {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.member-bubble--team {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.member-bubble-subject {
  margin: 0 0 0.65rem;
  font-size: 15px;
  font-weight: 800;
  color: var(--t1);
}

.member-bubble-body {
  margin: 0;
  font-size: 14px;
  color: var(--t2);
  white-space: pre-wrap;
  word-break: break-word;
}

.member-thread-connector {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 1.1rem;
  padding-left: 0.25rem;
}

.member-thread-connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(34, 197, 94, 0.45));
  opacity: 0.85;
}

.member-thread-connector-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pl2);
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.member-thread-connector-badge svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.member-thread-connector--pending .member-thread-connector-line {
  background: var(--gb);
  opacity: 1;
}

.member-thread-connector-badge--muted {
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gb);
  font-weight: 700;
}

.member-support-pending-note {
  margin: 0 0 1rem;
  padding-left: 0.25rem;
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.55;
  max-width: 520px;
}

html.light .member-bubble--you {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.18);
}

html.light .member-bubble--team {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.18);
}

@media (max-width: 480px) {
  .member-thread-connector {
    flex-wrap: wrap;
  }

  .member-thread-connector-badge {
    font-size: 10px;
    padding: 0.3rem 0.5rem;
  }

  .member-post-hd {
    flex-wrap: wrap;
  }
}

/* ─────────────────────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gb); border-radius: var(--rf); }
::-webkit-scrollbar-thumb:hover { background: var(--gbh); }

/* ─────────────────────────────────────────────────────────────
   VIDEO CARD — LOCKED STATE
───────────────────────────────────────────────────────────── */
.video-card.locked { cursor: pointer; }
.video-card.locked .video-thumb {
  background-color: #06040f;
}
.video-card.locked .video-thumb-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.82) 100%);
}
.lock-ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(245,158,11,.08);
  border: 1.5px solid rgba(245,158,11,.22);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--aml);
  opacity: .75;
  transition: all var(--mid);
}
.video-card.locked:hover .lock-ring {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.5);
  box-shadow: 0 0 24px rgba(245,158,11,.25);
  transform: scale(1.12);
  opacity: 1;
}
.video-card.locked:hover {
  border-color: rgba(245,158,11,.3);
  box-shadow: 0 22px 56px rgba(0,0,0,.6), 0 0 0 1px rgba(245,158,11,.12);
  transform: translateY(-4px);
}
.unlock-hint {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  text-align: center; padding: .45rem .5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 9px; font-weight: 900; color: var(--aml);
  letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity var(--fast);
}
.video-card.locked:hover .unlock-hint { opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   UPSELL BANNER (en haut de la grille)
───────────────────────────────────────────────────────────── */
.upsell-banner {
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, rgba(245,158,11,.05) 0%, rgba(124,58,237,.05) 100%);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: var(--rxl);
  cursor: pointer;
  transition: border-color var(--fast), transform var(--fast);
}
.upsell-banner:hover {
  border-color: rgba(245,158,11,.38);
  transform: translateY(-1px);
}
.upsell-banner-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem; flex-wrap: wrap;
}
.upsell-banner-icon { font-size: 22px; flex-shrink: 0; }
.upsell-banner-title { font-size: 14px; font-weight: 800; letter-spacing: -.01em; margin-bottom: .12rem; }
.upsell-banner-sub { font-size: 12px; color: var(--t2); }

/* ─────────────────────────────────────────────────────────────
   NO-SUB CARD (section abonnement)
───────────────────────────────────────────────────────────── */
.no-sub-card {
  max-width: 480px;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--g0); border: 1px solid var(--gb);
  border-radius: var(--rxl);
}
.no-sub-icon {
  font-size: 36px; margin-bottom: 1rem; opacity: .7;
}
.no-sub-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.no-sub-card p  { font-size: 14px; color: var(--t2); line-height: 1.6; margin-bottom: 1.75rem; }

/* Carte "paiement en attente" */
.sub-pending-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(167,139,250,.05));
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--r2);
  padding: 2rem 1.75rem;
  max-width: 520px;
}
.sub-pending-spinner {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 3px solid rgba(167,139,250,.2);
  border-top-color: var(--pl);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.sub-pending-title {
  font-size: 16px; font-weight: 800; color: var(--t1);
  letter-spacing: -.02em; margin-bottom: .35rem;
}
.sub-pending-desc { font-size: 13px; color: var(--t2); }

/* ─────────────────────────────────────────────────────────────
   UPSELL MODAL
───────────────────────────────────────────────────────────── */
.upsell-modal {
  position: fixed; inset: 0;
  background: rgba(2,2,10,.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fade-in .2s var(--ease);
}
@keyframes fade-in { from{opacity:0} to{opacity:1} }

.upsell-box {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  width: 100%; max-width: 680px;
  position: relative;
  max-height: 92vh; overflow-y: auto;
  animation: modal-in .28s var(--ease);
  box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
}

.upsell-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--g1); border: 1px solid var(--gb);
  color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--fast);
}
.upsell-close:hover { background: var(--g2); color: var(--t1); }

.upsell-head { text-align: center; margin-bottom: 2rem; }
.upsell-lock-emoji {
  font-size: 36px; margin-bottom: 1rem;
  display: inline-block;
  animation: lock-bounce .6s var(--ease);
}
@keyframes lock-bounce {
  0%   { transform: scale(.6); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.upsell-head h2 {
  font-size: 26px; font-weight: 900; letter-spacing: -.04em;
  margin-bottom: .5rem;
}
.upsell-head p {
  font-size: 14px; color: var(--t2); line-height: 1.65;
  max-width: 460px; margin: 0 auto;
}

/* Plan cards */
.upsell-plans {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}

.up-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: transform var(--mid), border-color var(--mid);
}
.up-card:hover { transform: translateY(-2px); }

.up-featured {
  background: linear-gradient(160deg, rgba(245,158,11,.06) 0%, rgba(124,58,237,.04) 100%);
  border-color: rgba(245,158,11,.28);
  box-shadow: 0 0 40px rgba(245,158,11,.06) inset;
}
.up-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amd), var(--aml), var(--amd));
}

.up-glow {
  position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Toggle mensuel / annuel */
.up-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: .3rem; margin-bottom: 1.4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; padding: .3rem;
}
.up-toggle-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--t2);
  padding: .4rem 1.1rem; border-radius: 999px;
  transition: background var(--fast), color var(--fast);
  display: flex; align-items: center; gap: .4rem;
}
.up-toggle-btn.active {
  background: rgba(255,255,255,.09); color: var(--t1);
}

.up-save-badge {
  font-size: 10px; font-weight: 800;
  background: rgba(16,185,129,.18); color: #6ee7b7;
  border: 1px solid rgba(16,185,129,.3);
  padding: .1rem .45rem; border-radius: 99px;
}

/* Prix */
.up-price {
  font-size: 26px; font-weight: 900; letter-spacing: -.04em;
  color: var(--t1); display: flex; align-items: baseline; gap: .25rem;
  margin-bottom: .25rem;
}
.up-price-period {
  font-size: 13px; font-weight: 500; color: var(--t2);
}
.up-price-equiv {
  font-size: 11.5px; color: var(--t3); margin-bottom: .9rem;
}

/* Loading spinner dans les plans */
.up-loading {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem; padding: 2rem; color: var(--t2);
  font-size: 13.5px; grid-column: 1 / -1;
}
.up-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--am);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.up-badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.up-badge-spot   { color: var(--t2); }
.up-badge-rocket { color: var(--am); }

.up-name {
  font-size: 16px; font-weight: 900; letter-spacing: -.02em;
  margin-bottom: .55rem;
}

.up-feats {
  list-style: none; flex: 1;
  display: flex; flex-direction: column; gap: .38rem;
  margin-bottom: 1.4rem;
}
.up-feats li {
  display: flex; align-items: flex-start; gap: .45rem;
  font-size: 12px; color: var(--t2); line-height: 1.45;
}
.up-feats li::before {
  content: '✓'; color: var(--green);
  font-size: 9.5px; font-weight: 900;
  margin-top: 2.5px; flex-shrink: 0;
}
.up-featured .up-feats li::before { color: var(--am); }

.up-cta { margin-top: auto; }

.upsell-footer {
  text-align: center;
  font-size: 11.5px; color: var(--t3);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .35rem; margin-top: 2rem; flex-wrap: wrap;
  padding: .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 .5rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--t2); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  transition: all var(--fast); font-family: inherit;
}
.page-btn:hover { background: rgba(255,255,255,.06); color: var(--t1); border-color: rgba(255,255,255,.08); }
.page-btn.active {
  background: rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.32);
  color: var(--pl);
}
.page-btn:disabled { opacity: .28; cursor: not-allowed; }
.page-dots {
  color: var(--t3); font-size: 13px;
  display: inline-flex; align-items: center; padding: 0 .2rem;
}
.pagination-info {
  text-align: center; font-size: 11.5px; color: var(--t3);
  margin-top: .6rem;
}

/* ── Flash banners (retour Stripe, logout, etc.) ────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.2rem; border-radius: var(--r);
  font-size: 13.5px; font-weight: 500; margin-bottom: 1.4rem;
  animation: fadeInDown .35s ease both;
}
.flash-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.flash-info    { background: rgba(99,102,241,.10); border: 1px solid rgba(99,102,241,.3); color: #a5b4fc; }
.flash-error   { background: rgba(239,68,68,.10);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.flash-close {
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: .6; font-size: 14px; padding: 0; line-height: 1;
  flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Factures ────────────────────────────────────────────────── */
.inv-table {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  overflow: hidden;
}
.inv-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  transition: background .15s;
}
.inv-row:last-child { border-bottom: 0; }
.inv-row:hover { background: rgba(124,58,237,.04); }

.inv-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.inv-body { flex: 1; min-width: 0; }
.inv-label {
  font-size: 13.5px; font-weight: 700; color: var(--t1);
  margin-bottom: .2rem;
}
.inv-sub { font-size: 13px; color: var(--t2); }
.inv-sub strong { color: var(--t1); font-weight: 800; }
.inv-discount-inline { font-size: 12px; color: #6ee7b7; }
.inv-period { font-size: 11.5px; color: var(--t3); margin-top: .3rem; }
.inv-actions { display: flex; gap: .4rem; flex-shrink: 0; align-items: center; padding-top: 2px; }

.inv-coupon {
  display: inline-block; margin-top: .35rem;
  font-size: 11px; font-weight: 700;
  background: rgba(251,191,36,.12); color: #fbbf24;
  border: 1px solid rgba(251,191,36,.25);
  padding: .15rem .5rem; border-radius: 99px;
}

.btn-xs {
  font-size: 11.5px; padding: .3rem .75rem;
  border-radius: var(--r); font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   AUTH PAGE (login / register dédiés)
───────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  padding: 2rem 1.25rem 4rem;
  position: relative; z-index: 2;
}

/* Colonne centrale — toujours max 440px, pleine largeur sur mobile */
.auth-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.auth-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 12.5px; font-weight: 600; color: var(--t2);
  transition: color var(--fast);
  margin-bottom: .75rem;
  align-self: flex-start;
}
.auth-back:hover { color: var(--t1); }

.auth-page-logo {
  font-size: 22px; font-weight: 900; letter-spacing: -.04em;
  margin-bottom: 1.75rem;
  text-align: center;
}

/* Disclaimer bas de page auth */
.auth-disclaimer {
  display: flex; align-items: flex-start; gap: .6rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: .85rem 1rem;
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.16);
  border-radius: var(--r);
  font-size: 11.5px; color: var(--t2); line-height: 1.6;
}
.auth-disclaimer svg {
  flex-shrink: 0; color: var(--am); margin-top: 2px;
}
.auth-disclaimer strong { color: var(--am); }

/* Lien accentué */
.link-accent {
  color: var(--pl); font-weight: 600;
  transition: color var(--fast);
}
.link-accent:hover { color: var(--am); }

/* ── OTP verify page ─────────────────────────────────────── */
.otp-envelope-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(167,139,250,.08));
  border: 1px solid rgba(124,58,237,.28);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem;
  color: #a78bfa;
}
.otp-email-display { color: var(--t1); font-weight: 700; word-break: break-all; }
.otp-validity { font-size: 11.5px !important; color: var(--t3) !important; margin-top: .3rem; }
.otp-validity strong { color: var(--pl); }

.otp-digits-wrap {
  display: flex; gap: .55rem; justify-content: center;
  margin-bottom: .25rem;
}
.otp-digit {
  width: 48px; height: 58px;
  text-align: center;
  font-size: 26px; font-weight: 900; letter-spacing: 0;
  background: rgba(255,255,255,.04);
  border: 2px solid var(--gb);
  border-radius: 12px;
  color: var(--t1);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  caret-color: transparent;
  -moz-appearance: textfield;
}
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button { -webkit-appearance: none; }
.otp-digit:focus {
  border-color: var(--pl);
  background: rgba(124,58,237,.08);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.otp-digit:not(:placeholder-shown) { border-color: rgba(167,139,250,.5); }

html.light .otp-digit {
  background: rgba(255,255,255,.85);
  border-color: rgba(80,60,160,.2);
  color: #12102a;
}
html.light .otp-digit:focus {
  border-color: #7c3aed;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
html.light .otp-envelope-icon {
  background: rgba(124,58,237,.07);
  border-color: rgba(124,58,237,.18);
}

@media (max-width: 400px) {
  .otp-digits-wrap { gap: .35rem; }
  .otp-digit { width: 42px; height: 52px; font-size: 22px; border-radius: 10px; }
}

/* Disclaimer sur la landing */
.landing-disclaimer-wrap {
  max-width: 540px; margin: .5rem auto 3rem;
  padding: 0 1.5rem; position: relative; z-index: 2;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .plans-grid   { grid-template-columns: 1fr; max-width: 360px; }
  .upsell-plans { grid-template-columns: 1fr; }
  .upsell-box   { padding: 2rem 1.25rem 1.5rem; }
  .upsell-head h2 { font-size: 22px; }
  .upsell-banner-inner .btn { display: none; } /* masquer btn sur petits écrans */
}
/* ── Mobile topbar ─────────────────────────────────────────── */
.mob-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: 56px;
  background: rgba(6,6,16,.95);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.mob-hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 6px;
}
.mob-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--t1); border-radius: 2px;
  transition: all .25s ease;
}
.mob-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob-logo { font-size: 17px; font-weight: 900; letter-spacing: -.04em; }
.mob-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--am));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 290;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 768px) {
  /* Mobile topbar visible */
  .mob-header { display: flex; }

  /* App: single column + topbar offset */
  .app { padding-top: 56px; }

  /* Sidebar becomes a left drawer */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0; z-index: 300;
    width: min(280px, 85vw); min-width: unset;
    /* 100dvh = viewport dynamique (exclut barre navigateur iPhone) */
    height: 100dvh;
    height: 100vh; /* fallback */
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
    box-shadow: 8px 0 40px rgba(0,0,0,.6);
    padding-top: max(1.5rem, env(safe-area-inset-top, 1.5rem));
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .sidebar.open { transform: translateX(0); }

  /* Nav scroll si contenu dépasse */
  .sb-nav { overflow-y: auto; flex: 1; }

  /* Zone user en bas : safe area pour barre home iPhone + marge supplémentaire */
  .sb-user {
    padding: .75rem .5rem;
    /* env(safe-area-inset-bottom) = 34px sur iPhone avec home indicator */
    padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
    flex-shrink: 0;
    border-top: 1px solid var(--gb);
    margin-top: auto;
  }

  /* Zone user : meilleur tap target */
  .sb-user-info { padding: .5rem 0; }
  .nav-item { padding: .75rem .8rem; min-height: 44px; }

  /* Topbar safe area haut (notch) */
  .mob-header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(56px + env(safe-area-inset-top, 0px));
  }
  .app { padding-top: calc(56px + env(safe-area-inset-top, 0px)); }

  .main { padding: 1.25rem 1rem 2rem; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .hero-h1 { font-size: 38px; }
  .topnav { padding: 1rem 1.25rem; }
  .topnav-logo { font-size: 16px; }
  .hero-stats { gap: 1.25rem; }
  .sec-hd { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .search-row { width: 100%; }
  /* Section header: titre + actions en colonne sur mobile */
  .sec-hd > div:first-child { width: 100%; }
  .sec-hd h1 { font-size: 20px; }
}

/* Très petits écrans : grille 1 colonne */
@media (max-width: 420px) {
  .videos-grid { grid-template-columns: 1fr; gap: .75rem; }
  .main { padding: 1rem .75rem 2rem; }
  .sec-hd h1 { font-size: 18px; }
}

/* ─────────────────────────────────────────────────────────────
   MODAL CONFIRMATION (annulation abonnement)
───────────────────────────────────────────────────────────── */
.confirm-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(2,2,10,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
}
.confirm-box {
  background: var(--card);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--rxl);
  padding: 2rem 2rem 1.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(239,68,68,.1), 0 24px 60px rgba(0,0,0,.5);
  animation: slideUp .25s cubic-bezier(.22,1,.36,1);
}
.confirm-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  color: #f87171;
}
.confirm-title {
  font-size: 17px; font-weight: 800;
  color: var(--t1); margin: 0 0 .7rem;
}
.confirm-desc {
  font-size: 13.5px; color: var(--t2); line-height: 1.6;
  margin: 0 0 1.75rem;
}
.confirm-desc strong { color: var(--t1); }
.confirm-actions {
  display: flex; flex-direction: column; gap: .7rem;
}
.confirm-btn-keep {
  order: 2;
  font-size: 13px; padding: .6rem 1rem;
}
.confirm-btn-cancel {
  order: 1;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
@media (min-width: 480px) {
  .confirm-actions { flex-direction: row; justify-content: center; }
  .confirm-btn-keep  { order: 1; }
  .confirm-btn-cancel { order: 2; }
}

/* Modal newsletter — ton violet (distinct du rouge danger) */
.confirm-box-newsletter {
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.confirm-box-newsletter .confirm-title,
.confirm-box-newsletter .confirm-desc {
  text-align: center;
}
.newsletter-unsub-icon {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.28);
  color: #a78bfa;
}
.newsletter-unsub-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
/* Ordre lisible mobile : conserver d’abord, puis se désabonner */
.newsletter-unsub-actions {
  flex-direction: column;
}
.newsletter-unsub-back {
  order: 1;
  width: 100%;
  justify-content: center;
}
.newsletter-unsub-confirm {
  order: 2;
  width: 100%;
}
@media (min-width: 480px) {
  .newsletter-unsub-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .newsletter-unsub-back,
  .newsletter-unsub-confirm {
    order: unset;
    width: auto;
  }
}
html.light .confirm-box-newsletter {
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.12),
    0 20px 50px rgba(15, 23, 42, 0.12);
}

/* ─────────────────────────────────────────────────────────────
   SUBSCRIPTION PAGE — redesign
───────────────────────────────────────────────────────────── */
.sub-layout {
  display: flex; flex-direction: column; gap: 1.2rem;
  max-width: 700px;
}

/* Hero card */
.sub-hero {
  position: relative; overflow: hidden;
  border-radius: var(--rxl);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 1.75rem 1.5rem;
}
.sub-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.sub-hero-rocket .sub-hero-bg {
  background: radial-gradient(ellipse at top left, rgba(245,158,11,.10) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(139,92,246,.08) 0%, transparent 60%);
}
.sub-hero-spot .sub-hero-bg {
  background: radial-gradient(ellipse at top left, rgba(99,102,241,.12) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(16,185,129,.06) 0%, transparent 60%);
}
.sub-hero-rocket {
  background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, rgba(15,15,25,1) 50%);
  border-color: rgba(245,158,11,.2);
}
.sub-hero-spot {
  background: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(15,15,25,1) 50%);
  border-color: rgba(99,102,241,.2);
}
.sub-hero-content { position: relative; }
.sub-hero-top {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem;
}
.sub-hero-icon {
  font-size: 22px; line-height: 1;
}
.sub-hero-badge { flex-shrink: 0; }
.sub-hero-name {
  font-size: 22px; font-weight: 900; color: var(--t1);
  letter-spacing: -.5px; margin-bottom: .5rem;
}
.sub-hero-renewal {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 12.5px; color: var(--t2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; padding: .3rem .75rem;
}
.sub-hero-coupon {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 12px; color: var(--am);
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 20px; padding: .25rem .7rem;
  margin-top: .5rem;
}
.sub-hero-actions {
  position: relative;
  display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sub-cancel-btn {
  font-size: 12.5px; color: var(--t3) !important;
}
.sub-cancel-btn:hover { color: #f87171 !important; border-color: rgba(248,113,113,.3) !important; }

/* Stats grid */
.sub-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
@media (min-width: 500px) { .sub-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .sub-stats { grid-template-columns: repeat(4, 1fr); } }
.sub-stat {
  display: flex; align-items: flex-start; gap: .65rem;
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r); padding: .9rem 1rem;
}
.sub-stat-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2);
}
.sub-stat-icon.sub-stat-warn-icon { color: var(--orange); }
.sub-stat-label { font-size: 11px; color: var(--t3); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.sub-stat-value { font-size: 13.5px; font-weight: 700; color: var(--t1); }
.sub-stat-value.sub-stat-warn { color: var(--orange); }

/* Cancel notice */
.sub-cancel-notice {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: var(--r); padding: 1rem 1.1rem;
  font-size: 13px; color: #fdba74; line-height: 1.5;
}
.sub-cancel-notice svg { flex-shrink: 0; margin-top: 2px; }
.sub-cancel-notice strong { color: #fff; }

/* Invoices in subscription tab */
.sub-invoices-section {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--rxl); padding: 1.25rem 1.5rem;
}
.sub-invoices-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.sub-invoices-hd h2 {
  font-size: 14px; font-weight: 700; color: var(--t1); margin: 0;
}
.sub-history-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sub-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  padding: .72rem .85rem;
}
.sub-history-plan {
  font-size: 13px;
  font-weight: 800;
}
.sub-history-dates {
  margin-top: .2rem;
  font-size: 11.5px;
  color: var(--t3);
}
.sub-history-coupon {
  margin-top: .3rem;
  font-size: 11.5px;
  color: #facc15;
}
.sub-history-coupon strong {
  color: #fef08a;
}
.sub-history-inv-actions { margin-top: .45rem; }
.sub-history-invoices {
  display: none;
  margin: .2rem 0 .6rem;
}
.sub-history-inv-box {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r);
  background: rgba(255,255,255,.015);
}
.sub-history-inv-box--scroll {
  max-height: min(70vh, 440px);
  overflow-y: auto;
}
.inv-status-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
}
.sub-history-inv-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  gap: .7rem;
  padding: .5rem .7rem;
  font-size: 12px;
  color: var(--t2);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sub-history-inv-row:last-child { border-bottom: 0; }
.sub-history-inv-icon { font-size: 18px; flex-shrink: 0; }
.sub-history-inv-body { flex: 1; min-width: 0; }
.sub-history-inv-label { font-size: 12.5px; font-weight: 700; color: var(--t1); }
.sub-history-inv-amount { font-size: 12px; color: var(--t2); margin-top: .1rem; }
.sub-history-inv-amount strong { color: var(--t1); font-weight: 800; }
.sub-history-inv-btns { display: flex; gap: .35rem; flex-shrink: 0; }

/* Light theme */
html.light .sub-history-inv-row { border-bottom-color: rgba(80,60,160,.09); }
html.light .inv-row { border-bottom-color: rgba(80,60,160,.1); }
html.light .inv-row:hover { background: rgba(124,58,237,.03); }
.inv-pagination {
  display: flex; align-items: center; gap: .75rem;
  justify-content: center; margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ─────────────────────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  background: rgba(4,4,14,.96);
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
/* Gradient top line */
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,158,11,.5) 30%,
    rgba(139,92,246,.5) 70%,
    transparent 100%);
}
/* Subtle background glow */
.site-footer::after {
  content: '';
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(124,58,237,.06) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 2rem 0;
}
.footer-brand { display: flex; flex-direction: column; gap: .25rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo {
  font-size: 20px; font-weight: 900; letter-spacing: -.04em;
  margin-bottom: .65rem;
}
.footer-desc {
  font-size: 13px; color: var(--t2); line-height: 1.65;
  margin: 0 0 1.1rem; max-width: 340px;
}
.footer-disclaimer {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: 11.5px; color: var(--t3); line-height: 1.55;
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.12);
  border-radius: var(--r); padding: .75rem 1rem;
  max-width: 380px;
}
.footer-disclaimer svg { color: rgba(245,158,11,.6); }
.footer-links-grid {
  display: flex; gap: 3rem; justify-content: flex-end;
}
.footer-col {
  display: flex; flex-direction: column; gap: .55rem;
}
.footer-col-title {
  font-size: 10.5px; font-weight: 800; color: var(--t3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: .4rem;
}
.footer-link {
  font-size: 13px; color: var(--t2); line-height: 1.5;
  transition: color var(--fast);
}
.footer-link:hover { color: var(--t1); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 12px; color: var(--t3);
}
.footer-bottom-links {
  display: flex; align-items: center; gap: .65rem;
}
.footer-sep { color: rgba(255,255,255,.12); }

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links-grid {
    justify-content: flex-start; flex-wrap: wrap; gap: 2rem;
  }
  .footer-desc { max-width: none; }
  .footer-disclaimer { max-width: none; }
  .footer-bottom {
    flex-direction: column; gap: .6rem; text-align: center;
    padding-bottom: 1.5rem;
  }
  .footer-inner { padding: 2rem 1.25rem 0; }
}

/* ─────────────────────────────────────────────────────────────
   LEGAL PAGES (mentions légales, CGV, aide, contact)
───────────────────────────────────────────────────────────── */
.legal-page {
  min-height: 100vh; position: relative;
  display: flex; justify-content: center;
  padding: 3rem 1.25rem 4rem;
}
.legal-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 720px;
}
.legal-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 13px; color: var(--t2);
  margin-bottom: 2rem; transition: color var(--fast);
}
.legal-back:hover { color: var(--t1); }
.legal-title {
  font-size: 32px; font-weight: 900; letter-spacing: -.04em;
  color: var(--t1); margin: 0 0 2.5rem;
}
.legal-content h2 {
  font-size: 16px; font-weight: 800; color: var(--t1);
  margin: 2rem 0 .65rem;
}
.legal-content h3 {
  font-size: 14.5px; font-weight: 700; color: var(--t1);
  margin: 0 0 .5rem;
}
.legal-content p {
  font-size: 13.5px; color: var(--t2); line-height: 1.75;
  margin: 0 0 1rem;
}
.legal-content a { color: var(--pl); }
.legal-content a:hover { color: var(--t1); }
.legal-disclaimer {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: 12px; color: var(--t3); line-height: 1.6;
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.15);
  border-radius: var(--r); padding: 1rem 1.1rem;
  margin-top: 2.5rem;
}
.faq-item {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r); padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
}
.faq-item h3 { font-size: 14px; }
.faq-item p  { margin: 0; font-size: 13px; }

/* Contact cards */
.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r); padding: 1.25rem;
  transition: border-color var(--fast), box-shadow var(--fast);
}
a.contact-card:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 0 0 1px rgba(124,58,237,.15);
}
.contact-card-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--pl);
}
.contact-card-title { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.contact-card-value { font-size: 13.5px; font-weight: 600; color: var(--t1); }

/* ─────────────────────────────────────────────────────────────
   PROFILE PAGE
───────────────────────────────────────────────────────────── */
/* Legacy — kept for backward compat */
.profile-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.5rem;
  max-width: 860px;
  align-items: start;
}
@media (max-width: 820px) {
  .profile-layout { grid-template-columns: 1fr; }
}

/* ── New profile page ── */
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
}
/* ── Hero card ── */
.profile-hero-card {
  background: linear-gradient(135deg, var(--card) 60%, rgba(124,58,237,.06));
  border: 1px solid var(--card-border);
  border-radius: var(--r2);
  padding: 2rem 2rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.profile-hero-avatar-col {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; flex-shrink: 0;
}
.profile-hero-identity {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  flex: 1;
  padding-top: .15rem;
  margin-left: -.8rem; /* offset interne du padding des rows */
}
.profile-hero-name {
  font-size: 20px; font-weight: 900; color: var(--t1);
  letter-spacing: -.03em; line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis;
}
.profile-hero-email {
  font-size: 13px; color: var(--t2);
  overflow: hidden; text-overflow: ellipsis;
}
.profile-hero-badges {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .15rem;
}
.profile-since-sub {
  background: rgba(124,58,237,.12) !important;
  border-color: rgba(124,58,237,.2) !important;
  color: var(--pl) !important;
}

/* ── Cards ── */
.profile-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
/* Grille basse : abonnement + apparence côte à côte */
.profile-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* Label de section (remplace profile-card-title) */
.profile-section-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--t3);
  margin-bottom: .15rem;
}

/* ── Inline edit fields ── */
.profile-hero-identity { gap: .5rem; }

.profile-field-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background var(--fast), border-color var(--fast);
}
.profile-field-row:not(.profile-field-row-static):hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.profile-field-row-edit {
  background: rgba(255,255,255,.04);
  border-color: rgba(124,58,237,.25) !important;
  align-items: flex-start;
}
.profile-field-col {
  display: flex; flex-direction: column; gap: .12rem;
  min-width: 0; flex: 1;
}
.profile-field-col-expand { flex: 1; min-width: 0; }
.profile-field-label-tiny {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t3); line-height: 1;
}

/* ── Edit toggle button ── */
.profile-edit-btn {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--t3);
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.profile-edit-btn:hover {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.3);
  color: var(--pl);
}

/* ── Inline input ── */
.profile-inline-input {
  margin-top: .25rem;
  padding: .45rem .75rem;
  font-size: 14px;
  height: auto;
}

/* ── Save / cancel action buttons ── */
.profile-edit-actions {
  display: flex; gap: .35rem; flex-shrink: 0; margin-top: 1.1rem;
}
.profile-edit-action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.profile-action-save {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.25);
  color: #4ade80;
}
.profile-action-save:hover {
  background: rgba(34,197,94,.3);
  border-color: rgba(34,197,94,.5);
}
.profile-action-cancel {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.2);
  color: #f87171;
}
.profile-action-cancel:hover {
  background: rgba(239,68,68,.25);
  border-color: rgba(239,68,68,.45);
}

/* ── Lock tag (email non modifiable) ── */
.profile-lock-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  flex-shrink: 0;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t3);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: .25rem .65rem;
  white-space: nowrap;
}

/* ── Avatar info tooltip button (badge bas-droite de l'avatar) ── */
.profile-avatar-info-btn {
  position: absolute;
  bottom: 2px; right: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--t3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; line-height: 1;
  font-style: normal; letter-spacing: 0;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.profile-avatar-info-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.2);
  color: var(--t2);
}
/* Tooltip — positionné à droite du bouton */
.profile-avatar-info-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: calc(100% + 10px);
  white-space: nowrap;
  background: rgba(20,15,40,.96);
  color: rgba(255,255,255,.92);
  font-size: 11px; font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
  z-index: 20;
}
/* Flèche pointant vers la gauche */
.profile-avatar-info-btn::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: calc(100% + 4px);
  border: 5px solid transparent;
  border-right-color: rgba(20,15,40,.96);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
  z-index: 20;
}
.profile-avatar-info-btn:hover::before,
.profile-avatar-info-btn:hover::after,
.profile-avatar-info-btn.tooltip-visible::before,
.profile-avatar-info-btn.tooltip-visible::after { opacity: 1; }

/* Sub display in profile */
.profile-sub-active {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.15);
  border-radius: var(--r1);
  padding: .75rem 1rem;
  color: #4ade80;
}
.profile-sub-name { font-size: 13px; font-weight: 700; color: var(--t1); }
.profile-sub-status { font-size: 11px; color: #4ade80; font-weight: 600; }
.profile-sub-none {
  font-size: 13px; color: var(--t3);
  padding: .5rem 0 .1rem;
}
.profile-sub-manage {
  font-size: 12px; font-weight: 600; color: var(--pl);
  text-decoration: none; margin-top: .1rem;
}
.profile-sub-manage:hover { text-decoration: underline; }

/* ── Newsletter card ── */
.profile-newsletter-card { margin-top: 1rem; }

/* ── Danger zone card ── */
.profile-danger-card {
  margin-top: 1rem;
  border-color: rgba(239,68,68,.2) !important;
  background: rgba(239,68,68,.03) !important;
}
.profile-section-label-danger { color: #f87171 !important; }
.profile-danger-desc {
  font-size: 13px; color: var(--t2); line-height: 1.6; margin: .5rem 0 .75rem;
}
.profile-danger-notice {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: 12.5px; color: #fbbf24; line-height: 1.6;
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.2);
  border-radius: 8px; padding: .65rem .85rem; margin-bottom: .85rem;
}
.profile-danger-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 13px;
}
/* ── Modal danger ── */
.confirm-box-danger { border-color: rgba(239,68,68,.35) !important; }
.confirm-icon-danger {
  background: rgba(239,68,68,.12) !important;
  border-color: rgba(239,68,68,.25) !important;
}
.confirm-sub-warning {
  display: flex; align-items: flex-start; gap: .65rem;
  text-align: left;
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(251,191,36,.35);
  background: rgba(251,191,36,.1);
  color: #fbbf24;
}
.confirm-sub-warning svg { flex-shrink: 0; margin-top: 1px; }
.confirm-sub-warning-text {
  display: flex; flex-direction: column; gap: .25rem;
  font-size: 12.5px; line-height: 1.55; color: var(--t2);
}
.confirm-sub-warning-text strong:first-child {
  color: #f59e0b; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.confirm-sub-warning-text span strong { color: var(--t1); }
html.light .confirm-sub-warning {
  border-color: rgba(217,119,6,.35);
  background: rgba(251,191,36,.14);
}
html.light .confirm-sub-warning-text strong:first-child { color: #b45309; }
.confirm-list {
  list-style: none; padding: 0; margin: 0 0 .5rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.confirm-list li {
  font-size: 13px; color: var(--t2); line-height: 1.5;
  padding-left: 1.1rem; position: relative;
}
.confirm-list li::before {
  content: '•'; color: #f87171;
  position: absolute; left: 0; top: 0;
}
.delete-account-step { width: 100%; }
.delete-account-step-2 {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  text-align: left;
}
.delete-account-step2-lead { text-align: left; }
.delete-confirm-phrase-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(239, 68, 68, 0.1);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  margin: 0 0 0.75rem;
  color: var(--t1);
  text-align: center;
}
.delete-account-phrase-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t3);
  margin-bottom: 0.35rem;
}
.delete-account-phrase-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.45rem;
}
.delete-account-phrase-error {
  font-size: 12px;
  color: #f87171;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
html.light .delete-confirm-phrase-hint {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.28);
  color: #1f1635;
}
/* ── Legal pages date + table ── */
.legal-date { font-size: 12px; color: var(--t3); margin: -.5rem 0 1.5rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: .75rem 0 1.25rem; }
.legal-table th, .legal-table td { padding: .55rem .85rem; border: 1px solid rgba(124,58,237,.15); text-align: left; }
.legal-table th { font-weight: 700; color: var(--t1); background: rgba(124,58,237,.06); }
.legal-table td { color: var(--t2); }
html.light .legal-table th { background: rgba(80,60,160,.06); }
html.light .legal-table td, html.light .legal-table th { border-color: rgba(80,60,160,.12); }
.newsletter-active-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; padding: .5rem 0 .25rem;
}
.newsletter-active-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 12.5px; font-weight: 700; color: #4ade80;
}
.newsletter-active-badge svg { flex-shrink: 0; stroke: #4ade80; }
.newsletter-hint {
  font-size: 11.5px; color: var(--t3); margin: .35rem 0 0; line-height: 1.5;
}
.newsletter-none {
  font-size: 13px; color: var(--t3); padding: .5rem 0 .1rem;
}
html.light .newsletter-hint { color: var(--t2); }
html.light .newsletter-none { color: var(--t2); }

/* Save button */
.profile-save-btn {
  width: 100%;
  justify-content: center;
  padding: .75rem;
  font-size: 14px;
}

@media (max-width: 680px) {
  .profile-bottom-grid { grid-template-columns: 1fr; }
  .profile-hero-card  { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1.25rem; gap: 1.25rem; }
  .profile-hero-identity { align-items: center; padding-top: 0; }
  .profile-hero-badges { justify-content: center; }
  .profile-hero-name { font-size: 19px; }
}

/* ── Avatar card ── */
.profile-avatar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r2);
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}

/* ── Avatar container (position relative pour le badge ?) ── */
.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: .4rem;
}
.profile-avatar-wrap {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  transition: border-color var(--fast), transform var(--fast);
  display: block;
}
.profile-avatar-wrap:hover {
  border-color: rgba(124,58,237,.5);
  transform: scale(1.04);
}
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }

.profile-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.profile-avatar-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #fff;
  user-select: none;
}
.profile-avatar-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--fast);
  color: #fff;
}

.avatar-upload-progress {
  display: flex; align-items: center; gap: .5rem;
  font-size: 12px; color: var(--t2);
  margin-top: -.2rem;
}
.avatar-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--pl);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.profile-name {
  font-size: 17px; font-weight: 800; color: var(--t1);
  line-height: 1.2;
}
.profile-email-badge {
  font-size: 12px; color: var(--t2);
  word-break: break-all;
  max-width: 100%;
}
.profile-since {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 11px; color: var(--t3);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: .25rem .85rem;
  margin-top: .15rem;
}
.profile-avatar-hint {
  font-size: 11px; color: var(--t3);
  line-height: 1.5;
  margin-top: .5rem;
}

/* ── Info card ── */
.profile-info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r2);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.profile-section-title {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--t3);
  margin-bottom: .85rem;
}
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
@media (max-width: 500px) {
  .profile-info-grid { grid-template-columns: 1fr; }
}
.profile-info-item {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r);
  padding: .8rem 1rem;
  transition: border-color var(--fast);
}
.profile-info-item:hover { border-color: rgba(255,255,255,.1); }
.profile-info-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: 10.5px; color: var(--t3);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: .35rem;
}
.profile-info-value {
  font-size: 13px; font-weight: 600; color: var(--t1);
}

/* ── Username form ── */
.profile-username-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.username-check {
  font-size: 12px;
  min-height: 1.3em;
  transition: color var(--fast);
}
.username-check.ok       { color: #6ee7b7; }
.username-check.taken    { color: #f87171; }
.username-check.checking { color: var(--t3); }

/* ─────────────────────────────────────────────────────────────
   INVOICE DATES — responsive (mois + année sur mobile)
───────────────────────────────────────────────────────────── */
.date-short { display: none; }
.date-full  { display: inline; }

@media (max-width: 540px) {
  .date-full  { display: none; }
  .date-short { display: inline; }
  .inv-period { font-size: 10.5px; }
  .inv-mid    { display: none; } /* masquer la période sur très petit écran */
  .inv-row    { gap: .5rem; }
}

/* ─────────────────────────────────────────────────────────────
   VIDEO PAGE — design V2
───────────────────────────────────────────────────────────── */

/* ── Topbar ── */
.vp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,16,.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 28px rgba(0,0,0,.22);
}
.vp-header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: .85rem 1.75rem;
  display: flex; align-items: center; gap: 1rem;
}
.vp-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 12.5px; font-weight: 600; color: var(--t3);
  text-decoration: none;
  padding: .35rem .7rem .35rem .5rem;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: color var(--fast), background var(--fast), border-color var(--fast);
  white-space: nowrap;
}
.vp-back:hover { color: var(--t1); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.vp-logo { flex: 1; text-align: center; font-size: 15px; font-weight: 800; }

/* ── Page shell ── */
.vp-page { min-height: calc(100vh - 54px); background: var(--bg); }

/* ══════════════════════════════════════════════════════════
   HERO — cinématographique
══════════════════════════════════════════════════════════ */
.vp-hero {
  position: relative; overflow: hidden;
  padding: 2.5rem 1.75rem 1.35rem;
  background: #030308;
}
.vp-hero-bg {
  position: absolute; inset: -8%;
  background-image: var(--vp-thumb, none);
  background-size: cover; background-position: center;
  filter: blur(34px) brightness(.2) saturate(1.7);
  transform: scale(1.06);
  z-index: 0;
}
.vp-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,3,20,.35) 0%, rgba(3,3,20,.68) 50%, rgba(3,3,20,1) 100%),
    linear-gradient(135deg, rgba(124,58,237,.2) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 40%, rgba(236,72,153,.07) 0%, transparent 60%);
  z-index: 1;
}
.vp-hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
}
/* Eyebrow "Analyse exclusive" */
.vp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 1.1rem;
}
.vp-hero-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,.8), 0 0 16px rgba(167,139,250,.3);
  animation: vp-dot-pulse 2.8s ease-in-out infinite;
}
@keyframes vp-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(167,139,250,.8); }
  50%       { opacity: .6; transform: scale(.82); box-shadow: 0 0 4px rgba(167,139,250,.4); }
}
/* Chips */
.vp-hero-chips {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.1rem;
}
.vp-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: .28rem .8rem;
  backdrop-filter: blur(8px);
}
/* Titre */
.vp-hero-title {
  font-size: clamp(28px, 5.2vw, 60px);
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1.04;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.65rem;
  max-width: 920px;
  text-shadow: 0 4px 48px rgba(0,0,0,.55), 0 0 80px rgba(124,58,237,.12);
}
/* Règle décorative */
.vp-hero-rule {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, #a78bfa, rgba(124,58,237,.2));
  border-radius: 3px;
}
/* Fondu bas vers bg */
.vp-hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 3; pointer-events: none;
}

/* ── Light hero ── */
html.light .vp-header {
  background: rgba(255,255,255,.96);
  border-bottom-color: rgba(80,60,160,.1);
}
html.light .vp-back {
  color: var(--t2);
  background: rgba(80,60,160,.05);
  border-color: rgba(80,60,160,.1);
}
html.light .vp-back:hover { color: var(--t1); background: rgba(80,60,160,.1); }
html.light .vp-logo { color: var(--t1); }
html.light .vp-hero { background: #f3f0fb; }
html.light .vp-hero-bg { filter: blur(24px) brightness(1.1) saturate(.7); opacity: .18; }
html.light .vp-hero-overlay {
  background:
    linear-gradient(to bottom, rgba(245,243,255,.7) 0%, rgba(240,236,252,.92) 55%, rgba(243,240,251,1) 100%),
    linear-gradient(135deg, rgba(124,58,237,.07) 0%, transparent 50%);
}
html.light .vp-hero-eyebrow { color: rgba(70,50,150,.45); }
html.light .vp-hero-dot { background: #7c3aed; box-shadow: 0 0 8px rgba(124,58,237,.6); }
html.light .vp-hero-title { color: var(--t1); text-shadow: none; }
html.light .vp-hero-rule { background: linear-gradient(90deg, #7c3aed, rgba(124,58,237,.18)); }
html.light .vp-hero-bottom-fade { background: linear-gradient(to bottom, transparent, #f3f0fb); }
html.light .vp-chip { color: var(--t2); background: rgba(255,255,255,.85); border-color: rgba(80,60,160,.14); }

/* ══════════════════════════════════════════════════════════
   CONTENT GRID
══════════════════════════════════════════════════════════ */
.vp-content {
  max-width: 1280px; margin: 0 auto;
  padding: 0.85rem 1.75rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.75rem;
  align-items: start;
}
.vp-main { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.vp-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

@media (min-width: 900px) {
  .vp-side { position: sticky; top: 72px; }
}

/* ── Player flottant ── */
.vp-player-stage {
  position: relative;
  display: flex; flex-direction: column;
}
.vp-player-glow {
  position: absolute;
  inset: 15% 8% -20%;
  background: radial-gradient(ellipse, rgba(124,58,237,.22) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none; z-index: 0;
  opacity: .9;
}
.vp-ratio {
  position: relative;
  width: 100%; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: 22px;
  background: #000;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.09),
    0 50px 100px rgba(0,0,0,.75),
    0 0 0 1px rgba(124,58,237,.05);
}
.vp-ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; border-radius: 22px;
}

/* Barre source sous le player */
.vp-source-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  padding: .85rem .35rem .2rem;
  z-index: 1; position: relative;
}
.vp-source-pill {
  display: inline-flex; align-items: center; gap: .38rem;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.36);
  padding: .3rem .7rem;
  border-radius: 20px;
  background: rgba(255,255,255,.046);
  border: 1px solid rgba(255,255,255,.07);
  white-space: nowrap;
}
a.vp-source-pill {
  text-decoration: none;
  transition: color var(--fast), background var(--fast), border-color var(--fast);
}
a.vp-source-pill:hover {
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
}

html.light .vp-ratio {
  box-shadow: 0 0 0 1px rgba(80,60,160,.1), 0 40px 80px rgba(80,60,160,.18);
}
html.light .vp-source-pill { color: rgba(60,40,120,.45); background: rgba(80,60,160,.06); border-color: rgba(80,60,160,.1); }
html.light a.vp-source-pill:hover { color: var(--t1); background: rgba(80,60,160,.1); }

/* ── Description card ── */
.vp-desc-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid rgba(124,58,237,.45);
  border-radius: 0 var(--r2) var(--r2) 0;
  padding: 1.35rem 1.5rem 1.5rem 1.4rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}
.vp-desc-header {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
}
.vp-desc-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(124,58,237,.14);
  border: 1px solid rgba(124,58,237,.22);
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa;
}
.vp-desc-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t3);
}
.vp-description {
  font-size: 14px; color: var(--t2); line-height: 1.8;
  margin: 0;
}

html.light .vp-desc-card {
  border-color: rgba(80,60,160,.12);
  border-left-color: rgba(124,58,237,.5);
}
html.light .vp-desc-icon {
  background: rgba(124,58,237,.08);
  border-color: rgba(124,58,237,.18);
  color: #7c3aed;
}

/* ── Sidebar cards ── */
.vp-side-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r2);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.17);
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.vp-side-card:hover {
  border-color: rgba(255,255,255,.13);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
html.light .vp-side-card {
  border-color: rgba(80,60,160,.12);
  box-shadow: 0 8px 26px rgba(80,60,160,.1);
}
html.light .vp-side-card:hover { border-color: rgba(80,60,160,.2); box-shadow: 0 16px 40px rgba(80,60,160,.14); }

/* ── Sidebar section header ── */
.vp-side-header {
  display: flex; align-items: center; gap: .45rem;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t3);
  margin-bottom: .95rem; padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
html.light .vp-side-header { border-bottom-color: rgba(80,60,160,.1); }

/* ─────────────────────────────────────────────────────────────
   REFERRAL / EXCHANGES — design premium
───────────────────────────────────────────────────────────── */
.referral-section { overflow: hidden; }
.referral-title {
  margin: 0 0 1rem;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t3);
}
.referral-actions { display: flex; flex-direction: column; gap: .7rem; }

/* ── Carte exchange ── */
.exchange-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.2rem;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}
/* Barre colorée gauche */
.exchange-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
}
/* Shimmer hover */
.exchange-link::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-130%);
  transition: transform 550ms ease;
  pointer-events: none;
}
.exchange-link:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.exchange-link:hover::after { transform: translateX(130%); }
.exchange-link:active { transform: translateY(-1px); }
.exchange-link:focus-visible { outline: 2px solid rgba(124,58,237,.5); outline-offset: 2px; }

/* ── Logo plateforme (PNG) ── */
.exchange-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}
.exchange-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 9px;
}

/* ── Texte central ── */
.exchange-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .12rem;
  position: relative; z-index: 1;
}
.exchange-brand {
  font-size: 13px; font-weight: 900; letter-spacing: .08em; color: #fff; line-height: 1;
}
.exchange-bonus {
  font-size: 12px; font-weight: 800; line-height: 1.25;
}
.exchange-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.38);
  text-transform: uppercase; letter-spacing: .05em;
}

/* ── Flèche ── */
.exchange-arrow {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative; z-index: 1;
  transition: transform var(--fast), background var(--fast);
}
.exchange-link:hover .exchange-arrow { transform: translateX(3px); }

/* ── BLOFIN ── */
.exchange-link-blofin {
  background: linear-gradient(135deg, rgba(16,185,129,.1) 0%, rgba(255,255,255,.025) 100%);
}
.exchange-link-blofin::before { background: linear-gradient(to bottom, #10b981, #059669); }
.exchange-link-blofin .exchange-logo-blofin {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.exchange-link-blofin .exchange-bonus { color: #34d399; }
.exchange-link-blofin .exchange-arrow { background: rgba(16,185,129,.18); }
.exchange-link-blofin:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(16,185,129,.25);
}
.exchange-link-blofin:hover .exchange-arrow { background: rgba(16,185,129,.35); }

/* ── BYBIT EU ── */
.exchange-link-bybit {
  background: linear-gradient(135deg, rgba(245,158,11,.09) 0%, rgba(255,255,255,.025) 100%);
}
.exchange-link-bybit::before { background: linear-gradient(to bottom, #f59e0b, #d97706); }
.exchange-link-bybit .exchange-logo-bybit {
  background: #0b111d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.exchange-link-bybit .exchange-bonus { color: #fbbf24; }
.exchange-link-bybit .exchange-arrow { background: rgba(245,158,11,.18); }
.exchange-link-bybit:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(245,158,11,.25);
}
.exchange-link-bybit:hover .exchange-arrow { background: rgba(245,158,11,.35); }

@media (max-width: 420px) {
  .exchange-link {
    padding: 0.85rem 0.75rem 0.85rem 0.95rem;
    gap: 0.65rem;
  }
  .exchange-logo {
    width: 42px;
    height: 42px;
    padding: 3px;
  }
  .exchange-brand {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .exchange-bonus {
    font-size: 11px;
  }
  .exchange-label {
    font-size: 9.5px;
  }
  .exchange-arrow {
    width: 30px;
    height: 30px;
  }
}

/* ── Disclaimer sidebar redesign ── */
.vp-disclaimer {
  background: rgba(245,158,11,.03);
  border-color: rgba(245,158,11,.18);
}
.vp-disclaimer-hd {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
}
.vp-disclaimer-icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.vp-disclaimer-title {
  font-size: 13px; font-weight: 900; color: var(--t1); margin: 0; line-height: 1.2;
}
.vp-disclaimer-sub {
  font-size: 10.5px; color: rgba(245,158,11,.7); margin: .1rem 0 0; font-weight: 600;
}
.vp-disclaimer-lead {
  margin: 0 0 .9rem;
  font-size: 12px; line-height: 1.65; color: var(--t2);
}
.btn-disclaimer {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: .58rem 1rem;
  font-size: 12px; font-weight: 700;
  color: #0b0b14;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,158,11,.22);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}
.btn-disclaimer:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(245,158,11,.32);
  filter: brightness(1.04);
}
.btn-disclaimer:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,158,11,.4); }

/* ── Modal risques ── */
.vp-risk-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(2,2,12,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn .2s ease;
}
.vp-risk-modal[hidden] { display: none !important; }
.vp-risk-modal-box {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: min(88vh, 580px);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--card);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--rxl);
  box-shadow: 0 0 0 1px rgba(245,158,11,.06), 0 32px 80px rgba(0,0,0,.6);
  animation: modal-in .28s var(--ease);
}
.vp-risk-modal-close {
  position: absolute; top: .85rem; right: .85rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--gb);
  background: var(--g1); color: var(--t2);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.vp-risk-modal-close:hover { background: var(--g2); color: var(--t1); }
.vp-risk-modal-icon {
  width: 50px; height: 50px; margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 14px;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.22);
}
.vp-risk-modal-heading {
  margin: 0 0 1rem;
  font-size: 17px; font-weight: 900; letter-spacing: -.02em;
  text-align: center; color: var(--t1); line-height: 1.25;
}
.vp-risk-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.vp-risk-item {
  margin: 0; padding: .85rem .95rem;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.vp-risk-item p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--t2); }
.vp-risk-item-alert {
  border-color: rgba(248,113,113,.2); background: rgba(248,113,113,.06);
}
.vp-risk-item-alert p { color: var(--t1); font-weight: 600; }
.btn-disclaimer-secondary {
  width: 100%; margin-top: .75rem; padding: .65rem 1rem;
  font-size: 13px; font-weight: 700; color: var(--t1);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.btn-disclaimer-secondary:hover {
  background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16);
}

/* ══════════════════════════════════════════════════════════
   LOCKED — état verrouillé V2
══════════════════════════════════════════════════════════ */
.vp-locked-full {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 54px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
  background: #030308;
}
.vp-locked-bg {
  position: absolute; inset: -8%;
  background-image: var(--vp-thumb, none);
  background-size: cover; background-position: center;
  filter: blur(36px) brightness(.18) saturate(1.5);
  transform: scale(1.05);
  z-index: 0;
}
.vp-locked-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(3,3,16,.9) 80%),
    linear-gradient(to bottom, rgba(3,3,16,.3) 0%, rgba(3,3,16,.7) 100%);
  z-index: 1;
}
.vp-locked-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 480px;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rxl);
  padding: 2.75rem 2rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 40px 100px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.vp-locked-plan { display: inline-flex; margin-bottom: 1.5rem; }
/* Icône verrou avec animation */
.vp-locked-lock-wrap {
  position: relative;
  width: 68px; height: 68px; margin: 0 auto 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.vp-locked-lock-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,.3);
  animation: lock-ring-pulse 3s ease-in-out infinite;
}
@keyframes lock-ring-pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%       { transform: scale(1.18); opacity: .15; }
}
.vp-locked-lock-icon {
  color: rgba(255,255,255,.75);
  animation: lock-icon-float 4s ease-in-out infinite;
}
@keyframes lock-icon-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}
.vp-locked-title {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.2;
  color: #fff; margin: 0 0 .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.vp-locked-desc {
  font-size: 14px; color: rgba(255,255,255,.52);
  line-height: 1.7; margin: 0 0 1.85rem;
}
.vp-locked-btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE VIDEO PAGE
══════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .vp-content {
    grid-template-columns: 1fr;
    padding: 0.65rem 1.1rem 3rem;
    gap: 1.25rem;
  }
  .vp-side { position: static !important; flex-direction: row; flex-wrap: wrap; }
  .vp-side > .vp-side-card { flex: 1; min-width: 260px; }
  .vp-hero { padding: 2rem 1.25rem 1.35rem; }
}
@media (max-width: 640px) {
  .vp-side { flex-direction: column; }
  .vp-hero { padding: 1.5rem 1rem 1.15rem; }
  .vp-hero-title { letter-spacing: -.035em; }
  .vp-header-inner { padding: .75rem 1rem; }
  .vp-content { padding: 0.55rem .9rem 2.5rem; gap: 1rem; }
  .vp-desc-card { border-radius: 0 12px 12px 0; }
  .vp-side-card { padding: .95rem 1rem; }
}
@media (max-width: 420px) {
  .vp-hero { padding: 1.25rem .9rem 1rem; }
  .vp-ratio { border-radius: 14px; }
  .vp-ratio iframe { border-radius: 14px; }
  .vp-hero-title { font-size: clamp(22px, 7vw, 34px); }
  .vp-content { padding: 0.45rem .75rem 2rem; }
}

/* ─────────────────────────────────────────────────────────────
   VIDEO GRID — RESPONSIVE COMPLET
───────────────────────────────────────────────────────────── */

/* Tablet intermédiaire : 2 colonnes, cartes compactes */
@media (max-width: 900px) and (min-width: 541px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .video-title { font-size: 13px; }
}

/* Mobile : layout horizontal (thumbnail gauche, info droite) */
@media (max-width: 540px) {
  .videos-grid {
    display: flex;
    flex-direction: column;
    gap: .65rem;
  }

  /* ── Carte horizontale ── */
  .video-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 16px;
    min-height: 135px;
  }
  .video-card:hover { transform: none; }
  .video-card:active { transform: scale(.985); }

  /* ── Miniature gauche ── */
  .video-thumb {
    width: 152px;
    min-width: 152px;
    aspect-ratio: unset;
    height: auto;
    border-radius: 14px 0 0 14px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* ── Chip row dans miniature mobile : une seule puce, alignée à gauche ── */
  .video-chip-row {
    top: .45rem; left: .45rem; right: .45rem;
    flex-direction: row;
    align-items: flex-start;
    gap: .25rem;
  }

  /* ── Play ring : toujours visible sur mobile ── */
  .play-ring {
    width: 32px; height: 32px;
    opacity: .85;
    border-width: 1.5px;
  }
  .lock-ring {
    width: 32px; height: 32px;
    opacity: .85;
  }
  .lock-ring svg { width: 13px; height: 13px; }
  .play-ring svg { width: 12px; height: 12px; margin-left: 2px; }

  /* ── Unlock hint toujours visible sur mobile ── */
  .unlock-hint { opacity: 1 !important; font-size: 8px; }

  /* ── Infos droite ── */
  .video-info {
    flex: 1;
    min-width: 0;
    padding: .65rem .85rem .65rem .8rem;
    gap: .3rem;
    justify-content: center;
  }

  /* ── Tag plan : petite version ── */
  .v-tag {
    font-size: 8.5px;
    padding: 3px 7px;
    letter-spacing: .05em;
  }

  /* ── Titre sur 3 lignes max ── */
  .video-title {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    margin-bottom: 0;
  }

  /* ── Date + durée en bas ── */
  .video-meta { margin-top: .3rem; flex-wrap: wrap; gap: .2rem .5rem; }
  .video-date     { font-size: 10px; }
  .video-duration { font-size: 10px; }

  /* ── Locked card ── */
  .video-card.locked { }
  .video-card.locked:hover { transform: none; }
  .video-card.locked:active { transform: scale(.985); }
}

/* ─────────────────────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { order: -1; }
}

.contact-form { display: flex; flex-direction: column; gap: 0; width: 100%; }
.contact-form-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r2);
  padding: 1.75rem;
}
.contact-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 540px) {
  .contact-form-row { grid-template-columns: 1fr; }
}
.contact-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.contact-submit-btn {
  margin-top: .5rem;
  width: 100%;
  justify-content: center;
  padding: .85rem;
  font-size: 14px;
}
.req { color: #f87171; margin-left: .1rem; }

.contact-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-info-block {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--fast);
}
.contact-info-block:hover { border-color: rgba(255,255,255,.12); }
.contact-info-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--pl);
}
.contact-info-label {
  font-size: 10.5px; color: var(--t3); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .3rem;
}
.contact-info-value {
  font-size: 13px; font-weight: 600; color: var(--t1);
  word-break: break-all;
}
a.contact-info-value:hover { color: var(--pl); }

.contact-flash {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .9rem 1.1rem; border-radius: var(--r);
  margin-bottom: 1.5rem;
  font-size: 13.5px; line-height: 1.5;
}
.contact-flash-success {
  background: rgba(110,231,183,.08);
  border: 1px solid rgba(110,231,183,.25);
  color: #6ee7b7;
}
.contact-flash-error {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.25);
  color: #f87171;
}

/* ─────────────────────────────────────────────────────────────
   PROFILE — champs inline + thème toggle
───────────────────────────────────────────────────────────── */
.profile-field-group {
  display: flex; flex-direction: column; gap: .3rem;
}
.profile-field-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--t3);
}
.profile-inline-input {
  font-size: 14px;
}

/* Status block */
.profile-status-block {
  display: flex; flex-direction: column; align-items: flex-start;
}
.profile-status-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 13px; font-weight: 600;
  padding: .5rem .9rem; border-radius: var(--rf);
}
.profile-status-active {
  background: rgba(16,185,129,.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.25);
}
.profile-status-none {
  background: rgba(255,255,255,.05);
  color: var(--t2);
  border: 1px solid var(--card-border);
}

/* Theme toggle */
.theme-toggle-group {
  display: flex; gap: .5rem;
}
.theme-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: var(--rf);
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--card-border);
  color: var(--t2);
  transition: background var(--fast), border-color var(--fast), color var(--fast);
  cursor: pointer;
}
.theme-btn:hover  { border-color: rgba(124,58,237,.3); color: var(--t1); }
.theme-btn.active {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
  box-shadow: 0 0 0 3px var(--pglow);
}


/* ─────────────────────────────────────────────────────────────
   SEARCH ROW — responsive amélioré
───────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .sec-hd {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    gap: .6rem;
  }
  .sec-hd h1 { font-size: 20px; }

  /* Barre de recherche pleine largeur sur mobile */
  .search-row {
    width: 100%;
    gap: .4rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
  }
  .search-row #search-input {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: .55rem .75rem;
  }
  .search-row #search-date {
    width: 110px !important;
    min-width: 0;
    font-size: 12px;
    padding: .55rem .5rem;
  }
  .search-row .btn-sm {
    padding: .55rem .7rem;
    flex-shrink: 0;
  }

  /* Compteur vidéos sous le titre */
  .sec-hd > div:first-child { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   CONSENT BANNER — Google CMP
═══════════════════════════════════════════════════════ */
.consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
}
.consent-banner.consent-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.consent-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 -8px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(124,58,237,.12);
  backdrop-filter: blur(24px);
}
.consent-hd {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .65rem;
}
.consent-emoji { font-size: 20px; line-height: 1; }
.consent-title { font-size: 15px; font-weight: 800; color: var(--t1); margin: 0; }
.consent-desc {
  font-size: 12.5px; line-height: 1.65; color: var(--t2);
  margin: 0 0 1rem;
}
/* Panneau personnalisation */
.consent-details {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: .65rem .9rem;
  margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.consent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.consent-row-info { display: flex; flex-direction: column; gap: .08rem; flex: 1; min-width: 0; }
.consent-row-label { font-size: 12px; font-weight: 700; color: var(--t1); }
.consent-row-sub { font-size: 11px; color: var(--t3); }
.consent-always-on {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #4ade80;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: 20px;
  padding: .2rem .6rem;
  white-space: nowrap; flex-shrink: 0;
}
/* Toggle switch */
.consent-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.consent-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.consent-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.1);
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  border: 1px solid rgba(255,255,255,.1);
}
.consent-slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.consent-switch input:checked + .consent-slider { background: var(--p); border-color: var(--p); }
.consent-switch input:checked + .consent-slider::before { transform: translateX(18px); }
/* Boutons */
.consent-actions {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem;
}
.consent-btn {
  flex: 1; min-width: 110px;
  padding: .55rem .75rem;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  white-space: nowrap; text-align: center;
}
.consent-btn:hover { opacity: .85; }
.consent-btn:active { transform: scale(.97); }
.consent-accept {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0a00; border: none;
}
.consent-reject {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  color: var(--t2);
}
.consent-customize {
  background: rgba(124,58,237,.14);
  border: 1px solid rgba(124,58,237,.28);
  color: var(--pl);
}
/* Footer liens */
.consent-footer { font-size: 11px; color: var(--t3); text-align: center; }
.consent-link { color: var(--t3); text-decoration: none; }
.consent-link:hover { color: var(--t2); text-decoration: underline; }

/* Light */
html.light .consent-card {
  background: rgba(255,255,255,.97);
  border-color: rgba(80,60,160,.12);
  box-shadow: 0 -8px 60px rgba(80,60,160,.18), 0 0 0 1px rgba(124,58,237,.07);
}
html.light .consent-details {
  background: rgba(80,60,160,.04);
  border-color: rgba(80,60,160,.1);
}
html.light .consent-slider {
  background: rgba(80,60,160,.15);
  border-color: rgba(80,60,160,.2);
}
html.light .consent-reject {
  background: rgba(80,60,160,.07);
  border-color: rgba(80,60,160,.14);
}

@media (max-width: 540px) {
  .consent-banner { padding: .75rem .75rem 0; }
  .consent-card { padding: 1.1rem 1rem 1.35rem; border-radius: 18px 18px 0 0; }
  .consent-btn { min-width: 0; font-size: 12px; }
}
