body {
  margin-right: 10px;
}

.container {
  margin: 0 auto;
  text-align: center;
}

h1.title {
  font-style: normal;
  color: #111;
  text-align: center;
  line-height: 80px;
  font-size: 55px;
}

.categorie {
  border-top: 2px solid rgba(0, 0, 0, 0.1);

  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.categorie:first-of-type {
    border-top: none;
}

/* Gestion de l'affichage des projets */

.project-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.project-container a {
    width: 460px;
    height: 270px;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    /* New/Modified Properties: */
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-container a:hover {
    transform: translateY(-5px); /* Lift the card slightly on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* More pronounced shadow on hover */
}

.project-container .image {
    width: 100%;
    height: 100%;
    background-size: cover; /* This is good for covering the area */
    background-position: center; /* Center the image horizontally and vertically */
    background-repeat: no-repeat;
    position: absolute; /* Position the image absolutely within the card */
    top: 0;
    left: 0;
    z-index: 1; /* Ensure image is behind the title */
}

.project-container .title {
    position: absolute; /* Position the title absolutely */
    bottom: 0; /* Place it at the bottom */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background for readability */
    color: white; /* White text color */
    padding: 5px 0; /* Some vertical padding */
    text-align: center; /* Center the text */
    z-index: 2; /* Ensure title is above the image */
}

.project-container .title h3 {
    margin: 0; /* Remove default margin from h3 */
    font-size: 1em; /* Adjust font size as needed */
}