:root {
  --violet:       #961e81;
  --violet-mid:   #b3259a;
  --violet-light: #d45ec0;
  --violet-pale:  #f7e0f3;
  --violet-soft:  #fdf0fb;
  --neon:         #f72ed4;
  --neon2:        #c320a8;
  --gold:         #B8860B;
  --white:        #FFFFFF;
  --off-white:    #fdf8fc;
  --grey-100:     #f5f0f4;
  --grey-200:     #e8dde6;
  --grey-400:     #9e8d9b;
  --grey-700:     #3d2e3b;
  --black:        #1e0e1b;
  --font: 'Montserrat', sans-serif;
}

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

body { font-family: var(--font); background: var(--off-white); color: var(--black); min-height: 100vh; }

.page { display: none; min-height: 100vh; }
.page.active { display: flex; }

/* ─── SPARKLE CANVAS ─── */
#sparkle-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ─── LOGIN ─── */
#page-login { flex-direction: row; }

.login-visual {
  flex: 1;
  background: var(--violet);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 3rem;
}

.lv-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 60px);
}

/* neon glow orbs on login panel */
.lv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 6s ease-in-out infinite;
}
.lv-orb-1 { width: 300px; height: 300px; background: rgba(247,46,212,0.25); top: -80px; right: -60px; animation-delay: 0s; }
.lv-orb-2 { width: 200px; height: 200px; background: rgba(150,30,129,0.35); bottom: 40px; left: -40px; animation-delay: -3s; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.08); }
}

.lv-top { position: relative; z-index: 1; }
.lv-logo { font-size: 1rem; font-weight: 700; letter-spacing: 0.15em; color: rgba(255,255,255,0.95); text-transform: uppercase; }
.lv-logo-sub { font-size: 0.6rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.5); margin-top: 3px; text-transform: uppercase; }

.lv-bottom { position: relative; z-index: 1; }
.lv-quote { font-size: 2.6rem; font-weight: 300; line-height: 1.2; color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.lv-quote strong { font-weight: 700; }

/* static neon sparkle dots on login visual */
.sparkle-dot {
  position: absolute; border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 2s) ease-in-out var(--del, 0s) infinite;
}
@keyframes twinkle {
  0%,100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1); }
}

.login-panel {
  width: 500px; background: var(--white);
  display: flex; flex-direction: column;
  justify-content: center; padding: 4rem 3.5rem;
}

.lp-logo { margin-bottom: 2.5rem; }
.logo-mark { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--black); }
.logo-mark span { color: var(--violet-mid); }
.logo-mark-sub { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.lp-heading { font-size: 1.9rem; font-weight: 700; color: var(--black); margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.lp-sub { font-size: 0.825rem; color: var(--grey-400); margin-bottom: 2.5rem; line-height: 1.6; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-700); margin-bottom: 0.45rem; }
.form-group input, .form-group select {
  width: 100%; background: var(--grey-100); border: 1.5px solid var(--grey-200);
  border-radius: 8px; padding: 0.85rem 1rem; color: var(--black);
  font-family: var(--font); font-size: 0.9rem; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--violet-mid); background: var(--white); }
.form-group input::placeholder { color: var(--grey-400); }

.btn-primary {
  width: 100%; background: var(--violet); color: #fff; border: none;
  border-radius: 8px; padding: 0.95rem 1.5rem; font-family: var(--font);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, transform 0.1s; margin-top: 0.4rem;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.btn-primary:hover { background: var(--violet-mid); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.lp-forgot { text-align: center; margin-top: 1.25rem; }
.lp-forgot a { font-size: 0.78rem; color: var(--grey-400); text-decoration: none; cursor: pointer; }
.lp-forgot a:hover { color: var(--violet-mid); }

.lp-reserved { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-200); font-size: 0.72rem; color: var(--grey-400); text-align: center; line-height: 1.7; }

/* bloc abonnement Stripe sur la page de connexion */
.lp-join { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--grey-200); text-align: center; }
.lp-join-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 0.5rem; }
.lp-join-price { font-size: 1.7rem; font-weight: 700; color: var(--black); margin-bottom: 1rem; letter-spacing: -0.02em; }
.lp-join-price span { font-size: 0.85rem; color: var(--grey-400); font-weight: 600; letter-spacing: 0; }
.btn-join { display: block; width: 100%; padding: 0.9rem 1.5rem; border-radius: 8px; border: 1.5px solid var(--violet); color: var(--violet); font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-join:hover { background: var(--violet); color: #fff; }
.lp-join-note { font-size: 0.7rem; color: var(--grey-400); line-height: 1.8; margin-top: 0.9rem; }

/* message d'erreur / info du formulaire de connexion */
.login-error {
  display: none;
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.78rem; line-height: 1.5;
  margin-bottom: 1.1rem;
}
.login-error.visible { display: block; }
.login-info {
  display: none;
  background: var(--violet-soft); border: 1px solid var(--violet-pale); color: var(--violet-mid);
  border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.78rem; line-height: 1.5;
  margin-top: 1rem;
}
.login-info.visible { display: block; }

/* ─── APP LAYOUT ─── */
#page-app { flex-direction: row; align-items: stretch; }

/* ─── SIDEBAR ─── */
.sidebar {
  width: 250px; background: var(--white);
  border-right: 1px solid var(--grey-200);
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; display: flex; flex-direction: column;
}
.sb-logo { padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--grey-200); }
.sb-logo .logo-mark { font-size: 0.95rem; }

.sb-user { padding: 1rem 1.5rem; border-bottom: 1px solid var(--grey-200); display: flex; align-items: center; gap: 0.75rem; }
.sb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--violet); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.sb-user-name { font-size: 0.82rem; font-weight: 600; color: var(--black); }
.sb-user-role { font-size: 0.7rem; color: var(--grey-400); margin-top: 1px; }

.sb-nav { flex: 1; padding: 1rem 0.75rem; overflow-y: auto; }
.nav-group-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-400); padding: 0.75rem 0.75rem 0.3rem; }
.nav-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 7px; cursor: pointer; font-size: 0.82rem; font-weight: 500; color: var(--grey-700); transition: background 0.15s, color 0.15s; text-decoration: none; }
.nav-item:hover { background: var(--grey-100); color: var(--black); }
.nav-item.active { background: var(--violet-soft); color: var(--violet-mid); font-weight: 600; }
.nav-icon { width: 18px; text-align: center; font-size: 0.88rem; }
.nav-badge { margin-left: auto; background: var(--violet); color: #fff; font-size: 0.6rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.nav-badge.gold { background: var(--gold); }

.sb-bottom { padding: 1rem 0.75rem; border-top: 1px solid var(--grey-200); }

/* ─── MAIN ─── */
.main-content { margin-left: 250px; flex: 1; min-height: 100vh; background: var(--off-white); overflow-y: auto; }

.topbar { background: var(--white); border-bottom: 1px solid var(--grey-200); padding: 0.9rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar-bc { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--grey-400); }
.topbar-bc span:last-child { color: var(--black); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.topbar-btn { width: 34px; height: 34px; border: 1.5px solid var(--grey-200); border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; transition: border-color 0.2s; background: var(--white); }
.topbar-btn:hover { border-color: var(--violet-mid); }

.screen { display: none; }
.screen.active { display: block; }
.wrap { padding: 2.5rem 2.5rem 5rem; max-width: 1080px; }

.pg-title { font-size: 1.8rem; font-weight: 700; color: var(--black); letter-spacing: -0.02em; line-height: 1.2; }
.pg-sub { font-size: 0.85rem; color: var(--grey-400); margin-top: 0.35rem; }

.back-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--grey-400); cursor: pointer; background: none; border: none; font-family: var(--font); padding: 0; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.back-btn:hover { color: var(--violet-mid); }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 12px; padding: 1.25rem; transition: border-color 0.2s; }
.stat-card:hover { border-color: var(--violet-light); }
.stat-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 0.5rem; }
.stat-val { font-size: 1.75rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-hint { font-size: 0.72rem; color: var(--grey-400); margin-top: 0.35rem; }
.stat-hint.green { color: #16A34A; font-weight: 600; }

/* ─── VIDEO ─── */
.video-block { background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; overflow: hidden; margin-bottom: 2.5rem; }
.video-ph { width: 100%; aspect-ratio: 16/9; background: var(--violet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; cursor: pointer; position: relative; overflow: hidden; }
.video-ph::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 30px); }

/* neon ring on video play button */
.vplay {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 0 rgba(247,46,212,0);
  animation: neonPulse 2.5s ease-in-out infinite;
}
@keyframes neonPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(247,46,212,0); }
  50%      { box-shadow: 0 0 0 14px rgba(247,46,212,0.2), 0 0 30px rgba(247,46,212,0.15); }
}
.video-ph:hover .vplay { background: rgba(255,255,255,0.3); transform: scale(1.06); }
.vplay svg { width: 26px; height: 26px; fill: white; margin-left: 4px; }
.v-label { font-size: 1.15rem; font-weight: 600; color: #fff; position: relative; z-index: 1; letter-spacing: -0.01em; }
.v-dur { font-size: 0.72rem; color: rgba(255,255,255,0.6); position: relative; z-index: 1; }

/* ─── SECTION EYEBROW ─── */
.section-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-mid); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--grey-200); }

/* ─── ORIENTATION CARDS ─── */
.ori-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 2.5rem; }
.ori-card { background: var(--white); border: 1.5px solid var(--grey-200); border-radius: 14px; padding: 1.75rem 1.5rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.85rem; transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s; position: relative; }
.ori-card:hover { border-color: var(--violet-mid); box-shadow: 0 8px 30px rgba(150,30,129,0.12); transform: translateY(-3px); }
.ori-card.gold:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(184,134,11,0.1); }

.ori-top-bar { height: 3px; border-radius: 10px; background: var(--grey-200); position: absolute; top: 0; left: 1.5rem; right: 1.5rem; transition: background 0.25s; }
.ori-card:hover .ori-top-bar { background: var(--violet-mid); }
.ori-card.gold:hover .ori-top-bar { background: var(--gold); }

/* neon shimmer on hover */
.ori-card::before { content: ''; position: absolute; inset: 0; border-radius: 13px; opacity: 0; transition: opacity 0.3s; background: linear-gradient(135deg, rgba(150,30,129,0.04) 0%, transparent 60%); }
.ori-card:hover::before { opacity: 1; }

.ori-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 4px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; width: fit-content; }
.b-violet { background: var(--violet-soft); color: var(--violet-mid); border: 1px solid var(--violet-pale); }
.b-green  { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.b-gold   { background: #FFFBEB; color: var(--gold); border: 1px solid #FDE68A; }

.ori-title { font-size: 1.15rem; font-weight: 700; color: var(--black); line-height: 1.25; letter-spacing: -0.01em; }
.ori-text  { font-size: 0.8rem; color: var(--grey-400); line-height: 1.65; flex: 1; }
.ori-link  { font-size: 0.75rem; font-weight: 700; color: var(--violet-mid); letter-spacing: 0.05em; text-transform: uppercase; display: flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.ori-card:hover .ori-link { gap: 0.7rem; }
.ori-card.gold .ori-link { color: var(--gold); }

/* ─── PACKS ─── */
.packs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.pack-card { background: var(--white); border: 1.5px solid var(--grey-200); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.pack-card:hover { border-color: var(--violet-mid); box-shadow: 0 8px 30px rgba(150,30,129,0.1); transform: translateY(-3px); }
.pack-head { background: var(--violet-soft); padding: 1.75rem; border-bottom: 1px solid var(--violet-pale); }
.pack-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.pack-name { font-size: 1.2rem; font-weight: 700; color: var(--black); line-height: 1.25; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.pack-tagline { font-size: 0.78rem; color: var(--grey-400); line-height: 1.5; }
.pack-body { padding: 1.5rem 1.75rem; }
.pack-features { list-style: none; margin-bottom: 1.5rem; }
.pack-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.8rem; color: var(--grey-700); padding: 0.3rem 0; line-height: 1.5; }
.pack-features li::before { content: '✦'; color: var(--violet-mid); font-size: 0.6rem; margin-top: 3px; flex-shrink: 0; }
.pack-warning { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.76rem; color: #92400E; line-height: 1.55; margin-bottom: 1rem; }
.btn-outline { width: 100%; padding: 0.85rem 1rem; border-radius: 8px; border: 1.5px solid var(--violet); background: transparent; color: var(--violet); font-family: var(--font); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: var(--violet); color: #fff; }

/* ─── MODULES ─── */
.module-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2.5rem; }
.module-row { background: var(--white); border: 1px solid var(--grey-200); border-radius: 10px; padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.module-row:hover { border-color: var(--violet-mid); box-shadow: 0 4px 16px rgba(150,30,129,0.08); transform: translateX(4px); }
.mod-num { width: 36px; height: 36px; border-radius: 8px; background: var(--violet-soft); border: 1px solid var(--violet-pale); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--violet-mid); flex-shrink: 0; }
.mod-info { flex: 1; }
.mod-name { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.mod-meta { font-size: 0.72rem; color: var(--grey-400); margin-top: 2px; }
.mod-status { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--grey-100); color: var(--grey-400); border: 1px solid var(--grey-200); white-space: nowrap; }
.mod-status.locked { background: var(--violet-soft); color: var(--violet-mid); border-color: var(--violet-pale); }
.mod-status.vip    { background: #FFFBEB; color: var(--gold); border-color: #FDE68A; }
.mod-status.todo   { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }

/* ─── BONUS BANNER ─── */
.bonus-banner { background: var(--white); border: 1.5px solid var(--violet-pale); border-radius: 12px; padding: 1.5rem 1.75rem; display: flex; align-items: center; gap: 1.25rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; margin-top: 1rem; }
.bonus-banner:hover { border-color: var(--violet-mid); box-shadow: 0 6px 24px rgba(150,30,129,0.1); }
.bonus-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--violet-soft); border: 1px solid var(--violet-pale); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.bonus-info { flex: 1; }
.bonus-eye { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-mid); margin-bottom: 0.2rem; }
.bonus-ttl { font-size: 0.95rem; font-weight: 700; color: var(--black); letter-spacing: -0.01em; }
.bonus-desc { font-size: 0.77rem; color: var(--grey-400); margin-top: 2px; }

/* ─── FRANCHISE HERO ─── */
.franchise-hero { background: var(--violet); border-radius: 16px; padding: 3.5rem 2.5rem; margin-bottom: 2rem; text-align: center; position: relative; overflow: hidden; }
.franchise-hero::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 40px); }
/* neon glow orbs in franchise hero */
.fh-orb { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.fh-orb-1 { width: 250px; height: 250px; background: rgba(247,46,212,0.2); top: -60px; right: 5%; animation: orbFloat 5s ease-in-out infinite; }
.fh-orb-2 { width: 180px; height: 180px; background: rgba(255,255,255,0.06); bottom: -40px; left: 8%; animation: orbFloat 7s ease-in-out -2s infinite; }
.fh-inner { position: relative; z-index: 1; }
.fh-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 1.25rem; }
.fh-title { font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1rem; }
.fh-desc { font-size: 0.875rem; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ─── LEADERS ─── */
.leaders-hero { background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 14px; padding: 3rem 2rem; text-align: center; margin-bottom: 2rem; }
.lh-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.lh-title { font-size: 2rem; font-weight: 700; color: var(--gold); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.lh-text { font-size: 0.85rem; color: #92400E; max-width: 460px; margin: 0 auto; line-height: 1.7; }

/* ─── EVENTS ─── */
.event-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 11px; padding: 1.1rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; margin-bottom: 0.65rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.event-card:hover { border-color: var(--violet-mid); box-shadow: 0 4px 16px rgba(150,30,129,0.08); }
.ev-date { background: var(--violet-soft); border: 1px solid var(--violet-pale); border-radius: 8px; padding: 0.6rem 0.8rem; text-align: center; min-width: 52px; flex-shrink: 0; }
.ev-day { font-size: 1.5rem; font-weight: 700; color: var(--violet-mid); line-height: 1; }
.ev-month { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-400); margin-top: 1px; }
.ev-name { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.ev-loc  { font-size: 0.77rem; color: var(--grey-400); margin-top: 2px; }
.ev-tag  { margin-left: auto; padding: 3px 10px; border-radius: 5px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--violet-soft); color: var(--violet-mid); border: 1px solid var(--violet-pale); flex-shrink: 0; white-space: nowrap; }

/* ─── COMING SOON ─── */
.coming-soon { background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; padding: 4rem 2rem; text-align: center; }
.cs-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.cs-title { font-size: 1.5rem; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.cs-text { font-size: 0.85rem; color: var(--grey-400); max-width: 400px; margin: 0 auto; line-height: 1.7; }

/* ─── ADMIN : GESTION DES MEMBRES ─── */
.admin-form-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 12px; padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-feedback { display: none; border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.78rem; line-height: 1.5; margin-bottom: 1rem; }
.form-feedback.error   { display: block; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.form-feedback.success { display: block; background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }

.member-row { background: var(--white); border: 1px solid var(--grey-200); border-radius: 10px; padding: 1rem 1.4rem; display: flex; align-items: center; gap: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.member-row:hover { border-color: var(--violet-light); box-shadow: 0 4px 16px rgba(150,30,129,0.06); }
.member-role { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; margin-left: 0.5rem; vertical-align: middle; }
.row-btn { width: 34px; height: 34px; border: 1.5px solid var(--grey-200); border-radius: 7px; background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; transition: border-color 0.2s, background 0.2s; flex-shrink: 0; }
.row-btn:hover { border-color: var(--violet-mid); }
.row-btn.danger:hover { border-color: #DC2626; background: #FEF2F2; }

/* ─── MODALES ─── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(30,14,27,0.55); z-index: 300; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 14px; padding: 2rem; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(30,14,27,0.3); }
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.modal-text { font-size: 0.82rem; color: var(--grey-400); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-text strong { color: var(--black); }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-ghost { padding: 0.75rem 1.25rem; border-radius: 8px; border: 1.5px solid var(--grey-200); background: transparent; color: var(--grey-700); font-family: var(--font); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s; }
.btn-ghost:hover { border-color: var(--grey-400); }
.btn-danger { padding: 0.75rem 1.25rem; border-radius: 8px; border: none; background: #DC2626; color: #fff; font-family: var(--font); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.btn-danger:hover { background: #B91C1C; }
.btn-violet { padding: 0.75rem 1.25rem; border-radius: 8px; border: none; background: var(--violet); color: #fff; font-family: var(--font); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.btn-violet:hover { background: var(--violet-mid); }

/* Hamburger — visible par défaut, caché sur desktop */
.hamburger { display:flex; flex-direction:column; justify-content:center; gap:5px; width:40px; height:40px; cursor:pointer; padding:8px; border-radius:8px; border:1.5px solid var(--grey-200); background:var(--white); transition:border-color 0.2s; flex-shrink:0; }
.hamburger:hover { border-color:var(--violet-mid); }
.hamburger span { display:block; height:2px; background:var(--black); border-radius:2px; transition:transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(30,15,27,0.5); z-index:99; }
.sidebar-overlay.active { display:block; }

/* Bottom nav — visible par défaut, caché sur desktop */
.bottom-nav { display:flex; position:fixed; bottom:0; left:0; right:0; background:var(--white); border-top:1.5px solid var(--grey-200); padding:0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom)); z-index:98; justify-content:space-around; align-items:center; }
.bn-item { display:flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer; padding:4px 8px; border-radius:8px; font-size:0.58rem; font-weight:600; color:var(--grey-400); letter-spacing:0.04em; text-transform:uppercase; min-width:56px; text-align:center; -webkit-tap-highlight-color:transparent; }
.bn-item.active { color:var(--violet-mid); }
.bn-item .bn-icon { font-size:1.3rem; line-height:1; }

/* Sidebar mobile — cachée par défaut, glisse depuis la gauche */
.sidebar { transition:transform 0.28s cubic-bezier(0.4,0,0.2,1); }

@media (max-width: 900px) {
  #page-login { flex-direction: column; }
  .login-visual { display: none; }
  .login-panel { width: 100%; padding: 3rem 1.75rem; }
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); box-shadow:6px 0 40px rgba(30,15,27,0.25); }
  .main-content { margin-left:0; padding-bottom:80px; }
  .ori-grid, .packs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .wrap { padding: 1.25rem 1rem 1rem; }
  .fh-title { font-size: 1.9rem; }
  .pg-title { font-size: 1.4rem; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .member-row { flex-wrap: wrap; }
}

@media (min-width: 901px) {
  /* Desktop : sidebar toujours visible, pas de hamburger ni bottom nav */
  .hamburger { display:none !important; }
  .bottom-nav { display:none !important; }
  .sidebar { transform:none !important; }
  .main-content { margin-left:250px; padding-bottom:0; }
}

/* ─── CHAT COMMUNAUTÉ ─── */
.chat-status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; padding: 6px 14px; border-radius: 20px; white-space: nowrap; }
.chat-status.open { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.chat-status.closed { background: var(--violet-soft); color: var(--violet-mid); border: 1px solid var(--violet-pale); }
.chat-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 420px; overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-empty { text-align: center; color: var(--grey-400); font-size: 0.85rem; padding: 3rem 1rem; }
.msg { display: flex; gap: 0.6rem; max-width: 82%; align-items: flex-end; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; font-size: 0.6rem; flex-shrink: 0; }
.msg-meta { font-size: 0.68rem; color: var(--grey-400); margin-bottom: 3px; display: flex; align-items: center; gap: 0.4rem; }
.msg.mine .msg-meta { justify-content: flex-end; }
.msg-staff { background: #FFFBEB; color: var(--gold); border: 1px solid #FDE68A; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 7px; border-radius: 10px; }
.msg-bubble { background: var(--grey-100); border: 1px solid var(--grey-200); border-radius: 12px 12px 12px 4px; padding: 0.6rem 0.9rem; font-size: 0.85rem; line-height: 1.55; color: var(--black); word-break: break-word; white-space: pre-wrap; }
.msg.mine .msg-bubble { background: var(--violet); border-color: var(--violet); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg-del { background: none; border: none; cursor: pointer; font-size: 0.72rem; opacity: 0.45; padding: 0 2px; transition: opacity 0.2s; }
.msg-del:hover { opacity: 1; }
.chat-closed { padding: 1rem 1.25rem; border-top: 1px solid var(--grey-200); background: var(--violet-soft); color: var(--violet-mid); font-size: 0.82rem; font-weight: 600; text-align: center; }
.chat-inputbar { display: flex; gap: 0.6rem; padding: 0.9rem 1rem; border-top: 1px solid var(--grey-200); }
.chat-inputbar input { flex: 1; background: var(--grey-100); border: 1.5px solid var(--grey-200); border-radius: 22px; padding: 0.7rem 1.1rem; font-family: var(--font); font-size: 0.88rem; color: var(--black); outline: none; transition: border-color 0.2s, background 0.2s; }
.chat-inputbar input:focus { border-color: var(--violet-mid); background: var(--white); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--violet); color: #fff; font-size: 1rem; cursor: pointer; transition: background 0.2s, transform 0.1s; flex-shrink: 0; }
.chat-send:hover { background: var(--violet-mid); }
.chat-send:active { transform: scale(0.95); }
.bn-item { position: relative; }
.bn-dot { position: absolute; top: 2px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 6px rgba(247,46,212,0.8); }

@media (max-width: 900px) {
  .chat-card { height: calc(100vh - 310px); min-height: 340px; }
  .msg { max-width: 92%; }
}

/* ─── SÉLECTEUR DE LANGUE ─── */
.lang-switch { display: flex; gap: 2px; background: var(--grey-100); border: 1.5px solid var(--grey-200); border-radius: 8px; padding: 2px; }
.lang-btn { border: none; background: transparent; font-family: var(--font); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; color: var(--grey-400); padding: 5px 9px; border-radius: 6px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lang-btn:hover { color: var(--black); }
.lang-btn.active { background: var(--violet); color: #fff; }
.login-lang { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 5; }
[dir="rtl"] .login-lang { right: auto; left: 1.25rem; }

/* ─── RTL (arabe) ─── */
[lang="ar"] body, [lang="ar"] button, [lang="ar"] input, [lang="ar"] select { font-family: 'Tajawal', 'Montserrat', sans-serif; }
[lang="ar"] .nav-group-label, [lang="ar"] .stat-label, [lang="ar"] .section-eyebrow, [lang="ar"] .mod-status,
[lang="ar"] .btn-primary, [lang="ar"] .btn-outline, [lang="ar"] .btn-join, [lang="ar"] .lp-join-label,
[lang="ar"] .chat-status, [lang="ar"] .bn-item { letter-spacing: 0; }
[dir="rtl"] .sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--grey-200); }
[dir="rtl"] .nav-badge, [dir="rtl"] .ev-tag { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ori-top-bar { left: 1.5rem; right: 1.5rem; }
[dir="rtl"] .msg-bubble { border-radius: 12px 12px 4px 12px; }
[dir="rtl"] .msg.mine .msg-bubble { border-radius: 12px 12px 12px 4px; }
[dir="rtl"] .bn-dot { right: auto; left: 10px; }

@media (min-width: 901px) {
  [dir="rtl"] .main-content { margin-left: 0 !important; margin-right: 250px; }
}
@media (max-width: 900px) {
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  [dir="rtl"] .sidebar.open { transform: translateX(0); box-shadow: -6px 0 40px rgba(30,15,27,0.25); }
  [dir="rtl"] .main-content { margin-right: 0 !important; }
}
