@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");


body {
  --color: rgba(30, 30, 30);
  --bgColor: rgba(245, 245, 245);
  min-height: 100vh;
  display: grid;
  align-content: center;
  font-family: "Poppins", sans-serif;
  color: var(--color);
  background: var(--bgColor);
}

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

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

  padding-bottom: 50px;
}

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

  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;
    justify-content: space-around;
    gap: 20px;
}

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

    text-decoration: none;

    /* New/Modified Properties: */
    border: none; /* Remove the old gray border */
    border-radius: 10px; /* Softer rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
}

.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 */
}

.project-container .description {
    /* Nouveau style pour la description */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    text-align: center;
    font-size: 0.85em;
    box-sizing: border-box;
    z-index: 2;

    position: relative;
}

.project-container .description p {
    margin: 0;
}