:root {
    --gold: #d4af37;
    --dark-blue: #0a1931;
    --dark-blue-soft: #162a4d;
    --white: #ffffff;
    --light-bg: #f0f4f8;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body { font-family: 'Poppins', sans-serif; background-color: var(--light-bg); margin: 0; color: var(--text-main); line-height: 1.6; }

.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 25px; 
    width: 100%; /* Ajouté pour garantir l'occupation de l'espace */
    box-sizing: border-box; 
}
/* --- Bannière --- */

.top-badge {
    background: rgba(212, 175, 55, 0.2); color: var(--gold); border: 1px solid var(--gold);
    padding: 6px 18px; border-radius: 50px; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 2px; display: inline-block; margin-bottom: 15px;
}


.top-badge {
    background: var(--gold); color: var(--dark-blue); padding: 7px 18px;
    border-radius: 50px; font-weight: 800; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px; display: inline-block; margin-bottom: 15px;
}

/* --- Bannière --- */
.breadcrumb-areag {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
                url('../img/Children-helped-by-World-Vision-from-its-webiste.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

.breadcrumb-areag h1 { color: var(--white); font-size: 3.5rem; letter-spacing: 3px; margin-bottom: 10px; }
.breadcrumb-areag p a { color: var(--gold); text-decoration: none; font-weight: 600; }
.breadcrumb-areag p { color: var(--white); text-decoration: none; font-weight: 600; }

/* --- Section Donation --- */
.donation-section { padding-bottom: 100px; }
.donation-wrapper { 
    display: grid; 
    /* Augmentation de la part du formulaire (1.5fr au lieu de 1.3fr) */
    grid-template-columns: 1.5fr 0.8fr; 
    gap: 50px; 
    margin-top: 60px; /* Plus d'espace sous la bannière */
    align-items: start;
}
/* Formulaire */
.donation-form-card {
    background: var(--white); border-radius: 40px; padding: 50px;
    box-shadow: 0 25px 50px rgba(10, 25, 49, 0.08); border: 1px solid rgba(255,255,255,0.7);
}

.form-header h2 { color: var(--dark-blue); font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; }
.form-header p { color: var(--text-muted); margin-bottom: 35px; }

/* Boutons de montants */
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 25px; }
.amount-item input { display: none; }
.amount-box {
    padding: 22px; border: 2px solid #f0f2f5; border-radius: 20px;
    text-align: center; cursor: pointer; font-weight: 700; transition: var(--transition);
    color: var(--dark-blue); font-size: 1.2rem; background: #fbfcfd;
}
.amount-item:hover .amount-box { border-color: var(--gold); transform: translateY(-3px); }
.amount-item input:checked + .amount-box {
    background: var(--gold); border-color: var(--gold); color: white;
    box-shadow: 0 12px 20px rgba(212, 175, 55, 0.3);
}

.custom-amount label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; color: var(--dark-blue); }
.custom-amount input {
    width: 100%; padding: 20px; border-radius: 20px; border: 2px solid #f0f2f5;
    font-size: 1.3rem; font-weight: 700; outline: none; transition: var(--transition);
    box-sizing: border-box; background: #fbfcfd;
}
.custom-amount input:focus { border-color: var(--gold); background: white; box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); }

.divider { border: 0; height: 1px; background: #eee; margin: 40px 0; }

.input-group label { display: block; font-weight: 700; margin-bottom: 12px; color: var(--dark-blue); }
.input-group select {
    width: 100%; padding: 18px; border-radius: 18px; border: 2px solid #f0f2f5;
    background: #fbfcfd; font-size: 1rem; font-weight: 600; cursor: pointer; outline: none;
}

/* Paiement */
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.pay-item {
    border: 2px solid #f0f2f5; padding: 20px 10px; border-radius: 20px; text-align: center;
    cursor: pointer; transition: var(--transition); background: #fbfcfd;
}
.pay-item i { font-size: 1.7rem; margin-bottom: 10px; color: var(--dark-blue); opacity: 0.7; }
.pay-item span { font-size: 0.85rem; font-weight: 700; color: var(--dark-blue); display: block; line-height: 1.2; }
.pay-item small { font-weight: 400; font-size: 0.7rem; color: var(--text-muted); }

.pay-item.active { border-color: var(--gold); background: #fffdf7; }
.pay-item.active i { color: var(--gold); opacity: 1; }

.btn-donate {
    width: 100%; background: var(--dark-blue); color: white; border: none;
    padding: 24px; border-radius: 22px; font-size: 1.3rem; font-weight: 800;
    margin-top: 40px; cursor: pointer; transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-donate:hover { background: var(--gold); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3); }

.secure-note { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Sidebar */
.impact-card { 
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue-soft)); 
    color: white; padding: 45px; border-radius: 35px; margin-bottom: 30px; text-align: center;
}
.impact-card i { font-size: 3.5rem; color: var(--gold); margin-bottom: 25px; display: block; }
.impact-card h3 { font-size: 1.6rem; margin-bottom: 15px; }
.impact-card p { opacity: 0.85; font-size: 1rem; }

.trust-item { display: flex; gap: 20px; margin-bottom: 25px; background: white; padding: 20px; border-radius: 22px; box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
.trust-item .icon { color: var(--gold); background: #fff9e6; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; font-weight: 900; }
.trust-item h4 { margin: 0 0 5px 0; color: var(--dark-blue); font-size: 1.1rem; }
.trust-item p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }

.help-box { background: #fff; padding: 35px; border-radius: 30px; text-align: center; border: 2px dashed #dcdde1; }
.help-box p { font-weight: 700; color: var(--dark-blue); margin-bottom: 20px; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: white; padding: 15px; border-radius: 18px; text-decoration: none; font-weight: 700; transition: var(--transition); }
.btn-wa:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }

/* Responsive */
@media (max-width: 992px) {
    .donation-wrapper { grid-template-columns: 1fr; }
    .breadcrumb-area h1 { font-size: 2.5rem; }
    .breadcrumb-area { padding: 100px 0; }
    .donation-form-card { padding: 30px; }
}

/* --- DARK MODE CONFIGURATION --- */

/* Couleurs spécifiques au mode sombre */
.dark-theme {
    --light-bg: #050a14;
    --white: #0d1626;
    --text-main: #e1e8f0;
    --text-muted: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.05);
}

.dark-theme body {
    background-color: var(--light-bg);
    color: var(--text-main);
}

/* Ajustements des cartes en mode sombre */
.dark-theme .donation-form-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.dark-theme .form-header h2 {
    color: var(--white); /* Titre sur fond sombre */
    color: #fff;
}

/* Inputs et sélections */
.dark-theme .amount-box, 
.dark-theme .custom-amount input, 
.dark-theme .input-group select, 
.dark-theme .pay-item {
    background: #162133;
    border-color: #1f2d44;
    color: #fff;
}

.dark-theme .amount-item:hover .amount-box {
    border-color: var(--gold);
}

.dark-theme .amount-item input:checked + .amount-box {
    background: var(--gold);
    color: var(--dark-blue); /* Texte sombre sur bouton or */
}

.dark-theme .pay-item i {
    color: #fff;
}

.dark-theme .pay-item.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.dark-theme .pay-item.active i {
    color: var(--gold);
}

/* Barre latérale et éléments de confiance */
.dark-theme .trust-item {
    background: #162133;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.dark-theme .trust-item h4 {
    color: #fff;
}

.dark-theme .help-box {
    background: #162133;
    border-color: #1f2d44;
}

.dark-theme .help-box p {
    color: #fff;
}

.dark-theme .divider {
    background: #1f2d44;
}

.impact-card-premium {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.impact-card-premium:hover {
    transform: translateY(-5px);
}

/* Petit éclat doré en haut de la carte */
.impact-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    animation: pulse-gold 2s infinite;
}

.impact-card-premium h3 {
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.impact-card-premium p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.impact-card-premium p strong {
    color: #d4af37;
    font-weight: 600;
}

.thanks-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #d4af37;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.impact-stats {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.75rem;
    color: #a0aec0;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* Animation du coeur */
@keyframes pulse-gold {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}