:root {
    --primary: #0f2c59;
    --primary-light: #184382;
    --accent: #d99b26;
    --accent-light: #fef5e7;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --danger: #c53030;
    --danger-bg: #fff5f5;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

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

/* HEADER & NAV */
.top-bar {
    background: var(--primary);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 6px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-bar i {
    color: var(--accent);
    margin-right: 5px;
}

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

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

.logo-badge {
    background: var(--primary);
    color: var(--accent);
    font-weight: 800;
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 6px;
}

.logo-text h1 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    white-space: nowrap;
}

.logo-text p {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Empêche le texte de se casser sur deux lignes */
    cursor: pointer;
    display: inline-block;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary);
    background-color: #f1f5f9;
}

/* Bouton Faire un don */
.nav-btn.btn-cta {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--bg);
}

.btn-cta {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(15, 44, 89, 0.9), rgba(15, 44, 89, 0.85)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1200&q=80') center/cover;
    color: white;
    padding: 70px 5%;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* SECTIONS & CARDS */
.section {
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 8px auto 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ALERT & AUDIO */
.alert-box {
    background: var(--danger-bg);
    border-left: 5px solid var(--danger);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.alert-box h3 {
    color: #9b2c2c;
}

.player-box {
    background: var(--primary);
    color: white;
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.player-box h3 {
    color: var(--accent);
}

audio {
    width: 100%;
    margin-top: 15px;
}

/* FOOTER */
footer {
    background: var(--primary);
    color: #cbd5e1;
    padding: 40px 5% 20px 5%;
    margin-top: 60px;
    font-size: 0.88rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 30px;
    font-size: 0.8rem;
}

/* Galerie & Diaporama */
/* Carrousel avec Effet de Fondu (Fade) */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 4s ease;
}

/* Slide actif : visible avec léger zoom dynamique */
.carousel-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(15, 44, 89, 0.95));
    color: var(--white);
    padding: 25px 20px 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2;
}

.carousel-slide.active {
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    background: rgba(15, 44, 89, 0.8);
    color: white;
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Images dans les cartes */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -22px -22px 15px -22px;
    width: calc(100% + 44px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* FOOTER DYNAMIQUE ET ALIGNÉ */
footer {
    background: var(--primary);
    color: #cbd5e1;
    padding: 50px 5% 20px 5%;
    margin-top: 60px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.2;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 6px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--accent);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* LISTE DES ALERTES ET MODALE */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--radius);
    max-width: 750px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

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

.modal-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 15px 0;
}

.modal-audio {
    width: 100%;
    margin-top: 15px;
    border-radius: var(--radius);
}

/* STYLES DE LA PAGE À PROPOS */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 850px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 8px;
}

.about-info h3:first-child {
    margin-top: 0;
}

.about-info p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.italic-quote {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

/* Carte des Valeurs */
.values-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
}

.pill:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* STYLES PAGE DE DON & MODES DE PAIEMENT */
.don-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 850px) {
    .don-container {
        grid-template-columns: 1fr;
    }
}

.don-card,
.payment-methods-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent);
}

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

.amount-btn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn.active,
.amount-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Badges Réseaux de Paiement */
.payment-badges-global {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.country-payments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.country-item strong {
    font-size: 0.85rem;
    color: #475569;
    display: block;
    margin-bottom: 6px;
}

.provider-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prov-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
}

/* Couleurs représentatives des marques d'Afrique */
.prov-badge.airtel {
    background-color: #e11d48;
}

.prov-badge.orange {
    background-color: #ff6600;
}

.prov-badge.vodacom,
.prov-badge.mpesa {
    background-color: #e11d48;
}

.prov-badge.momo {
    background-color: #ffcc00;
    color: #000;
}

.prov-badge.moov {
    background-color: #0055a5;
}

.prov-badge.free {
    background-color: #c0392b;
}

.prov-badge.afri {
    background-color: #8e44ad;
}

.prov-badge.zamtel {
    background-color: #27ae60;
}

/* DESIGN CONTACT SANS FORMULAIRE */
.contact-single-card {
    max-width: 750px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-header {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 650px) {
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-detail-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
}

.contact-detail-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-detail-item a:hover {
    text-decoration: underline;
}