:root {
    --primary: #ff5e00; /* Ultra vibrant orange */
    --primary-glow: rgba(255, 94, 0, 0.6);
    --secondary: #6e00ff; /* Deep cyberpunk purple */
    --secondary-glow: rgba(110, 0, 255, 0.6);
    
    --bg-dark: #050505;
    --bg-surface: #0a0a0c;
    --glass-bg: rgba(15, 15, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --text-main: #ffffff;
    --text-muted: #8e94a3;
    
    --steam-color: #00adee;
    --discord-color: #5865F2;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Ambient Background 2026 Style */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.ambient-bg::before, .ambient-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out alternate;
}

.ambient-bg::before {
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.ambient-bg::after {
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism 2.0 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-panel:hover::before {
    left: 200%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.6rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.65);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-brand img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 22px var(--primary-glow));
    transition: var(--transition);
}

.nav-brand:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: var(--glass-bg);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link.active, .nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.nav-link.active::after, .nav-link:hover::after {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* 2026 Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff3300);
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px var(--primary-glow);
}

/* Connexion Steam : verre sombre + accent orange du site, logo dans une pastille lumineuse */
.btn-steam {
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.10), rgba(15, 15, 20, 0.65));
    color: white;
    border: 1px solid rgba(255, 94, 0, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1.2rem 0.5rem 0.5rem;
    gap: 0.7rem;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.btn-steam i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff3300);
    box-shadow: 0 0 14px var(--primary-glow);
    font-size: 1rem;
    transition: var(--transition);
}

.btn-steam:hover {
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.22), rgba(15, 15, 20, 0.7));
    border-color: rgba(255, 94, 0, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 94, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-steam:hover i {
    transform: rotate(-12deg) scale(1.08);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-discord {
    background: linear-gradient(135deg, var(--discord-color), #4752C4);
    color: white;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.6);
}

/* Hero Section */
.main-content {
    margin-top: 0; /* Changed for hero to go behind navbar */
    min-height: 100vh;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.6rem, 11vw, 6rem); /* s'adapte aux petits écrans */
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 0 auto 3rem;
    max-width: 700px;
    font-weight: 300;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 94, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Sections */
.section-header {
    text-align: center;
    margin: 6rem 0 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Server Status Badge */
.server-status {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success), 0 0 20px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.players-count {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 4rem 4rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--primary);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }

/* Badges */
.badge {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-success { background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46,204,113,0.3); color: var(--success); }
.badge-danger { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231,76,60,0.3); color: var(--danger); }

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

th, td {
    padding: 1.2rem;
    text-align: left;
}

th {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

tr tbody {
    background: transparent;
}

tbody tr {
    background: rgba(255,255,255,0.02);
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(255,255,255,0.05);
    transform: scale(1.01);
}

tbody td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
tbody td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

/* Animations */
@keyframes fadeInUp {
    from { transform: translateY(40px); }
    to { transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Sans animation (préférence d'accessibilité), le contenu reste toujours visible */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in, .leaderboard-row { animation: none !important; }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Glowing effects on rules and tables */
.rules-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}
.rules-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Global Select & Option Dark Theme Styling */
select, 
select option, 
select optgroup {
    background-color: #121218 !important;
    color: #ffffff !important;
}

select option {
    background: #121218 !important;
    color: #ffffff !important;
    padding: 10px 14px;
}

select option:hover, 
select option:focus, 
select option:checked {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* ==================== GLOBAL MODALS & FORMS ==================== */
.modal-overlay,
.site-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 1.5rem !important;
    overflow-y: auto !important;
}

.modal-overlay.show,
.site-modal.show {
    display: flex !important;
}

.modal-content,
.site-modal-content {
    background: #121218;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 94, 0, 0.1);
    animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.modal-content-lg {
    background: #121218;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 1100px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 94, 0, 0.1);
    animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: #cfd3dc;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.25) !important;
}

textarea.form-control {
    resize: vertical;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cfd3dc;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.btn-action.info {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.35);
    color: #3498db;
}

.btn-action.info:hover {
    background: rgba(52, 152, 219, 0.25);
    color: white;
}

.btn-action.success {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.35);
    color: var(--success);
}

.btn-action.success:hover {
    background: rgba(46, 204, 113, 0.25);
    color: white;
}

.btn-action.danger {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.35);
    color: var(--danger);
}

.btn-action.danger:hover {
    background: rgba(231, 76, 60, 0.25);
    color: white;
}

/* =========================================================================
   RESPONSIVE NAVBAR & MOBILE TOGGLE
   ========================================================================= */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.3rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0.6rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        padding: 0.4rem 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .nav-brand img {
        height: 65px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        background: rgba(12, 12, 18, 0.98);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 1.5rem 1rem;
        gap: 1rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(25px);
        z-index: 1001;
    }

    .nav-links.show {
        display: flex;
        animation: fadeIn 0.3s ease-out forwards;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-auth .user-menu {
        gap: 0.6rem;
    }

    .nav-brand img {
        height: 55px;
    }
}


/* ==========================================================================
   Téléphones (jusqu'à 640 px) : disposition compacte et lisible.
   Beaucoup de styles sont écrits directement dans les pages : d'où les !important.
   ========================================================================== */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }

    /* En-tête : logo à gauche, connexion puis menu à droite, sur une seule ligne */
    .navbar { padding: 0.5rem 0.9rem; gap: 0.5rem; }
    .nav-brand img { height: 44px; }
    .nav-auth { order: 2; margin-left: auto; }
    .nav-toggle { order: 3; padding: 0.45rem 0.7rem; font-size: 1.1rem; }
    .nav-auth .btn, .nav-auth .btn-steam { padding: 0.5rem 0.85rem !important; font-size: 0.78rem !important; gap: 0.4rem; white-space: nowrap; }
    .nav-auth .btn-steam { padding: 0.35rem 0.85rem 0.35rem 0.35rem !important; gap: 0.5rem; }
    .btn-steam i { width: 26px; height: 26px; font-size: 0.9rem !important; }
    .nav-auth .user-menu span { font-size: 0.75rem !important; }
    .nav-auth .user-menu img { width: 32px !important; height: 32px !important; }
    /* Joueur connecté : avatar (profil), Discord en icône et déconnexion ; pseudo et grade restent sur le profil */
    .nav-auth .user-menu { gap: 0.45rem !important; }
    .nav-auth .user-menu-identity, .nav-auth .user-discord-badge { display: none !important; }
    .nav-auth .user-menu .btn { padding: 0.45rem 0.6rem !important; }

    /* Boutons : taille normale, jamais sur deux lignes */
    .btn { padding: 0.75rem 1.2rem !important; font-size: 0.85rem !important; letter-spacing: 0.3px; }
    .btn i { font-size: 1rem !important; }

    /* Accueil : bloc d'ouverture */
    .hero { min-height: auto; padding: 6.5rem 1rem 2.5rem; }
    .hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); margin-bottom: 0.8rem; }
    .hero p { font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.6rem; }
    .hero .server-status { padding: 0.4rem 0.9rem !important; gap: 0.5rem !important; margin-bottom: 1.2rem; }
    .hero .server-status span { font-size: 0.72rem !important; letter-spacing: 0.5px !important; white-space: nowrap; }
    .hero .d-flex { flex-direction: column; align-items: stretch; gap: 0.7rem !important; max-width: 320px; margin: 0 auto; }
    .hero .d-flex .btn { width: 100%; }

    /* Titres de section */
    .section-header { margin: 2.5rem 0 1.5rem; }
    .section-header h2 { font-size: clamp(1.6rem, 8vw, 2.1rem) !important; }
    .section-header p { font-size: 0.78rem !important; letter-spacing: 1.5px; line-height: 1.5; }
    .section-header p.text-muted { text-transform: none; letter-spacing: 0; font-size: 0.95rem !important; color: var(--text-muted); }
    main h1 { font-size: clamp(1.6rem, 7.5vw, 2.1rem) !important; letter-spacing: 0.5px !important; line-height: 1.2 !important; }
    main h2 { font-size: clamp(1.4rem, 7vw, 1.9rem) !important; line-height: 1.25 !important; }
    main h3 { font-size: 1.1rem !important; }

    /* Sections et cartes : marges resserrées */
    .main-content section { margin-top: 2rem !important; margin-bottom: 1.5rem !important; padding-left: 1rem !important; padding-right: 1rem !important; }
    .main-content .container { padding: 1.5rem 1rem !important; }
    .glass-panel { border-radius: 18px; }
    .main-content section > .glass-panel { padding: 1.6rem 1.2rem !important; }
    .card { padding: 1.4rem 1.2rem !important; }
    .card .card-icon { font-size: 2rem !important; margin-bottom: 0.6rem !important; }
    .grid { gap: 1rem !important; }
    .main-content p { overflow-wrap: anywhere; }

    /* Le premier bloc de chaque page passe sous l'en-tête fixe : on lui laisse la place */
    .main-content > :first-child, .main-content > style:first-child + * { padding-top: 5.5rem !important; }

    /* Encadrés côte à côte qui débordaient (Workshop, etc.) */
    .main-content [style*="min-width: 300px"], .main-content [style*="min-width: 270px"] { min-width: 0 !important; width: 100%; }
    .main-content [style*="gap: 2.5rem"] { gap: 1.2rem !important; }

    /* Pastilles d'avantages */
    .main-content span[style*="border-radius: 30px"] { font-size: 0.75rem !important; padding: 0.35rem 0.75rem !important; }

    /* Leaderboard : onglets en ligne défilante, lignes compactes */
    .main-content .staff-tab { padding: 0.5rem 0.8rem !important; font-size: 0.8rem !important; white-space: nowrap; }
    .main-content div:has(> .staff-tab) { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; gap: 0.5rem !important; margin-bottom: 1.5rem !important; padding-bottom: 0.4rem; scrollbar-width: none; }
    .leaderboard-row { padding: 0.55rem 0.8rem !important; gap: 0.5rem; }
    .leaderboard-row .rank-number { font-size: 1.3rem; width: 38px; flex-shrink: 0; }
    .leaderboard-row .player-info, .leaderboard-row .player-info > div { min-width: 0; overflow: hidden; }
    .leaderboard-row .player-name { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .leaderboard-row .stat-box { width: auto !important; padding: 0 0 0 0.7rem; flex-shrink: 0; align-items: flex-end; }
    .leaderboard-row .stat-value { font-size: 0.95rem !important; }
    .leaderboard-row .stat-label { font-size: 0.62rem; }

    /* Boutique */
    .main-content .card .btn { width: 100%; }

    /* Pied de page centré */
    footer { padding: 2rem 1rem 1.5rem !important; margin-top: 3rem !important; }
    footer .container > div { flex-direction: column; text-align: center; gap: 1.2rem !important; }
    footer .footer-logo { justify-content: center; }
    footer .container > div > div { justify-content: center; }
}

/* ==========================================================================
   Effets au défilement (page d'accueil)
   Seul le mouvement est animé : le contenu reste toujours entièrement visible et lisible (y compris pour Google).
   ========================================================================== */
html.reveal-on .reveal {
    transform: translateY(60px) scale(0.95);
    will-change: transform;
}

/* La transition n'est activée qu'après la mise en place : seule l'apparition est animée */
html.reveal-on.reveal-armed .reveal {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1s ease, border-color 1s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

html.reveal-on .reveal.is-visible {
    transform: none;
}

/* Petit éclat orange sur les cartes au moment où elles arrivent */
html.reveal-on.reveal-armed .card.reveal.is-visible,
html.reveal-on.reveal-armed .feature-carousel.reveal.is-visible .feature-card {
    animation: revealGlow 1.6s ease-out var(--reveal-delay, 0ms) 1;
}

@keyframes revealGlow {
    0% { box-shadow: 0 0 0 rgba(255, 94, 0, 0); border-color: var(--glass-border); }
    35% { box-shadow: 0 0 35px rgba(255, 94, 0, 0.35); border-color: rgba(255, 94, 0, 0.5); }
    100% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); border-color: var(--glass-border); }
}

/* Invitation à défiler */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
    transition: opacity 0.4s ease, color 0.3s ease;
}

.scroll-cue i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 94, 0, 0.4);
    background: rgba(255, 94, 0, 0.08);
    color: var(--primary);
    animation: scrollCueBounce 2s ease-in-out infinite;
}

.scroll-cue:hover { color: white; }
.scroll-cue:hover i { background: rgba(255, 94, 0, 0.2); box-shadow: 0 0 18px var(--primary-glow); }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }

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

html { scroll-behavior: smooth; }
#fonctionnalites { scroll-margin-top: 90px; }

@media (max-width: 640px) {
    .scroll-cue { position: static; transform: none; margin: 2rem auto 0; }
    .hero { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-cue i { animation: none; }
}

/* ==========================================================================
   Carrousel des fonctionnalités (page d'accueil)
   Défilement horizontal natif (doigt, trackpad, Maj + molette) avec aimantation des cartes.
   ========================================================================== */
.feature-carousel { position: relative; }

.feature-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin: -0.5rem 0 1rem;
}

.feature-carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 94, 0, 0.35);
    background: rgba(255, 94, 0, 0.08);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.feature-carousel-btn:hover:not(:disabled) {
    background: rgba(255, 94, 0, 0.22);
    border-color: rgba(255, 94, 0, 0.75);
    box-shadow: 0 0 18px var(--primary-glow);
}

.feature-carousel-btn:disabled { opacity: 0.35; cursor: default; }

.feature-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 0.25rem;
    padding: 0.5rem 0.25rem 1.2rem;
    scrollbar-width: none;
    cursor: grab;
    outline: none;
}

.feature-track::-webkit-scrollbar { display: none; }
.feature-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.feature-track:focus-visible { box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.5); border-radius: 18px; }

.feature-card {
    flex: 0 0 calc((100% - 3 * 1.2rem) / 4.3);
    min-width: 220px;
    scroll-snap-align: start;
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Liseré de couleur en haut de chaque carte */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.4rem;
    right: 1.4rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--feature-color), transparent);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--feature-color) 55%, transparent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 26px color-mix(in srgb, var(--feature-color) 25%, transparent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--feature-color);
    background: color-mix(in srgb, var(--feature-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--feature-color) 35%, transparent);
}

.feature-card h3 {
    font-size: 1.12rem;
    color: white;
    margin-bottom: 0.45rem;
}

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

.feature-progress {
    height: 3px;
    max-width: 220px;
    margin: 0.4rem auto 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.feature-progress span {
    display: block;
    height: 100%;
    width: 25%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), #ff3300);
    transition: transform 0.2s ease-out;
}

@media (max-width: 640px) {
    .feature-carousel-nav { display: none; }
    .feature-track { gap: 0.9rem; padding-bottom: 1rem; }
    .feature-card { flex-basis: 72%; min-width: 0; padding: 1.3rem 1.2rem !important; }
    .feature-card h3 { font-size: 1.05rem !important; }
}

/* Addons faits maison : badge « Exclusif » */
.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffd27a;
    background: rgba(255, 94, 0, 0.14);
    border: 1px solid rgba(255, 94, 0, 0.45);
}

.feature-card.is-exclusive { border-color: rgba(255, 94, 0, 0.22); }

.section-header .feature-intro {
    max-width: 640px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.6;
}

.section-header .feature-intro strong { color: white; }

@media (max-width: 640px) {
    .section-header .feature-intro { font-size: 0.92rem !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-muted) !important; }
}

/* ==========================================================================
   Bloc « Rejoindre le serveur » + collection Steam Workshop (page d'accueil)
   ========================================================================== */
.workshop-section { margin: 4.5rem auto 2rem; max-width: 1200px; padding: 0 1.5rem; position: relative; }

.workshop-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem;
    background: radial-gradient(circle at top left, rgba(0, 210, 211, 0.14), rgba(18, 18, 24, 0.85) 70%);
    border: 1px solid rgba(0, 210, 211, 0.28);
    border-radius: 24px;
}

.workshop-glow {
    position: absolute; top: -60px; right: -60px; width: 260px; height: 260px;
    background: rgba(0, 210, 211, 0.18); filter: blur(60px); border-radius: 50%; pointer-events: none;
}

.workshop-main { position: relative; }

.workshop-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.9rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: #00d2d3; background: rgba(0, 210, 211, 0.12); border: 1px solid rgba(0, 210, 211, 0.35);
}

.workshop-main h2 { font-size: 2.1rem; color: white; margin: 1rem 0 0.6rem; line-height: 1.2; }
.workshop-lead { color: var(--text-muted); font-size: 1rem; line-height: 1.65; margin-bottom: 1.6rem; }
.workshop-lead .txt-error { color: #ff4757; }
.workshop-lead .txt-purple { color: #e056fd; }

.workshop-steps { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 0.9rem; }
.workshop-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.workshop-steps strong { display: block; color: white; font-size: 0.98rem; margin-bottom: 0.15rem; }
.workshop-steps span { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.workshop-steps code { color: #00d2d3; background: rgba(0, 210, 211, 0.1); padding: 0.05rem 0.4rem; border-radius: 6px; font-size: 0.85rem; }

.step-number {
    flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 800; font-size: 0.9rem; color: white !important;
    background: linear-gradient(135deg, #00d2d3, #0984e3); box-shadow: 0 0 14px rgba(0, 210, 211, 0.35);
}

.workshop-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn-workshop {
    background: linear-gradient(135deg, #00d2d3, #0984e3);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 210, 211, 0.3);
}
.btn-workshop:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 210, 211, 0.45); }

.workshop-card {
    position: relative; display: block; text-decoration: none; color: inherit;
    border-radius: 18px; overflow: hidden;
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}
.workshop-card:hover { transform: translateY(-5px); border-color: rgba(0, 210, 211, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 210, 211, 0.2); }

.workshop-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; padding: 0.8rem; background: radial-gradient(circle at center, rgba(0, 210, 211, 0.18), rgba(0, 0, 0, 0.2) 70%); }
.workshop-card-placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #00d2d3; background: rgba(0, 210, 211, 0.08); }

.workshop-card-body { padding: 1.1rem 1.2rem 1.2rem; }
.workshop-card-body > strong { display: block; color: white; font-size: 1.05rem; }
.workshop-card-sub { color: var(--text-muted); font-size: 0.82rem; }

.workshop-stats { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; text-align: center; }
.workshop-stats li { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 0.55rem 0.2rem; }
.workshop-stats b { display: block; color: white; font-size: 0.92rem; }
.workshop-stats span { color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; }

.workshop-card-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #00d2d3; font-size: 0.85rem; font-weight: 700; }

@media (max-width: 900px) {
    .workshop-panel { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .workshop-card { max-width: 420px; }
}

@media (max-width: 640px) {
    .workshop-panel { padding: 1.5rem 1.1rem !important; gap: 1.5rem; }
    .workshop-main h2 { font-size: 1.5rem !important; }
    .workshop-actions { flex-direction: column; }
    .workshop-actions .btn { width: 100%; }
}

/* ==========================================================================
   Bloc « Rejoignez la communauté » (Discord) — page d'accueil
   ========================================================================== */
.discord-section { margin: 3rem auto; max-width: 1200px; padding: 0 1.5rem; position: relative; }

.discord-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(88, 101, 242, 0.2), rgba(18, 18, 24, 0.88) 65%);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-glow {
    position: absolute; bottom: -80px; left: -60px; width: 280px; height: 280px;
    background: rgba(255, 94, 0, 0.12); filter: blur(70px); border-radius: 50%; pointer-events: none;
}

.discord-main { position: relative; }

.discord-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.9rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: #8c96ff; background: rgba(88, 101, 242, 0.14); border: 1px solid rgba(88, 101, 242, 0.4);
}

.discord-main h2 { font-size: 2.1rem; color: white; margin: 1rem 0 0.6rem; line-height: 1.2; }
.discord-lead { color: var(--text-muted); font-size: 1rem; line-height: 1.65; margin-bottom: 1.2rem; max-width: 560px; }

.discord-perks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.discord-perks li {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.4rem 0.85rem; border-radius: 30px; font-size: 0.82rem; font-weight: 600; color: #cfd3dc;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-cta { padding: 0.95rem 2rem; font-size: 1rem; }

/* Visuel : Discord ⇢ flèche animée ⇢ PyrosLife */
.discord-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2.2rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition);
}
.discord-visual:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 0 35px rgba(88, 101, 242, 0.2); }

.discord-node {
    flex-shrink: 0;
    width: 92px; height: 92px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 24px;
    transition: var(--transition);
}

.discord-node-discord {
    font-size: 2.8rem; color: white;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.45);
}

.discord-node-pyros {
    background: radial-gradient(circle, rgba(255, 94, 0, 0.25), rgba(15, 15, 20, 0.9) 70%);
    border: 1px solid rgba(255, 94, 0, 0.45);
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.3);
}
.discord-node-pyros img { width: 70px; height: 70px; object-fit: contain; }

.discord-visual:hover .discord-node-discord { transform: translateX(-4px) rotate(-6deg); }
.discord-visual:hover .discord-node-pyros { transform: translateX(4px) scale(1.06); }

.discord-link { position: relative; flex: 1; min-width: 70px; height: 24px; display: flex; align-items: center; color: #ff8a3d; }
.discord-link-line {
    flex: 1; height: 4px; border-radius: 4px;
    background: repeating-linear-gradient(90deg, #8c96ff 0 8px, transparent 8px 16px);
    background-size: 32px 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
    mask-image: linear-gradient(90deg, transparent, #000 30%);
    animation: discordFlow 0.9s linear infinite;
}
.discord-link i { margin-left: -2px; font-size: 1.1rem; filter: drop-shadow(0 0 6px rgba(255, 94, 0, 0.7)); animation: discordNudge 1.8s ease-in-out infinite; }

@keyframes discordFlow { from { background-position: 0 0; } to { background-position: 32px 0; } }
@keyframes discordNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 900px) {
    .discord-panel { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .discord-visual { order: -1; max-width: 420px; }
}

@media (max-width: 640px) {
    .discord-panel { padding: 1.5rem 1.1rem !important; gap: 1.4rem; }
    .discord-main h2 { font-size: 1.5rem !important; }
    .discord-visual { padding: 1.4rem 1rem; }
    .discord-node { width: 72px; height: 72px; border-radius: 20px; }
    .discord-node-discord { font-size: 2.2rem; }
    .discord-node-pyros img { width: 54px; height: 54px; }
    .discord-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .discord-link-line, .discord-link i { animation: none; }
}
