.hero-center {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-cta-header {
  border: 1px solid #000000;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000;
  background: transparent;
  white-space: nowrap;
}

.hero-cta-header:hover {
  background: #000000;
  color: #fff;
  transition: 0.3s;
}

.hero-text {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #ffffff;
  text-align: right;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-center,
  .hero-text {
    display: none;
  }
}

.hero-cta:hover {
  background: #000000;
  color: #fff;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hero-center,
  .hero-text {
    display: none;
  }
}

/* Caché sur desktop */
.editorial-mobile {
  display: none;
}

/* Visible uniquement sur mobile */
@media (max-width: 768px) {
  .editorial-mobile {
    display: block;
    padding: 20px !important;
  }

  .editorial-mobile-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-style: italic;
    color: #000000;
    margin-bottom: 12px;
  }

  .editorial-mobile-img {
    position: relative;
  }

  .editorial-mobile-img img {
    width: 100% !important;
    height: auto;
    display: block;
        max-width: 100% !important;
  }

  .editorial-mobile-caption {
    position: absolute;
    bottom: 12px;
    left: 15px;
    font-size: 12px;
    color: #000000;
  }

  .editorial-mobile-text {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.8;
    color: #000000;
  }

  .editorial-mobile-cta {
    display: inline-block;
    margin-top: 20px;
    border: 1px solid #000000;
    padding: 12px 24px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
 font-family: 'Montserrat', sans-serif;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  /* padding: 5px; */
  margin-top: 5px !important;
  grid-auto-rows: 1fr; /* ← toutes les lignes à la même hauteur */
  align-items: stretch;
}

/* Tablette & mobile */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Très petit mobile (optionnel) */
@media (max-width: 400px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* reste en 2 */
  }
}

.card {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 3 / 5;  */
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Overlay texte */
.overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .overlay {
    font-size: 12px;
  }
}

/* Reset ciblé pour éviter les conflits */
.editorial-scenes,
.editorial-scenes * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.editorial-scenes {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 5px !important;
}

.editorial-left {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff;
  padding: 60px 20px;
}

.editorial-image-wrapper {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editorial-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: #ffffff;
}

@media (max-width: 768px) {
  .editorial-labels {
    font-size: 12px;
  }
}

.editorial-image-wrapper img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: unset !important; /* annule les règles SFCC */
}

.editorial-right {
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
  overflow: hidden;
}

.editorial-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.caption {
  position: absolute;
  bottom: 15px;
  left: 20px !important; 
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: #000000;
}

@media (max-width: 768px) {
  .caption {
    font-size: 12px;
  }
}

.editorial-scenes,
.editorial-scenes ~ *,
div:has(> .editorial-scenes),
div:has(> .editorial-scenes) > * {
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

div.editorial-scenes {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.editorial-image-inner {
  position: relative;
}

.product-name-left {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  /* text-transform: uppercase; */
  color: #000000;
}

@media (max-width: 768px) {
  .product-name-left {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .editorial-scenes {
    grid-template-columns: 1fr !important;
  }

  .editorial-left {
    display: none !important;
  }

  .editorial-right {
    grid-column: 1 / -1 !important;
    min-height: 500px;
    width: 100% !important;
  }
}

/* Inversion des colonnes */
.editorial-scenes--reverse .editorial-left {
  order: 2;
}

.editorial-scenes--reverse .editorial-right {
  order: 1;
}

.ed3 {
  width: 100%;
  margin: 40px 0 !important;
}

.ed3-header {
  width: 75%;
  text-align: right;
  padding-bottom: 8px;
}

.ed3-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px !important;
  font-style: italic; 
  color: #000000;
}

@media (max-width: 768px) {
  .ed3-label {
    font-size: 12px;
  }
}

.ed3-body {
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.ed3-img {
  position: relative;
  width: 75%;
  flex-shrink: 0;
}

.ed3-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ed3-products {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  /* text-transform: uppercase; */
  color: #ffffff;
  text-align: right;
}

@media (max-width: 768px) {
  .ed3-products {
    font-size: 12px;
  }
}

.ed3-text {
  width: 25%;
  padding: 0 20px;
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: #000000;
  line-height: 1.5;
  text-align: right;
  align-self: flex-end;
}

@media (max-width: 768px) {

 .ed3 {
  margin: 10px 0 !important;
}

  .ed3-body {
    flex-direction: column;
  }

  .ed3-img {
    width: 100% !important;
  }

  .ed3-img img {
    height: auto;
  }

  .ed3-header {
    width: 100%;
    text-align: right;
  }

  .ed3-text {
    width: 100% !important;
    font-size: 12px;
    text-align: center;
    padding: 15px 20px;
  }
}

.hero {
  position: relative;
  width: 100%;
  margin: 5px 0 !important;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #000000;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000;
  background: transparent;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-cta {
    font-size: 12px;
  }
}

.hero-cta:hover {
  background: #000000;
  color: #fff;
  transition: 0.3s;
}

/* Italic sur les mots Coolness et Style */
.coolness,
.style {
  font-style: italic;
}

/* Tablette */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Typographies */
  .overlay,
  .editorial-labels,
  .caption,
  .product-name-left,
  .ed3-label,
  .ed3-products,
  .ed3-text,
  .hero-cta {
    font-size: 13px !important;
  }

  /* Editorial scenes */
  .editorial-image-wrapper {
    width: 70%;
  }

  .editorial-right {
    min-height: 700px;
  }

  /* Ed3 */
  .ed3-header {
    width: 85%;
  }

  .ed3-img {
    width: 65%;
  }

  .ed3-text {
    width: 35%;
  }
}

.overlay a,
.ed3-products a,
.caption a,
.product-name-left a {
  color: #ffffff;
  text-decoration: none;
}

/* Fix CTA dans le bloc mobile */
.editorial-mobile .hero-cta {
  position: static;         /* annule le position: absolute du hero */
  transform: none;          /* annule le translate(-50%, -50%) */
  display: inline-block;
  border: 1px solid #000;
  padding: 12px 24px;
  font-size: 12px;
  text-decoration: none;
  color: #000;
  background: transparent;
  margin-bottom: 10px;
}

/* Fix espacement entre les éléments */
.editorial-mobile-text {
  margin-top: 20px;         /* déjà présent mais vérifier qu'il s'applique */
  margin-bottom: 20px;      /* ajouter un espace sous le texte avant le CTA */
  font-size: 12px;
  line-height: 1.8;
  color: #000;
}