/* ------------------------------
   Style global
------------------------------ */
body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: black;
  padding: 20px;
  text-align: center;
}

header img {
  display: block;
  margin: 0 auto;
}

header h1 {
  color: yellow;
  font-size: 2em;
  margin-top: 10px;
}

/* Liens */
a {
  color: yellow;
  text-decoration: none;
}

a:hover {
  color: #FFC107;
}

/* Footer */
footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: auto;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 40px;
}

.artwork img {
  width: 100%;
  height: auto;
  border: 5px solid white;
  border-radius: 5px;
}

.artwork h4 {
  text-align: center;
  margin-top: 8px;
}

/* Bouton retour */
.back-button {
  background-color: #FFD700;
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.back-button:hover {
  background-color: #FFC107;
}

/* ------------------------------
   Page produit
------------------------------ */
.product-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 40px;
}

/* Slider - plus large */
.product-slider {
  flex: 4; /* slider prend plus de place */
  max-width: 700px; /* plus grand pour voir les images */
  position: relative;
}

.product-slider img {
  width: 100%;
  height: auto;
  border: 5px solid white;
  border-radius: 5px;
}

/* Boutons slider */
.product-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
}

#prev { left: -30px; }
#next { right: -30px; }

/* Bloc infos produit - plus petit */
.product-info-block {
  flex: 1;              /* petit bloc */
  max-width: 220px;     /* largeur réduite */
  background-color: black;
  color: white;
  padding: 15px;
  border: 2px solid #FFD700;
  border-radius: 10px;
  position: sticky;
  top: 50px;            /* reste visible */
  height: fit-content;
}

.product-info-block h2 {
  color: #FFD700;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.product-info-block p {
  margin: 5px 0;
  font-size: 0.9em;
}

.product-info-block select,
.product-info-block input {
  width: 100%;
  margin-bottom: 8px;
  padding: 4px;
  font-size: 0.9em;
}

.product-info-block .custom-button {
  width: 100%;
  padding: 8px;
  font-size: 0.95em;
  margin-top: 5px;
}






/* ------------------------------
   Page Contact
------------------------------ */
.contact-container {
  display: flex;
  flex-wrap: wrap;          /* pour que ça s'adapte sur petits écrans */
  justify-content: center;  /* centre horizontalement le contenu */
  align-items: flex-start;
  gap: 30px;
  padding: 50px;
}

.contact-image {
  max-width: 550px;  /* taille de l'image */
  width: 100%;
  height: auto;
  border: 3px solid yellow;
  border-radius: 5px;
}

.contact-text {
  max-width: 500px;  /* taille du texte à côté */
  color: white;
  font-size: 1em;
}

.contact-text h2 {
  color: yellow;
  margin-bottom: 15px;
}

.contact-text a {
  color: yellow;
  text-decoration: none;
}

.contact-text a:hover {
  color: #FFC107;
}

/* Responsive : sur petits écrans, image et texte passent en colonne */
@media (max-width: 800px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-text {
    max-width: 100%;
  }
}
