/* ===============================
   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) BODY
   =============================== */
/* On enlève height: 100vh pour laisser le contenu s'adapter */
body {
  overflow-x:    hidden;

  margin: 0;
  padding: 0;
  font-family: 'MaPolice', sans-serif;
  position: relative;
  width: 100%;

  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;
}

/* ===============================
   3) 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;
   }
/* ===============================
   4) CONTENEUR ATELIERS (Grid)
   =============================== */
.type_atelier-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===============================
   5) CARTE "type_atelier"
   =============================== */
.type_atelier {
  border: 3px solid #000000;
  background-color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.type_atelier:hover {
  transform: scale(1.02);
  background-color: #f0f0f0;
}

/* Titre des ateliers */
.atelier-titre {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px;
  background-color: #000000;
  color: #ffffff;
}

/* Image */
.type_atelier img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type_atelier video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ===============================
/* ===============================
   5) Bouton "invert colors"
   =============================== */

/* ===============================
   8) MODALE (si besoin)
   =============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #fff;
  border-radius: 10px;
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover,
.close:focus {
  color: #ff9900;
}

/* ===============================
   9) MEDIA QUERY POUR MOBILE
   =============================== */
@media (max-width: 600px) {
  .type_atelier-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 10px;
    gap: 10px;
  }

  .type_atelier {
    aspect-ratio: auto; /* On lève le côté 1/1 sur mobile */
    height: auto;
  }

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