/* === Styles généraux === */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #333;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h6 {
    font-family: 'Playfair Display', serif;
    color: #556B2F;
}

a {
    color: #800020;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* Sections */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section:nth-child(even) {
    background: #f5f5dc;
}

/* === Header / Menu === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #556B2F;
    color: white;
    z-index: 1000;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
}

header .site-title {
    grid-column: 2;
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.header-extra {
    grid-column: 3;
    text-align: right;
}

.burger-menu {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    grid-column: 1;
}
/* === Dropdown menu avec cascade pour les appartements === */
/* Menu déroulant en pleine largeur */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 105px;
  left: 0;
  width: 100%; /* prend toute la largeur de l'écran */
  background: rgba(85, 107, 47, 0.95);
  color: white;
  padding: 25px 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: center; /* centre le contenu horizontalement */
}

/* Conteneur interne pour centrer Appartements et Contact */
.dropdown-menu .menu-inner {
  display: flex;
  gap: 50px; /* espace entre les blocs */
  max-width: 1200px; /* largeur maximale du contenu centré */
  width: 100%;
  padding: 0 20px; /* un peu de marge sur les côtés */
  box-sizing: border-box;
}

/* Sections internes */
.apartments, .contact-info {
  display: flex;
  flex-direction: column;
}
.dropdown-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* Section Appartements */
.apartments h4 {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.apartment-link {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transform: translateY(-20px);
  opacity: 0;
}

.apartment-link img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.apartment-link span {
  display: block;
  padding: 8px 5px;
  font-weight: bold;
  color: white;
}

/* Section Contact */
.contact-info h4 {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.contact-info ul li {
  margin-bottom: 8px;
}

/* Cascade animation */
.dropdown-menu.active .apartment-link:nth-child(1) { transition: all 0.3s ease 0.05s; transform: translateY(0); opacity: 1; }
.dropdown-menu.active .apartment-link:nth-child(2) { transition: all 0.3s ease 0.1s; transform: translateY(0); opacity: 1; }

/* Menu nav classique */
.dropdown-menu .dropdown-nav {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.dropdown-menu .dropdown-nav li {
    margin: 10px 0;
}

.dropdown-menu .dropdown-nav a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.dropdown-menu .dropdown-nav a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  /* Menu parent en colonne */
  .dropdown-menu {
    flex-direction: column;
    align-items: center; /* centre le contenu horizontalement */
    padding: 15px 20px;
    top: 132px;
  }

  /* Conteneur interne */
  .dropdown-menu .menu-inner {
    flex-direction: column;
    align-items: center; /* centre les sections verticalement */
    gap: 20px; /* espace entre Appartements et Contact */
    width: 100%; /* s'assurer que le contenu prend toute la largeur */
    max-width: 400px; /* limite la largeur du contenu */
  }

  .apartments-grid {
    grid-template-columns: 1fr; /* empilé full width */
    gap: 15px;
    width: 100%; /* pleine largeur dans la grille */
  }

  .apartment-link {
    width: 100%; /* remplit correctement la grille */
    margin: 0 auto;
  }
}


/* === Bannière / Image mise en avant === */
.property-banner {
    position: relative;
    width: 100%;
    height: 400px; /* ou hauteur responsive selon media queries */
    display: flex; /* active Flexbox */
    justify-content: center; /* centre horizontalement */
    align-items: center; /* centre verticalement */
    overflow: hidden;
}

.property-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Titre de la propriété === */
.property-title {
    position: relative;
    transform: translate(-50%, -50%);
    margin: 0;
    color: white;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 10;
}

.property-title-wrapper {
    position: absolute; /* superposé à l'image */
    top: 0;
    left: 240px;
    width: 100%;
    height: 100%;
    display: flex; /* centrage vertical + horizontal */
    justify-content: center;
    align-items: center;
}

/* === Sections pleine largeur avec texte et image même hauteur === */
.property-section {
    display: flex;
    flex-wrap: wrap;
    margin: 0 5% 60px 5%; /* marge uniforme gauche/droite, bas 60px */
    gap: 20px;
    align-items: stretch;
}

.property-section.reverse {
    flex-direction: row-reverse;
}

.property-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #d8f3dc;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    flex: 1 1 45%;
}

.property-section.reverse .property-text-wrapper {
    margin-left: 20px;
    margin-right: 0;
}

.property-text {
    background: none;
    padding: 0;
    flex: 1;
}

.property-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.property-text h6,
.property-text p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.property-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* === Colonne image === */
.property-image {
    flex: 1 1 45%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* === Bloc Salon plus petit === */
.section-salon .property-text-wrapper,
.section-salon .property-image {
    flex: 1 1 40%;
}

.section-salon .property-image img {
    max-height: 300px;
    object-fit: cover;
}

/* === Extérieur + Autre + Piscine sur la même ligne === */
.property-row {
    display: flex;
    gap: 20px;
    margin: 60px 5%;
}

.property-row .property-col {
    flex: 1;
    text-align: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
}

.property-row .property-col img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
}

/* === Galerie images améliorée === */
.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
    gap: 15px;
    margin: 60px 5%;
}

.property-gallery figure {
    margin: 0;
}

.property-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* === Lightbox === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* === Corps de page fullwidth === */
.property-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Footer global */
.site-footer {
  background-color: #333; /* couleur foncée, adapte selon ton style */
  color: #f5f5f5;
  padding: 40px 5%;
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

/* Contact */
.footer-contact h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #fff;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 1rem;
  color: #ddd;
}

/* Liens du footer */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Crédit / copyright */
.footer-credit {
  font-size: 0.9rem;
  color: #bbb;
}

.footer-credit p {
  margin: 3px 0;
}

/* Responsive pour petit écran */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-contact, .footer-links, .footer-credit {
    width: 100%;
  }
}

/* === Mobile responsive === */
@media (max-width: 1024px) {
    .property-banner {
        height: 250px; /* hauteur bannière réduite en tablet/mobile */
    }

    .property-section {
        flex-direction: column;
        margin: 40px 5%;
        gap: 20px;
    }

    .property-text-wrapper,
    .property-image {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .property-row {
        flex-direction: column;
        margin: 0 10px;
        gap: 20px;
    }

    .property-row .property-col {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .property-gallery {
        grid-template-columns: 1fr;
    }

    .slider-text h1 {
        font-size: 2rem;
    }

    .slider-text p {
        font-size: 1rem;
    }

    .property-featured {
        width: 100%;
        max-width: 100%;
        max-height: 300px;
        margin: 20px auto;
    }
	 .slider.fullwidth-slider {
        height: auto; /* la hauteur s'adapte au contenu */
        padding: 0; /* supprime le padding inutile */
    }

    .slider.fullwidth-slider .slider-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 10px; /* petit padding pour mobiles */
        text-align: center;
    }
}

@media (max-width: 480px) {
    .property-banner {
        height: 180px; /* petite hauteur mobile */
    }

    .slider {
        height: 40vh;
    }

    .property-text-wrapper {
        padding: 15px 10px;
    }

        .property-title {

        left: 0%;
        transform: translate(-50%, -50%);
        font-size: 1.6rem; /* texte plus petit pour mobile */
        max-width: 90%; /* éviter débordement */
        margin: 0;
        text-align: center;
    }
	.property-title-wrapper {
    left: 150px;
}

    .slider-text h1 {
        font-size: 1.5rem;
    }

    .slider-text p {
        font-size: 0.9rem;
    }
}

/* === Supprimer scroll horizontal === */
html, body {
    overflow-x: hidden;
}
