/* ===============================
   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 {
    overflow-y: scroll;
  box-sizing: border-box;
  font-size: 16px;
  color: #ffffff;
}
*, *: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;

  overflow-y: scroll;

}

/* ===============================
   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;
   }



/* ===============================
   6) GRILLE .row + .stickie
   =============================== */
/* Le conteneur grille */


/* Les blocs "stickie" */
.stickie {
  position: fixed;
   top: 40%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 350px;
   height: 350px;
   padding: 15px;
   background-color: #FCFF96;
   color: black;
   display: flex;
   flex-direction: column;
   justify-content: center; /* Centre verticalement */
   align-items: center;     /* Centre horizontalement */
   cursor: pointer;
   border-radius: 0px;
   box-shadow: 0 40px 8px rgba(0, 0, 0, 0.4);
   font-size: 22px;
   opacity: 0;
   animation: fadeIn 2s forwards;
}

/* Liens dans le stickie alignés à droite */
.stickie a {
  text-align: right;
}
/* Animation fadeIn */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Liens à l’intérieur des stickies */
.stickie a {
  text-decoration: underline;
}

/* ===============================
   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;
  }
}


/* ===============================
   Version Mobile (écrans jusqu'à 600px)
   =============================== */
@media only screen and (max-width: 600px) {

  /* 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 s'intégrer dans le flux normal */
    width: 90%;            /* Largeur relative à l'écran */
    aspect-ratio: 1 / 1;   /* Conserve un carré */
    margin: 20px auto;     /* Centre l'élément */
    transform: none;       /* On retire les transformations */
    padding: 15px;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    /* align-items: center;     /* Centre horizontalement */ */
  }

  /* 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 */
  }
}
