/* ══ Pommecan Stories ══ */

/* ── Pastilles homepage ── */
.pom-stories-module {
  padding: 2rem 0;
  background: #FFFFFF;
  overflow: hidden;
}

.pom-stories-module__container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.pom-stories-module__container::-webkit-scrollbar {
  display: none;
}

.pom-stories-module__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pom-stories-module__item:hover {
  transform: translateY(-3px);
}

.pom-stories-module__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #EFF6F7;
  transition: border-color 0.2s;
}

.pom-stories-module__item:hover
  .pom-stories-module__circle {
  border-color: #1B6B77;
}

.pom-stories-module__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pom-stories-module__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7A9499;
  text-align: center;
}

/* ── Page story ── */
.pom-story-page {
  background: #FFFFFF;
  min-height: 80vh;
}

/* Navigation stories */
.pom-story-nav {
  padding: 1.5rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid #EFF6F7;
}

.pom-story-nav__inner {
  display: flex;
  gap: 1.5rem;
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.pom-story-nav__inner::-webkit-scrollbar {
  display: none;
}

.pom-story-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.pom-story-nav__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #EFF6F7;
  transition: border-color 0.2s;
}

.pom-story-nav__item.is-current
  .pom-story-nav__circle,
.pom-story-nav__item:hover
  .pom-story-nav__circle {
  border-color: #1B6B77;
}

.pom-story-nav__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pom-story-nav__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7A9499;
}

.pom-story-nav__item.is-current
  .pom-story-nav__label {
  color: #0D1B1E;
  font-weight: 500;
}

/* Hero avec hotspots */
.pom-story-hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #0D1B1E;
}

.pom-story-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 767px) {
  .pom-story-hero {
    max-width: 100%;
  }
}

/* Hotspots */
.pom-story-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Animation pulsante */
.pom-story-hotspot__pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27, 107, 119, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pom-pulse 2s ease-out infinite;
}

@keyframes pom-pulse {
  0%   { transform: translate(-50%,-50%) scale(0.8);
         opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.8);
         opacity: 0; }
}

.pom-story-hotspot__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1B6B77;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #FFFFFF;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pom-story-hotspot:hover
  .pom-story-hotspot__dot,
.pom-story-hotspot.is-open
  .pom-story-hotspot__dot {
  background: #0D1B1E;
  transform: scale(1.1);
}

/* Popup hotspot */
.pom-story-hotspot__popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: #FFFFFF;
  border: 1px solid #EFF6F7;
  box-shadow: 0 8px 24px rgba(13, 27, 30,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s,
              visibility 0.25s,
              transform 0.25s;
  transform: translateX(-50%) translateY(8px);
  z-index: 100;
}

.pom-story-hotspot.is-open
  .pom-story-hotspot__popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.pom-story-hotspot__popup img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.pom-story-hotspot__info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pom-story-hotspot__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #0D1B1E;
  text-decoration: none;
  line-height: 1.3;
}

.pom-story-hotspot__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1B6B77;
  font-weight: 500;
}

.pom-story-hotspot__cta {
  display: block;
  text-align: center;
  padding: 8px;
  background: #C5DDE0;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.pom-story-hotspot__cta:hover {
  background: #134F59;
  color: #FFFFFF;
}

.pom-story-hotspot__close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: #7A9499;
  cursor: pointer;
  z-index: 5;
  padding: 2px 5px;
}

/* Titre story */
.pom-story-title {
  text-align: center;
  padding: 3rem 2rem 1.5rem;
}

.pom-story-title h1 {
  font-family: 'Palatino Linotype', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: #0D1B1E;
  margin: 0;
  letter-spacing: 0.1em;
}

/* Grille produits */
.pom-story-products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.pom-story-products__grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pom-story-products__item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pom-story-products__img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #FFFFFF;
}

.pom-story-products__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pom-story-products__item:hover
  .pom-story-products__img-wrap img {
  transform: scale(1.04);
}

.pom-story-products__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #0D1B1E;
  line-height: 1.4;
}

.pom-story-products__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1B6B77;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 767px) {
  .pom-stories-module__container {
    padding: 0 1rem;
    justify-content: flex-start;
  }

  .pom-stories-module__circle {
    width: 60px;
    height: 60px;
  }

  .pom-story-hotspot__popup {
    width: 160px;
  }

  .pom-story-products__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .pom-story-products {
    padding: 0 1rem 3rem;
  }
}
/* ══ Fin Stories ══ */
