/* =========================================
   1. VARIABLES & CONFIGURATION GÉNÉRALE
   ========================================= */
:root {
    /* Palette Moderne "Nature & Chic" */
    --primary-color: #4a6c56;       /* Vert Sauge Profond */
    --secondary-color: #2c2c2c;     /* Noir Anthracite adouci */
    --accent-color: #c47c5d;        /* Terre Cuite (Boutons/Actions) */
    --bg-color: #fdfbf7;            /* Beige Coquille d'œuf (Fond) */
    --white: #ffffff;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    line-height: 1.6;
    /* L'animation d'ouverture douce */
    animation: fadeInPage 1s ease-out;
}

/* Typographie Élégante pour les titres */
h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* --- Réglage de la taille du Logo --- */
/* --- Réglage du Logo et de sa couleur --- */
.logo a {
    display: flex; /* Aligne l'image et le texte */
    align-items: center; 
    
    /* C'est ici que l'on force le BLANC */
    color: white !important; 
    
    text-decoration: none; /* Pas de soulignement */
}

/* Sécurité supplémentaire : même si le lien est visité, il reste blanc */
.logo a:visited {
    color: white !important;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    border-radius: 4px;
}

.logo img {
    height: 50px; /* Hauteur fixe pour que le menu reste propre */
    width: auto;
    margin-right: 15px;
    border-radius: 4px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-nav {
    background: var(--accent-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 2px;
    font-weight: bold;
}

.btn-nav:hover {
    background: #a86244;
}

/* =========================================
   3. HERO (BANNIÈRE PRINCIPALE)
   ========================================= */
/* --- HERO (BANNIÈRE) MODIFIÉ --- */
.hero {
    /* Un voile plus léger et une position bien centrée */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%), 
                      url('gitelafromvuensemble.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* On force une couleur de fond au cas où l'image met du temps à charger */
    background-color: #4a6c56; 
    
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    color: var(--white);
    padding-bottom: 80px;
}

/* On s'assure que le contenu ne touche pas les bords sur mobile */
.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    /* On réduit la taille pour que ça tienne sur une ligne */
    font-size: 2.5rem; 
    
    margin-bottom: 15px;
    
    /* Ombre un peu plus marquée pour la lisibilité sur la photo */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    
    /* Empêche l'espacement trop grand entre les lignes si jamais ça passe sur 2 lignes sur mobile */
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* =========================================
   4. BOUTONS MODERNES
   ========================================= */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    border-radius: 2px; /* Coins plus carrés "Architecte" */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Bouton Principal (Terre Cuite) */
.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 30px;
}

.btn-primary:hover {
    background: #a86244;
    transform: translateY(-2px);
}

/* Bouton Secondaire (Sauge Foncée) */
.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background: #365240;
    transform: translateY(-2px);
}

/* Bouton Contour (Outline) */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
}

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

/* =========================================
   5. SECTIONS & GRILLES
   ========================================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

.bg-light {
    background: #f4f7f6; /* Léger gris pour alterner */
}

/* Titres de sections */
.container h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Grille des Gîtes (Page Accueil) */
.gites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gite-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gite-card:hover {
    transform: translateY(-5px);
}

.gite-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.capacity {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.amenities {
    list-style: none;
    margin: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.price-block {
    margin-top: auto;
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: bold;
}

.price-block small {
    font-size: 0.9rem;
    color: #888;
    font-weight: normal;
}

/* --- Features (Les Atouts) - CORRIGÉ --- */
.features {
    padding: 80px 20px;
    background-color: white;
}

.features h2 {
    margin-bottom: 50px;
    color: #4a6c56; /* Vert Sauge */
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* La carte individuelle */
.feature-card {
    background: white;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    /* Bordure grise par défaut */
    border: 2px solid #f0f0f0; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* C'est ici que se joue la bordure verte au survol */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    /* On force la bordure verte */
    border-color: #4a6c56 !important; 
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #f4f7f6;
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4a6c56;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c2c2c;
}

/* C'est ici que se joue la couleur Terre Cuite */
.highlight-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; /* Un peu plus gros */
    font-weight: bold;
    /* On force la couleur Terre Cuite */
    color: #c47c5d !important; 
    margin-bottom: 15px;
    display: block;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* --- Offre Combo --- */
.combo-offer {
    margin-top: 60px;
    background: #eff5f2; /* Vert très pâle */
    border: 2px dashed var(--primary-color);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

/* =========================================
   6. FORMULAIRE & FOOTER
   ========================================= */
.contact-section {
    background: var(--white);
    border-top: 1px solid #ddd;
}

.booking-form {
    max-width: 600px;
    margin: 30px auto;
}

.booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.booking-form input, .booking-form select, .booking-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    background: #fafafa;
}

.booking-form button {
    width: 100%;
}

footer {
    background: var(--secondary-color);
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
}

/* =========================================
   7. PAGE DÉTAIL & GALERIE MOSAÏQUE
   ========================================= */

/* Bannière principale page détail */
.main-banner-img {
    width: 100%;
    height: auto;
    max-height: 550px; /* Limite la hauteur sur grand écran */
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Grille Mosaïque Moderne */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    filter: brightness(1.05);
}

/* =========================================
   8. LIGHTBOX (ZOOM PHOTO) & ANIMATIONS
   ========================================= */

/* Le fond noir */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000;
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.92);
    backdrop-filter: blur(5px); /* Effet flou derrière */
}

/* L'image zoomée */
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.9); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

/* Bouton Fermer */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--accent-color);
}

/* Animation d'ouverture de page */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Mobile */
@media only screen and (max-width: 700px){
    .lightbox-content { width: 95%; }
    .hero h1 { font-size: 2.2rem; }
}
/* --- Bloc Équipements (Liste détaillée) --- */
.amenities-block {
    margin-top: 60px;
    background-color: #f9f9f9; /* Fond gris très léger */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.amenities-block h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.amenities-block p {
    text-align: center;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.amenity-category {
    flex: 1;
    min-width: 300px; /* Pour que ça passe bien sur mobile */
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.amenity-category h4 {
    color: var(--accent-color); /* Terre Cuite */
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.amenity-category ul {
    list-style: none; /* Enlève les points noirs moches */
    padding: 0;
}

.amenity-category li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

/* Si vous voulez changer l'émoji ✅ par autre chose, c'est ici, 
   mais l'émoji dans le HTML est le plus simple ! */
   /* --- FAQ Section --- */
.faq-section {
    padding: 60px 20px;
    background-color: #fff;
}

.faq-container {
    max-width: 800px; /* On limite la largeur pour que ce soit facile à lire */
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0; /* Caché par défaut */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* L'icône + qui tourne */
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

/* Classe active (ajoutée par le Javascript quand on clique) */
.faq-item.active .faq-answer {
    max-height: 200px; /* Assez grand pour afficher le texte */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Le + devient une croix x */
}
/* --- Correction Formulaire --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

/* Crée une ligne flexible */
.form-row {
    display: flex;
    gap: 20px; /* Espace entre les colonnes */
    margin-bottom: 20px;
}

/* Chaque groupe d'input prend la moitié de la place */
.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sur mobile, on empile tout */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Style des champs */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

/* Style spécifique pour la zone de prix */
.price-display {
    justify-content: center; /* Centre verticalement */
}

#total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color); /* Terre Cuite */
    min-height: 20px; /* Garde la place même si vide */
}
/* --- Section Localisation --- */
.location-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center; /* Centre verticalement */
}

.location-info {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.location-info p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.map-container {
    flex: 1.5; /* La carte prend plus de place que le texte */
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden; /* Pour que les coins arrondis de l'iframe soient visibles */
}

@media (max-width: 768px) {
    .location-grid {
        flex-direction: column-reverse; /* Sur mobile, on met la carte au-dessus ou en dessous */
    }
}
/* --- Section Avis Clients --- */
.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.review-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-color); /* Petite touche de couleur en haut */
    text-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px); /* Monte légèrement au survol */
}

.stars {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}
/* =========================================
   VERSION MOBILE (Pour téléphones et tablettes)
   ========================================= */
@media (max-width: 768px) {

    /* --- 1. Correction du Menu (Header) --- */
    header .container {
        flex-direction: column; /* On empile le Logo au-dessus, le Menu en dessous */
        text-align: center;     /* On centre tout */
        padding: 15px;
    }

    nav {
        margin-top: 15px;       /* Petit espace entre logo et menu */
        width: 100%;
    }

    nav ul {
        justify-content: center; /* Centre les liens */
        flex-wrap: wrap;         /* Si ça dépasse, ça passe à la ligne */
        padding: 0;
    }

    nav ul li {
        margin: 5px 10px;        /* Espacement pour que les gros doigts puissent cliquer */
    }

    /* --- 2. Correction Carte et Contact --- */
    .location-grid {
        flex-direction: column-reverse; /* Met la carte en dessous ou au dessus, empilés */
        display: flex;
    }

    .location-info, 
    .map-container {
        width: 100% !important;  /* Force la largeur à 100% de l'écran */
        min-width: 0;            /* Règle un bug d'affichage flexbox */
        margin-bottom: 20px;
    }

    .map-container iframe {
        width: 100% !important;  /* La carte ne doit jamais dépasser l'écran */
    }

    /* --- 3. Ajustements généraux --- */
    .container {
        padding: 0 20px; /* Garde une petite marge sur les bords de l'écran */
    }
    
    h1 { font-size: 2rem; } /* Réduit un peu le titre principal */
}
/* --- Footer --- */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}
.footer-link {
    color: #666; /* Ou la couleur de vos autres liens */
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 15px; /* Pour l'écarter un peu du lien précédent */
}

.footer-link:hover {
    text-decoration: underline;
}

/* Logos paiement footer : ANCV, Mastercard, Stripe */
.footer-paiement-texte {
    margin: 16px 0 4px;
    font-size: 0.9rem;
    color: #bbb;
}

.footer-paiement-texte:first-of-type {
    margin-top: 16px;
}

.footer-paiement-texte--solde {
    margin-bottom: 10px;
}

.footer-paiement {
    margin: 0 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-paiement-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.footer-paiement a.footer-paiement-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.footer-logo-paiement {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
    display: block;
}

@media (max-width: 768px) {
    .footer-paiement {
        gap: 14px;
    }
    .footer-paiement-item {
        padding: 6px 12px;
    }
    .footer-logo-paiement {
        height: 30px;
        max-width: 100px;
    }
}