body {
  margin: 0;
}

.home {
  padding: 2rem;
  background-size: cover; /* Ajuste la taille de l'image de fond pour couvrir l'écran */
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  align-content: space-around;
  width: 100vw;
  height: 100vh;
  font-family: Arial, sans-serif;
  background-image: url("images/background-image.jpg"); /* Ajoutez votre image de fond */
}

h1 {
  font-family: Arial, sans-serif;
  font-size: 3rem;
  margin: 0;
}

a {
  text-decoration: none;
}

p {
  color: #fff;
  margin: 0;
  font-family: "SF Pro Display", sans-serif;
}

.page-content p {
  font-family: Arial, sans-serif;
  color: black;
  font-size: 1.5rem;
  line-height: 120%;
  letter-spacing: normal;
}

* {
  box-sizing: border-box; /* Appliquer le modèle de boîte border-box à tous les éléments */
}

#screen {
  display: grid;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 4rem;
  padding-top: 2rem;
  align-items: center;
}

.header {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
}

.header-icons {
  display: inline-block;
  flex-direction: row;
  gap: 0.5rem;
}

.icon-container {
  padding: 2rem;
  justify-content: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-container p {
  text-align: center;
  color: #fff;
  margin: 0;
  font-weight: 100;
}

.icon {
  width: 7rem; /* Largeur de l'icône */
  height: 7rem; /* Hauteur de l'icône */
  background-color: #ccc; /* Couleur de fond de l'icône */
  margin: 10px; /* Marge entre les icônes */
  border-radius: 20%; /* Coins arrondis de l'icône */
  display: flex;
  font-size: 24px; /* Taille de la police de l'icône */
  align-items: center;
  justify-content: center;
  background-position: center center;
  background-size: contain;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#dock {
  display: inline-flex;
  padding: 1rem 1.5rem;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 31px;
  background-color: #ffffff7d;
  box-shadow: 0 10px 15px rgb(0 0 0 / 10%);
  backdrop-filter: blur(25px);
  background-blend-mode: overlay;
}

.main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.facetime {
  background-image: url("/images/icons/facetime.png");
}

.photo {
  background-image: url("/images/icons/photo.png");
}

.settings {
  background-image: url("/images/icons/settings.png");
}

.app-store {
  background-image: url("/images/icons/app-store.png");
}

.cerf-volant {
  background-image: url("/kidsgames-icons/cerf-volant.png");
  background-color: #e7010e;
}

.moulin {
  background-image: url("/kidsgames-icons/moulin.png");
  background-color: #98c300;
}

.bateau {
  background-image: url("/kidsgames-icons/bateau.png");
  background-color: #e4d504;
}

.ballon {
  background-image: url("/kidsgames-icons/ballon.png");
  background-color: #e6007c;
}

.parapente {
  background-image: url("/kidsgames-icons/parapente.png");
  background-color: #00a8e7;
}

.mongolfiere {
  background-image: url("/kidsgames-icons/mongolfiere.png");
  background-color: #00e7a2;
}

.app-open {
  transform: scale(2);
  opacity: 0;
}

.app-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  padding: 4rem;
  flex-direction: column;
  align-items: center;
}

.app-page.active {
  display: flex;
  transform: scale(1);
  opacity: 1; /* Rendre la page visible */
}

.page-content {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page {
  height: 100%;
  margin-top: 8rem;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0rem 2rem 4rem 2rem;
}

.back-to-home-btn {
  background: none repeat scroll 0 0 transparent;
  border: none;
  cursor: pointer;
}

.back-to-home-btn img {
  width: 40px; /* Ajustez la taille de l'icône si nécessaire */
  height: 40px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* S'assure que la largeur est de 100% de l'écran */
  padding: 0.5rem 2rem; /* Ajoute un peu de padding pour le style */
  background-color: #ffffff7d;
  box-shadow: 0 10px 15px rgb(0 0 0 / 10%);
  backdrop-filter: blur(25px);
  background-blend-mode: overlay;
}

.page-header h1 {
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
  overflow: hidden; /* Cache le texte débordant */
  text-overflow: ellipsis; /* Affiche des points de suspension */
  max-width: 100%; /* Limite la largeur maximale à 100% du conteneur parent */
}

video {
  width: auto;
  max-height: 80vh;
}

.page-content img {
  max-height: 80vh;
  object-fit: contain;
}

/* Media Queries pour mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  #screen {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding-bottom: 2rem;
    padding-top: 1rem;
  }

  .icon {
    width: 3rem; /* Réduire la largeur de l'icône */
    height: 3rem; /* Réduire la hauteur de l'icône */
    font-size: 18px; /* Réduire la taille de la police de l'icône */
  }

  .icon-container {
    padding: 1rem; /* Réduire le padding des conteneurs d'icônes */
  }

  .header {
    padding: 0 1rem; /* Réduire le padding de l'en-tête */
  }

  .home {
    padding: 1rem; /* Réduire le padding de la page d'accueil */
  }

  .page-content {
    padding: 1rem; /* Réduire le padding du contenu des pages */
    gap: 1rem; /* Réduire l'écart entre les éléments du contenu */
  }

  .page {
    padding: 1rem; /* Réduire le padding des pages */
    margin-top: 4rem;
  }

  .icon-title {
    font-size: 1rem; /* Réduire la taille de la police des titres d'icônes */
  }

  #dock {
    padding: 0.5rem 0.75rem;
    gap: 0;
    border-radius: 16px;
  }

  .page-content p {
    font-size: 1rem;
  }
}
