/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* --bg-color: #050505; */ --bg-color: #050505;
    /* --card-bg: #0a0a0a; */ --card-bg: rgba(10, 10, 10, 0.7);
    --text-main: #eeeeee;
    --text-dim: #9ca3af; /* --text-dim: #555555; (Plus clair pour l'ADN) */
    --pastel-blue: #A7C7E7;
    --danger: #ff4d4d;
    --border: rgba(255, 255, 255, 0.08); /* --border: rgba(255, 255, 255, 0.05); */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --bg-gradient-accent: #0f1218; 
    --bg-main: #050505;
}

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

body {
    /* background-color: var(--bg-color); */
    background: radial-gradient(
    circle at 50% 0%, 
    var(--bg-gradient-accent) 10%, 
    var(--bg-main) 75%
) no-repeat fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
/* ==========================================================================
   2. LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5em; font-weight: 900; letter-spacing: -1px; }
.logo span { color: var(--pastel-blue); }

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-pill:hover {
    transform: translateY(-2px);
    border-color: var(--pastel-blue);
}

.header-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.header-username { font-size: 0.8em; font-weight: 700; color:#fff}

/* Menu Desktop */
.main-nav { margin: 20px 0; position: relative; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-menu { display: flex; gap: 30px; }



/* Burger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==========================================================================
   4. NAVIGATION RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle { display: flex !important; z-index: 1100; }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 40px;
        z-index: 1050;
    }

    .nav-menu.active { left: 0 !important; }
    .nav-link { font-size: 1.5em; }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   5. FILMS : GRILLES & RECHERCHE
   ========================================================================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

#moviesGrid.search-results-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-header { margin: 40px 0; text-align: center; }
.search-container { position: relative; max-width: 600px; margin: 20px auto; }

#movieSearchInput {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: white;
    font-size: 1em;
    outline: none;
    transition: 0.3s;
}

#movieSearchInput:focus { border-color: var(--pastel-blue); }

/* ==========================================================================
   6. COMPOSANTS (Cards, Rows, Buttons)
   ========================================================================== */
.movie-card { display: flex; flex-direction: column; transition: 0.3s ease; }
.movie-card:hover { transform: translateY(-5px); }
.movie-card .poster-wrapper {
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.05);
}
.movie-card img { width: 100%; height: 100%; object-fit: cover; }

.movie-row-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    gap: 15px;
    transition: 0.2s;
}
.movie-row-item:hover { border-color: var(--pastel-blue); transform: translateX(5px); }
.row-poster { width: 50px; height: 75px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.row-poster img { width: 100%; height: 100%; object-fit: cover; }
.row-content { flex-grow: 1; }
.row-title { font-size: 0.95em; font-weight: 700; color: var(--text-main); }
.row-year { font-size: 0.8em; color: var(--text-dim); }

.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}
.btn-base:hover { border-color: var(--pastel-blue); color: var(--pastel-blue); }
.btn-base.active { background: var(--pastel-blue); color: #000; border-color: var(--pastel-blue); }

/* ==========================================================================
   7. PAGE FICHE (Layout & Détails)
   ========================================================================== */
.movie-detail-layout { display: flex; gap: 50px; margin-top: 40px; }
.movie-sidebar { flex: 0 0 300px; }
.poster-main { border-radius: 15px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.radar-block { background: var(--card-bg); padding: 15px; border-radius: 12px; border: 1px solid var(--border); margin-top: 20px; }

.movie-info-content h1 { font-size: 3.5em; line-height: 1; letter-spacing: -2px; margin-bottom: 10px; }
.director-tag { font-size: 0.7em; text-transform: uppercase; color: var(--pastel-blue); font-weight: 800; }
.badge-meta { background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 4px; font-size: 0.8em; color: var(--text-dim); }
.genre-badge { border: 1px solid var(--border); padding: 2px 10px; border-radius: 20px; font-size: 0.7em; color: var(--pastel-blue); text-transform: uppercase; }

.movie-mobile-header { display: none; }

@media (max-width: 850px) {
    .movie-detail-layout { flex-direction: column; }
    .movie-mobile-header { display: block; text-align: center; margin-bottom: 20px; }
    .movie-sidebar { order: 2; width: 100%; max-width: 400px; margin: 0 auto 30px; }
    .movie-info-content { order: 3; }
    .movie-info-content .movie-header { display: none; }
}
/* ==========================================================================
   9. PAGE USER
   ========================================================================== */
.user-hero {
    text-align: center;
    margin: 40px 0;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--pastel-blue);
}

.user-avatar-large img { width: 100%; height: 100%; object-fit: cover; }

.user-name { font-size: 2.5em; letter-spacing: -1px; }
.user-type { color: var(--pastel-blue); font-weight: 800; text-transform: uppercase; font-size: 0.8em; }

.user-adn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.adn-radar-container {
    max-width: 500px;
    margin: 0 auto;
}

.user-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
}

.dash-card.full-width { grid-column: span 2; }

.dash-card h4 {
    font-size: 0.7em;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.empty-placeholder {
    color: #333;
    font-style: italic;
    font-size: 0.9em;
}

.dash-links { display: flex; gap: 15px; }
.dash-link-item {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .user-dashboard-grid { grid-template-columns: 1fr; }
    .dash-card.full-width { grid-column: span 1; }
}

/* ==========================================================================
   8. MODAL (Optimisée pour le scroll et le mobile)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px; 
}

.modal.active { display: flex; }

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh; 
    overflow-y: auto; 
    scrollbar-width: none; 
}

.modal-content::-webkit-scrollbar {
    display: none; 
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: var(--text-dim);
    font-size: 2em; cursor: pointer;
    z-index: 10;
}



@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
        border-radius: 15px;
    }
    
    .sliders-grid {
        gap: 10px;
    }
}

.input-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}

.input-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px; 
    background: var(--pastel-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(167, 199, 231, 0.5);
    
}

.slider-group.inactive {
    opacity: 0.25; 
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.slider-group.inactive .input-slider::-webkit-slider-thumb {
    background: #555; 
    box-shadow: none;
}

.slider-group.active {
    opacity: 1;
    filter: grayscale(0);
}

.slider-group.active .input-slider::-webkit-slider-thumb {
    background: var(--pastel-blue);
    box-shadow: 0 0 10px rgba(167, 199, 231, 0.5);
}

.slider-group.active .slider-labels {
    color: var(--text-main);
}

/* ==========================================================================
   9. CAST & FOOTER
   ========================================================================== */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; margin-top: 20px; }
.cast-photo { width: 100px; height: 100px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
    .cast-grid { grid-template-columns: repeat(3, 1fr); }
    .cast-photo { width: 70px; height: 70px; }
}


/* ==========================================================================
   10. PAGE ROOMS
   ========================================================================== */
.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
}

.rooms-header h1 { font-size: 2.5em; letter-spacing: -2px; }
.rooms-header p { color: var(--text-dim); font-size: 0.9em; }

.rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.room-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.room-card:hover {
    border-color: var(--pastel-blue);
    transform: translateX(10px);
}

.room-name { font-size: 1.2em; margin-bottom: 5px; }
.room-meta { font-size: 0.8em; color: var(--text-dim); }
.room-meta span { color: var(--text-main); font-weight: 700; }

.room-stats { display: flex; align-items: center; gap: 20px; }
.member-badge {
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 800;
}

.arrow-icon { color: var(--pastel-blue); font-weight: 900; }

@media (max-width: 600px) {
    .rooms-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .room-card { padding: 20px; }
}

/* ==========================================================================
   11. PAGE SESSION (Lobby)
   ========================================================================== */
.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 40px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.session-badge {
    font-size: 0.6em;
    text-transform: uppercase;
    background: var(--pastel-blue);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 900;
}

.room-id-display {
    display: inline-block;
    margin-top: 10px;
    font-family: monospace;
    color: var(--text-dim);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

.session-members {
    display: flex;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    overflow: hidden;
    margin-left: -10px;
    transition: transform 0.2s;
}

.member-avatar:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.input-room-create {
    width: 100%;
    background: #171717;
    border: 1px solid var(--border);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    margin-top: 10px;
}

.input-room-create:focus {
    border-color: var(--pastel-blue);
}

.join-quick {
    display: flex;
    background: #171717;
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 100%; 
    overflow: hidden;
}

#roomCodeInput {
    background: transparent;
    border: none;
    color: white;
    padding: 0 15px;
    width: 150px;
    font-size: 0.85em;
    outline: none;
}

.join-quick .btn-base {
    height: 100%;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    padding: 0 15px;
}

.header-actions .btn-base.active {
    height: 40px;
    display: flex;
    align-items: center;
}

.member-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: -10px; 
    cursor: pointer;
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%; 
    border: 2px solid var(--bg-color);
    object-fit: cover;
    transition: transform 0.2s ease;
}

.member-avatar-container:hover .member-avatar-img {
    transform: translateY(-5px);
    z-index: 100;
}

.member-avatar-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--pastel-blue);
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7em;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.member-avatar-container:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .rooms-header {
        flex-direction: column;
        align-items: stretch; 
        gap: 20px;
        text-align: center;
    }

    .header-actions {
        flex-direction: column; 
        height: auto; 
        width: 100%;
        gap: 12px;
    }

    .join-quick {
        width: 100%;
        height: 45px; 
    }

    #roomCodeInput {
        flex: 1; 
        width: auto;
    }

    .header-actions .btn-base.active {
        width: 100%; 
        height: 45px;
        justify-content: center;
    }
}

.badges-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.badge-round {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    border: 1px solid var(--border);
}

.badge-seen { color: var(--pastel-blue); }
.badge-liked { color: #ff4d4d; }

.movie-votes {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

.btn-fire {
    background: none; border: none; cursor: pointer; font-size: 1.2em;
    filter: grayscale(1); transition: 0.3s;
}

.btn-fire.active { filter: grayscale(0); transform: scale(1.2); }

.btn-manage {
    background: #ff6b6b !important;
    color: #000 !important;
    border-color: #ff6b6b !important;
}

.btn-manage:hover {
    background: #ff5252 !important;
}

.manage-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.manage-user-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.manage-user-info {
    flex-grow: 1;
    font-weight: 700;
    font-size: 0.9em;
}

.manage-actions {
    display: flex;
    gap: 10px;
}

.btn-kick-text {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
    opacity: 0.6;
}

.btn-kick-text:hover { opacity: 1; }

.btn-ban-text {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
}

/* Layout Global du Dashboard */
.user-dashboard-split {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.dash-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.dash-card-header h4 {
    font-size: 0.9em;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.rooms-grid-mini {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 15px;
}

/* Adaptabilité Mobile - CORRIGÉE */
@media (max-width: 900px) {
    .user-dashboard-split {
        flex-direction: column; /* On garde l'ordre Sessions d'abord puis Agenda */
        gap: 40px;
    }
    
    .rooms-grid-mini {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.agenda-list {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .main-header {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 !important;
        display: block !important;
    }

    .header-content {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 20px !important; 
    }

    .header-actions {
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important; 
        background: transparent !important;
        height: auto !important;
        padding: 0 !important;
    }

    .header-actions .btn-login, 
    .header-actions .user-pill {
        margin-left: auto !important; 
        width: auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        padding: 10px 20px !important;
        border-radius: 10px !important;
        background: var(--pastel-blue) !important;
        color: #000 !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-actions .user-pill {
        background: var(--card-bg) !important;
        border: 1px solid var(--border) !important;
        padding: 5px 15px 5px 5px !important;
        border-radius: 30px !important; 
    }
}

@media (max-width: 600px) {
    .event-form-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    #eventModal input[type="date"],
    #eventModal input[type="time"],
    #eventModal input[type="text"],
    #eventModal select {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
        padding: 12px;
        background: #171717;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: white;
        font-family: inherit;
    }

    .slider-labels {
        margin-bottom: 5px;
    }
}

.session-actions-top {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start; 
    gap: 10px;
}

.session-actions-top .btn-manage {
    margin-left: auto !important; 
}

@media (max-width: 768px) {
    .session-actions-top {
        padding: 0 5px; 
    }
    
    .session-actions-top .btn-base {
        padding: 8px 12px;
        font-size: 0.7rem; 
    }
}

.btn-logout-final {
    background-color: var(--bg-color) !important; 
    color: #FF6B6B !important;                   
    border: 1px solid #FF6B6B !important;         
    width: 100%;                                 
    max-width: 300px;                            
    transition: all 0.3s ease;
}

.btn-logout-final:hover {
    background-color: #FF6B6B !important;        
    color: #000 !important;
    transform: translateY(-2px);
}

.event-row-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 20px;
    gap: 20px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.event-row-blur {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.3); 
    opacity: 0.6;
    z-index: 1;
}

.event-mini-poster {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.event-mini-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-row-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-row-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.event-location-tag {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
}

.event-time-pill {
    background: var(--pastel-blue);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(107, 190, 255, 0.3);
}

.pill-date {
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 10px;
}

.event-row-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attendees-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-base-icon {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.2s;
}

.btn-base-icon.active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.btn-goto-arrow {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 900;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.btn-goto-arrow:hover { color: #fff; }

.event-row-sub-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important; 
    }

    .event-row-item {
        padding: 15px;
    }

    .event-row-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .event-row-info-group {
        width: 100%;
    }

    .event-row-sub-details {
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
    }

    .event-row-actions {
        width: 100%;
        display: flex;
        justify-content: space-between; 
        align-items: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 12px;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
    }
}

/* ==========================================================================
   DASHBOARD SPLIT — ORDRE : AGENDA À GAUCHE, SESSIONS À DROITE
   ========================================================================== */

/* Desktop : Agenda (1) à gauche, Sessions (2) à droite */
.page-user .user-dashboard-split {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
}

.page-user .dash-agenda {
    order: 1 !important;
    flex: 1 !important;
}

.page-user .dash-sessions {
    order: 2 !important;
    flex: 1 !important;
}

/* Mobile (< 900px) : Agenda en haut, Sessions en bas */
@media (max-width: 900px) {
    .page-user .user-dashboard-split {
        flex-direction: column !important;
    }

    .page-user .dash-column {
        width: 100% !important;
    }
}

/* ==========================================================================
   FOOTER MINIMALISTE
   ========================================================================== */
.main-footer {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid var(--border); /* Très subtil */
}

.footer-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0.4; /* On atténue pour ne pas "agresser l'oeil" */
    transition: opacity 0.3s ease;
}

.footer-minimal:hover {
    opacity: 0.8; /* Se révèle légèrement au survol */
}

.footer-copy {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.footer-tagline {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    position: relative;
    padding-left: 15px;
}

.footer-tagline::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border);
}

@media (max-width: 600px) {
    .footer-minimal {
        flex-direction: column;
        gap: 5px;
    }
    .footer-tagline::before { display: none; }
    .footer-tagline { padding-left: 0; }
}
/* Nav links : pastille sombre */
.nav-link {
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 30px;
    border: none;
    transition: color 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--pastel-blue);
}
/* ==========================================================================
   PAGE RECOMMENDATIONS (DNA MATCH)
   ========================================================================== */
.page-recommendations .reco-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(167, 199, 231, 0.05) 0%, rgba(0,0,0,0) 100%);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    margin: 40px 0;
}

.dna-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--pastel-blue);
    font-weight: 900;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.reco-intro h1 {
    font-size: 4em;
    letter-spacing: -3px;
    line-height: 0.9;
}

.user-dna-preview {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trait-pill {
    font-size: 0.6rem;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 800;
    text-transform: uppercase;
}

/* Customisation des cartes en mode Reco */
.movie-card[data-reco="true"] .poster-wrapper {
    border: 2px solid var(--pastel-blue);
    box-shadow: 0 0 20px rgba(167, 199, 231, 0.1);
}

.match-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--pastel-blue);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
}

@media (max-width: 850px) {
    .page-recommendations .reco-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .user-dna-preview { text-align: center; align-items: center; }
    .reco-intro h1 { font-size: 3em; }
}
.movie-grid .empty-state {
    /* La règle clé pour ignorer les colonnes */
    grid-column: 1 / -1; 
    
    /* Habillage pragmatique pour combler le vide */
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: 15px;
    color: var(--text-dim);
    font-style: italic;
}
/* --- Sliders grid & groups --- */
.sliders-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    transition: opacity 0.3s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- Séparation avec le bouton de validation --- */
.modal-actions {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* --- Le bouton "ADN" version pilule (rappel) --- */
.checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border-radius: 50px;
    border: 1px solid #374151;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.like-container input:checked ~ .checkmark {
    background-color: rgba(0, 255, 255, 0.1); /* Cyan discret ou gardez le rouge selon votre vibe */
    color: #00f2ff; 
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}/* Suppression radicale de la checkbox moche */
#dna-check {
    display: none !important;
}

.like-selection {
    margin: 30px 0; /* Plus d'air au-dessus et en-dessous */
    text-align: center;
}

.dna-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #1a1d23; /* Fond sombre pro */
    border: 2px solid #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.dna-icon {
    font-size: 1.2rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.dna-text {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: #9ca3af; /* Gris clair comme demandé */
}

/* --- ÉTAT SURVOL --- */
.dna-button:hover {
    border-color: #4b5563;
    background: #242933;
    transform: translateY(-2px);
}

/* --- ÉTAT COCHÉ (ADN ACTIVÉ) --- */
#dna-check:checked + .dna-button {
    background: rgba(0, 242, 255, 0.05); /* Teinte cyan très légère */
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15), inset 0 0 10px rgba(0, 242, 255, 0.05);
}

#dna-check:checked + .dna-button .dna-text {
    color: #00f2ff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

#dna-check:checked + .dna-button .dna-icon {
    filter: grayscale(0%); /* L'émoji retrouve ses couleurs */
}
.watch-providers {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.watch-providers h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-dim);
}

.provider-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #9ca3af; /* Votre gris clair */
}

.provider-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.provider-logo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.provider-logo:hover {
    transform: scale(1.1);
}

.justwatch-attribution {
    margin-top: 15px;
    opacity: 0.5;
    font-style: italic;
    font-size: 0.65rem;
}

/* ==========================================================================
   PAGE DE CONNEXION (LOGIN.PHP)
   ========================================================================== */

.login-page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #050505; /* Fond noir profond pour l'ADN */
}

/* Conteneur de l'animation DNA */
.dna-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.15); /* Agrandissement pour immersion */
    pointer-events: none;
}

/* Gradient de fondu par-dessus l'animation */
.dna-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondu au noir en bas de page */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 50%, 
        #050505 90%
    );
    z-index: 2;
}

/* Carte de connexion (Glassmorphism) */
.login-card {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 45px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 460px;
    width: 92%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.login-card h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
    color: #fff;
}

.login-card p {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.5;
}

/* Options de connexion */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 45px;
}

/* Boutons OAuth */
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.btn-oauth:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Discord Style */
.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

/* Google Style */
.btn-google {
    background: #ffffff;
    color: #1a1a1a;
}

.btn-google:hover {
    background: #f3f3f3;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-oauth img {
    width: 24px;
    height: 24px;
}

/* Footer de la carte */
.login-footer {
    margin-top: 45px;
    font-size: 0.65rem;
    color: rgba(156, 163, 175, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Responsive ajustements */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 25px;
    }
    .login-card h1 {
        font-size: 2.2rem;
    }
}
.radar-wrapper:hover .btn-export-chart {
    opacity: 1;
}

.btn-export-chart {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 20;
}

.btn-export-chart:hover {
    background: var(--pastel-blue);
    transform: scale(1.1);
}
/* ==========================================================================
   DASHBOARD ADMIN (ADMIN.PHP)
   ========================================================================== */
.dash-container { 
    display: grid; 
    grid-template-columns: 1fr 350px; 
    gap: 30px; 
    max-width: 1400px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.widget { 
    background: rgba(15, 15, 15, 0.6); 
    border: 1px solid var(--border); 
    border-radius: 24px; 
    padding: 25px; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
}

.widget-title { 
    font-size: 0.7rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--text-dim); 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.widget-title::before { 
    content: ''; 
    width: 4px; 
    height: 12px; 
    background: var(--pastel-blue); 
    border-radius: 2px; 
}

.stats-banner { 
    grid-column: 1 / -1; 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.stat-mini { text-align: center; }
.stat-mini h3 { font-size: 2rem; font-weight: 900; color: #fff; margin: 0; }
.stat-mini p { font-size: 0.6rem; text-transform: uppercase; color: var(--pastel-blue); letter-spacing: 1px; margin: 5px 0 0 0; }

.user-rank-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.user-rank-item:last-child { border: none; }
.rank-number { font-size: 0.8rem; font-weight: 900; color: var(--text-dim); width: 20px; }
.user-rank-avatar { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; }
.user-rank-info { flex: 1; }
.user-rank-name { display: block; font-size: 0.85rem; font-weight: 700; }
.user-rank-count { font-size: 0.7rem; color: var(--pastel-blue); }

.top-movies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.top-movies-grid .movie-card { transform: scale(0.95); transition: 0.3s; }
.top-movies-grid .movie-card:hover { transform: scale(1); }

.admin-select { 
    width: 100%; 
    padding: 12px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    color: #fff; 
    margin-bottom: 15px; 
    font-size: 0.9rem; 
    outline: none;
}

.admin-select option { background: #050505; }

@media (max-width: 1100px) { 
    .dash-container { grid-template-columns: 1fr; } 
    .stats-banner { grid-template-columns: repeat(2, 1fr); }
}
/* ==========================================================================
   AUTOCOMPLETE ADMIN
   ========================================================================== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(167, 199, 231, 0.1);
}

.autocomplete-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* Scrollbar discrète pour le dropdown */
.autocomplete-dropdown::-webkit-scrollbar { width: 6px; }
.autocomplete-dropdown::-webkit-scrollbar-track { background: transparent; }
.autocomplete-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
/* ADMIN DASHBOARD */
.admin-form-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-btns-row { display: flex; gap: 10px; margin-top: 15px; }
.btn-danger-soft { background: rgba(255, 77, 77, 0.1); color: var(--danger); border: 1px solid rgba(255, 77, 77, 0.2); opacity: 0.6; }
.badge-count-admin { position: absolute; top: 10px; left: 10px; z-index: 5; background: var(--pastel-blue); color: #000; padding: 2px 8px; border-radius: 10px; font-size: 0.6rem; font-weight: 900; }

/* AUTOCOMPLETE */
.autocomplete-wrapper { position: relative; }
.autocomplete-dropdown { 
    position: absolute; top: 100%; left: 0; right: 0; 
    background: rgba(15, 15, 15, 0.98); border: 1px solid var(--border); 
    border-radius: 0 0 12px 12px; max-height: 200px; overflow-y: auto; 
    z-index: 100; display: none; backdrop-filter: blur(15px);
}
.autocomplete-item { padding: 10px 15px; cursor: pointer; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.autocomplete-item:hover { background: rgba(167, 199, 231, 0.1); }
.autocomplete-avatar { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.autocomplete-empty { padding: 15px; font-size: 0.8rem; color: var(--text-dim); }.user-details-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

.panel-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.panel-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--pastel-blue); }
.panel-info h2 { font-size: 1.2rem; margin: 0; }
.panel-id-tag { font-size: 0.6rem; color: var(--text-dim); font-family: monospace; }

.panel-stats-grid { display: flex; gap: 30px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.p-stat { display: flex; flex-direction: column; }
.p-val { font-size: 1.2rem; font-weight: 900; color: var(--pastel-blue); }
.p-lab { font-size: 0.6rem; text-transform: uppercase; color: var(--text-dim); }

.panel-badges label { font-size: 0.6rem; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 10px; }
.p-badges-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.p-badge-tag { font-size: 0.6rem; padding: 4px 10px; border-radius: 20px; border: 1px solid; font-weight: 800; }

.panel-actions-box { margin-top: 20px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   USER PROFILE (USER.PHP)
   ========================================================================== */
.adn-flex-container { display: flex; align-items: center; gap: 40px; margin-top: 20px; }
.adn-radar-wrapper { flex: 1.5; max-width: 400px; }
.user-badges-section { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.badge-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 12px 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; transition: 0.2s; }
.badge-item:hover { transform: translateX(5px); border-color: var(--pastel-blue); }
.badge-icon-circle { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-color); border: 1px solid var(--border); font-size: 0.9em; }

/* Modal Édition Profil */
.edit-profile-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.edit-profile-content { background: var(--bg-color); border: 1px solid var(--border); border-radius: 16px; padding: 30px; width: 90%; max-width: 400px; text-align: center; }
.edit-avatar-preview { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 2px dashed var(--border); margin: 0 auto 20px auto; cursor: pointer; transition: 0.3s; display: block; }
.edit-avatar-preview:hover { border-color: var(--pastel-blue); opacity: 0.8; }

@media (max-width: 900px) {
    .adn-flex-container { flex-direction: column; }
    .adn-radar-wrapper { max-width: 300px; width: 100%; margin: 0 auto; }
}
/* ==========================================================================
    CORRUPTION 
   ========================================================================== */
.page-anomaly {
    background-color: #050505;
    color: white;
    font-family: monospace;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.page-anomaly .glitch-container {
    max-width: 600px;
    padding: 20px;
    border: 1px solid rgba(255, 0, 85, 0.3);
    background: rgba(25, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

.page-anomaly .glitch-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: contrast(200%) grayscale(100%) invert(100%);
    mix-blend-mode: exclusion;
    animation: shake 0.5s infinite;
}

.page-anomaly .glitch-text {
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.page-anomaly .glitch-text::before, 
.page-anomaly .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #050505;
    opacity: 0.8;
}

.page-anomaly .glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff0055;
    animation: noise 2s infinite linear alternate-reverse;
}

.page-anomaly .glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    animation: noise 3s infinite linear alternate-reverse;
}

.page-anomaly .system-log {
    font-size: 0.8rem;
    color: #ff0055;
    text-align: left;
    margin-top: 30px;
    line-height: 1.5;
}

.page-anomaly .award-alert {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border-left: 4px solid #00ffff;
    color: #00ffff;
    font-size: 0.9rem;
    animation: blink 1s infinite;
}

/* Animations spécifiques à l'anomalie */
@keyframes noise {
    0% { clip: rect(24px, 9999px, 90px, 0); }
    20% { clip: rect(85px, 9999px, 140px, 0); }
    40% { clip: rect(10px, 9999px, 40px, 0); }
    60% { clip: rect(100px, 9999px, 120px, 0); }
    80% { clip: rect(50px, 9999px, 80px, 0); }
    100% { clip: rect(130px, 9999px, 150px, 0); }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.3; } 
}
.share-adn-link {
    color: var(--pastel-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8em;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-adn-link:hover {
    background: rgba(167, 199, 231, 0.1);
    border-color: rgba(167, 199, 231, 0.3);
    letter-spacing: 1.5px; /* Petit effet de glitch de largeur */
}
/* ==========================================================================
   NAVIGATION & BURGER MENU
   ========================================================================== */

/* Structure de base commune */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* --- MOBILE FIRST (Jusqu'à 768px) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Caché par défaut */
        flex-direction: column;
        width: 100%;
        background: var(--bg-main, #050505);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;}
        }

