* { margin: 0; padding: 0; box-sizing: border-box; }
    
    .mtt1 {
      margin-top : 40px;
    }
    .empat {
            letter-spacing: 1px;
        }
    .image-container {
      position: relative;
      width: 100%;
      height: 75vh;
      overflow: hidden;
      background-image: url('../Images/groupe1.png');
      background-size: cover;
      background-position: center;
    }
    .click-zone {
      position: absolute;
      top: 0;
      width: 50%;
      height: 100%;
      z-index: 3; /* Au-dessus de tout */
      cursor: pointer;
    }
    .click-zone.left { left: 0; }
    .click-zone.right { right: 0; }

    .luxurious-script {
        font-family: 'Luxurious Script', serif;
        color: #333;
    }

    /* Assure-toi que les hover-box sont en dessous */
    .hover-box { z-index: 2; }
    .hover-box {
      position: absolute;
      top: 0;
      width: 50%;
      height: 100%;
      overflow: hidden;
    }
    .hover-box.left {
      left: 0;
    }
    .hover-box.right {
      right: 0;
    }
    .hover-content {
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 1);
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 2.5rem;
      color: black;
      transition: transform 0.4s ease-in-out;
      border: solid 1px;
      border-color:rgb(75, 75, 75);
    }
    .hover-box.left .hover-content {
      right: 0;
      transform: translateX(100%);
      transform-origin: right;
    }
    .hover-box.right .hover-content {
      left: 0;
      transform: translateX(-100%);
      transform-origin: left;
    }
    /* Délai pour l'apparition du nouveau rectangle */
    .hover-box.left.active .hover-content {
      transform: translateX(0);
      transition: transform 0.6s ease-in-out 0.2s; /* Délai de 0.2s */
    }
    .hover-box.right.active .hover-content {
      transform: translateX(0);
      transition: transform 0.6s ease-in-out 0.2s; /* Délai de 0.2s */
    }
    /* Animation de fermeture plus rapide */
    .hover-box.left .hover-content,
    .hover-box.right .hover-content {
      transition: transform 0.5s ease-in-out; /* Fermeture sans délai */
    }

    .luxurious-script {
        font-family: 'Luxurious Script', serif;
        font-size: 3rem;
        color: #333;
    }

    @media (max-width: 956px) and (orientation: landscape) {
      .image-container {
        height: calc(100vh - 10vh - 40px); /* Ajuste à la nouvelle hauteur de header */
        margin-top: 0vh; /* Correspond à la hauteur du header en paysage */
      }
    
      .image-half1, .image-half2 {
        min-height: 50vh;
        height: auto;
        height: calc((100vh - 10vh - 40px) / 2);
      }
    
      .image-half1 {
        top: 10vh;
        background-position: center center;
        background-size: cover; /* Ajuste le centrage de l'image */
      }
    
      .image-half2 {
        top: calc(10vh + (100vh - 10vh - 40px) / 2);
        background-position: center center; /* Ajuste le centrage de l'image */
        background-size: cover;
      }
      
      .luxurious-script.mt-3.mb-3.empat {
        display: none !important; /* Cache définitivement le titre en paysage */
      }
    }

    /* Style unique pour tablette */
    @media (min-width: 701px) and (max-width: 1024px) {
        .luxurious-script {
            font-size: 2.5rem;
            min-height: 8vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 10px auto 0;
            padding: 0 30px;
            width: 100%;
            max-width: 90%;
            position: relative;
            top: -15px;
        }
    }
    
@media (max-width: 800px) and (orientation: portrait) {
  html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
  }

  .image-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 4vh - 60px - 84px); /* Soustraction header + marges + h1 (60px) + mt-3 (24px) */
    overflow: hidden;
    background: none !important;
    margin-top: calc(4vh + 60px + 84px); /* Header + marges + h1 total */
  }

  .image-half1, .image-half2 {
    position: fixed;
    width: 100%;
    height: calc((100vh - 4vh - 60px - 84px) / 2); /* La moitié de l'espace restant */
    background-size: cover;
    background-position: center;
    left: 0;
  }

  .image-half1 {
    top: calc(4vh + 60px + 84px); /* Header + marges + h1 total */
    background-image: url('../Images/cotegauche.png') !important;
    background-position: center 33%; /* Ajustement pour centrer la partie supérieure de l'image */
  }

  .image-half2 {
    top: calc(4vh + 60px + 84px + (100vh - 4vh - 60px - 84px) / 2); /* Position après header+marges+h1 + première moitié */
    background-image: url('../Images/cotedroit.png') !important;
    background-position: center 66%; /* Ajustement pour centrer la partie inférieure de l'image */
  }

  .click-zone, .hover-box {
    display: none;
  }

  .luxurious-script {
    font-size: 2rem !important;
    margin: 20px 10px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  body {
    overflow-y: hidden;
  }
}

@media (max-width: 700px) {
  .luxurious-script {
      font-size: 1.8rem;
      min-height: 10vh;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.2;
      margin: 0;
      padding: 0 20px;
      width: calc(100% - 40px);
      position: fixed;
      top: calc(4vh + 20px);
      left: 20px;
      text-align: center;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-buttons {
  margin-top: 1.5rem;
}

.modal-buttons button {
  margin: 0 0.5rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#acceptCookies {
  background-color: #4CAF50;
  color: white;
}

#refuseCookies {
  background-color: #f44336;
  color: white;
}

