/* =========================================================
   RESET / BASE
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* bloque le scroll horizontal */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
}

/* =========================================================
   CUSTOM SCROLLBARS Page
========================================================= */
/* Scrollbar globale (body) */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.1); /* couleur de fond du track */
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6633FF, #3399FF); /* violet → bleu */
    border-radius: 5px;
    box-shadow: inset 0 0 3px rgba(102,0,255,0.5);
}

/* =========================================================
   SCROLL PROGRESS BAR
========================================================= */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    z-index: 99999;
    transition: width 0.25s ease;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(102,0,255,0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
    max-width: 100vw;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.65);
    box-shadow: 0 5px 20px rgba(51,153,255,0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    gap: 0.5rem;
}

.nav-brand i {
    color: #3399ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-brand:hover i {
    transform: scale(1.1);
    color: #33ffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav-links a {
    position: relative;
    color: #888888;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    box-shadow: 0 0 8px #3399ff80, 0 0 12px #6633ff60;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #3399ff;
    box-shadow: 0 0 6px #3399ff60, 0 0 10px #6633ff40;
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    user-select: none;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
    color: #33ffff;
}

/* =========================================================
   NAVBAR RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem 0.5rem;
        border-radius: 16px;
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 400px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 9999;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
        border-radius: 12px;
        width: 95%;
        max-width: 350px;
        text-align: center;
        color: #fff;
        background: rgba(51,153,255,0.1);
        transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        min-height: 44px;
    }

    .nav-links a:hover {
        background: rgba(51,153,255,0.3);
        color: #33ffff;
        transform: translateY(-2px);
        box-shadow: 0 0 8px #3399ff50, 0 0 12px #6633ff40;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
    }

    .nav-brand img.logo {
        max-height: 30px;
    }
}

/* =========================================================
   HERO DISCORD – RESPONSIVE (DESKTOP + MOBILE)
========================================================= */

.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        url("https://r2.fivemanage.com/ZoSR7TklbKs6LKQicbSAe/discord.gif")
        center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    color: #fff;
    border-radius: 20px;
}

/* ====================
   CONTENU HERO
==================== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
}

/* ====================
   TITRE HERO
==================== */
.gradient-title {
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    margin: 0;

    color: transparent;
    background: linear-gradient(135deg, #6633FF, #3399FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====================
   TEXTE HERO
==================== */
.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    margin: 0;
}

/* Bloc discord_intro mis en valeur */
.hero-content [data-i18n="discord_intro"] {
    display: inline-block;
    position: relative;
    padding: 0.6rem 1.2rem 0.6rem 1.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #3399ff28, #6633ff2c);
    color: #fff;
    font-weight: 600;
    margin-top: 0.8rem;
}

/* Barre verticale à gauche */
.hero-content [data-i18n="discord_intro"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #6633ff, #3399ff);
    border-radius: 10px 0 0 10px;
}

/* =========================================================
   MOBILE (Téléphone)
========================================================= */
@media (max-width: 768px) {
    .hero {
        padding: 70px 15px 40px;
    }

    .hero-content {
        gap: 1rem;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */
@media (max-width: 400px) {
    .gradient-title {
        font-size: 2rem;
    }
}

/* =========================================================
   DISCORD CONTAINER
========================================================= */
.discord-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.discord-header {
    text-align: center;
    margin-bottom: 4rem;
}

.discord-header h2 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.discord-header p {
    color: #888;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.discord-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.full-width { 
    grid-column: span 2;
}

.discord-info { 
    opacity: 0;
    animation: fadeInLeft 0.8s ease 0.3s forwards;
}

/* =========================================================
   DISCORD WIDGET
========================================================= */
.discord-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 0.8s ease 0.3s forwards;
}

.discord-widget iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 15px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0,102,255,.2);
    transition: all 0.3s ease;
}

.discord-widget iframe:hover {
    box-shadow: 0 12px 35px rgba(51,153,255,0.5);
}

/* =========================================================
   DISCORD CARDS
========================================================= */
.discord-card {
    position: relative;
    border-radius: 25px;
    padding: 2rem;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.discord-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(135deg, #3399ff, #6633ff);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.discord-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    background: rgba(0,0,0,0.6);
}

.discord-card h3 {
    color: #3399ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(51,153,255,0.3);
    padding-bottom: 0.5rem;
}

.discord-card h3 i {
    color: #6633ff;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.discord-card:hover h3 i {
    transform: scale(1.2) rotate(5deg);
    color: #fff;
}

.discord-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* =========================================================
   DISCORD FEATURES
========================================================= */
.discord-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102,0,255,0.2);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.feature-item span {
    color: var(--text-color);
}

/* =========================================================
   DISCORD JOIN BUTTON
========================================================= */
.discord-join {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem; /* ← espace ajouté pour ne pas coller au footer */
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.discord-join-button {
    display: inline-flex;
    align-items: center;
    gap:1rem;
    background: rgba(51,153,255,0.1);
    color:#fff;
    padding:1rem 2rem;
    border-radius:50px;
    font-size:1.2rem;
    font-weight:bold;
    border: 2px solid rgba(102,0,255,0.5);
    cursor:pointer;
    transition: all 0.3s ease;
}

.discord-join-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 15px rgba(51,153,255,0.5);
    background: linear-gradient(135deg,#3399ff,#6633ff);
}

/* =========================================================
   DISCORD STATS
========================================================= */
.discord-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:1rem;
    margin-top:2rem;
}

.stat-item {
    background: rgba(51,153,255,0.05);
    padding:1rem;
    border-radius:10px;
    text-align:center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(102,0,255,0.2);
    transform: translateY(-5px);
}

.stat-item .number {
    color: var(--accent-color);
    font-size:2rem;
    font-weight:bold;
    margin-bottom:0.5rem;
}

.stat-item .label {
    color:#888;
    font-size:0.9rem;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeInLeft {
    from { opacity:0; transform:translateX(-50px); } 
    to { opacity:1; transform:translateX(0); }
}

@keyframes fadeInUp {
    from { opacity:0; transform:translateY(30px); } 
    to { opacity:1; transform:translateY(0); }
}

@keyframes fadeInRight {
    from { opacity:0; transform:translateX(50px); } 
    to { opacity:1; transform:translateX(0); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .discord-layout, .discord-stats { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}

/* =========================================================
   LOGO
========================================================= */
.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(51, 153, 255, 0.5));
    border-radius: 20px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background: linear-gradient(to right, rgba(51,153,255,0.05), rgba(102,0,255,0.05));
    padding: 0.8rem 2rem;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #fff;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 2px solid rgba(102,0,255,0.3);
}

/* Footer zones */
.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-left a {
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(51,153,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(102,0,255,0.3);
    transition: all 0.3s ease;
}

.footer-left a:hover {
    background: rgba(51,153,255,0.25);
    color: #33ffff; transform: translateY(-1px);
}

.footer-center {
    text-align: center;
    color: #aaa;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.footer-right img {
    height: 18px;
    width: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 3px rgba(102,0,255,0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-right img:hover {
    transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(51,153,255,0.7));
}

.footer-right span {
    color: #aaa;
}

.footer-right strong {
    color: #33ffff;
}

/* =========================================================
   FOOTER MOBILE
========================================================= */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .footer-left, .footer-center, .footer-right {
        justify-content: center;
        width: 100%;
    }

    .footer-left {
        flex-wrap: wrap; gap: 0.3rem;
    }

    .footer-right {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .footer-left a {
        width: auto;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* =========================================================
   BACK TO TOP BUTTON
========================================================= */
#backToTop {
    position: fixed;
    bottom: 60px;
    right: 10px;
    padding: 0.5rem 0.7rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(51,153,255,0.3);
    color: #fff;
    font-size: 1.4rem;
    display: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

#backToTop.show {
    display: block;
}

#backToTop:hover {
    background: rgba(51,153,255,0.6);
    transform: translateY(-3px);
}