/* === Reset global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Bandeau principal === */
.bandeau {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 100000; /* Bandeau principal doit passer au-dessus du reste */
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 30px;
}

.seo-hidden {
  font-size: 0;
  visibility: hidden;
  height: 0;
}

.seo-intro p {
  font-size: 1em;
  font-family: 'calibri';
  color: #333;
  margin: 1em 20px;
}

.container {
  display: flex;
  align-items: flex-end; /* Aligner les éléments en bas du bandeau */
  width: 100%;
}

/* Logo et ligne de séparation */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-line {
  height: 30px;
  width: 2px;
  background-color: #333;
  margin-left: 1rem;
  margin-right: 0.5em;
}

/* Titre et sous-titre alignés à gauche */
.title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 1em;
}

.company-title {
  font-size: 2.2rem;
  font-weight: bold;
  font-family : 'Microsoft Yi Baiti'; 
  color: #333;
  margin: 0;
  text-align: left;
  line-height: 0.8;
  padding-left: 0;
}

.company-subtitle {
  font-size: 0.8rem;
  font-weight: normal;
  font-family: 'calibri';
  color: #333;
  margin: 0;
  text-align: left;
  margin-top: 0.5em;
  line-height: 1.2;
  padding-left: 0;
}

/* === Onglets === */
.navigation {
  flex-grow: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1em;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight:bold;
  font-family: 'calibri';
  font-size: 0.8;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2d6a4f;
}

/* === Onglet Méthode - Déploiement du sous-menu === */
.nav-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  border-radius: 4px;
  min-width: 180px;
  z-index: 1100; /* Le sous-menu doit apparaître par-dessus tout le reste */
}

.nav-item:hover .submenu {
  display: block;
}

.submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li {
  padding: 5px 20px;
}

.submenu a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
  display: block;
  transition: color 0.3s ease;
}

.submenu a:hover {
  color: #2d6a4f;
}

.submenu li:not(:last-child) {
  margin-bottom: 5px;
}

.submenu li:not(:last-child):after {
  content: "";
  display: block;
  margin-top: 5px;
  border-top: 1px solid #d3d3d3;
}

.text-sources {
  font-size: 1em;
  font-family: 'calibri';
  color : rgb(49, 48, 48); 
}

.copyrights {
  font-family: 'calibri';
  font-size: 1em; 
}

.copyrights a {
  text-decoration: none;
  color: white;
}

/* === Pied de page === */
.footer {
  background-color: rgb(133, 133, 133);
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin-top: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-links img {
  height: 40px;
  width: 40px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.footer-links a:hover img {
  color: #2d6a4f;
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(25%) sepia(64%) saturate(460%) hue-rotate(90deg);
}



/* === Contenu principal === */
.hero {
  position: relative;
  height: 100vh;
  margin-top : 4%;
  margin-bottom: 1%;
  background-image: url('_MG_7207.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  color: white;
  font-size: 6rem;
  font-family: 'Microsoft YI Baiti';
  margin: 0;
}

.hero-subtitle {
  color: white;
  font-size: 1.5rem;
  font-family: 'calibri';
  margin: 10px 0;
}

.hero-button {
  font-size: 1.2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 20px;
  padding: 10px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: calc(1.5 * 1.5rem);
}

.hero-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

 @media screen and (max-width: 800px) {
  .bandeau {
    padding: 5px 10px;
  }

  .container {
    display : flex; 
    align-items : flex-end ; 
  }

  .logo-container {
    display: flex;
    align-items: flex-end;
  }

  .logo-image {
    height: 100%; /* Prend toute la hauteur du container */
    width : auto;  /* Pour éviter une déformation exagérée */
    max-width:  70px; 
    object-fit: contain;
  }

  .title-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%; /* s'aligne à la hauteur du logo si les hauteurs sont égales */
  }

  .company-title {
    font-size: 1.25rem;
  }

  .company-subtitle {
    font-size: 0.55rem;
    max-width: 95%; /* Réduction largeur */
  }

  .nav-links {
   flex-wrap: wrap; 
    align-self: flex-start;
    gap: 0.5em;
    font-size: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .logo-line {
    height: 60px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    align-items: flex-start;
  }
}

@media screen and (max-width: 800px) {
  .hero {
    padding: 10%; 
  }

  .hero-title {
    font-size: 4rem; /* 75% de 6rem */
  }

  .hero-subtitle {
    font-size: 1.2rem; /* 75% de 6rem */
  }
}


 @media screen and (max-width: 450px) {

  .footer {
    padding: 5px 0;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin-top: 2px;
  }

  .footer-links img {
    height: 20px;
    width: 20px;
  }

  .text-sources {
    font-size: 0.65rem;
    margin-top: 5px;
  }

  .copyrights {
    font-size: 0.65rem;
    padding: 0 5px;
  }
}

/* === Section de mise en page systématique ==== */
.page-title {
  font-size: 3.5vh;
  font-family: 'Microsoft Yi Baiti';
  color: #333;
  text-align: left;
  text-decoration: none;
  margin-bottom: 20px;
}

.page-subtitle{
  font-size: 2vh;
  font-family: 'montserrat';
  font-weight: 600;
  margin-bottom: 10px;
}

.page-description h2 {
  font-size: 2vh;
  font-family: 'montserrat';
  font-weight: 600;
  margin-bottom: 10px;
}

.page-description {
  font-size: 2vh;
  font-family: 'calibri';
  text-align: left;
  margin-bottom: 40px;
}


/* === Section Portrait === */
.portrait {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  background-color : #f4f4f4;
}

.portrait-content {
  display: flex;
  width: 100%;
  max-width: 100vw;
  margin-top: 100px;
  margin-bottom: 3%;
  padding: 0 15px;
  box-sizing: border-box;
  justify-content: space-between;
}


/* === Flex 1 : Diaporama === */
.portrait-left {
  flex: 1 1 34%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.portrait-image {
  position: relative; 
  flex : 0 0 33vw;  
  justify-content: center; 
  align-items: flex-start;
  width: 100%;
  min-height: 125vh; 
  height: 100%; 
  object-fit: cover;
  overflow: hidden;

}

.portrait-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.portrait-image-slide {
  position: absolute;
  width: 100% ;
  height: 100%; 
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.portrait-image-slide.active {
  opacity: 1;
}

/* === Indicateurs de diaporama === */
.carousel-indicators-portrait {
  position: absolute;
  bottom: 20px; /* 20px du bas de flex 1 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px; /* Espacement entre les boules */
  z-index: 9999; /* Les boules doivent apparaître par dessus les images */
}

.dot-portrait {
  width: 14px;
  height: 14px;
  background-color: white;
  border: none; 
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.3s ease-in-out;
}

.dot-portrait.active {
  background-color: brown; /* Couleur de la boule active */
}

.dot-portrait:hover {
  background-color: #2d6a4f; /* Changement de couleur au survol */
}

/* === Flex 2 : Texte === */
.portrait-center {
  justify-content: left;
  align-items: flex-start;
  padding: 20px;
  min-width: 30vw; 
  min-height : 40vw;
  margin-left: 20px;
  background-color: #dfe0de;
  border-radius: 4px;
  color: #333;
  line-height: 1.5;
  flex: 1 1 40vw;
  box-sizing: border-box;
}

.portrait-text {
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}

.portrait-title {
  font-size: 2.5em;
  font-family: 'Microsoft Yi Baiti';
  color: #333;
  text-align: left;
  text-decoration: none;
  margin-bottom: 20px;
  text-decoration: none;
}

.portrait-subtitle {
  color: #333; 
  font-size: 1.1em;
  font-family: 'montserrat';
  font-weight: 600;
  margin-top: 0.5em;
  margin-bottom : 0.25em;
}

.portrait-description {
  font-size: 1.1em;
  font-family: 'calibri';
  text-align: left;
  margin-bottom: 1em;
  color: #333; 
}

.portrait-description a {
  color: #2d6a4f;
}

.bio h2, .parcours h2, .vision h2 {
  font-size: 1em;
  font-family: 'montserrat';
  font-weight: 600;
  margin-bottom: 10px;
}


p.portrait-description {
  margin-top: 0.5em;
}

ul li.portrait-description {
  margin-top: 0.5em;
  position: relative; 
  margin-left : 5%;
  left: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}

ol li.portrait-description {
  margin-top: 0.5em;
  position: relative; 
  margin-left : 5%;
  left: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}


/* === Flex 3 : Logo et texte sous le logo === */
.portrait-right {
  flex: 1 1 26vw;
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 15px;
  margin-left: 20px;
  min-height : 100vh;
  background-color:#dfe0de;
  color: #333;
  line-height: 1.5;
  border-radius: 4px;
  box-sizing: border-box;
  z-index: 2; 
}

.portrait-logo-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px; 
}


@media screen and (max-width: 800px) {
  .portrait-content {
    flex-direction: column;
    gap: 5px;
  }

  .portrait-left {
  display: block;
  min-height: 125vw;
  aspect-ratio: 1/1;
  position: relative;
}

.portrait-image-slide {
  position: absolute;
  width: 100%;
  height: 100%;
}

.portrait-image-slide.active {
  opacity: 1;
}

  .portrait-left,
  .portrait-center,
  .portrait-right {
    width: 100%;
    margin: 5px 0;
    flex: 1 1 auto;
  }

  .portrait-image {
    height: auto;
    min-height: unset;
  }

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

  .portrait-center,
  .portrait-right {
    padding: 10px;
    font-size: 0.75em;
  }

  .portrait-center .page-title {
    font-size: 2em; /* titre réduit mais encore lisible */
  }

    .portrait-right h2,
  .portrait-center h2 {
    font-size: 1.1em;
  }

    .portrait-center .page-description,
  .portrait-right .page-description {
    font-size: 1em;
  }

}



/* Second bandeau fixe pour navigation des sections */
.sub-navigation {
  position: fixed;
  top: 80px;  /* Ajuste selon la hauteur du premier bandeau */
  left: 0;
  width: 100%;
  background-color: #f8f9fa;  /* Peut être ajusté pour correspondre à l'esthétique */
  z-index: 999;  /* Assurez-vous que le second bandeau est au-dessus du contenu */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Ombre pour le rendre distinct */
}

.sub-nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  font-family: 'calibri';
  font-weight: bold; 
  font-size: 1rem;
  gap: 2em;
  padding: 10px 0;
}

.sub-nav-links li {
  font-weight: bold;
}

.sub-nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.sub-nav-links a:hover {
  color: #2d6a4f;
}

main {
  margin-top: 0; /* Suppression de tout espace inutile */
}

/* === Grille des projets === */
.project-container-wrapper {
  width: 100%;
  margin-top: 0;
  margin-bottom: 3%;
  display: flex;
  justify-content: center; /* Centre le contenu des projets */
}

.project-container {
  margin-top: 120px; /* Décalage pour que le contenu commence après le bandeau */
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
  padding: 1%;
  box-sizing: border-box;
  justify-content: center; /* Centre les éléments de la grille */
}

.project-item {
  position: relative;
  flex: 1 1 calc(33.33% - 1%); /* 3 éléments par ligne avec un écart de 1% */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* Largeur du titre égale à celle de l'image */
  height: auto;
  max-height: 80vh; 
  aspect-ratio: 1;
  margin-top: 20px; /* Espacement entre l'image et le titre */
  margin-bottom: 2px; /* Espacement entre le titre et l'interligne */
  transition: background-color 0.3s ease;
  text-decoration: none; /* Pas de soulignement */
}

/* Superposition de la couleur de fond vert foncé sur l'image */
.project-item:hover::before {
  content: ""; /* Nécessaire pour afficher l'élément */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2d6a4f; /* Vert foncé */
  z-index: 1; /* Assurez-vous que la couleur de fond recouvre l'image */
  opacity: 0.95; /* Ajustez l'opacité pour rendre l'effet plus subtil */
  transition: opacity 0.3s ease;
}

/* Texte qui devient blanc lors du survol */
.project-item :hover {
  color: white;
}

/* Description qui apparaît et devient centrée dans chaque carré au survol */

.project-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'calibri'; 
  font-size: 0.8em;
  max-height: 80vh; 
  color: white;
  opacity: 0; /* Masquer le texte par défaut */
  transition: opacity 0.3s ease;
  text-align: center;
  z-index : 2; 
}

.project-item:hover .project-description {
  opacity: 1; /* Afficher le texte au survol */
}

/* Supprimer le soulignement par défaut pour les liens */
a {
  text-decoration: none;
}

/* Image de chaque projet avec hauteur fixe */
.project-image {
  height:100%; 
  width: 100%; /* 100% de la largeur de chaque .flex-item */
  object-fit: cover; /* Assure que l'image couvre l'espace sans déformation */
}

/* Titre sous chaque image */
.project-title {
  width: 100%; /* Largeur du titre égale à celle de l'image */
  text-align: center;
  font-family: 'calibri light';
  font-size: 1.5vh; /* Taille du titre */
  margin-top: 2px; /* Espacement entre l'image et le titre */
  margin-bottom: 2px; /* Espacement entre le titre et l'interligne */
  color: #525252; /* Couleur du texte */
  font-weight: bold;
  text-decoration: none;
}

@media screen and (max-width: 800px) {
  .project-container {
    flex-direction: column;
    gap: 10px;
    margin-top: 110px; /* conserve l'espace sous le header */
  }

  .project-item {
    flex: none;
    aspect-ratio: 1;
    width: 100%;
    margin: 5px 0;
    overflow: hidden;
    text-align: center;
  }

  .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
  }

  .project-title,
  .project-description {
    font-size: 0.9rem;
    padding: 5px 10px;
    text-align: center;
    z-index : 1000;
  }

  .project-description {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .project-item.show-description .project-description {
    display: block;
    opacity: 1;
  }

  .sub-nav-links {
    font-size: 0.65rem;
    gap: 1em;
    padding: 5px 0;
  }

}


/* === Section Méthode === */
.methode-container {
  display: flex;
  flex-wrap: wrap; 
  gap : 20px; 
  margin-top: 100px;
  margin-bottom : 3%; 
  min-height: calc (100vh-80px);
  box-sizing: border-box;
  justify-content: space-between;
}

/* === Flex 1 : Carrousel === */
.flex1-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%; 
  height : 85vh;
  margin-bottom : 20px;  
}

.flex1 {
  margin-top : 20px;
  margin-left: 20px; 
  margin-right: 20px; 
  position: relative;
  width: 100%; /* Diaporama occupe 100% de la largeur de flex1 */
  height: 100%; /* Hauteur de flex1 */
  overflow: hidden; /* Pour éviter les débordements */
}

.flex-item {
  position: relative;
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height : auto; 
}

/* === Indicateurs cliquables === */
.carousel-indicators {
  position: absolute; /* Positionner les indicateurs par-dessus le carrousel */
  bottom: 40px; /* Position en bas du carrousel */
  left: 50%;
  transform: translateX(-50%); /* Centrage horizontal */
  display: flex;
  gap: 10px;
  z-index: 10000; /* S'assurer qu'elles sont au-dessus de tout autre élément */
  pointer-events: all; /* Permet aux boules d'être totalement cliquables */
}


.dot-methode1 {
  width: 14px;
  height: 14px;
  background-color: white;
  border: none; 
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.3s ease-in-out;
}

.dot-methode1.active {
  background-color: brown ;  /* Couleur de fond plus marquée */
}


.dot-methode1:hover {
  background-color: #2d6a4f; /* Changement de couleur au survol */
}


/* Carrousel d'images */
.carousel {
  width: 100%;
  height : 100%; 
  display : flex; 
  position: relative; /* Garder le carrousel derrière les boules */
  z-index: 1; /* S'assurer que le carrousel reste en dessous des boules */
}

.carousel-image {
  position: absolute;
  width: 100%;
  height : 100%; 
  border-radius: 4px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

/* === Superposition des cadres cliquables === */
.methode-overlay {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  z-index: 50; /* Au-dessus du carrousel */
  padding: 0 15px;
}

/* Demi-page gauche et droite */
.methode-left, .methode-right {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 20;
}

/* Cadres cliquables */
.methode-box {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 35px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  min-height: 120px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
  text-decoration: none;
}

.methode-box:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.0);
}

.methode-button-title {
  font-size: 2em;
  font-family: 'Microsoft Yi Baiti';
  color: #333;
  text-align: center;
  text-decoration: none;
  margin-bottom: 20px;
  text-decoration: none;
}

.methode-separator {
  position: absolute;
  left: 50%;
  top: 30%;
  bottom : 30%; 
  width: 2px;
  background-color: white;
  transform: translateX(-50%);translateY(50%); 
  z-index: 5;
}

/* === Flex 2 : Image avec texte === */

.flex23-container{
  display : flex;
  width : 100%; 
  max-width: 100vw;
  box-sizing: border-box; 
  justify-content : space-between;
  padding : 0 20px;
}

.flex2 {
  flex : 1 1 33%;  
  height: 100%; 
  position: relative; 
  overflow: hidden;
}

.flex2-image {
  width : 100%;
  height : 100%;
  border-radius: 4px;  
  object-fit: cover; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flex-image-slider{
position: relative;
width: 100%;
height: 110vh;
}

.flex2-image-slide {
  position: absolute;
  width: 100% ;
  height: 100%; 
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.flex2-image-slide.active {
  opacity: 1;
}

.flex2-image-slide {
  transition: opacity 1s ease-in-out;  /* Transition fluide */
}


.dot-methode2 {
  width: 14px;
  height: 14px;
  background-color: white;
  border: none; 
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.3s ease-in-out;
}

.dot-methode2.active {
  background-color: brown;  /* Couleur de fond plus marquée */
}


.dot-methode2:hover {
  background-color: #2d6a4f; /* Changement de couleur au survol */
}

/* === Flex 3 : Fond beige et contenu textuel === */

.flex3 {
  flex: 1 1 65%;
  display: flex; 
  flex-direction: column;
  justify-content: flex-start; 
  padding : 20px; 
  margin-left : 20px; 
  min-height: 90vh; 
  background-color: #f4f4f4; /* Fond beige */
  color: #333;
  font-size : 1.2 em; 
  line-height: 1.5;
  border-radius: 4px; 
  z-index: 2; 
}


.methode-text {
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}

/* Titres cliquables */
.methode-title {
  font-size: 2.5em;
  font-family: 'Microsoft Yi Baiti';
  color: #333;
  text-align: left;
  text-decoration: none;
  margin-bottom: 20px;
  text-decoration: none;
}

.methode-subtitle {
  color: #333; 
  font-size: 1.1em;
  font-family: 'montserrat';
  font-weight: 600;
  margin-top: 1.1em;
  margin-bottom : 0.25em;
}

.methode-description {
  font-size: 1.1em;
  font-family: 'calibri';
  text-align: left;
  margin-bottom: 40px;
  color: #333; 
}

p.methode-description {
  margin-top: 1em;
}

ul li.methode-description {
  position: relative; 
  margin-left : 5%;
  left: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}

ol li.methode-description {
  margin-top: 0.5em;
  position: relative; 
  margin-left : 5%;
  left: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}

.flex2, .flex3 {
  box-sizing: border-box; 
}

.methode-title, .methode-description {
  margin: 0;
  padding:0; 
}

@media screen and (max-width: 800px) {

.methode-title {
  font-size: 2em;
  line-height: 1.4;
  margin-bottom: 0.5em;
  padding: 0;
}

.methode-subtitle {
  font-size: 1em;
  line-height: 1;
  margin-bottom: 0.5em;
  padding: 0;
}

.methode-description {
  font-size: 0.75em;
  line-height: 1.4;
  margin-bottom: 0.5em;
  padding: 0;
}

.methode-button-title {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  padding: 0;
}

.methode-box {
  width: 90%;
  max-width: 300px;
  margin: 0 auto;
}

.flex23-container {
  flex-direction: column;
  gap: 5px;
  margin-top: 5px; 
  padding: 0 10px;
}



.methode-overlay {
  flex-direction: column;
  align-items: center; /* centre horizontalement les .methode-box */
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.methode-left,
.methode-right {
  width: 100%;
  display: flex;
  justify-content: center; /* centre horizontalement la .methode-box */
  align-items: center;
  padding: 0;
}

.methode-separator {
  display: none;
}

.flex3 {
  order: 2;
  width: 100%;
  margin-left: 0;
  margin-bottom: 10px; 
  padding: 10px;
  min-height: 120vw; 
}

.flex2 {
  order: 3;
  width: 100%;
  height: auto;
  min-height: 120vw;
  margin-bottom: 10px; 
}

.flex2-image-slider {
  height: 80vw;
}

.flex2-image {
  height: 100%;
}

  .methode-container {
  display: flex;
  flex-wrap: wrap; 
  gap : 20px; 
  margin-top: 80px;
  margin-bottom : 3%; 
  min-height: calc (100vh-80px);
  box-sizing: border-box;
  justify-content: space-between;
}

.flex1-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%; 
  height : 125vw;
  margin-bottom : 10px;  
}

.flex1 {
  margin-top : 10x;
  margin-left: 10px; 
  margin-right: 10px; 
  position: relative;
  width: 100%; /* Diaporama occupe 100% de la largeur de flex1 */
  height: 100%; /* Hauteur de flex1 */
  overflow: hidden; /* Pour éviter les débordements */
}
}


/* === Flex méthode privée : Image avec texte === */

.methodeprivee-container {
  display: flex;
  flex-wrap: wrap; 
  gap : 20px; 
  margin-top: 100px;
  margin-bottom : 3%; 
  min-height: calc(100vh - margin-top);
}

.flexprivee-container{
  display : flex;
  width : 100%; 
  max-width: 100vw;
  box-sizing: border-box; 
  justify-content : space-between;
}

.fleximageprivee {
  flex : 1 1 33%;  
  height: 100%; 
  position: relative; 
  overflow: hidden;
  margin-left : 20px; 
}

.fleximageprivee-image {
  width : 100%;
  height : 100%;
  border-radius: 4px;  
  object-fit: cover; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fleximageprivee-image-slider{
position: relative;
width: 100%;
height: 100%;
}

.fleximageprivee-image-slide {
  position: absolute;
  width: 100% ;
  height: 100%; 
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fleximageprivee-image-slide.active {
  opacity: 1;
}

.fleximageprivee-image-slide {
  transition: opacity 1s ease-in-out;  /* Transition fluide */
}


.dot-methodeprivee {
  width: 14px;
  height: 14px;
  background-color: white;
  border: none; 
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.3s ease-in-out;
}

.dot-methodeprivee.active {
  background-color: brown;  /* Couleur de fond plus marquée */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);  /* Ajout d'une ombre pour accentuer */
}


.dot-methodeprivee:hover {
  background-color: #2d6a4f; /* Changement de couleur au survol */
}

.flexethique-container {
  display: flex;
  flex-direction: row; /* Alignement horizontal */
  justify-content: space-between;
  align-items: flex-start;
  width: 100%; 
  margin-right: 20px; 
  margin-left : 20px;
  padding : 20px; 
  background-color: #f4f4f4; /* Fond clair pour séparation */
  border-radius: 8px;
  box-sizing: border-box;
}

/* === Flex texte privee : Fond beige et contenu textuel === */

.flextexteprivee {
  flex: 1 1 64%;
  display: flex; 
  flex-direction: column;
  justify-content: flex-start; 
  padding : 20px; 
  margin-left : 20px; 
  margin-right : 20px; 
  min-height: 90vh; 
  max-width: 100%;
  background-color: #f4f4f4; /* Fond beige */
  color: #333;
  line-height: 1.5;
  border-radius: 8px; 
  overflow-wrap : break-word;
  word-wrap: break-word;
  white-space: normal; 
  box-sizing: border-box;
  z-index: 2; 
}

.fleximageprivee, .flextexteprivee {
  box-sizing: border-box; 
}

.methodeprivee-text {
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  max-width: 100%;
  overflow-wrap : break-word;
  word-wrap: break-word;
  white-space: normal; 
  box-sizing: border-box;
}

/* Titres cliquables */
.methodeprivee-title {
  font-size: 1.8rem;
  font-family: 'Lora', serif;
  color: #333;
  font-weight: bold;
  text-align: center;
  white-space: pre-line;
  text-decoration: none;
}

.methodeprivee-description {
  font-size: 1.1em; 
  line-height: 1.6; 
  color: #333; 
  max-width: 100%;
  overflow-wrap : break-word;
  word-wrap: break-word;
  white-space: normal; 
  box-sizing: border-box;
}


@media screen and (max-width: 800px) {
  .flexprivee-container {
    display: flex;
    flex-direction: column; 
    min-height: 100vw;
    gap: 20px;
    padding: 0 10px;
    margin: 0 auto;
  }

  .fleximageprivee,
  .flextexteprivee {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .fleximageprivee {
    min-height: 125vw;
  }

  .flextexteprivee {
    height: auto;
    min-height: unset; 
    max-height: unset; 
    overflow: visible; 
    box-sizing: border-box; 
    padding: 10px;
  }

  .flexethique-container {
    flex-direction: column;
    padding: 0;
    margin-left: 10px;
    margin-right: 10px; 
  }

  .methode-text {
    margin-top: 0;
    padding: 10px; 
  }
}

/* === Flex projet exemple : Image avec texte === */

.projetpresente-container {
  display: flex;
  flex-wrap: wrap; 
  gap : 1%; 
  margin-top: 125px;
  margin-bottom : 1%; 
  height: calc(100vh - margin-top);
}

.flexprojetpresente-container{
  display : flex;
  justify-content: space-between; 
  align-items : stretch; 
  gap: 1vw; 
  flex-wrap: wrap; 
  width: 100vw; 
  max-width : 100vw; 
  box-sizing: border-box; 
  margin-left : 20px; 
  margin-bottom: 10px; 
}

.wrapper-projetpresente-image{
  position: relative; 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  min-height: 40vw; 
  background-color: rgb(238, 238, 238); 
  border: 3px, rgb(62, 68, 62);
  border-radius: 4px; 
  flex: 0 0 40vw; 
  box-sizing: border-box;
}


.flexprojetpresente {
  position: relative; 
  flex : 0 0 40vw;  
  aspect-ratio: 1 / 1;
  justify-content: center; 
  align-items: flex-start;
  min-width : 30vw;
  max-width : 50vw; 
  height: 40vw; 
  aspect-ratio: 1/1; 
  overflow: hidden;
}

.flexprojetpresente-image {
  width : 100%;
  height : 100%;
  object-fit: cover; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flexprojetpresente-image-slider{
position: relative;
width: 100%;
}

.flexprojetpresente-image-slide {
  position: absolute;
  width: 100% ;
  height: 100%; 
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.flexprojetpresente-image-slide.active {
  opacity: 1;
}

.flexprojetpresente-image-slide {
  transition: opacity 1s ease-in-out;  /* Transition fluide */
}

/* === Indicateurs de diaporama === */
.carousel-navigation {
  position: absolute;
  bottom: 1%; /* Positionnement dans le bas du flex image */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; /* Une flèche à gauche, une à droite */
  align-items: center;
  padding : 10px;
  z-index: 10;
}

.prev-projet, .next-projet {
  font-size: 2rem;
  color: white; 
  background: none; 
  border: none; 
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}


/* Effet au survol : vert */
.prev-projet:hover, .next-projet:hover {
  color: #2d6a4f;
}

/* Effet au clic : rouge */
.prev-projet:active, .next-projet:active {
  color: brown;
  box-shadow:rgba(0, 0, 0, 0.2)
}


.carousel-indicators-projetpresente {
  position: absolute;
  bottom: 3%; 
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1vw; /* Espacement entre les boules */
  z-index: 10000; /* Les boules doivent apparaître par dessus les images */
  pointer-events: auto;
}

.dot-projet {
  width: 14px;
  height: 14px;
  background-color: white;
  border: none; 
  border-radius: 50%;
  box-shadow: none;
  transition: background-color 0.3s ease-in-out;
}

.dot-projet.active {
  background-color: #2d6a4f;  /* Couleur de fond plus marquée */
}

/* === Flex texte privee : Fond beige et contenu textuel === */

.flextexteprojet {
  flex: 1; 
  display: flex; 
  min-width : 40vw ;
  min-height: 40vw; 
  padding-top: 10px; 
  padding-left : 30px; 
  padding-right: 20px; 
  padding-bottom: 20px; 
  background-color: #f4f4f4; /* Fond beige */
  color: #333;
  margin-right : 20px; 
  border-radius: 8px; 
  z-index: 2; 
}

.fleximageprojet, .flextexteprojet {
  box-sizing: border-box; 
}

.project-text {
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}

/* Titres cliquables */
.projetpresente-title {
  font-size: 2em;
  font-family: 'Microsoft Yi Baiti';
  color: #333;
  text-align: left;
  text-decoration: none;
  margin-bottom: 10px;
}

.projet-subtitle {
  color: #333;
  font-size: 1.1em;
  font-family: 'montserrat';
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 15px;
}

.projet-description {
  font-size: 1em;
  font-family: 'calibri';
  text-align: left;
  color: #333; 
  margin-bottom: 5px;

}

ul li.projet-description {
  position: relative; 
  margin-left : 5%;
  left: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}


.projet-mentions-legales {
  font-size: 0.8em;
  font-family: 'calibri';
  text-align: left;
  margin-bottom: 1em;
  color: #333; 
}

.projet-mentions-legales  a {
  text-decoration: none;
  color: #2d6a4f;
  font-style: oblique;
}

/* === Nouveau Flexbox "Collab" sous l'image et le texte === */
.flexcollab-container {
  display: flex;
  flex-direction: row; /* Alignement horizontal */
  justify-content: space-between;
  align-items: flex-start;
  width: 100%; 
  margin-right: 20px; 
  background-color: #f4f4f4; /* Fond clair pour séparation */
  border-radius: 8px;
  box-sizing: border-box;
}

/* Conteneur des images */
.flexcollab-images {
  display: flex;
  flex: 1 1 40vw; 
  min-width: 20vw;
  max-width: 41vw;
  padding : 2vh; 
  aspect-ratio: 4/3;
  margin-right: 20px; 
  flex-direction: row;
  gap: 1vw; /* Espacement entre les images */
  overflow: hidden; 
}

/* Images des participants */
.flexcollab-image {
  height: 100%; 
  width: 100%; 
  object-fit: cover;
  overflow: hidden; 
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Conteneur du texte */
.flexcollab-text {
  flex: 1; /* Le texte prend le reste de l’espace */
  display: flex; 
  flex-direction: column;
  align-items: flex-start ; 
  justify-content : flex-start;  
  padding-top: 8px;
  padding-right: 20px; 
  padding-bottom: 20px; 
  color: #333;
}

@media screen and (max-width: 800px) {

  .projetpresente-container {
  display: flex;
  flex-wrap: wrap; 
  gap : 1%; 
  margin-top: 100px;
  margin-bottom : 3%; 
  height: calc(100vh - margin-top);
}

  .flexprojetpresente-container {
    flex-direction: column;
    align-items: flex-start;
    margin : 10px; 
  }

  .wrapper-projetpresente-image {
    width: 100%;
    height: auto;
    min-width : 90vw; 
    aspect-ratio: 1 / 1;
    flex: none;
    text-align : left; 
  }

  .flexprojetpresente {
  position: relative; 
  flex : 0 0 100vw;  
  aspect-ratio: 1 / 1;
  justify-content: center; 
  align-items: flex-start;
  min-width : 85vw;
  max-width : 95vw; 
  height: 95vw; 
  aspect-ratio: 1/1; 
  overflow: hidden;
  border-radius: 4px;
}
  
  .flexprojetpresente-image {
    width: 100%;
    height: auto; 
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }


  .flextexteprojet {
    width: 100%;
    margin: 0;
    padding: 10px;
    text-align : left; 
    font-size: 0.9em;
  }

  .flexcollab-container {
    flex-direction: column;
    padding: 10px;
  }

.flexcollab-images {
  display: flex;
  flex: 0 0 100vw; 
  min-width: 20vw;
  max-width: 90vw;
  max-height: 65vw; 
  padding : 2vh; 
  margin-right: 20px; 
  flex-direction: row;
  gap: 3vw; /* Espacement entre les images */
  overflow: hidden; 
}

  .flexcollab-image {
    width: 100%;
  }

  .flexcollab-text {
    width: 100%;
    padding-left: 0;
    font-size: 0.9em;
    text-align: left; 
  }

  .projetpresente-title {
    font-size: 1.5rem;
    text-align: center;
  }


  .projetpresente-title {
    font-size: 2em;
    text-align: left;
  }
 
  .projet-subtitle {
    font-size: 1em;
    text-align: left;
  }

 .projet-description {
    font-size: 0.9em;
    text-align: left;
  } 
  
} 



/* === Mise en page de la section Contact === */
.contact-container {
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: flex-start;
  justify-content: center;
  margin-top: 80px; 
  padding: 40px;
}

/* Colonne gauche : Formulaire et carte */
.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  height: 90%;
}

/* Ajout d'un espace équivalent à une ligne entre le formulaire et la carte */
.contact-form {
  flex: 1;
  padding: 20px;
  background: none;
  border: none;
  margin-bottom: 1em; /* Hauteur d'une ligne */
}

#submitBtn:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.thanks-form {
  flex: 1;
  padding: 20px;
  font-family:'calibri';
  background: none;
  margin-bottom: 1em;
}

.thanks-form h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.thanks-form p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}

.thanks-recap {
  margin-top: 1em;
  text-align: left;
  padding: 0.5em 1em;
  line-height: 1.5;
  background: none;
}

.thanks-recap h3 {
  font-size: 1.1rem;
  font-family: 'calibri';
  font-weight: bold;
  margin-bottom: 0.5em;
}

.thanks-recap p {
  margin: 0.3em 0;
  font-family: 'calibri';
  font-size: 0.95rem;
}


.contact-form h2 {
  font-size: 2vh;
  font-family: 'montserrat';
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Champs du formulaire */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border 0.3s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2d6a4f;
}

/* Bouton du formulaire */
.contact-form button {
  background-color: #2d6a4f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.contact-form button:hover {
  background-color: #1f4d34;
}

/* Ligne verticale centrale */
.vertical-divider {
  width: 2px;
  background-color: #ccc;
  height: 80%;
}

/* Colonne droite : Texte */
.contact-right {
  flex: 1;
  padding: 40px;
  text-align: left;
  font-family: 'calibri';
  font-size: 1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alignement en haut */
  align-items: flex-start; /* Alignement du texte sur la gauche */
}



/* Carte OpenStreetMap */
.contact-map {
  flex: 1;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  border: none;
}

/* Lien Google Maps */
.google-maps-link {
  color:  #333;
  text-decoration: none;
  font-weight: bold;
  font-family: Calibri;
  transition: color 0.3s ease-in-out;
}

.google-maps-link:hover {
  color: #2d6a4f; /* Vert foncé */
  
}

@media screen and (max-width: 800px) {
  .contact-container {
    flex-direction: column;
    padding: 20px 10px;
    height: auto;
    align-items: center;
    gap: 20px;
  }

  .contact-left, .contact-right {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .contact-form {
    padding: 10px;
    margin-bottom: 1em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1em;
  }

  .contact-form button {
    width: 100%;
    font-size: 1em;
  }

  .contact-map {
    height: 250px;
  }

  .vertical-divider {
    display: none;
  }

  .contact-right {
    padding: 10px;
    font-size: 0.95em;
  }

  .contact-right .page-description {
    margin-bottom: 20px;
  }
}
