@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;
  background: url(../imgDeco/tsunami_bg_blur.jpg) no-repeat center center fixed;
  background-size: cover;
  padding-bottom: 50px;
  overflow-x: hidden; /* Empêche le scroll horizontal sur mobile */
}

.top-nav-container {
  max-width: 1500px;
  margin: 20px auto 0;
  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: 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;
}

/* Layout */
.projet-detail-container {
  max-width: 1500px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1.75fr;
  gap: 30px;
}

.projet-meta {
  grid-column: 1 / 2;
  align-self: start;
}
.projet-galerie {
  grid-column: 2 / 3;
}
.projet-description {
  grid-column: 1 / 3;
}

.glass-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  color: white;
}

/* Typography */
.projet-meta h1 {
  font-family: Coolvetica, sans-serif;
  font-size: 3rem;
  margin: 0 0 15px;
  line-height: 1.1;
  word-wrap: break-word;
}

.meta-infos {
  margin-bottom: 20px;
  font-family: Coolvetica, sans-serif;
  font-size: 1.2rem;
  color: #ccc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.meta-type-nature {
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-scolaire {
  color: white;
  background-color: rgb(36, 65, 126);
  padding: 1px 12px;
  border-radius: 12px;
  width: fit-content;
  font-size: 0.9rem;
  margin-left: 5px;
}

.logiciels-utilises h3,
.competences-list h3 {
  font-family: Coolvetica, sans-serif;
  font-size: 1.5rem;
  margin: 25px 0 15px;
}

.logiciel-icones-liste {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.logiciel-icone {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
}

.logiciel-icone img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tags-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.competence-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 15px;
  border-radius: 20px;
  font-family: Coolvetica, sans-serif;
  font-size: 1rem;
  color: white;
  transition: 0.3s ease;
}

.competence-tag:hover {
  background: rgba(36, 65, 126, 0.6);
  border-color: #24417e;
  transform: translateY(-3px);
}

.projet-description h2,
.projet-galerie h2 {
  font-family: Coolvetica, sans-serif;
  font-size: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
  margin: 0 0 20px;
}

.projet-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: Coolvetica, sans-serif;
}

.cta-button {
  display: inline-block;
  background: rgb(36, 65, 126);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Akira, sans-serif;
  font-size: 0.9rem;
  margin-top: 15px;
  transition: 0.3s ease;
  text-align: center;
}

.cta-button:hover {
  background: white;
  color: rgb(36, 65, 126);
}

/* Slider */
.image-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide-item {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-item img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.slider-nav-external {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px 20px;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
}

.nav-arrow {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.nav-arrow:hover {
  background: #24417e;
}

.slider-dots-navigation {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: #24417e !important;
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .projet-detail-container {
    grid-template-columns: 1fr;
    margin: 20px auto;
    gap: 20px;
  }

  .projet-meta,
  .projet-galerie,
  .projet-description {
    grid-column: 1 / 2;
  }

  .projet-meta h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .meta-infos {
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
  }

  .meta-type-nature {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    width: 100%;
    margin-bottom: 10px;
  }

  .badge-scolaire {
    margin: 0 auto;
  }

  .logiciel-icones-liste,
  .tags-container {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .top-nav-container {
    margin-top: 10px;
  }

  .boutonRetour {
    font-size: 1.2rem;
    padding: 6px 15px;
  }

  .glass-card {
    padding: 20px;
    border-radius: 15px;
  }

  .projet-meta h1 {
    font-size: 1.8rem;
  }

  .projet-description h2,
  .projet-galerie h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .projet-description p {
    font-size: 1.05rem;
    text-align: justify;
  }

  .slider-nav-external {
    gap: 10px;
    padding: 8px 15px;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
  }

  .cta-button {
    width: 100%; /* Le bouton prend toute la largeur sur mobile */
    font-size: 0.8rem;
  }
}
