/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== KEYFRAMES ===== */
@keyframes spin { to { transform: rotate(360deg); } }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

.btn-primary {
    background: linear-gradient(135deg, #1e62c9, #2084db);
    color: #fff;
    box-shadow: 0 4px 15px rgba(32,132,219,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(32,132,219,0.4); }

.btn-donate {
    background: #D1507B;
    color: #fff;
    box-shadow: 0 4px 15px rgba(209,80,123,0.3);
}
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(209,80,123,0.4); background: #b8406a; }

.btn-white {
    background: #fff;
    color: #1e62c9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.btn-green {
    background: linear-gradient(135deg, #D1507B, #b8406a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(209,80,123,0.3);
    font-weight: 700;
    letter-spacing: 1px;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(209,80,123,0.45); }

.btn-loader {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.header-solid { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav { display: flex; gap: 4px; }

.nav-link {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}
.nav-link:hover, .nav-link.active { background: #eef4ff; color: #1e62c9; }

.header-btn { font-size: 0.85rem; padding: 10px 22px; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border: 1px solid rgba(30, 98, 201, 0.15);
    cursor: pointer;
    padding: 11px 10px;
    border-radius: 12px;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.hamburger:hover { box-shadow: 0 4px 14px rgba(30,98,201,0.15); transform: translateY(-1px); }
.hamburger span {
    display: block; width: 22px; height: 2.5px;
    background: #1e62c9; border-radius: 3px;
    transition: transform 0.35s cubic-bezier(0.65,0,0.35,1), opacity 0.25s ease, background 0.25s ease;
}
.hamburger.active { background: #1e62c9; border-color: #1e62c9; }
.hamburger.active span { background: #fff; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a1628;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,22,40,0.7) 0%, rgba(30,98,201,0.55) 50%, rgba(52,87,247,0.4) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
    z-index: 2;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 100px;
    background: #fff;
    clip-path: ellipse(60% 100% at 50% 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: #fff;
    padding-top: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint { display: none; }
.scroll-arrow { display: none; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }

.section-light { background: #f8fafc; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1e62c9;
}

.section-blue .section-title { color: #fff; }
.text-white { color: #fff !important; }

/* ===== MISSION / QUI SOMMES-NOUS ===== */
.section-mission { padding: 100px 0 60px; background: #fff; }

.mission-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 36px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.value-icon { font-size: 2.5rem; margin-bottom: 16px; }

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e62c9;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
}

/* ===== STATS ===== */
.section-stats { padding: 80px 0 100px; background: #f8fafc; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 24px 36px;
    border-radius: 8px 8px 8px 40px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid;
    position: relative;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.stat-card-blue { background: #F3F5FF; border-bottom-color: #B0BDFF; }
.stat-card-orange { background: #FFF3E6; border-bottom-color: #FFC093; }
.stat-card-purple { background: #FBEEFD; border-bottom-color: #F6BCFF; }
.stat-card-green { background: #EEFBE6; border-bottom-color: #A3D977; }
.stat-card-teal { background: #E6F7F7; border-bottom-color: #7DD4D4; }

.stat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    display: inline;
}

.stat-label {
    font-size: 0.95rem;
    color: #555;
    margin-top: 12px;
    font-weight: 500;
}

/* ===== ACTIONS (NOS ACTIONS) ===== */
.section-blue {
    background: #3457F7;
    color: #fff;
    position: relative;
    padding-top: 100px;
}

.section-curve-top {
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1;
}

.actions-header {
    text-align: center;
    margin-bottom: 34px;
    position: relative;
}

.floating-logo {
    display: block;
    margin: -118px auto 18px;
    position: relative;
    z-index: 3;
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.action-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(5px);
    transition: transform 0.4s, box-shadow 0.4s;
}
.action-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.action-card:last-child { margin-bottom: 0; }

.action-reverse { direction: rtl; }
.action-reverse > * { direction: ltr; }

.action-image { overflow: hidden; border-radius: 18px; }

.action-image img {
    border-radius: 18px;
    width: 100%;
    height: 320px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    transition: transform 0.6s ease;
}
.action-card:hover .action-image img { transform: scale(1.05); }

.action-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.action-text p {
    font-size: 1rem;
    line-height: 1.85;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-sm { padding: 10px 24px; font-size: 0.88rem; }

/* ===== TESTIMONIAL PRESIDENTE ===== */
.section-testimonial {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 100px 0;
}

.testimonial-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
}

.testimonial-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(30,98,201,0.15);
    border: 5px solid #eef4ff;
}

.testimonial-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #eef4ff, #e0ecff);
    color: #1e62c9;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.testimonial-content blockquote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #1e62c9;
}

.testimonial-author strong {
    display: block;
    color: #1e62c9;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #888;
    font-size: 0.9rem;
}

/* ===== PARTENAIRES ===== */
.section-partenaires { padding: 60px 0; background: #fff; }
.partenaires-img-large { display: block; max-width: 100%; width: 800px; margin: 0 auto; border-radius: 16px; }
.partenaires-img { display: block; max-width: 100%; width: 600px; margin: 0 auto; border-radius: 16px; }

/* ===== CENTRES SOCIAUX ===== */
.section-centres { padding: 60px 0 80px; background: #f8fafc; }

.centres-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 40px;
}

.centres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.centre-card {
    background: #fff;
    padding: 24px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #eef2f7;
    transition: transform 0.3s, box-shadow 0.3s;
}
.centre-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.centre-city {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1e62c9;
    margin-bottom: 6px;
}

.centre-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* ===== CONTACT ===== */
.contact-centered {
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fafbfc;
    color: #333;
}
.contact-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; background-color: #fafbfc; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3457F7;
    box-shadow: 0 0 0 4px rgba(52,87,247,0.1);
    background: #fff;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .btn { align-self: center; width: 100%; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #0a1628, #1a1a2e);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(52,87,247,0.15) 0%, transparent 50%);
}

.cta-inner {
    text-align: center;
    position: relative;
}

.cta-inner h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0055cc, #3457F7);
    color: #fff;
    padding: 70px 0 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col { text-align: center; }

.footer-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
}

.footer-bottom {
    padding: 28px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05rem;
}

.footer-brand img {
    border-radius: 6px;
    filter: brightness(0) invert(1);
    image-rendering: -webkit-optimize-contrast;
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
    font-size: 0.88rem;
    opacity: 0.75;
    transition: opacity 0.3s;
}
.footer-links a:hover { opacity: 1; }

.footer-copy {
    font-size: 0.82rem;
    opacity: 0.5;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ===== SCROLL TO TOP ===== */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 999;
    font-size: 1.1rem;
    border: none;
    background: #2084db;
    color: #fff;
    cursor: pointer;
    width: 48px; height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    font-weight: 700;
}
#scrollToTopBtn.visible { opacity: 1; visibility: visible; }
#scrollToTopBtn:hover { transform: translateY(-3px); background: #1e62c9; }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: translateY(0); will-change: auto; }

/* ===== ACTIONS HERO (page Nos Actions) ===== */
.actions-hero {
    background: linear-gradient(135deg, #1e62c9, #3457F7);
    color: #fff;
    padding: 130px 0 60px;
    text-align: center;
}
.actions-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.actions-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ACTION DETAIL (page Nos Actions) ===== */
.action-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.action-detail-reverse { direction: rtl; }
.action-detail-reverse > * { direction: ltr; }

.action-detail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-detail-images img {
    border-radius: 16px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.action-detail-images img:hover { transform: scale(1.03); }

.action-detail-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e62c9;
    margin-bottom: 18px;
}

.action-detail-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

@media (max-width: 768px) {
    .action-detail { grid-template-columns: 1fr; gap: 24px; }
    .action-detail-reverse { direction: ltr; }
    .action-detail-images { grid-template-columns: 1fr; }
    .action-detail-images img { height: 200px; }
    .action-detail-text h2 { font-size: 1.4rem; }
    .actions-hero { padding: 110px 0 40px; }
    .actions-hero h1 { font-size: 2rem; }
    .events-hero { padding: 110px 0 40px; }
    .events-hero h1 { font-size: 2rem; }
}

/* ===== ÉVÉNEMENTS PAGE ===== */
.events-hero {
    background: linear-gradient(135deg, #0073aa, #1e62c9);
    color: #fff;
    padding: 130px 0 60px;
    text-align: center;
}
.events-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.events-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.event-section { padding: 60px 0; }
.event-bg-alt { background: #f8f9fa; }

.event-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 4px solid;
}
.event-blue { color: #0073aa; border-color: #0073aa; }
.event-green { color: #2e7d32; border-color: #2e7d32; }
.event-orange { color: #e65100; border-color: #ff9800; }
.event-purple { color: #7b1fa2; border-color: #7b1fa2; }
.event-darkblue { color: #1565c0; border-color: #1565c0; }
.event-red { color: #d32f2f; border-color: #d32f2f; }
.event-teal { color: #00838f; border-color: #0097a7; }

.event-block {
    margin-bottom: 30px;
}
.event-block h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
}

.event-info-box {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 8px;
    padding: 24px 28px;
    line-height: 1.9;
}
.event-info-box.event-info-alt {
    background: #e6f4ff;
    border-left-color: #4da6ff;
}
.event-info-box p {
    margin-bottom: 12px;
    color: #444;
}
.event-info-box p:last-child { margin-bottom: 0; }
.event-info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #333;
}
.event-info-box h4:first-child { margin-top: 0; }
.event-info-box ul {
    padding-left: 24px;
    margin-bottom: 12px;
}
.event-info-box ul:last-child { margin-bottom: 0; }
.event-info-box li {
    margin-bottom: 6px;
    color: #444;
}

@media (max-width: 768px) {
    .event-title { font-size: 1.5rem; }
    .event-info-box { padding: 18px 20px; }
    .event-block h3 { font-size: 1.15rem; }
}

/* ===== FORUM HERO ===== */
.forum-hero {
    background: linear-gradient(135deg, #1e62c9, #3457F7);
    color: #fff;
    padding: 130px 0 60px;
    text-align: center;
}
.forum-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.forum-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FORUM ===== */
.forum-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: #999;
}

.forum-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 1.5s infinite;
}
.forum-status-dot.connected { background: #4caf50; animation: none; }
.forum-status-dot.error { background: #f44336; animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.forum-new-topic {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    border: 1px solid #f0f2f5;
}

.forum-new-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.forum-new-topic-header h3 {
    font-size: 1.15rem;
    color: #1e62c9;
}

.forum-toggle-form {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid #e8ecf1;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1e62c9;
    transition: all 0.3s;
}
.forum-toggle-form:hover { background: #1e62c9; color: #fff; border-color: #1e62c9; }
.toggle-icon { transition: transform 0.3s; }
.forum-toggle-form.open .toggle-icon { transform: rotate(45deg); }

.forum-form-body {
    display: grid;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s, margin 0.3s;
    opacity: 0;
    margin-top: 0;
}
.forum-form-body.open {
    max-height: 1100px;
    opacity: 1;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.forum-form-body input,
.forum-form-body select,
.forum-form-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #f8fafc;
}
.forum-form-body input:focus,
.forum-form-body select:focus,
.forum-form-body textarea:focus {
    outline: none;
    border-color: #2084db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32,132,219,0.1);
}

.forum-form-body .btn { justify-self: start; }

.composer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.composer-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 2px solid #e8ecf1;
    background: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}
.composer-tool-btn:hover {
    border-color: #1e62c9;
    color: #1e62c9;
    background: #eef4ff;
}

.composer-help {
    font-size: 0.8rem;
    color: #999;
}

.emoji-panel {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 10px;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    background: #fff;
}

.emoji-btn {
    border: none;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 1.1rem;
    cursor: pointer;
}
.emoji-btn:hover { background: #eef4ff; }

.photo-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf1;
    min-height: 120px;
    background: #f8fafc;
}
.photo-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.remove-photo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

/* Forum toolbar */
.forum-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.forum-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid #e8ecf1;
    background: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}
.filter-btn.active, .filter-btn:hover {
    background: #1e62c9;
    color: #fff;
    border-color: #1e62c9;
}

.forum-count { font-size: 0.88rem; color: #999; font-weight: 500; }

/* Forum loading */
.forum-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.spinner {
    width: 36px; height: 36px;
    border: 3px solid #e8ecf1;
    border-top-color: #1e62c9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Forum topics */
.forum-topic {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f2f5;
    border-left: 4px solid #1e62c9;
    transition: all 0.3s;
}
.forum-topic:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

.forum-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-topic-title { font-size: 1.1rem; font-weight: 600; color: #1e62c9; }

.forum-topic-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-general { background: #e8ecf1; color: #555; }
.badge-vacances { background: #dff0ff; color: #1e62c9; }
.badge-conseils { background: #fff3e0; color: #e65100; }
.badge-entraide { background: #e8f5e9; color: #2e7d32; }

.forum-topic-meta { font-size: 0.82rem; color: #aaa; margin-bottom: 12px; }
.forum-topic-content { color: #555; font-size: 0.95rem; line-height: 1.8; }

.forum-topic-media {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.forum-topic-media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #edf1f5;
}

.forum-topic-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topic-action-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #dfe6ec;
    background: #f7f9fb;
    color: #444;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.topic-action-btn:hover {
    background: #eef3f7;
    border-color: #c8d3dc;
}

.topic-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.topic-action-btn.topic-action-danger {
    color: #c0392b;
    border-color: #f3cec9;
    background: #fcf4f2;
}

.topic-action-btn.topic-action-danger:hover {
    background: #fae7e4;
    border-color: #e7b5ad;
}

/* Replies */
.forum-replies {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.forum-reply {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border: 1px solid #f0f2f5;
}

.forum-reply-meta {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 4px;
    font-weight: 500;
}

.reply-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.reply-form input {
    flex: 0 0 130px;
    padding: 10px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
}
.reply-form textarea {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    min-height: 42px;
}
.reply-form input:focus, .reply-form textarea:focus {
    outline: none;
    border-color: #2084db;
}
.reply-form button {
    padding: 10px 18px;
    background: #2084db;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.reply-form button:hover { background: #1e62c9; }

.forum-toggle-replies {
    background: none;
    border: none;
    color: #1e62c9;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    padding: 0;
}
.forum-toggle-replies:hover { text-decoration: underline; }

.forum-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}
.forum-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 80px; right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    font-size: 0.92rem;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    max-width: 360px;
    border-left: 4px solid #4caf50;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #f44336; }
.toast.info { border-left-color: #2084db; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .mission-values { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .centres-grid { grid-template-columns: repeat(3, 1fr); }
    .action-card { grid-template-columns: 1fr; gap: 24px; }
    .action-reverse { direction: ltr; }
    .action-image img { height: 280px; }
    .footer-columns { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    /* ---- HAMBURGER ---- */
    .hamburger { display: flex; }

    /* ---- OVERLAY BACKDROP ---- */
    .nav::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(10, 22, 40, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 998;
    }
    .nav.open::after { opacity: 1; pointer-events: auto; }

    /* ---- PANNEAU LATERAL ---- */
    .nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 88vw;
        max-width: 340px;
        background: #fff;
        box-shadow: -6px 0 40px rgba(10, 22, 40, 0.18);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 90px 24px 36px;
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        border-left: 1px solid #e8eef6;
    }
    .nav.open {
        transform: translateX(0);
        pointer-events: auto;
    }
    .nav::before {
        content: "Menu";
        position: absolute;
        top: 32px;
        left: 28px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: #1e62c9;
        opacity: 0.55;
        display: block;
    }

    /* ---- LIENS ---- */
    .nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 18px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a2a44;
        border-radius: 12px;
        transform: none;
        opacity: 1;
        transition: background 0.18s, color 0.18s;
        border-bottom: 1px solid #f0f4fa;
        margin: 0;
    }
    .nav .nav-link:last-of-type { border-bottom: none; }
    .nav .nav-link::after {
        content: "›";
        font-size: 1.5rem;
        line-height: 1;
        color: #1e62c9;
        opacity: 0.45;
        transform: none;
        transition: opacity 0.15s, transform 0.2s;
    }
    .nav .nav-link:hover, .nav .nav-link.active {
        background: #eef4ff;
        color: #1e62c9;
    }
    .nav .nav-link:hover::after, .nav .nav-link.active::after { opacity: 1; transform: translateX(2px); }
    .nav.open .nav-link:nth-child(1),
    .nav.open .nav-link:nth-child(2),
    .nav.open .nav-link:nth-child(3),
    .nav.open .nav-link:nth-child(4),
    .nav.open .nav-link:nth-child(5),
    .nav.open .nav-link:nth-child(6) { transform: none; opacity: 1; transition-delay: 0s; }

    /* ---- BOUTON DON MOBILE ---- */
    .nav .nav-mobile-donate {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 24px;
        padding: 18px 20px;
        background: #D1507B;
        color: #fff;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1.05rem;
        letter-spacing: 0.3px;
        text-decoration: none;
        transform: none;
        opacity: 1;
        box-shadow: 0 6px 18px rgba(209, 80, 123, 0.3);
        transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    }
    .nav.open .nav-mobile-donate { transform: none; opacity: 1; transition-delay: 0s; }
    .nav .nav-mobile-donate:hover {
        background: #b8406a;
        box-shadow: 0 8px 22px rgba(209, 80, 123, 0.45);
    }

    /* Cache le bouton don du header sur mobile */
    .header-btn { display: none; }

    /* ---- HERO ---- */
    .hero { height: 85vh; min-height: 500px; }
    .hero h1 { font-size: 2.4rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }
    .hero-badge { font-size: 0.75rem; padding: 6px 18px; }
    .hero-scroll-hint { display: none; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

    /* ---- SECTIONS ---- */
    .section { padding: 50px 0; }
    .section-title { font-size: 1.7rem; margin-bottom: 30px; }

    /* ---- MISSION ---- */
    .mission-values { grid-template-columns: 1fr; gap: 16px; }
    .mission-text { font-size: 1rem; }
    .section-mission { padding: 70px 0 40px; }

    /* ---- STATS ---- */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-number { font-size: 2.4rem; }
    .stat-card { padding: 26px 14px 22px; }
    .stat-label { font-size: 0.85rem; }

    /* ---- CENTRES ---- */
    .centres-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .centres-subtitle { font-size: 0.95rem; }

    /* ---- NOS ACTIONS ---- */
    .section-blue { padding-top: 70px; }
    .section-curve-top { height: 40px; }
    .floating-logo {
        width: 70px;
        height: auto;
        margin: -78px auto 10px;
    }
    .action-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; margin-bottom: 30px; }
    .action-reverse { direction: ltr; }
    .action-image img { height: 220px; }
    .action-text h3 { font-size: 1.25rem; }

    /* ---- TESTIMONIAL ---- */
    .testimonial-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 24px;
        gap: 24px;
    }
    .testimonial-photo { justify-self: center; }
    .testimonial-photo img { width: 130px; height: 130px; }
    .testimonial-content blockquote {
        padding-left: 0;
        border-left: none;
        text-align: center;
        font-size: 1.05rem;
        border-top: 3px solid #1e62c9;
        padding-top: 16px;
    }

    /* ---- CONTACT ---- */
    .contact-form { padding: 22px 18px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-form input,
    .contact-form select,
    .contact-form textarea { padding: 14px 16px; font-size: 1rem; }

    /* ---- CTA ---- */
    .cta-inner h2 { font-size: 1.3rem; }
    .cta-banner { padding: 50px 0; }

    /* ---- FOOTER ---- */
    .footer { padding: 50px 0 0; }
    .footer-columns { gap: 24px; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* ---- FORMULAIRES ---- */
    .form-row { grid-template-columns: 1fr !important; }
    .reply-form { flex-direction: column; }
    .reply-form input { flex: unset; }

    /* ---- FORUM ---- */
    .forum-hero { padding: 110px 0 40px; }
    .forum-hero h1 { font-size: 1.8rem; }
    .emoji-panel { grid-template-columns: repeat(6, 1fr); }
    .forum-topic-media { grid-template-columns: 1fr; }
    .forum-topic-media img { height: 200px; }
    .forum-new-topic { padding: 20px; }
}

@media (max-width: 480px) {
    /* ---- HERO ---- */
    .hero { height: 75vh; min-height: 480px; }
    .hero h1 { font-size: 1.9rem; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-actions { flex-direction: column; align-items: center; width: 100%; }
    .hero-actions .btn { width: 85%; justify-content: center; }

    /* ---- STATS ---- */
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { border-radius: 8px 8px 8px 24px; }

    /* ---- CENTRES ---- */
    .centres-grid { grid-template-columns: 1fr; }

    /* ---- ACTIONS ---- */
    .action-image img { height: 180px; }
    .action-card { padding: 16px; }

    /* ---- CONTAINER ---- */
    .container { padding: 0 16px; }

    /* ---- SECTION TITLE ---- */
    .section-title { font-size: 1.5rem; }

    /* ---- PARTENAIRES ---- */
    .partenaires-img-large { border-radius: 10px; }

    /* ---- CONTACT ---- */
    .contact-form { padding: 18px 14px; }

    /* ---- FOOTER ---- */
    .footer-links { gap: 8px; }
    .footer-links a { font-size: 0.82rem; }

    /* ---- SCROLL TO TOP ---- */
    #scrollToTopBtn { bottom: 20px; right: 16px; width: 44px; height: 44px; }
}
