/* ===============================
   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) Base / Reset
   =============================== */
html {

  /* Empêche le défilement */
    box-sizing: border-box;
    font-size: 16px;
    color: #ffffff; /* Couleur du texte par défaut */
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* ===============================
   3) BODY
   =============================== */
body {
  overflow-x:    hidden;
    height: 100vh;

  font-family: 'MaPolice', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  /* height: 100vh; <-- Supprimé pour laisser la page s'adapter */

  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;

  position: relative;

}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;          /* L'image couvre tout l'écran */
  background-repeat: no-repeat;    /* Pas de répétition de l'image */
  background-position: center;     /* Centre l'image */
  opacity: 0.8;                    /* Transparence pour voir les carreaux en dessous (ajuste si besoin) */
  z-index: 0;                      /* Derrière tout le contenu */
  animation: changerFond 25s infinite; /* Animation pour faire défiler les images */
}

/* Animation pour alterner les images de fond */
@keyframes changerFond {
  0% {
    background-image: url('./1.jpg');
    opacity: 0;   /* Début transparent */
  }
  5% {
    background-image: url('./1.jpg');

    opacity: 0.8;   /* Devient visible progressivement */
  }
  25% {
    background-image: url('./1.jpg');

    opacity: 0.8;   /* Reste visible */
  }
  30% {
    background-image: url('./1.jpg');

    opacity: 0;   /* Commence à disparaître */
  }

  /* IMAGE 2 */
  31% {
    opacity: 0;   /* Début transparent */

    background-image: url('./2.jpg');
  }
  35% {
    background-image: url('./2.jpg');

    opacity: 0.8;   /* Devient visible progressivement */
  }
  55% {
    background-image: url('./2.jpg');

    opacity: 0.8;   /* Reste visible */
  }
  60% {
    background-image: url('./2.jpg');

    opacity: 0;   /* Commence à disparaître */
  }

  /* IMAGE 3 */
  61% {
    opacity: 0;   /* Début transparent */

    background-image: url('./3.jpg');
  }
  70% {
    background-image: url('./3.jpg');

    opacity: 0.8;   /* Devient visible progressivement */
  }
  80% {
    background-image: url('./3.jpg');

    opacity: 0.8;   /* Reste visible */
  }
  100% {
    background-image: url('./3.jpg');

    opacity: 0;   /* Commence à disparaître */
  }


}
* {
  position: relative;
  z-index: 1;
}

/* ===============================
   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 "invert colors"
   =============================== */
   /* #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;

     border-radius: 4px;
   } */


/* #invert-colors-btn:hover {
  background-color: black;
  color: #3AFF00;
}
.invert-colors {
  filter: invert(1);
  background-color: black !important;
} */

/* ===============================
   6) Titre H1 (avec animation)
   =============================== */
@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 10s infinite;
}

/* ===============================
   7) Conteneur principal (flex)
   =============================== */
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Hauteur auto pour laisser la page grandir.
     Si vous tenez à limiter la taille, mettez min-height: calc(100vh - 120px);
  */
  min-height: calc(100vh - 120px);
  /* 120px ~ la place occupée par la nav + le bouton, ajustez si besoin */
}

/* ===============================
   8) La zone où l'on place les stickies (position: relative)
   =============================== */
.stickie-wrapper {
  position: relative;
  width: 1200px;
   /* Sur grand écran */
  height: 1200px;
   /* On peut ajuster selon le nb de stickies */
  /* border: 1px dashed #aaa;  pour debug si besoin */
}

/* ===============================
   9) FOOTER
   =============================== */
/* On retire position:fixed; pour mieux gérer sur mobile */
/* footer {
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #000000;
  color: #ffffff;

} */

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 */
}
/* ===============================
   10) STICKIES (en position absolue)
   =============================== */
.stickie {
  position: absolute;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;

  width: 300px;
  height: 300px;
  margin: 0; /* On place via top/left */
  padding: 15px;

  background-color: #1a1a1a;
  color: black;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 0px;
  box-shadow: 0 40px 8px rgba(0, 0, 0, 0.4);

  /* Apparition progressive */
  opacity: 0;
  animation: fadeIn 2s forwards;

    /* font-size: 1rem; */
     font-size: 18px


}

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

.stickie a {
  color: #ffffff;
  text-decoration: underline;
}

/* Positions + Couleurs spécifiques */
.stickie1 { top:  -60px;  left:  -60px;  background-color: #e74c3c; }
.stickie2 { top:  40px;  left: 330px; background-color: #f1c40f; }
.stickie3 { top: 200px;  left: 0px; background-color: #ff00d4; }
.stickie4 { top: 290px;  left: 400px; background-color: #3d83e3; }
.stickie5 { top: 270px;  left: 800px; background-color: #FCFF96; }
.stickie6 { top: -50px;  left: 990px; background-color: #8aec05; }
.stickie7 { top: -30px;  left: 650px; background-color: #0adfd2; }
.stickie8 { top: 300px;  left: 150px; background-color:  #ce6dfa ; }


/* =================================
   11) MEDIA QUERIES pour mobile
   ================================= */
/* Par exemple, en dessous de 768px on bascule vers un layout plus "vertical" */
/* ===============================
   7) MEDIA QUERY POUR MOBILE
   =============================== */
@media (max-width: 768px) {
  /* Sur mobile, on peut passer les 2 colonnes en vertical :
     la section texte + media en stack */
  .text-image-container {
    flex-direction: column; /* le texte au-dessus de la media-section */
  }
  .text-section, .media-section {
    max-width: 100%; /* occupe toute la largeur */
    flex: none;
    padding-right: 0;
  }

  /* On peut réduire la taille de la police du menu si on veut */
  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: relative; */
       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 */
  }
}


html, body {
  overflow: hidden;
}
