/**
 * CSS PRINCIPAL - PROPRE ET SIMPLE
 * Fond bleu ciel + Navigation rouge + Texte noir
 * Pas de patchs, pas de conflits
 */

/* ========== VARIABLES ========== */
:root {
    --color-primary: #E63946;
    --color-background: #87CEEB;
    --color-text: #000000;
    --color-white: #FFFFFF;
}

/* ========== RESET ET BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TOUT le texte en NOIR par défaut */
h1, h2, h3, h4, h5, h6,
p, span, div, li, td, th, label {
    color: var(--color-text);
}

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

/* ========== HERO / PAGE HEADER ========== */
.page-hero {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 80px 20px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
}

/* ========== CONTAINERS ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 20px;
}

/* Boxes blancs */
.box,
.card,
.donation-form-card,
.description-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* ========== BOUTONS ========== */
.btn-primary,
.amount-btn,
button[type="submit"] {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.amount-btn:hover {
    background: #d62839;
    transform: scale(1.05);
}

/* ========== STATS CARDS ========== */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card-modern {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card-modern * {
    color: var(--color-white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== FORMULAIRES ========== */
input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    background: var(--color-white);
    color: var(--color-text);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-text);
}

/* ========== CHECKBOX VISIBLE ET PRO ========== */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(230, 57, 70, 0.05);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.form-checkbox:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: #d62839;
}

.form-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--color-primary);
}

.form-checkbox span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

.form-checkbox input[type="checkbox"]:checked + span {
    color: var(--color-primary);
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: var(--color-text);
}

/* ========== ANIMATIONS SIMPLES ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Flocons de neige */
.snowflake {
    position: fixed;
    top: -10px;
    color: var(--color-white);
    font-size: 1.5em;
    z-index: 9999;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ========== FOOTER MODERNE ET WOW ========== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #FFFFFF;
    padding: 50px 20px 30px;
    margin-top: 80px;
    border-top: 5px solid #FFD166;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance animé */
.site-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,209,102,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Particules décoratives */
.site-footer::after {
    content: '✨ 🌟 ⭐ 💫 ✨ 🌟 ⭐ 💫';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    font-size: 1.5rem;
    opacity: 0.2;
    text-align: center;
    letter-spacing: 30px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD166;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(255,209,102,0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 4px 15px rgba(255,209,102,0.5), 0 0 20px rgba(255,209,102,0.3); }
    to { text-shadow: 0 4px 25px rgba(255,209,102,0.8), 0 0 40px rgba(255,209,102,0.5); }
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.footer-link:hover {
    background: rgba(255,209,102,0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255,209,102,0.4);
    color: #FFD166;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #FFFFFF;
    font-size: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(255,209,102,0.3);
    box-shadow: 0 8px 25px rgba(255,209,102,0.5);
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding-top: 25px;
    border-top: 2px solid rgba(255,209,102,0.3);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: #FFD166;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255,209,102,0.8);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 15px 25px;
        margin-top: 60px;
    }
    
    .site-footer::after {
        font-size: 1.2rem;
        letter-spacing: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-brand {
        order: 1;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .footer-links {
        order: 2;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
    
    .footer-social {
        order: 3;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 25px;
        padding-top: 20px;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .box,
    .card {
        padding: 20px;
    }
}
