html{
    height: 100%;
    margin: 0;
}


/* ----- Body ----- */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche la barre de défilement horizontale */
    justify-content: center;
    align-items: center;
}




/* ----- Partie 1 Arrière plan ----- */

.hauteur-contenu {
    /* Ajoutez du padding en haut pour éviter que le contenu soit caché derrière l'overlay */
    padding-top: 2em; /* Ajustez selon vos besoins */
}









/* ----- Partie 2 Réalisation ----- */

.catégorie {
    position: relative;
    justify-items: center;
}

.titre-catégorie {
    margin-left: 5%;
    padding-left: 20px;
}

.titre-catégorie p {
    color: white;
}

.container {
    position: relative;
    color: #ccc8c8;
    width: 70%;
}

@media (max-width: 720px) {
    .container {
        display: grid;
        width: 90%;
        color: #ccc8c8;
    }

}

.box {
    font-size: 0.8em;
    background-color: rgba(255, 255, 255, 0.58);
    margin-bottom: 20px;
    right: 0px;
    padding: 10px;
    border-radius: 10px;
}

.box img {
    max-width: 60%;
    max-height: 300px;
    object-fit: contain;
}

.box h2 {
    color: black;
}


.box p {
    color: black;
}


.box h3 {
    color: black;
}


     .content {
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .slide-in-left {
    opacity: 1;
    transform: translateX(-100%);
    animation: slideLeft 0.5s ease forwards;
  }

  .slide-in-right {
    opacity: 1;
    transform: translateX(100%);
    animation: slideRight 0.5s ease forwards;
  }

  @keyframes slideLeft {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideRight {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

    .navbar-page {
      height: 80px;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #222;
      margin-top: 3em;
    }


        @media (max-width: 800px) {
          .navbar-page {
            display: none;
            margin-top: 0;
          }
        }


    .nav-links {
      position: relative;
      display: flex;
      gap: 30px;
      background-color: #333;
      padding: 10px 40px;
      border-radius: 16px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .nav-links a {
      position: relative;
      text-decoration: none;
      color: white;
      font-size: 16px;
      padding: 12px 28px;
      border-radius: 12px;
      z-index: 2;
      transition: transform 0.2s ease, color 0.3s;
      overflow: hidden;
    }

    .nav-links a::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.15);
      transition: left 0.4s ease;
      z-index: -1;
    }

    .nav-links a:hover::before {
      left: 0;
    }

    .nav-links a:hover {
      transform: translateX(5px);
    }

    .nav-links a.active {
      color: black;
      font-weight: bold;
    }

    .highlighter {
      position: absolute;
      top: 50%;
      left: 0;
      height: 44px;
      background: white;
      border-radius: 12px;
      transform: translateY(-50%);
      transition: transform 0.35s ease, width 0.35s ease;
      z-index: 1;
    }

    .content {
      display: contents;
      text-align: center;
      color: white;
      opacity: 0;
    }

    @keyframes slideInFromRight {
      0% { opacity: 0; transform: translateX(100%); }
      100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideInFromLeft {
      0% { opacity: 0; transform: translateX(-100%); }
      100% { opacity: 1; transform: translateX(0); }
    }

    .slide-in-right {
      animation: slideInFromRight 0.5s ease forwards;
    }

    .slide-in-left {
      animation: slideInFromLeft 0.5s ease forwards;
    }


.projet-logo-base {
    height: 500px;
}

        @media (max-width: 800px) {
          .projet-logo-base {
            height: 100%;
          }
        }

