/* =============================================
   POMMECAN BIJOUX — Homepage
   ============================================= */

/* ── Fix overflow mobile ── */
/* overflow-x: clip (et non hidden) : bloque le scroll horizontal SANS forcer
   overflow-y à 'auto' → n'invalide pas position:sticky (page produit, etc.). */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* ── Centrage sections homepage ── */
.pom-hero,
.pom-stories,
.pom-new-products,
.pom-categories,
.pom-brand,
.pom-look-module,
.pom-comp,
.pom-compo {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pom-new-products__inner,
.pom-brand__inner,
.pom-comp__inner,
.pom-stories__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .pom-new-products__inner,
  .pom-brand__inner,
  .pom-comp__inner,
  .pom-stories__container {
    padding: 0 1rem;
  }
}

/* ── Hero slider ── */
.pom-home__hero { width: 100%; overflow: hidden; }
.pom-home__hero img { width: 100%; height: auto; display: block; }

/* ── Section header commun ── */
.pom-home__section-head {
  text-align: center;
  padding: 5rem 2rem 2.5rem;
}

.pom-home__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1B6B77;
  margin: 0 0 1rem;
}

.pom-home__heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D1B1E;
  margin: 0 0 1.5rem;
}

.pom-home__rule {
  width: 32px;
  height: 1px;
  background: #1B6B77;
  margin: 0 auto;
}

/* ── Carousel produits ── */
.pom-home__products-wrap {
  width: 100%;
  overflow: visible;
}

/* Cacher les titres générés par les modules */
.pom-home__products-wrap h2,
.pom-home__products-wrap h3,
.pom-home__products-wrap .products-section-title {
  display: none !important;
}

/* Scroll horizontal pleine largeur */
.pom-home__products-wrap .products {
  display: flex !important;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 0 4vw 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
}

.pom-home__products-wrap .products::-webkit-scrollbar { display: none; }

/* Chaque carte : largeur fixe, ne rétrécit pas */
.pom-home__products-wrap .products > article,
.pom-home__products-wrap .products > li,
.pom-home__products-wrap .products > * {
  flex: 0 0 clamp(220px, 22vw, 300px) !important;
  width: clamp(220px, 22vw, 300px) !important;
  scroll-snap-align: start;
  padding: 0 !important;
}

/* Flèches scroll */
.pom-home__scroll-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 4rem;
}

.pom-home__scroll-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #EFF6F7;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0D1B1E;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.pom-home__scroll-btn:hover {
  background: #0D1B1E;
  border-color: #0D1B1E;
  color: #fff;
}

/* ── Tuiles catégories éditoriales ── */
.pom-home__cats {
  width: 100%;
}

.pom-home__cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 54vh 54vh;
  gap: 3px;
  background: #1B6B77;
}

/* Layout asymétrique — même esprit que GAS Bijoux */
.pom-home__cat--1 { grid-column: 1 / span 3; grid-row: 1; }
.pom-home__cat--2 { grid-column: 4 / span 2; grid-row: 1; }
.pom-home__cat--3 { grid-column: 1 / span 2; grid-row: 2; }
.pom-home__cat--4 { grid-column: 3 / span 3; grid-row: 2; }

.pom-home__cat {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background-color: #EFF6F7;
  background-size: cover;
  background-position: center;
}

/* Gradient texte */
.pom-home__cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,0.55) 0%, rgba(0,0,0,0.05) 55%);
  transition: background 0.4s ease;
  pointer-events: none;
}

.pom-home__cat:hover::after {
  background: linear-gradient(to top, rgba(10,8,6,0.7) 0%, rgba(0,0,0,0.1) 65%);
}

/* Zoom image au survol */
.pom-home__cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.pom-home__cat:hover img {
  transform: scale(1.05);
}

.pom-home__cat-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.pom-home__cat-name {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.pom-home__cat-btn {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  background: rgba(27, 107, 119, 0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.25s ease;
}

.pom-home__cat:hover .pom-home__cat-btn {
  background: rgba(27, 107, 119, 1);
}

/* ── Section marque / atelier ── */
.pom-home__story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
}

.pom-home__story-text {
  padding: 5rem 5rem 5rem 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #EFF6F7;
}

.pom-home__story-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #0D1B1E;
  margin: 0.5rem 0 1.75rem;
  line-height: 1.2;
}

.pom-home__story-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #7A9499;
  line-height: 1.95;
  max-width: 420px;
  margin: 0 0 2.5rem;
}

.pom-home__story-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.85rem 2.5rem;
  border: 1px solid #0D1B1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #0D1B1E;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.pom-home__story-cta:hover {
  background: #0D1B1E;
  color: #fff;
}

.pom-home__story-photo {
  background: #EFF6F7;
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.pom-home__story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Signature ── */
.pom-home__signature {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-top: 1px solid #FFFFFF;
}

.pom-home__signature-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pom-home__signature-line {
  width: 60px;
  height: 1px;
  background: #1B6B77;
}

.pom-home__signature-diamond {
  font-size: 10px;
  color: #1B6B77;
  letter-spacing: 0;
}

.pom-home__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 300;
  font-style: italic;
  color: #7A9499;
  letter-spacing: 0.05em;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Réassurance ── */
.pom-home__reassurance {
  background: #EFF6F7;
  border-top: 1px solid #EFF6F7;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .pom-home__cat-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 60vw 60vw 60vw 60vw;
    background: #EFF6F7;
  }
  .pom-home__cat--1 { grid-column: 1; grid-row: 1; }
  .pom-home__cat--2 { grid-column: 1; grid-row: 2; }
  .pom-home__cat--3 { grid-column: 1; grid-row: 3; }
  .pom-home__cat--4 { grid-column: 1; grid-row: 4; }

  .pom-home__story {
    grid-template-columns: 1fr;
  }
  .pom-home__story-photo { min-height: 55vw; order: -1; }
  .pom-home__story-text { padding: 3rem 1.5rem; }

  .pom-home__products-wrap .products { padding: 0 1.25rem 1.5rem; gap: 1rem; }
  .pom-home__products-wrap .products > * { flex: 0 0 72vw !important; width: 72vw !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pom-home__cat-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 42vw 42vw;
  }
  .pom-home__cat--1 { grid-column: 1; grid-row: 1; }
  .pom-home__cat--2 { grid-column: 2; grid-row: 1; }
  .pom-home__cat--3 { grid-column: 1; grid-row: 2; }
  .pom-home__cat--4 { grid-column: 2; grid-row: 2; }

  .pom-home__story-text { padding: 3rem 3rem 3rem 4vw; }
}

/* ══════════════════════════════════════════
   STORIES — Pastilles rondes éditoriales
══════════════════════════════════════════ */
.pom-stories {
  padding: 30px 50px 20px;
  background: #FFFFFF;
}

.pom-stories__container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pom-stories__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 8px;
  transition: transform 0.3s ease;
}

.pom-stories__item:hover {
  transform: translateY(-3px);
}

.pom-stories__circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1B6B77;
  padding: 3px;
  background: #FFFFFF;
}

.pom-stories__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.pom-stories__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #0D1B1E;
  text-transform: capitalize;
}

@media (max-width: 767px) {
  .pom-stories {
    padding: 20px 15px;
  }
  .pom-stories__container {
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .pom-stories__circle {
    width: 60px;
    height: 60px;
  }
}

/* ══════════════════════════════════════════
   LE LOOK — Photo éditoriale + 4 produits
══════════════════════════════════════════ */
.pom-look__header {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 20px;
}

.pom-look__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1B6B77;
  display: block;
  margin-bottom: 10px;
}

.pom-look__title {
  font-family: 'Palatino Linotype', 'Palatino', serif;
  font-size: 32px;
  font-style: italic;
  color: #0D1B1E;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 767px) {
  .pom-look__title {
    font-size: 24px;
  }
}

.pom-look {
  padding: 10px;
}

.pom-look__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.pom-look__hero {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1/1;
  text-decoration: none;
}

.pom-look__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pom-look__hero:hover img {
  transform: scale(1.04);
}

.pom-look__hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
}

.pom-look__hero-title {
  font-family: 'Palatino Linotype', 'Palatino', serif;
  font-size: 32px;
  font-style: italic;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.pom-look__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
}

.pom-look__products .pom-product-card {
  margin: 0;
}

@media (max-width: 991px) {
  .pom-look__grid {
    grid-template-columns: 1fr;
  }
  .pom-look__hero-title {
    font-size: 24px;
  }
}

/* ── Fix stories mobile ── */
.pom-stories {
  overflow: hidden;
  width: 100%;
}

.pom-stories__container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  flex-wrap: nowrap !important;
  padding-bottom: 4px;
}

.pom-stories__container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ── Fix pom-look mobile ── */
.pom-look {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.pom-look__grid {
  overflow: hidden;
}

@media (max-width: 991px) {
  .pom-look__grid {
    grid-template-columns: 1fr !important;
  }

  .pom-look__hero {
    aspect-ratio: 16/9;
    width: 100%;
  }

  .pom-look__products {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .pom-look__products {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 6px;
  }

  .pom-look__hero-title {
    font-size: 18px !important;
  }
}

/* ── Images produits pleine largeur dans pom-look mobile ── */
@media (max-width: 991px) {
  .pom-look__products .pom-product-card__img-wrap {
    aspect-ratio: 1/1;
    width: 100%;
  }

  .pom-look__products .pom-product-card__img-primary {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    padding: 0 !important;
  }

  .pom-look__products .pom-product-card {
    width: 100%;
  }

  .pom-look__products .pom-product-card__img-link {
    display: block;
    width: 100%;
  }
}

/* ── Titre section catégories ── */
.pom-categories__header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.pom-categories__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1B6B77;
  display: block;
  margin-bottom: 8px;
}

.pom-categories__title {
  font-family: 'Palatino Linotype', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #0D1B1E;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ============================================================
   ÉCLAT DE VIVIE — Homepage Option C (.edv-*)
   ============================================================ */

/* -- Hero : 2 CTAs -- */
.edv-hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2.5rem;
}
.edv-hero-actions .pom-btn {
  padding: 14px 40px;
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* -- En-tête de section -- */
.edv-section-header { text-align: center; margin-bottom: 4rem; }
.edv-eyebrow {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.35em;
  color: #1B6B77; margin-bottom: 1rem;
}
.edv-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; line-height: 1.1; color: #0D1B1E;
  margin-top: 0.5rem; margin-bottom: 0;
}
.edv-section-title em { font-style: italic; color: #1B6B77; }
.edv-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1rem; color: #1B6B77; font-size: 12px;
}
.edv-divider::before, .edv-divider::after {
  content: ''; width: 48px; height: 1px; background: #C5DDE0;
}

/* ══════════════ SECTION CATÉGORIES — strip 4 colonnes plein format ══════════════ */
.edv-cat-section {
  width: 100%;
  background: #FFFFFF;
  padding: 3rem 0;
}

.edv-cat-header {
  text-align: center;
  padding: 0 2.5rem 2.5rem;
}

.edv-cat-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: #0D1B1E;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.edv-cat-title em {
  font-style: italic;
  color: #1B6B77;
}

.edv-cat-subtitle {
  font-size: 14px;
  color: #7A9499;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.edv-cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 560px;
  padding: 0 24px;
}

.edv-cat-strip__item {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  height: 100%;
  background: #EFF6F7;
}

.edv-cat-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s ease;
  filter: brightness(0.88);
}

.edv-cat-strip__item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

/* Overlay gradient */
.edv-cat-strip__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,27,30,0.8) 0%,
    rgba(13,27,30,0.2) 50%,
    transparent 75%
  );
  z-index: 1;
  transition: background 0.4s;
}

.edv-cat-strip__item:hover::before {
  background: linear-gradient(
    to top,
    rgba(13,27,30,0.9) 0%,
    rgba(27,107,119,0.3) 50%,
    transparent 80%
  );
}

/* Contenu texte */
.edv-cat-strip__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Numéro retiré du markup — règle gardée en garde-fou (cache/template ancien) */
.edv-cat-strip__num {
  display: none !important;
}

/* Nom catégorie */
.edv-cat-strip__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
  transform: translateY(4px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.edv-cat-strip__item:hover .edv-cat-strip__name {
  transform: translateY(-4px);
}

/* Sous-titre Explorer */
.edv-cat-strip__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C5DDE0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s 0.05s ease,
              transform 0.35s 0.05s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.edv-cat-strip__item:hover .edv-cat-strip__sub {
  opacity: 1;
  transform: translateY(-4px);
}

/* Ligne décorative au hover */
.edv-cat-strip__text {
  position: relative;
}

.edv-cat-strip__text::before {
  content: '';
  display: block;
  width: 0;
  height: 0.5px;
  background: #C5DDE0;
  margin-bottom: 6px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.edv-cat-strip__item:hover .edv-cat-strip__text::before {
  width: 32px;
}

/* Mobile — scroll horizontal avec accroche */
@media (max-width: 768px) {
  .edv-cat-strip {
    grid-template-columns: repeat(4, 75vw) !important;
    grid-auto-flow: column !important;
    height: 420px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 1rem !important;
    gap: 8px !important;
    scroll-snap-type: x mandatory !important;
  }

  .edv-cat-strip::-webkit-scrollbar {
    display: none !important;
  }

  .edv-cat-strip__item {
    scroll-snap-align: start !important;
  }

  .edv-cat-strip__name {
    font-size: 28px !important;
    transform: none !important;
  }

  /* Pas de survol au doigt : l'état « hover » (sous-titre + filet) serait
     inatteignable sur mobile → on l'affiche en permanence. */
  .edv-cat-strip__sub {
    opacity: 1 !important;
    transform: none !important;
  }

  .edv-cat-strip__text::before {
    width: 32px !important;
  }
}

/* ══════════════ SECTION FEATURED SPLIT — éditorial + double rail ══════════════ */
.edv-featured-section {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 520px;
  overflow: hidden;
  background: #FAFAFA;
}

/* ── Photo éditoriale fixe ── */
.edv-featured-editorial { position: relative; overflow: hidden; }
.edv-featured-editorial__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.edv-featured-editorial__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 27, 30, 0.85) 0%,
    rgba(13, 27, 30, 0.3) 50%,
    transparent 75%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  gap: 0.75rem;
}
.edv-featured-editorial__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0;
}
.edv-featured-editorial__title em { font-style: italic; color: #C5DDE0; }
.edv-featured-editorial__link {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.3s ease;
  margin-top: 0.5rem;
}
.edv-featured-editorial__link:hover { color: #C5DDE0; }

/* ── Rails de produits ── */
.edv-featured-rails {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  padding: 2.5rem 0;
  justify-content: center;
  min-width: 0; /* autorise le rail à rétrécir sous le contenu (sinon débordement) */
}
.edv-rail {
  flex: 1 1 0;
  min-width: 0; /* dans le wrapper flex : autorise le rail à rétrécir et scroller */
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  display: flex;
  align-items: center;
  cursor: grab;
  /* pas de scroll-behavior: smooth ici : il rendrait le drag saccadé
     (chaque set de scrollLeft serait animé). */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge legacy */
  /* fondu sur les bords */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.edv-rail::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.edv-rail:active,
.edv-rail.is-dragging { cursor: grabbing; }
/* gap:0 : indispensable pour que translateX(-50%) reboucle sans saut
   (l'espacement de jonction est porté par le padding-right de .products). */
.edv-rail__track {
  display: flex;
  gap: 0;
  width: max-content;
}

/* Miniatures dans les rails */
.edv-rail .products {
  display: flex !important;
  gap: 1rem;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  margin: 0 !important;
  padding: 0 1rem 0 0 !important; /* jonction = 1rem = gap interne → boucle fluide */
  background: transparent !important;
  width: max-content !important;
}
.edv-rail .pom-product-card { width: 320px !important; flex-shrink: 0 !important; }
.edv-rail .pom-product-card__img-wrap { aspect-ratio: 1 / 1; height: auto !important; }
.edv-rail .pom-product-card__name {
  font-size: 13px !important;
  -webkit-line-clamp: 1;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edv-rail .pom-product-card__price--current,
.edv-rail .pom-product-card__price .price { font-size: 13px !important; }

/* Repli sans JS : éléments parasites éventuels des modules */
.edv-rail h1, .edv-rail h2, .edv-rail .edv-section-title,
.edv-rail .all-product-link, .edv-rail__track > a { display: none !important; }

/* Auto-scroll + drag + boucle pilotés en JS (rAF) via scrollLeft :
   plus d'animation CSS ici (un seul système, pas de double mécanique). */

/* ── Wrapper + flèches de navigation ── */
.edv-rail-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.edv-rail-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1B6B77;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  transition: background 0.25s ease, transform 0.2s ease;
  z-index: 2;
  margin: 0 0.75rem;
}
.edv-rail-arrow:hover { background: #134F59; transform: scale(1.08); }
.edv-rail-arrow svg { stroke: #FFFFFF; }

@media (max-width: 1024px) {
  .edv-featured-section { grid-template-columns: 1fr; }
  .edv-featured-editorial { height: 350px; }
}

/* ── Rail « Nos incontournables » — mobile ── */
@media (max-width: 768px) {
  .edv-featured-section {
    grid-template-columns: 1fr !important;
    /* Supprime le min-height (520px desktop) qui étirait la ligne du titre à
       159px → ~120px de vide sous « Nos incontournables ». Lignes = contenu. */
    min-height: 0 !important;
    grid-template-rows: auto auto !important;
    align-content: start !important;
  }

  /* Photo éditoriale masquée (elle contenait le titre → rétabli en ::before) */
  .edv-featured-editorial {
    display: none !important;
  }

  /* Titre de section rétabli au-dessus du rail */
  .edv-featured-section::before {
    content: 'Nos incontournables' !important;
    display: block !important;
    text-align: center !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #0D1B1E !important;
    padding: 1rem 1rem 0 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.03em !important;
  }

  /* Rails pleine largeur */
  .edv-featured-rails {
    padding: 0.75rem 0 1.5rem !important;
    width: 100% !important;
  }

  .edv-rail-wrapper {
    width: 100% !important;
    position: relative !important;
  }

  /* Flèches discrètes, superposées, centrées verticalement
     (ajout top/transform : sans ça elles tomberaient en haut du rail) */
  .edv-rail-arrow {
    width: 32px !important;
    height: 32px !important;
    background: #1B6B77 !important;
    opacity: 0.85 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  .edv-rail-arrow:hover {
    transform: translateY(-50%) scale(1.05) !important;
  }
  .edv-rail-arrow--prev { left: 4px !important; }
  .edv-rail-arrow--next { right: 4px !important; }
  .edv-rail-arrow svg { width: 14px !important; height: 14px !important; }

  /* Rail pleine largeur */
  .edv-rail {
    width: 100% !important;
    flex: 1 !important;
  }

  /* Miniatures dimensionnées pour mobile (desktop = 320px, trop large) */
  .edv-rail .pom-product-card {
    width: 220px !important;
    flex-shrink: 0 !important;
  }
  .edv-rail .pom-product-card__img-wrap {
    aspect-ratio: 1 / 1 !important;
  }
}

/* -- Histoire (2 col) -- */
.edv-story {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 650px;
  margin: 5rem 0;
}
.edv-story__text {
  background: #1B6B77; padding: 6rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.edv-story__text .edv-eyebrow { color: #C5DDE0; }
.edv-story__text .edv-section-title {
  color: #FFFFFF; text-align: left;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
}
.edv-story__text p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.85;
}
.edv-story__text .pom-btn { align-self: flex-start; }
.edv-story__img { position: relative; background: #C5DDE0; }
.edv-story__img::before {
  content: ''; position: absolute; inset: 1.5rem;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
}

/* ── RÉASSURANCE ──
   Bandeau d'une ligne : 4 items côte à côte, séparés par un filet.
   Mobile : défilement horizontal. */
.edv-reassurance {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  background: #FFFFFF !important;
  border-top: 0.5px solid #EFF6F7 !important;
  border-bottom: 0.5px solid #EFF6F7 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ⚠️ Grille, pas flex-row : le titre et le texte sont FRÈRES de l'icône
   (pas de div englobante dans index.tpl). En flex-direction:row ils se
   mettraient côte à côte au lieu d'être empilés à droite de l'icône. */
.edv-reassurance-item {
  flex: 1 !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-areas:
    "icon title"
    "icon text" !important;
  align-content: center !important;
  column-gap: 1rem !important;
  padding: 1.5rem 2rem !important;
  border-right: 0.5px solid #EFF6F7 !important;
  text-align: left !important;
}

.edv-reassurance-item:last-child {
  border-right: none !important;
}

.edv-reassurance-icon {
  grid-area: icon !important;
  align-self: center !important;
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 50% !important;
  background: #EFF6F7 !important;
  margin: 0 !important;
  color: #1B6B77 !important;
}

.edv-reassurance-icon svg {
  stroke: #1B6B77 !important;
}

.edv-reassurance-title {
  grid-area: title !important;
  align-self: end !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #0D1B1E !important;
  letter-spacing: 0.04em !important;
  margin: 0 0 2px !important;
}

.edv-reassurance-text {
  grid-area: text !important;
  align-self: start !important;
  font-size: 11px !important;
  color: #7A9499 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Mobile — défilement horizontal */
@media (max-width: 768px) {
  .edv-reassurance {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
  }

  .edv-reassurance::-webkit-scrollbar {
    display: none !important;
  }

  .edv-reassurance-item {
    min-width: 200px !important;
    flex: 0 0 auto !important;
    padding: 1.25rem 1.5rem !important;
    border-right: 0.5px solid #EFF6F7 !important;
  }
}

.edv-newsletter { background: #FFFFFF; }

/* ── Formulaire ps_emailsubscription ── */
.edv-newsletter .email_subscription h4,
.edv-newsletter .ps-social-follow h4,
.edv-newsletter .ps-social-follow { display: none !important; }

.edv-newsletter .email_subscription {
  max-width: 480px;
  margin: 0 auto;
}
/* Le <p> légal est DANS le <form> : sans wrap il devient un item flex et
   écrase le champ e-mail. On le renvoie sur sa propre ligne. */
.edv-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.edv-newsletter form p {
  flex: 0 0 100%;
  order: 10;
}
.edv-newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  font-size: 13px;
  border: 0.5px solid #C5DDE0;
  border-right: none;
  background: #FFFFFF;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  color: #0D1B1E;
}
.edv-newsletter input[type="email"]::placeholder { color: #7A9499; }
.edv-newsletter input[type="submit"],
.edv-newsletter button[type="submit"] {
  padding: 14px 28px;
  background: #1B6B77;
  color: #FFFFFF;
  border: none;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.edv-newsletter input[type="submit"]:hover,
.edv-newsletter button[type="submit"]:hover { background: #134F59; }
.edv-newsletter .email_subscription p {
  font-size: 11px;
  color: #7A9499;
  margin-top: 0.75rem;
  text-align: center;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
  /* (la réassurance est passée en bandeau flex : plus de grille à ajuster) */
  .pom-home .pom-section { padding: 4rem 1.5rem; }
}
@media (max-width: 767px) {
  .edv-story { grid-template-columns: 1fr; min-height: 0; }
  .edv-story__text { padding: 3rem 1.5rem; }
  .edv-story__img { min-height: 320px; }
}

/* ── Newsletter mobile : formulaire empilé pleine largeur ── */
@media (max-width: 640px) {
  .edv-newsletter {
    padding: 3rem 1.25rem !important;
  }

  .edv-newsletter-title,
  .edv-newsletter .edv-section-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    margin-bottom: 1rem !important;
  }

  /* Formulaire empilé, pleine largeur */
  .edv-newsletter .email_subscription form,
  .edv-newsletter form {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  /* Champ e-mail pleine largeur (bordure complète rétablie) */
  .edv-newsletter input[type="email"] {
    width: 100% !important;
    border-right: 0.5px solid #C5DDE0 !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    text-align: center !important;
  }

  /* Bouton pleine largeur (libellé « S'inscrire » posé en JS, cf. theme.js) */
  .edv-newsletter input[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
  }

  /* Texte légal plus petit */
  .edv-newsletter .email_subscription p,
  .edv-newsletter p {
    font-size: 11px !important;
    color: #7A9499 !important;
    margin-top: 0.75rem !important;
    text-align: center !important;
  }
}

/* -- Titre du hero en Cormorant Garamond (spécificité > _slider.css) -- */
.pom-hero .pom-hero__slide-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
}
.pom-hero .pom-hero__slide-title em {
  font-style: normal;
  color: #1B6B77;
}

/* ============================================================
   ESPACEMENT / RESPIRATION (scopé .pom-home pour ne pas toucher
   cart / login / password / stores qui utilisent aussi .pom-section)
   ============================================================ */
.pom-home .pom-section {
  padding: 6rem 2.5rem;
}
/* Séparateur subtil entre sections */
.pom-home > section:not(:last-child) {
  border-bottom: 0.5px solid #EFF6F7;
}
/* Le hero et la bande réassurance portent déjà leur propre fond */
.pom-home > .pom-hero,
.pom-home > .edv-reassurance { border-bottom: none; }

/* -- Hero : typographie plus ample -- */
.pom-hero .pom-hero__slide-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.pom-hero .pom-hero__slide-subtitle {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C5DDE0;
  margin-bottom: 1rem;
}

/* -- Hero sur photo : overlay sombre + texte clair (lisibilité) -- */
.pom-hero .pom-hero__slide { position: relative; }
/* Scrim dégradé (plus dense à gauche, sous le texte) : meilleur contraste
   qu'un voile uniforme, et l'image reste lisible à droite. */
.pom-hero .pom-hero__slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 27, 30, 0.62) 0%,
    rgba(13, 27, 30, 0.40) 45%,
    rgba(13, 27, 30, 0.20) 100%
  );
  z-index: 1;
}
/* 500px par défaut (_slider.css) → titre sur 3 lignes et boutons empilés */
.pom-hero .pom-hero__slide-content { max-width: 760px; }
.pom-hero .edv-hero-actions { justify-content: flex-start; }
.pom-hero .pom-hero__slide-content {
  position: relative;
  z-index: 2;
}
/* Blanc + opacité : plus lisible que #C5DDE0 sur les tons chair clairs */
.pom-hero .pom-hero__slide-subtitle { color: #FFFFFF; opacity: 0.85; }
.pom-hero .pom-hero__slide-title { color: #FFFFFF; }
.pom-hero .pom-hero__slide-title em { color: #C5DDE0; }
/* Bouton outline lisible sur fond sombre */
.pom-hero .pom-btn--outline { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.7); }
.pom-hero .pom-btn--outline:hover { background: #FFFFFF; color: #0D1B1E; border-color: #FFFFFF; }

/* Correction cosmétique — masquer les titres propres des modules (ps_featuredproducts
   rend un <h1>Nos produits</h1> sans classe). Nos .edv-section-title restent visibles. */
.pom-home .pom-section > .pom-container > h1,
.pom-home .pom-section h1,
.pom-home .pom-section h2.pom-section__title,
.pom-home .pom-section .pom-products__title { display: none; }
