/* ==========================================================================
   THÈME LUXE MODERN — NOIR PUR & LIGNES D'OR (CORRIGÉ & OPTIMISÉ)
   ========================================================================== */

:root {
  --bg-dark: #000000;
  --bg-card: #0d0d0d;
  --gold: #f1c40f;
  --gold-hover: #d4a80a;
  --gold-mat: #c5a880; /* Or djerbien mat pour les labels et focus */
  --text-light: #ffffff;
  --text-silver: #f0f0f0; /* Blanc cassé à haute visibilité pour les paragraphes */
  --text-muted: #b5b5b5;  /* Gris clair augmenté pour éliminer les zones invisibles sur noir */
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}

/* ==========================================================================
   CORRECTION CRUCIALE : VISIBILITÉ DES PLACEHOLDERS SUR FOND SOMBRE
   ========================================================================== */
#dateRange::placeholder,
#nomClient::placeholder,
#telClient::placeholder,
.form-control::placeholder,
input::placeholder,
select::placeholder {
  color: #b5b5b5 !important; /* Gris clair texturé hautement visible */
  opacity: 1 !important;       /* Force la visibilité absolue sur Firefox & Safari */
}

/* ==========================================================================
   1. NAVBAR (FLUX NORMAL - NON FIXE)
   ========================================================================== */
.main-navbar {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(241, 196, 15, 0.2);
  backdrop-filter: blur(10px);
  position: relative !important; /* Force le flux normal */
  top: auto !important;
  width: 100% !important;
  z-index: 1000;
}

/* Surcharge de sécurité pour annuler les classes Bootstrap sticky/fixed */
.navbar.sticky-top, 
.navbar.fixed-top {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
}

.logo-text {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-decoration: none;
}

.navbar-brand img {
  max-height: 50px;
  display: block;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 40px;
  }
}

.nav-menu .nav-link {
  color: var(--text-light) !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 10px 15px !important;
  transition: color 0.3s;
}

.nav-menu .nav-link:hover {
  color: var(--gold) !important;
}

.phone-link {
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold) !important;
  font-weight: 600;
}

.phone-link:hover {
  background-color: var(--gold);
  color: #000000 !important;
}
/* Ajoutez body devant pour augmenter la priorité du sélecteur */
body .navbar.main-navbar {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    display: block !important; /* Force le comportement de bloc */
}
/* ==========================================================================
   2. HERO HEADER (COMPLÈTE & RESPONSIVE)
   ========================================================================== */
.hero {
  min-height: 100vh; 
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9)), 
              url('img/WhatsApp Image17 2026-04-16 at 14.51.34.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 80px 20px;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-silver);
  margin-bottom: 35px;
  line-height: 1.6;
}

.btn-gold {
  background-color: var(--gold);
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 35px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
  color: #000000;
  transform: translateY(-2px);
}

/* ==========================================================================
   3. SECTIONS COMMUNES
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-title {
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-subtitle, 
.text-center p.text-muted.text-uppercase.small {
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 2px !important;
  margin-bottom: 50px;
  opacity: 1 !important;
}

/* ==========================================================================
   4. BLOCS VILLAS (CONTRASTE ET STRUCTURATION)
   ========================================================================== */
.property-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}

.img-box {
  position: relative;
  height: 380px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-luxe {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--gold);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.details-bar {
  background-color: #111111;
  border-top: 1px solid rgba(241, 196, 15, 0.3);
  padding: 15px;
  display: flex;
  justify-content: space-around;
  font-size: 0.9rem;
}

.details-bar span {
  color: var(--text-light) !important;
}

.details-bar span i {
  color: var(--gold);
  margin-right: 6px;
}

.property-info h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.price-tag {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.price-tag span {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

.location-tag, 
.location-tag.text-muted {
  color: var(--gold-mat) !important;
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.location-tag i {
  color: var(--gold) !important;
}

.property-info p.text-white-50,
.property-info p {
  color: var(--text-silver) !important;
}

/* ==========================================================================
   5. LISTE DES ÉQUIPEMENTS & BOUTONS SECONDAIRES
   ========================================================================== */
.features-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 25px 0 !important;
}

.features-list li {
  position: relative !important;
  padding-left: 30px !important;
  margin-bottom: 14px !important;
  color: var(--text-silver) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.features-list li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--gold) !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}

.btn-outline-gold {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  background-color: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.btn-outline-gold:hover {
  color: #000000;
  background-color: var(--gold);
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-outline-gold:active {
  transform: translateY(0);
}

/* ==========================================================================
   6. STYLE DE LA GALERIE (FILTRES ET EFFETS VISUELS)
   ========================================================================== */
.btn-villa-filter {
  background-color: transparent !important;
  color: var(--text-light) !important;
  border: 1px solid #444444 !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.btn-villa-filter:hover,
.btn-villa-filter.active {
  border-color: var(--gold) !important;
  color: #000000 !important;
  background-color: var(--gold) !important;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.3) !important;
}

.btn-category-filter {
  background-color: transparent !important;
  color: var(--text-muted) !important;
  border: 1px solid #333333 !important;
  padding: 7px 18px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.btn-category-filter:hover,
.btn-category-filter.active {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background-color: rgba(241, 196, 15, 0.08) !important;
}

.gallery-item {
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

.gallery-box {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background-color: #111111 !important;
}

.gallery-box img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
  display: block !important;
}

.gallery-box:hover img {
  transform: scale(1.04) !important;
}


/* ==========================================================================
   8. FORMULAIRE DE RÉSERVATION & ADAPTATION RADICALE INTL-TEL-INPUT
   ========================================================================== */
#reservation select.form-select,
#reservation input[type="text"],
#reservation input:not([type="tel"]), /* On exclut le champ tel */
#reservation input[type="date"],
#reservation textarea {
  background-color: #161616 !important;
  color: var(--text-light) !important;
  border: 1px solid #444444 !important;
  padding: 12px 15px !important;
  border-radius: 4px !important;
  width: 100% !important;
  font-size: 1rem !important;
}
/* 2. Gestion spécifique pour le conteneur du plugin */
.iti { 
  width: 100% !important; 
  display: block !important;
  margin-bottom: 1rem; /* Pour garder l'espacement entre les champs */
}

/* 3. Le champ téléphone doit utiliser le padding du plugin, pas le vôtre */
#telClient {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-right: 15px !important;
  padding-left: 52px !important; /* Laisse juste assez de place pour le drapeau */
  background-color: #161616 !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
  width: 100% !important;
}

/* 4. On s'assure que le drapeau ne casse pas la mise en page */
.iti__selected-flag {
  padding-left: 10px !important;
  width: 45px !important;
  outline: none !important;
}

/* --- LE RESTE DE VOTRE CSS (Dropdown, etc.) RESTE IDENTIQUE --- */
body .iti__country-list {
  background-color: #0d0d0d !important;
  border: 1px solid #333333 !important;
  z-index: 1060 !important;
  color: #ffffff !important;
}

#reservation select.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1c40f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 15px !important;
  padding-right: 40px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

#reservation select.form-select option {
  background-color: #161616 !important;
  color: var(--text-light) !important;
}

#reservation select.form-select:focus,
#reservation input:focus,
#reservation textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.3) !important;
}

#reservation label {
  color: var(--gold-mat) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  display: block !important;
}

/* ==========================================================================
   9. CALENDRIER FLATPICKR (STYLE DES DATES INDISPONIBLES / RÉSERVÉES)
   ========================================================================== */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover,
.flatpickr-day.disabled.prevMonthDay,
.flatpickr-day.disabled.nextMonthDay,
.flatpickr-day.is-booked,
.flatpickr-day.is-booked:hover,
.flatpickr-day.is-booked.prevMonthDay,
.flatpickr-day.is-booked.nextMonthDay {
  background: rgba(220, 53, 69, 0.25) !important;
  color: #ff4d4d !important;
  border-color: #dc3545 !important;
  text-decoration: line-through !important;
  font-weight: bold !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
}

/* ==========================================================================
   10. FAQ (ACCORDÉONS)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-card);
}

.accordion-item {
  background-color: #000000 !important;
  border: 1px solid #222222 !important;
  margin-bottom: 10px;
  border-radius: 4px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: #000000 !important;
  color: var(--text-light) !important;
  box-shadow: none !important;
  padding: 20px;
}

.accordion-button:not(.collapsed) {
  color: var(--gold) !important;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  color: var(--text-silver);
  background-color: #050505;
  border-top: 1px solid #222222;
  line-height: 1.6;
}

.form-text.text-muted, 
.text-center.text-muted p {
  color: var(--text-muted) !important;
}


/* ==========================================================================
   11. FOOTER & BANNIÈRE COOKIES
   ========================================================================== */
footer {
  background-color: #050505;
  padding: 40px 0;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Force la couleur du lien Mentions Légales dans le footer */
footer a.text-muted {
    color: #e0e0e0 !important; /* Un gris très clair pour une excellente lisibilité sur fond noir */
    opacity: 1 !important;    /* Annule l'opacité réduite par défaut de Bootstrap */
}

/* Optionnel : Effet au survol pour montrer que c'est un lien cliquable */
footer a.text-muted:hover {
    color: var(--gold) !important;
}

.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: #111111;
  border: 1px solid var(--gold);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  z-index: 999999 !important;
  text-align: center;
  pointer-events: auto !important;
}

.cookie-banner p {
  color: var(--text-silver);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.cookie-link {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-link:hover {
  color: var(--text-light);
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 10px 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept {
  background-color: var(--gold);
  color: #000000;
  border: 1px solid var(--gold);
}

.btn-accept:hover {
  background-color: var(--text-light);
  border-color: var(--text-light);
}

.btn-reject {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid #444444;
}

.btn-reject:hover {
  color: var(--text-light);
  border-color: #888888;
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   12. MEDIA QUERIES (ÉVITAGE DES COUPURES DE TEXTE — ÉCRANS < 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .hero {
    min-height: -webkit-fill-available; 
    min-height: 100vh;
    display: flex;
    align-items: flex-start !important; 
    padding-top: 130px !important; 
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content {
    margin-top: 0 !important;
  }

  .hero-content h1 {
    font-size: 1.9rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }

  .hero-content p {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
    padding: 0 5px !important;
    line-height: 1.5 !important;
  }

  .btn-gold {
    padding: 12px 28px !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    max-width: 260px !important;
    display: inline-block !important;
  }

  section {
    padding: 60px 0 !important;
  }

  .container, .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .property-card, 
  .property-info {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .img-box {
    height: 240px !important;
  }

  .main-navbar.sticky-top {
    position: relative !important; /* Annule le sticky/fixed */
    top: auto !important;
  }

  .property-info h2 {
    font-size: 1.7rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 15px !important;
  }

  .price-tag {
    font-size: 1.4rem !important;
  }

  .features-list li {
    font-size: 0.95rem !important;
  }

  .details-bar {
    padding: 10px !important;
    font-size: 0.8rem !important;
  }
}
