:root {
    --bg-main: #07070a;
    --bg-sidebar: #0b0b0f;
    --card-bg: #121218;
    --accent: #00f0ff;
    --text-main: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Structure globale SaaS */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar / Navigation */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.brand {
    padding: 24px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-btn.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent);
    font-weight: 600;
    border-left: 3px solid var(--accent);
}

/* Zone Principale */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    background-color: var(--bg-main);
    padding: 40px;
}

.view-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Bannières et Cartes */
.vip-card-banner {
    padding: 30px;
    border-radius: 14px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Grille Catalogue */
.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.media-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
}

.media-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 12px;
}

.media-thumb .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.media-info {
    padding: 18px;
}

.media-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 6px;
}

.media-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Espace de Lecture (Lecteur & HUD) */
.reader-workspace {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.reader-stage {
    position: relative;
    flex-grow: 1;
    background: #000;
}

.reader-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}

.ecology-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.eco-bar-container {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.eco-bar-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

.reader-console {
    padding: 25px 30px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
}

.speaker-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.dialogue-content {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 20px;
}

.reader-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-choice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-choice:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}