/* --- VARIABLES & RESET --- */
:root {
    --blue-dark: #003366;
    --blue-royal: #0056b3;
    --blue-light: #f0f7ff;
    --green-success: #10b981;
    --green-dark: #059669;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-grey: #475569;

    --shadow-card: 0 10px 40px -10px rgba(0, 51, 102, 0.15);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    padding-bottom: 110px;
}

/* --- TYPO --- */
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: -0.5px; }
.text-center { text-align: center; }
.text-blue { color: var(--blue-dark); }

/* --- HERO SECTION & NAVIGATION --- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95), rgba(0, 86, 179, 0.9)),
                url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Mairie_de_Hoenheim.JPG/1200px-Mairie_de_Hoenheim.JPG') center/cover;
    color: var(--white);
    padding: 40px 0 100px 0; /* Espacement corrigé ici */
    display: flex; flex-direction: column;
}

.container { width: 90%; max-width: 1000px; margin: 0 auto; }

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.mini-logo { width: 60px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); }
.top-tag { font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 20px; }

/* Navigation Top Bar */
.main-nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: white; text-decoration: none; font-weight: 600; transition: opacity 0.3s; }
.nav-link:hover { opacity: 0.8; }
.btn-don-nav {
    background: white; color: var(--blue-dark); padding: 10px 24px;
    border-radius: 50px; text-decoration: none; font-weight: 800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.2s;
}
.btn-don-nav:hover { transform: scale(1.05); }

.hero-content { flex-grow: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.main-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; }
.hero-divider { width: 80px; height: 4px; background: #4dabf7; margin: 0 auto 25px auto; border-radius: 2px; }
.hero-pillars {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px;
    font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase;
    font-size: clamp(0.9rem, 2vw, 1.2rem); color: #e3f2fd; margin-bottom: 30px;
}
.pillar-item { display: flex; align-items: center; gap: 8px; }
.p-icon { font-size: 1.3em; }
.pillar-dot { color: rgba(255,255,255,0.4); display: none; }

.hero-desc { font-size: 1.1rem; max-width: 600px; opacity: 0.9; margin: 0 auto; }
.wave-bottom { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; }

/* --- SECTIONS --- */
.section { padding: 40px 0 80px 0; }
.bg-light { background: var(--blue-light); }
.section-title { font-size: 2.2rem; margin-bottom: 10px; }
.section-sub { color: var(--text-grey); font-size: 1.1rem; margin-bottom: 50px; }

/* --- PROGRAMME --- */
.accordion-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.action-card {
    background: var(--white); border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
    transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.action-card summary {
    padding: 25px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.action-card summary::-webkit-details-marker { display: none; }
.summary-left { display: flex; align-items: center; gap: 20px; }
.card-emoji {
    font-size: 1.8rem; background: #f8fafc; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}
.summary-left h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); }
.card-body { padding: 0 25px 30px 95px; color: var(--text-grey); font-size: 1rem; line-height: 1.7; }
.action-card[open] { border-color: var(--blue-royal); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.special-card { border-left: 5px solid #e91e63; }
.special-card summary h3 { color: #d81b60; }

/* --- FOOTER --- */
.bg-dark-blue { background: var(--blue-dark); color: white; padding: 40px 0 80px 0; }
.footer-text { font-weight: 700; letter-spacing: 1px; font-size: 1.1rem; }
.footer-sub { opacity: 0.6; font-size: 0.9rem; margin-top: 10px; }

/* --- STICKY BUTTON --- */
.sticky-cta-wrapper {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 2000;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; align-items: center;
    backdrop-filter: blur(5px);
}
.urgent-label {
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    margin-bottom: 10px; letter-spacing: 0.5px;
}
.success-label { color: var(--green-dark); }

.btn-main-action {
    display: flex; align-items: center; gap: 12px; justify-content: center;
    color: white; text-decoration: none;
    padding: 16px 40px; border-radius: 50px;
    font-weight: 800; font-size: 1.2rem; text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.4);
    width: 100%; max-width: 500px;
    transition: transform 0.2s;
}

.btn-pulse-success { background: linear-gradient(135deg, var(--green-success), var(--green-dark)); animation: pulse-green 2s infinite; }
.btn-main-action:active { transform: scale(0.96); }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .card-body { padding: 0 20px 20px 20px; }
    .top-bar { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
    .pillar-dot { display: inline; margin: 0 10px; }
}

/* On s'assure que le contenu reste toujours au-dessus de la vague */
.hero-content {
    position: relative;
    z-index: 10; 
}

/* On augmente l'espacement du bas sur les écrans d'ordinateur */
@media (min-width: 1024px) {
    .hero-section { padding-bottom: 160px; }
}

/* On l'augmente encore plus sur les très grands écrans (1440p / 4K) */
@media (min-width: 1440px) {
    .hero-section { padding-bottom: 240px; }
}

/* Annule le padding de 110px (prévu pour le bouton accueil) sur cette page */
body.bg-light {
    padding-bottom: 20px; 
}

/* Réduit l'espace entre le bloc blanc et le footer/lien sur cette page */
body.bg-light .section {
    padding-bottom: 0; 
}
