@import url(header.css);

@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;
  overflow-x: hidden;
}

/* Style du bouton retour */
.top-nav-container {
  max-width: 900px;
  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;
}

.presentation {
  margin-top: 30px;
  color: white;
  font-family: Coolvetica, sans-serif;
  font-weight: 200;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.089);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}

.profil-contenu {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.titre-section {
  font-family: Akira;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.timeline-container {
  position: relative;
  padding-left: 40px;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 10px;
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid rgb(36, 65, 126);
  border-radius: 50%;
  z-index: 2;
}

.timeline-date {
  font-family: Hotsuki;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.timeline-card {
  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;
  color: white;
}

.timeline-card h3 {
  font-family: Coolvetica;
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  color: rgb(36, 65, 126);
  background-color: white;
  padding: 5px 15px;
  border-radius: 10px;
  display: inline-block;
}

.timeline-card p {
  font-family: Coolvetica;
  color: #ffffff;
  margin: 0;
}

.sous-titre-cat {
  font-family: Coolvetica;
  color: rgba(255, 255, 255, 0.6);
  margin: 20px 0;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
  position: relative;

  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

.carousel-track.reverse {
  animation: scroll-right 25s linear infinite;
}

.logiciel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 120px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.logiciel-card:hover {
  transform: scale(1.1);
}

.logiciel-icone-profil {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.logiciel-icone-profil img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logiciel-nom {
  font-family: "Coolvetica", sans-serif;
  color: white;
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.8;
  text-transform: uppercase;
  text-align: center;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* --- AVIS --- */
.carte-avis {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding-inline: 20px;
  color: white;
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-family: Coolvetica, sans-serif;
}

.carte-avis small {
  color: rgb(255, 255, 255);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  padding-left: 15px;
  margin-left: auto;
}

.auteur {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: rgb(36, 65, 126);
  background-color: white;
  padding: 5px 15px;
  border-radius: 10px;
  display: inline-block;
}

.texte-avis {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ffffff;
}
.flex-avis {
  display: flex;
  align-items: center;
  gap: 15px;
}
.flex-avis img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 18px;
}
.btn-doc {
  font-family: Coolvetica, sans-serif;
  color: rgb(193, 212, 255);
}

ul li {
  font-family: Coolvetica, sans-serif;
  color: rgb(36, 65, 126);
}

.canada-liste,
.opquast-liste,
.cgr-liste {
  background-color: #ffffff;
  border-radius: 16px;
  padding-block: 10px;
}

h4 {
  font-family: Coolvetica, sans-serif;
}

@media (max-width: 768px) {
  .presentation {
    font-size: 1rem;
  }

  .titre-section {
    font-size: 1.4rem;
  }

  .timeline-container {
    padding-left: 30px;
  }

  .timeline-card h3 {
    font-size: 1.4rem;
  }

  .timeline-date {
    font-size: 1.2rem;
  }

  .logiciel-card {
    width: 100px;
  }

  .logiciel-icone-profil {
    width: 60px;
    height: 60px;
  }

  .auteur {
    font-size: 1.2rem;
  }
  .flex-avis {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .top-nav-container {
  }

  .boutonRetour {
    font-size: 1.1rem;
  }

  .profil-contenu {
    gap: 40px;
  }

  .timeline-card {
    padding: 15px;
  }

  .timeline-card h3 {
    font-size: 1.2rem;
  }
  .texte-avis {
    font-size: 0.9rem;
  }
}

/* --- NOUVELLE GRILLE LOGICIELS --- */

.logiciels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.logiciel-item {
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}

.logiciel-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  cursor: pointer;
}

.logiciel-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;

  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transition: all 0.4s ease;
}

/* Et elles retrouvent leurs couleurs au survol */
.logiciel-box:hover img {
  filter: brightness(1) invert(0) opacity(1);
  transform: scale(1.1);
}

/* Effet au survol */
.logiciel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 65, 126, 0.9); /* Ta couleur bleue */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
}

.logiciel-overlay span {
  color: white;
  font-family: "Coolvetica", sans-serif;
  font-size: 0.8rem;
  text-align: center;

  font-weight: bold;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.logiciel-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.logiciel-box:hover img {
  filter: blur(2px);
  transform: scale(0.8);
}

.logiciel-box:hover .logiciel-overlay {
  opacity: 1;
}

.logiciel-box:hover .logiciel-overlay span {
  transform: translateY(0);
}

/* Adaptation Mobile */
@media (max-width: 480px) {
  .logiciels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
