/* Variables CSS */
:root {
    --primary-color: #4CAF50; /* Vert forêt */
    --secondary-color: #FF9800; /* Orange vif */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-light: #f9f9f9;
    --background-dark: #2c3e50; /* Bleu foncé */
    --header-font: 'Merriweather', serif;
    --body-font: 'Open Sans', sans-serif;
    --padding-section: 60px 20px;
}

/* Styles généraux */
body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--header-font);
    color: var(--text-color);
    margin-bottom: 20px;
}

h1 { font-size: 3em; text-align: center; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--padding-section);
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative; /* Important pour le positionnement absolu de l'image */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    overflow: hidden; /* Pour s'assurer que l'image ne déborde pas */
}

/* Style de l'image de fond ajoutée via HTML */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre toute la zone */
    z-index: -1; /* Met l'image derrière le contenu */
    opacity: 0.8; /* Rend l'image légèrement transparente pour la lisibilité */
    filter: brightness(0.8); /* Assombrit légèrement l'image */
}


.hero-content {
    z-index: 1; /* Assure que le contenu est au-dessus de l'image */
    text-align: center;
    position: relative; /* Pour que le contenu soit empilé au-dessus de l'image de fond */
    padding: 20px; /* Ajoute un peu de padding pour éviter que le texte ne colle aux bords */
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.hero blockquote {
    font-size: 1.5em;
    font-style: italic;
    margin: 0;
    padding: 0;
    color: var(--light-text-color);
}

.hero .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Technical Info */
.technical-info {
    background-color: var(--background-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: var(--padding-section);
}

.path-block {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    text-align: left;
    transition: transform 0.3s ease;
}

.path-block:hover {
    transform: translateY(-10px);
}

.path-block h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8em;
}

.path-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.path-block ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.path-block ul li strong {
    color: var(--secondary-color);
}

/* Image Carrousel */
.image-carousel {
    position: relative;
}

/* General Presentation */
.general-presentation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
    padding: var(--padding-section);
}

.general-presentation .image-wrapper {
    flex: 1;
    min-width: 300px;
}

.general-presentation img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.general-presentation .text-content {
    flex: 2;
}

.general-presentation h2 {
    color: var(--primary-color);
}

/* Refuge Info */
.refuge-info {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: var(--padding-section);
}

.refuge-info h2 {
    color: var(--secondary-color);
}

.refuge-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.detail-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-item img { /* Placeholder for icons */
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.detail-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: var(--secondary-color);
}

/* Winter Variant */
.winter-variant {
    background-color: #BBDEFB; /* Light blue for winter */
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.winter-variant .icon {
    font-size: 3em; /* Use an actual snowflake icon or image */
    color: #2196F3; /* Blue for snowflake */
}

.winter-variant p {
    font-size: 1.2em;
    margin: 0;
    color: #3F51B5; /* Darker blue text */
}

/* Interactive Map */
.map-section {
    padding: var(--padding-section);
}

#mapid {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* Access and Parking */
.access-parking {
    background-color: var(--background-light);
    padding: var(--padding-section);
}

.access-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 280px;
    max-width: 45%;
}

.access-item img { /* Placeholder for icons */
    width: 30px;
    height: 30px;
}

.access-item p {
    margin: 0;
    font-size: 1.1em;
}

/* Tips for Walkers */
.tips-section {
    background-color: #FFF3E0; /* Light orange background */
    padding: var(--padding-section);
    border-left: 8px solid var(--secondary-color);
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
    border-radius: 10px;
}

.tips-section h2 {
    color: var(--secondary-color);
    text-align: center;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.tips-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1em;
}

.tips-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Fauna & Flora */
.fauna-flora {
    padding: var(--padding-section);
    background-color: var(--background-light);
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.species-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.species-item img { /* Placeholder for icons */
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.species-item p {
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

/* Contact & Useful Info */
.contact-info {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: var(--padding-section);
}

.contact-info h2 {
    color: var(--secondary-color);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    text-align: center;
}

.contact-item h3 {
    color: var(--light-text-color);
    margin-top: 0;
}

/* Final CTA */
.final-cta {
    background-color: var(--primary-color);
    padding: var(--padding-section);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
}

.final-cta h2 {
    color: var(--light-text-color);
    margin-bottom: 30px;
}

.final-cta .cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.final-cta .cta-button {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.final-cta .cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero blockquote {
        font-size: 1.2em;
    }

    .technical-info, .general-presentation, .refuge-details, .access-details, .contact-details {
        flex-direction: column;
        gap: 20px;
    }

    .path-block, .general-presentation .image-wrapper, .general-presentation .text-content,
    .detail-item, .access-item, .contact-item {
        max-width: 100%;
        min-width: unset;
        flex: none;
    }

    .general-presentation {
        flex-direction: column;
    }

    .general-presentation .image-wrapper {
        order: -1; /* Image appears above text on mobile */
    }

    .winter-variant {
        flex-direction: column;
        text-align: center;
    }

    .winter-variant .icon {
        margin-bottom: 15px;
    }

    .species-grid {
        grid-template-columns: 1fr;
    }

    .tips-section {
        margin: 20px;
    }

    .final-cta .cta-group {
        flex-direction: column;
    }

    /* Image Carousel (Swiper) */
.image-carousel {
    padding: var(--padding-section);
    background-color: var(--background-light);
}

.swiper-container {
    width: 100%;
    height: 400px;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    font-weight: bold;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* Gallery Section */
.gallery-section {
    padding: var(--padding-section);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-grid a:hover {
    transform: scale(1.05);
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
}

}
