/* ============================================================
   1. SECTION TITRE
============================================================ */
#title {
  padding: 7em 5em 4em 5em;
  text-align: left;
}

#title h1 {
  font-size: 70px;
  font-family: "houschka-pro", sans-serif;
  font-weight: 500;
  font-style: normal;
  border-radius: 50px;
}

#title p {
  margin: 0;
}

/* ============================================================
   2. SECTION "MES PROJETS"
============================================================ */
#mes-projets {
  padding: 60px;
  background-color: #fff;
  text-align: center;
}

#mes-projets h3 {
  font-size: 25px;
  font-family: "houschka-pro", sans-serif;
  font-weight: 500;
  color: #333;
  margin-bottom: 0;
  padding-bottom: 0;
  text-transform: none;
}

.details p {
  margin: 0;
  padding: 0;
}

/* ============================================================
   3. GRILLE DE PROJETS
============================================================ */
.projets-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ============================================================
   4. FILTRES (FILTER CONTROLS)
============================================================ */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px;
  margin: 5em 0 20px 0;
  font-size: 17px;
}

.filter-controls button {
  background: #f1f1f1;
  border: none;
  padding: 20px 25px;
  border-radius: 15px;
  max-width: 20%;
  text-align: left;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.filter-controls button.active {
  background: #d3d3d3;
}

.filter-controls h3 {
  font-size: 18px;
  font-family: "houschka-pro", sans-serif;
  font-weight: 500;
  text-align: left;
  margin-bottom: 10px;
}

.filter-controls p {
  font-size: 15px;
}

.filter-controls a {
  font-size: 14px;
  text-decoration: underline;
}

/* ============================================================
   5. ANIMATIONS AU SCROLL
============================================================ */
.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   6. CARTES DE PROJETS
============================================================ */
.projet-card {
  display: flex;
  flex-direction: column;
  height: 450px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.projet-card:hover {
  transform: translateY(-5px);
}

.projet-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.projet-details {
  text-align: left;
  flex-grow: 1;
  overflow: hidden;
}

.projet-details h3 {
  font-size: 1.5em;
  color: var(--pink);
  text-align: left;
}

/* Lignes internes */
.ligne {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

/* Type badge */
.type {
  font-size: 15px;
  padding: 5px 10px;
  border: 1px solid #333;
  border-radius: 20px;
  margin-bottom: 0;
}

/* ============================================================
   7. SÉPARATEUR
============================================================ */
#conteneur-separation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

#separation {
  width: 90%;
  margin: 0;
  padding: 0;
}

#separation hr {
  border: 1px solid #cfcfcf;
}

#separation p {
  margin: 0;
  padding: 0;
}


/* ============================================================
   9. SECTION DE FIN
============================================================ */
.end {
  text-align: center;
  padding: 40px 20px;
  color: var(--pink);
}

.end a {
  color: var(--pink);
  text-decoration: underline;
}

/* ============================================================
   10. RESPONSIVE DESIGN
============================================================ */
@media (max-width: 600px) {

  #title {
    margin-top: 5em;
    padding: 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #title h1 {
    font-size: 50px;
    margin-left: 0;
  }


  #mes-projets {
    padding: 40px;
  }

  #mes-projets h3 {
    font-size: 20px;
    line-height: 20px;
  }

  .projets-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .projet-details h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .projet-details p {
    font-size: 0.9em;
  }

  .filter-controls {
    flex-direction: column;
    gap: 10px;
  }

  .filter-controls button {
    max-width: 100%;
    font-size: 0.9em;
    padding: 8px 12px;
  }

  .filter-controls p {
    padding: 0;
  }
}

.rose {
  color: #f4afcf;
}

.bleu {
  color: #94addd;
}