/* ====== Base ====== */
html, body {
  margin: 0;
  scroll-behavior: smooth;
  background-color: #fefefe;
  font-family: 'Gowun+Dodum', sans-serif;
  font-size: 0.9rem; /* Taille de texte réduite globalement */
  line-height: 1.6;
}

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

header h1,h2 {
  margin: 0 0 0.5rem 0;
  font-size: 3rem; /* Réduit */
  color: #000;
  font-family: 'Sacramento', cursive;
}

/* 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: 2rem;
  color: #000;
}

.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: #000;
  border-radius: 2px;
}

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

  .nav-links {
    position: fixed;
    top: 100px;
    left: 0;
    background-color: rgba(255, 213, 79, 0.95);
    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: 100px;
    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: 1.5rem;
}

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

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

/* ====== Contenu en colonnes ====== */
.image-section {
  display: flex;
  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;
}

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

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

/* ====== Bouton retour haut ====== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.5rem;
  font-size: 0.85rem;
  display: none;
  cursor: pointer;
  background: #ff7043;
  color: white;
  border: none;
  border-radius: 5px;
}

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

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

  .logo img {
    height: 80px;
  }
}

/* ====== Titres de section ====== */
.section-title {
  width: 100%;
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-size: 1.4rem;
  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;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Section Contact */
#contact .text-block {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff8e1; /* très clair, rappel jaune */
  border: 2px solid #ffd54f;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(255, 213, 79, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact .text-block p {
  margin: 0;
}

#contact .text-block a {
  color: #ff7043;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

#contact .text-block a:hover,
#contact .text-block a:focus {
  color: #d84315;
  outline: none;
}

/* Icônes réseaux sociaux */
.instagram-icon, .facebook-icon {
  fill: #ff7043;
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.instagram-icon:hover,
.facebook-icon:hover {
  transform: scale(1.3);
  fill: #d84315;
}

/* Contact info group (email + phone) */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
}

.contact-info a {
  color: #ff7043;
}

.contact-info a:hover,
.contact-info a:focus {
  color: #d84315;
  outline: none;
}

/* Ajustements pour images contact */
#contact .image-block img {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(255, 213, 79, 0.4);
}


/* ====== Logo ====== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px; /* ajustable selon votre design */
}
.text-block p {
  white-space: pre-line;
}
