/* ===============================
   1) Police personnalisée
   =============================== */
@font-face {
  font-family: 'MaPolice';
  src: url('../font/VG5000-Regular_web.woff2') format('woff2'),
       url('../font/VG5000-Regular_web.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ===============================
   2) RESET / Base
   =============================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  color: #ffffff;
  overflow-y: scroll;

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

/* ===============================
   3) BODY (enleve height: 100vh)
   =============================== */
body {
  font-family: 'MaPolice', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  /* height: 100vh; <-- on enlève cette ligne
     pour que le corps s'étende si le contenu est plus grand */

  background-color: #f5faff;
  background-image:
    repeating-linear-gradient(to right, transparent 0, transparent 40px, blue 40px, blue 41px),
    linear-gradient(to right, transparent 96%, blue 96%, blue 97%, transparent 97%),
    repeating-linear-gradient(to bottom, #a0c4ff 0, #a0c4ff 2px, transparent 2px, transparent 38px);
  background-repeat: repeat;
  background-size: 41px 40px;
  background-position: top left;
}

/* ===============================
   4) NAVIGATION
   =============================== */
   .nav-wrapper {
     display: flex;
     justify-content: center;
     align-items: center;
     padding: 0;
     margin: 0;
   }
   nav ul {
     display: flex;
     justify-content: center;
     list-style: none;
     padding: 20px;
     margin: 10px;
     background-color: #000000;
     border-radius: 4px; /* Tu peux ajuster la valeur selon ton besoin */

   }
   nav ul li {
     margin: 0 15px;
   }
   nav ul li a {
     font-size: 22px;
     letter-spacing: 1px;
     color: #ffffff;
     text-decoration: none;
     padding: 10px 15px;
     transition: color 0.3s ease, background-color 0.3s ease;
   }
   nav ul li a:hover {
     /* background-color: #333333; */
     color: #3AFF00;
     border-radius: 5px;
   }

/* ===============================
   5) Bouton inverser les couleurs
   =============================== */
   #invert-colors-btn {
     /* background: white;
     border: 2px solid #000;
     padding: 5px 10px;
     cursor: pointer;
     font-size: 20px;
     position: fixed;
     top: 10px;
     right: 10px;
     z-index: 1000; */

     /* Arrondi des bords */
     border-radius: 4px; /* Tu peux ajuster la valeur selon ton besoin */
   }

   @keyframes slide-horizontal {
     0%   { transform: translateX(-200px); }
     50%  { transform: translateX(200px); }
     100% { transform: translateX(-200px); }
   }


   h1 {
     font-family: 'MaPolice', sans-serif;
     font-weight: normal;
     font-size: 40px;
     text-align: center;
     color: #000000;
     margin-top: 10px;
     animation: slide-horizontal 50s infinite;
   }


/* ===============================
   6) GRILLE .row + .stickie
   =============================== */
/* Le conteneur grille */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto; /* centre la grille */
}
/* Assurez-vous que chaque sticker est en position relative */
.stickie {
  position: relative; /* Nécessaire pour que le positionnement absolu des enfants soit relatif au sticker */
  width: 350px;
  height: 350px;
  margin: 20px;
  padding: 15px;
  background-color: #FCFF96;
  color: black;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 20px solid #FCFF96; /* Ajoute une bordure */
  border-radius: 0;
  cursor:        cell ;
  border-radius: 0;
  box-shadow: 0 40px 8px rgba(0, 0, 0, 0.4);
  font-size: 22px;
  opacity: 0;
  animation: fadeIn 2s forwards;
  justify-content: flex-start; /* colle le contenu en haut */
align-items: flex-start;
}

/* Animation fadeIn */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pour que le texte à l'intérieur soit positionné individuellement,
   on force son positionnement absolu et on définit des positions différentes avec :nth-child */
/* .stickie p {
  text-align: right;
  margin: 0;

  margin: 0;
} */
.stickie a {
    font-size: 18px;
  margin: 0; /* Supprimez les marges éventuelles */
}

/* .stickie:nth-child(1) p {
  top: 10%;
}

.stickie:nth-child(2) p {
  text-align: d;
  left: 4%;

}

.stickie:nth-child(3) p {
  top: 20%;
  left: 0%;
}

.stickie:nth-child(4) p {
  top: 30%;
  text-align: right;

  left: 0%;
}

.stickie:nth-child(5) p {
  top: 15%;
  text-align: right;

  left: 0%;
}

.stickie:nth-child(6) p {
  top: 15%;
  text-align: left;

  left: 0%;
}
.stickie:nth-child(7) p {
  top: 15%;
  left: 2%;
}
.stickie:nth-child(8) p {
  top: 3%;
  text-align: right;

  left: 0%;
}
.stickie:nth-child(9) p {
  top: 5%;
  left: 0%;
} */
/* ===============================
   7) FOOTER (retirer position fixed)
   =============================== */

   footer {
     position: fixed;
     left: 0;
     bottom: 0;
     width: 100%;
     /* Conserve tes autres propriétés */
     text-align: center;
     padding: ;
     background-color: #000000;
     color: #ffffff;
     z-index: 999; /* pour s'assurer qu'il passe au-dessus si besoin */
   }

/* ===============================
   8) MEDIA QUERY pour mobile
   =============================== */
@media (max-width: 600px) {
  /* Grille plus flexible */
  .row {
    grid-template-columns: 1fr;
    /* ou repeat(auto-fill, minmax(250px, 1fr)) */
    gap: 10px;
    padding: 10px;
  }

  .stickie {
    width: auto;   /* Laisse la largeur s'adapter */
    height: auto;  /* Idem pour la hauteur */
    margin: 10px;  /* moins d'espace sur mobile */
    font-size: 18px;
  }

  nav ul {
    padding: 10px;
    margin: 0;
  }
  nav ul li a {
    font-size: 18px;
  }

  /* 1. Navigation : on passe la barre en colonne */
  .nav-wrapper nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin: 0;
  }
  .nav-wrapper nav ul li {
    margin: 5px 0;
  }
  .nav-wrapper nav ul li a {
    font-size: 18px;
    padding: 8px 10px;
  }

  /* 2. Stickie : repositionnement et redimensionnement */
  .stickie {
    position: static;      /* Pour qu'il s'intègre dans le flux normal de la page */
     width: 90%;            /* Largeur relative à l'écran */
     aspect-ratio: 1 / 1;   /* Force le rapport largeur/hauteur à 1, c'est-à-dire carré */
     margin: 20px auto;     /* Centre l'élément et ajoute un espacement vertical */
     transform: none;       /* On retire les transformations */
     padding: 15px;
     font-size: 18px;
  }

  /* 3. Footer : positionnement statique */
    footer {
       position: fixed;
       left: 0;
       bottom: 0;
       width: 100%;

       padding: 10px;
       text-align: center;
       background-color: #000000;
       color: #ffffff;
       z-index: 999;
       font-size: 10px;  /* Taille de police adaptée pour mobile */

     }

     /* Optionnel : ajouter un padding-bottom sur le body pour éviter que le contenu soit caché par le footer */
     body {
     }
  }

  /* 4. Ajustements généraux */
  body {
    overflow-y: auto; /* Autorise le scroll si le contenu dépasse */
    font-size: 16px;  /* Taille de police adaptée pour mobile */
  }
}
