/* ===== PAGE DE DON - STYLES PRINCIPAUX ===== */

.don-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 300px);
    position: relative;
}

.don-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(26,69,135,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.don-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== SECTION INFO ===== */

.don-info {
    margin-bottom: 50px;
    text-align: center;
}

.don-info h2 {
    font-size: 2.5rem;
    color: #1a4587;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.don-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #1a4587);
    border-radius: 2px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26,69,135,0.1);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a4587, #ffd700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26,69,135,0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: #1a4587;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #ffd700;
}

.info-card h3 {
    font-size: 1.5rem;
    color: #1a4587;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ===== FORMULAIRE DE DON ===== */

.don-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26,69,135,0.1);
}

.don-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1a4587, #2d7be5, #ffd700);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 1.1rem;
    color: #1a4587;
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
}

.form-group label::after {
    content: attr(data-required);
    color: #dc3545;
    margin-left: 3px;
}

.form-group input {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    position: relative;
}

.form-group input:focus {
    border-color: #1a4587;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26,69,135,0.1);
    background: white;
    transform: translateY(-2px);
}

.form-group input:valid {
    border-color: #22c55e;
}

/* Animation pour les labels flottants */
.form-group.focused label {
    transform: translateY(-8px) scale(0.9);
    color: #1a4587;
}

/* ===== FOOTER DU FORMULAIRE ===== */

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.legal-info {
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
}

/* ===== BOUTONS ===== */

.btn-don, .btn-preview {
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-don::before, .btn-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-don {
    background: linear-gradient(135deg, #1a4587 0%, #2d7be5 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(26,69,135,0.25);
}

.btn-don::before {
    background: rgba(255, 255, 255, 0.2);
}

.btn-don:hover::before {
    width: 300px;
    height: 300px;
}

.btn-don:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(26,69,135,0.35);
}

.btn-preview {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(220,53,69,0.25);
}

.btn-preview::before {
    background: rgba(255, 255, 255, 0.2);
}

.btn-preview:hover::before {
    width: 300px;
    height: 300px;
}

.btn-preview:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(220,53,69,0.35);
}

.btn-don i, .btn-preview i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.btn-don span, .btn-preview span {
    position: relative;
    z-index: 2;
}

/* ===== ALERTES ===== */

.alert {
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    position: relative;
    border: 1px solid;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 16px 0 0 16px;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-color: #86efac;
}

.alert-success::before {
    background: #22c55e;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-error::before {
    background: #dc2626;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .don-info h2 {
        font-size: 2rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .form-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .don-form {
        padding: 25px;
        margin: 0 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-don, .btn-preview {
        padding: 14px 24px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .don-section {
        padding: 40px 0;
    }
    
    .don-container {
        padding: 0 15px;
    }
    
    .don-info h2 {
        font-size: 1.8rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .don-form {
        padding: 20px;
        border-radius: 16px;
    }
}

/* ===== ANIMATIONS ===== */

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

.don-container > * {
    animation: fadeInUp 0.6s ease-out;
}

.don-container > *:nth-child(2) {
    animation-delay: 0.1s;
}

.don-container > *:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===== EFFETS SUPPLÉMENTAIRES ===== */

.form-group input:focus + .floating-label {
    transform: translateY(-25px) scale(0.85);
    color: #1a4587;
}

.don-form:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.info-card:nth-child(3) {
    animation-delay: 0.4s;
} 