/* ============================= */
/*           MODALE              */
/* ============================= */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

/* Visible */
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay */
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Contenu */
.modal__content {
  position: relative;
  max-width: 420px;
  width: 90%;
  padding: 2rem 2.3rem;
  border-radius: 18px;
  background: #ffffff0b;
  backdrop-filter: blur(5px);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(15px) scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;

  text-align: center;
}

/* Animation show */
.modal.is-active .modal__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Bouton fermer */
.modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  border: none !important;
  background: transparent;
  color: #ffffff !important;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.modal__close:hover {
  opacity: 1;
  transform: scale(1.05);
  background: transparent !important;
}

/* Titre */
.modal__title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem !important;
  font-weight: 600;
  
}

/* ============================= */
/*          CAROUSEL            */
/* ============================= */
.modal__carousel {
  display: flex;
  gap: 12px;
  margin: 10px 0 18px;
  overflow-x: scroll;
  padding-bottom: 6px;
  scrollbar-width: none;
  /* Firefox */
}

.modal__carousel::-webkit-scrollbar {
  display: none;
  /* Chrome / Safari */
}

.modal__carousel-item {
  flex: 0 0 auto;
  width: 120px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.modal__carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  loading: lazy;
  /* PERF ++ */
  transition: transform .25s ease;
}

.modal__carousel-item:hover img {
  transform: scale(1.05);
}

/* Texte */
.modal__text {
  margin: 0 0 1.4rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #d0d4e0;
 
}

/* CTA */
.modal__cta {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: #000000;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;

}

.modal__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
  .modal__content {
    padding: 1.6rem 1.8rem;
  }

  .modal__title {
    font-size: 1.25rem;
  }
}