:root {
    --bg-color: #F8F9FB;
    --bg-dark: #0F1419;
    --blue-ardoise: #1F3A5F;
    --gray: #6B7280;
    --gray-light: #D1D5DB;
    --green-valid: #2FAE7B;
    --green-dim: rgba(47, 174, 123, 0.15);
    --orange-btn: #F59E0B;
    --red-danger: #EF4444;
    --text-primary: #1F3A5F;
    --text-secondary: #6B7280;
    --text-light: #E5E7EB;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(31, 58, 95, 0.08);
    --shadow-lg: 0 8px 32px rgba(31, 58, 95, 0.12);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   BOUTONS
   ══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary { background-color: var(--orange-btn); color: white; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-success { background-color: var(--green-valid); color: white; }
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-danger { background-color: var(--red-danger); color: white; }
.btn-danger:hover { filter: brightness(1.1); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--blue-ardoise);
    color: white;
    border-color: var(--blue-ardoise);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.btn-icon {
    width: 48px; height: 48px;
    border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-icon:hover { background: rgba(255, 255, 255, 0.25); }
.btn-icon.active, .btn-icon.muted { background: var(--red-danger); }

/* ══════════════════════════════════════════════════════════
   PAGE VITRINE (Landing)
   ══════════════════════════════════════════════════════════ */

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Nav */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.landing-nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-nav-logo {
    height: 32px;
    filter: grayscale(100%) contrast(1.2);
}

.landing-nav-brand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
}

.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-valid);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: var(--green-dim);
    transition: all 0.2s;
}

.live-indicator:hover { filter: brightness(1.1); }

/* Hero */
.landing-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.landing-hero-content {
    max-width: 520px;
}

.landing-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange-btn);
    font-weight: 600;
    margin-bottom: 1rem;
}

.landing-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.landing-hero-content h1 .amp {
    color: var(--orange-btn);
    font-style: italic;
}

.landing-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.landing-separator {
    width: 60px;
    height: 3px;
    background: var(--green-valid);
    margin-bottom: 2rem;
}

.landing-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Hero side (stats + next session) */
.landing-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 280px;
}

.hero-stats {
    display: flex;
    gap: 1rem;
}

.hero-stat {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-align: center;
    flex: 1;
    transition: box-shadow 0.2s;
}

.hero-stat:hover { box-shadow: var(--shadow); }

.hero-stat-live {
    border-color: var(--green-valid);
    background: var(--green-dim);
}

.hero-stat-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.hero-stat-live .hero-stat-value { color: var(--green-valid); }

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-next {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.hero-next-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-next h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.hero-next-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-next-type {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.hero-next-type-course { color: var(--orange-btn); }
.hero-next-type-meet { color: var(--blue-ardoise); }

/* Features */
.landing-features {
    display: flex;
    gap: 1.5rem;
    padding: 0 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    flex: 1;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow-lg); }

.feature-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: var(--bg-color);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.soon-badge {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--orange-btn);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════ */

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.dash-brand:hover .dash-logo { filter: grayscale(0%); }

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-logo {
    height: 36px;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.dash-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}

.dash-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dash-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dash-user-info strong { font-weight: 600; font-size: 0.85rem; }
.dash-user-info small { font-size: 0.7rem; color: var(--text-secondary); }

.dash-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-light);
}

.dash-avatar-initials {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--blue-ardoise);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-live { background: var(--green-dim); color: var(--green-valid); }
.stat-icon-upcoming { background: rgba(245, 158, 11, 0.12); color: var(--orange-btn); }
.stat-icon-past { background: rgba(31, 58, 95, 0.08); color: var(--blue-ardoise); }
.stat-icon-total { background: rgba(107, 114, 128, 0.1); color: var(--gray); }

.stat-content { display: flex; flex-direction: column; }

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.15rem;
}

/* Flash */
.flash-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-dim);
    color: var(--green-valid);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Create section */
.create-section {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.section-header h2 svg { color: var(--text-secondary); }

.section-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.section-hint strong { color: var(--text-primary); }

.optional {
    font-weight: 400;
    color: var(--gray);
    text-transform: none;
    letter-spacing: 0;
}

.create-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.create-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.create-form .form-group.flex-2 { flex: 2; }

.create-form label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.create-form input,
.create-form select {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: var(--bg-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.create-form input:focus,
.create-form select:focus {
    outline: none;
    border-color: var(--blue-ardoise);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Tabs */
.dash-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 1.5rem;
}

.dash-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-tab:hover { color: var(--text-primary); }

.dash-tab.active {
    color: var(--blue-ardoise);
    border-bottom-color: var(--blue-ardoise);
}

.tab-count {
    background: var(--blue-ardoise);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.tab-count-muted {
    background: var(--gray-light);
    color: var(--gray);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Session grid (live) */
.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.session-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.session-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-ardoise);
    transform: translateY(-2px);
}

.session-card-live { border-left: 4px solid var(--green-valid); }
.session-card-live:hover { border-color: var(--green-valid); }

/* Session list (upcoming + past) */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.session-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-bottom: none;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.session-row:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.session-row:last-child { border-bottom: 1px solid var(--gray-light); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.session-row:only-child { border-radius: var(--radius-lg); border-bottom: 1px solid var(--gray-light); }

.session-row:hover { background: rgba(31, 58, 95, 0.02); }
.session-row-past { opacity: 0.8; }
.session-row-past:hover { opacity: 1; }

.row-date {
    width: 52px;
    text-align: center;
    flex-shrink: 0;
    padding: 0.5rem;
    background: var(--green-dim);
    border-radius: var(--radius);
}

.row-date-past { background: rgba(31, 58, 95, 0.06); }

.row-day {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-primary);
}

.row-month {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.row-content {
    flex: 1;
    min-width: 0;
}

.row-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.row-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.row-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.15rem;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.replay-soon {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card shared */
.card-top { display: flex; justify-content: space-between; align-items: center; }

.card-type {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.card-type-course { color: var(--orange-btn); }
.card-type-meet { color: var(--blue-ardoise); }

.card-badge {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
}

.badge-live { background: var(--green-valid); color: white; display: flex; align-items: center; gap: 0.3rem; }
.badge-scheduled { background: var(--green-dim); color: var(--green-valid); }
.badge-ended { background: rgba(31, 58, 95, 0.1); color: var(--blue-ardoise); }

.live-dot-sm {
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.card-meta svg { color: var(--gray); }

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-share:hover {
    background: var(--blue-ardoise);
    color: white;
    border-color: var(--blue-ardoise);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state svg { margin-bottom: 1rem; }
.empty-state p { font-size: 0.92rem; margin-bottom: 0.5rem; }

.text-sm { font-size: 0.8rem; }
.text-muted { color: var(--gray); }

/* Toast */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--blue-ardoise);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-toast.hidden { display: none; }

/* ══════════════════════════════════════════════════════════
   LOBBY
   ══════════════════════════════════════════════════════════ */

.lobby {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.lobby .logo {
    height: 60px;
    filter: grayscale(100%) contrast(1.2);
    margin-bottom: 2rem;
}

.lobby .badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.lobby h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.lobby .type-label {
    color: var(--orange-btn);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.lobby .description {
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 1.05rem;
}

.lobby .separator {
    width: 60px;
    height: 3px;
    background: var(--green-valid);
    margin: 0 auto 2rem;
}

.lobby .host-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.lobby .host-info strong { color: var(--text-primary); }

.lobby .actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   ROOM (mode sombre)
   ══════════════════════════════════════════════════════════ */

.room-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.room-header .session-info { display: flex; align-items: center; gap: 1rem; }

.room-header .session-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
}

.room-header .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--red-danger);
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
}

.room-header .live-dot {
    width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.room-header .participant-count { color: var(--text-secondary); font-size: 0.85rem; }

.video-area { flex: 1; display: flex; padding: 1rem; gap: 1rem; overflow: hidden; }

.video-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }

.video-main video,
.video-main .video-placeholder {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    background: #1a1f2e;
}

.video-placeholder {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1rem; color: var(--text-secondary);
}

.video-placeholder .avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--blue-ardoise);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 2rem; color: white;
}

.video-sidebar { width: 200px; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; }

.video-thumb {
    position: relative; width: 100%;
    aspect-ratio: 16/9; border-radius: var(--radius);
    overflow: hidden; background: #1a1f2e;
    cursor: pointer; transition: outline 0.2s;
}

.video-thumb:hover { outline: 2px solid var(--orange-btn); }
.video-thumb.speaking { outline: 2px solid var(--green-valid); }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }

.video-thumb .thumb-name {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0.3rem 0.5rem; font-size: 0.7rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.video-thumb .thumb-muted {
    position: absolute; top: 4px; right: 4px;
    width: 20px; height: 20px;
    background: var(--red-danger); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.room-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 1rem; padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.room-controls .controls-center { display: flex; gap: 0.75rem; align-items: center; }
.room-controls .controls-right { position: absolute; right: 1.5rem; }

.btn-leave {
    background: var(--red-danger); color: white; border: none;
    padding: 0.6rem 1.5rem; border-radius: 24px; cursor: pointer;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 600; transition: filter 0.2s;
}

.btn-leave:hover { filter: brightness(1.2); }

.hand-raise { position: fixed; bottom: 80px; right: 1.5rem; z-index: 20; }
.hand-raise .btn-icon { width: 56px; height: 56px; font-size: 1.5rem; background: var(--orange-btn); }
.hand-raise .btn-icon.raised { background: var(--green-valid); animation: bounce 0.5s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ══════════════════════════════════════════════════════════
   PAGE TERMINÉE
   ══════════════════════════════════════════════════════════ */

.ended-page {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 2rem;
}

.ended-page h1 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 400; margin-bottom: 1rem; }
.ended-page .stats { display: flex; gap: 2rem; margin: 2rem 0; }
.ended-page .stat { text-align: center; }
.ended-page .stat-value { font-family: var(--font-serif); font-size: 2rem; color: var(--orange-btn); }
.ended-page .stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; }

/* Footer */
.alpha-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--gray);
    border-top: 1px solid var(--gray-light);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .landing-hero { flex-direction: column; gap: 2rem; padding: 2.5rem 1.5rem; }
    .landing-hero-content { max-width: 100%; text-align: center; }
    .landing-hero-content h1 { font-size: 2.5rem; }
    .landing-cta { justify-content: center; }
    .landing-separator { margin-left: auto; margin-right: auto; }
    .landing-hero-side { min-width: auto; width: 100%; max-width: 400px; margin: 0 auto; }
    .landing-features { flex-direction: column; padding: 0 1.5rem 3rem; }
    .landing-nav { padding: 1rem 1.5rem; }
}

@media (max-width: 768px) {
    .lobby h1 { font-size: 2rem; }

    .stats-row { grid-template-columns: repeat(2, 1fr); }

    .dash-header { flex-direction: column; align-items: flex-start; }
    .dash-header-right { width: 100%; justify-content: flex-end; }

    .create-form .form-row { flex-direction: column; }

    .session-grid { grid-template-columns: 1fr; }

    .session-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .row-date { width: auto; display: flex; gap: 0.5rem; align-items: baseline; }
    .row-actions { width: 100%; justify-content: flex-end; }

    .dash-tabs { overflow-x: auto; }

    .video-sidebar { display: none; }
    .video-area { flex-direction: column; }
    .room-controls .controls-right { position: static; }
    .room-controls { flex-wrap: wrap; }

    .hero-stats { flex-direction: column; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; }
    .landing-nav-right .btn { display: none; }
    .landing-nav-right .live-indicator { display: flex; }
}
