/* Styles extraits automatiquement pour brigades/profile.ejs */
:root {
        --color-primary: <%= brigade.customColor %> !important;
        --color-accent-glow: <%= brigade.customColor %>26 !important;  
        --color-accent-border: <%= brigade.customColor %>59 !important;  
    }

.container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .profile-hero {
        position: relative;
        height: 280px;
        border-radius: 24px;
        overflow: hidden;
        margin-bottom: 32px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .hero-banner {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        filter: brightness(0.65) contrast(1.05);
    }

    .hero-banner-placeholder {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #0f172a 100%);
        opacity: 0.85;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: linear-gradient(to top, rgba(13, 20, 38, 0.95) 0%, rgba(13, 20, 38, 0.3) 100%);
    }

    .hero-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 32px;
        z-index: 3;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 24px;
    }

    .hero-main {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .hero-avatar {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 3px solid var(--color-primary, #6366f1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
        box-shadow: 0 0 20px var(--color-accent-glow, rgba(99, 102, 241, 0.2));
        flex-shrink: 0;
    }

    .hero-text h1 {
        font-family: 'Outfit', sans-serif;
        font-size: 2.4rem;
        font-weight: 900;
        margin: 0;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 6px;
        font-size: 0.85rem;
        color: #cbd5e1;
    }

    .hero-meta-item {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 4px 10px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
    }

    .hero-meta-item.views {
        color: #38bdf8;
    }

    .hero-meta-item.owner {
        color: #fbbf24;
    }

    .announcement-banner {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
        border: 1px solid var(--color-accent-border, rgba(99, 102, 241, 0.25));
        border-radius: 16px;
        padding: 18px 24px;
        margin-bottom: 28px;
        display: flex;
        align-items: flex-start;
        gap: 14px;
        backdrop-filter: blur(10px);
    }

    .announcement-banner i {
        font-size: 1.25rem;
        color: var(--color-primary, #818cf8);
        margin-top: 2px;
    }

    .announcement-text {
        color: #e2e8f0;
        font-size: 0.92rem;
        line-height: 1.5;
        margin: 0;
        font-weight: 600;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 28px;
        align-items: start;
    }

    @media (max-width: 992px) {
        .profile-grid {
            grid-template-columns: 1fr;
        }
        .hero-content {
            flex-direction: column;
            align-items: flex-start;
            padding: 24px;
        }
    }

    .bento-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 18px;
        padding: 24px;
        margin-bottom: 24px;
        backdrop-filter: blur(12px);
    }

    .bento-card h2 {
        margin: 0 0 20px 0;
        font-size: 1.2rem;
        font-weight: 800;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Outfit', sans-serif;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 12px;
    }

    .bento-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .bento-stat-item {
        background: rgba(255, 255, 255, 0.015);
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 14px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .bento-stat-item .label {
        font-size: 0.72rem;
        color: #64748b;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .bento-stat-item .value {
        font-size: 1.35rem;
        font-weight: 800;
        color: #f1f5f9;
        font-family: 'Outfit', sans-serif;
    }

    .xp-progress-container {
        margin-top: 14px;
    }

    .xp-progress-bar {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        overflow: hidden;
        margin-top: 6px;
    }

    .xp-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--color-primary, #6366f1) 0%, #a855f7 100%);
        border-radius: 4px;
        box-shadow: 0 0 10px var(--color-accent-glow, rgba(99, 102, 241, 0.3));
    }

    .about-text {
        font-size: 0.95rem;
        color: #94a3b8;
        line-height: 1.6;
        margin: 0;
    }

    .member-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.01);
        border: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        margin-bottom: 10px;
        transition: all 0.2s ease;
    }

    .member-row:hover {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .member-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .member-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.06);
        object-fit: cover;
    }

    .member-name {
        font-weight: 700;
        font-size: 0.9rem;
        color: #e2e8f0;
    }

    .member-uid {
        display: block;
        font-size: 0.7rem;
        color: #64748b;
        font-family: monospace;
    }

    .member-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .member-role {
        font-size: 0.65rem;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .member-role.owner {
        background: rgba(245, 158, 11, 0.08);
        color: #f59e0b;
        border: 1px solid rgba(245, 158, 11, 0.15);
    }

    .member-role.officer {
        background: rgba(16, 185, 129, 0.08);
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.15);
    }

    .member-role.member {
        background: rgba(255, 255, 255, 0.04);
        color: #94a3b8;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .member-level-badge {
        font-size: 0.78rem;
        font-weight: 700;
        color: #818cf8;
        background: rgba(129, 140, 248, 0.08);
        padding: 4px 10px;
        border-radius: 8px;
        border: 1px solid rgba(129, 140, 248, 0.15);
    }

    .trophy-showcase {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .trophy-slot {
        background: rgba(251, 191, 36, 0.02);
        border: 1px dashed rgba(251, 191, 36, 0.15);
        border-radius: 12px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        transition: all 0.25s ease;
    }

    .trophy-slot:hover {
        background: rgba(251, 191, 36, 0.06);
        border-color: rgba(251, 191, 36, 0.4);
        transform: translateY(-2px);
    }

    .trophy-icon {
        font-size: 1.8rem;
        color: #fbbf24;
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
        animation: trophy-glow 2.5s infinite alternate;
    }

    .trophy-name {
        font-size: 0.78rem;
        font-weight: 800;
        color: #f1f5f9;
        margin: 0;
    }

    .trophy-date {
        font-size: 0.65rem;
        color: #64748b;
    }

    @keyframes trophy-glow {
        from { filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.2)); }
        to { filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.6)); }
    }

.css-brigades-profile-1 { z-index:4; }

.css-brigades-profile-2 { color: var(--color-primary, #6366f1); }

.css-brigades-profile-3 { color: #cbd5e1; line-height: 1.7; }

.css-brigades-profile-4 { margin: 0; white-space: pre-wrap; }

.css-brigades-profile-5 { color: #fbbf24; }

.css-brigades-profile-6 { margin:0; font-size:0.85rem; text-align:center; padding: 20px 0; }

.css-brigades-profile-7 { color: #38bdf8; }

.css-brigades-profile-8 { font-size:0.8rem; margin-top:-10px; margin-bottom: 20px; }

.css-brigades-profile-9 { width: 100%; height: 260px; }

.css-brigades-profile-10 { color: var(--color-primary, #6366f1); }

.css-brigades-profile-11 { display:flex; justify-content:space-between; align-items:center; font-size:0.75rem; }

.css-brigades-profile-12 { font-weight:700; }

.css-brigades-profile-13 { font-weight:800; color:var(--color-primary, #818cf8); }

.css-brigades-profile-14 { margin-top: 24px; }

.css-brigades-profile-15 { color: #10b981; }

.css-brigades-profile-16 { font-size:0.8rem; margin-top:-10px; margin-bottom: 20px; }

.css-brigades-profile-17 { display:flex; flex-direction:column; gap:10px; font-size:0.82rem; }

.css-brigades-profile-18 { flex:1; }

.css-brigades-profile-19 { font-size: 0.72rem; color: #64748b; margin-top: 2px; }

.css-brigades-profile-20 { margin-top: 24px; }

.css-brigades-profile-21 { color: var(--color-primary, #6366f1); }

.css-brigades-profile-22 { font-size:0.8rem; margin-top:-10px; margin-bottom: 20px; }

.css-brigades-profile-23 { max-height: 450px; overflow-y: auto; padding-right: 4px; }