/* ============================================================
   STREAMER SANS BANNIÈRE — Design System
   Humanitaire · Moderne · Impact
   ============================================================ */

/* --- VARIABLES --- */
:root {
    --red:          #e63946;
    --red-dark:     #c1121f;
    --red-light:    #ff6b78;
    --red-glow:     rgba(230, 57, 70, 0.2);

    --warm-white:   #fdf8f5;
    --cream:        #f5ede4;
    --sand:         #e8d9cc;

    --dark:         #0f0d0c;
    --dark-2:       #1a1715;
    --dark-3:       #252220;
    --dark-4:       #312e2b;
    --dark-5:       #403c38;

    --text:         #1a1715;
    --text-muted:   #6b6560;
    --text-light:   #9a9390;

    --gold:         #f4a261;
    --gold-dark:    #e76f51;
    --teal:         #2a9d8f;
    --purple:       #7b2d8b;

    --font-sans:    'Outfit', system-ui, sans-serif;
    --font-serif:   'Crimson Pro', Georgia, serif;

    --r-sm:  8px;
    --r-md:  16px;
    --r-lg:  24px;
    --r-xl:  32px;
    --r-full: 999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.18);
    --shadow-red: 0 8px 32px rgba(230,57,70,0.3);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --nav-h: 72px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-sans);
    background: var(--warm-white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.serif { font-family: var(--font-serif); }

.label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon { width: 40px; height: 40px; }

.brand-text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-muted);
}

.brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-full);
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: var(--cream); }
.nav-link.active { color: var(--red); font-weight: 600; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-donate {
    background: var(--red);
    color: white;
    box-shadow: var(--shadow-red);
}

.btn-donate:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(230,57,70,0.4);
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--sand);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--cream);
}

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 36px; font-size: 18px; }

.pulse-subtle {
    animation: pulseSubtle 3s infinite;
}

@keyframes pulseSubtle {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 8px 40px rgba(230,57,70,0.5); }
}

/* --- LAYOUT --- */
.main-content { padding-top: var(--nav-h); }

section { padding: 96px 0; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(230,57,70,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(42,157,143,0.08) 0%, transparent 60%),
        linear-gradient(135deg, #0f0d0c 0%, #1a1715 50%, #0f0d0c 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--red-light);
    border-radius: 50%;
    animation: float var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 24px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.3);
    color: var(--red-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--r-full);
    margin-bottom: 24px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--red-light);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 72px);
    color: white;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-title .accent { color: var(--red); }
.hero-title .serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cream); }

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition);
}

.hero-stat-card:hover { border-color: rgba(230,57,70,0.4); }

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.hero-stat-card:hover::before { opacity: 1; }

.hero-stat-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.hero-stat-unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--red-light);
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.hero-stat-progress {
    margin-top: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}

.hero-stat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- IMPACT BANNER --- */
.impact-banner {
    background: var(--red);
    padding: 20px 0;
    overflow: hidden;
}

.impact-ticker {
    display: flex;
    gap: 48px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.impact-ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.impact-ticker-item .sep {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- CAUSE CARDS --- */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.cause-card {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.cause-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cause-img {
    height: 180px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
    position: relative;
    overflow: hidden;
}

.cause-img img { width: 100%; height: 100%; object-fit: cover; }

.cause-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: white;
    border-radius: var(--r-full);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cause-badge.active { color: var(--teal); border: 1.5px solid var(--teal); }
.cause-badge.upcoming { color: var(--gold-dark); border: 1.5px solid var(--gold); }
.cause-badge.completed { color: var(--text-light); border: 1.5px solid var(--sand); }

.cause-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cause-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.cause-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.cause-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.cause-progress {
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.progress-raised {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.progress-goal {
    font-size: 13px;
    color: var(--text-muted);
}

.progress-bar-track {
    height: 8px;
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.progress-percent {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    margin-top: 6px;
}

.cause-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--cream);
    padding-top: 16px;
    gap: 12px;
}

.cause-streamers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.streamer-avatars {
    display: flex;
    margin-right: 6px;
}

.streamer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--cream);
    margin-left: -6px;
    overflow: hidden;
    flex-shrink: 0;
}

.streamer-avatar:first-child { margin-left: 0; }

.streamer-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- STATS SECTION --- */
.stats-section {
    background: var(--dark);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color var(--transition);
}

.stat-item:hover { border-color: rgba(230,57,70,0.3); }

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: var(--red-glow);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-light);
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* --- EVENTS PAGE --- */
.events-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--sand);
    background: white;
    color: var(--text-muted);
    transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: white; }

.event-hero {
    background: var(--dark);
    border-radius: var(--r-xl);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: center;
    margin-bottom: 48px;
    overflow: hidden;
    position: relative;
}

.event-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(230,57,70,0.12), transparent);
}

.event-hero > * { position: relative; z-index: 1; }

.event-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230,57,70,0.2);
    color: var(--red-light);
    border: 1px solid rgba(230,57,70,0.3);
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.event-hero-title { font-size: 40px; color: white; margin-bottom: 16px; }
.event-hero-desc { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 32px; }

.event-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.counter-block {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    padding: 20px 12px;
    text-align: center;
}

.counter-num {
    font-size: 32px;
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    display: block;
}

.counter-unit {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-row {
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 80px 1fr 200px 160px auto;
    align-items: center;
    gap: 24px;
    transition: all var(--transition);
}

.event-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--sand);
}

.event-year {
    font-size: 32px;
    font-weight: 800;
    color: var(--cream);
    letter-spacing: -0.04em;
}

.event-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.event-asso { font-size: 13px; color: var(--text-muted); }

.event-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.02em;
}

.event-viewers {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- DONATION GOALS --- */
.goals-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.goals-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(230,57,70,0.15), transparent);
}

.goals-hero-content { position: relative; z-index: 1; }

.total-raised {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.total-raised-label {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.goal-card {
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all var(--transition);
}

.goal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.goal-card.unlocked { border-color: var(--teal); }
.goal-card.unlocked .goal-header { background: var(--teal); }
.goal-card.current { border-color: var(--red); }
.goal-card.current .goal-header { background: var(--red); }

.goal-header {
    padding: 20px 24px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goal-threshold {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.goal-status-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 4px 10px;
    border-radius: var(--r-full);
}

.goal-body { padding: 24px; }
.goal-icon { font-size: 36px; margin-bottom: 12px; }
.goal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.goal-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- STATISTICS --- */
.chart-card {
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

/* Donut chart CSS-only */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
}

.donut {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
}

.donut svg { transform: rotate(-90deg); }
.donut-hole {
    position: absolute;
    inset: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.donut-center-val { font-size: 22px; font-weight: 800; }
.donut-center-label { font-size: 11px; color: var(--text-muted); }

.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label { flex: 1; color: var(--text-muted); }
.legend-val { font-weight: 700; }

/* Bar chart CSS */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    padding-bottom: 32px;
    position: relative;
}

.bar-chart::before {
    content: '';
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    top: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent,
        transparent calc(25% - 1px),
        rgba(0,0,0,0.05) calc(25% - 1px),
        rgba(0,0,0,0.05) 25%
    );
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    transition: opacity var(--transition);
    min-height: 4px;
}

.bar:hover { opacity: 0.8; }
.bar-label { font-size: 11px; color: var(--text-muted); text-align: center; }

/* --- STREAMERS PAGE --- */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.streamer-card {
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.streamer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.streamer-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid var(--cream);
    overflow: hidden;
    background: var(--cream);
    position: relative;
}

.streamer-card-avatar.live::after {
    content: 'LIVE';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    background: var(--red);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: var(--r-full);
    white-space: nowrap;
}

.streamer-card-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.streamer-card-viewers { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.streamer-card-raised {
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.02em;
}

.streamer-card-raised-label { font-size: 11px; color: var(--text-muted); }

/* --- ATLAS MAP --- */
.atlas-section { padding: 0; }

.atlas-map-container {
    background: var(--dark-2);
    height: calc(100vh - var(--nav-h));
    position: relative;
    overflow: hidden;
}

.atlas-map-inner {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(42,157,143,0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(230,57,70,0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0f0d0c, #1a1715);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.atlas-placeholder {
    text-align: center;
    max-width: 500px;
    padding: 48px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-xl);
}

.atlas-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atlas-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition);
}

.atlas-control-btn:hover { background: rgba(255,255,255,0.15); }

.atlas-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: rgba(15,13,12,0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atlas-cause-pin {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--transition);
}

.atlas-cause-pin:hover { background: rgba(255,255,255,0.05); }

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

.pin-name { font-size: 14px; font-weight: 600; color: white; margin-bottom: 2px; }
.pin-amount { font-size: 12px; color: rgba(255,255,255,0.4); }

/* --- SECTION CAUSES SOUTENUES --- */
.orgs-section { background: var(--cream); }

.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.org-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
}

.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.org-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--r-md);
    margin: 0 auto 14px;
    object-fit: contain;
    background: var(--cream);
    padding: 8px;
}

.org-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.org-amount { font-size: 12px; color: var(--red); font-weight: 700; }

/* --- CTA SECTION --- */
.cta-section {
    background: var(--red);
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.cta-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc { font-size: 18px; opacity: 0.85; line-height: 1.7; margin-bottom: 40px; }

.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-white { background: white; color: var(--red); }
.btn-white:hover { background: var(--cream); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* --- PAGE HERO (intérieure) --- */
.page-hero {
    background: var(--dark);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(230,57,70,0.12), transparent);
}

.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 500px; margin: 0 auto; }

/* --- FOOTER --- */
.site-footer {
    background: var(--dark);
    color: white;
    padding-top: 64px;
}

.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.4); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-col a:hover { color: white; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* --- DONATE MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,13,12,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
    background: white;
    border-radius: var(--r-xl);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-header {
    background: var(--red);
    color: white;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    font-size: 18px;
    line-height: 1;
}

.modal-close:hover { background: rgba(255,255,255,0.3); }

.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; opacity: 0.8; }

.modal-body { padding: 32px; }

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 14px;
    border: 2px solid var(--sand);
    border-radius: var(--r-md);
    font-size: 16px;
    font-weight: 700;
    background: white;
    color: var(--text);
    transition: all var(--transition);
}

.amount-btn:hover { border-color: var(--red); color: var(--red); }
.amount-btn.selected { background: var(--red); border-color: var(--red); color: white; }

.amount-custom {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--sand);
    border-radius: var(--r-md);
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 20px;
    outline: none;
    transition: border-color var(--transition);
}

.amount-custom:focus { border-color: var(--red); }

/* --- ANIMATIONS ENTRANCE --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .charts-row { grid-template-columns: 1fr 1fr; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .event-row { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; }
    .event-amount, .event-viewers, .event-row .btn { grid-column: 2; }
    .event-hero { grid-template-columns: 1fr; padding: 32px 24px; }
    .event-counter { grid-template-columns: repeat(2, 1fr); }
    .charts-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .goals-grid, .causes-grid { grid-template-columns: 1fr; }
    .streamers-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .streamers-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-title { font-size: 28px; }
}

/* --- UTILITIES --- */
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* --- SVG ICONS IN TEXT --- */
.icon-inline { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
