/* --- VARIABLES DE COULEURS --- */
:root {
    --vert-profond: #2c4c3b;
    --vert-clair: #4a7c59;
    --beige-nature: #f9f6f0;
    --marron-bois: #6d4c41;
    --texte-sombre: #333333;
    --blanc: #ffffff;
}

/* --- BASE --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--beige-nature);
    color: var(--texte-sombre);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- EN-TÊTE (HEADER) --- */
header {
    background-color: var(--vert-profond);
    color: var(--blanc);
    padding: 15px 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu a:hover {
    color: #c8d6b9;
}

.lang-selector span {
    cursor: pointer;
}

.lang-selector span:hover {
    font-weight: bold;
}

/* --- SECTION HERO (Accueil) --- */
/* --- SECTION HERO (Accueil avec image de fond) --- */
/* --- SECTION HERO (Accueil avec image de fond) --- */
.hero-section {
    position: relative;
    overflow: hidden; /* Empêche l'image de déborder de la section pendant le zoom */
    color: var(--blanc);
    text-align: center;
    padding: 120px 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 1; /* Assure que le contenu reste au-dessus de l'animation */
}

/* Calque d'arrière-plan contenant l'image */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Assure-toi que le nom du fichier correspond exactement à ton dossier img */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/photo_maison.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1; /* Place l'image derrière le texte et le formulaire */
    animation: zoomHero 12s infinite alternate ease-in-out; /* Animation très lente (25s) en aller-retour */
}

/* Définition du mouvement de l'image */
@keyframes zoomHero {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); } /* Zoom de 10% pour un effet naturel et immersif */
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2em;
    font-style: italic;
}

/* --- SECTION PICTOGRAMMES --- */
.amenities-tourisme {
    padding: 50px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pictogram-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.picto-item {
    background: var(--blanc);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.picto-item h3 {
    color: var(--vert-profond);
    margin-top: 0;
}

.attention-block {
    border-color: #d9534f;
    background-color: #fffaf9;
}

/* --- PIED DE PAGE (FOOTER) --- */
footer {
    background-color: var(--marron-bois);
    color: var(--blanc);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* --- PAGE MENTIONS LÉGALES --- */
.legal-page {
    padding: 40px 20px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--blanc);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-container h1 {
    color: var(--vert-profond);
    border-bottom: 2px solid var(--vert-clair);
    padding-bottom: 10px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: var(--marron-bois);
}

.legal-section ul {
    line-height: 1.6;
}

/* --- SECTION TARIFS --- */
.rates-section {
    padding: 50px 20px;
    text-align: center;
    background-color: var(--blanc);
}

.rates-section h2 {
    color: var(--vert-profond);
    margin-bottom: 30px;
}

.table-container {
    max-width: 600px;
    margin: 0 auto;
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rates-table th {
    background-color: var(--vert-clair);
    color: var(--blanc);
    padding: 15px;
    font-weight: bold;
}

.rates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--texte-sombre);
}

.rates-table tbody tr:hover {
    background-color: #f9f9f9;
}

.rates-table tbody tr:nth-child(even) {
    background-color: var(--beige-nature);
}

/* Taille de l'image du logo dans le menu */
.logo-img {
    height: 100px; /* Tu peux augmenter ou réduire ce chiffre selon tes préférences */
    width: auto;
    vertical-align: middle;
}

/* --- BARRE DE RÉSERVATION --- */
.booking-bar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 8px;
    margin: 40px auto 0 auto;
    max-width: 900px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: var(--texte-sombre);
}

.booking-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 120px;
}

.form-group label {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--vert-profond);
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.btn-reserver {
    background-color: var(--marron-bois);
    color: var(--blanc);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 43px; /* Pour s'aligner avec les champs de texte */
}

.btn-reserver:hover {
    background-color: var(--vert-profond);
}

/* --- SECTION ECO-TOURISME --- */
.eco-section {
    background-color: var(--beige-nature);
    padding: 40px 20px;
    border-top: 2px solid var(--vert-clair);
}

.eco-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.eco-item {
    text-align: center;
    width: 120px;
    color: var(--vert-profond);
    font-size: 0.9em;
    font-weight: bold;
}

.eco-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* --- STYLES DU MENU (ORDINATEUR) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--vert-profond);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white; /* ou var(--blanc) */
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Bouton Réserver dans le menu */
.btn-reserver-menu {
    background-color: var(--marron-bois);
    padding: 8px 15px;
    border-radius: 4px;
    color: white !important;
}

/* --- BOUTON DU FORMULAIRE DE RÉSERVATION --- */
.booking-form button[type="submit"] {
    background-color: var(--marron-bois);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    -webkit-appearance: none; /* Empêche les iPhones de mettre leur style bleu par défaut */
}

/* --- SIGNATURE VISUELLE VILLA TERRA CARIBEA --- */
.titre-marque {
    text-align: center;
    font-family: 'Georgia', serif; /* Police élégante pour le côté haut de gamme */
    font-size: 4.5em; /* Très grand pour accrocher le regard */
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6); /* Ombre forte pour détacher le texte de la photo */
}

.titre-marque .mot-villa {
    display: block;
    font-family: sans-serif;
    font-size: 0.25em;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: #f9f6f0; /* Blanc cassé */
    margin-bottom: 5px;
    margin-left: 12px; /* Centre parfaitement malgré l'espacement des lettres */
}

.titre-marque .mot-terra {
    color: #a8d08d; /* Vert feuillage lumineux */
}

.titre-marque .mot-caribea {
    color: #dda15e; /* Marron/doré éclatant */
}



/* Adaptation pour les téléphones portables */
@media (max-width: 768px) {
    .booking-form {
        flex-direction: column;
    }
    .form-group, .btn-reserver {
        width: 100%;
    }

    .main-header {
        flex-direction: column; /* Empile le logo au-dessus du menu */
        padding: 15px;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap; /* Autorise le menu à passer à la ligne */
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
    }
    
    .nav-menu a {
        font-size: 0.9em; /* Réduit un peu la taille du texte sur mobile */
    }
    
    /* Optionnel : cacher les textes longs du menu sur très petit écran pour ne garder que l'essentiel */
    
    .nav-menu li:nth-child(2), .nav-menu li:nth-child(3), .nav-menu li:nth-child(4) {
        display: none; 
    }
    
.titre-marque { 
        font-size: 3em; 
        margin-top: 20px;
    }

}