/* =========================================================
   RESET / BASE
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease;
}

/* =========================================================
   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 STYLE TEAM FINAL (Liens à droite)
========================================================= */
.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(10px);
    border-bottom: 1px solid rgba(102, 0, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Effet scroll */
.navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px rgba(51, 153, 255, 0.5);
}

/* Logo à gauche */
.nav-brand {
    display: flex; /* plus besoin de position absolute */
    align-items: center;
    gap: 0.0rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-brand i {
    color: #3399ff;
}

/* Liens alignés à droite */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end; /* liens à droite */
    position: relative;
}

/* Style des liens */
.nav-links a {
    position: relative;
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #3399ff;
}

.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;
        position: fixed;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem 0.5rem;
        border-radius: 12px;
        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;
        box-sizing: border-box;
        min-height: 44px;
    }

    .nav-links a:hover {
        background: rgba(51, 153, 255, 0.3);
        color: #33ffff;
        transform: translateY(-2px);
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
    }

    .nav-brand img.logo {
        max-height: 30px;
    }
}

/* =========================================================
   HERO TEAM – RESPONSIVE (DESKTOP + MOBILE)
========================================================= */

.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.85)),
        url("https://r2.fivemanage.com/ZoSR7TklbKs6LKQicbSAe/equipe.gif")
        center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    color: #fff;
}

/* ====================
   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 team_intro mis en valeur */
.hero-content [data-i18n="team_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="team_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;
    }
}

/* ===================== TEAM GRID / CARDS ===================== */
.team-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 20px auto 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #000000;
    padding: 3px;
    background: linear-gradient(45deg, #6600FF, #3399ff);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-rank {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(45deg, #6600FF, #3399ff);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-discord {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-discord i {
    color: #7289da;
    margin-right: 0.5rem;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(51, 1, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #3399ff;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.modal-text {
    color: #888;
    line-height: 1.6;
}

.modal-tasks {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(51, 153, 255, 0.2);
}

.modal-tasks h3 {
    color: #3399ff;
    margin-bottom: 1rem;
}

.modal-tasks ul {
    list-style: none;
    padding: 0;
}

.modal-tasks li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
}

.modal-tasks li::before {
    content: '•';
    color: #3399ff;
    position: absolute;
    left: 0;
}

/* ===================== EXTRA TEAM SECTION ===================== */
.team-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Carte individuelle */
.extra-section {
    flex: 0 1 360px;
    padding: 1rem;
    border-radius: 10px;
    border: none; /* supprime la bordure de base */
    background: rgba(0, 0, 0, 0.65);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative; /* nécessaire pour ::after */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bordure dégradée violet → bleu */
.extra-section::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px; /* largeur de la bordure */
    border-radius: 10px;
    background: linear-gradient(135deg, #6600FF, #3399FF);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Hover effect */
.extra-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(51, 153, 255, 0.5);
}

/* Titre */
.extra-section h2 {
    color: #3399ff;
    margin-bottom: 1rem;
}

/* Image */
.extra-img {
    width: 100%;
    max-width: 300px;
    max-height: 450px;
    height: auto;
    border-radius: 8px;
    border: none; /* supprime la bordure simple */
    cursor: pointer;
}

/* Description */
.extra-desc {
    font-size: 0.9rem;
    color: #aaa;
    max-width: 90%;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Assurer que le contenu reste au-dessus de la bordure dégradée */
.extra-section > * {
    position: relative;
    z-index: 1;
}

.team-extra .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    width: 180px;          /* taille réduite */
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;        /* centre horizontalement */
}

.team-extra .feature-item:hover {
    background: rgba(102, 0, 255, 0.2);
    transform: scale(1.05);
}

.team-extra .feature-item i {
    font-size: 1.5rem;
    color: #3399ff;
}

.team-extra .feature-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.team-grid.carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
}

.team-grid.carousel::-webkit-scrollbar {
    display: none;
}

/* ===== CARROUSEL WRAPPER ===== */
.team-carousel-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
}

/* ===== CARROUSEL ===== */
.team-grid.carousel {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;

    /* SNAP */
    scroll-snap-type: x mandatory;

    /* cache scrollbar */
    scrollbar-width: none;
}
.team-grid.carousel::-webkit-scrollbar {
    display: none;
}

/* ===== CARTE ===== */
.team-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent; /* bordure transparente pour le masque */
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

/* Bordure dégradée */
.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px; /* largeur de la bordure */
    border-radius: 15px;
    background: linear-gradient(135deg, #6600FF, #3399FF); /* violet → bleu */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Effet shimmer */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(51, 153, 255, 0.5),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
}

.team-card:hover::before {
    animation: shimmer 1.5s infinite;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(51, 153, 255, 0.5);
}


/* ===== BOUTONS ===== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* ===== MODE GRID (quand filtre actif) ===== */
.team-grid.grid-mode {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 1.2rem;
    overflow: visible;
}

/* ===================== FOOTER ===================== */
.teams-footer {
    max-width: 1130px;
    margin: 4rem auto 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    position: relative; /* nécessaire pour ::after */
    text-align: center;
    opacity: 1;
    border: none; /* <-- supprimer la bordure de base */
    box-sizing: border-box;
}

/* Bordure dégradée violet → bleu uniquement */
.teams-footer::after {
    content: '';
    position: absolute;
    inset: 0;              /* prend toute la taille du footer */
    padding: 3px;          /* largeur de la bordure */
    border-radius: 15px;
    background: linear-gradient(135deg, #6600FF, #3399FF); /* violet → bleu */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; /* masque le centre */
    mask-composite: exclude;     /* pour Firefox */
    pointer-events: none;        /* pas de clic */
}

/* Le contenu doit rester au-dessus */
.teams-footer > * {
    position: relative;
    z-index: 1;
}

.teams-footer p {
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.teams-footer .warning {
    color: #ff4444;
    font-weight: bold;
}

.teams-gradient-title {
    background: linear-gradient(90deg, #6633ff, #33ffff, #3399ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Image Modal */
#imageModal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    opacity: 0;            /* invisible au départ */
    transition: opacity 0.3s ease; /* fondu */
}

#imageModal.show {
    display: flex;         /* nécessaire pour l’affichage */
    opacity: 1;            /* visible avec transition */
}

#imageModal.show .modal-img {
    transform: scale(1);   /* zoom à taille normale */
}

#imageModal .modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 2px solid #3399ff;
    transform: scale(0.9); /* départ légèrement plus petit */
    transition: transform 0.3s ease;
}

#imageModal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Mobile clean */
@media (max-width: 768px) {
    .footer-credit {
        justify-content: center;
        width: 100%;
    }
}

#discordTicketBtn {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #6600FF;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(102,0,255,0.3), rgba(51,153,255,0.3));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(51,153,255,0.5), 0 0 10px rgba(102,0,255,0.5);
    transition: all 0.3s ease;
    margin-bottom: 2rem; /* espace sous le bouton avant le footer */
}

#discordTicketBtn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(51,153,255,0.6), 0 0 15px rgba(102,0,255,0.6);
    background: linear-gradient(90deg, rgba(51,153,255,1), rgba(102,0,255,1));
}

/* =========================================================
   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;
}

/* =========================================================
   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);
}