/* ==========================================================================
   1. CONFIGURATION DE BASE ET TYPOGRAPHIE
   ========================================================================== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fdfdfd;
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
}

h1 { font-size: 2.8rem; margin-bottom: 30px; }

/* ==========================================================================
   2. NAVIGATION (HEADER & MENU)
   ========================================================================== */
.navbar {
    background-color: #2c3e50;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.stack-layout {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.header-logo-big {
    height: 100px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.site-title-big {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.5rem;
    font-style: italic;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(39, 174, 96, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 15px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-links li a:hover:not(.nav-btn-don) {
    color: #27ae60;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-btn-don {
    background: #27ae60;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-btn-don:hover {
    background: #219150;
    transform: scale(1.05);
}

/* ==========================================================================
   3. BANDEAUX HERO (COMMUN)
   ========================================================================== */
.page-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 80px 20px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.page-hero-content h1 {
    font-size: 3.5rem;
    color: white;
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* ==========================================================================
   4. GALERIES, CARTES ET PHOTOS (VOS SYSTÈMES DE ZOOM)
   ========================================================================== */
.photo-membre {
    width: 70px; height: 70px; border-radius: 50%;
    object-fit: cover; border: 2px solid #27ae60;
}

.photo-wrapper {
    position: relative;
    width: 70px; height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #27ae60;
}

.photo-wrapper img {
    width: 100% !important; height: 100% !important;
    object-fit: cover; display: block;
    transition: opacity 0.3s ease;
}

.img-survol {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
}

.photo-wrapper:hover .img-survol { opacity: 1; }
.photo-wrapper:hover .img-original { opacity: 0; }

.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center; align-items: center;
    cursor: zoom-out;
}

.overlay.active { display: flex; }

.overlay img {
    max-width: 90%; max-height: 85%;
    border: 3px solid white; border-radius: 10px;
}

/* ==========================================================================
   5. PAGE CONTACT (RÉÉCRITURE COMPLÈTE)
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

.contact-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: left; /* Aligné à gauche pour le confort de lecture */
}

.contact-form h3 {
    text-align: left;
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 3px solid #f1c40f;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

.contact-form .form-group input, 
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: border-color 0.3s;
}

.contact-form .form-group input:focus, 
.contact-form .form-group textarea:focus {
    border-color: #27ae60;
    outline: none;
    background-color: #fff;
}

.contact-form .btn-submit {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form .btn-submit:hover { background-color: #219150; }

/* Messages de confirmation Contact */
.success-msg { background: #eafaf1; color: #27ae60; padding: 15px; border-radius: 8px; border: 1px solid #27ae60; margin-bottom: 20px; text-align: center;}
.error-msg { background: #fdf2f2; color: #e74c3c; padding: 15px; border-radius: 8px; border: 1px solid #e74c3c; margin-bottom: 20px; text-align: center;}

/* ==========================================================================
   6. PAGE DEVENIR MEMBRE (PRÉSERVER VOS BOXES)
   ========================================================================== */
.form-group-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.form-group-box h3 { text-align: left; color: #27ae60; border-bottom: 1px solid #eee; padding-bottom: 10px;}

.form-row { display: flex; gap: 15px; margin-bottom: 15px;}
.form-row input, .form-group-box select { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
    position: relative;
    background: url('/donekker/assets/img/footer-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 40px 20px; /* Un peu moins de padding pour plus de finesse */
    color: white;
    text-align: center;
    margin-top: 50px;
    overflow: hidden;
}

footer::before {
    content: ''; 
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(139, 0, 0, 0.85); 
    z-index: 0;
}

.footer-content { 
    position: relative; 
    z-index: 1; 
}

/* LA CORRECTION EST ICI */
.footer-logo { 
    height: 80px;      /* On force la hauteur à 80px */
    width: auto;       /* Le logo garde ses proportions */
    margin-bottom: 15px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Optionnel : pour qu'il ressorte mieux */
}

footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

footer a {
    color: #f1c40f; /* On met les liens en jaune pour la visibilité */
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
    .site-title-big { font-size: 2.2rem; }
    .form-row { flex-direction: column; }
}



/* --- Index : Grille des Missions --- */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mission-card-visual {
    background: white;
    border-radius: 15px; /* L'arrondi de la carte */
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden; /* Important pour que l'image ne dépasse pas de l'arrondi */
    transition: transform 0.3s ease;
}

.mission-card-visual:hover {
    transform: translateY(-5px);
}

.mission-img-container img {
    width: 100%;
    height: 180px; /* Taille fixe pour l'homogénéité */
    object-fit: cover; /* L'image remplit la zone sans se déformer */
    cursor: zoom-in;
    display: block;
}

.mission-text {
    padding: 15px;
    text-align: center;
}

.mission-text h4 {
    margin: 0 0 10px 0;
    color: #27ae60;
}

.mission-text p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}



/* --- Index : Sections Spécifiques --- */
.engagement-box {
    background: #fdf2e9;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #d35400;
    margin: 25px 0;
}

.impact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.impact-item {
    background: #f4f9f4;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eafaf1;
}

.impact-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.quote-box {
    background: #fdf2e9;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
    border: 1px dashed #d35400;
}

.quote-box p {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #d35400;
}


/* --- Correction Dropdown Actions --- */

/* On positionne le parent pour que le sous-menu sache où s'aligner */
.nav-links li.dropdown {
    position: relative;
}

/* Le sous-menu est caché par défaut */
.nav-links .dropdown-content {
    display: none; 
    position: absolute;
    top: 100%; /* Juste en dessous du bouton Actions */
    left: 50%;
    transform: translateX(-50%); /* Pour le centrer proprement */
    background-color: #2c3e50;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 2000;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #27ae60; /* Rappel du vert DonEkKer */
}

/* On affiche le menu au survol du parent li.dropdown */
.nav-links li.dropdown:hover .dropdown-content {
    display: block;
}

/* Style des liens à l'intérieur du menu déroulant */
.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.dropdown-content li a:hover {
    background-color: #34495e;
    color: #f1c40f; /* Texte jaune au survol pour le contraste */
}

/* Petite flèche ▾ */
.dropbtn::after {
    content: '';
    margin-left: 5px;
}

/* --- Page Voyage : Grille et Galeries --- */

/* La grille qui contient les articles (Carrière, Nord, etc.) */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Les cartes d'articles */
.action-card-visual {
    background: white;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
}

.action-card-visual h3 {
    text-align: left;
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Le conteneur de la galerie (utilisé dans les cartes et en haut de page) */
.action-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* Les images miniatures */
.action-gallery img {
    width: 80px;      /* On force la petite taille */
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: zoom-in;
    transition: transform 0.2s;
    border: 1px solid #ddd;
}

.action-gallery img:hover {
    transform: scale(1.1);
    border-color: #27ae60;
}

/* Cas particulier : Les images de préparation en haut (avec texte dessous) */
.action-gallery div img {
    width: 100px; /* Un peu plus grand pour les ingrédients */
    height: 75px;
}


/* --- Page Don : Grilles d'Impact --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.impact-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-icon { font-size: 2.5rem; margin-bottom: 10px; }
.impact-amount { font-size: 2.2rem; font-weight: bold; color: #27ae60; margin-bottom: 10px; }

/* La carte mise en avant (50€) */
.highlight-card { 
    border: 2px solid #f1c40f; 
    background-color: #fffef2; 
    transform: scale(1.03);
}

/* Les jolis boutons verts arrondis */
.btn-impact {
    display: inline-block;
    background-color: #27ae60;
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    width: 80%;
    transition: background 0.3s ease;
}

.btn-impact:hover {
    background-color: #219150;
}

/* --- Modes de paiement (Virement, Chèque...) --- */
.moyen-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.moyen-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.iban-box {
    background: #2c3e50;
    color: #f1c40f;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    margin-top: 10px;
    font-size: 0.9rem;
}

.hello-asso-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}


/* --- Boutons Hero et Boutons Principaux --- */
.btn-hero {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-main {
    background-color: #27ae60;
    color: white !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-main:hover {
    background-color: #219150;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Ajustement pour la carte HelloAsso */
.hello-asso-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.hello-text {
    flex: 1;
    min-width: 280px;
}

.hello-text p {
    margin: 0;
    font-size: 1.1rem;
    color: #444;
}


/* Le bouton blanc transparent (contour) */
.btn-outline {
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Effet au survol : il se remplit de blanc et le texte devient sombre */
.btn-outline:hover {
    background-color: white;
    color: #2c3e50 !important;
    transform: translateY(-3px);
}

/* Espace entre les deux boutons dans la zone Hero */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}