body {
  margin: 0;
  font-family: 'Luckiest Guy', cursive;
  font-size: 18px;
  background: url('../images/fond-retro-90s.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  text-align: center;
}

.container {
  margin-top: 80px;
}

h1 {
  font-size: 2.5em;
  background: linear-gradient(to right, yellow, orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px black;
}

p {
  font-size: 1.2em;
  margin-bottom: 50px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;         /* Largeur fixe */
  height: 70px;         /* Hauteur fixe pour uniformiser */
  margin: 20px;
  padding: 10px 20px;
  font-size: 1.5em;
  font-family: 'Luckiest Guy', cursive;
  background: #ffcc00;
  color: black;
  border: 4px solid black;
  text-decoration: none;
  box-shadow: 4px 4px black;
  cursor: pointer;
  gap: 10px;            /* Espace entre icône et texte */
}

.button:hover {
  background: #ffee00;
}


h1.title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 3em;
  color: #ffc700;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
  margin-bottom: 30px;
}

.fenetre95 {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 300px;
  background: #ffcc00;
  border: 4px solid #000;
  font-family: 'Luckiest Guy', cursive;
  z-index: 1000;
  box-shadow: 6px 6px 0 #000;
}

.fenetre-barre {
  background: #ff0080;
  color: white;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.fenetre-corps {
  padding: 20px;
  font-size: 16px;
  color: black;
  background: #ffcc00;
}

.fenetre-fermer {
  background: yellow;
  border: 2px outset #fff;
  cursor: pointer;
  font-weight: bold;
  color: black;
}

.fenetre-corps p {
  margin: 0;
  white-space: pre-line; /* pour le retour à la ligne avec \n */
}

/* Animation wizz */
@keyframes wizz {
  0%   { transform: translate(-50%, -30%) translateX(0); }
  20%  { transform: translate(-50%, -30%) translateX(-5px); }
  40%  { transform: translate(-50%, -30%) translateX(5px); }
  60%  { transform: translate(-50%, -30%) translateX(-5px); }
  80%  { transform: translate(-50%, -30%) translateX(5px); }
  100% { transform: translate(-50%, -30%) translateX(0); }
}

.shake {
  animation: wizz 0.4s ease-in-out;
}

/* Fenêtre d'erreur type Windows 95 rétro */
.fenetre-erreur {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 350px;
  background: #ffcc00; /* jaune rétro */
  border: 4px solid red;
  box-shadow: 6px 6px 0 black;
  z-index: 1001;
  animation: clignoteBordure 1s infinite;
}

.fenetre-erreur .fenetre-barre {
  background: #ff007f; /* rose rétro */
  color: white;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
}

.fenetre-erreur .fenetre-titre {
  flex-grow: 1;
  text-align: center;
  font-size: 16px;
}

.fenetre-erreur .fenetre-fermer {
  background: lightgray;
  border: 2px outset #fff;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

.fenetre-erreur .fenetre-corps {
  padding: 20px;
  font-size: 18px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: black;
  text-align: center;
}

.fenetre-erreur .fenetre-corps button {
  margin-top: 15px;
  padding: 5px 15px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  font-size: 14px;
}

@keyframes clignoteBordure {
  0%, 100% {
    border-color: red;
  }
  50% {
    border-color: #fff;
  }
}

.album-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.album {
  position: relative;
  width: 300px;
  height: 150px;
  background: linear-gradient(135deg, #ffe600, #ff00cc);
  border: 3px solid black;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Luckiest Guy', cursive;
  font-size: 25px;
  color: black;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.album:hover {
  transform: scale(1.05);
}

.nom-album {
  padding: 10px;
  z-index: 1;
}



body.fond90 {
  font-family: 'Luckiest Guy', cursive;
  background-image: url("../images/fond-retro-90s.png");
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  padding: 20px;
}

.titre-album {
  font-size: 38px;
  color: #fff;
  text-shadow: 2px 2px #000;
  margin-bottom: 30px;
}

.galerie-album {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.photo-container {
  border: 3px solid #222; /* Fin et discret */
  background: white;
  border-radius: 6px;
  width: 220px;
  box-shadow: 2px 2px 0 #000; /* Ombre douce */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-container {
  border: 2px solid #222;
  background: white;
  border-radius: 6px;
  width: 220px;
  height: 240px; /* Ajouté pour fixer la hauteur du cadre */
  box-shadow: 2px 2px 0 #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centrage vertical */
}


.auteur {
  font-size: 14px;
  color: #333;
  font-style: italic;
}

.btn90 {
  background: linear-gradient(135deg, #ffe600, #ff00cc);
  border: 3px solid black;
  border-radius: 15px;
  padding: 10px 25px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 20px;
  color: black;
  text-shadow: 1px 1px #fff;
  margin: 15px 10px;
  cursor: pointer;
  box-shadow: 4px 4px 0 black;
}

.btn90:hover {
  transform: scale(1.05);
}

#lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  z-index: 1001;
}

.auteur-lightbox {
  margin-top: 10px;
  color: white;
  font-size: 16px;
  font-style: italic;
  z-index: 1001;
}

.fleche {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
}

#gauche { left: 20px; }
#droite { right: 20px; }

#fileInput {
  display: none;
}

.pub-gauche, .pub-droite {
  position: fixed;
  top: 20px;
  z-index: 9999;
}

.pub-gauche {
  left: 50px;
}

.pub-droite {
  right: 50px;
}

.pub-gauche img,
.pub-droite img {
  max-height: 90vh;
  width: auto;
}

/* Cacher les pubs sur mobile et tablettes */
@media screen and (max-width: 1024px) {
  .pub-gauche,
  .pub-droite {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
  }
}

.compteur-90s {
  position: fixed;
  bottom: 70px;  /* ajuste ici pour le monter ou descendre */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  padding: 10px 20px;
  border: 4px solid #ff00ff;
  border-radius: 10px;
  z-index: 9999;
}






