/* ========================================
   BACKROOMS - PAGE D'ACCUEIL IMMERSIVE
   ======================================== */

:root {
    --wallpaper-yellow: #c9b77c;
    --wallpaper-light: #d4c48a;
    --wallpaper-dark: #b5a46a;
    --wallpaper-stain: #baa870;
    --carpet-main: #6b5344;
    --carpet-dark: #5c4636;
    --carpet-wet: #4a3828;
    --fluorescent: #fffde7;
    --fluorescent-glow: rgba(255, 253, 231, 0.8);
    --office-gray: #8a8a7a;
    --text-dark: #2a2a20;
    --text-faded: #5a5a4a;
    --danger-red: #8b3a3a;
}

* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--wallpaper-yellow);
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--wallpaper-yellow) !important;
    border-bottom: 3px solid var(--carpet-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: var(--text-dark) !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    background-color: var(--carpet-main) !important;
    color: var(--fluorescent) !important;
    border-radius: 2px;
}

.nav-user-link {
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 2px;
    height: 100%;
    transition: all 0.2s ease;
}

.nav-user-link:hover {
    text-decoration: none;
    background-color: var(--carpet-main);
    color: var(--fluorescent);
}

.nav-avatar {
    border-radius: 50%;
    border: 2px solid var(--carpet-main);
    object-fit: cover;
    vertical-align: middle;
}

.custom-toggler {
    border: 2px solid var(--carpet-main);
    border-radius: 2px;
}

.custom-toggler .navbar-toggler-icon {
    background-image: none;
    width: 30px;
    height: 3px;
    background-color: var(--carpet-main);
    display: block;
    margin: 6px auto;
}

.retro-font {
    color: var(--text-dark) !important;
    font-family: 'Arial', sans-serif;
}

.bg-retro {
    background-color: var(--wallpaper-yellow);
}

.retro-link {
    color: var(--text-dark) !important;
    padding: 6px 12px;
    border-radius: 2px;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.retro-link:hover {
    background-color: var(--carpet-main) !important;
    color: var(--fluorescent) !important;
    text-decoration: none;
}

/* Désactiver les effets de zoom navbar */
.navbar *,
.navbar *:hover,
.nav-user-link:hover,
.nav-avatar:hover,
.retro-link:hover {
    transform: none !important;
    zoom: 1 !important;
}

/* ========== CONTENEUR PRINCIPAL ========== */
.accueil-container {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 253, 200, 0.3) 0%, transparent 60%),
        repeating-linear-gradient(90deg, var(--wallpaper-yellow) 0px, var(--wallpaper-light) 2px, var(--wallpaper-yellow) 4px),
        var(--wallpaper-yellow);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 60px 20px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%),
        radial-gradient(ellipse at center top, var(--fluorescent-glow) 0%, transparent 50%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-glitch-text {
    margin-bottom: 30px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--carpet-dark);
    text-shadow:
        2px 2px 0 var(--wallpaper-dark),
        4px 4px 0 rgba(107, 83, 68, 0.3);
    letter-spacing: 8px;
    position: relative;
    animation: flicker 4s infinite;
}

@keyframes flicker {
    0%, 90%, 100% { opacity: 1; }
    91%, 93%, 95%, 97% { opacity: 0.8; }
    92%, 94%, 96%, 98% { opacity: 1; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-style: italic;
}

.hero-warning {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 58, 58, 0.15);
    border: 2px solid var(--danger-red);
    border-radius: 2px;
    padding: 12px 25px;
    margin-bottom: 40px;
    animation: pulse-warning 3s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 58, 58, 0.3); }
    50% { box-shadow: 0 0 15px 5px rgba(139, 58, 58, 0.2); }
}

.warning-icon {
    font-size: 1.3rem;
}

.warning-text {
    color: var(--danger-red);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-enter {
    display: inline-block;
    position: relative;
    background: var(--carpet-main);
    color: var(--fluorescent);
    border: 3px solid var(--carpet-dark);
    border-radius: 2px;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enter:hover {
    background: var(--carpet-dark);
    color: var(--fluorescent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 83, 68, 0.4);
    text-decoration: none;
}

.btn-enter-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-faded);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--carpet-main);
    border-bottom: 2px solid var(--carpet-main);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== SECTIONS COMMUNES ========== */
.section-card {
    background: linear-gradient(135deg, var(--wallpaper-light) 0%, var(--wallpaper-yellow) 100%);
    border: 3px solid var(--carpet-main);
    border-radius: 2px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 40px;
    box-shadow: 0 0 0 6px var(--wallpaper-dark), 0 8px 30px rgba(0,0,0,0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-title {
    color: var(--carpet-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--carpet-main);
    margin: 0 auto;
}

/* ========== PRÉSENTATION ========== */
.presentation-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: center;
}

.presentation-intro {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 253, 231, 0.5);
    border-left: 4px solid var(--carpet-main);
}

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

.feature-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 253, 231, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 253, 231, 0.6);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--carpet-main);
    border-radius: 50%;
}

.feature-text h4 {
    color: var(--carpet-dark);
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 700;
}

.feature-text p {
    color: var(--text-faded);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.presentation-image {
    text-align: center;
}

.entity-image {
    max-width: 100%;
    border: 4px solid var(--carpet-main);
    border-radius: 2px;
    box-shadow: 0 8px 30px rgba(107, 83, 68, 0.4);
    filter: contrast(1.1) brightness(0.95);
    transition: all 0.4s ease;
}

.entity-image:hover {
    transform: scale(1.03);
    filter: contrast(1.15) brightness(0.9);
    box-shadow: 0 12px 40px rgba(107, 83, 68, 0.5);
}

.image-caption {
    margin-top: 15px;
    color: var(--text-faded);
    font-style: italic;
    font-size: 0.9rem;
}

/* ========== STATISTIQUES ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-box {
    position: relative;
    background: rgba(255, 253, 231, 0.5);
    border: 2px solid var(--carpet-main);
    border-radius: 2px;
    padding: 30px 20px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 83, 68, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--carpet-dark);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-icon-bg {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
}

/* ========== DUAL SECTION (CLASSEMENT + NEWS) ========== */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dual-section .section-card {
    margin: 0;
}

/* ========== CLASSEMENT ========== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 253, 231, 0.4);
    border: 1px solid var(--wallpaper-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(255, 253, 231, 0.7);
    transform: translateX(5px);
}

.ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 253, 231, 0.4));
    border-color: #d4af37;
}

.ranking-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(255, 253, 231, 0.4));
    border-color: #a8a8a8;
}

.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(255, 253, 231, 0.4));
    border-color: #cd7f32;
}

.rank-position {
    width: 40px;
    text-align: center;
}

.rank-medal {
    font-size: 1.5rem;
}

.rank-number {
    color: var(--text-faded);
    font-weight: bold;
    font-size: 1.1rem;
}

.rank-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--carpet-main);
    object-fit: cover;
}

.rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rank-name {
    color: var(--carpet-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rank-name:hover {
    color: var(--carpet-main);
    text-decoration: underline;
}

.rank-level {
    color: var(--text-faded);
    font-size: 0.85rem;
}

.rank-xp {
    color: var(--carpet-main);
    font-weight: bold;
    font-size: 0.95rem;
}

/* ========== NEWS ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 253, 231, 0.4);
    border: 1px solid var(--wallpaper-dark);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 253, 231, 0.7);
    transform: translateX(5px);
    text-decoration: none;
}

.news-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.news-content {
    flex: 1;
}

.news-title {
    color: var(--carpet-dark);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.news-meta {
    display: flex;
    gap: 15px;
    color: var(--text-faded);
    font-size: 0.85rem;
}

.news-arrow {
    color: var(--carpet-main);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.news-item:hover .news-arrow {
    transform: translateX(5px);
}

/* ========== BOUTON SECTION ========== */
.btn-section {
    display: block;
    text-align: center;
    background: var(--carpet-main);
    color: var(--fluorescent);
    border: 2px solid var(--carpet-dark);
    border-radius: 2px;
    padding: 12px 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-section:hover {
    background: var(--carpet-dark);
    color: var(--fluorescent);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ========== NO DATA ========== */
.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-faded);
    font-style: italic;
}

/* ========== CITATION FINALE ========== */
.quote-section {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.final-quote {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
    margin: 0;
    position: relative;
}

.quote-mark {
    font-size: 3rem;
    color: var(--carpet-main);
    opacity: 0.5;
    line-height: 0;
    vertical-align: middle;
}

.quote-author {
    display: block;
    margin-top: 20px;
    color: var(--text-faded);
    font-size: 0.95rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .presentation-content {
        grid-template-columns: 1fr;
    }

    .presentation-image {
        order: -1;
    }

    .entity-image {
        max-width: 300px;
    }

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

    .dual-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-warning {
        flex-direction: column;
        text-align: center;
    }

    .btn-enter {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .section-card {
        margin: 20px 15px;
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .presentation-features {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 2.2rem;
    }

    .dual-section {
        padding: 0 15px;
    }

    .ranking-item,
    .news-item {
        padding: 10px;
    }

    .rank-xp {
        display: none;
    }

    .final-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .stat-box {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .rank-avatar,
    .news-icon {
        display: none;
    }
}

/* ========== BOUTON RETRO GLOBAL ========== */
.btn-retro,
a.btn-retro {
    background: var(--carpet-main);
    color: var(--fluorescent) !important;
    border: 3px solid var(--carpet-dark);
    border-radius: 2px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-retro:hover,
a.btn-retro:hover {
    background: var(--carpet-dark);
    color: var(--fluorescent) !important;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ========== NIVEAUX CAROUSEL ========== */
.levels-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.levels-section-header {
    text-align: center;
    margin-bottom: 25px;
}

.levels-section-header h2 {
    color: var(--carpet-dark);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.levels-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    background: var(--carpet-main);
    color: var(--fluorescent);
    border: 3px solid var(--carpet-dark);
    border-radius: 2px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--carpet-dark);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.carousel-arrow-left  { left: 0; }
.carousel-arrow-right { right: 0; }

.levels-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.levels-carousel::-webkit-scrollbar { display: none; }

.level-card {
    flex: 0 0 270px;
    scroll-snap-align: start;
    min-height: 250px;
    position: relative;
    border-radius: 2px;
    padding: 22px 24px 20px;
    overflow: hidden;
    transition: all 0.35s ease;
    text-decoration: none;
    display: block;
    border: 3px solid #3a3a3a;
    background: linear-gradient(135deg, #141414 0%, #1c1c1c 100%);
    color: #c8c0b0;
}

.level-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
}

.level-card-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.level-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.level-card-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
    opacity: 0.7;
    white-space: nowrap;
}

.level-card-danger {
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
}

.level-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.level-card-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 15px;
}

.level-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.level-card-btn {
    display: inline-block;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.level-card:hover .level-card-btn {
    opacity: 1 !important;
}

/* INTRO */
.level-card.theme-intro {
    background: linear-gradient(135deg, #e8e4dc 0%, #d8d4cc 100%);
    border-color: #a8a49c;
    color: #3a3a35;
}
.level-card.theme-intro .level-card-danger { background: rgba(100,100,90,0.15); color: #6a6a60; }
.level-card.theme-intro .level-card-btn { background: rgba(100,100,90,0.15); color: #4a4a40; border-color: #a8a49c; }
.level-card.theme-intro:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.2); border-color: #888880; }

/* NIVEAU 0 — moquette jaune */
.level-card.theme-niveau_0 {
    background: linear-gradient(135deg, #c9b77c 0%, #b09858 100%);
    border-color: #8a7550;
    color: #2a1e08;
}
.level-card.theme-niveau_0 .level-card-danger { background: rgba(139,90,40,0.2); color: #6a4a20; }
.level-card.theme-niveau_0 .level-card-btn { background: rgba(139,100,50,0.3); color: #2a1e08; border-color: #8a7550; }
.level-card.theme-niveau_0:hover { box-shadow: 0 10px 35px rgba(180,140,60,0.4); border-color: #6a5530; }

/* NIVEAU 1 — parking béton */
.level-card.theme-niveau_1 {
    background: linear-gradient(135deg, #1a1c1a 0%, #252820 100%);
    border-color: #404438;
    color: #b8b4a8;
}
.level-card.theme-niveau_1 .level-card-danger { background: rgba(200,60,40,0.15); color: #c04030; }
.level-card.theme-niveau_1 .level-card-btn { background: rgba(180,170,140,0.1); color: #b8b4a8; border-color: #505448; }
.level-card.theme-niveau_1:hover { box-shadow: 0 10px 35px rgba(0,0,0,0.5); border-color: #606458; }

/* NIVEAU 2 — tuyaux chaleur */
.level-card.theme-niveau_2 {
    background: linear-gradient(135deg, #28160a 0%, #3c2010 100%);
    border-color: #7a4818;
    color: #c8a060;
}
.level-card.theme-niveau_2 .level-card-danger { background: rgba(200,80,20,0.2); color: #e07030; }
.level-card.theme-niveau_2 .level-card-btn { background: rgba(180,100,30,0.2); color: #c8a060; border-color: #7a4818; }
.level-card.theme-niveau_2:hover { box-shadow: 0 10px 35px rgba(180,80,20,0.4); border-color: #9a6828; }

/* NIVEAU 3 — câbles électriques */
.level-card.theme-niveau_3 {
    background: linear-gradient(135deg, #080c18 0%, #0e1428 100%);
    border-color: #1e3a6a;
    color: #8ab4e0;
}
.level-card.theme-niveau_3 .level-card-danger { background: rgba(30,100,200,0.15); color: #4a90d0; }
.level-card.theme-niveau_3 .level-card-btn { background: rgba(30,80,180,0.2); color: #8ab4e0; border-color: #1e3a6a; }
.level-card.theme-niveau_3:hover { box-shadow: 0 10px 35px rgba(30,100,220,0.3); border-color: #2e5a9a; }

/* NIVEAU 4 — fondations, canaux */
.level-card.theme-niveau_4 {
    background: linear-gradient(135deg, #080d12 0%, #0d1520 100%);
    border-color: rgba(58,127,168,0.45);
    color: #8eafc4;
}
.level-card.theme-niveau_4 .level-card-danger { background: rgba(58,127,168,0.15); color: #7facc6; }
.level-card.theme-niveau_4 .level-card-btn { background: rgba(58,127,168,0.12); color: #8eafc4; border-color: rgba(58,127,168,0.5); }
.level-card.theme-niveau_4:hover { box-shadow: 0 10px 35px rgba(58,127,168,0.3); border-color: rgba(58,127,168,0.8); }

/* NIVEAU 5 — l'hôtel */
.level-card.theme-niveau_5 {
    background: linear-gradient(135deg, #0a0806 0%, #140a08 100%);
    border-color: rgba(200,168,64,0.45);
    color: #d4c4a8;
}
.level-card.theme-niveau_5 .level-card-danger { background: rgba(200,168,64,0.15); color: #dbc683; }
.level-card.theme-niveau_5 .level-card-btn { background: rgba(200,168,64,0.12); color: #d4c4a8; border-color: rgba(200,168,64,0.5); }
.level-card.theme-niveau_5:hover { box-shadow: 0 10px 35px rgba(200,168,64,0.3); border-color: rgba(200,168,64,0.8); }

/* NIVEAU 6 — catacombes */
.level-card.theme-niveau_6 {
    background: linear-gradient(135deg, #060402 0%, #0d0906 100%);
    border-color: rgba(232,104,26,0.45);
    color: #c8b89a;
}
.level-card.theme-niveau_6 .level-card-danger { background: rgba(232,104,26,0.15); color: #f09d6a; }
.level-card.theme-niveau_6 .level-card-btn { background: rgba(232,104,26,0.12); color: #c8b89a; border-color: rgba(232,104,26,0.5); }
.level-card.theme-niveau_6:hover { box-shadow: 0 10px 35px rgba(232,104,26,0.3); border-color: rgba(232,104,26,0.8); }

/* NIVEAU 7 — l'océan */
.level-card.theme-niveau_7 {
    background: linear-gradient(135deg, #020508 0%, #050a0f 100%);
    border-color: rgba(106,159,186,0.45);
    color: #b0c8d8;
}
.level-card.theme-niveau_7 .level-card-danger { background: rgba(106,159,186,0.15); color: #9ec1d2; }
.level-card.theme-niveau_7 .level-card-btn { background: rgba(106,159,186,0.12); color: #b0c8d8; border-color: rgba(106,159,186,0.5); }
.level-card.theme-niveau_7:hover { box-shadow: 0 10px 35px rgba(106,159,186,0.3); border-color: rgba(106,159,186,0.8); }

/* NIVEAU 8 — grottes */
.level-card.theme-niveau_8 {
    background: linear-gradient(135deg, #030508 0%, #080c10 100%);
    border-color: rgba(42,106,74,0.45);
    color: #7a9e8a;
}
.level-card.theme-niveau_8 .level-card-danger { background: rgba(42,106,74,0.15); color: #759e89; }
.level-card.theme-niveau_8 .level-card-btn { background: rgba(42,106,74,0.12); color: #7a9e8a; border-color: rgba(42,106,74,0.5); }
.level-card.theme-niveau_8:hover { box-shadow: 0 10px 35px rgba(42,106,74,0.3); border-color: rgba(42,106,74,0.8); }

/* NIVEAU 9 — banlieues obscures */
.level-card.theme-niveau_9 {
    background: linear-gradient(135deg, #050505 0%, #0c0c0c 100%);
    border-color: rgba(200,120,10,0.45);
    color: #a89a7a;
}
.level-card.theme-niveau_9 .level-card-danger { background: rgba(200,120,10,0.15); color: #dba760; }
.level-card.theme-niveau_9 .level-card-btn { background: rgba(200,120,10,0.12); color: #a89a7a; border-color: rgba(200,120,10,0.5); }
.level-card.theme-niveau_9:hover { box-shadow: 0 10px 35px rgba(200,120,10,0.3); border-color: rgba(200,120,10,0.8); }

/* NIVEAU 10 — la récolte */
.level-card.theme-niveau_10 {
    background: linear-gradient(135deg, #0a0b08 0%, #10120c 100%);
    border-color: rgba(106,136,64,0.45);
    color: #9aaa80;
}
.level-card.theme-niveau_10 .level-card-danger { background: rgba(106,136,64,0.15); color: #9eb283; }
.level-card.theme-niveau_10 .level-card-btn { background: rgba(106,136,64,0.12); color: #9aaa80; border-color: rgba(106,136,64,0.5); }
.level-card.theme-niveau_10:hover { box-shadow: 0 10px 35px rgba(106,136,64,0.3); border-color: rgba(106,136,64,0.8); }

/* NIVEAU 11 — jungle de béton */
.level-card.theme-niveau_11 {
    background: linear-gradient(135deg, #090a0b 0%, #0e1012 100%);
    border-color: rgba(90,98,112,0.45);
    color: #8a9098;
}
.level-card.theme-niveau_11 .level-card-danger { background: rgba(90,98,112,0.15); color: #9499a2; }
.level-card.theme-niveau_11 .level-card-btn { background: rgba(90,98,112,0.12); color: #8a9098; border-color: rgba(90,98,112,0.5); }
.level-card.theme-niveau_11:hover { box-shadow: 0 10px 35px rgba(90,98,112,0.3); border-color: rgba(90,98,112,0.8); }

/* HUB — la gare de transit */
.level-card.theme-hub {
    background: linear-gradient(135deg, #080a0c 0%, #0e1014 100%);
    border-color: rgba(168,144,96,0.45);
    color: #c8c0b0;
}
.level-card.theme-hub .level-card-danger { background: rgba(168,144,96,0.15); color: #c6b798; }
.level-card.theme-hub .level-card-btn { background: rgba(168,144,96,0.12); color: #c8c0b0; border-color: rgba(168,144,96,0.5); }
.level-card.theme-hub:hover { box-shadow: 0 10px 35px rgba(168,144,96,0.3); border-color: rgba(168,144,96,0.8); }

/* LEVEL FUN — =) */
.level-card.theme-level_fun {
    background: linear-gradient(135deg, #0d0008 0%, #150010 100%);
    border-color: rgba(255,77,166,0.45);
    color: #e8a0d0;
}
.level-card.theme-level_fun .level-card-danger { background: rgba(255,77,166,0.15); color: #ff8bc5; }
.level-card.theme-level_fun .level-card-btn { background: rgba(255,77,166,0.12); color: #e8a0d0; border-color: rgba(255,77,166,0.5); }
.level-card.theme-level_fun:hover { box-shadow: 0 10px 35px rgba(255,77,166,0.3); border-color: rgba(255,77,166,0.8); }

/* NIVEAU 36 — l'aéroport */
.level-card.theme-niveau_36 {
    background: linear-gradient(135deg, #0a0d12 0%, #0e1014 100%);
    border-color: rgba(127,168,200,0.45);
    color: #c8d0d8;
}
.level-card.theme-niveau_36 .level-card-danger { background: rgba(127,168,200,0.15); color: #acc6db; }
.level-card.theme-niveau_36 .level-card-btn { background: rgba(127,168,200,0.12); color: #c8d0d8; border-color: rgba(127,168,200,0.5); }
.level-card.theme-niveau_36:hover { box-shadow: 0 10px 35px rgba(127,168,200,0.3); border-color: rgba(127,168,200,0.8); }

/* NIVEAU 200 — home */
.level-card.theme-niveau_200 {
    background: linear-gradient(135deg, #120c0a 0%, #0e1014 100%);
    border-color: rgba(224,160,112,0.45);
    color: #e8d8c8;
}
.level-card.theme-niveau_200 .level-card-danger { background: rgba(224,160,112,0.15); color: #ebc1a2; }
.level-card.theme-niveau_200 .level-card-btn { background: rgba(224,160,112,0.12); color: #e8d8c8; border-color: rgba(224,160,112,0.5); }
.level-card.theme-niveau_200:hover { box-shadow: 0 10px 35px rgba(224,160,112,0.3); border-color: rgba(224,160,112,0.8); }

/* NIVEAU 666 — bienvenue en enfer */
.level-card.theme-niveau_666 {
    background: linear-gradient(135deg, #140504 0%, #0a0202 100%);
    border-color: rgba(220,60,40,0.45);
    color: #f0d0c8;
}
.level-card.theme-niveau_666 .level-card-danger { background: rgba(220,60,40,0.15); color: #ff8a70; }
.level-card.theme-niveau_666 .level-card-btn { background: rgba(220,60,40,0.12); color: #f0d0c8; border-color: rgba(220,60,40,0.5); }
.level-card.theme-niveau_666:hover { box-shadow: 0 10px 35px rgba(220,60,40,0.35); border-color: rgba(220,60,40,0.85); }

/* NIVEAU VENIR */
.level-card.theme-upcoming {
    background: linear-gradient(135deg, #121212 0%, #181818 100%);
    border-color: #303030;
    border-style: dashed;
    color: #404040;
    cursor: not-allowed;
    opacity: 0.7;
}
.level-card.theme-upcoming:hover { transform: none; box-shadow: none; }

@media (max-width: 768px) {
    .terminal-body { height: 180px; }
    .level-card { flex: 0 0 230px; min-height: 230px; }
}

/* ========== QUOI DE NEUF (accueil) ========== */
.quoi-de-neuf {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    max-width: 1100px; margin: 24px auto; padding: 12px 18px;
    background: var(--carpet-main); color: var(--fluorescent) !important; text-decoration: none;
    border: 3px solid var(--carpet-dark); box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    position: relative; z-index: 2; transition: transform 0.2s ease;
}
.quoi-de-neuf:hover { transform: translateY(-2px); text-decoration: none; }
.qdn-etiquette { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; }
.qdn-titre { font-weight: bold; font-size: 1.05rem; }
.qdn-date { font-size: 0.85rem; opacity: 0.75; }
.qdn-lien { margin-left: auto; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 600px) { .quoi-de-neuf { margin: 16px; } .qdn-lien { margin-left: 0; } }
