/* =====================================================================
   Cashevent.tv — Thème Netflix
   ===================================================================== */
/* Sélecteur de formules (multi-plans) */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.plan-opt { position: relative; border: 2px solid rgba(255,255,255,.12); border-radius: 12px; padding: 18px; cursor: pointer; transition: all .2s; background: rgba(255,255,255,.02); }
.plan-opt:hover { border-color: rgba(168,139,250,.5); }
.plan-opt.selected { border-color: #8b5cf6; background: rgba(139,92,246,.1); }
.plan-opt .plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-opt .plan-price { font-size: 1.6rem; font-weight: 800; margin-top: 6px; }
.plan-opt .plan-price small { font-size: .8rem; font-weight: 400; opacity: .7; }
.plan-badge { position: absolute; top: -10px; right: 12px; background: linear-gradient(135deg,#a78bfa,#6d28d9); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 20px; }

:root {
  /* Palette MAUVE / VIOLET (l'ancien "--red" pointe désormais vers le violet
     pour recolorer automatiquement boutons, badges, marque, etc.) */
  --red: #8b5cf6;
  --red-dark: #6d28d9;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-dark: #6d28d9;
  --grad: linear-gradient(135deg, #a78bfa 0%, #7c3aed 55%, #6d28d9 100%);
  --black: #141414;
  --black-2: #181818;
  --gray: #808080;
  --light: #e5e5e5;
  --card-radius: 6px;
  --nav-h: 68px;
  --max: 1500px;
}

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

html, body {
  background: var(--black);
  color: #fff;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 4px; font-size: 1rem; font-weight: 600;
  background: rgba(109,109,110,0.7); color: #fff; transition: background .15s, transform .1s;
}
.btn:hover { background: rgba(109,109,110,0.5); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: rgba(255,255,255,0.85); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.15rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Barre de navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; gap: 24px; padding: 0 4%;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 10%, transparent);
  transition: background .3s;
}
.nav.scrolled { background: var(--black); }
.brand { color: var(--red); font-weight: 800; font-size: 1.7rem; letter-spacing: -1px; white-space: nowrap; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: .95rem; color: var(--light); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn {
  background: none; color: #fff; font-size: 1.25rem; display: flex; align-items: center;
  position: relative; padding: 4px;
}
.badge {
  position: absolute; top: -4px; right: -6px; background: var(--red); color: #fff;
  font-size: .62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 4px; object-fit: cover; background: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem;
}

/* ---------- Recherche ---------- */
.search { position: relative; display: flex; align-items: center; }
.search input {
  background: rgba(0,0,0,0.75); border: 1px solid #fff; color: #fff; padding: 8px 12px 8px 36px;
  border-radius: 4px; width: 240px; outline: none;
}
.search .search-icon { position: absolute; left: 10px; color: #fff; pointer-events: none; }

/* ---------- Menus déroulants ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 300px;
  background: rgba(0,0,0,0.95); border: 1px solid #333; border-radius: 6px; overflow: hidden;
  display: none; box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 16px; background: none; color: var(--light); font-size: .9rem; border-bottom: 1px solid #222;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: #222; color: #fff; }
.notif-item { display: block !important; }
.notif-item .t { font-weight: 600; color: #fff; }
.notif-item .b { font-size: .8rem; color: var(--gray); }
.menu-head { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #333; }

/* ---------- Hero / bannière ---------- */
.hero {
  position: relative; height: 80vh; min-height: 560px; display: flex; align-items: center;
  padding: 0 4%; background-size: cover; background-position: center top;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(77deg, rgba(0,0,0,0.85), transparent 60%),
              linear-gradient(0deg, var(--black), transparent 30%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 18px; line-height: 1.05; }
.hero p { font-size: 1.3rem; margin-bottom: 24px; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.hero-actions { display: flex; gap: 14px; }

/* ---------- Rangées de cartes (Netflix rows) ---------- */
.rows { padding: 0 4% 60px; margin-top: -80px; position: relative; z-index: 5; }
.row { margin-bottom: 38px; }
.row h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5*12px)/6);
  gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.row-track::-webkit-scrollbar { height: 8px; }
.row-track::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* ---------- Carte replay 16:9 ---------- */
.card {
  position: relative; border-radius: var(--card-radius); overflow: hidden; background: var(--black-2);
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease;
}
.card-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,0.7); z-index: 10; }
.card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); opacity: 0; transition: opacity .2s; font-size: 2.6rem;
}
.card:hover .card-play { opacity: 1; }
.card-info { padding: 10px 12px; }
.card-info .title { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info .meta { font-size: .75rem; color: var(--gray); margin-top: 3px; }
.card-badge {
  position: absolute; top: 8px; left: 8px; background: var(--red); font-size: .62rem;
  font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
}

/* Grille (résultats de recherche / catégorie) */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
  padding: 0 4% 60px;
}

/* ---------- Mur d'affiches réutilisable (fond façon Netflix) ---------- */
.poster-wall {
  position: absolute; inset: -10% -6%; z-index: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr);
  gap: 12px; transform: rotate(-2deg) scale(1.12);
}
.pw-cell { border-radius: 8px; overflow: hidden; background: #1f1f24; box-shadow: 0 10px 26px rgba(0,0,0,0.55); }
.pw-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bg-veil::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.35) 100%); }
.bg-veil::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 50%, #000 100%); }
@media (max-width: 720px) { .poster-wall { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(8, 1fr); } }

/* ---------- Pages d'authentification ---------- */
.auth-page {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  overflow: hidden; background: linear-gradient(180deg, #1a0a0d, #000);
}
.auth-page > * { position: relative; z-index: 2; }
.auth-page > .poster-wall, .auth-page > .bg-veil { position: absolute; }
.auth-card {
  background: rgba(0,0,0,0.78); max-width: 460px; margin: 70px auto 60px; padding: 48px 60px;
  border-radius: 10px; width: 90%; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.auth-card h1 { font-size: 2rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--gray); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: #333; border: 0; border-radius: 4px;
  color: #fff; font-size: 1rem; outline: none; border-bottom: 2px solid transparent;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: #e87c03; background: #454545; }
.auth-card .btn { margin-top: 10px; }
.auth-foot { margin-top: 22px; color: var(--gray); font-size: .95rem; }
.auth-foot a { color: #fff; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: #e87c03; color: #000; }
.alert-success { background: #2e7d32; }
.alert-info { background: #1c3a5e; }

/* ---------- Sections génériques ---------- */
.section { padding: 100px 4% 60px; max-width: var(--max); margin: 0 auto; }
.page-title { font-size: 2rem; margin-bottom: 24px; }
.muted { color: var(--gray); }
.center { text-align: center; }
.spacer { height: 24px; }

/* ---------- Abonnement / plans ---------- */
.plan-card {
  max-width: 760px; margin: 0 auto; background: var(--black-2); border-radius: 10px; padding: 36px;
  border: 1px solid #2a2a2a;
}
.price { font-size: 2.6rem; font-weight: 800; color: #fff; }
.price small { font-size: 1rem; color: var(--gray); font-weight: 400; }
.pay-methods { display: grid; gap: 14px; margin: 24px 0; }
.pay-method {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px solid #333;
  border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s;
}
.pay-method:hover { border-color: #555; }
.pay-method.selected { border-color: var(--red); background: rgba(229,9,20,0.08); }
.pay-method input { accent-color: var(--red); width: 18px; height: 18px; }
.pay-method .pm-title { font-weight: 600; }
.pay-method .pm-desc { font-size: .82rem; color: var(--gray); }
.bank-box { background: #0d0d0d; border: 1px dashed #444; border-radius: 8px; padding: 18px; margin-top: 16px; }
.bank-box .row-kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #1f1f1f; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.panel { background: var(--black-2); border: 1px solid #262626; border-radius: 10px; padding: 24px; }
.panel h3 { margin-bottom: 16px; font-size: 1.2rem; }
.avatar-lg {
  width: 120px; height: 120px; border-radius: 10px; object-fit: cover; background: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; margin: 0 auto 16px;
}
.badge-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-active { background: #1b5e20; color: #fff; }
.badge-pending { background: #e87c03; color: #000; }
.badge-cancelled, .badge-expired { background: #444; color: #fff; }

/* ---------- Modale lecteur vidéo ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-box { width: min(960px, 95vw); background: var(--black-2); border-radius: 10px; overflow: hidden; }
.modal-video { aspect-ratio: 16/9; background: #000; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-body { padding: 22px 26px; }
.modal-body h2 { margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 20px; right: 26px; background: #181818; color: #fff; width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.2rem; z-index: 10;
}

/* ---------- Tableaux (admin) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #262626; white-space: nowrap; }
th { color: var(--gray); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .5px; }
tr:hover td { background: #1a1a1a; }

/* ---------- Stat cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat { background: var(--black-2); border: 1px solid #262626; border-radius: 10px; padding: 22px; }
.stat .n { font-size: 2.1rem; font-weight: 800; }
.stat .l { color: var(--gray); font-size: .85rem; margin-top: 4px; }
.stat.red { border-color: var(--red); }

/* ---------- Admin layout ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #0a0a0a; border-right: 1px solid #1f1f1f; padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 24px 24px; display: block; }
.sidebar a {
  display: flex; align-items: center; gap: 12px; padding: 13px 24px; color: var(--gray); font-size: .95rem;
  border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active { color: #fff; background: #161616; border-left-color: var(--red); }
.admin-main { padding: 30px 36px; overflow-x: hidden; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { padding: 9px 12px; background: #222; border: 1px solid #333; color: #fff; border-radius: 4px; }

/* ---------- Modale formulaire ---------- */
.form-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 50px 20px; overflow-y: auto; }
.form-modal.open { display: flex; }
.form-modal .panel { width: min(560px, 95vw); }

/* ---------- Footer ---------- */
.footer { padding: 40px 4%; color: var(--gray); font-size: .85rem; border-top: 1px solid #222; max-width: var(--max); margin: 0 auto; }
.footer a { color: var(--gray); }

/* ---------- Chargement ---------- */
.loader { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--gray); }
.spinner { width: 40px; height: 40px; border: 4px solid #333; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .row-track { grid-auto-columns: calc((100% - 3*12px)/4); } }
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; }
  .sidebar a { border-left: 0; border-bottom: 3px solid transparent; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .search input { width: 150px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
  .row-track { grid-auto-columns: calc((100% - 2*12px)/2.4); }
  .auth-card { padding: 36px 28px; }
}
@media (max-width: 480px) {
  .row-track { grid-auto-columns: 75%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
}

/* =====================================================================
   RAFFINEMENT « DASHBOARD NEXT.JS » (Vercel / shadcn)
   ===================================================================== */
:root {
  --bg: #0b0a0f; --panel: #131119; --panel-2: #1a1722;
  --border: rgba(168,139,250,.14); --border-strong: rgba(168,139,250,.4);
  --text: #ededed; --muted2: #a5a1b3; --accent: #8b5cf6; --accent-2: #6d28d9;
  --radius-lg: 14px; --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 10px 34px rgba(0,0,0,.55);
  --glow: 0 8px 30px rgba(124,58,237,.35);
  --ring: 0 0 0 1px rgba(168,139,250,.25);
  --t: cubic-bezier(.2,.8,.2,1);
}
body { background:
    radial-gradient(60% 50% at 100% 0%, rgba(124,58,237,.10), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(109,40,217,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed; color: var(--text);
  font-family: 'Inter','Helvetica Neue',Arial,sans-serif; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }

/* ---- Boutons violets animés ---- */
.btn-primary { background: var(--grad); box-shadow: var(--glow); border: 0; background-size: 180% 180%; }
.btn-primary:hover { background: var(--grad); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,.55); animation: gradShift 3s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---- Logo SVG professionnel (mark + wordmark) ---- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.logo-mark { width: 38px; height: 38px; display: block; flex: 0 0 auto;
  filter: drop-shadow(0 4px 14px rgba(124,58,237,.5)); animation: logoPulse 3.5s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { filter: drop-shadow(0 4px 14px rgba(124,58,237,.45)); }
  50% { filter: drop-shadow(0 4px 22px rgba(168,139,250,.85)); } }
.logo-text { font-weight: 800; letter-spacing: -.6px; font-size: 1.4rem; }
.logo-text span { color: var(--violet-light); }
.fade-up { animation: fadeUp .6s var(--t) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Navigation (glassy, sticky) ---- */
.nav { height: 64px; gap: 22px;
  background: rgba(10,10,10,.55); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: background .3s var(--t), border-color .3s var(--t); }
.nav.scrolled { background: rgba(10,10,10,.82); border-bottom-color: var(--border); }
.brand { letter-spacing: -1px; font-weight: 800; }
.nav-links a { font-size: .9rem; color: var(--muted2); font-weight: 500; transition: color .2s var(--t); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.search input { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px 9px 38px; width: 230px; transition: border-color .2s var(--t), background .2s var(--t), width .25s var(--t); }
.search input:focus { border-color: var(--border-strong); background: rgba(255,255,255,.09); width: 280px; }
.search .search-icon { left: 12px; opacity: .6; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; transition: background .2s var(--t); }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.badge { box-shadow: 0 0 0 2px var(--bg); }
.avatar { border-radius: 9px; box-shadow: var(--ring); }
.dropdown-menu { background: rgba(18,18,20,.96); backdrop-filter: blur(12px); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); top: calc(100% + 10px); }
.dropdown-menu a, .dropdown-menu button { border-bottom: 1px solid var(--border); transition: background .15s var(--t); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255,255,255,.06); }

/* ---- En-tête + chips ---- */
.dash { padding: 96px 4% 70px; max-width: 1500px; margin: 0 auto; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.6px; }
.dash-head p { color: var(--muted2); margin-top: 6px; font-size: .98rem; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0 30px; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--muted2);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); cursor: pointer; transition: all .2s var(--t); white-space: nowrap; }
.chip:hover { color: #fff; border-color: var(--border-strong); background: rgba(255,255,255,.08); }
.chip.active { background: #fff; color: #000; border-color: #fff; }

/* ---- Bannière à la une ---- */
.feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px;
  min-height: 420px; display: flex; align-items: flex-end; border: 1px solid var(--border);
  background-size: cover; background-position: center; box-shadow: var(--shadow-md); }
.feature::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.5) 45%, transparent 80%),
              linear-gradient(0deg, rgba(0,0,0,.85), transparent 55%); }
.feature-body { position: relative; z-index: 2; padding: 40px; max-width: 620px; }
.feature .tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.feature h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1.05; margin-bottom: 12px; }
.feature p { color: #d4d4d8; font-size: 1.02rem; line-height: 1.5; margin-bottom: 20px; max-width: 520px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-actions { display: flex; gap: 12px; }

/* ---- Rangées ---- */
.row { margin-bottom: 38px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.row-head h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.3px; }
.row-head .see { font-size: .82rem; color: var(--muted2); opacity: 0; transition: opacity .25s var(--t); }
.row:hover .row-head .see { opacity: 1; }
.row-scroller { position: relative; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4*16px)/5); gap: 16px;
  overflow-x: auto; padding: 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.scroll-btn { position: absolute; top: 0; bottom: 12px; width: 46px; z-index: 6; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(90deg, rgba(10,10,10,.92), transparent); font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s var(--t); }
.scroll-btn.right { right: 0; transform: scaleX(-1); }
.scroll-btn.left { left: 0; }
.row-scroller:hover .scroll-btn { opacity: 1; }

/* ---- Carte vidéo style Netflix : 500x200, infos en superposition ---- */
.card {
  position: relative; width: 100%; max-width: 500px; height: 200px; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #000; border: 1px solid var(--border);
  transition: transform .3s var(--t), box-shadow .3s var(--t), border-color .3s var(--t);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.card:hover { transform: scale(1.05); z-index: 6; border-color: var(--violet); box-shadow: var(--glow); }
.card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--t); }
.card:hover .card-cover { transform: scale(1.08); }
/* Voile dégradé permanent + renforcé au survol */
.card-overlay { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.05) 75%);
  transition: background .3s var(--t); }
.card:hover .card-overlay { background: linear-gradient(0deg, rgba(20,7,40,.94) 0%, rgba(76,29,149,.45) 50%, rgba(0,0,0,.15) 100%); }
.card-overlay .title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.3px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.card-overlay .meta { font-size: .78rem; color: #d8d4e8; margin-top: 6px; display: flex; align-items: center;
  gap: 7px; opacity: .9; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; opacity: .7; }
/* Badge "à la une" en haut à gauche */
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--grad);
  color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; box-shadow: 0 4px 12px rgba(124,58,237,.5); }
/* Bouton Play central (apparaît au survol) */
.card-playbtn { position: absolute; top: 50%; left: 50%; z-index: 4;
  width: 58px; height: 58px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.85);
  transform: translate(-50%, -50%) scale(.5); opacity: 0; box-shadow: 0 8px 28px rgba(124,58,237,.7);
  transition: transform .3s var(--t), opacity .3s var(--t); }
.card:hover .card-playbtn { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.card-playbtn:hover { background: #fff; color: var(--violet-dark); }

/* ---- Grilles ---- */
.grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; padding: 0; }
.grid .card { max-width: none; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; justify-items: stretch; }
.cat-grid .card { max-width: none; }
@media (max-width: 560px){ .card { height: 180px; } }

/* ---- Squelettes de chargement ---- */
.skeleton { background: linear-gradient(100deg, #161618 30%, #242428 50%, #161618 70%); background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear; border-radius: var(--radius-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-card { aspect-ratio: 16/9; }

/* ---- Modale premium animée ---- */
.modal {
  display: flex; visibility: hidden; opacity: 0; pointer-events: none;
  background: rgba(8,5,16,.72); backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: opacity .35s var(--t), visibility .35s var(--t);
}
.modal.open { visibility: visible; opacity: 1; pointer-events: auto; }
.modal-box {
  border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.75), 0 0 0 1px rgba(168,139,250,.15), 0 0 60px rgba(124,58,237,.25);
  transform: translateY(30px) scale(.94); opacity: 0;
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .42s var(--t);
  background: var(--panel);
}
.modal.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  background: rgba(20,15,30,.85); border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
  width: 44px; height: 44px; transition: transform .2s var(--t), background .2s var(--t); }
.modal-close:hover { background: var(--violet); transform: rotate(90deg) scale(1.05); }
.modal-body h2 { font-weight: 800; letter-spacing: -.4px; }
.footer { border-top: 1px solid var(--border); color: var(--muted2); }

/* ---- Pages légales / contenu ---- */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 110px 5% 90px; }
.legal-wrap h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.legal-wrap .updated { color: var(--muted2); font-size: .9rem; margin-bottom: 36px; }
.legal-wrap h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; color: #fff; }
.legal-wrap p, .legal-wrap li { color: #c8c4d6; line-height: 1.7; font-size: 1.02rem; }
.legal-wrap ul { padding-left: 22px; margin: 10px 0; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: var(--violet-light); text-decoration: underline; }
.legal-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px 34px; margin-top: 18px; }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center;
  gap: 16px; padding: 18px 5%; background: rgba(11,10,15,.7); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); }
.topbar .btn { margin-left: auto; }

/* Interrupteur "Activer" dans la config paiements */
.switch-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted2); cursor: pointer; }
.switch-lbl input { width: 16px; height: 16px; accent-color: var(--violet); }
.admin-main .field input, .admin-main .field select, .admin-main .field textarea {
  width: 100%; padding: 11px 13px; background: #14121c; border: 1px solid var(--border);
  border-radius: 8px; color: #fff; font-size: .95rem; outline: none; transition: border-color .2s; }
.admin-main .field input:focus, .admin-main .field select:focus { border-color: var(--violet); }
.admin-main .field label { display: block; font-size: .8rem; color: var(--muted2); margin-bottom: 6px; }
.admin-main .field { margin-bottom: 14px; }

@media (max-width: 1100px){ .row-track { grid-auto-columns: calc((100% - 3*16px)/4); } }
@media (max-width: 760px){ .row-track { grid-auto-columns: calc((100% - 1.4*16px)/2.4); } .feature h2 { font-size: 1.6rem; } .feature { min-height: 320px; } }
@media (max-width: 480px){ .row-track { grid-auto-columns: 78%; } }

/* =====================================================================
   POLISH TYPOGRAPHIQUE PREMIUM (niveau Stripe / Linear)
   ===================================================================== */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1, 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.011em;
}
h1, h2, h3, h4, .brand, .logo-text { letter-spacing: -0.022em; }
h1 { line-height: 1.1; }
p, li, .card-overlay .meta, .muted { letter-spacing: -0.006em; }

/* Chiffres alignés (tableaux de bord, stats, prix, montants) */
.stat .n, .price, table td, .row-kv b, .feature .tag, .badge,
.card-overlay .meta, .dash-head p { font-variant-numeric: tabular-nums; }

/* Boutons plus raffinés (poids et tracking nets) */
.btn { font-weight: 600; letter-spacing: -0.01em; border-radius: 9px; }
.btn-sm { border-radius: 8px; }
.btn-lg { border-radius: 11px; }

/* Champs de formulaire : focus net façon SaaS (anneau violet doux) */
.field input, .field select, .field textarea,
.toolbar input, .toolbar select, .search input {
  border-radius: 9px; transition: border-color .18s var(--t), box-shadow .18s var(--t), background .18s var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--violet) !important; box-shadow: 0 0 0 3px rgba(139,92,246,.18) !important;
  background: #1a1722 !important;
}

/* Accessibilité : anneau de focus clavier cohérent */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--violet-light); outline-offset: 2px;
}

/* Scrollbar discrète façon application moderne */
* { scrollbar-width: thin; scrollbar-color: #3a3450 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #2c2740; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #3a3450; background-clip: padding-box; }

/* Sélection de texte aux couleurs de la marque */
::selection { background: rgba(139,92,246,.35); color: #fff; }

/* Panneaux et cartes : ombres plus douces et profondes (premium) */
.panel, .stat, .legal-card { box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 12px 30px -12px rgba(0,0,0,.55); }
.dash-head h1 { font-size: 2rem; }

/* Cœur favori sur les cartes */
.card-fav { position: absolute; top: 12px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,8,16,.6); backdrop-filter: blur(4px); color: #fff; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .2s var(--t); }
.card:hover .card-fav, .card-fav.on { opacity: 1; }
.card-fav.on { color: #ff5fa2; border-color: #ff5fa2; }
.card-fav:hover { transform: scale(1.1); background: rgba(124,58,237,.7); }
/* Barre de progression "continuer à regarder" */
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 3; }
.card-progress span { display: block; height: 100%; background: var(--grad); }
/* Barre de recherche avancée */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.searchbar input[type=text], .searchbar #sQ { flex: 1 1 240px; }
.searchbar input, .searchbar select { padding: 11px 13px; background: #14121c; border: 1px solid var(--border); border-radius: 9px; color: #fff; outline: none; }
.searchbar input:focus, .searchbar select:focus { border-color: var(--violet); }
.searchbar .sdate { display: inline-flex; align-items: center; gap: 6px; color: var(--muted2); font-size: .85rem; }
.searchbar .sdate input { color-scheme: dark; }

/* ===================== THÈME CLAIR ===================== */
html[data-theme="light"] {
  --bg: #f6f5fb; --panel: #ffffff; --panel-2: #f0eef8;
  --border: rgba(20,10,40,.10); --border-strong: rgba(109,40,217,.35);
  --text: #1a1626; --muted2: #5b5670; --gray: #6b6580; --light: #2a2440;
  --black: #ffffff; --black-2: #ffffff;
}
html[data-theme="light"] body { color: var(--text);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(124,58,237,.10), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(168,139,250,.12), transparent 60%),
    var(--bg); }
html[data-theme="light"] .nav { background: rgba(255,255,255,.7); border-bottom-color: var(--border); }
html[data-theme="light"] .nav.scrolled { background: rgba(255,255,255,.92); }
html[data-theme="light"] .nav-links a { color: #4a4560; }
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active { color: #111; }
html[data-theme="light"] .search input { background: #f0eef8; color: #1a1626; }
html[data-theme="light"] .icon-btn { color: #2a2440; }
html[data-theme="light"] .icon-btn:hover { background: rgba(109,40,217,.08); }
html[data-theme="light"] .dropdown-menu { background: #fff; box-shadow: 0 12px 40px rgba(60,40,120,.18); }
html[data-theme="light"] .dropdown-menu a, html[data-theme="light"] .dropdown-menu button { color: #2a2440; }
html[data-theme="light"] .dropdown-menu a:hover, html[data-theme="light"] .dropdown-menu button:hover { background: #f3f0fb; }
html[data-theme="light"] .panel, html[data-theme="light"] .stat, html[data-theme="light"] .legal-card,
html[data-theme="light"] .feature { background: #fff; border-color: var(--border); box-shadow: 0 8px 26px -14px rgba(60,40,120,.35); }
html[data-theme="light"] .card { background: #fff; }
html[data-theme="light"] .chip { background: #fff; color: #5b5670; }
html[data-theme="light"] .chip.active { background: #6d28d9; color: #fff; border-color: #6d28d9; }
html[data-theme="light"] th { color: #6b6580; }
html[data-theme="light"] tr:hover td { background: #f6f4fd; }
html[data-theme="light"] .sidebar { background: #fff; border-right-color: var(--border); }
html[data-theme="light"] .sidebar a { color: #5b5670; }
html[data-theme="light"] .sidebar a:hover, html[data-theme="light"] .sidebar a.active { color: #111; background: #f3f0fb; }
html[data-theme="light"] .field input, html[data-theme="light"] .admin-main .field input,
html[data-theme="light"] .searchbar input, html[data-theme="light"] .searchbar select,
html[data-theme="light"] .toolbar input, html[data-theme="light"] .toolbar select { background: #f4f2fc; color: #1a1626; }
html[data-theme="light"] .modal { background: rgba(40,30,70,.45); }
html[data-theme="light"] .modal-box { background: #fff; }

/* =====================================================================
   ESPACE UTILISATEUR v2 — sidebar + posters (style inspiré de l'image)
   ===================================================================== */
.app-shell { min-height: 100vh; }
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 76px; z-index: 60;
  background: rgba(13,11,20,.92); backdrop-filter: blur(10px); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 4px;
}
.app-sidebar .logo-mark { width: 34px; height: 34px; margin-bottom: 16px; }
.side-btn { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--muted2); font-size: 1.12rem; background: none; position: relative; transition: color .2s, background .2s; }
.side-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-btn.active { color: #fff; }
.side-btn.active::after { content: ''; position: absolute; left: -18px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 4px 4px 0; background: var(--grad); }
.side-sep { flex: 1; }
.side-avatar { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #fff; box-shadow: var(--ring); }
.app-sidebar .dropdown-menu { left: calc(100% + 12px); right: auto; top: auto; bottom: 0; width: 300px; }

.app-content { margin-left: 76px; padding: 30px 44px 70px; max-width: 1500px; }
.content-top { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.content-top .greet { font-size: .92rem; color: var(--muted2); }
.content-top .greet b { color: #fff; font-weight: 700; }
.top-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.top-search input { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 11px;
  padding: 10px 14px 10px 38px; width: 240px; color: #fff; outline: none; transition: width .25s, border-color .2s; }
.top-search input:focus { border-color: var(--violet); width: 300px; }
.top-search .i { position: absolute; left: 13px; color: var(--muted2); }

.mood-h { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.moods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.mood { padding: 9px 18px; border-radius: 999px; font-size: .86rem; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--muted2); border: 1px solid var(--border); transition: all .2s; white-space: nowrap; }
.mood:hover { color: #fff; border-color: var(--border-strong); }
.mood.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }

.sec { margin-bottom: 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.3px; }
.sec-head .more { font-size: .82rem; color: var(--muted2); cursor: pointer; }
.poster-row { display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: 20px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.poster-row::-webkit-scrollbar { display: none; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }

.poster { position: relative; aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: #17141f; border: 1px solid var(--border); scroll-snap-align: start;
  transition: transform .3s var(--t), box-shadow .3s var(--t), border-color .3s var(--t); }
.poster:hover { transform: translateY(-7px) scale(1.03); box-shadow: var(--glow); border-color: var(--violet); z-index: 4; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--t); }
.poster:hover img { transform: scale(1.07); }
.poster .p-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,5,16,.92) 0%, rgba(8,5,16,.25) 42%, transparent 70%); }
.poster .p-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }
.poster .p-title { font-weight: 700; font-size: .92rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.8);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster .p-meta { font-size: .72rem; color: #c9c4dd; margin-top: 5px; opacity: .9; }
.poster .p-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.5); opacity: 0;
  width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(124,58,237,.7);
  transition: transform .3s var(--t), opacity .3s var(--t); }
.poster:hover .p-play { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.poster .p-fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(10,8,16,.55); backdrop-filter: blur(4px); color: #fff; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: .82rem; opacity: 0; transition: all .2s; z-index: 3; }
.poster:hover .p-fav, .poster .p-fav.on { opacity: 1; }
.poster .p-fav.on { color: #ff5fa2; border-color: #ff5fa2; }
.poster .p-rank { position: absolute; top: 10px; left: 12px; font-size: 1.4rem; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.9); z-index: 3; }
.poster .p-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); z-index: 3; }
.poster .p-progress span { display: block; height: 100%; background: var(--grad); }

@media (max-width: 680px) {
  .app-sidebar { width: 60px; }
  .app-content { margin-left: 60px; padding: 22px 18px 60px; }
  .top-search input { width: 150px; }
  .poster-row { grid-auto-columns: 140px; }
}

/* Thème clair : sidebar + posters */
html[data-theme="light"] .app-sidebar { background: rgba(255,255,255,.85); border-right-color: var(--border); }
html[data-theme="light"] .side-btn { color: #5b5670; }
html[data-theme="light"] .side-btn:hover, html[data-theme="light"] .side-btn.active { color: #111; background: #f3f0fb; }
html[data-theme="light"] .poster { background: #efecf7; border-color: var(--border); }
html[data-theme="light"] .top-search input { background: #f0eef8; color: #1a1626; }

/* =====================================================================
   UX Netflix : hero dashboard, aperçu survol, profils
   ===================================================================== */
/* Bannière à la une (dashboard) */
.dash-hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 360px; margin-bottom: 38px;
  display: flex; align-items: flex-end; background-size: cover; background-position: center; border: 1px solid var(--border); }
.dash-hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,5,16,.92), rgba(8,5,16,.45) 50%, transparent 85%), linear-gradient(0deg, rgba(8,5,16,.9), transparent 60%); }
.dash-hero .dh-body { position: relative; z-index: 2; padding: 40px; max-width: 580px; }
.dash-hero .dh-tag { display: inline-flex; gap: 6px; align-items: center; color: var(--violet-light); font-weight: 700; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.dash-hero h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -1px; line-height: 1.05; margin-bottom: 12px; }
.dash-hero p { color: #d4cfe6; line-height: 1.5; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-hero .dh-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Aperçu (lecture auto en sourdine) au survol */
.poster .p-preview { position: absolute; inset: 0; z-index: 2; border: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.poster .p-preview.show { opacity: 1; }

/* Écran "Qui regarde ?" */
.who-screen { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 30px; }
.who-screen h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 36px; }
.who-grid { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.who-item { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; width: 130px; }
.who-av { width: 120px; height: 120px; border-radius: 16px; background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-size: 3.2rem; border: 3px solid transparent; transition: border-color .2s, transform .2s; }
.who-item:hover .who-av { border-color: #fff; transform: scale(1.05); }
.who-item.add .who-av { background: rgba(255,255,255,.06); border: 2px dashed var(--border-strong); color: var(--muted2); }
.who-item .who-name { color: var(--muted2); font-weight: 600; }
.who-item:hover .who-name { color: #fff; }

/* Gestion des profils (page profil) */
.prof-list { display: flex; gap: 16px; flex-wrap: wrap; }
.prof-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.prof-chip .pa { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* Modale de rétention (résiliation) */
.retain-opt { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.retain-opt:hover { border-color: var(--violet); background: rgba(139,92,246,.08); }
.retain-opt .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(139,92,246,.15); color: var(--violet-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: 0 0 auto; }
.retain-opt .t { font-weight: 600; }
.retain-opt .d { font-size: .82rem; color: var(--muted2); margin-top: 2px; }

/* =====================================================================
   UX formulaires sécurisés (mot de passe, force, stepper)
   ===================================================================== */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: var(--gray); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
html[data-theme="light"] .pw-toggle:hover { color: #111; background: rgba(0,0,0,.06); }
.caps-warn { font-size: .78rem; color: #f0a020; margin-top: 6px; display: none; }
.caps-warn.show { display: block; }
.pw-meter { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.pw-hint { font-size: .76rem; color: var(--gray); margin-top: 6px; }
.pw-s0 span { width: 25%; background: #ff5f5f; }
.pw-s1 span { width: 50%; background: #f0a020; }
.pw-s2 span { width: 75%; background: #e8c000; }
.pw-s3 span { width: 100%; background: #46d369; }

/* Stepper (tunnel d'abonnement) */
.stepper { display: flex; align-items: center; gap: 8px; margin: 0 0 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; color: var(--muted2); font-size: .9rem; font-weight: 600; }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--border); font-size: .82rem; }
.step.done .num, .step.active .num { background: var(--grad); color: #fff; border-color: transparent; }
.step.active { color: #fff; }
.step-line { flex: 1; min-width: 20px; height: 2px; background: var(--border); border-radius: 2px; }
.step.done + .step-line { background: var(--violet); }
