: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 overlay */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    z-index: 10001;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* pour éviter que le contenu touche les bords */
}

/* Modal content */
.modal-content {
    background: rgba(0,0,0,0.75);
    padding: 2rem;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;       /* limite la hauteur à 85% de la fenêtre */
    overflow-y: auto;       /* scroll uniquement si nécessaire */
    border-radius: 15px;
    border: 1px solid #6633ff;
    box-shadow: 0 10px 35px rgba(51, 153, 255, 0.5);
    position: relative;
    animation: modalIn 0.4s forwards;
}

/* Scrollbar stylée pour les modals */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.1);
    border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6633FF, #3399FF);
    border-radius: 6px;
    box-shadow: inset 0 0 3px rgba(102,0,255,0.5);
}

.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 RULES – 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/regle.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
==================== */
.hero-gradient-title {
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;

    color: transparent;
    background: linear-gradient(135deg, #6633FF, #3399FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====================
   TEXTE INTRO
==================== */
.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    margin: 0;
}

/* Bloc warning mis en valeur */
.hero-content [data-i18n="rules_warning"] {
    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="rules_warning"]::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) {
    .hero-gradient-title {
        font-size: 2rem;
    }
}

/* ===================== CONTAINER ===================== */
.rules-container {
    max-width: 1200px;
    margin: 0px auto 50px;
    padding: 2rem;
}

    /* ===================== HEADER ===================== */
.rules-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.rules-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;
}

.rules-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 ===================== */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ===================== CARDS ===================== */
.rule-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 */
.rule-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 */
.rule-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 */
.rule-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;
}

.rule-card:hover::after {
    transform: translateX(100%);
}

/* Numéros VIP RP */
.rule-card .rule-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;
}

.rule-card:hover .rule-number {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 25px rgba(51,153,255,0.7);
}

/* Titres des cards */
.rule-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-card h3 i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.rule-card:hover h3 i {
    transform: scale(1.2) rotate(5deg);
}

/* Texte des cards */
.rule-card p {
    line-height: 1.6;
    color: #888;
    margin-bottom: 1rem;
}

/* Détails & listes */
.rule-card .rule-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 0, 255, 0.5);
}

.rule-card .rule-details ul {
    list-style: none;
    padding: 0;
}

.rule-card .rule-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
    transition: all 0.3s ease;
}

.rule-card .rule-details li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Hover effet lumineux VIP RP sur les listes */
.rule-card .rule-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 décalée pour chaque carte */
.rule-card:nth-child(1) { animation-delay: 0.1s; }
.rule-card:nth-child(2) { animation-delay: 0.2s; }
.rule-card:nth-child(3) { animation-delay: 0.3s; }
.rule-card:nth-child(4) { animation-delay: 0.4s; }
.rule-card:nth-child(5) { animation-delay: 0.5s; }
.rule-card:nth-child(6) { animation-delay: 0.6s; }
.rule-card:nth-child(7) { animation-delay: 0.7s; }
.rule-card:nth-child(8) { animation-delay: 0.8s; }
.rule-card:nth-child(9) { animation-delay: 0.9s; }

/* ===================== FOOTER ===================== */
.rules-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 2px solid rgba(102, 0, 255);
    animation: fadeInUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

.rules-footer p {
    color: #888;
    margin-bottom: 1rem;
}

.rules-footer .warning {
    color: #ff4444;
    font-weight: bold;
}

/* ===================== BOUTONS ===================== */
.btn-open-rp {
    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-open-rp::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: transform 0.5s ease;
    z-index: 0;
}

.btn-open-rp:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-open-rp: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;
}

.btn-open-rp span, .btn-open-rp i {
    position: relative;
    z-index: 1;
}

.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);
}

.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;
}

.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;
}

.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);
}

/* ===================== MODAL ACTIVE ===================== */
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.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);
}

/* ===== 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);
    }
}

/* ===================== BADGES ===================== */
.rule-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #6a0dad, #3b82f6);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===================== FILTER BUTTONS ===================== */
.rules-filter {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rules-filter button {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background: rgba(51, 0, 153, 0.3);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rules-filter button:hover,
.rules-filter button.active {
    background: linear-gradient(135deg, #6a0dad, #3b82f6);
    color: #fff;
}

/* ===================== ICON ANIMATIONS ===================== */
.rule-card h3 i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.rule-card:hover h3 i {
    transform: scale(1.3) rotate(10deg);
}

.rule-card.read {
    border-color: #33ffff; /* Highlight de la carte */
}

.rule-card.read .rule-number {
    color: #33ffff;
}

.modal-footer {
    text-align: center;
    margin-top: 2rem;
}

.btn-understood {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #6a0dad, #3b82f6);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-understood:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, #8b2dd8, #60a5fa);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ===================== CHAMP DISCORD ===================== */
.discord-validation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    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;
}

.discord-validation input#discordId:focus {
    border-color: #a64bff;
}

.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;
}

.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;
}

.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);
}

html.modal-open {
    overflow: hidden;
}

.modal-large {
    max-width: 95%;
}

/* ===================== CONTAINER TABLEAU ===================== */
.sanction-table-container {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.75);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #6633ff; /* violet */
    box-shadow: 0 8px 25px rgba(51,153,255,0.5);
    overflow-x: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== TITRE ===================== */
.sanction-table-container .sanction-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #33ffff;
    margin-bottom: 1.5rem;
}

/* ===================== DESCRIPTION ===================== */
.sanction-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.sanction-description h2,
.sanction-description h3,
.sanction-description p {
    text-align: left;
    width: 100%;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.sanction-description p.warning {
    color: #ffbb33;
    font-weight: 600;
}

/* ===================== CONTAINER TABLEAU ===================== */
.sanction-table-container {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.75);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #6633ff; /* violet */
    box-shadow: 0 8px 25px rgba(51,153,255,0.5);
    overflow-x: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== TITRE ===================== */
.sanction-table-container .gradient-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #33ffff;
    margin-bottom: 1.5rem;
}

/* ===================== DESCRIPTION ===================== */
.sanction-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.sanction-description h2,
.sanction-description h3,
.sanction-description p {
    text-align: left;
    width: 100%;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.sanction-description p.warning {
    color: #ffbb33;
    font-weight: 600;
}

/* ===================== FILTRES + RECHERCHE ===================== */
.sanction-filters-search {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.sanction-filters-combined {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sanction-filters-combined button {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,#6a0dad,#3b82f6);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sanction-filters-combined button.active {
    box-shadow: 0 0 10px rgba(51,153,255,0.7);
    transform: scale(1.05);
}

/* RECHERCHE */
.sanction-search input {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    color: #fff;
    min-width: 180px;
}

/* ===================== TABLEAU ===================== */
.sanction-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.6rem;
    min-width: 900px;
}

.sanction-table th,
.sanction-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;
}

.sanction-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;
    cursor: default;
}

.sanction-table th:first-child,
.sanction-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(0,0,0,0.9);
    font-weight: bold;
    color: #33ffff;
}

.sanction-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);
}

/* BAN VERTICAL */
.ban-cell {
    color: #ff4d4d;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 4px;
}

.ban-perma {
    color: #ff0000;
}

/* WARNING SOUS TABLEAU */
.sanction-warning {
    margin-top: 1rem;
    text-align: center;
    color: #ffbb33;
    font-weight: 600;
    font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sanction-table {
        min-width: 600px;
    }
    .sanction-table-container {
        padding: 1rem;
    }
    .sanction-description {
        max-width: 100%;
    }
    .sanction-filters-search {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .sanction-filters-combined {
        justify-content: flex-start;
    }
    .sanction-search input {
        width: 100%;
        min-width: unset;
    }
}

/* =========================================================
   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);
}