/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg: #09000d;
  --bg2: #110015;
  --bg3: #1a001f;
  --border: #30003a;
  --text: #f5f0ff;
  --text-muted: #9880aa;
  --accent: #e91e8c;
  --accent-hover: #d01780;
  --success: #e91e8c;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, sans-serif;
  --font-title: 'Bebas Neue', cursive;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 77%; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: none;
  display: flex; align-items: center; gap: 24px;
  padding: 0 15px; height: 80px;
}
.navbar-brand { flex-shrink: 0; display: flex; align-items: center; }
.navbar-brand img { height: 200px; width: auto; display: block; object-fit: contain; margin-top: 30px;}
.navbar-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: #fff; font-size: 0.9rem; padding: 6px 12px;
  border-radius: 0; transition: color .2s;
  white-space: nowrap; position: relative;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.nav-link-free { color: var(--success) !important; }
.nav-link-free:hover { color: var(--success) !important; }
.admin-link { color: var(--accent) !important; }
.nav-search { width: 320px; position: relative; margin-left: auto; flex-shrink: 0; }
.nav-search input {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid #e91e8c;
  color: #fff; padding: 9px 42px 9px 16px; border-radius: 8px; font-size: 0.87rem;
  font-family: inherit; transition: border-color .2s, background .2s;
}
.nav-search input::placeholder { color:#fff; }
.nav-search input:focus { outline: none; border-color: #e91e8c; background: rgba(255,255,255,0.1); }
.nav-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 0.95rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.mobile-menu-actions { display: none; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; border: none;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); background: var(--bg3); }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; justify-content: center; }
.btn-google:hover { background: #f5f5f5; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-large { padding: 13px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }

/* ── Flash messages ────────────────────────────────────── */
.flash {
  padding: 12px 20px; text-align: center; font-weight: 500;
  position: sticky; top: 65px; z-index: 99;
}
.flash-error { background: #c0392b22; color: #e74c3c; border-bottom: 1px solid #c0392b44; }
.flash-success { background: #27ae6022; color: #2ecc71; border-bottom: 1px solid #27ae6044; }
.flash-info { background: #2980b922; color: #3498db; border-bottom: 1px solid #2980b944; }

/* ── Hero (legacy) ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 500px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #1a0030 0%, #09000d 60%);
  overflow: hidden;
  padding: 80px 30px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.hero-content { position: relative; max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-family: var(--font-title); font-weight: 400; line-height: 1.05; margin-bottom: 16px; letter-spacing: 1px; }
.accent { color: var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero V2 ───────────────────────────────────────────── */
.hero-v2 {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background: #09000d;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-v2-bg-text {
  position: absolute;
  font-family: var(--font-title);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #200028;
  right: -3vw; bottom: -2rem;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero-v2-bg-text span { -webkit-text-stroke: 1px #3a0808; }
.hero-v2-inner {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
}
.hero-v2-tag {
  font-size: 0.72rem; letter-spacing: 4px; color: var(--accent);
  font-weight: 600; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-v2-tag::after {
  content: '';
  display: inline-block; width: 40px; height: 1px; background: var(--accent);
}
.hero-v2-title {
  font-family: var(--font-title);
  font-size: clamp(3.8rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-v2-accent { color: var(--accent); }
.hero-v2-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-v2-sub strong { color: var(--text); }
.hero-v2-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-v2-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Why Section ───────────────────────────────────────── */
.section-why { padding: 80px 0; border-bottom: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.why-item {
  padding: 40px;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: var(--bg2); }
.why-num {
  font-family: var(--font-title);
  font-size: 3rem; color: var(--accent); opacity: 0.5;
  display: block; margin-bottom: 14px; line-height: 1;
}
.why-bar {
  width: 32px; height: 2px; background: var(--accent);
  margin-bottom: 18px;
}
.why-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.why-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Recent V2 ─────────────────────────────────────────── */
.section-recent-v2 { padding: 70px 0 60px; }
.section-recent-header {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-recent-label {
  font-size: 0.7rem; letter-spacing: 3px; color: var(--accent);
  font-weight: 600;
  background: #e91e8c15; border: 1px solid #e91e8c40;
  padding: 4px 10px; border-radius: 4px;
}
.section-recent-title {
  font-family: var(--font-title); font-size: 2rem; font-weight: 400;
  letter-spacing: 1px; flex: 1;
}
.section-recent-link {
  color: var(--text-muted); font-size: 0.9rem;
  transition: color .2s;
  white-space: nowrap;
}
.section-recent-link:hover { color: var(--accent); }

/* ── CTA Band ──────────────────────────────────────────── */
.section-cta-band {
  background: linear-gradient(135deg, #1c0034 0%, #09000d 100%);
  border-top: 1px solid #5a008a;
  padding: 60px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band-title {
  font-family: var(--font-title); font-size: 2.4rem; font-weight: 400;
  letter-spacing: 1px; margin-bottom: 6px;
}
.cta-band-sub { color: var(--text-muted); font-size: 0.9rem; }

/* ── Hero Cinéma ───────────────────────────────────────── */
.hero-cinema {
  position: relative;
  width: 100%;
  background: #09000d;
  overflow: hidden;
}
.hero-cinema-img {
  width: 100%; height: auto;
  display: block;
  margin-top: 50px;
}
.hero-cinema-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 40%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%);
  pointer-events: none;
}
.hero-cinema-actions-bar {
  position: absolute;
  bottom: 0%; left: 9.5%;
  z-index: 2;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.btn-pink { background: #e91e8c; color: #fff; }
.btn-pink:hover { background: #d01780; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── Home sections ─────────────────────────────────────── */
.home-sections { padding: 0; }
.section-scroll { padding: 36px 28px 10px; }
.section-with-sidebar { display: flex; gap: 24px; align-items: flex-start; }
.section-main { flex: 1; min-width: 0; }
.section-sidebar { flex-shrink: 0; width: 650px; padding-top: 0px; }
.sub-card-img { width: 100%; border-radius: 12px; transition: transform .2s; }
.sub-card-img:hover { transform: scale(1.02); }
.top5-header { text-align: center; margin-bottom: 10px; }
.top5-img { height: 100px; width: auto; display: inline-block; }
.section-header-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.section-header-row h2 { font-family: var(--font-title); font-size: 1.5rem; font-weight: 400; letter-spacing: 1px; }
.section-see-all { color: var(--text-muted); font-size: 0.85rem; transition: color .2s; }
.section-see-all:hover { color: var(--text); }
.scroll-row {
  display: flex; gap: 14px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 8px;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row, .trends-row { cursor: grab; user-select: none; }
.scroll-row.dragging, .trends-row.dragging { cursor: grabbing; }

/* ── Flèches de navigation ──────────────────────── */
.scroll-wrapper { position: relative; }
.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(9,0,13,0.8); border: 1px solid var(--border);
  color: #fff; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: background .2s, border-color .2s;
}
.scroll-arrow:hover { background: var(--accent); border-color: var(--accent); }
.scroll-arrow-left { left: -8px; }
.scroll-arrow-right { right: -8px; }
@media (max-width: 768px) {
  .scroll-arrow { display: none; }
}
.scroll-row .spectacle-card { width: 155px; flex-shrink: 0; }

/* ── Comedian cards ────────────────────────────────────── */
.comedian-card {
  flex-shrink: 0; width: 170px; text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.comedian-photo {
  width: 170px; height: 190px; border-radius: 14px;
  object-fit: cover; display: block;
  border: 2px solid var(--border);
  background: var(--bg3);
  transition: border-color .2s, box-shadow .2s;
}
.comedian-card:hover .comedian-photo { border-color: var(--accent); box-shadow: 0 8px 24px rgba(233,30,140,0.3); }
.comedian-name { display: none; }

/* ── Subscription band ─────────────────────────────────── */
.subscription-band {
  background: linear-gradient(135deg, #1c0034 0%, #0a000f 60%);
  border-top: 1px solid rgba(233,30,140,0.2);
  border-bottom: 1px solid rgba(233,30,140,0.2);
  padding: 50px 5%;
  margin-top: 30px;
}
.sub-band-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.sub-band-price-block { text-align: center; flex-shrink: 0; }
.sub-band-price {
  font-family: var(--font-title); font-size: 4rem; color: #f0c040; line-height: 1;
}
.sub-band-price span { font-family: var(--font); font-size: 1.2rem; color: rgba(255,255,255,0.5); }
.sub-band-badge {
  font-size: 0.7rem; letter-spacing: 2px; color: #e91e8c;
  font-weight: 700; margin-top: 4px;
}
.sub-band-features { list-style: none; display: grid; gap: 8px; }
.sub-band-features li { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.btn-yellow { background: #f0c040; color: #111; font-weight: 700; }
.btn-yellow:hover { background: #e0b030; transform: translateY(-1px); }

/* ── Features bar ──────────────────────────────────────── */
.features-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 5%;
}
.features-bar-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; gap: 0;
}
.feature-bar-item {
  flex: 1; display: flex; align-items: center; gap: 18px;
  padding: 0 40px; border-right: 1px solid var(--border);
}
.feature-bar-item:first-child { padding-left: 0; }
.feature-bar-item:last-child { border-right: none; }
.feature-bar-icon { font-size: 2rem; flex-shrink: 0; }
.feature-bar-text h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.feature-bar-text p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── Features (legacy, autres pages) ──────────────────── */
.section-features { padding: 70px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Sections ──────────────────────────────────────────── */
.section-recent { padding: 40px 20px 70px; }
.section-title { font-size: 2rem; font-family: var(--font-title); font-weight: 400; letter-spacing: 1px; margin-bottom: 28px; }
.section-cta { text-align: center; margin-top: 36px; }

/* ── Spectacle Grid ────────────────────────────────────── */
.spectacles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.spectacle-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: block;
}
.spectacle-card:hover { box-shadow: 0 16px 40px rgba(230,48,48,.2); border-color: var(--accent); }
.card-thumb { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--bg3); border-radius: inherit; isolation: isolate; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spectacle-card:hover .card-thumb img { transform: scale(1.08); }

.card-trailer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .4s; z-index: 1;
}
.spectacle-card:hover .card-trailer { opacity: 1; }

.card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; opacity: 0; transition: opacity .3s;
}
.spectacle-card:hover .card-overlay { opacity: 1; }
.card-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: transparent; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--accent); padding-left: 3px;
  transition: transform .2s;
}
.spectacle-card:hover .card-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.card-overlay-comedian { color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600; letter-spacing: .03em; }

.card-free-badge {
  position: absolute; top: 10px; left: -1px; z-index: 4;
  background: var(--success); color: #fff;
  font-family: var(--font-title); font-size: 0.8rem; letter-spacing: 1px;
  padding: 3px 10px 3px 8px;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
}
.card-duration {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  background: rgba(0,0,0,0.8); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 0.75rem;
}
.card-progress-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,0.25); z-index: 3; }
.card-progress-fill { height: 100%; background: var(--accent); }
.card-info { padding: 14px; }
.card-title { font-size: 1rem; font-family: var(--font-title); font-weight: 400; letter-spacing: .5px; margin-bottom: 4px; line-height: 1.2; }
.card-comedian { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 10px; }
.card-rating { display: flex; align-items: center; gap: 3px; }
.rating-count { color: var(--text-muted); font-size: 0.8rem; margin-left: 4px; }

/* ── Tendances Top 10 ──────────────────────────────────────── */
.trends-section { padding: 0 0 48px; }
.trends-header { margin-bottom: 8px; }
.trends-row {
  padding-right: 40px;
}
.trends-header h2 { font-family: var(--font-title); font-size: 1.8rem; font-weight: 400; letter-spacing: 1px; }
.trends-row {
  display: flex; gap: 0; overflow-x: visible; padding-bottom: 8px;
  align-items: flex-end; justify-content: center; flex-wrap: nowrap;
}
.trends-row::-webkit-scrollbar { display: none; }
.trend-item { display: flex; align-items: flex-end; flex-shrink: 0; margin-right: 4px; }
.trend-item:first-child { margin-left: auto; }
.trend-item:last-child { margin-right: auto; }
.trend-number {
  font-family: var(--font-title); font-size: 7.5rem; font-weight: 400;
  line-height: 0.85;
  background: linear-gradient(180deg, #ff8fc7 0%, #e91e8c 50%, #8a0050 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  margin-right: -10px; z-index: 20; user-select: none; flex-shrink: 0;
}
.trend-item:nth-child(1) .trend-number,
.trend-item:nth-child(2) .trend-number { font-size: 8.5rem; }
.trend-card { width: 220px; flex-shrink: 0; position: relative; z-index: 1; }
.trend-card .card-info { display: none; }
.trend-card .card-duration { display: none; }

/* ── Commentaires ──────────────────────────────────────── */
.comments-section { padding: 20px 0 60px; border-top: 1px solid var(--border); margin-top: 10px; }
.comments-section h2 { font-size: 1.3rem; margin-bottom: 20px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; max-width: 600px; }
.comment-form textarea {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius); font-size: 0.92rem;
  font-family: inherit; resize: vertical; transition: border-color .2s;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .btn { align-self: flex-end; }
.comments-list { display: grid; gap: 18px; max-width: 700px; }
.comment-row { display: flex; gap: 14px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.comment-body { flex: 1; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.comment-head strong { font-size: 0.92rem; }
.comment-date { color: var(--text-muted); font-size: 0.78rem; }
.comment-body p { color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.comment-delete {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.78rem; cursor: pointer; margin-top: 4px; padding: 0;
}
.comment-delete:hover { color: #e74c3c; }

/* ── Stars ─────────────────────────────────────────────── */
.star { color: var(--border); font-size: 1rem; }
.star.filled { color: #f39c12; }

/* ── Grille humoristes ─────────────────────────────────── */
.comedians-grid { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Profil humoriste ──────────────────────────────────── */
.comedian-profile-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
}
.comedian-profile-photo {
  width: 110px; height: 130px; border-radius: 14px;
  object-fit: cover; border: 2px solid var(--border);
}
.comedian-profile-header h1 { font-size: 2rem; font-family: var(--font-title); font-weight: 400; letter-spacing: 1px; }
.comedian-profile-count { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* ── Catalogue ─────────────────────────────────────────── */
.catalogue-page { padding: 100px 0 70px; }
.catalogue-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.catalogue-header h1 { font-size: 2.2rem; font-family: var(--font-title); font-weight: 400; letter-spacing: 1px; }
.search-input {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius); width: 300px; font-size: 0.9rem;
  transition: border-color .2s;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.empty-state { color: var(--text-muted); text-align: center; padding: 60px 0; font-size: 1rem; }

/* ── Filtres catalogue ─────────────────────────────────── */
.catalogue-filters { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.catalogue-filters select {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; border-radius: var(--radius); font-size: 0.88rem;
  font-family: inherit; cursor: pointer; transition: border-color .2s;
}
.catalogue-filters select:focus { outline: none; border-color: var(--accent); }

/* ── Spectacle Page ────────────────────────────────────── */
.spectacle-page { padding: 100px 0 60px; display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.spectacle-player-wrap { position: sticky; top: 80px; }
.player-container { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-container iframe { width: 100%; height: 100%; border: none; }
.preview-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius);
}
.preview-overlay.hidden { display: none; }
.overlay-content { padding: 30px; }
.overlay-content h2 { font-size: 1.5rem; margin-bottom: 12px; }
.overlay-content p { color: var(--text-muted); margin-bottom: 20px; }
.overlay-content .btn { margin: 6px; }
.spectacle-meta { padding-top: 10px; }
.spectacle-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.comedian-name { color: var(--accent); font-weight: 600; font-size: 1rem; margin-bottom: 12px; }
.spectacle-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.meta-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.badge {
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; display: inline-block;
}
.badge-success { background: #27ae6022; color: #2ecc71; border: 1px solid #27ae6044; }
.badge-grey { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.badge-danger { background: #c0392b22; color: #e74c3c; border: 1px solid #c0392b44; }
.spectacle-actions { margin-bottom: 28px; }
.rating-section { border-top: 1px solid var(--border); padding-top: 24px; }
.rating-section h3 { margin-bottom: 14px; font-size: 1rem; }
.star-rating { display: flex; gap: 6px; margin-bottom: 8px; }
.star-input {
  font-size: 2rem; color: var(--border); cursor: pointer;
  transition: color .15s, transform .1s;
}
.star-input:hover, .star-input.active { color: #f39c12; }
.star-input:hover { transform: scale(1.15); }
.rating-message { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.avg-rating-display { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.avg-stars { font-size: 1.8rem; font-weight: 700; color: #f39c12; }
.stars-display { display: flex; gap: 2px; }

/* ── Auth Modal ────────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(9,0,13,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; width: 100%; max-width: 420px;
}
.auth-modal-logo { height: 60px; width: auto; margin: 0 auto 20px; display: block; }
.auth-modal h2 { text-align: center; margin-bottom: 24px; font-size: 1.4rem; }

/* ── Auth Pages ────────────────────────────────────────── */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.auth-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; width: 100%; max-width: 420px;
}
.auth-logo { margin: 0 auto 24px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; font-size: 1.4rem; }
.divider { text-align: center; margin: 20px 0; color: var(--text-muted); position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 0.95rem;
  transition: border-color .2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group small { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; display: block; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch a { color: var(--accent); }

/* ── Profil ────────────────────────────────────────────── */
.profil-page { padding: 100px 0 70px; }
.profil-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.profil-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.profil-avatar-wrap { position: relative; flex-shrink: 0; cursor: pointer; }
.avatar-edit-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; opacity: 0; transition: opacity .2s;
}
.profil-avatar-wrap:hover .avatar-edit-overlay { opacity: 1; }

/* ── Modal photo de profil ─────────────────────────────── */
.avatar-modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(9,0,13,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.avatar-modal {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto;
  position: relative;
}
.avatar-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer;
}
.avatar-modal-close:hover { color: var(--text); }
.avatar-modal h3 { margin-bottom: 22px; font-size: 1.2rem; }
.avatar-modal-option { margin-bottom: 26px; }
.avatar-modal-option h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.avatar-modal-option form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.avatar-modal-option input[type="file"] {
  flex: 1; min-width: 180px; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: 0.85rem;
}
.avatar-comedians-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.avatar-comedian-option button {
  background: none; border: 2px solid var(--border); border-radius: 50%;
  padding: 0; cursor: pointer; width: 58px; height: 58px; overflow: hidden;
  transition: border-color .2s;
}
.avatar-comedian-option button:hover { border-color: var(--accent); }
.avatar-comedian-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profil-header h1 { font-size: 1.8rem; }
.profil-email { color: var(--text-muted); margin: 4px 0 10px; }
.profil-actions { margin-bottom: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.profil-sections { display: grid; gap: 50px; }
.profil-section h2 { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.ratings-list { display: grid; gap: 12px; }
.rating-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  transition: border-color .2s;
}
.rating-row:hover { border-color: var(--accent); }
.rating-row img { border-radius: 4px; width: 60px; height: 40px; object-fit: cover; flex-shrink: 0; }
.rating-row > div { flex: 1; }
.comedian-sm { color: var(--text-muted); font-size: 0.8rem; display: block; }
.stars-sm { display: flex; gap: 2px; }
.stars-sm .star { font-size: 0.9rem; }

/* ── Abonnement ────────────────────────────────────────── */
.abonnement-page { padding: 100px 20px 60px; max-width: 600px; margin: 0 auto; text-align: center; }
.abonnement-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.abonnement-hero .sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.pricing-card {
  background: var(--bg2); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 40px; margin-bottom: 30px;
  position: relative;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 4px 18px;
  border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.price { font-size: 3.5rem; font-weight: 800; color: var(--accent); margin: 10px 0 24px; }
.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; display: grid; gap: 10px; }
.pricing-features li { color: var(--text-muted); font-size: 0.95rem; }
.pricing-features li::before { content: ''; }
.stripe-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 14px; }
.free-offer { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.free-offer p { color: var(--text-muted); margin-bottom: 14px; }
.already-subscribed { padding: 40px; }
.success-icon { font-size: 3rem; margin-bottom: 14px; display: block; }
.success-icon.big { font-size: 4rem; }

/* ── Admin ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 65px); padding-top: 80px; }
.admin-sidebar { background: var(--bg2); border-right: 1px solid var(--border); padding: 30px 20px; }
.admin-logo { font-size: 1.1rem; font-weight: 700; margin-bottom: 28px; color: var(--accent); }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar nav a {
  padding: 9px 14px; border-radius: 8px; color: var(--text-muted);
  font-size: 0.9rem; transition: all .2s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--bg3); color: var(--text); }
.admin-main { padding: 36px 40px; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 40px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-card.accent { border-color: var(--accent); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.admin-section { margin-bottom: 40px; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-section-header h2, .admin-section-header h1 { font-size: 1.3rem; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .05em; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.actions-cell { display: flex; gap: 8px; align-items: center; }
.admin-form { max-width: 800px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: auto; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.duration-inputs { display: flex; gap: 10px; align-items: center; }
.duration-field { display: flex; align-items: center; gap: 6px; }
.duration-field input { width: 65px; text-align: center; }
.duration-field span { color: var(--text-muted); font-size: 0.9rem; }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 30px 20px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Loading ────────────────────────────────────────────── */
.loading-spinner {
  width: 40px; height: 40px; margin: 60px auto;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .spectacle-page { grid-template-columns: 1fr; }
  .spectacle-player-wrap { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .hero-pricing-card { display: none; }
  .features-bar-inner { flex-direction: column; gap: 24px; }
  .feature-bar-item { border-right: none; padding: 0; }
  .sub-band-inner { flex-direction: column; text-align: center; }
  .sub-band-features { text-align: left; }
  /* Sidebar en colonne sur tablette */
  .section-with-sidebar { flex-direction: column; }
  .section-sidebar { width: 100%; max-width: 400px; }
  /* Logo plus petit */
  .navbar-brand img { height: 100px; margin-top: 0; }
  .navbar { height: 70px; }
  .navbar-links { top: 70px; }
}

@media (max-width: 640px) {
  /* Navbar */
  .navbar { padding: 0 16px; height: 64px; }
  .navbar-brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .navbar-brand img { height: 90px; margin-top: 0; }
  .navbar-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(9,0,13,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px; gap: 2px; z-index: 99;
  }
  .navbar-links.open { display: flex; }
  .navbar-links .nav-link {
    font-size: 1.1rem; padding: 13px 16px;
    border-radius: 8px; border-bottom: none;
    border-left: 3px solid transparent;
  }
  .navbar-links .nav-link:hover,
  .navbar-links .nav-link.active {
    background: var(--bg3);
    border-left: 3px solid var(--accent);
    color: var(--accent);
  }
  .mobile-menu-actions {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  /* Hero */
  .hero-cinema { min-height: 420px; overflow: hidden; }
  .hero-cinema-img { margin-top: 0; width: 100%; height: 420px; object-fit: cover; object-position: 52% center; }
  .hero-cinema-overlay {
    background:
      linear-gradient(to bottom, var(--bg) 0%, transparent 25%),
      linear-gradient(to top, var(--bg) 0%, transparent 45%);
  }
  .hero-cinema-actions-bar {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    flex-direction: row; gap: 8px; z-index: 2;
  }
  .hero-cinema-actions-bar .btn {
    flex: 1; justify-content: center; font-size: 0.75rem; padding: 9px 8px; white-space: nowrap;
  }
  /* Fix scroll horizontal page */
  body { overflow-x: hidden; }
  /* Sections */
  .section-scroll { padding: 20px 14px 8px; max-width: 100%; }
  .section-main { min-width: 0; max-width: 100%; }
  .section-sidebar { max-width: 100%; }
  .scroll-row { overflow-x: auto; max-width: 100%; }
  /* Burger menu à droite */
  .nav-toggle { margin-left: auto; }
  /* Top 5 */
  .trends-row { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; }
  .trend-card { width: 140px; }
  .trend-number { font-size: 4.5rem; }
  .trend-item:nth-child(1) .trend-number,
  .trend-item:nth-child(2) .trend-number { font-size: 5rem; }
  .top5-img { height: 60px; }
  /* Cartes */
  .scroll-row .spectacle-card { width: 120px; }
  /* Catalogue */
  .catalogue-header { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  /* Footer */
  .hero { padding: 50px 20px; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  /* Divers */
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid var(--border); padding: 30px 20px; }
  .why-item:last-child { border-bottom: none; }
  .hero-v2-title { font-size: clamp(3rem, 14vw, 5rem); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .section-recent-header { flex-direction: column; gap: 8px; }
  /* Subscription */
  .subscription-band { padding: 28px 14px; }
  .sub-band-price { font-size: 3rem; }
  .features-bar { padding: 20px 14px; }
}
