/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    /* Palette Azuria : flamme du logo (jaune -> orange -> rouge) sur noir, croix occitane en gris */
    --primary: #ff6a00;
    --primary-light: #ffb020;
    --secondary: #c81400;
    --accent: #ffd21f;

    --primary-rgb: 255, 106, 0;
    --secondary-rgb: 200, 20, 0;
    --accent-rgb: 255, 210, 31;

    /* Rouge braise : bouton de don, urgence */
    --ember: #e3180a;
    --ember-dark: #8f0b00;
    --ember-rgb: 227, 24, 10;

    /* Fonds : noir profond, gris chauds (la croix occitane du logo est gris #666) */
    --dark: #050505;
    --dark-2: #0e0e0e;
    --dark-22: #1a0d06;
    --dark-3: #161616;
    --light: #ffffff;
    --gray: #b8b2ab;
    --gray-dim: #7d7770;
    --cross: #666666;
    --gold: #ffd21f;
    --success: #1fbf88;
    --danger: #ff4757;
    --warning: #ffa502;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 22px 70px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 8px 30px rgba(255, 106, 0, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Focus clavier visible et cohérent sur toute la page (accessibilité) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.spinner {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 auto 20px;
}

.spinner > div {
    background: var(--primary);
    width: 15%;
    height: 100%;
    display: inline-block;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
    border-radius: 3px;
}

.spinner .rect2 { animation-delay: -1.1s; }
.spinner .rect3 { animation-delay: -1.0s; }
.spinner .rect4 { animation-delay: -0.9s; }
.spinner .rect5 { animation-delay: -0.8s; }

@keyframes sk-stretchdelay {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1.0); }
}

.loader p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a {
    padding: 10px 20px;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--light);
    background: rgba(255, 106, 0, 0.12);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: var(--light) !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-glow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 106, 0, 0.45);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../images/journerdespompier.png') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.55) 55%, rgba(5, 5, 5, 0.92) 100%),
        linear-gradient(135deg, rgba(200, 20, 0, 0.45) 0%, rgba(5, 5, 5, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 30px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 22px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.hero-title-line {
    display: block;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--light);
}

.hero-title-line.gradient-text {
    font-size: clamp(2.5rem, 6.2vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-top: 6px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd21f 0%, #ff8a00 50%, #e3180a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--gray);
    max-width: 620px;
    margin: 0 auto 38px;
}

/* ---- Logo du hero, centré, avec un léger halo + flottement ---- */
.hero-logo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.4) 0%, transparent 72%);
    filter: blur(4px);
    animation: hero-logo-pulse 3.6s ease-in-out infinite;
}

.hero-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.4);
    padding: 8px;
    box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255, 106, 0, 0.45), 0 0 40px rgba(255, 106, 0, 0.35);
    animation: hero-logo-float 5s ease-in-out infinite;
}

@keyframes hero-logo-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.94); }
    50%      { opacity: 0.85; transform: scale(1.08); }
}

@keyframes hero-logo-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---- Badge "communauté" au-dessus du titre ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    margin-bottom: 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--light);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(31, 191, 136, 0.6);
    animation: hero-badge-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes hero-badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31, 191, 136, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(31, 191, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 191, 136, 0); }
}

/* Etat "serveur hors ligne" : point rouge fixe, sans pulsation */
.hero-badge-dot.is-offline {
    background: var(--danger);
    animation: none;
    box-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(255, 106, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-discord {
    background: #5865f2;
    color: var(--light);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(88, 101, 242, 0.55);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
}

.hero-stats-sep {
    width: 100%;
    max-width: 560px;
    height: 1px;
    margin: 4px auto 34px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 20;
}

.scroll-indicator.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--light);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-dark {
    background: var(--dark-2);
}
.bg-dark2 {
    background: var(--dark-22);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* En-tête de section : réutilisé par "À propos", "Fonctionnalités", "Bureau", "Staff" ... */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-headerimg {
    background: #0e0e0e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ============================================
   FEATURES GRID (section "À Propos")
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: linear-gradient(160deg, var(--dark-3) 0%, var(--dark-2) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 106, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--light);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   STATS SECTION ("Fonctionnalités")
   ============================================ */
.stats-section {
    padding: 100px 0;
    position: relative;
}
.stats-stafffive {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(160deg, #1a0d06 0%, #050505 100%);
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 20, 0, 0.5) 0%, rgba(5, 5, 5, 0.75) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-box {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-big {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.stat-content p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.5;
}

.stat-content strong {
    color: var(--light);
}

/* ============================================
   BUREAU & STAFF (cartes équipe générées en JS)
   DOM généré : .wrapper-team/.wrapper-teamsimu
     > .col-lg-3.col-md-3
       > .team-member.fade-in
         > .team-member-holder  (--role-color défini en inline)
           > .team-member-image > img
           > .team-member-meta > .team-member-name + a.view-profile (rôle)

   Toutes les cartes ont la même largeur (--card-w), calculée en JS
   (fitTeamCards) d'après le plus long pseudo / rôle. Quand il n'y a
   plus la place, les cartes passent à la ligne.
   ============================================ */
#bureau,
#staff {
    padding: 80px 0;
}

#staff .section-header {
    margin-bottom: 40px;
}

#bureau {
    background: var(--dark-2);
}

#staff {
    background: linear-gradient(160deg, #1a0d06 0%, #050505 100%);
}

/* Le voile .stats-overlay est positionné : sans ça il passe PAR-DESSUS les cartes
   (elles paraissent ternes et les survols/clics ne marchent pas). */
#staff .container {
    position: relative;
    z-index: 1;
}

#staff .section-header h3 {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Conteneur : retour à la ligne automatique, cartes centrées, aucun scroll */
.wrapper-team,
.wrapper-teamsimu,
#staff .wrapper-team,
#staff .wrapper-teamsimu {
    --card-w: 230px;                 /* valeur par défaut, ajustée par le script */
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch;
    overflow: visible !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    gap: 18px !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Item flex : largeur identique pour toutes les cartes */
.col-lg-3,
.col-md-3,
#staff .wrapper-team > .col-lg-3,
#staff .wrapper-team > .col-md-3,
#staff .wrapper-teamsimu > .col-lg-3,
#staff .wrapper-teamsimu > .col-md-3 {
    flex: 0 0 var(--card-w) !important;
    width: var(--card-w) !important;
    max-width: 100% !important;      /* évite de dépasser sur petit écran */
    min-width: 0 !important;
    margin: 0;
    scroll-snap-align: none !important;
}

.team-member {
    height: 100%;
}

/* ---------- Carte ---------- */
.team-member-holder {
    --role-color: var(--primary);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Filet de couleur du rôle en haut de la carte */
.team-member-holder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--role-color);
    z-index: 3;
}

.team-member-holder:hover {
    transform: translateY(-4px);
    border-color: var(--role-color);
    border-color: color-mix(in srgb, var(--role-color) 65%, transparent);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.9);
}

/* ---------- Photo ---------- */
.team-member-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #161616;
    flex-shrink: 0;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.team-member-image img.loaded {
    opacity: 1;
}

.team-member-holder:hover .team-member-image img {
    transform: scale(1.05);
}

/* Fondu de la photo vers le bloc nom/rôle */
.team-member-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, #101010 100%);
    pointer-events: none;
}

/* ---------- Nom + rôle ---------- */
.team-member-meta,
#staff .team-member-meta {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    padding: 0 20px 18px;            /* 20px d'espace de chaque côté du texte */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Le pseudo n'est plus coupé : la carte s'adapte au plus long */
.team-member-name,
#staff .team-member-name {
    max-width: none;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--light);
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

/* Le rôle est le lien Discord : pastille aux couleurs du rôle */
.view-profile,
#staff .view-profile {
    display: inline-block;
    max-width: none;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--role-color);
    background: rgba(255, 255, 255, 0.06);
    background: color-mix(in srgb, var(--role-color) 14%, transparent);
    border: 1px solid var(--role-color);
    border-color: color-mix(in srgb, var(--role-color) 50%, transparent);
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.view-profile:hover {
    background: var(--role-color);
    border-color: var(--role-color);
    color: #fff;
}

/* ---------- Chargement ---------- */
.team-member-skeleton {
    background: linear-gradient(
        90deg,
        rgba(18, 18, 18, 0.6) 25%,
        rgba(60, 35, 20, 0.8) 50%,
        rgba(18, 18, 18, 0.6) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 16px;
    height: 300px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
/* Sur très petit écran, la carte prend toute la largeur dispo
   et le texte peut passer à la ligne pour ne jamais déborder. */
@media (max-width: 480px) {
    .wrapper-team,
    .wrapper-teamsimu,
    #staff .wrapper-team,
    #staff .wrapper-teamsimu {
        gap: 12px !important;
        padding: 0 12px;
    }

    #staff .team-member-name,
    #staff .view-profile {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ============================================
   PARTENAIRES
   ============================================ */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-card {
    flex: 0 0 300px;
    max-width: 300px;
    background: var(--dark-3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 106, 0, 0.3);
}

.partner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: grayscale(50%);
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(160deg, #1a0d06 0%, #050505 100%);
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 20, 0, 0.5) 0%, rgba(5, 5, 5, 0.75) 100%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4);
}

.footer-info {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-info a {
    color: var(--primary);
}

.footer-info a:hover {
    color: var(--light);
}

/* ============================================
   DONATE FAB
   ============================================ */
.donate-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.donate-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--ember), var(--ember-dark));
    color: var(--light);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(227, 24, 10, 0.4);
    transition: var(--transition);
}

.donate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(227, 24, 10, 0.6);
}

.donate-btn i {
    font-size: 1.3rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1.1); }
}

/* ============================================
   POPUP
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--dark-2);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.popup-close {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.popup-body {
    padding: 30px;
    color: var(--gray);
    line-height: 1.8;
}

.popup-body h4 {
    color: var(--light);
    margin: 20px 0 10px;
}

.popup-body ul {
    list-style: disc;
    padding-left: 30px;
    margin: 15px 0;
}

.popup-body li {
    margin: 10px 0;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* ============================================
   UTILITIES (animations au scroll type AOS)
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================
   RESPONSIVE GÉNÉRAL
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 15px !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-logo-wrap {
        width: 96px;
        height: 96px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 8px 18px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .features-grid,
    .stats-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .donate-btn span {
        display: none;
    }

    .donate-btn {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .feature-card,
    .stat-box,
    .partner-card {
        padding: 30px 20px;
    }
}

/* Le parallax "fixed" est coûteux et bugue souvent sur mobile/iOS : on repasse en scroll normal */
@media (max-width: 900px) {
    .hero,
    .stats-section,
    .cta-section {
        background-attachment: scroll;
    }
}

/* Plus de zoom au survol : c'est lui qui fait apparaître le trait */
#staff .team-member-holder:hover .team-member-image img {
    transform: none;
}

/* Le bas du dégradé devient complètement opaque (cache tout bord de photo) */
#staff .team-member-image::after {
    background: linear-gradient(180deg, transparent 0%, #101010 85%, #101010 100%);
}

/* Évite les artefacts de rendu sur la carte qui se soulève */
#staff .team-member-holder {
    backface-visibility: hidden;
    transform: translateZ(0);
}
#staff .team-member-holder:hover {
    transform: translateY(-4px) translateZ(0);
}