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

/* BODY */
body {
  font-family: Arial, sans-serif;
  background: #0d0d0d;
  color: white;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ================= NAVBAR ================= */
/* NAVBAR PROPRE SANS CONFLIT BOOTSTRAP */
.main-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
}

/* CONTAINER FLEX */
.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;

  display: flex;
  align-items: center;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;        /* taille du logo */
  width: auto;
  object-fit: contain;
  display: block;
}
/* ================= NAVBAR RESPONSIVE ================= */

/* On garde ton fond et ton flou */
/* ================= NAVBAR FIXE (STICKY) ================= */
.main-navbar {
    position: fixed !important; /* Force la position fixe */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000; /* Assure que la nav passe au-dessus de tout (galerie, etc.) */
    
    /* Design Luxe */
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px); /* Effet de flou derrière la nav */
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    padding: 10px 0;
}

/* IMPORTANT : Ajouter une marge en haut du body pour compenser la nav fixe */
body {
    padding-top: 100px; /* Ajustez selon la hauteur de votre logo/navbar */
}

/* Ajustement pour mobile */
@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }
    .logo img {
        height: 60px; /* Réduit un peu le logo pour gagner de l'espace sur mobile */
    }
}

/* On utilise les classes Bootstrap pour le menu */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: 0.3s;
    padding: 10px 15px !important;
}

.nav-link:hover {
    color: #f1c40f !important;
}

/* --- AJUSTEMENTS MOBILE (Sous 991px) --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(13, 13, 13, 0.98);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        border: 1px solid rgba(241, 196, 15, 0.3);
    }

    .navbar-nav {
        flex-direction: column; /* Aligne les liens verticalement */
        gap: 10px;
        text-align: center;
    }

    /* Pour que Facebook et l'Email restent côte à côte même sur mobile */
    .social-icons-mobile {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 25px;
        margin-top: 10px;
    }
}

/* Correction du bouton Hamburger */
.navbar-toggler {
    border: none !important;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none !important;
}

/* HOVER */
.nav-menu a:hover {
  color: #f1c40f;
}

/* Style des icônes sociales dans la nav */
.nav-menu .fa-envelope, 
.nav-menu .fa-facebook {
    font-size: 1.2rem;
    color: #f1c40f; /* Or pour rappeler le luxe */
    transition: 0.3s;
}

.nav-menu .fa-envelope:hover, 
.nav-menu .fa-facebook:hover {
    color: white;
    transform: translateY(-2px);
}

/* Ajustement mobile pour le menu déroulant */
@media (max-width: 991px) {
    .nav-menu {
        padding: 20px 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }

    /* Aligner les icônes horizontalement sur mobile si désiré */
    .nav-item:has(.fa-envelope), 
    .nav-item:has(.fa-facebook) {
        display: inline-block;
        margin: 10px 15px;
    }
}
/* ================= HERO ================= */
/* HERO */
.hero {
  height: 100vh;
  background: url("img/WhatsApp Image17 2026-04-16 at 14.51.34.jpeg") center/cover;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* OVERLAY (IMPORTANT POUR LISIBILITÉ) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* CONTENT */
.hero-content {
  position: relative;
  max-width: 800px;
  padding: 20px;
}

/* TITLE */
.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

/* TEXT */
.hero p {
  margin: 20px 0;
  color: #eaeaea;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* BUTTON PREMIUM */
.hero-btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #f1c40f, #d4a80a);
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

/* HOVER EFFECT */
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ================= SECTION VILLA ================= */
/* ================= SECTION VILLA ================= */
.property-section {
  padding: 90px 0;
  background: #0d0d0d; /* fond noir élégant */
}

/* ================= CARD ================= */
.property-card {
  background: #f1c40f;
  border-radius: 18px;
  overflow: hidden;
  color: black;

  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: 0.4s ease;
}

.property-card:hover {
  transform: translateY(-6px);
}

/* ================= IMAGE ================= */
.img-box {
  position: relative;
}

.img-box img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: 0.6s ease;
}

.property-card:hover .img-box img {
  transform: scale(1.05);
}

/* ================= BADGE ================= */
.badge {
  position: absolute;
  top: 15px;
  left: 15px;

  background: linear-gradient(135deg, #f1c40f, #d4a80a);
  color: black;

  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
}

/* ================= DETAILS ================= */
.details {
  display: flex;
  justify-content: space-around;
  padding: 15px;

  border-top: 1px solid #f1c40f;
  color: black;
  font-size: 0.95rem;
}

.details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.details i {
  color: black;
}

/* ================= RIGHT SIDE TEXT ================= */
.property-info h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.price {
  color: #f1c40f;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 12px 0;
}

.location {
  color: #aaa;
  margin-bottom: 20px;
}

.desc {
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 20px;
}

/* ================= FEATURES ================= */
.features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.features li {
  margin-bottom: 10px;
  color: #eee;
  position: relative;
  padding-left: 20px;
  
}

.features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #f1c40f;
}

/* ================= BUTTON ================= */
.btn {
  background: linear-gradient(135deg, #f1c40f, #d4a80a);
  color: black;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;

  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .property-info {
    text-align: center;
  }

  .property-info h1 {
    font-size: 2rem;
  }

  .img-box img {
    height: 260px;
  }

  .details {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
/* ================= GLOBAL SECTIONS ================= */
.gallery,
.reservation {
  background: #0d0d0d;
  padding: 90px 0;
  color: white;
}


/* ================= TITRES ================= */
.gallery h2,
.reservation h2 {
  text-align: center;
  color: white;
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: bold;
}

/* ================= GALLERY FILTERS ================= */
.gallery-filters {
  text-align: center;
  margin-bottom: 25px;
}

.gallery-filters button {
  background: transparent;
  border: 1px solid #f1c40f;
  color: #f1c40f;

  padding: 8px 18px;
  margin: 5px;
  border-radius: 25px;

  cursor: pointer;
  transition: 0.3s;
}

.gallery-filters button:hover {
  background: #f1c40f;
  color: black;
}

/* ================= GALLERY GRID ================= */
.gallery .images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;

  border-radius: 15px;
  transition: 0.4s ease;

  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ================= RESERVATION ================= */
.reservation {
  text-align: center;
}

.reservation input {
  padding: 12px;
  width: 320px;
  max-width: 90%;

  border-radius: 30px;
  border: none;
  outline: none;

  text-align: center;
  margin-bottom: 10px;
}

.reservation button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #f1c40f, #d4a80a);

  border: none;
  border-radius: 30px;

  font-weight: bold;
  cursor: pointer;

  transition: 0.3s;
}

.reservation button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

#resultat {
  margin-top: 20px;
  font-size: 1.2rem;
  color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .gallery .images {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }
}
.gallery .item {
  transition: 0.4s ease;
}
.gallery-filters button {
  background: transparent;
  color: #f1c40f;
  border: 1px solid #f1c40f;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-filters button.active {
  background: #f1c40f;
  color: black;
}
/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  background: black;
  color: #aaa;
}

/* ================= FIX BOOTSTRAP ================= */
.text-dark {
  color: white !important;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {

  .navbar-content {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .property-info {
    text-align: center;
  }

  .gallery .images {
    grid-template-columns: 1fr;
  }
}
/* ================= FORCE BACKGROUND BLACK GLOBAL ================= */

html, body {
  background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Alignement central parfait du formulaire */
.res-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout horizontalement */
    text-align: center;
    background: #111 !important;
    border: 1px solid #f1c40f !important;
    padding: 40px 20px;
    border-radius: 20px;
}

/* Forcer les inputs à prendre une largeur élégante et centrée */
.res-form .form-control {
    width: 100%;
    max-width: 400px; /* Évite que les inputs soient trop larges sur PC */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Centre le texte à l'intérieur */
}

/* Centrage du calendrier Flatpickr */
.flatpickr-calendar.inline {
    margin: 20px auto !important; /* "auto" centre l'élément block */
    display: block;
}

/* Bootstrap containers fix */
.container,
.container-fluid {
  background: #0d0d0d !important;
}

/* Bootstrap rows fix */
.row {
  background: #0d0d0d !important;
}

/* Fix white gaps around sections */
.gallery,
.reservation,
.property-section {
  background: #0d0d0d;
}

/* REMOVE ANY WHITE DEFAULT */
* {
  outline-color: transparent;
}

/* Animation douce sur les inputs */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.form-control:focus {
    border-color: #f1c40f; /* Couleur dorée */
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
    transform: scale(1.02);
}

/* ============================================================
   SECTION RÉSERVATION - DESIGN LUXE IZI DJERBA
   ============================================================ */


/* 3. CALENDRIER FLATPICKR (Look Premium) */
.flatpickr-calendar {
    background: #1a1a1a !important; /* Fond sombre */
    border: 1px solid #f1c40f !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 20px;
}

/* En-tête (Mois et Jours de la semaine) */
.flatpickr-current-month, .flatpickr-weekday {
    color: #f1c40f !important;
    fill: #f1c40f !important;
    font-weight: bold;
}

/* Dates disponibles (Par défaut) */
.flatpickr-day {
    color: #ffffff !important; /* Texte blanc pour contraste sur noir */
    border-radius: 5px;
}

.flatpickr-day:hover {
    background: #333 !important;
}

/* --- DATES OCCUPÉES (Correction image_91a4d7.png) --- */
.flatpickr-day.disabled, 
.flatpickr-day.flatpickr-disabled {
    background: #800000 !important; /* Rouge Bordeaux Luxe */
    color: #ffffff !important;    /* Chiffres en Blanc pur (très lisible) */
    text-decoration: line-through; /* Barre la date */
    opacity: 1 !important;         /* Annule la transparence */
    cursor: not-allowed !important;
    border: none !important;
}

/* Dates sélectionnées (Couleur Or) */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: #f1c40f !important;
    color: #000000 !important; /* Texte noir sur fond or */
    border: none !important;
}

.flatpickr-day.inRange {
    background: rgba(241, 196, 15, 0.2) !important;
    box-shadow: none !important;
    color: #f1c40f !important;
}

/* 4. Bouton de réservation */
.btn-warning {
    background: linear-gradient(135deg, #f1c40f, #d4a80a) !important;
    border: none !important;
    color: black !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(241, 196, 15, 0.4) !important;
}

/* 5. Texte de résultat (Prix et nuits) */
#resultat {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Animation douce pour la modale */
.modal-content {
    border: 1px solid #f1c40f;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.2);
}
/* Navbar plus moderne (Effet de verre) */
.main-navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
}

/* Amélioration visuelle des dates occupées (Cercle parfait) */
.flatpickr-day.disabled {
    border-radius: 50% !important; /* Rend les cercles rouges parfaits comme sur l'image */
    margin: 2px; /* Donne un peu d'air entre les cercles */
}

/* Animation au survol des images de la galerie */
.gallery img {
    filter: grayscale(30%);
    transition: all 0.5s ease;
}
.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.2);
}

/* Navbar plus moderne (Effet de verre) */
.main-navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
}

/* Amélioration visuelle des dates occupées (Cercle parfait) */
.flatpickr-day.disabled {
    border-radius: 50% !important; /* Rend les cercles rouges parfaits comme sur l'image */
    margin: 2px; /* Donne un peu d'air entre les cercles */
}

/* Animation au survol des images de la galerie */
.gallery img {
    filter: grayscale(30%);
    transition: all 0.5s ease;
}
.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.2);
}
.cookie-overlay {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #f1c40f;
    border-radius: 15px;
    padding: 20px;
    z-index: 11000;
    display: none; /* Caché par défaut */
}

.cookie-content p {
    color: #eee;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cookie {
    background: transparent;
    border: 1px solid #666;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-cookie.accept {
    background: #f1c40f;
    color: black;
    border-color: #f1c40f;
    font-weight: bold;
}