@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Outfit:wght@300;400;600;800&family=Oswald:wght@400;600;700&display=swap');

@font-face {
  font-family: 'Ruthless Drippin ONE';
  src: url('fonts/ruthless-drippin-one.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/10103/RuthlessDrippinONE.woff') format('woff');
  font-display: swap;
}

/* --- DESIGN SYSTEM / VARIABLES --- */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(18, 18, 24, 0.85);
    --bg-card-hover: rgba(26, 26, 36, 0.95);
    --border-color: rgba(255, 0, 0, 0.15);
    
    /* Accents */
    --accent-red: #ff3333;
    --accent-red-glow: rgba(255, 51, 51, 0.6);
    --accent-gold: #ffb703;
    --accent-gold-glow: rgba(255, 183, 3, 0.6);
    --accent-silver: #e2eafc;
    --accent-silver-glow: rgba(226, 234, 252, 0.6);
    --accent-capo: #9e2a2b;
    --accent-capo-glow: rgba(158, 42, 43, 0.6);
    
    /* Fonts */
    --font-title: 'Oswald', sans-serif;
    --font-graffiti: 'Ruthless Drippin ONE', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #e2eafc;
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Arrière-plan fumée / dégradés */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #1e0909 0%, #060202 70%, #000000 100%);
    opacity: 0.95;
}

/* Effet de bruit / texture */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3联%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Canvas pour particules de cendres */
#ash-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d11;
}
::-webkit-scrollbar-thumb {
    background: #4a0d0d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-graffiti);
    font-size: 1.9rem;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 12px var(--accent-red-glow);
    animation: neon-flicker 3s infinite alternate;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #a5a5b5;
    text-decoration: none;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--accent-red);
    border-bottom: 2px solid var(--accent-red);
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.btn-admin {
    border: 1px solid var(--accent-red);
    padding: 5px 15px !important;
    border-radius: 4px;
    background: rgba(255, 51, 51, 0.1);
}

.btn-admin:hover {
    background: var(--accent-red);
    color: white !important;
    box-shadow: 0 0 15px var(--accent-red-glow);
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    height: 560px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 3.5rem;
    border-bottom: 2px solid #5a0000;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    z-index: 0;
    filter: brightness(0.62) contrast(1.15) saturate(1.1);
    transition: transform 10s ease;
}

.hero-banner:hover .hero-bg-image {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 2, 2, 0.5) 0%, rgba(180, 10, 10, 0.2) 45%, var(--bg-dark) 100%),
                radial-gradient(circle at 50% 40%, rgba(255, 0, 0, 0.22) 0%, rgba(10, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Ruthless Drippin ONE', var(--font-graffiti), cursive, sans-serif;
    font-size: 5.6rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 4px;
    text-shadow: 
        0 0 12px rgba(255, 51, 51, 0.95),
        0 0 30px rgba(255, 0, 0, 0.75),
        0 0 50px rgba(255, 0, 0, 0.45),
        0 5px 15px rgba(0, 0, 0, 0.95);
    margin-bottom: 0.5rem;
    transform: rotate(-1deg);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
    margin-bottom: 1.5rem;
}

.hero-moto {
    font-size: 1rem;
    font-style: italic;
    color: #a5a5b5;
    letter-spacing: 2px;
}

/* --- CONTAINERS & SECTIONS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    margin: 10px auto 0;
    box-shadow: 0 0 8px var(--accent-red-glow);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Glassmorphism Card Base */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 51, 51, 0.3);
    box-shadow: 0 8px 32px 0 rgba(255, 51, 51, 0.08);
    transform: translateY(-5px);
}

/* --- SECTION PRESENTATION --- */
.presentation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.presentation-text h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.presentation-text p {
    color: #c4c4d4;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-align: justify;
}

.highlight-red {
    color: var(--accent-red);
    font-weight: 600;
}

.presentation-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    height: 350px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.presentation-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
}

.presentation-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* --- SECTION MEMBERS (TROMBINOSCOPE) --- */
.hierarchy-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 2rem;
}

.hierarchy-level {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.hierarchy-label {
    width: 100%;
    text-align: center;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #7b7b8f;
    letter-spacing: 3px;
    margin-bottom: -15px;
}

/* Member Card Styles */
.member-card {
    position: relative;
    width: 260px;
    background: rgba(14, 14, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    text-align: center;
    padding-bottom: 20px;
}

.member-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.member-avatar-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #15151c;
}

.member-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.1);
    transition: var(--transition-smooth);
}

.member-card:hover .member-avatar {
    filter: grayscale(0) contrast(1.0);
    transform: scale(1.05);
}

.member-info {
    padding: 15px 15px 5px 15px;
}

.member-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.member-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #333;
    color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.member-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #7289da;
    margin-top: 10px;
    font-weight: 500;
}

/* Rank Customizations */
/* 1. Boss (Fabio Ochoa) */
/* --- VIP CARDS DESIGN --- */
.vip-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 20, 26, 0.9) 0%, rgba(10, 10, 14, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    z-index: 10;
}

/* 1. Boss */
.rank-boss.vip-card {
    border: 1px solid rgba(255, 183, 3, 0.4) !important;
    box-shadow: 0 10px 30px rgba(255, 183, 3, 0.15);
}
.rank-boss.vip-card::before {
    background: linear-gradient(90deg, transparent, #ffb703, transparent);
}
.rank-boss.vip-card:hover {
    box-shadow: 0 10px 40px rgba(255, 183, 3, 0.3);
    transform: translateY(-8px) scale(1.03);
}
.rank-boss .member-role-badge {
    background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    color: #111;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
}
.rank-boss .member-name {
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
}

/* 2. Bras Droit */
.rank-bras-droit.vip-card {
    border: 1px solid rgba(192, 192, 192, 0.4) !important;
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.1);
}
.rank-bras-droit.vip-card::before {
    background: linear-gradient(90deg, transparent, #c0c0c0, transparent);
}
.rank-bras-droit.vip-card:hover {
    box-shadow: 0 10px 35px rgba(192, 192, 192, 0.25);
}
.rank-bras-droit .member-role-badge {
    background: linear-gradient(135deg, #e2eafc 0%, #8d99ae 100%);
    color: #111;
    font-weight: bold;
    border: none;
}
.rank-bras-droit .member-name {
    color: #f8f9fa;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* 3. UnderBoss */
.rank-underboss.vip-card {
    border: 1px solid rgba(158, 42, 43, 0.5) !important;
}
.rank-underboss.vip-card::before {
    background: linear-gradient(90deg, transparent, #9e2a2b, transparent);
}
.rank-underboss .member-role-badge {
    background: linear-gradient(135deg, #9e2a2b 0%, #540b0e 100%);
    color: #fff;
    border: none;
}
.rank-underboss .member-name {
    color: #ff6666;
}

/* 4. Chef Soldat Elite */
.rank-chef-elite.vip-card {
    border: 1px solid rgba(230, 57, 70, 0.5) !important;
}
.rank-chef-elite.vip-card::before {
    background: linear-gradient(90deg, transparent, #e63946, transparent);
}
.rank-chef-elite.vip-card:hover {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
    border-color: #ff3333 !important;
}
.rank-chef-elite .member-role-badge {
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid #e63946;
    color: #ff9999;
}
.rank-chef-elite .member-name {
    color: #e63946;
}

/* 5. Chef Soldat Street */
.rank-chef-street.vip-card {
    border: 1px solid rgba(247, 127, 0, 0.5) !important;
}
.rank-chef-street.vip-card::before {
    background: linear-gradient(90deg, transparent, #f77f00, transparent);
}
.rank-chef-street.vip-card:hover {
    box-shadow: 0 8px 25px rgba(247, 127, 0, 0.2);
    border-color: #ff8c00 !important;
}
.rank-chef-street .member-role-badge {
    background: rgba(247, 127, 0, 0.2);
    border: 1px solid #f77f00;
    color: #ffca99;
}
.rank-chef-street .member-name {
    color: #f77f00;
}

/* 6. Soldat Elite */
.rank-soldat-elite.vip-card {
    border: 1px solid rgba(255, 51, 51, 0.15) !important;
    border-left: 4px solid #ff3333 !important;
}
.rank-soldat-elite.vip-card:hover {
    background: rgba(255, 51, 51, 0.05);
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.25);
}
.rank-soldat-elite .member-role-badge {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    color: #ff6666;
}

/* 7. Soldat Street */
.rank-soldat-street.vip-card {
    border: 1px solid rgba(252, 163, 17, 0.15) !important;
    border-left: 4px solid #fca311 !important;
}
.rank-soldat-street.vip-card:hover {
    background: rgba(252, 163, 17, 0.05);
    border-color: #fca311 !important;
    box-shadow: 0 0 15px rgba(252, 163, 17, 0.25);
}
.rank-soldat-street .member-role-badge {
    background: rgba(252, 163, 17, 0.1);
    border: 1px solid rgba(252, 163, 17, 0.3);
    color: #fcd581;
}

/* 8. Recrue */
.rank-recrue.vip-card {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 0.85;
}
.rank-recrue.vip-card:hover {
    opacity: 1;
    border-color: #7b7b8f !important;
}
.rank-recrue .member-role-badge {
    background: #222;
    color: #888;
}

/* Placeholder Avatar */
.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111115;
    color: #444;
}
.avatar-placeholder svg {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    stroke: #333;
}
.member-card:hover .avatar-placeholder svg {
    stroke: var(--accent-red);
    filter: drop-shadow(0 0 5px var(--accent-red-glow));
}

/* --- SECTION REGLEMENT (RULES) --- */
.rules-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: visible;
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: rgba(255, 51, 51, 0.3);
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: rgba(20, 20, 26, 0.4);
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background: rgba(255, 51, 51, 0.05);
}

.accordion-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-header h3::before {
    content: '★';
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red-glow);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding: 0 25px;
    background: rgba(5, 5, 8, 0.2);
    border-radius: 0 0 8px 8px;
}

.accordion-content p {
    padding: 20px 0;
    color: #c4c4d4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    white-space: pre-line;
}

/* Active accordion state */
.accordion-item.active {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 9999px; /* large enough for any content */
    transition: max-height 1s ease-in;
    padding-bottom: 10px;
}

/* --- SECTION ACTIVITIES --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.activity-card:hover {
    border-color: rgba(255, 51, 51, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.activity-image-container {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: var(--transition-smooth);
}

.activity-card:hover .activity-image {
    filter: brightness(1);
    transform: scale(1.05);
}

.activity-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 8px;
}

.activity-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.activity-description {
    color: #b3b3c2;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- SECTION CONTACT & DISCORD --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    color: #b3b3c2;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.discord-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #7289da;
    color: white;
    text-decoration: none;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.4);
    border: none;
    align-self: flex-start;
}

.discord-cta-btn:hover {
    background: #5b73c7;
    box-shadow: 0 6px 25px rgba(114, 137, 218, 0.6);
    transform: translateY(-3px);
}

.discord-cta-btn svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.discord-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
}

.discord-widget-mockup {
    width: 100%;
    background: #2f3136;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid #202225;
}

.discord-widget-header {
    background: #202225;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discord-widget-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-widget-brand svg {
    fill: #7289da;
    width: 28px;
    height: 28px;
}

.discord-widget-title h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.discord-widget-title span {
    color: #43b581;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.discord-widget-body {
    padding: 20px;
    max-height: 220px;
    overflow-y: auto;
}

.discord-online-users {
    color: #b9bbbe;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.discord-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.discord-avatar-dot {
    position: relative;
    width: 32px;
    height: 32px;
    background: #4f545c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.discord-avatar-dot::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #43b581;
    border-radius: 50%;
    border: 2px solid #2f3136;
}

.discord-username {
    color: #dcddde;
    font-size: 0.9rem;
    font-weight: 500;
}

.discord-username span {
    color: #7289da;
    font-size: 0.75rem;
    margin-left: 5px;
    background: rgba(114, 137, 218, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

/* --- FOOTER --- */
footer {
    background: #050507;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    text-align: center;
    color: #6a6a7c;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--accent-red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- ADMIN & LOGIN PANELS --- */
.login-container {
    max-width: 450px;
    margin: 8rem auto;
    padding: 40px;
}

.login-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #a5a5b5;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-primary:hover {
    background: #ff1a1a;
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.8);
    transform: translateY(-2px);
}

.error-message {
    background: rgba(255, 51, 51, 0.15);
    border: 1px solid var(--accent-red);
    color: #ff9999;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.success-message {
    background: rgba(67, 181, 129, 0.15);
    border: 1px solid #43b581;
    color: #8ce4bc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

/* Admin layout */
.admin-container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.admin-title-row h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.btn-secondary {
    background: #25252b;
    color: #ccc;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: #3a3a42;
    color: #fff;
    border-color: #666;
}

.admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-menu-item {
    background: rgba(20, 20, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    color: #a5a5b5;
    text-decoration: none;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.admin-menu-item:hover, .admin-menu-item.active {
    background: rgba(255, 51, 51, 0.08);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent-red);
}

.admin-content-section {
    display: none;
}

.admin-content-section.active {
    display: block;
}

/* Management Tables / Rows */
.manage-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.manage-item {
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.manage-item:hover {
    border-color: rgba(255, 51, 51, 0.2);
}

.manage-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.manage-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}

.manage-item-title {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.manage-item-subtitle {
    font-size: 0.85rem;
    color: #7b7b8f;
    margin-top: 3px;
}

.manage-item-actions {
    display: flex;
    gap: 10px;
}

.btn-small-edit {
    background: #f77f00;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-title);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-small-edit:hover {
    background: #fc9d3f;
}

.btn-small-delete {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-title);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-small-delete:hover {
    background: #ff6666;
}

/* Modal overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #121216;
    border: 1px solid var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red-glow);
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #7b7b8f;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

/* --- ANIMATIONS --- */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 4px #fff,
            0 0 10px var(--accent-red-glow),
            0 0 20px var(--accent-red-glow);
    }
    20%, 24%, 55% {
        text-shadow: none;
        color: #888;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .presentation-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .container {
        padding: 2rem 10px;
    }
    .section-title {
        font-size: 2rem;
    }
    .member-card {
        width: 100%;
        max-width: 280px;
    }
}

/* --- CARTE INTERACTIVE --- */
.map-pin {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

.ping-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    opacity: 0.8;
    animation: pinPulse 2s infinite;
    pointer-events: none;
    box-sizing: border-box;
}

@keyframes pinPulse {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.8); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

.map-tooltip {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-red);
    padding: 12px 16px;
    border-radius: 8px;
    width: 240px;
    color: #fff;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 51, 51, 0.2);
    text-align: left;
}

.map-pin:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.map-tooltip-header {
    font-family: var(--font-title);
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.map-tooltip-type {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.map-tooltip-desc {
    color: #c4c4d4;
    line-height: 1.4;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: inherit;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
}

/* --- COMPTABILITÉ STYLES --- */
.kpi-balance-card {
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.kpi-balance-card.balance-positive {
    border-left: 5px solid #43b581;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(67, 181, 129, 0.08);
}
.kpi-balance-card.balance-negative {
    border-left: 5px solid var(--accent-red);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 51, 51, 0.08);
}
.kpi-balance-card.balance-positive .balance-amount-display {
    color: #fff;
    text-shadow: 0 0 15px rgba(67, 181, 129, 0.4);
}
.kpi-balance-card.balance-negative .balance-amount-display {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}
.kpi-balance-card.balance-positive .balance-icon-container {
    background: rgba(67, 181, 129, 0.03);
    border-color: rgba(67, 181, 129, 0.1);
}
.kpi-balance-card.balance-positive .balance-icon-container svg {
    stroke: #43b581;
    filter: drop-shadow(0 0 4px rgba(67, 181, 129, 0.4));
}
.kpi-balance-card.balance-negative .balance-icon-container {
    background: rgba(255, 51, 51, 0.03);
    border-color: rgba(255, 51, 51, 0.1);
}
.kpi-balance-card.balance-negative .balance-icon-container svg {
    stroke: var(--accent-red);
    filter: drop-shadow(0 0 4px rgba(255, 51, 51, 0.4));
}

.compta-grid-layout {
    margin-top: 20px;
}
@media (max-width: 992px) {
    .compta-grid-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Toggle Buttons for Transaction Type */
.transaction-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.type-btn-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid var(--border-color);
    color: #a5a5b5;
    transition: var(--transition-smooth);
}
.type-btn-label:hover {
    border-color: #555;
    background: rgba(30, 30, 40, 0.8);
}
.type-btn-label.credit-label.active {
    background: rgba(67, 181, 129, 0.15);
    color: #8ce4bc;
    border-color: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.25);
}
.type-btn-label.debit-label.active {
    background: rgba(255, 51, 51, 0.15);
    color: #ff9999;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.25);
}

/* Badge Membre */
.member-badge-compta {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255,255,255,0.1);
}




/* Fix for dropdown menus to prevent white text on white background */
.form-select option { background-color: #14141a; color: #fff; }

/* ========================================= */
/* UNIFIED MEMBER LAYOUT */
/* ========================================= */
.unified-layout { display: flex; min-height: 100vh; background: #0a0a0c; }
.unified-sidebar { width: 280px; background: #121218; border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.us-header { padding: 25px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.us-logo { font-family: var(--font-title); font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: 2px; }
.us-subtitle { font-size: 0.75rem; color: var(--accent-red); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-top: -5px; }
.us-user { padding: 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.us-user-info { display: flex; flex-direction: column; }
.us-name { color: #fff; font-weight: 700; font-size: 1rem; }
.us-role { color: var(--accent-gold); font-size: 0.8rem; font-family: var(--font-title); letter-spacing: 1px; text-transform: uppercase; }
.us-nav { padding: 20px 0; display: flex; flex-direction: column; flex-grow: 1; }
.us-section { font-size: 0.7rem; color: #555; padding: 0 20px; margin: 15px 0 5px; font-weight: 700; letter-spacing: 2px; }
.us-link { padding: 12px 20px; color: #a5a5b5; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; transition: all 0.2s; border-left: 3px solid transparent; }
.us-link:hover, .us-link.active { background: rgba(255,255,255,0.03); color: #fff; border-left-color: var(--accent-red); }
.us-link.active { font-weight: 600; }
.us-badge { background: var(--accent-red); color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; font-weight: bold; margin-left: auto; }
.us-logout { color: #ff6b6b; margin-top: auto; }
.us-logout:hover { background: rgba(255,51,51,0.1); border-left-color: #ff3333; }
.unified-content { flex-grow: 1; padding: 30px 40px; display: flex; flex-direction: column; max-height: 100vh; overflow-y: auto; }
@media (max-width: 900px) { .unified-layout { flex-direction: column; } .unified-sidebar { width: 100%; height: auto; position: static; } .unified-content { padding: 20px; } }

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
        letter-spacing: 3px;
    }
    .hero-banner {
        height: 480px;
    }
}
