/* --- BASE --- */
:root {
    --primary-blue: #41A8DF; 
    --dark-blue: #2A7CA6;
    --gold: #D4A056; 
    --text-color: #333;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --placeholder-bg: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; margin-bottom: 15px; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; }
.logo-text .name { font-weight: 700; font-size: 18px; color: var(--primary-blue); }

/* Style du menu Burger (Base) */
.hamburger {
    display: none; /* Caché par défaut sur desktop */
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

nav ul { display: flex; gap: 25px; align-items: center; }
nav a { font-size: 15px; font-weight: 500; color: #555; }
nav a:hover { color: var(--primary-blue); }

.btn-nav {
    background-color: var(--primary-blue); color: white !important;
    padding: 10px 20px; border-radius: 4px;
}
.btn-nav:hover { background-color: var(--dark-blue); }

/* --- HERO --- */
#hero { padding: 80px 0; background-color: var(--light-gray); }
.hero-flex { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-image { flex: 1; }
.hero-image img { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
h1 { font-size: 46px; line-height: 1.1; color: #222; margin-bottom: 20px; }
.lead { font-size: 18px; color: #666; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }

.btn-primary {
    background: var(--primary-blue); color: white;
    padding: 14px 30px; border-radius: 4px; font-weight: 600;
    display: inline-block; border: none; cursor: pointer;
}
.btn-secondary {
    background: white; border: 1px solid #ccc; color: #333;
    padding: 14px 30px; border-radius: 4px; font-weight: 600;
}
.btn-primary:hover { background: var(--dark-blue); }
.btn-secondary:hover { border-color: #999; }

/* --- PLACEHOLDER STYLES --- */
.img-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--placeholder-bg);
    border: 2px dashed #bbb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
    font-weight: bold;
    font-size: 14px;
}

.qr-placeholder-box {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
}

/* --- ABOUT --- */
#about { padding: 80px 0; text-align: center; }
.section-header p { font-size: 20px; color: #888; margin-bottom: 30px; }
.about-content { max-width: 700px; margin: 0 auto; }

/* --- MISSIONS --- */
#missions { padding: 80px 0; background: white; }
.mission-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.mission-row.reverse { flex-direction: row-reverse; }
.mission-row:last-child { margin-bottom: 0; }
.mission-text { flex: 1; }
.mission-img { flex: 1; }
.mission-text h3 { font-size: 28px; color: var(--primary-blue); margin-bottom: 20px; }
.mission-desc { font-size: 17px; color: #555; margin-bottom: 25px; }
.mission-list li { margin-bottom: 10px; padding-left: 20px; position: relative; color: #444; }
.mission-list li::before { content: "•"; color: var(--primary-blue); font-weight: bold; position: absolute; left: 0; }

/* --- EVENT VEVEY 2026 --- */
.gold-bg {
    background-color: #f4efe6;
    border-top: 5px solid var(--gold);
    padding: 80px 0;
}
.event-container { text-align: center; }
.event-content {
    background: white;
    padding: 50px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.event-tag {
    background: var(--gold); color: white;
    padding: 5px 15px; text-transform: uppercase;
    font-size: 12px; font-weight: bold; letter-spacing: 1px;
    border-radius: 50px; display: inline-block; margin-bottom: 20px;
}
.event-details {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}
.detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}
.detail-item strong {
    color: var(--primary-blue);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.border-sides {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

/* --- DONATION --- */
.blue-bg { background-color: var(--primary-blue); color: white; padding: 80px 0; }
.blue-bg h2, .donate-subtitle { text-align: center; color: white; }
.donate-subtitle { margin-bottom: 50px; opacity: 0.9; }
.donation-options { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.donate-card {
    background: white; 
    color: #333; 
    width: 100%;        /* UPDATE: Largeur fluide */
    max-width: 390px;   /* UPDATE: Max limité */
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.card-header-twint { background: #333; color: white; padding: 20px; text-align: center; font-weight: bold; }
.card-header-card { background: #f0f0f0; color: #333; padding: 20px; text-align: center; font-weight: bold; }
.donate-body { padding: 40px 30px; text-align: center; }
.qr-box { margin: 20px auto; width: 200px; }
.instruction { font-size: 13px; color: #888; margin-top: 10px; }
.full-width { display: block; text-align: center; margin-top: 20px; }
.contact-footer-don { text-align: center; margin-top: 30px; opacity: 0.8; font-size: 14px; }

/* --- FOOTER --- */
footer { background: #1a1a1a; color: #bbb; padding: 60px 0 20px 0; font-size: 14px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 16px; }
.footer-col a { display: block; margin-bottom: 10px; }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #666; }

/* Animations */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: 1s ease; }
.reveal-up { transform: translateY(30px); }
.visible { opacity: 1; transform: translate(0); }


/* --- RESPONSIVE (Mobile & Tablette) --- */
@media (max-width: 768px) {
    
    /* 1. Réduction des espaces */
    #hero, #about, #missions, .gold-bg, .blue-bg {
        padding: 50px 0; 
    }

    /* 2. Navigation (Menu Burger) */
    .hamburger {
        display: block; /* Afficher l'icône */
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    nav {
        position: absolute;
        left: -100%; /* Caché hors écran gauche */
        top: 100%;   /* Sous le header */
        width: 100%;
        background-color: white;
        border-top: 1px solid #eee;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    nav.active {
        left: 0; /* Apparaît à l'écran */
    }
    nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        text-align: center;
    }
    
    /* Ajustement Header */
    .nav-container { 
        /* On garde flex-row pour aligner Logo à gauche et Burger à droite */
        flex-direction: row; 
        justify-content: space-between; 
        padding: 0 20px;
    }

    /* 3. Hero Section */
    .hero-flex {
        flex-direction: column-reverse; 
        text-align: center;
        gap: 30px;
    }
    .hero-buttons {
        justify-content: center;
    }
    h1 { font-size: 32px; } /* Titre plus petit */
    
    /* 4. Missions & Events */
    .mission-row, .mission-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .mission-list li {
        display: inline-block;
        text-align: left; 
    }
    .mission-text, .mission-img { width: 100%; }

    /* Event details */
    .event-details {
        flex-direction: column;
        gap: 30px;
    }
    .border-sides {
        border: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}