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

body {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    background: #f8f6f2;
    line-height: 1.6;
}

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


.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

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

    padding: 18px 50px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 25px rgba(0,0,0,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 100px;
    object-fit: contain;
}

.logo {
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;

    display: flex;
    align-items: center;
    gap: 8px;

    position: relative;
    padding: 6px 0;

    transition: 0.3s ease;
}

.nav-links a span {
    font-size: 24px;
    letter-spacing: 0.6px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #b08968;
}

/* Ajoute ceci à ton CSS, dans la section concernant les media queries */
.nav-links.active {
    display: flex;  /* Afficher les éléments de la nav */
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    z-index: 999;
}

.btn-reserver {
    background: linear-gradient(135deg, #b08968, #8f6a4e);
    color: white;

    padding: 10px 20px;
    border-radius: 8px;

    font-weight: 500;
    letter-spacing: 0.5px;

    transition: 0.3s ease;
}

.btn-reserver:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    display: inline-block;
    padding: 15px;
    margin-top: 10px;
    width: 100%;
    background: #c89b3c;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.simple-header {
    background: white;
    border-bottom: 1px solid #eee;
}

.section {
    padding: 100px 80px;
}

.chambre-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 80px;

    max-width: 70vw;   /* 🔥 limite la largeur */
    margin: 0 auto;      /* 🔥 centre horizontalement */
}

.chambre-images img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.left-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SLIDER CONTAINER */
/* SLIDER CONTAINER */
.slider-container {
    width: 100%;
    max-width: 800px;  /* Limite la largeur du slider */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    margin: 0 auto;  /* Centre horizontalement */
}

/* ZONE IMAGE */
.slider {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: block;
}

/* BOUTONS */
.slider-btn {
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 28px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-btn:hover {
    background: #ddd;
}

.slider {
  overflow: hidden;
  position: relative;
}

.track {
  display: flex;
  transition: transform 0.4s ease;
}

.track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

img {
    display: block;
}

/* 🔴 IMPORTANT : désactive ton ancien système */
.slides img {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
}





.vignettes {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 10px;
}

.vignettes img {
  width: 60px;
  cursor: pointer;
  opacity: 0.6;
}

.vignettes img.active-thumb {
  opacity: 1;
  border: 2px solid black;
}


/* RESPONSIVE */
@media (max-width: 1000px) {
    .slider-container {
        flex-direction: column;
    }

    .slides {
        height: 380px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }
}

/* ===== VIGNETTES AMÉLIORÉES ===== */

.vignettes {
    display: flex;
    gap: 12px;
    margin-top: 15px;

    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 5px;
}

/* scrollbar stylée */
.vignettes::-webkit-scrollbar {
    height: 6px;
}

.vignettes::-webkit-scrollbar-thumb {
    background: #c89b3c;
    border-radius: 10px;
}

/* images */
.vignettes img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    flex-shrink: 0;

    border-radius: 8px;
    cursor: pointer;

    opacity: 0.6;
    transition: all 0.3s ease;
}

/* hover */
.vignettes img:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* active */
.vignettes img.active-thumb {
    opacity: 1;
    border: 2px solid #c89b3c;
    transform: scale(1.05);
}

.chambre-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 10px;
    color: #1f1f1f;
}

.prix {
    font-size: 24px;
    font-weight: 500;
    color: #c89b3c;
    margin-bottom: 30px;
}

.chambre-info p {
    margin-bottom: 25px;
    font-size: 17px;
}

.equipements {
    list-style: none;
    margin-bottom: 35px;
}

.equipements li {
    margin-bottom: 10px;
    font-size: 16px;
}

.reservation-form {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 5px 6px 20px 1px #a9a9a9;
}

.reservation-form h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1f1f1f;
}

.reservation-form input, .reservation-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.reservation-form input:focus .reservation-form select:focus {
    outline: none;
    border-color: #c89b3c;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #c89b3c;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #b08832;
}

.btn-secondary {
    margin-top: 25px;
    padding: 14px 30px;
    border-radius: 30px;
    background: transparent;
    border: 2px solid #c89b3c;
    color: #c89b3c;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #c89b3c;
    color: white;
}

.calendar-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    z-index: 1000;
}

#fermer-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #eee;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.flatpickr-calendar {
    border-radius: 18px;
    box-shadow: none;
}



footer {
    padding: 40px;
    text-align: center;
    background: #111;
    color: #aaa;
    font-size: 14px;
}



@media (max-width: 768px) {

    /* ===== NAVBAR ===== */
    .navbar {
        padding: 12px 20px;
    }

    .logo img {
        height: 60px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        padding: 20px;
        display: none; /* base pour menu burger */
    }}




@media (max-width: 1000px) {
    .navbar {
        padding: 20px 40px;
    }

    .section {
        padding: 80px 40px;
    }

    .chambre-detail {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .chambre-images img {
        height: 380px;
    }
    

/* ===== FIX CALENDRIER FLATPICKR ===== */

./* 🔴 occupé */
.flatpickr-day.day-disabled {
    background: #e74c3c !important;
    color: white !important;
    pointer-events: none;
    opacity: 1 !important;
}

/* 🟢 week-end */
.flatpickr-day.day-weekend {
    background: #2ecc71 !important;
    color: white !important;
}

/* 🟩 semaine libre */
.flatpickr-day.day-free {
    background: #d4f8d4 !important;
}

/* hover sauf jours occupés */
.flatpickr-day:not(.day-disabled):hover {
    background: #2c7be5 !important;
    color: white !important;
}
/* 🔴 réservé (même si flatpickr le désactive) */
.flatpickr-day.flatpickr-disabled.day-disabled {
    background: #e74c3c !important;
    color: white !important;
    opacity: 1 !important;
}



/* ========================== */
/* CHAMBRE DETAIL - BORNEO    */
/* ========================== */

/* Structure générale */
.chambre-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

/* LEFT CONTAINER : slider + vignettes */
.left-container {
    flex: 1 1 60%;
    min-width: 300px;
}

/* SLIDER */
.slider-container {
    position: relative;
    width: 100%;
}

.slider {
    width: 100%;
}

.track {
    display: flex;
    transition: transform 0.4s ease;
}

.track img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 10px;
}

/* BOUTONS slider */
.slider-btn {
    position: absolute;   /* 🔥 clé du problème */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    font-size: 28px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    outline: none;
    border: none;
}

.slider-btn.next {
    right: 15px; /* ou 20px pour plus de confort */
}

.slider-btn.prev {
    left: 15px;
}


.slider-btn:active {
    transform: translateY(-50%) scale(0.95); /* optionnel effet propre */
}

.slider-btn:focus {
    outline: none;
}

/* VIGNETTES */
.vignettes {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 15px;
    padding-bottom: 10px;
}

.vignettes img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.vignettes img.active-thumb {
    border: 2px solid #b08968;
    transform: scale(1.1);
}

/* CHAMBRE INFO */
.chambre-info {
    flex: 1 1 35%;
    min-width: 280px;
}

.chambre-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.chambre-info .prix {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 15px;
}

.chambre-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.chambre-info .equipements {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.chambre-info .equipements li {
    margin-bottom: 8px;
    font-size: 16px;
}

/* FORMULAIRE */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reservation-form input,
.reservation-form textarea,
.reservation-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.reservation-form button {
    background: #b08968;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.reservation-form button:hover {
    background: #8f6a4e;
}

.vignettes {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.vignettes img {
  flex: 0 0 auto;
}

.track {
  touch-action: pan-y;
}



}

@media (max-width: 768px) {
    .left-container {
        width: 100%;
        overflow: hidden;
    }

    .slider-container {
        width: 100%;
        overflow: hidden;
    }
}