/* Donation Page Styles - Ultra Dynamic & Animated */
.donation-page {
    overflow-x: hidden;
}

/* Hero Section avec animations avancées */
.donation-hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #d97706 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 3px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(circle at 90% 20%, rgba(217,119,6,0.2) 2px, transparent 2px);
    background-size: 300px 300px, 400px 400px, 200px 200px, 350px 350px;
    animation: particleFloat 25s ease-in-out infinite;
    z-index: 1;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C300,120 900,0 1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    animation: waveMove 8s ease-in-out infinite;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-icon {
    margin-bottom: 2rem;
}

.pulse-heart {
    font-size: 4rem;
    color: #ef4444;
    animation: heartPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(251,191,36,0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section de sélection du montant */
.amount-selection {
    padding: 5rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e3a8a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #1e3a8a, #d97706);
    border-radius: 2px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.amount-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.amount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.amount-card:hover::before {
    left: 100%;
}

.amount-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.2);
}

.amount-card.selected {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    transform: translateY(-10px) scale(1.08);
}

.amount-card.popular {
    border-color: #d97706;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(45deg, #d97706, #f59e0b);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: badgeBounce 2s ease-in-out infinite;
}

.amount-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

.amount-card.selected .amount-icon {
    color: white;
    transform: scale(1.2) rotate(360deg);
}

.amount-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

.amount-card.selected .amount-value {
    color: white;
}

.amount-description {
    font-size: 0.9rem;
    opacity: 0.7;
}

.custom-amount-input {
    position: relative;
    max-width: 300px;
    margin: 2rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.custom-amount-input.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-amount-input input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 3px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-amount-input input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #6b7280;
}

/* Type de don */
.donation-type {
    padding: 3rem 0;
    text-align: center;
}

.donation-type-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.type-btn {
    flex: 1;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.type-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.type-btn.active {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    transform: translateY(-5px);
}

.type-btn i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.monthly-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Méthodes de paiement */
.payment-methods {
    padding: 3rem 0;
    text-align: center;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.payment-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.payment-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

.payment-card.selected {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.payment-card.selected .payment-icon {
    color: white;
}

.payment-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-description {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Informations donateur */
.donor-info {
    padding: 3rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.donor-info .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.donor-info .form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Action de don */
.donation-action {
    padding: 3rem 0;
    text-align: center;
}

.donation-summary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.summary-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.amount-display {
    font-size: 2.5rem;
    color: #d97706;
}

.summary-impact {
    font-size: 1rem;
    color: #6b7280;
}

.btn-donate {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #d97706);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: gradientShift 3s ease-in-out infinite;
}

.btn-donate:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
}

.btn-donate:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Impact du don */
.donation-impact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.impact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(30, 58, 138, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.impact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(30, 58, 138, 0.15);
}

.impact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.impact-card:hover .impact-icon {
    transform: scale(1.1) rotate(360deg);
}

.impact-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #1e3a8a, #d97706);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease-in-out;
}

/* Témoignages */
.testimonials {
    padding: 5rem 0;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(30, 58, 138, 0.1);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #4b5563;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    color: #1e3a8a;
}

.author-role {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Modal de paiement */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.payment-modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.interac-details {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

/* Animations */
@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

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

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-hero-in {
    animation: heroSlideUp 1s ease-out;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-type-toggle {
        flex-direction: column;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
}