/* Styles spécifiques pour la page Dons & Soutien */

/* Section Importance du Soutien */
.importance-soutien {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.importance-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.importance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.importance-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.importance-title {
    color: #3d405b;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Section Statistiques */
.stat-circle {
    background: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3d405b;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

/* Section Projets Soutenus */
.projets-soutenus {
    padding: 80px 0;
    background: white;
}

.projet-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.projet-header {
    background: linear-gradient(135deg, #81b29a 0%, #3d405b 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.projet-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.projet-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.projet-content {
    padding: 25px;
}

.projet-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.projet-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #3d405b;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #81b29a 0%, #3d405b 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Section Moyens de Donation */
.moyens-donation {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.donation-method-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.donation-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.method-header {
    background: linear-gradient(135deg, #81b29a 0%, #3d405b 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.method-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.method-content {
    padding: 25px;
}

.method-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.method-details {
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.method-btn {
    background: linear-gradient(135deg, #81b29a 0%, #3d405b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Section Formulaire de Donation */
.donation-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    color: #3d405b;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
}

.btn-donation-submit {
    background: linear-gradient(135deg, #81b29a 0%, #3d405b 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.btn-donation-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Section Remerciement */
.remerciement-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #81b29a 0%, #3d405b 100%);
    color: white;
    text-align: center;
}

.remerciement-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.remerciement-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.remerciement-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.remerciement-quote {
    margin: 40px 0;
}

.blockquote {
    font-size: 1.3rem;
    border-left: 4px solid white;
    padding-left: 20px;
    font-style: italic;
}

.blockquote-footer {
    margin-top: 10px;
    opacity: 0.8;
}

.remerciement-note {
    margin-top: 40px;
}

/* Section Témoignages des Donateurs */
.temoignages-donateurs {
    padding: 80px 0;
    background: #f8f9fa;
}

.temoignage-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.temoignage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.temoignage-text {
    font-style: italic;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.temoignage-author strong {
    color: #3d405b;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.temoignage-author span {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

/* Animations pour les éléments de dons */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Classes d'animation réutilisables */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Délais d'animation */
.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Effets hover réutilisables */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Effet de brillance */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Notifications toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Styles pour les éléments cachés dynamiquement */
[style*="display: none"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive design pour dons-soutien */
@media (max-width: 768px) {
    .remerciement-title {
        font-size: 2rem;
    }

    .remerciement-text {
        font-size: 1.1rem;
    }

    .importance-card,
    .projet-card,
    .donation-method-card {
        margin-bottom: 30px;
    }

    .projet-stats {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item {
        text-align: center;
    }
}

/* Styles pour le formulaire de don dynamique */

/* Feedback container */
.feedback-container {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
}

.feedback-container .error-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.feedback-container .error-list li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.feedback-container .error-list li strong {
    color: inherit;
}

/* Sélecteur de méthode de paiement */
.payment-methods-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.payment-method-option {
    flex: 1;
    min-width: 120px;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.payment-method-label i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #6c757d;
}

.payment-method-label span {
    font-weight: 500;
    color: #495057;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: #81b29a;
    background: linear-gradient(
        135deg,
        rgba(129, 178, 154, 0.1) 0%,
        rgba(61, 64, 91, 0.1) 100%
    );
}

.payment-method-option input[type="radio"]:checked + .payment-method-label i {
    color: #81b29a;
}

.payment-method-option
    input[type="radio"]:checked
    + .payment-method-label
    span {
    color: #3d405b;
    font-weight: 600;
}

.payment-method-label:hover {
    border-color: #81b29a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Money details */
.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

/* Coordonnées bancaires */
.bank-details-container {
    margin-top: 30px;
    animation: fadeInUp 0.5s ease-out;
}

.bank-details-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #81b29a;
}

.bank-details-card h4 {
    color: #3d405b;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-details-card h4 i {
    color: #81b29a;
}

.bank-instruction {
    color: #495057;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.bank-info {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bank-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-row.highlight {
    background: linear-gradient(135deg, #81b29a 0%, #3d405b 100%);
    margin: 15px -20px -20px;
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    color: white;
}

.bank-row.highlight .bank-label,
.bank-row.highlight .bank-value {
    color: white;
}

.bank-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 150px;
}

.bank-value {
    color: #495057;
    flex: 1;
}

.bank-value.iban-value {
    font-family: "Courier New", monospace;
    font-weight: 600;
    font-size: 1.1em;
    color: #3d405b;
}

.bank-value.reference-value {
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 1.2em;
}

.btn-copy {
    background: transparent;
    border: 1px solid #81b29a;
    color: #81b29a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-copy:hover {
    background: #81b29a;
    color: white;
}

.bank-row.highlight .btn-copy {
    border-color: white;
    color: white;
}

.bank-row.highlight .btn-copy:hover {
    background: white;
    color: #3d405b;
}

.bank-note {
    margin-top: 20px;
    padding: 12px 15px;
    background: rgba(129, 178, 154, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #495057;
}

.bank-note i {
    color: #81b29a;
    font-size: 1.1rem;
}

/* Honeypot field */
.honeypot-field {
    position: absolute;
    left: -9999px;
}

/* Loading state pour le bouton */
.btn-donation-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-donation-submit .btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive pour le formulaire */
@media (max-width: 576px) {
    .payment-methods-selector {
        flex-direction: column;
    }

    .payment-method-option {
        width: 100%;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .bank-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 5px;
    }

    .btn-copy {
        margin-top: 5px;
    }

    .bank-details-card {
        padding: 20px;
    }
}
