/* === Base === */

* {
    box-sizing: border-box;
}


body{
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}


h1, h2, h3, h4{
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

/* Cache l'icône d'image brisée pour les images sans source valide */
img[src=""],
img:not([src]) {
    content: ""; /* Empêche l'affichage de l'icône par défaut */
    display: none; /* Cache l'élément de l'affichage */
}

html, body {
    font-family: Georgia, serif;
    background-color: #f7f3eb;
    display: flex;
    flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

main p {
    margin-left: 30px;
    padding-top: 10px;
}

/* === Titres === */

h2, .subtitle {
    margin-top: 10px;
}

h2 {
    background-color: #e0f2a2;
    padding: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
}

h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* === Header === */

header {
    width: 100%;
    height: auto;
    max-height: 400px;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 100;
}

.header.no-image {
  height: auto;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    justify-content: center;
}

.size-image {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: none;
}

.cover {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin-top: 30px;
}

.header-title {
    color: #030303;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  background-color: #e6cc3d;
  color: black;
  padding: 18px 30px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background-color: #e6cc3d;
}

.nav-links {
  display: flex; /* Affiche les liens horizontalement par défaut */
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  /* Assurez-vous que les liens ont l'espace nécessaire */
  padding: 0 10px; 
}

/* Cachez le bouton hamburger par défaut */
.hamburger-btn {
  display: none;
}

.scroll-arrow-container {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  z-index: 101;
  transition: opacity 0.3s ease-in-out;
  animation: bounce 2s infinite;
  /* Assurez-vous que la flèche est visible par défaut */
  display: block;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {


  h1 {
    font-size: 1.8rem;
  }

  .scroll-arrow-container {
    display: none;
  }
}


/* --- Menu Responsive --- */
@media (max-width: 900px) {
  /* Affichez le bouton hamburger */
  .hamburger-btn {
    display: block;
    position: absolute;
    top: 20px; /* Ajustez la position */
    right: 20px; /* Ajustez la position */
    font-size: 30px;
    background-color: #e6cc3d;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Placez le bouton au-dessus de tout */
  }

  /* Cachez les liens du menu par défaut */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #e6cc3d;
    padding-top: 60px; /* Espace pour le bouton */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Affichez les liens lorsque le menu est actif */
  .nav-links.active {
    display: flex;
  }
}

@media (min-width: 768px) {
.scroll-arrow-container {
  position: absolute;
  bottom: 150px; /* Distance par rapport au bas de la page */
  left: 50%;
  transform: translateX(-50%); /* Pour centrer parfaitement */
  width: 70px; /* Taille de la flèche */
  height: 70px;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
  animation: bounce 2s infinite; /* Applique l'animation */
}

body.apropos .scroll-arrow-container,
body.contact .scroll-arrow-container,
body.infopratique .scroll-arrow-container {
    display: none;
}
}

/* Règle de l'animation de "rebond" */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* === Menu déroulant "Découverte" === */

body.decouverte main {
  margin-top: 700px;
}

@media (max-width: 768px) {
body.decouverte main {
  margin-top: 400px;
}
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .btn:hover {
  background-color: #e6cc3d;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #e6cc3d;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
}


@media (max-width: 768px) {
  .btn {
    width: 100%;
    max-width: 90vw;
    padding: 15px;
    font-size: 18px;
  }

  .container {
    flex-direction: column;
    align-items: center;
  }
}

/* === Footer === */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d7eb9e;
    padding: 20px 10px;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: 20px;

}


footer h2 {
    background-color: #d1e09a;
    margin: 20px;
    text-align: center;
    padding: 10px 0;
}

.footer-content ul {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.footer-content a {
    display: block;
    margin: 10px 0;
}

.footer-bottom {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre le conteneur sur la page */
    align-items: center; /* Aligne les éléments verticalement */
    width: 100%; /* S'assure que le conteneur prend toute la largeur */
    margin-top: 20px; /* Ajoute un peu d'espace avec le contenu au-dessus */
    margin: 0;
}

.footer-bottom p {
  text-align: center;
  justify-content: center;
}

.logo-footer {
  margin-right: 30px;
}

.logo-footer img {
    max-width: 90px;
    height: auto;
    position: sticky;
}


/* Carroussel de photos */

.carousel-container {
    position: relative;
    width: auto;
    max-width: 1400px;
    height: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img, 
.carousel-slide video {
    width: 100%;
    height: 500px; /* Set a consistent height for carousel images */
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-prev,
.carousel-next {
    /* Style de base */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(250, 249, 249);
    color: rgb(7, 7, 7);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%; /* Ajoute des coins arrondis */
    width: 40px; /* Donne une largeur fixe */
    height: 40px; /* Donne une hauteur fixe */
    font-size: 1.5em; /* Agrandit le texte */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Ajoute un effet de survol pour plus de clarté */
.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 60px;
}

.carousel-next {
    right: 70px;
}



@media (max-width:768px) {
  .accueil-texte {
    width: 100%;
    margin-right: 30px;
  }

  body.accueil main {
    margin-top: 200px;
  }
}

/* === Section Découverte - Blocs en ligne === */

.column {
  display: flex;
  width: auto;
  max-width: none;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.image {
    width: 250px;               /* ← fixe la largeur */
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 10%;
    display: block;
}

/* === Section Ferme === */

.video {
    width: 50vw;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
}

.ferme-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px auto 0;
}

.ferme-title {
 background-color: #fdfaf5;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  max-width: 600px;
  flex: 1;
}

.atelier-sejour {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    text-align: center;
}

.atelier-sejour.reverse {
    flex-direction: row-reverse;
}

.gallery-pellicule {
    flex: 0 1 45%;
    display: flex;
    justify-content: center;
    gap: 10px;
    height: auto;
    min-width: 250px;
}

.pellicule {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.responsive-ferme {
  width: 100%;
}

.text-ferme:not(.text-ferme1) {
  text-align: left;
}


@media (max-width: 768px) {
  .responsive-ferme {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  }

  .atelier-sejour p {
    width: 100%;
    max-width: 800px; /* Limite la largeur du texte pour la lisibilité sur mobile */
    text-align: left; /* Centre le texte pour un meilleur rendu sur mobile */
    padding: 0 5px;
  }

}


/* Section Infos Pratiques */

.acces-photo {
  width: 100%;
  max-width: 1300px;
  height: 450px;
  margin-top: 20px;
}

.medium {
  width: 100%;
  height: 350px;
  margin: 0;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.atelier-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin: 50px auto;
  max-width: 1200px;
  padding: 0;
  flex-direction: column;
  
}

.atelier-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  object-fit: cover;
  gap: 30px;
  width: 100%;
  padding: 0 20px;
  margin: 0;
}

.atelier-titre {
  background-color: #e0f2a2;
  text-align: center;
  font-size: 2rem;
  margin: 0; /* ← supprime la marge haute */
  padding: 10px;
  min-height: 80px;
  display: flex;
  align-items: center; /* Centre le texte verticalement */
  justify-content: center; /* Centre le texte horizontalement */
  width: 100%; /* S'assure que le titre prend toute la largeur du conteneur */
}

.atelier-images {
  flex: 1 1 300px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.atelier-images img {
  width: 100%;
  height: 250px;
  min-height: 250px;
  max-width: 700px; /* limite la largeur max de chaque image */
  align-self: center; /* centre les images à l'intérieur de la colonne */
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.atelier-texte,
.atelier-text {
  flex: 1 1 45%;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 10px;
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 30px auto 30px;
}

.atelier-texte ul {
  list-style-position: inside;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  padding-left: 20px; /* Ajoute un peu de marge à gauche pour la liste */
}

.bloc-map {
  margin-top: 15px;
  align-self: center;
}



/* === Responsive Page Infos Pratiques === */
@media (max-width: 768px) {

.cadre {
  width: 100%;
  height: 40vh;
  overflow: hidden;
  }

.acces-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  }

.atelier-wrapper {
  flex-direction: column;
  align-items: center;
}

.atelier-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
    margin: 10px auto;
  }

  .atelier-images {
    width: 100%;
    align-items: center;
    max-width: 500px; /* Limite la largeur des blocs pour une meilleure lecture */
  
  }

  .atelier-images img {
    height: auto; /* Permet aux images de s'ajuster en hauteur */
    max-width: 100%;
  }

  .atelier-texte,
  .atelier-text {
    width: 100%;
    margin: 10px auto;
  }

  .atelier-texte ul {
  list-style-position: inside;
}



    /* Rendre la carte Google Maps responsive */
    .bloc-map iframe {
        width: 100%;
        height: 300px;
    }
}

#ateliers-content {
  display: flex;
  justify-content: center;
  padding: 0;
  border: none; /* Supprime toute bordure si elle existe */
  width: 100%;
  box-sizing: border-box;
}

.bloc {
  display: flex;
  max-width: 350px;
}

/* Page A PROPOS */

.photo {
    display: flex;  /* Active la flexbox et  Aligne les images en ligne */
    justify-content: center; /* Centre les images horizontalement */
    gap: 5px; /* Ajoute un espace entre elles */
    margin-bottom: 50px;

}

.photo img {
 flex: 1 1 23%; 
    height: auto;
    object-fit: cover;
    min-width: 200px;
}

body.apropos {
  margin-top: 10px;

}

body.apropos .cadre {
  margin-top: 120px;
}

.portrait {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.portrait img {
  max-width: 300px;    /* Limite la largeur à 300px */
  height: auto;        /* Hauteur proportionnelle */
  object-fit: cover;   /* Ou "contain", selon le rendu souhaité */
  border-radius: 10px; /* Optionnel : pour un style plus doux */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optionnel : ombre douce */
}

.apropos-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;

}

.apropos-image {
  flex-shrink: 0;
}

.apropos-image img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.apropos-texte {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
  background-color: #f4f4f4;
  padding: 20px 5%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.medium1 {
  display: flex;
  width: 100%;
  height: auto;
  align-items: center;
  margin: 20px auto;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

/* Style du conteneur du carrousel pour la page "À Propos" */
.carousel-container-apropos {
    position: relative;
    width: auto;
    max-width: 800px;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
}

/* Style de la diapositive du carrousel */
.carousel-slide-apropos {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
}

.carousel-item-apropos {
    min-width: 100%; /* Définit la largeur de chaque élément à 100% du conteneur */
    flex-shrink: 0;
    margin: 0;
}

/* Style des images */
.carousel-item-apropos img {
    width: 100%;
    height: 400px; 
    object-fit: contain;
    

}

/* Responsive Page A PROPOS */

@media (max-width:900px) {

  .cadre {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  .photo {
    display: flex;
    overflow-x: auto;
    justify-content: center; /* Centre les images horizontalement */
    gap: 5px; /* Ajoute un espace entre elles */
    margin-bottom: 50px;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .photo img {
    width: 75vw;
    height: 200px;
    object-fit: cover;
    max-width: 300px;
    min-width: 0;
    flex-shrink: 0;
  }

  .apropos-row {
    flex-direction: column;
  }


  .apropos-texte {
    width: 100%;
    margin-right: 30px;
  }

}

/* Page CONTACT */

/* Formulaire de contact*/

h3 {
    text-align: center;
}

.form-container {
    display: flex;
    margin-bottom: 30px;
    justify-content: center;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding: 40px;
}

.form {
    flex-direction: column;
    align-content: center;
    width: 50%;
    padding: 10px;
}

.image-container {
    width: auto;
    height: 100%;
}


label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

input, textarea {
    width: 90%; /* Réduit la largeur des champs */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.bouton {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
}

.nous {
    width: 300px; /* Définissez la largeur souhaitée */
    height: 300px; /* Définissez la hauteur souhaitée, identique à la largeur pour un cercle parfait */
    border-radius: 50%; /* Rend les coins de l'image arrondis pour former un cercle */
    object-fit: cover; /* Assure que l'image couvre entièrement l'espace sans déformation */
    
    position: absolute;        /* Sort l’élément du flux normal */
    top: 20px;                 /* Légère marge en haut */
    left: 20px;                /* Légère marge à gauche */
    z-index: 10;               /* Pour qu’elle soit bien  */ 
}

.image-container {
    height: 80%;
}
        /* Nécessaire pour que `.nous` se positionne par rapport au body */


.contact h1 {
  margin-top: 20px; /* ajuste cette valeur selon ton besoin */
}

body.contact main {
    margin-top: 100px;
}

/* Responsive Page Contact */
@media (max-width: 1000px) {
  .form-container {
    flex-direction: column; /* Le formulaire et l'image s'empilent */
    padding: 20px;
  }

  .form {
    width: 100%; /* Le formulaire prend toute la largeur */
  }

  .form-container .image-container {
    display: none; /* Cache l'image sur mobile pour gagner de la place */
  }
  
  /* Masque l'image "nous" pour éviter qu'elle ne se superpose au contenu */
  .nous {
    display: none;
  }
}