/* --- Variables & Reset --- */
:root {
    --primary-color: #2c3e50; /* Bleu marine élégant */
    --secondary-color: #d35400; /* Terre cuite chaleureuse */
    --text-color: #333333;
    --bg-light: #f9f6f0; /* Beige très clair */
    --bg-white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; margin-bottom: 3rem; }

/* --- Typographie & Boutons --- */
h1, h2, h3, h4 { color: var(--primary-color); margin-bottom: 1rem; }
h1 { font-size: 3rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); color: var(--bg-white); }
h2 { font-size: 2.2rem; }

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border: 2px solid var(--secondary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary-color); font-weight: bold; }


/* --- Hero Section --- */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/vudinan.webp') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-content p { color: var(--bg-white); font-size: 1.2rem; margin-bottom: 1rem; }

/* --- Présentation --- */
#presentation {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.presentation-image img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- Équipements (Cartes) --- */
.grid-equipements {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.card {
    background: var(--bg-white); border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card h3, .card p { padding: 1rem 1.5rem; }
.card h3 { margin-bottom: 0; }

/* --- Footer --- */
footer { background-color: var(--primary-color); color: var(--bg-light); padding-top: 3rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-info h4, .footer-links h4 { color: var(--secondary-color); margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--bg-white); text-decoration: underline; }
.footer-bottom { text-align: center; padding: 1.5rem; background-color: #1a252f; border-top: 1px solid rgba(255,255,255,0.1); }

/* --- Animations (Gérées par JS) --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* --- Responsive (Mobile First Override) --- */
@media screen and (max-width: 768px) {
    #presentation { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    h1 { font-size: 2.2rem; }
    
    
}


/* --- En-têtes des sous-pages (À propos, Contact...) --- */
.page-header {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('/image/st\ cast.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px; /* Pour compenser la navbar fixe */
}

.page-header .header-content p {
    color: var(--bg-white);
    font-size: 1.2rem;
}

/* Ajustement responsive pour la grille d'histoire */
@media screen and (max-width: 768px) {
    #histoire > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
}

/* --- Page Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* Infos et Carte */
.info-list {
    list-style: none;
    margin: 2rem 0;
}

.info-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-list a {
    color: var(--secondary-color);
    font-weight: bold;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* Formulaire */
.contact-form-container {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
    background-color: var(--bg-white);
}

.form-rgpd {
    margin-top: 1rem;
    color: #777;
    text-align: justify;
    line-height: 1.4;
}

/* Responsive pour la page contact */
@media screen and (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

/* --- Page Mentions Légales --- */
.legal-content {
    max-width: 800px; /* On réduit la largeur pour faciliter la lecture */
    margin: 0 auto;
}

.legal-box h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.5rem;
}

.legal-box p, .legal-box ul {
    margin-bottom: 1rem;
    color: #555;
    text-align: justify;
}

.legal-box ul {
    padding-left: 1.5rem;
}

.legal-box li {
    margin-bottom: 0.5rem;
}


/* Styles pour la section évènements */
.events-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.event-row:last-child {
    border-bottom: none;
}

.event-row:hover {
    background-color: #fcfcfc;
}

.event-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-name {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
}

.event-name:hover {
    color: #e67e22; /* Ou votre couleur d'accentuation */
}

.event-date {
    font-size: 0.9rem;
    color: #666;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-distance {
    font-size: 0.9rem;
    color: #888;
    min-width: 100px;
}

.btn-route {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-route:hover {
    background-color: #2c3e50;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .event-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .event-meta {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
}

/* Style de la bannière fixée en bas */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; /* Gris très clair */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Petite ombre portée */
    padding: 20px;
    z-index: 9999; /* Pour qu'elle passe par-dessus le reste du site */
    display: none; /* Masquée par défaut, le JavaScript l'affichera */
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

/* Style des boutons */
.btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-accept {
    background-color: #28a745; /* Vert */
    color: white;
}

.btn-accept:hover {
    background-color: #218838;
}

.btn-decline {
    background-color: #6c757d; /* Gris */
    color: white;
}

.btn-decline:hover {
    background-color: #5a6268;
}

/* --- SECTION MERCI --- */
.merci-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.merci-texte {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.merci-texte h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.merci-texte p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Bouton de retour à l'accueil */
.btn-retour {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4A6B53; /* À adapter selon les couleurs de votre site */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-retour:hover {
    background-color: #354f3c; /* À adapter selon les couleurs de votre site */
}

/* Image 100% de la largeur */
.image-pleine-largeur {
    width: 100%;
}

.image-pleine-largeur img {
    width: 100%;
    height: auto; /* Garde les proportions de l'image */
    max-height: 60vh; /* Empêche l'image de prendre trop de place en hauteur sur les grands écrans */
    object-fit: cover; /* Coupe proprement l'image si nécessaire sans l'écraser */
    display: block;
}
