.gammes-savon-container {
  display: flex;
  padding: 50px;
  gap: 70px;
  background-color: white;
}

.lcp-container, .lms-container {
  height: 400px;
  width: 50%;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
}

.lcp-container {
  background-color: #034E8B;
}

.lms-container {
  background-color: #001446;
}

/* Badge - taille fixe car position absolue */
.gamme-badge {
  height: 120px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 10;
}

.gamme-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Conteneur du titre */
.titre-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.titre-container h1 {
  text-align: center;
  color: white;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  padding: 0 10px;
}

/* Conteneur des images - prend l'espace restant */
.images-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Grille LCP - 3 savons qui prennent la taille maximale */
.grille-lcp {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

/* Grille LMS - 10 parfums qui prennent la taille maximale */
.grille-lms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
}



.lms-parfum img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Conteneur du bouton - fixé en bas */
.bouton-container {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: auto;
}

.bouton-orange {
  font-weight:500;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 20px;
  white-space: nowrap;
  margin: 0;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.bouton-orange:hover {
  background-color: #e55a2b;
}

.savon {
	width: calc((100% - 30px) / 3);
	height: 100%;
	aspect-ratio: 1;
	border-radius: 15px;
	background-color: white;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
  position: relative;
}

.savon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%; 
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 15px 15px 0 0;
}

.savon:hover::before {
  opacity: 1;
}

.savon::after {
  content: attr(data-hover-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  box-sizing: border-box;
}

.savon:hover::after {
  opacity: 1;
}

.savon img {
  border-radius: 15px;
  object-fit: cover;
  height:70%;
}

.savon .description {
  height: 30%;
	text-align: center;
	line-height: 1.2;
	margin: 0;
}

.description span {
  vertical-align: middle;
}

.lms-parfum {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  background-color: white;
  overflow: hidden;
  display: block;
}

.lms-parfum:hover {
  transform: scale(0.95); /* Effet inverse pour rester dans les limites */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .gammes-savon-container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 80px;
  }

  .lcp-container, .lms-container {
    width: 100%;
    height: auto;
    min-height: 400px;
  }

  .grille-lcp {
    flex-direction: row;
    gap: 15px;
    justify-content: space-around;
  }

  .savon {
    width: 30%;
    height: auto;
    aspect-ratio: 0.85;
  }

  .savon .description {
    font-size: 13px;
    padding: 5px;
  }

  .grille-lms {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .lms-parfum {
    height: auto;
    aspect-ratio: 1;
  }

  .titre-container h1 {
    font-size: 16px;
    padding: 0 5px;
  }

  .bouton-orange {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .gammes-savon-container {
    padding: 20px 15px;
    gap: 70px;
  }

  .lcp-container, .lms-container {
    min-height: 350px;
    padding: 15px;
  }

  .gamme-badge {
    height: 100px;
  }

  .titre-container {
    padding-top: 50px;
    padding-bottom: 15px;
  }

  .titre-container h1 {
    font-size: 14px;
  }

  .grille-lcp {
    gap: 10px;
  }

  .savon {
    width: 30%;
    aspect-ratio: 0.9;
  }

  .savon .description {
    font-size: 11px;
    padding: 3px;
  }

  .savon::after {
    font-size: 11px;
    padding: 8px;
  }

  .grille-lms {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .lms-parfum {
    height: auto;
    aspect-ratio: 1;
  }

  .lms-parfum:last-child {
    display: none;
  }

  .bouton-orange {
    font-size: 16px;
  }
}
