:root {
    --secondary-color: #3399ff;
    --accent-color: #3399ff;
    --gradient: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

/* =========================================================
   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
========================================================= */
body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.1);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb,
.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;
    width: 0%;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    z-index: 99999;
    transition: width 0.25s ease;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(102, 0, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 5px 20px rgba(51, 153, 255, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-brand i {
    color: #3399ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-brand:hover i {
    transform: scale(1.1);
    color: #33ffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav-links a {
    position: relative;
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    box-shadow: 0 0 8px #3399ff80, 0 0 12px #6633ff60;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #3399ff;
    box-shadow: 0 0 6px #3399ff60, 0 0 10px #6633ff40;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    user-select: none;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
    color: #33ffff;
}

/* =========================================================
   NAVBAR RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem 0.5rem;
        border-radius: 16px;
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 400px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 9999;
    }

    .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);
        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 SERVICE PUBLIQUES – RESPONSIVE (DESKTOP + MOBILE)
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        url("https://r2.fivemanage.com/ZoSR7TklbKs6LKQicbSAe/lgales.gif")
        center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    border-radius: 20px;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    animation: fadeSlideIn 1s ease forwards;
}

/* ====================
   TITRE HERO
==================== */
.hero-gradient-title {
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    margin: 0;

    color: transparent;
    background: linear-gradient(135deg, #6633FF, #3399FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====================
   TEXTE HERO
==================== */
.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    margin: 0;
}

/* Bloc warning éventuel */
.hero-content [data-i18n="privacy_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: #ff3333;
    font-weight: 600;
    margin-top: 0.8rem;
}

/* Barre verticale à gauche */
.hero-content [data-i18n="privacy_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;
}

/* ====================
   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);
}

/* ====================
   ANIMATION
==================== */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOBILE (Téléphone)
========================================================= */
@media (max-width: 768px) {
    .hero {
        padding: 70px 15px 40px;
    }

    .hero-content {
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */
@media (max-width: 400px) {
    .hero-gradient-title {
        font-size: 2rem;
    }
}

/* ===================== 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 ===================== */
.rule-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;
}

.rule-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);
}

/* ===================== FILTRES ILLÉGAUX ===================== */
.rule-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.rule-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;
}

.rule-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;
}

.rule-filter button:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.rule-filter button:hover {
    color: #fff;
    background: rgba(102, 0, 255, 0.3);
    transform: scale(1.05);
    border-color: #3399ff;
}

.rule-filter button.active {
    background: #6633ff;
    color: #fff;
    border-color: #3399ff;
}

/* ===================== CONTAINER ===================== */
.fonctions-container {
    max-width: 1200px;
    margin: 10px auto 50px;
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
}

/* ===================== HEADER ===================== */ 
.fonctions-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.fonctions-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;
}

.fonctions-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 ===================== */
.fonctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ===================== CARDS ===================== */
.fonction-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 */
.fonction-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 */
.fonction-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 */
.fonction-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;
}

.fonction-card:hover::after {
    transform: translateX(100%);
}

/* Numéros VIP RP */
.fonction-card .fonction-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;
}

.fonction-card:hover .fonction-number {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 25px rgba(51,153,255,0.7);
}

/* Titres des cards */
.fonction-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fonction-card h3 i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.fonction-card:hover h3 i {
    transform: scale(1.2) rotate(5deg);
}

/* Texte des cards */
.fonction-card p {
    line-height: 1.6;
    color: #888;
    margin-bottom: 1rem;
}

/* Détails & listes */
.fonction-card .fonction-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 0, 255, 0.5);
}

.fonction-card .fonction-details ul {
    list-style: none;
    padding: 0;
}

.fonction-card .fonction-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
    transition: all 0.3s ease;
}

.fonction-card .fonction-details li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Hover effet lumineux VIP RP sur les listes */
.fonction-card .fonction-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 */
.fonction-card:nth-child(1) { animation-delay: 0.1s; }
.fonction-card:nth-child(2) { animation-delay: 0.2s; }
.fonction-card:nth-child(3) { animation-delay: 0.3s; }
.fonction-card:nth-child(4) { animation-delay: 0.4s; }
.fonction-card:nth-child(5) { animation-delay: 0.5s; }
.fonction-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================== FOOTER ===================== */
.fonctions-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(102, 0, 255);
    animation: fadeInUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

.fonctions-footer p {
    color: #888;
    margin-bottom: 1rem;
}

.fonctions-footer .warning {
    color: #ff4444;
    font-weight: bold;
}

/* ===================== BOUTONS ===================== */
.btn-open-code-penal {
    display: inline-block;
    padding: 1rem 2.2rem;
    background: rgba(51, 153, 255, 0.05);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px 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-code-penal::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-code-penal:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-open-code-penal: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-open-code-penal span, .btn-open-code-penal i {
    position: relative;
    z-index: 1;
}

.btn-container {
    display: flex;               /* active l’alignement horizontal */
    justify-content: center;     /* centre les boutons horizontalement */
    gap: 1rem;                   /* espace entre les boutons */
    flex-wrap: wrap;             /* passe à la ligne sur petit écran */
    margin: 2rem 0;              /* espace autour du conteneur */
}

/* ===================== 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: 15px;
    border: 1px 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);
}

/* ================== Boutons de filtre Jobs / US ================== */
.filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #6633ff; /* violet bord */
    border-radius: 20px;
    background: rgba(51,153,255,0.05); /* fond léger comme les cartes */
    color: #fff; /* texte blanc */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin: 0.3rem;
    z-index: 1;
}

/* Effet gradient animé sur hover */
.filter-btn::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;
}

.filter-btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Hover général */
.filter-btn: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 au-dessus de l'effet */
.filter-btn span, .filter-btn i {
    position: relative;
    z-index: 1;
}

/* Bouton actif */
.filter-btn.active {
    border-color: #33ffff;
    background: rgba(51,153,255,0.15);
    color: #33ffff;
}

/* ================== CARTES JOBS US ================== */
.id-card-us-section {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 1.5rem;
    justify-content: center;
    align-content: start;
    min-height: 70vh;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .id-card-us-section {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 600px) {
    .id-card-us-section {
        grid-template-columns: 1fr;
        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;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.id-card-us:hover .id-card-us-logo {
    transform: scale(1.1);
    box-shadow: 0 0 20px #33ffff, 0 0 15px #6633ff;
}

.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;
    transform: scale(1.05);
}

/* ================== MODAL IMMERSIF JOBS ================== */
.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; 
    animation: fadeInUp 0.4s ease forwards;
}

.modal-content.immersive-content { 
    background:#111; 
    margin:5% auto; 
    padding:2rem; 
    border:2px solid #6633ff; 
    width:90%; 
    max-width:800px; 
    border-radius: 20px; 
    color:#fff; 
    box-shadow: 0 10px 35px rgba(51, 153, 255, 0.5);
    position: relative;
}

.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; 
}

.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: #ff4444;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #fff;
    transform: scale(1.2);
}

/* ================== Boutons dans les Modals ================== */
.btn-legal, .btn-job {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: rgba(51,153,255,0.05); /* fond léger */
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgb(102,0,255);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    margin-top: 0.5rem;
}

/* Effet gradient animé */
.btn-legal::after, .btn-job::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;
}

/* Hover glow et scale */
.btn-legal:hover::after, .btn-job:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-legal:hover, .btn-job: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 et icônes au-dessus de l’effet */
.btn-legal span, .btn-legal i,
.btn-job span, .btn-job i {
    position: relative;
    z-index: 1;
}

/* Animation fadeUp pour modals */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   LOGO
========================================================= */
.logo {
    height: 50px;
    width: auto;
    border-radius: 20px;
    filter: drop-shadow(0 0 10px rgba(51, 153, 255, 0.5));
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background: linear-gradient(to right, rgba(51,153,255,0.05), rgba(102,0,255,0.05));
    padding: 0.8rem 2rem;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #fff;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 2px solid rgba(102,0,255,0.3);
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-left a {
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(51,153,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(102,0,255,0.3);
    transition: all 0.3s ease;
}

.footer-left a:hover {
    background: rgba(51,153,255,0.25);
    color: #33ffff;
    transform: translateY(-1px);
}

.footer-center {
    text-align: center;
    color: #aaa;
}

.footer-right img {
    height: 18px;
    width: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 3px rgba(102,0,255,0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-right img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(51,153,255,0.7));
}

.footer-right span {
    color: #aaa;
}

.footer-right strong {
    color: #33ffff;
}

/* =========================================================
   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);
}