@font-face {
  font-family: "manuscrite";
  src: url(fonts/faith.otf);
}

@font-face {
  font-family: "code";
  src: url(fonts/CaviarDreams.ttf);
}

@font-face {
  font-family: "boska";
  src: url(fonts/Boska-Regular.otf);
}



@font-face {
  font-family: "pro";
  src: url(fonts/SourceCodePro-VariableFont_wght.ttf);
}

body {
  margin: 0;
  background: #f4ece6;
  color: #fe64c3;
}

#entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "manuscrite", sans-serif;
  font-size: 5.5rem;
  margin: 10px;
}

h2 {
  width: 75%;
  font-family: code;
  font-size: 1.2rem;
  line-height: 1.8rem;
}

h3 {
  font-family: "manuscrite", sans-serif;
  font-size: 2.5rem;
}

h4 {
  font-family: "helvetica";
  font-size: 2rem;
  color: white;
}

/* ------------------ SCROLL HORIZONTAL GALLERY ------------------ */
.scroll-gallery {
  display: flex;
  flex-direction: row;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0;
  background-color: white;
  align-items: flex-start;
}

.scroll-gallery::-webkit-scrollbar {
  height: 8px;
  display: none;
}

/* ------------------ IMAGE + TEXTE OVERLAY ------------------ */
.image-box {
  position: relative;          /* NECESSAIRE pour l’overlay */
  flex: 0 0 auto;
  min-width: 300px;
}

.image-box img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  border-radius: 5px;
  display: block;
  transition: transform 0.4s ease;
}

/* TEXTE SUR L’IMAGE */
.image-box p {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;

  font-family: code;
  line-height: 1.5rem;
  color: #fe64c3;

  background: #ffdbf693;
  backdrop-filter: blur(8px);

  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;

  border-radius: 5px;
}

/* HOVER */
.image-box:hover p {
  opacity: 1;
}

.image-box:hover img {
  transform: scale(1.05);
}

.infos {
  display: flex;
  justify-content: space-between;
  border-bottom: solid #ffdbf6 4px;
  cursor: pointer;
}

/* ------------------ SMARTPHONE PORTRAIT ------------------ */
@media screen and (orientation: portrait) {
  .image-box img {
    height: 150px;
    width: auto;
  }
}
