.titre {
    font-size: 12px;
    margin-top: 7rem;
    margin-left: 2rem;
    background-color: #DD5643;
    width: 20%;
    border: none;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 768px) {
  .titre {
      width: 90%; /* Ajuster la largeur pour les petits écrans */
      margin: 15px 20px;
      
  }
}

.titre2 {
    font-size: 12px;
    margin-top: 2rem;
    margin-left: 2rem;
    background-color: #DD5643;
    width: 20%;
    border: none;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 768px) {
  .titre2 {
      width: 90%; /* Ajuster la largeur pour les petits écrans */
      margin: 15px 20px;
      
  }
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 60px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    transform: translateX(-33.33%);
}

.carousel-slide {
    min-width: calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    bottom: 10px;
    transform: none;
    border: none;
    padding: 25px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    color: #ffd000;
    background: none;
}

.carousel-button:hover {
    color: #ffd000;
}

.carousel-button.prev {
    left: 50px;
}

.carousel-button.next {
    right: 50px;
}

/* Style de la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}




.Descri-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 4rem;
    width: calc(100% - 8rem);
}

.image-row {
    display: flex;
    gap: 20px;
    position: absolute;
    top: -40px;
    left: 5px;
    z-index: 2;
}

.image-row img {
    width: 120px;
    height: auto;
}

.container {
    background-color: #ffd000;
    border-radius: 20px;
    padding: 20px;
    padding-top: 50px;
    width: 100%;
    font-size: 120%;
    position: relative;
    z-index: 1;
}



  /* Texte défilant */
  .messagedefilant {
    font-family: 'Lovelo';
    display: block;
    margin: auto;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 60px;
    color : white;
  }
   
  .messagedefilant div {
    position: absolute;
    min-width: 100%; /* au minimum la largeur du conteneur */
  }
   
  .messagedefilant div span, 
  .messagedefilant div:after {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    white-space: nowrap;
    top:0;
  }
   
  .messagedefilant div span {
    animation: defilement 45s infinite linear;
    background-color: #ffd000;
  }
   
  .messagedefilant div:after {
    position: absolute;
    top:0; left:0;
    content:attr(data-text);
    animation: defilement2 45s infinite linear;
    background-color: #ffd000;
  }
   
  @keyframes defilement {
    0% { margin-left: 0; }
    100% { margin-left: -100%; }
  }
   
  @keyframes defilement2 {
    0% { margin-left: 100%; }
    100% { margin-left: 0%; }
  }



  .image-text-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 4rem;
}

.image-container {
    flex: 0 0 40%;
    position: relative;
}

.image-container img {
    width: 80%;
    height: auto;
    border-radius: 10px;
}

.text-container {
    flex: 0 0 60%;
}

.image-main,
.image-hover {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-container:hover .image-hover {
    opacity: 1;
}

.image-container:hover .image-main {
    opacity: 0;
}

@media (max-width: 768px) {
  .image-text-section {
      display: flex; /* Utiliser flexbox pour le conteneur */
      flex-direction: column; /* Empiler les éléments verticalement */
      align-items: right; /* Centrer les éléments horizontalement */
  }

  .image-container {
      order: 1; /* Placer l'image en premier */
      width: 100%; /* Ajuster la largeur de l'image pour les petits écrans */
      margin-bottom: 15px; /* Ajouter de l'espace entre l'image et le texte */
  }

  .text-container {
      order: 2; /* Placer le texte après l'image */
      width: 90%; /* Ajuster la largeur du conteneur de texte */
      text-align: left; /* Centrer le texte */
      margin: 1%;
  }

  .image-main, .image-hover {
      width: 100%; /* S'assurer que les images s'adaptent à la largeur du conteneur */
      height: auto; /* Conserver les proportions de l'image */
  }
}




.button-container {
    display: flex;
    justify-content: space-between; /* Espace les boutons */
    margin: 30px 20px; /* Espace autour des boutons */
  }
  
  .prev-project-btn, .next-project-btn {
    display: inline-flex; /* Permet d'aligner le texte et l'icône */
    align-items: center; /* Alignement vertical du texte et de l'icône */
    padding: 10px 20px;
    border: none;
    background-color: #DD5643;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .prev-project-btn:hover {
    transform: translateX(-5px);
  }
  
  .next-project-btn:hover {
    transform: translateX(5px);
  }
  
  .arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin: 0 10px; /* Espace autour de la flèche */
  }
  
  .left {
    border-right: 8px solid white;
  }
  
  .right {
    border-left: 8px solid white;
  }
  