:root {
    --bg-dark: #080404;
    --primary: #ff3c00; /* Le Rouge/Orange feu */
    --secondary: #991b1b;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    
    /* --- V2 UPGRADES : VARIABLES --- */
    --glass: rgba(255, 255, 255, 0.03); /* Verre plus transparent */
    --glass-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08); /* Bordure plus douce */
    --border-glow: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(16px);
    
    --card-radius: 24px; /* Formes plus organiques */
    --btn-radius: 50px;  /* Format Pilule */
    
    --anim-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --anim-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: #080404;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 60, 0, 0.15), transparent 50%);
}

/* =========================================
   LUMIÈRE AMBIANTE (ORBES POUR LE GLASSMORPHISM)
   ========================================= */
body::before {
    content: '';
    position: fixed;
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(255, 60, 0, 0.07) 0%, transparent 70%); /* Halo Orange */
    filter: blur(120px);
    z-index: -1; /* Derrière tout le site */
    pointer-events: none; /* N'empêche pas de cliquer */
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(153, 27, 27, 0.1) 0%, transparent 70%); /* Halo Rouge sombre */
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   NAVIGATION LATÉRALE (V2)
   ========================================= */
.side-nav {
    position: fixed;
    top: 50%;
    right: 30px; 
    transform: translateY(-50%); 
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000; 
}

.nav-dot {
    width: 8px; /* Plus fin et élégant */
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--btn-radius);
    cursor: pointer;
    position: relative;
    transition: var(--anim-bounce);
    border: none;
}

/* Etat Actif : La pilule s'allonge */
.nav-dot.active {
    background: var(--primary); 
    box-shadow: 0 0 15px var(--primary); 
    height: 32px; 
}

/* Survol (hors actif) */
.nav-dot:hover:not(.active) {
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
}

.nav-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 25px; 
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: var(--anim-smooth);
    white-space: nowrap;
    font-family: var(--font-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .side-nav { display: none; }
}

/* --- Bouton Hub Liquid Glass  --- */
.hub-link {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    
    /* Animation de disparition */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* État quand il disparait */
.hub-link.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* Effet survol "Liquid" */
.hub-link:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.5);
    transform: translateY(-2px) scale(1.05);
}

/* Bouton Connexion Discord (haut-gauche, symétrique du Hub) */
.login-link {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(88, 101, 242, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.login-link:hover {
    background: rgba(88, 101, 242, 0.35);
    border-color: rgba(88, 101, 242, 0.8);
    transform: translateY(-2px) scale(1.05);
}
@media (max-width: 600px) {
    .login-link, .hub-link { padding: 9px 16px; font-size: 13px; }
    .login-link { top: 20px; left: 20px; }
    .hub-link { top: 20px; right: 20px; }
}

/* =========================================
   LOADER
   ========================================= */
#loader {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.8s ease-out;
}

.loader-logo-img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
    filter: drop-shadow(0 0 20px rgba(255, 60, 0, 0.6));
}

.loader-text { 
    font-family: var(--font-title); 
    letter-spacing: 4px; 
    font-size: 1rem;
    color: var(--text-muted);
    animation: blink 1.5s infinite;
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes blink { 0%,100%{opacity: 0.3} 50%{opacity: 1} }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    position: relative; 
    padding: 0 20px;
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(8,4,4,1) 95%),
        url('background2.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 { font-family: var(--font-title); font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 20px; }
.text-highlight { color: var(--primary); text-shadow: 0 0 20px rgba(255,60,0,0.4); }
.hero p { max-width: 700px; margin: 0 auto 40px; color: var(--text-muted); font-size: 1.1rem; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* BOUTONS V2 : Format Pilule et Rebond */
.btn-main, .btn-glass {
    border-radius: var(--btn-radius);
    padding: 14px 35px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--anim-bounce);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-main { 
    background: linear-gradient(135deg, var(--primary), #ff7300);
    color: #fff; 
    text-decoration: none; 
    box-shadow: 0 4px 15px rgba(255, 60, 0, 0.2), inset 0 -2px 0 rgba(0,0,0,0.2); 
    border: none;
}

.btn-glass { 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #fff; 
    text-decoration: none; 
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-main:hover { 
    box-shadow: 0 10px 30px rgba(255, 60, 0, 0.5), inset 0 -1px 0 rgba(0,0,0,0.1); 
    transform: translateY(-4px) scale(1.02); 
}

.btn-glass:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px); 
}

/* =========================================
   INFORMATIONS SERVEUR (FEATURES BAR)
   ========================================= */
#features-bar {
    padding: 0; 
    margin-top: -50px; 
    position: relative;
    z-index: 10;
}

.features-container {
    background: rgba(10, 5, 5, 0.7); 
    backdrop-filter: var(--glass-blur); 
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 60, 0, 0.3);
    border-bottom: 1px solid rgba(255, 60, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 5%;
    gap: 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    transition: var(--anim-smooth);
}

.feat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 60, 0, 0.05);
    border: 1px solid rgba(255, 60, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: inset 0 0 15px rgba(255, 69, 0, 0.1); /* Inner glow V2 */
    transition: var(--anim-bounce);
}

.feat-text h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feat-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.feat-separator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

.feature-item:hover .feat-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.6);
    transform: rotate(10deg) scale(1.1); /* Plus dynamique */
}

.feature-item:hover .feat-text h3 {
    color: var(--primary);
}

@media (max-width: 900px) {
    .features-container { flex-direction: column; gap: 30px; margin-top: 0; padding: 40px 20px; }
    .feat-separator { display: none; }
    .feature-item { width: 100%; justify-content: flex-start; }
}

/* =========================================
   SECTION IMAGES SLIDER
   ========================================= */
#server-slider {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper-neon {
    position: relative;
    border-radius: var(--card-radius); /* V2 Radius */
    overflow: hidden; 
    border: 1px solid rgba(255, 60, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 60, 0, 0.1); /* Ombre plus profonde */
    aspect-ratio: 16/9; 
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-item {
    min-width: 100%; 
    height: 100%;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.8); 
}

.slide-caption {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.slide-caption h3 {
    font-family: var(--font-title);
    color: var(--primary); 
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-caption p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
}

/* --- SECTIONS COMMUNES --- */
section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 10px; }

/* =========================================
   SECTION WEAZEL NEWS
   ========================================= */
#weazel-news {
    padding-bottom: 60px;
    padding-top: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--card-radius); /* V2 Radius */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--anim-smooth);
    height: 100%; 
    cursor: default; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* V2 Shadow */
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 38, 38, 0.5); 
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.news-image {
    height: 500px; 
    position: relative;
    overflow: hidden;
    background: #050505; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.03); 
}

.news-date {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: var(--btn-radius); /* Pilule */
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.news-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    width: fit-content;
    text-transform: uppercase;
}

.tag-alert { background: #dc2626; color: white; } 
.tag-life { background: #d946ef; color: white; } 
.tag-pol { background: #3b82f6; color: white; } 

.news-content h3 {
    font-family: var(--font-title);
    color: white;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.news-content p {
    font-size: 1rem;
    color: #a3a3a3;
    line-height: 1.6;
    margin: 0; 
}

/* =========================================
   SECTION REJOINDRE (JOIN)
   ========================================= */
.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
    width: 100%;
}

.join-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--card-radius); /* V2 */
    position: relative;
    transition: var(--anim-smooth);
    text-align: left; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.join-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: var(--glass-hover);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 60, 0, 0.05);
}

.step-number {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    font-family: var(--font-title);
    line-height: 1;
    transition: var(--anim-smooth);
}

.join-card:hover .step-number { 
    color: rgba(255, 60, 0, 0.15); 
    transform: scale(1.1) rotate(5deg);
}

.step-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.join-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: #fff; }
.join-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* BOUTONS D'ACTION (CARTES REJOINDRE) */
.btn-join-action {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    margin-top: 20px; 
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--btn-radius); /* Pilule V2 */
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2; 
    transition: var(--anim-bounce);
}

.btn-join-action i {
    font-size: 1rem;
    color: var(--primary); 
    transition: 0.3s;
}

.btn-join-action:hover {
    background: var(--primary); 
    border-color: var(--primary);
    color: white; 
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4); 
    transform: translateY(-3px); 
}

.btn-join-action:hover i { color: white; }

/* =========================================
   SECTION UNIVERS (LÉGAL / ILLÉGAL)
   ========================================= */
.grid-universe {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    width: 100%;
    margin-top: 50px;
}

.universe-card {
    position: relative;
    height: 320px; 
    border-radius: var(--card-radius); /* V2 */
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--anim-smooth);
    background-color: #0f0f0f; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.universe-card.legal { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.universe-card.illegal { background: linear-gradient(135deg, #2a0f0f 0%, #7f1d1d 100%); }

.universe-card .content {
    z-index: 10;
    padding: 30px;
    width: 100%;
}

.universe-card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
    display: block;
    transition: var(--anim-bounce);
}

.universe-card h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: white;
}

.universe-card p { color: rgba(255,255,255,0.8); margin-bottom: 25px; font-size: 1.05rem; }

.universe-card:hover { transform: translateY(-10px); }
.universe-card:hover i { transform: scale(1.1) translateY(-5px); color: white; }

@media (max-width: 900px) {
    .grid-universe { grid-template-columns: 1fr; } 
}

/* =========================================
   SECTION VOTE
   ========================================= */
.vote-section {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.vote-card {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding: 70px 40px;
    border-radius: 32px; /* V2 Extra rond pour section spéciale */
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 60, 0, 0.3);
    
    background: linear-gradient(-45deg, #1a0505, #3f0d0d, #1a0505, #000000);
    background-size: 400% 400%;
    animation: magmaFlow 10s ease infinite;
    box-shadow: 0 15px 50px rgba(255, 69, 0, 0.15), inset 0 0 30px rgba(255, 60, 0, 0.1); 
}

@keyframes magmaFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.vote-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 22rem; 
    color: rgba(255, 69, 0, 0.03); 
    z-index: 1;
    pointer-events: none; 
}

.vote-content {
    position: relative;
    z-index: 2; 
}

.vote-content h2 {
    font-size: 2.8rem;
    font-family: var(--font-title);
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.vote-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Bouton VOTE (V2) */
.btn-vote-neon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--primary), #ff7300);
    color: white;
    font-family: var(--font-title);
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: var(--btn-radius); /* Pilule */
    text-transform: uppercase;
    transition: var(--anim-bounce);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}

.btn-vote-neon:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.6), inset 0 -2px 0 rgba(0,0,0,0.2);
}

.btn-vote-neon i { font-size: 1.3rem; }

@media (max-width: 768px) {
    .vote-bg-icon { font-size: 10rem; }
    .vote-content h2 { font-size: 2rem; }
}

/* =========================================
   STAFF GRID (CARRÉS V2)
   ========================================= */
.grid-staff-square {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; 
    justify-content: center;
    padding: 20px 0;
}

.staff-card-square {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    border-radius: var(--card-radius); /* Arrondi adouci */
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); 
    transition: var(--anim-smooth);
    background: var(--glass);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.staff-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2)); 
}

.staff-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 15px;
    transition: var(--anim-bounce);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.staff-card-square h3 {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* Badges V2 (Format Pilule) */
.badge { 
    display: inline-block; 
    padding: 6px 14px; 
    font-size: 0.75rem; 
    border-radius: var(--btn-radius); 
    margin-bottom: 15px; 
    font-weight: 800; 
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

/* Couleurs Hover Staff */
.staff-card-square.role-founder { background-color: #7e041e; }
.staff-card-square.role-founder:hover {
    box-shadow: 0 15px 40px rgba(126, 4, 30, 0.4);
    border-color: #fff;
    transform: translateY(-8px);
}

.staff-card-square.role-co { background-color: #ff0000; }
.staff-card-square.role-co:hover {
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.4);
    border-color: #fff;
    transform: translateY(-8px);
}

.staff-card-square.role-admin { background-color: #00bfff; }
.staff-card-square.role-admin:hover {
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.4);
    border-color: #fff;
    transform: translateY(-8px);
}

.staff-card-square.role-dev { background-color: #32cd32; }
.staff-card-square.role-dev:hover {
    box-shadow: 0 15px 40px rgba(50, 205, 50, 0.4);
    border-color: #fff;
    transform: translateY(-8px);
}

.staff-card-square.role-modo { background-color: #ffa500; }
.staff-card-square.role-modo:hover {
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.4);
    border-color: #fff;
    transform: translateY(-8px);
}

.staff-card-square:hover .staff-avatar {
    transform: scale(1.15);
    border-color: #fff;
}

/* =========================================
   SECTION TOUCHES (KEY MAPPING)
   ========================================= */
#keys { padding-bottom: 80px; }

.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.key-group {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--card-radius); /* V2 */
    padding: 30px;
    transition: var(--anim-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.key-group:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 60, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.key-group h3 {
    color: var(--primary); 
    font-family: var(--font-title);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.key-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }

.key {
    background: #1a1a1a;
    color: #fff;
    font-family: monospace; 
    font-weight: bold;
    font-size: 0.95rem;
    padding: 6px 12px;
    min-width: 45px;
    text-align: center;
    border-radius: 8px; /* Touches un peu plus douces */
    border-bottom: 3px solid #000; 
    border-top: 1px solid #333;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: 0.2s;
}

.key-item:hover .key {
    background: var(--primary); 
    color: white;
    border-color: var(--primary);
    transform: translateY(2px); 
    border-bottom-width: 1px; 
    box-shadow: 0 0 15px rgba(255, 60, 0, 0.5); 
}

.label { color: var(--text-muted); font-size: 1rem; transition: 0.2s; }
.key-item:hover .label { color: white; transform: translateX(5px); }

/* =========================================
   SECTION LIENS UTILES
   ========================================= */
section#forms { padding-bottom: 100px; }

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.form-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--card-radius); /* V2 */
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: var(--anim-smooth);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.form-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%; /* Rond parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    transition: var(--anim-bounce);
    flex-shrink: 0; 
}

.form-info h3 { font-family: var(--font-title); font-size: 1.15rem; color: #fff; margin-bottom: 5px; }
.form-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.form-arrow {
    margin-left: auto; 
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--anim-smooth);
}

/* Thèmes Hover */
.theme-red:hover { border-color: rgba(239, 68, 68, 0.5); }
.theme-red:hover .form-icon { background: #ef4444; box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); color: white; }

.theme-purple:hover { border-color: rgba(168, 85, 247, 0.5); }
.theme-purple:hover .form-icon { background: #a855f7; box-shadow: 0 0 25px rgba(168, 85, 247, 0.5); color: white; }

.theme-yellow:hover { border-color: rgba(234, 179, 8, 0.5); }
.theme-yellow:hover .form-icon { background: #eab308; box-shadow: 0 0 25px rgba(234, 179, 8, 0.5); color: white; }

.theme-green:hover { border-color: rgba(16, 185, 129, 0.5); }
.theme-green:hover .form-icon { background: #10b981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.5); color: white; }

.theme-gold:hover { border-color: rgba(245, 158, 11, 0.5); }
.theme-gold:hover .form-icon { background: #f59e0b; box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); color: white; }

/* Custom variables pour galerie et patchnotes */
.form-card[style*="--card-color"]:hover { border-color: var(--card-color); }
.form-card[style*="--card-color"]:hover .form-icon { background: var(--card-color); color: white !important; box-shadow: 0 0 25px var(--card-color); }

.form-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.form-card:hover .form-arrow { color: #fff; transform: translateX(8px); }

/* =========================================
   SECTION FINALE (READY)
   ========================================= */
#ready {
    position: relative;
    padding: 120px 5%;
    text-align: center;
    overflow: hidden;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ready-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.ready-content h2 { font-family: var(--font-title); font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; }
.ready-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

.ready-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://wallpapers.com/images/hd/gta-5-background-1920-x-1080-87k77j9j3r2j1m5e.jpg') no-repeat center center/cover;
    opacity: 0.15; 
    z-index: 1;
    filter: grayscale(100%);
}

.ready-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Bouton JOUER V2 */
.btn-play {
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--primary), #ff7300);
    color: white;
    font-weight: 900;
    font-family: var(--font-title);
    text-decoration: none;
    border-radius: var(--btn-radius); /* Pilule */
    font-size: 1.2rem;
    transition: var(--anim-bounce);
    box-shadow: 0 8px 25px rgba(255, 60, 0, 0.3), inset 0 -2px 0 rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-play:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 60, 0, 0.6), inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid rgba(255,255,255,0.05); 
    background: #020101; 
    padding: 50px 5%;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.footer-main-text { font-size: 0.95rem; color: white; font-weight: 500; }
.design-credit a { color: white; font-weight: 700; text-decoration: none; transition: 0.3s; }
.design-credit a:hover { color: var(--primary); }

.footer-legal-text { font-size: 0.8rem; color: #6c757d; font-family: var(--font-body); }
.footer-legal-text .sep { margin: 0 6px; opacity: 0.5; }
.footer-legal-text a { color: #6c757d !important; text-decoration: none; transition: 0.3s; }
.footer-legal-text a:hover { color: white !important; text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }

.patch-link {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    transition: 0.3s;
    position: relative;
    padding-bottom: 5px;
}
.version-highlight { color: var(--primary); font-weight: bold; }
.patch-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--primary); transition: var(--anim-smooth);
}
.patch-link:hover { color: var(--primary); text-shadow: 0 0 15px rgba(255, 60, 0, 0.4); }
.patch-link:hover::after { width: 100%; }

.footer-right { display: flex; gap: 20px; }
.social-icon {
    font-size: 1.5rem; 
    color: rgba(255,255,255,0.6); 
    transition: var(--anim-bounce);
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%; /* Rond parfait */
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icon:hover {
    background: var(--primary); 
    border-color: var(--primary);
    color: white; 
    transform: translateY(-5px) scale(1.1); 
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.4); 
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
}

/* =========================================
   BOUTON SCROLL TOP
   ========================================= */
#scrollTopBtn {
    position: fixed;
    bottom: 30px; right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8); 
    width: 55px; height: 55px;
    border-radius: 50%; /* Bouton bien rond */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: var(--anim-bounce);
    z-index: 999;
    backdrop-filter: var(--glass-blur); 
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 1.2rem;
}

#scrollTopBtn.show { opacity: 1; visibility: visible; bottom: 40px; }
#scrollTopBtn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-8px); 
    box-shadow: 0 15px 25px -5px rgba(255, 60, 0, 0.5);
}

/* =========================================
   POP-UP ANNONCE V2 PREMIUM
   ========================================= */
.v2-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 2, 2, 0.75); 
    backdrop-filter: var(--glass-blur); 
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease;
}

.v2-popup-overlay.show { opacity: 1; pointer-events: auto; }

.v2-popup-card {
    background: linear-gradient(135deg, rgba(20, 14, 14, 0.9) 0%, rgba(10, 6, 6, 0.95) 100%);
    border: 1px solid rgba(255, 60, 0, 0.2); 
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 60, 0, 0.05);
    width: 90%; max-width: 550px;
    border-radius: var(--card-radius); /* V2 Radius */
    padding: 50px 40px;
    position: relative;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-popup-overlay.show .v2-popup-card { transform: scale(1) translateY(0); }

.v2-popup-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; width: 40px; height: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--anim-bounce);
}
.v2-popup-close:hover {
    background: var(--primary); border-color: var(--primary);
    color: white; transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(255,60,0,0.4);
}

.v2-popup-content { text-align: center; }
.v2-popup-icon {
    font-size: 3rem; color: var(--primary); margin-bottom: 20px;
    animation: pulseIcon 2s infinite ease-in-out;
}

.v2-popup-content h2 {
    font-family: var(--font-title); color: #fff; font-size: 2.2rem;
    margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.v2-popup-text {
    font-family: var(--font-body); color: var(--text-muted);
    line-height: 1.6; font-size: 1.1rem; margin-bottom: 30px;
}
.v2-popup-text strong { color: #fff; }

.v2-popup-date {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 60, 0, 0.05); border: 1px solid rgba(255, 60, 0, 0.2);
    padding: 14px 25px; border-radius: var(--btn-radius); /* Pilule */
    color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700;
    margin-bottom: 35px;
}
.v2-popup-date i { color: var(--primary); font-size: 1.2rem; }

.v2-popup-buttons { display: flex; gap: 15px; }
@media (max-width: 480px) { .v2-popup-buttons { flex-direction: column; } }

/* Boutons popup V2 */
.v2-popup-btn {
    flex: 1; padding: 16px 20px;
    border-radius: var(--btn-radius); /* Pilule */
    font-family: var(--font-title); font-weight: 700; font-size: 1.05rem;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; transition: var(--anim-bounce);
}

.btn-discord {
    background: #5865F2; color: #fff;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
    transform: translateY(-4px); box-shadow: 0 15px 30px rgba(88, 101, 242, 0.5);
    background: #4752C4;
}

.btn-more {
    background: rgba(255, 255, 255, 0.05); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-more:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 60, 0, 0.2)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255, 60, 0, 0.6)); }
}

/* --- ANIMATIONS GÉNÉRALES --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- BLOC LIVE ACCUEIL --- */
a.live-link, a.feature-item.live-link {
    text-decoration: none; color: inherit; cursor: pointer;
    transition: var(--anim-smooth); display: flex; align-items: center; gap: 15px;
}
a.live-link:hover, a.feature-item.live-link:hover { transform: translateY(-5px); opacity: 0.9; }
.highlight-number, .pop-number { color: var(--primary); font-weight: 800; font-size: 1.15rem; }

/* =========================================
   AUTRES PAGES (TIMELINE PATCH NOTES)
   ========================================= */
.back-home-btn {
    position: fixed; top: 30px; left: 30px;
    color: white; text-decoration: none; font-weight: bold;
    background: rgba(0,0,0,0.5); padding: 12px 25px; 
    border-radius: var(--btn-radius); /* Pilule */
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px); z-index: 100;
    transition: var(--anim-bounce);
}
.back-home-btn:hover { 
    background: white; color: black; transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.patch-header { text-align: center; padding: 100px 20px 50px; }
.patch-header h1 { font-family: var(--font-title); font-size: 3rem; margin-bottom: 10px; }
.timeline-container {
    max-width: 800px; margin: 0 auto; padding: 20px; position: relative;
    border-left: 2px solid rgba(255, 60, 0, 0.2); 
}
.patch-block { position: relative; margin-bottom: 60px; padding-left: 40px; }
.patch-block::before {
    content: ''; position: absolute; left: -9px; top: 0;
    width: 16px; height: 16px; background: var(--primary);
    border-radius: 50%; box-shadow: 0 0 15px var(--primary);
}
.patch-date { font-family: var(--font-title); color: var(--primary); font-size: 0.95rem; margin-bottom: 10px; opacity: 0.9; }

.patch-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--card-radius); padding: 35px;
    transition: var(--anim-smooth); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.patch-card:hover { border-color: rgba(255, 60, 0, 0.4); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }

.patch-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.patch-title h2 { font-size: 1.6rem; color: white; margin: 0; }
.patch-list { list-style: none; }
.patch-list li { margin-bottom: 12px; padding-left: 20px; position: relative; color: var(--text-muted); font-size: 1.05rem; }
.patch-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; }

.type-new::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; } 
.type-fix::before { background: #f87171; box-shadow: 0 0 8px #f87171; } 
.type-change::before { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; } 

.tag { padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.tag-major { background: linear-gradient(135deg, var(--primary), #ff7300); color: white; box-shadow: 0 4px 10px rgba(255, 60, 0, 0.3); }
.tag-fix { background: rgba(255,255,255,0.1); color: #ccc; border: 1px solid rgba(255,255,255,0.2); }

.credit-link { color: white !important; text-decoration: none; font-weight: bold; transition: 0.3s; }
.credit-link:visited { color: white !important; }
.credit-link:hover { color: var(--primary); text-shadow: 0 0 15px rgba(255, 60, 0, 0.5); }


.btn-ice {
    position: relative;
    /* Un fond très subtil en dégradé pour donner le côté "verre bombé" */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    
    /* Le fameux flou Apple + saturation des couleurs au travers du verre */
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    
    /* Ombre interne (Le secret Apple) pour l'effet de reflet 3D sur la tranche haut et bas */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.4),  /* Reflet de lumière en haut */
        inset 0 0 1px rgba(255, 255, 255, 0.15), /* Liseré global fin */
        0 8px 20px rgba(0, 0, 0, 0.4); /* Ombre portée sous le bouton */
        
    border: none; /* On supprime la bordure solide classique qui casse le réalisme */
    color: #fff;
    border-radius: 40px; /* Plus fin et compact */
    
    /* --- TAILLE RÉDUITE ET PLUS PROPRE --- */
    padding: 10px 22px;  /* Beaucoup moins massif */
    font-size: 0.95rem; /* Texte un peu plus petit */
    font-weight: 500; /* Moins gras (très important pour l'élégance) */
    text-transform: none; /* On enlève les majuscules pour faire plus "Pro" */
    letter-spacing: 0.5px;
    
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

/* L'effet au survol : on éclaire un peu le bouton et il lévite doucement */
.btn-ice:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: scale(1.02); /* Grossit à peine, c'est plus doux */
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.6), 
        inset 0 0 1px rgba(255, 255, 255, 0.2), 
        0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-ice i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.btn-ice:hover i { color: #fff; }

