@import url(header.css);

/* Fonts */
@font-face {
  font-family: Akira;
  src: url(../fonts/Akira\ Expanded\ Demo.otf);
}
@font-face {
  font-family: Coolvetica;
  src: url(../fonts/Coolvetica\ Rg.otf);
}
@font-face {
  font-family: Hotsuki;
  src: url(../fonts/Hoshiko\ Satsuki.ttf);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: url(../imgDeco/tsunami_bg_blur.jpg) no-repeat center center fixed;
  background-size: cover;
  padding-bottom: 50px;
}

.top-nav-container {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
  width: 100%;
}

.boutonRetour {
  font-family: Hotsuki;
  text-decoration: none;
  color: white;
  background: rgba(36, 65, 126, 0.8);
  font-size: 1.5rem;
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.boutonRetour:hover {
  background: white;
  color: rgb(36, 65, 126);
  transform: translateX(-5px) !important;
}

/* Navigation & Filtres */
.boutonsFiltre {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

button {
  background-color: white;
  border: 0;
  border-radius: 15px;
  font-family: Hotsuki;
  color: rgb(36, 65, 126);
  font-size: 1.8rem;
  transition: 0.2s ease;
  cursor: pointer;
  padding: 8px 18px;
}

button:hover,
button.active {
  background-color: rgb(36, 65, 126);
  color: white;
  transform: scale(1.05) !important;
}

/* Liste de projets */
.projets-liste {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.projet-carte {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  transition: 0.3s ease;
}

.projet-carte:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.projet-lien-detail {
  text-decoration: none;
  color: white;
  display: flex;
  gap: 20px;
}

.projet-image-conteneur {
  max-width: 240px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.projet-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projet-titre {
  font-family: Coolvetica;
  font-size: 2.2rem;
  margin: 0;
}

.projet-details-ligne {
  font-family: Coolvetica;
  color: #ddd;
  margin: 5px 0;
}

.badge-projet {
  background-color: rgb(255, 213, 0);
  color: black;
  padding: 1px 8px;
  border-radius: 12px;
  text-wrap: nowrap;
}

.badge-scolaire {
  color: white;
  background-color: rgb(36, 65, 126);
  padding: 1px 8px;
  border-radius: 12px;
}

.projet-logiciels {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.logiciel-icone {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.logiciel-icone img {
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  button {
    font-size: 1.3rem;
  }
  .projet-lien-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .projet-image-conteneur {
    max-width: none;
    width: 100%;
    height: 150px;
  }
  .boutonsFiltre {
    gap: 10px;
    padding: 20px 10px;
  }
  .top-nav-container {
    margin: 15px 0 0 10px;
  }
  .boutonRetour {
    font-size: 1.2rem;
    padding: 6px 15px;
  }
  .projet-details-ligne.dates {
    border-top: 2px rgb(189, 189, 189) solid;
    padding-top: 5px;
  }
}
