:root {
    --primary-color: #000000;
    --secondary-color: #3399ff;
    --accent-color: #3399ff;
    --text-color: #ffffff;
    --gradient: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

/* =========================================================
   RESET / BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* =========================================================
   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);
}

/* Scrollbar dans les modals */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6633FF, #3399FF);
    border-radius: 4px;
    box-shadow: inset 0 0 3px rgba(102,0,255,0.5);
}

/* Hover pour scrollbar */
body::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #33FFFF, #6633FF);
}

/* =========================================================
   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 ILLEGAL – 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/illegales.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 {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ====================
   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;
}

/* ====================
   CTA
==================== */
.cta-button {
    background: rgba(51, 153, 255, 0.1);
    color: #fff;
    padding: 0.8rem 2rem;
    border: 3px solid #6600FF;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background: rgba(51, 153, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 0, 255, 0.3);
}

/* =========================================================
   MOBILE (Téléphone)
========================================================= */
@media (max-width: 768px) {
    .hero {
        padding: 70px 15px 40px;
    }

    .hero-content {
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */
@media (max-width: 400px) {
    .hero-gradient-title {
        font-size: 2rem;
    }
}

/* ===================== CONTAINER ===================== */
.illegals-container {
    max-width: 1200px;
    margin: 0px auto 50px;
    padding: 2rem;
}

/* ===================== HEADER ===================== */
.illegals-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.illegals-header h2 {
    font-size: 3rem;
    background: linear-gradient(90deg, #6633ff, #3399ff, #33ffff, #6633ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 6s ease infinite, fadeInUp 0.8s ease;
    margin-bottom: 1rem;
}

.illegals-header p {
    color: #888;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Gradient animé pour h2 */
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================== GRID ===================== */
.illegals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ===================== CARDS ===================== */
.illegal-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeZoomIn 0.6s forwards;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Bordure gradient arrondie visible tout le temps */
.illegal-card::before {
    content: '';
    position: absolute;
    inset: 0; /* couvre toute la carte */
    border-radius: 20px; /* même que la carte */
    padding: 3px; /* épaisseur de la bordure */
    background: linear-gradient(135deg, #3b82f6, #6a0dad); /* bleu → violet */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1; /* derrière le contenu de la carte */
}

/* Glow animé sur hover */
.illegal-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 12px 35px rgba(51,153,255,0.6), 0 0 20px rgba(102,0,255,0.5);
}

/* Overlay gradient animée */
.illegal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(51, 153, 255, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.illegal-card:hover::after {
    transform: translateX(100%);
}

/* Numéros VIP RP */
.illegal-card .illegal-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6a0dad, #3b82f6);
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(102,0,255,0.4);
    transition: all 0.3s ease;
}

.illegal-card:hover .illegal-number {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 25px rgba(51,153,255,0.7);
}

/* Titres des cards */
.illegal-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.illegal-card h3 i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.illegal-card:hover h3 i {
    transform: scale(1.2) rotate(5deg);
}

/* Texte des cards */
.illegal-card p {
    line-height: 1.6;
    color: #888;
    margin-bottom: 1rem;
}

/* Détails & listes */
.illegal-card .illegal-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 0, 255, 0.5);
}

.illegal-card .illegal-details ul {
    list-style: none;
    padding: 0;
}

.illegal-card .illegal-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
    transition: all 0.3s ease;
}

.illegal-card .illegal-details li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Hover effet lumineux VIP RP sur les listes */
.illegal-card .illegal-details li:hover,
.modal-content ul li:hover {
    color: #fff;
    transform: translateX(5px) scale(1.05);
    text-shadow: 0 0 8px rgba(51,153,255,0.7);
}

/* Animation fade + zoom pour les cards */
@keyframes fadeZoomIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation des cards par ordre */
.illegal-card:nth-child(1) { animation-delay: 0.1s; }
.illegal-card:nth-child(2) { animation-delay: 0.2s; }
.illegal-card:nth-child(3) { animation-delay: 0.3s; }
.illegal-card:nth-child(4) { animation-delay: 0.4s; }
.illegal-card:nth-child(5) { animation-delay: 0.5s; }
.illegal-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================== FOOTER ===================== */
.illegals-footer {
    position: relative;
    text-align: center;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 15px;
    max-width: 1200px;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

/* Border dégradé arrondi sans recouvrir le background */
.illegals-footer::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; bottom:0; left:0; right:0 */
    padding: 3px; /* épaisseur du border */
    border-radius: inherit;
    background: linear-gradient(45deg, #4a90e2, #6600ff);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; /* Masque le centre pour ne garder que le contour */
    pointer-events: none;
    z-index: 1;
}

/* ===================== PARAGRAPHES ===================== */
.illegals-footer p {
    color: #ccc;
    margin-bottom: 1rem;
}

.illegals-footer .warning {
    color: #ffcc00;
    font-weight: bold;
    margin-top: 2rem;
}

/* ===================== DETAILS / SUMMARY ===================== */
.illegals-footer details {
    margin-bottom: 1rem;
}

.illegals-footer summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: #6600ff;
    outline: none;
}

.illegals-footer details details summary {
    color: #6600ff;
    font-size: 1rem;
    margin-left: 1rem;
}

.illegals-footer details div {
    margin-top: 0.5rem;
    color: #ccc;
    line-height: 1.6;
    margin-left: 1rem;
}

/* ===================== HOVER / FOCUS ===================== */
.illegals-footer summary:hover {
    color: #4a90e2;
}

.illegals-footer summary:focus {
    color: #4a90e2;
    outline: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .illegals-footer {
        padding: 1.5rem;
    }
    .illegals-footer summary {
        font-size: 1.1rem;
    }
    .illegals-footer details details summary {
        font-size: 0.95rem;
    }
}

/* ===================== BOUTONS ===================== */
.btn-illegal {
    display: inline-block;
    padding: 1rem 2.2rem;
    background: rgba(51, 153, 255, 0.05);
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgb(102, 0, 255);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glow animé VIP RP */
.btn-illegal::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        rgba(102,0,255,0.5), 
        rgba(51,153,255,0.5),
        rgba(102,0,255,0.5)
    );
    transform: rotate(45deg) translateX(-100%);
    transition: all 0.5s ease;
    z-index: 0;
}

.btn-illegal:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-illegal:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 153, 255, 0.5), 0 0 15px rgba(51, 153, 255, 0.4);
    background: rgba(51, 153, 255, 0.1);
    color: #fff;
}

/* Texte & icônes au-dessus de l’effet */
.btn-illegal span, .btn-illegal i {
    position: relative;
    z-index: 1;
}

/* Conteneur des boutons */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* ===================== MODAL ===================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

/* Contenu du modal */
.modal-content {
    background: rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 900px;
    color: #fff;
    position: relative;
    border-radius: 20px;
    border: 2px solid rgb(102, 0, 255, 0.5);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 35px rgba(51, 153, 255, 0.5);
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95);
    animation: modalIn 0.4s forwards;
}

/* Titres dans modal */
.modal-content h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-content h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
}

/* Listes dans modal */
.modal-content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.modal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.modal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Bouton fermer modal */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff4444;
    transform: scale(1.2);
}

/* CONTENEUR */
.braquage-table-container {
    position: relative; /* pour le pseudo-élément border */
    margin-top: 4rem;
    background: rgba(0,0,0,0.75);
    padding: 2rem;
    border-radius: 20px;
    /* on enlève le border simple */
    border: none;
    z-index: 0;
}

/* Border dégradé arrondi */
.braquage-table-container::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; bottom:0; left:0; right:0 */
    padding: 3px; /* épaisseur du border */
    border-radius: inherit;
    background: linear-gradient(45deg, #4a90e2, #6600ff); /* bleu → violet */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; /* ne garde que le contour */
    pointer-events: none;
    z-index: 1;
}

/* SCROLL HORIZONTAL */
.table-responsive {
    overflow-x: auto;
}

/* TABLE PRINCIPALE */
.braquage-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.6rem;
    min-width: 900px;
}

/* CASES GENERALES */
.braquage-table th,
.braquage-table td {
    padding: 0.9rem 0.6rem;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    background: rgba(10, 10, 20, 0.85);
    border: 2px solid rgba(102, 0, 255, 0.6);
    border-radius: 20px;
    transition: all 0.25s ease;
}

/* EN-TÊTES */
.braquage-table th {
    background: linear-gradient(135deg, rgba(102,0,255,0.35), rgba(51,153,255,0.35));
    color: #33ffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
}

/* PREMIERE COLONNE FIXE */
.braquage-table th:first-child,
.braquage-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(0,0,0,0.9);
    font-weight: bold;
    color: #33ffff;
}

/* HOVER SUR LES CASES */
.braquage-table td:hover {
    background: rgba(51,153,255,0.15);
    box-shadow: 0 0 12px rgba(51,153,255,0.6);
    transform: scale(1.05);
}

/* CLASSES POUR OUI / NON */
.braquage-table .no {
    color: #ff4d6d;
    font-weight: bold;
}

.braquage-table .yes {
    color: #4dff88;
    font-weight: bold;
}

/* DIFFICULTE LIGNE */
.braquage-easy td { background: rgba(0,150,0,0.2); }
.braquage-medium td { background: rgba(255,165,0,0.2); }
.braquage-hard td { background: rgba(255,50,50,0.2); }

/* GLOW AU SURVOL PAR DIFFICULTE */
.braquage-easy:hover td { box-shadow: 0 0 15px rgba(0,255,100,0.6); }
.braquage-medium:hover td { box-shadow: 0 0 15px rgba(255,165,0,0.6); }
.braquage-hard:hover td { box-shadow: 0 0 20px rgba(255,50,50,0.8); }

/* FAVORIS (étoile) */
.braquage-table .star {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #ffff66;
}

.braquage-table .star:hover {
    transform: scale(1.3);
    color: #ffcc00;
}

.braquage-table .favorite-row td {
    border-color: #33ffff;
    background: rgba(51,255,204,0.15);
    box-shadow: 0 0 15px rgba(51,255,204,0.7);
}

/* TOOLTIP */
.braquage-table td[data-tooltip] {
    position: relative;
    cursor: help;
}

.braquage-table td[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.braquage-table td[data-tooltip]:hover::after {
    opacity: 1;
}

/* PROGRESS BAR DANS CELLULES */
.progress-bar {
    background: rgba(255,255,255,0.1);
    height: 6px;
    border-radius: 20px;
    margin: 0 auto;
    width: 80%;
    position: relative;
}

.progress-bar .fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* Couleur graduée selon pourcentage */
.progress-bar .fill[data-percent] {
    background: linear-gradient(to right, #4dff88, #33ccff);
}

/* Tooltip sur la barre */
.progress-bar[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
}

/* MODAL ITEMS */
.item-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.item-modal-content {
    background: #111;
    color: #fff;
    padding: 2rem;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(51,153,255,0.7);
}

.item-modal-content h3 {
    margin-bottom: 1rem;
    color: #3399ff;
}

.item-modal-content #modalItems {
    margin-top: 0.5rem;
    color: #fff;
    font-weight: bold;
}

/* CROIX MODAL */
.item-modal-content .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff4d6d;
    transition: color 0.2s ease;
}

.item-modal-content .close-modal:hover {
    color: #ff9999;
}

/* FILTRES */
.braquage-filters {
    margin-bottom: 1rem;
    text-align: center;
}

.braquage-filters button {
    background: rgba(102,0,255,0.3);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.braquage-filters button:hover,
.braquage-filters button.active {
    background: rgba(51,153,255,0.6);
    color: #fff;
}

/* CHAMP DE RECHERCHE */
#searchBraquage {
    display: block;
    margin: 0 auto 1rem auto;
    padding: 0.5rem 1rem;
    width: 50%;
    max-width: 300px;
    border-radius: 20px;
    border: 2px solid #6633ff;
    background: rgba(0,0,0,0.6);
    color: #fff;
}

/* RESPONSIVE POUR PETIT ECRAN */
@media screen and (max-width: 900px) {
    .braquage-table th,
    .braquage-table td {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }

    .item-modal-content {
        width: 90%;
        padding: 1.5rem;
    }

    .braquage-filters button {
        padding: 0.4rem 0.7rem;
        margin: 0.1rem;
        font-size: 0.75rem;
    }

    #searchBraquage {
        width: 80%;
    }
}

.gradient-title {
    background: linear-gradient(90deg, #6633ff, #33ffff, #3399ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff; /* fallback si le dégradé ne s'affiche pas */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* contour léger pour lisibilité */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
    to {
        transform: scale(1);
        box-shadow: 0 12px 40px rgba(51,153,255,0.6);
    }
}

@media (max-width: 768px) {
    .braquage-table td:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===================== FILTRES ILLÉGAUX ===================== */
.illegal-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.illegal-filter button {
    padding: 0.6rem 1.2rem;
    border: 2px solid #6633ff;
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.illegal-filter button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(102,0,255,0.3), rgba(51,153,255,0.3), rgba(102,0,255,0.3));
    transform: rotate(45deg) translateX(-100%);
    transition: all 0.5s ease;
    z-index: 0;
}

.illegal-filter button:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.illegal-filter button:hover {
    color: #fff;
    background: rgba(102, 0, 255, 0.3);
    transform: scale(1.05);
    border-color: #3399ff;
}

.illegal-filter button.active {
    background: #6633ff;
    color: #fff;
    border-color: #3399ff;
}

/* ================== CSS pour les cartes US ================== */
.id-card-us-section {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 1.5rem;
    justify-content: center;
    align-content: start;  /* on met start pour éviter un gros vide vertical */
    min-height: 70vh;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .id-card-us-section {
        grid-template-columns: repeat(2, 280px); /* 2 cartes par ligne tablette */
    }
}

@media (max-width: 600px) {
    .id-card-us-section {
        grid-template-columns: 1fr; /* 1 carte par ligne mobile */
        max-width: 280px;
        margin: 0 auto;
    }
}

.id-card-us {
    position: relative; /* pour le pseudo-élément border */
    display: flex;
    align-items: center;
    width: 280px;
    height: 120px;
    background: linear-gradient(135deg, #111, #222);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(102,51,255,0.5);
    padding: 0.5rem;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;

    /* on enlève le border simple */
    border: none;
    z-index: 0;
}

.id-card-us::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; bottom:0; left:0; right:0 */
    padding: 3px; /* épaisseur du border */
    border-radius: inherit; /* garde les coins arrondis */
    background: linear-gradient(45deg, #4a90e2, #6600ff); /* bleu → violet */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; /* masque le centre pour ne garder que le contour */
    pointer-events: none;
    z-index: 1;
}

.id-card-us:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(102,51,255,0.8);
}

.id-card-us-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #6633ff;
    margin-right: 0.8rem;
    box-shadow: 0 0 10px #3399ff;
}

.id-card-us-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #6633ff;
}

.id-card-us-info p {
    margin: 2px 0;
    font-size: 0.85rem;
}

.id-card-us-info button {
    margin-top: 5px;
    padding: 3px 6px;
    font-size: 0.75rem;
    background: #6633ff;
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.id-card-us-info button:hover {
    background: #3399ff;
    color: #111;
}

/* ================== Modal immersive ================== */
.modal.immersive { 
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background: rgba(0,0,0,0.9); 
    z-index:10001; 
    overflow:auto; 
}
.modal-content.immersive-content { 
    background:#111; 
    margin:5% auto; 
    padding:1rem; 
    border:2px solid #6633ff; 
    width:90%; 
    max-width:800px; 
    border-radius: 20px; 
    color:#fff; 
}
.modal-header { display:flex; align-items:center; margin-bottom:1rem; }
.modal-logo { width:80px; height:80px; margin-right:1rem; border-radius:50%; border:2px solid #6633ff; }
.modal-title h2 { margin:0; color:#3399ff; }
.modal-title span { color:#ccc; font-size:0.9rem; }
.modal-section { margin-bottom:1rem; }
.modal-warning { background:#330000; padding:0.5rem; border-left:4px solid #ff4444; margin-top:1rem; }
.close { color:#ff4444; float:right; font-size:1.5rem; font-weight:bold; cursor:pointer; }

/* ================== Boutons de filtre Gang / MC / Organisation ================== */
.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #6633ff; /* violet bord */
    border-radius: 20px;
    background-color: #111; /* fond sombre */
    color: #33ffff; /* texte jaune */
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem; /* petit espace entre boutons */
}

.filter-btn:hover {
    background-color: #6633ff; /* violet foncé au survol */
    color: #fff;
    transform: scale(1.05);
}

.filter-btn.active {
    background-color: #ffcc00; /* jaune si actif */
    color: #111; /* texte sombre */
    border-color: #ffcc00;
}

/* ===================== CHAMP DISCORD ===================== */
.discord-validation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.discord-validation input#discordId {
    padding: 0.5rem 1rem;
    border: 2px solid #8a2be2; /* violet */
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

.discord-validation input#discordId:focus {
    border-color: #a64bff;
    box-shadow: 0 0 10px rgba(154,60,255,0.5);
}

/* Bouton Valider Discord */
.discord-validation button#validateDiscord {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8a2be2, #60a5fa);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-validation button#validateDiscord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 0, 255, 0.4);
    background: linear-gradient(135deg, #9a3cff, #7aa2ff);
}

/* ===================== PROGRESSION ===================== */
.rules-progress {
    text-align: center;
    margin: 2rem auto;
    font-weight: 600;
    color: #33ffff;
    width: 80%;
    max-width: 400px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(51, 0, 153, 0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rules-progress p {
    margin: 0.5rem 0;
}

/* Barre de progression */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #8a2be2, #60a5fa);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Bouton Reset */
.rules-progress button#adminResetBtn {
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(51, 153, 255, 0.1);
    border: 1px solid rgba(102,0,255,0.5);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rules-progress button#adminResetBtn:hover {
    background: rgba(51, 153, 255, 0.3);
    transform: translateY(-1px);
}

/* ===================== BOUTON VALIDATION RULES ===================== */
.validate-rule {
    display: block;
    margin: 1rem auto 0 auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 12px;
    border: 2px solid #6633ff;
    background: linear-gradient(135deg, #8a2be2, #60a5fa);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(51,153,255,0.4);
    transition: all 0.3s ease;
}

.validate-rule:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 5px 15px rgba(51,153,255,0.6);
    background: linear-gradient(135deg, #9a3cff, #7aa2ff);
}

/* =========================================================
   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;
    }
}

html.modal-open {
    overflow: hidden;
}

/* =========================================================
   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);
}