* {
    padding: 0;
    margin: 0;
}
.projet {
    background-color: rgba(150, 150, 149, 0.38);
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding-bottom: 120px;
}
  
  .containerI {
    position: relative;
    width: 80%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
  }

.contentP {
    padding: 20px;
}

.projetTitre {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin: 0;
    padding-bottom: 40px;
}

.projetTitre1 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0;
}

.projetContent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem auto;
    width: 80%;
}

.projetContent1:hover {
    transition: transform 0.5s ease-in-out;
    background: #cf777b3a;
    border: 1px solid #cd4b52;
    transform-origin: bottom;
}

.projetContent1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.354);
    color: white;
    padding: 20px;
    width: 100% auto;
    height: 19rem;
    cursor: pointer;
}

.projetContent1 img {
    width: 100%;
    height: 100%;
}

.modal-container {
    display: flex;
    position: fixed;
    top: 80px;
    right: -100%;
    width: 45%;
    height: 100vh;
    background-color: rgb(169, 167, 167);
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: right 1s ease;
    opacity: 0;
    visibility: hidden;
    border: 1px solid #000;
  }

  .modal-container.active {
    opacity: 1;
    right: 0;
    visibility: visible;
}

  .modal {
    background-color: rgb(169, 167, 167);
    padding: 20px;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    overflow: auto;
    margin-bottom: 40px;
}

  
  .modal-content {
    background-color: rgb(169, 167, 167);
    width: 100%;
    height: max-content;
  }
  
  .close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    aspect-ratio: 1/1;
    font-size: 30px;
    cursor: pointer;
    color: #000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 20; /* Au-dessus du contenu */
}

  .modalT {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }

  .modalTitre {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    align-items: center;
    padding-bottom: 10px;
    gap: 10px;
  }

  .modalTitre img {
    max-width: 45%;
    max-height: 100%;
    margin-bottom: 20px;  
}

.modalDescriptif {
    display: grid;
    grid-template-columns: 60% 40%;
    background-color: rgb(169, 167, 167);
    justify-items: center;
    gap: 10px;
}

.hr1 {
    border-top: 1px solid;
    color: #eee;
    margin: 15px;
}

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

.customP {
    background-color:#cd4b52 ;
    padding-left: 10px;
    margin-right: 60px;
    margin-bottom: 5px;
    margin-top: 5px;
    border-radius: 10px;
    color: #eee;
}

.btnSite {
    background-color: #cd4b52;
    color: #eee;
    border-radius: 10px;
    margin-top: 10px;
    padding: 5px;
    border: none;
    cursor: pointer;
}

.retour {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding-bottom: 4.5rem;
    color: red;
    cursor: pointer;
    text-decoration: none;
}

.laptop-wrapper {
  position: relative;
  width: 100%; /* Ajustez selon besoin */
  max-width: 400px; /* Taille maximale de l'ordinateur */
  margin: 0 auto;
}

.laptop-frame {
  width: 100%;
  display: block;
}

.screen-content {
  position: absolute;
  top: 9%; 
  left: 16.6%;
  width: 67.4%;
  height: 56.5%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 5px 5px 5px 5px;
  clip-path: polygon(
    2% 0%,        /* Coin supérieur gauche */
    99% 0%,      /* Coin supérieur droit */
    100% 100%,    /* Coin inférieur droit */
    1% 100%       /* Coin inférieur gauche */
  );

}

.project-screen {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

/* Loader */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.961);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: #0f03f2;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.containerI {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .projetContent {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      margin: 3rem auto;
      width: 90%;
  }
    .projetTitre1 {
      text-align: center;
  }
  .modal-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgb(169, 167, 167);
    overflow-y: auto; /* Standard universel */
    z-index: 10;
    transition: right 1s ease, opacity 1s ease, visibility 1s ease;
    opacity: 0;
    visibility: hidden;
    border: 1px solid #000;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .modal-container::-webkit-scrollbar {
    display: none;
  }

  .modal {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
  }
}

