

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  background-color: #D8D1E3; 
}

.intro-box {
  max-width: 900px;
  margin: 0 auto 40px auto; /* centré horizontalement et espacé de la galerie */
  padding: 20px;
  background: rgba(200, 160, 240, 0.8); /* violet clair semi-transparent */
  border-radius: 8px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* petit effet 3D */
}

.intro-box h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.intro-box p {
  font-size: 12px;
  line-height: 1.4;
}


/* --- GALLERY --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;                              
  max-width: 900px;
  margin: 40px auto;                     
}

/* --- CADRE --- */
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; 
  background-image: url("../img/forphotos.jpg"); 
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- PHOTO PAR-DESSUS --- */
.photo {
  position: absolute;
  top: 24%;      /* descend un peu */
  left: 4%;      /* plus large */
  width: 92%;    /* élargit la photo */
  height: 62%;   /* raccourcit la hauteur */
  object-fit: cover;
}



/* --- CAPTION --- */
.caption {
  position: absolute;  /* pour le placer au-dessus du cadre */
  bottom: -35px;       /* distance depuis le bas du cadre */
  left: 50%;
  transform: translateX(-50%); /* centre horizontalement */
  
  width: 280px;        /* largeur fixe du fond */
  height: 75px;        /* hauteur fixe du fond */
  
  z-index: 2;
  background: rgba(200, 160, 240, 0.8);
  padding: 10px;
  border-radius: 4px;
  
  display: flex;       /* pour centrer le texte verticalement */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  text-align: center;
  font-size: 13px;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
}




/* --- BOUTONS --- */
.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

.buttons button {
  cursor: pointer;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  transition: transform 0.15s, background 0.2s;
}

.like {
  background: #ff82d2;
  color: #fff;
}

.dislike {
  background: #8b5c9e;
  color: #fff;
}

.buttons button:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}



.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  display: none;   /* caché par défaut */
  z-index: 9999;
  color: white;
  text-align: center;
  animation: popupAnim 0.3s ease-out;
}

/* Couleurs différentes */
.like-popup {
  background: #ff82d2;  /* rose */
}

.dislike-popup {
  background: #8b5c9e;  /* violet foncé */
}

/* Petite animation */
@keyframes popupAnim {
  0% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}
