/* =========================================
   1. CONFIGURATION & VARIABLES
   ========================================= */
:root {
    --primary-color: #005f8d;      /* Ton bleu historique */
    --secondary-color: #004a70;    /* Bleu plus foncé pour le survol */
    --accent-color: #eaf6ff;       /* Bleu très clair pour les fonds */
    --text-color: #333333;         /* Gris foncé pour le texte */
    --bg-color: #f9f9f9;           /* Fond de page très léger */
    --font-title: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

/* --- RÈGLES GLOBALES & SÉCURITÉ MOBILE --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
}

    body { padding-top: 60px; }

/* =========================================
   2. NAVIGATION (MENU)
   ========================================= */
nav {
    background: var(--primary-color);
    height: 60px;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* =========================================
   MENU LANGUES (DROPDOWN)
   ========================================= */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn img {
    width: 25px;
    height: auto;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.2s;
}

.dropbtn .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0; 
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    top: 100%; 
}

.dropdown-content a {
    color: #333 !important; 
    padding: 12px 16px;
    text-decoration: none;
    display: flex !important; 
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-content a img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color) !important;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}

.language-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

/* =========================================
   3. HEADER & HERO
   ========================================= */
header.header-principal {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), 
                url('images/banniere/vue-balcon-2.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 20px;
    height: 85vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Header 2 (Pages internes) - Version Flexible */
header.header2 {
    background: url('images/banniere/vue-balcon-2.webp') no-repeat center center;
    background-size: cover;
    color: white;
    
    /* Hauteur flexible */
    height: auto;          
    min-height: 200px;     
    padding: 40px 20px;    
    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.star-classification img {
    width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

header h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

header h3, header h2 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* =========================================
   4. LAYOUT GÉNÉRAL
   ========================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    background: white;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    width: auto;
}

section h2 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.text-block { flex: 1; }
.image-block { flex: 1; text-align: center; }
.image-block img { max-width: 100%; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.signature {
    text-align: center;
    font-family: var(--font-title);
    font-style: italic;
    margin-top: 20px;
    font-size: 1.2rem;
}

/* =========================================
   5. RESPONSIVE (MOBILE & TABLETTE)
   ========================================= */
@media (max-width: 768px) {
    /* Header Principal Mobile */
    header.header-principal {
        height: 60vh;
        background-attachment: scroll;
    }
    
    /* Header 2 (Pages) Mobile - CORRECTION TAILLE */
    header.header2 {
        min-height: 160px;
        padding: 30px 15px;
    }
    
    /* On réduit la taille des titres sur mobile pour qu'ils tiennent */
    header h1, header.header2 h1 { 
        font-size: 2rem; /* Plus petit */
        margin-bottom: 10px;
    }
    
    header h3, header h2, header.header2 h2 { 
        font-size: 1.1rem; /* Plus petit */
        padding: 0 10px;
    }
    
    /* Navigation Mobile */
    nav { padding: 0 20px; }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }

    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }

    nav ul.active { display: flex; }
    nav ul li { margin: 10px 0; }
    
    /* Drapeaux Mobile */
    .language-dropdown {
        position: absolute;
        right: 20px; 
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 1100;
    }
    
    .dropdown-content {
        right: 0;
        left: auto;
        min-width: 150px;
    }

    .content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .text-block { text-align: justify; }
}

/* =========================================
   ÉQUIPEMENTS
   ========================================= */
.equipements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 40px; 
    margin: 30px 0;
}

.equipement-card {
    background: white;
    padding: 15px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; 
}

.equipement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.equipement-icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px; 
    flex-shrink: 0; 
}

.equipement-icon-wrapper i {
    color: var(--primary-color);
    font-size: 18px;
}

.equipement-card h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.05rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.equipement-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1; 
}

section.transparent-section {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

/* =========================================
   PAGES SPÉCIFIQUES
   ========================================= */
.room {
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box; 
}

.room-content {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.room-content.reverse { flex-direction: row-reverse; }

.room-text { width: 50%; text-align: justify; }
.room-text h2 { text-align: left; margin-top: 0; }

.room-image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.room-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 50%;
}

.room-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.room-image.small { width: 25%; margin: 0 auto; display: block; }
.room-image.extra-small { width: 15%; margin: 0 auto; display: block; }

@media (max-width: 768px) {
    .room-content, .room-content.reverse {
        flex-direction: column;
        text-align: center;
    }
    .room-text { width: 100%; margin-bottom: 20px; }
    .room-text h2 { text-align: center; }
    .room-image, .room-images { width: 100%; max-width: 500px; margin: 0 auto; }
    .room-image.small, .room-image.extra-small { width: 50%; }
}

/* =========================================
   ACTIVITÉS V2
   ========================================= */
.activity-infos {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.transport-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    margin-right: auto;
    margin-bottom: 5px;
}

.t-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f4f4f4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #444;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    font-weight: 600;
}

.t-badge i { color: var(--primary-color); font-size: 1rem; }

.btn-activity {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-website {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid transparent;
}
.btn-website:hover {
    background-color: #d4ebfc;
    border-color: var(--primary-color);
}

.btn-maps {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-maps:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .activity-infos {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .transport-options { margin-right: 0; justify-content: center; width: 100%; }
    .btn-activity { justify-content: center; width: 100%; }
}

/* =========================================
   TÉMOIGNAGES
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px; 
}

.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: "“";
    font-family: serif;
    font-size: 80px;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.5;
    line-height: 1;
    pointer-events: none;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 1.1rem;
}

.testimonial-date { font-size: 0.85rem; color: #888; margin-left: 10px; }
.stars { color: #ffc107; font-size: 1rem; margin-bottom: 15px; position: relative; z-index: 1; }

.testimonial-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    margin: 0;
}

.airbnb-link-wrapper { text-align: center; margin-top: 0; padding-bottom: 20px; clear: both; }

.btn-airbnb-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FF5A5F;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}

.btn-airbnb-review:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3); color: white; }

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; margin-bottom: 40px; }
}

/* =========================================
   FOOTER MODERNE
   ========================================= */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
    font-family: var(--font-body);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-col h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-col p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-col p a { color: #e0e0e0; text-decoration: none; transition: color 0.2s; }

.footer-col > a {
    display: block;
    margin-bottom: 10px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover { color: white; text-decoration: underline; }
.footer-col > a:hover { padding-left: 5px; }
.footer-col i { width: 20px; color: var(--accent-color); text-align: center; flex-shrink: 0; }

.footer-airbnb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    color: white !important;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.footer-airbnb:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); text-decoration: none !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-content { text-align: center; }
    .footer-col p { justify-content: center; }
    .footer-airbnb { width: 100%; justify-content: center; }
}

/* --- Formulaire Contact & Calendrier --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.contact-form .form-group { margin-bottom: 15px; text-align: left; }
.contact-form label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--primary-color); text-align: left; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box;
}
.contact-form .btn-submit {
    display: inline-block; background: var(--primary-color); color: #fff; padding: 10px 20px;
    border: none; border-radius: 5px; cursor: pointer; transition: background 0.3s ease;
}
.contact-form .btn-submit:hover { background: var(--secondary-color); }

#calendar {
    margin: 20px auto; max-width: 800px; background: white; border: 1px solid #ddd;
    border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 20px; min-height: 600px;
}
.fc-toolbar h2 { font-size: 1.5em; color: var(--primary-color); }
.fc-button { background: var(--primary-color); color: white; border: none; }
.fc-button:hover { background: var(--secondary-color); }
.fc-day.fc-today { background: var(--accent-color); border-color: var(--primary-color); }
.fc-event { background: var(--primary-color); border: none; }

.airbnb-card {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  margin: 20px auto;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #fff;
  transition: transform 0.2s ease;
}
.airbnb-card:hover { transform: scale(1.02); }
.airbnb-img { width: 100%; height: 200px; background-size: cover; background-position: center; }
.airbnb-info { padding: 1.5em; color: #111; text-align: left; }
.airbnb-info h3 { font-family: 'Lato', sans-serif; font-size: 1.2em; margin: 0 0 0.5em; color: #333; }
.airbnb-info p { font-family: 'Lato', sans-serif; font-size: 0.95em; margin: 0 0 1.5em; color: #666; }
.airbnb-info .btn-airbnb { display: block; text-align: center; background-color: #FF5A5F; color: white; padding: 10px 20px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1em; width: auto; }
.airbnb-info .btn-airbnb:hover { background-color: #e0484d; }
@media (max-width: 500px) { .airbnb-card { max-width: 100%; } .airbnb-img { height: 180px; } }