/* ====== Base ====== */
body {
  margin: 0;
  font-family: 'Cousine', monospace;
  scroll-behavior: smooth;
  background-color: #FFEF5E;
  font-size: 0.9rem; /* Taille de texte réduite globalement */
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ====== En-tête ====== */
header {
  background-color: #B56999;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem; /* Réduit */
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem; /* Réduit */
  color: #ffffff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    background-color: #B56999;
    flex-direction: column;
    width: 220px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.25);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border-radius: 0 8px 8px 0;
    padding: 1rem 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1050;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 0.5rem 1rem;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }
}

nav a {
  margin: 0 0.5rem;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem; /* Réduit */
}

/* ====== Section principale ====== */
section {
  padding: 2rem;
  border-bottom: 1px solid #ccc;
  transition: all 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(30px);
  scroll-margin-top: 80px;
  font-size: 1rem; /* taille homogène partout */
  line-height: 1.6;
}


section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Contenu en colonnes ====== */
.image-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.image-section.reverse {
  flex-direction: row-reverse;
}

.text-block,
.image-block {
  flex: 1 1 45%;
  margin: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 3px;
  transition: transform 0.5s ease;
  font-size: 0.9rem; /* Réduit */
}

.image-block img {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border-radius: inherit;
}

.image-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ====== Bouton retour haut ====== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;        /* Décalage horizontal depuis le bord droit */
  z-index: 1000;       /* Au-dessus des autres éléments */
  padding: 10px 12px;  /* Taille confortable */
  font-size: 18px;     /* Lisible */
  display: none;       /* Masqué tant que scrollY < threshold */
  cursor: pointer;
  background-color: #ff7043;
  color: white;
  border: none;
  border-radius: 50%;  /* Bouton rond */
  transition: opacity 0.3s ease;
}


/* ====== Responsive ====== */
@media (max-width: 768px) {
  .image-section {
    flex-direction: column;
  }

  .text-block,
  .image-block {
    flex: 1 1 100%;
    margin: 0.5rem 0;
  }
}

.section-title {
  width: 100%;
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-size: 1.4rem; /* Réduit */
  color: #333;
}

/* ====== Carrousel ====== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-images {
  position: relative;
  width: 100%;
}

.carousel-images img {
  display: none;
  width: 100%;
  border-radius: 8px;
  transition: opacity 0.5s ease-in-out;
}

.carousel-images img.active {
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1rem; /* Réduit */
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* ====== Icône Instagram ====== */
.instagram-icon {
  display: inline-block;
  margin-top: 1rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.instagram-icon:hover {
  transform: scale(1.2);
}
.hero-section {
  min-height: 100vh;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background: url('../images/casa04.jpg') no-repeat center center/cover;
  display:block;
  justify-content: center;  /* Centrage horizontal */
  align-items: center;      /* Centrage vertical */
  text-align: center;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2rem 3rem;
  border-radius: 12px;
  max-width: 90%;
  box-sizing: border-box;
  border: 1px solid #B56999;

}
.hero-section * {
  margin: 0rem;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 1.5rem 2rem;
  }
}

.hero-content h1 {
  font-size: 2rem;
  color: #000;
  margin: 0;
  justify-content: center;
}

.scroll-down {
  
  display:flex;
  justify-content: center;
  bottom: 110px;
  font-size: 5rem;
  color: #ffffff;
  animation: bounce 2s infinite;
  text-decoration: navy;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0); 
  }
  40% {
    transform: translateY(-10px); 
  }
  60% {
    transform: translateY(-5px); 
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
