/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #fff8f3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar-produits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #c2185b, #f8bbd0);
  padding: 15px 30px;
  color: white;
}

.nav-left img {
  height: 50px;
}

.nav-center {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.nav-right a {
  margin-left: 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: #c2185b;
}

/* ===== MAIN SECTIONS ===== */
main {
  flex-grow: 1;
  padding: 40px 20px;
}

section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 28px;
  color: linear-gradient(to bottom, #c2185b, #f8bbd0);
  margin-bottom: 20px;
  text-align: center;
}

.grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: linear-gradient(to bottom, #c2185b, #f8bbd0);
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 18px;
  color: #333;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(to bottom, #c2185b, #f8bbd0);
  color: white;
  padding: 15px 30px;
  font-weight: bold;
  margin-top: auto;
  display: flex; /* active Flexbox */
  justify-content: space-between; /* espace entre les éléments */
  align-items: center; /* aligne verticalement */
}

.footer p {
  margin: 0;
  text-align: center;
  flex-grow: 1; /* prend l’espace central */
}

.footer .lien-icone img {
  height: 50px; /* ajuste la taille des logos */
  width: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
    align-items: center;
  }

  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-right a {
    margin: 5px 0;
  }
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox-content {
  position: relative;
  max-width: 80%;  /* limite la largeur */
  max-height: 80%; /* limite la hauteur */
}

#lightbox-img {
  width: 65%;
  height: auto;
  max-width: 500px;  /* taille maximale réelle */
  max-height: 80vh;  /* ne dépasse pas 80% de la hauteur de l’écran */
  border-radius: 10px;
}

#close {
  position: absolute;
  top: 210px;     /* distance depuis le haut de l'image */
  right: 500px;   /* distance depuis le côté droit de l'image */
  font-size: 35px;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}