@import url('https://fonts.googleapis.com/css?family=Saira+Extra+Condensed');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Saira Extra Condensed', sans-serif;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: #333;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement */
}

header {
  text-align: center;
  padding: 2rem 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  display: inline-flex;
  margin: 0 1.5rem;
}

a {
  position: relative;
  padding: 1rem 0;
  margin: 0 1.5rem;
  color: #195da9;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.8rem); /* Utilise clamp pour la taille des liens */
  transition: color 250ms ease-in-out;
}

a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: 50% 50%;
  width: 100%;
  height: 2px;
  background-color: #195da9;
  transition: transform 250ms ease-in-out;
}

a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Classe active - lien cliqué */
a.active::after {
  transform: translateX(-50%) scaleX(1);
  transition: none; /* Supprime toute transition pour un affichage immédiat */
}

a.active {
  color: #195da9; /* Garde la couleur active */
}

/* Transition inverse pour les liens désélectionnés */
a.remove-active::after {
  transform: translateX(-50%) scaleX(0);
  transition: transform 250ms ease-in-out;
}

a:hover {
  color: inherit;
}

.app-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor:default,

}

.app-display a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-title {
  font-size: clamp(1.2rem, 6vw, 3.5rem); /* Utilisation de clamp pour la taille du titre */
  color: #195da9;
  margin-top: 20px;
  transition: transform 0.3s ease;
  text-align: center;
}

.app-display:hover .app-title {
  transform: scale(1.05);
}

#app-image {
  width: clamp(150px, 30vw, 500px); /* Clamp pour la taille de l'image */
  height: clamp(150px, 30vw, 500px); /* Assurez-vous que l'image reste proportionnelle */
  transition: transform 0.3s ease;
}

.app-display:hover #app-image {
  transform: scale(1.05);
}

.active {
  opacity: 1;
  transform: translateY(0);
  cursor:pointer;
}

/* Responsiveness */

/* Pour les petits écrans */
@media (max-width: 550px) {
  .container {
    padding: 20px;
  }

  #app-image {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .app-title {
    font-size: 1.3rem;
  }

  ul {
    display: flex;
    flex-direction: column;
  }

  li  {
    justify-content: center;
  }
}

/* Pour les écrans plus larges, ajustement dynamique en fonction de la taille de la fenêtre */
@media (min-width: 551px) {
  #app-image {
    width: clamp(150px, 30vw, 400px); /* L'image est proportionnelle à la taille de l'écran avec des limites */
    height: clamp(150px, 30vw, 400px);
  }

  .app-title {
    font-size: clamp(1rem, 3vw, 3rem); /* Ajuste la taille des titres */
  }

  a {
    font-size: clamp(1rem, 3vw, 3rem); /* Ajuste la taille des liens */
  }
}


@media (min-width: 1551px) {
    #app-image {
      width: 25vw; /* L'image occupera 25% de la largeur de l'écran */
      height: 25vw; /* Assurez-vous que l'image reste proportionnelle */
    }
  
    .app-title {
      font-size: 2.5vw; /* La taille du texte sera relative à la largeur de l'écran */
    }
  
    a {
      font-size: 2vw; /* Les liens sont également agrandis en fonction de la taille de la fenêtre */
    }
  }