/* style.css - Version FINALE "Nature & Responsive" */

/* --- 1. VARIABLES & BASE --- */
:root {
    --primary: #2e7d32;      /* Vert Feuillage */
    --primary-dark: #1b5e20; /* Vert Sapin Profond */
    --primary-light: #e8f5e9; /* Vert très pâle */
    --secondary: #D4A373;    /* Bois/Ocre */
    --text-dark: #2c3e50;    /* Gris foncé */
    --text-light: #546e7a;   /* Gris moyen */
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- 2. HEADER & NAVIGATION (Version Corrigée) --- */
header {
    background-color: var(--white);
    border-top: 5px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 20px;
    flex-wrap: wrap; /* Permet le passage à la ligne */
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

/* --- 3. HERO SECTION (Bannière) --- */
.hero {
    /* Image de fond (Placeholder montagne) */
    background: linear-gradient(rgba(20, 50, 30, 0.4), rgba(20, 50, 30, 0.2)), url('https://images.unsplash.com/photo-1519681393784-d8e5b5a4570e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 40px; /* Un peu plus d'espace */
    
    /* C'est ici que se joue la transparence : 0.5 = 50% */
    background-color: rgba(0, 0, 0, 0.5); 
    
    /* Petit effet "verre dépoli" (flou) très joli derrière le texte */
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); /* Pour que ça marche sur Safari/Mac */
    
    border-radius: 15px; /* Coins arrondis */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Fine bordure blanche subtile */
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f1f8e9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-dark);
}

/* --- 4. INTRO & FEATURES --- */
.intro {
    text-align: center;
    padding: 80px 20px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.intro h2 {
    font-size: 2.5rem;
    margin: 10px 0 20px 0;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin: 0 auto 30px auto;
}

.intro p {
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

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

.feature {
    padding: 30px;
    border-radius: 10px;
    transition: background 0.3s;
}

.feature:hover {
    background-color: var(--primary-light);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* --- 5. CARTES HÉBERGEMENT --- */
.accomodations-section {
    background-color: var(--primary-light);
    padding: 80px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-image {
    height: 250px;
    background-color: #a5d6a7;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge.secondary {
    background-color: var(--secondary);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card-content .description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.card-details {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.card-details i {
    color: var(--primary);
    margin-right: 5px;
}

.btn-card {
    margin-top: auto;
    background-color: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
}

.btn-card:hover {
    background-color: var(--primary);
    color: white;
}

/* --- 6. SECTION AMBIANCE --- */
.ambiance {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 100px 20px;
}

.ambiance .text-content {
    flex: 1;
}

.ambiance .image-content {
    flex: 1;
    height: 400px;
}

.placeholder-box {
    width: 100%;
    height: 100%;
    background-color: #c8e6c9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    border-radius: 10px;
    font-weight: bold;
}

.link-arrow {
    color: var(--primary);
    font-weight: 700;
    margin-top: 20px;
    display: inline-block;
}

.link-arrow i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.link-arrow:hover i {
    margin-left: 10px;
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding-top: 60px;
    border-top: 5px solid var(--secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #a5d6a7;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-col p {
    color: #e8f5e9;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col i {
    margin-right: 10px;
    color: var(--secondary);
}

.footer-bottom {
    background-color: #1b5e20;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #a5d6a7;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- 8. MOBILE RESPONSIVENESS (CORRIGÉ & AMÉLIORÉ) --- */

/* TABLETTES et PETITS ÉCRANS (moins de 1024px) */
@media (max-width: 1024px) {
    /* On débloque l'en-tête : il ne reste plus collé en haut, il défile avec la page */
    header {
        position: relative !important; 
        top: auto;
    }

    /* On réduit les marges */
    nav {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        margin-bottom: 10px;
        font-size: 1.4rem; /* Logo un peu plus petit */
    }

    /* Menu : on centre tout */
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 15px;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* SMARTPHONES (moins de 600px) */
@media (max-width: 600px) {
    
    /* 1. Menu Vertical */
    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 10px;
    }
    
    .btn-nav {
        display: inline-block;
        width: 100%;
    }
    
    /* 2. Titres plus petits pour ne pas manger l'écran */
    .hero h1 {
        font-size: 1.8rem; 
        padding: 0 10px;
    }
    
    /* 3. CORRECTION DES TABLEAUX (Scroll Horizontal) */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto; /* Active le défilement horizontal */
        -webkit-overflow-scrolling: touch; /* Fluidité sur iPhone */
        margin-bottom: 20px;
        border: 1px solid #eee; /* Cadre pour voir les limites */
    }

    /* On force le tableau à être large, ce qui oblige le conteneur à scroller */
    .pricing-table {
        min-width: 600px; 
    }
    
    /* Petite astuce : on réduit la taille du texte dans les tableaux sur mobile */
    .pricing-table th, .pricing-table td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }

    /* 4. Images et blocs */
    .ambiance, .intro {
        padding: 40px 15px;
    }

    .ambiance {
        flex-direction: column;
    }
    
    .ambiance .image-content {
        width: 100%;
        height: 250px;
    }
}

/* --- 9. STYLE POUR LA PAGE FAQ --- */
.faq-item {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: #fff;
    list-style: none; /* Cache la flèche par défaut */
    position: relative;
}

/* Petite astuce pour ajouter une icône + ou - */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+'; 
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item[open] summary {
    border-bottom: 1px solid #f0f0f0;
    background-color: var(--primary-light);
}

.faq-content {
    padding: 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 10. STYLE GALERIE PHOTOS & DETAILS --- */

/* Grille de photos moderne */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* S'adapte auto */
    gap: 15px;
    margin: 40px 0;
}

.gallery-item {
    height: 200px; /* Hauteur fixe pour aligner tout le monde */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Coupe l'image proprement pour remplir le cadre */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Bloc détails (Cuisine, Couchage...) */
.details-block {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
}

.details-block h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.details-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.details-list li::before {
    content: "•"; /* Puce personnalisée */
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- 11. STYLE TABLEAUX TARIFS & CALENDRIER --- */

/* Conteneur pour que le tableau scrolle sur mobile sans casser le site */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    min-width: 500px; /* Force une largeur min pour lisibilité */
}

.pricing-table th {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.pricing-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.pricing-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Une ligne sur deux grisée */
}

.pricing-table tr:hover {
    background-color: var(--primary-light); /* Effet au survol */
}

.price-tag {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* Bloc d'information (Inclus / Non inclus) */
.info-box {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.info-box h4 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.check-list li { margin-bottom: 8px; }
.check-list i { margin-right: 10px; }
.fa-check { color: var(--primary); }
.fa-plus { color: var(--secondary); }

/* Calendrier Responsive */
.calendar-container {
    position: relative;
    padding-bottom: 75%; /* Ratio hauteur/largeur */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Citation engagement */
.quote-box {
    text-align: center;
    font-style: italic;
    background-color: var(--primary-light);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    color: var(--primary-dark);
    font-weight: 600;
}

/* --- 12. STYLE LISTES A PUCES (FEUILLES) --- */

/* Classe à utiliser pour les listes "Nature" */
.leaf-list {
    list-style: none; /* On enlève la puce standard (rond noir) */
    padding-left: 0;
    margin: 20px 0;
}

.leaf-list li {
    position: relative;
    padding-left: 30px; /* Espace pour l'icône */
    margin-bottom: 10px; /* Espace entre les lignes */
    line-height: 1.6;
}

/* Ajout automatique de la feuille devant chaque ligne */
.leaf-list li::before {
    content: "\f06c"; /* Code de la feuille dans FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary); /* Votre couleur verte */
    position: absolute;
    left: 0;
    top: 2px; /* Ajustement hauteur */
    font-size: 1rem;
}