/* =========================================================
   RESET / BASE
========================================================= */
* {
    box-sizing: border-box;
}

/* Bloquer le scroll horizontal global */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

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;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    width: 0%;
    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; /* logo à gauche, liens à droite */
    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;
}

/* Effet scroll */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 5px 20px rgba(51, 153, 255, 0.5);
}

/* Logo à gauche */
.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;
}

/* Liens alignés à droite */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

/* Style des liens */
.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;
}

/* Hover glow et underline animé */
.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 menu */
.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: 100%; /* correction pour ne pas dépasser écran */
        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: 100%; /* correction */
        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 IMPRINT – RESPONSIVE (DESKTOP + MOBILE)
========================================================= */

.hero {
    min-height: 100vh;
    max-width: 100%; /* correction mobile */
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        url("https://r2.fivemanage.com/ZoSR7TklbKs6LKQicbSAe/mention.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 {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeSlideIn 1s ease forwards;
}

/* ====================
   TITRE HERO
==================== */
.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 imprint_intro mis en valeur */
.hero-content [data-i18n="imprint_intro"] {
    display: inline-block;
    position: relative;
    padding: 0.6rem 1.2rem 0.6rem 1.6rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #3399ff28, #6633ff2c);
    color: #fff;
    font-weight: 600;
    margin-top: 0.8rem;
    overflow: hidden; /* masque le pseudo-élément qui dépasse */
}

/* Barre verticale à gauche */
.hero-content [data-i18n="imprint_intro"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #6633ff, #3399ff);
    border-radius: 15px 0 0 15px; /* arrondi identique au parent */
}

/* ====================
   ANIMATION
==================== */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   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) {
    .hero-gradient-title {
        font-size: 2rem;
    }
}

/* =========================================================
   IMPRINT
========================================================= */
.imprint-container {
    max-width: 1100px;
    width: 100%; /* correction mobile */
    margin: 0 auto;
    padding: 2rem;
}

.imprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%; /* correction mobile */
}

.imprint-card {
    position: relative;
    background: rgba(0, 0, 0, 0.75); /* fond noir */
    border-radius: 25px; /* coins arrondis */
    padding: 2rem;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box; /* pour que le pseudo-element n'affecte pas le contenu */
}

/* Bordure dégradée arrondie via pseudo-élément */
.imprint-card::before {
    content: '';
    position: absolute;
    inset: 0; /* couvre toute la carte */
    border-radius: 25px; /* coins arrondis identiques à la carte */
    padding: 3px; /* épaisseur de la bordure */
    background: linear-gradient(45deg, #3399ff, #6633ff);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0); /* masque pour laisser le fond noir */
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none; /* pas cliquable */
    box-sizing: border-box;
}

/* Hover léger */
.imprint-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5); /* fond noir intact */
}

/* Titre */
.imprint-title {
    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;
    border-radius: 20px; /* arrondi titre */
}

.imprint-title i {
    color: #6633ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.imprint-card:hover .imprint-title i {
    transform: scale(1.2);
    color: #ffffff;
}

/* Texte */
.imprint-text {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================================================
   CONTACT BUTTONS
========================================================= */
.contact-buttons-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.contact-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 20px; /* boutons arrondis */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 0, 255, 0.3);
    min-width: 140px;
    text-align: center;
    color: #fff;
    background: rgba(51, 153, 255, 0.1);
}

.contact-button.discord {
    background: rgba(51, 153, 218, 0.1);
}

.contact-button:hover {
    background: linear-gradient(135deg, #3399ff 0%, #6633ff 100%);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}

/* =========================================================
   LISTES
========================================================= */
.imprint-text ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.imprint-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.imprint-text li::before {
    content: '•';
    color: #3399ff;
    position: absolute;
    left: 0;
}

/* =========================================================
   CENTRER LA CARTE “AVERTISSEMENT”
========================================================= */
.imprint-grid article.imprint-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 90%;
    max-width: 325px;
    margin: 0 auto;
}

/* =========================================================
   LOGO
========================================================= */
.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(51, 153, 255, 0.5));
    border-radius: 20px; /* logo arrondi */
}

/* =========================================================
   FOOTER ÉPURÉ – STRUCTURÉ GAUCHE / CENTRE / DROITE
========================================================= */
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; /* gauche / centre / droite */
    align-items: center;
    font-size: 0.85rem;
    color: #fff;
    flex-wrap: wrap; /* permet l’adaptation mobile */
    gap: 0.5rem;
    border-top: 2px solid rgba(102,0,255,0.3);
}

/* =========================================================
   Zone gauche : liens légaux
========================================================= */
.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);
}

/* =========================================================
   Zone centre : copyright
========================================================= */
.footer-center {
    text-align: center;
    color: #aaa;
}

/* =========================================================
   Zone droite : W_Dev + logo
========================================================= */
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.footer-right img {
    height: 18px; /* logo discret */
    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 RESPONSIVE – 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);
}

/* =========================================================
   ACCESSIBILITÉ – MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}