/* ==========================================================================
   TRENDHUB — sections de l'accueil
   Couverture façon magazine, sélections, marques, univers, bannière demande.
   ========================================================================== */

/* ---------- Couverture ---------- */
.cover {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  color: #fff;
  background: #111;
  overflow: hidden;
  isolation: isolate;
}
.cover--large {
  min-height: 82vh;
  min-height: 82svh;
}
.cover__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cover__media picture,
.cover__img {
  width: 100%;
  height: 100%;
}
.cover__img {
  object-fit: cover;
}
.cover__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, calc(var(--overlay, 0.3) + 0.12)) 0%,
    rgba(0, 0, 0, calc(var(--overlay, 0.3) * 0.7)) 32%,
    rgba(0, 0, 0, calc(var(--overlay, 0.3) * 0.5)) 58%,
    rgba(0, 0, 0, calc(var(--overlay, 0.3) + 0.22)) 100%
  );
}
.cover__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: inherit;
  padding-top: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  padding-bottom: clamp(2rem, 1.4rem + 3vw, 4rem);
}
.cover[data-header-overlap] .cover__inner {
  padding-top: calc(var(--header-h) + clamp(1.25rem, 0.8rem + 2vw, 2.5rem));
}
.cover__masthead {
  line-height: 0;
  color: #fff;
}
.cover__logo {
  width: 100%;
  height: auto;
}
.cover__dateline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.cover__dateline span:last-child {
  text-align: right;
}
.cover__bottom {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 34rem;
}
.cover__line {
  font: 400 clamp(2.1rem, 1.4rem + 3vw, 3.9rem) / 0.98 var(--f-serif);
  letter-spacing: -0.01em;
}
.cover__text {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
}
.cover__btn {
  margin-top: 0.75rem;
}
@media (prefers-reduced-motion: no-preference) {
  .cover__masthead {
    animation: th-masthead 1.5s var(--ease-out) 0.1s both;
  }
  .cover__dateline {
    animation: th-fade 1.2s var(--ease) 0.75s both;
  }
  .cover__bottom {
    animation: th-cover-up 1.3s var(--ease-out) 0.9s both;
  }
  .cover__img {
    animation: th-cover-zoom 3s var(--ease-out) both;
  }
}
@keyframes th-masthead {
  from {
    clip-path: inset(100% 0 0 0);
    transform: translate3d(0, 24px, 0);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}
@keyframes th-fade {
  from {
    opacity: 0;
  }
}
@keyframes th-cover-up {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
}
@keyframes th-cover-zoom {
  from {
    transform: scale(1.06);
  }
}

/* ---------- Sélection éditoriale ---------- */
.editorial {
  display: grid;
  gap: 2.5rem;
}
.editorial__link {
  margin-top: 1.75rem;
}
.editorial__grid {
  --offset: clamp(1.5rem, 1rem + 3vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
  margin: 0;
  padding: 0 0 var(--offset);
  list-style: none;
}
.editorial__grid > li:nth-child(even) {
  position: relative;
  top: var(--offset);
}
@media (min-width: 990px) {
  .editorial {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--gutter);
    align-items: start;
  }
  .editorial__intro {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* ---------- Nos marques ---------- */
.brands-showcase__layout {
  display: grid;
  gap: 2.5rem;
}
.brands-showcase__all {
  margin-top: 1.75rem;
}
@media (min-width: 990px) {
  .brands-showcase__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--gutter);
    align-items: start;
  }
}

/* ---------- Univers Streetwear / Luxe ---------- */
.split {
  display: grid;
  gap: 1px;
}
@media (min-width: 750px) {
  .split--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.split__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
}
@media (min-width: 990px) {
  .split--2 .split__item {
    aspect-ratio: auto;
    height: min(94vh, 64vw);
  }
}
.split__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease-out);
}
.split__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 100%);
}
.split__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  padding: clamp(1.25rem, 0.8rem + 2.4vw, 3.25rem);
}
.split__title {
  font: 400 clamp(3.25rem, 2rem + 5.6vw, 7rem) / 0.88 var(--f-serif);
  letter-spacing: -0.015em;
}
.split__text {
  max-width: 36ch;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.86);
}
.split__cta {
  padding-bottom: 3px;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
@media (hover: hover) {
  .split__item:hover .split__img {
    transform: scale(1.04);
  }
  .split__item:hover .split__cta {
    background-size: 35% 1px;
  }
}
.split__item:focus-visible {
  outline-offset: -6px;
  outline-color: #fff;
}

/* ---------- Bannière demande personnalisée ---------- */
.request-banner {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2.5rem, 1.8rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 3vw, 4.5rem);
  background: var(--c-line);
}
.request-banner__title {
  font: 400 var(--fs-xl) / 1.02 var(--f-serif);
  letter-spacing: -0.005em;
  max-width: 15ch;
}
.request-banner__side {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
.request-banner__text {
  max-width: 46ch;
  color: var(--c-muted);
}
@media (min-width: 990px) {
  .request-banner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--gutter);
  }
}
