/**
 * BienHabillé — Homepage CSS
 * Hero, sections éditoriales, lookbook, bannières
 *
 * @package BienHabille
 */

/* ============================================================
   HERO PRINCIPAL
   ============================================================ */

.bh-hero {
  position: relative;
  background: var(--bh-beige-light);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: stretch;
}

.bh-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bh-hero__media img,
.bh-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.15) 60%,
    transparent 100%
  );
  z-index: 1;
}

.bh-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--bh-space-16) var(--bh-space-8) var(--bh-space-12);
  max-width: 700px;
}

.bh-hero__eyebrow {
  font-size: var(--bh-text-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--bh-space-4);
}

.bh-hero__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  color: var(--bh-white);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--bh-space-6);
}

.bh-hero__title em {
  font-style: normal;
  color: var(--bh-beige-dark);
}

.bh-hero__subtitle {
  font-size: var(--bh-text-md);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: var(--bh-space-8);
  max-width: 460px;
}

.bh-hero__ctas {
  display: flex;
  gap: var(--bh-space-4);
  flex-wrap: wrap;
}

.bh-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  padding: var(--bh-space-4) var(--bh-space-8);
  background: var(--bh-white);
  color: var(--bh-black);
  border-radius: var(--bh-radius-pill);
  font-size: var(--bh-text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--bh-transition);
  white-space: nowrap;
}

.bh-hero__cta-primary:hover {
  opacity: 0.85;
}

.bh-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--bh-space-4) var(--bh-space-8);
  background: transparent;
  color: var(--bh-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--bh-radius-pill);
  font-size: var(--bh-text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--bh-transition), border-color var(--bh-transition);
  white-space: nowrap;
}

.bh-hero__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--bh-white);
}

/* Hero split (2 colonnes) */
.bh-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.bh-hero--split .bh-hero__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.bh-hero--split .bh-hero__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bh-transition-slow);
}

.bh-hero--split .bh-hero__panel:hover img {
  transform: scale(1.03);
}

.bh-hero--split .bh-hero__panel-content {
  position: relative;
  z-index: 2;
  padding: var(--bh-space-8);
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  width: 100%;
}

.bh-hero--split .bh-hero__panel-title {
  font-size: var(--bh-text-2xl);
  font-weight: 700;
  color: var(--bh-white);
  line-height: 1.1;
  margin-bottom: var(--bh-space-3);
}

.bh-hero--split .bh-hero__panel-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-space-2);
  font-size: var(--bh-text-sm);
  font-weight: 600;
  color: var(--bh-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  transition: border-color var(--bh-transition);
}

.bh-hero--split .bh-hero__panel-cta:hover {
  border-color: var(--bh-white);
}

/* ============================================================
   SECTION CATÉGORIES HOMEPAGE
   ============================================================ */

.bh-section-cats {
  padding: var(--bh-space-16) var(--bh-space-8);
  background: var(--bh-white);
}

.bh-section-cats__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--bh-space-8);
}

.bh-section-cats__title {
  font-size: var(--bh-text-2xl);
  font-weight: 700;
  color: var(--bh-black);
  letter-spacing: -0.02em;
}

.bh-section-cats__see-all {
  font-size: var(--bh-text-sm);
  font-weight: 600;
  color: var(--bh-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--bh-transition);
}

.bh-section-cats__see-all:hover {
  opacity: 0.6;
}

.bh-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--bh-space-3);
}

.bh-cat-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--bh-beige-mid);
}

.bh-cat-card__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform var(--bh-transition-slow);
}

.bh-cat-card:hover .bh-cat-card__image {
  transform: scale(1.04);
}

.bh-cat-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--bh-space-5) var(--bh-space-4) var(--bh-space-4);
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: var(--bh-white);
  font-size: var(--bh-text-sm);
  font-weight: 700;
  line-height: 1.3;
}

/* Grande carte éditoriale */
.bh-cat-card--large {
  grid-row: span 2;
}

.bh-cat-card--large .bh-cat-card__image {
  aspect-ratio: auto;
  height: 100%;
  position: absolute;
  inset: 0;
  width: 100%;
}

.bh-cat-card--large {
  min-height: 500px;
}

/* ============================================================
   SECTION NOUVEAUTÉS — Slider horizontal
   ============================================================ */

.bh-section-new {
  padding: var(--bh-space-16) 0;
  background: var(--bh-beige-light);
  overflow: hidden;
}

.bh-section-new__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--bh-space-8);
  margin-bottom: var(--bh-space-8);
}

.bh-section-new__title {
  font-size: var(--bh-text-2xl);
  font-weight: 700;
  color: var(--bh-black);
  letter-spacing: -0.02em;
}

.bh-section-new__nav {
  display: flex;
  gap: var(--bh-space-3);
}

.bh-slider-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bh-black);
  border-radius: 50%;
  background: var(--bh-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--bh-transition), color var(--bh-transition);
  color: var(--bh-black);
}

.bh-slider-nav-btn svg {
  width: 18px;
  height: 18px;
}

.bh-slider-nav-btn:hover {
  background: var(--bh-black);
  color: var(--bh-white);
}

.bh-slider-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bh-slider-track {
  display: flex;
  gap: var(--bh-space-3);
  padding: 0 var(--bh-space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.bh-slider-track:active {
  cursor: grabbing;
}

.bh-slider-track::-webkit-scrollbar {
  display: none;
}

.bh-slider-track .bh-product-card {
  flex-shrink: 0;
  width: 260px;
  scroll-snap-align: start;
}

/* ============================================================
   SECTION LOOKBOOK — Editorial
   ============================================================ */

.bh-section-lookbook {
  padding: var(--bh-space-16) var(--bh-space-8);
  background: var(--bh-white);
}

.bh-lookbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bh-space-3);
}

.bh-lookbook-item {
  position: relative;
  overflow: hidden;
  background: var(--bh-beige-mid);
  display: block;
  text-decoration: none;
}

.bh-lookbook-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform var(--bh-transition-slow);
}

.bh-lookbook-item:hover img {
  transform: scale(1.03);
}

.bh-lookbook-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--bh-transition-slow);
  display: flex;
  align-items: flex-end;
  padding: var(--bh-space-8);
}

.bh-lookbook-item:hover .bh-lookbook-item__overlay {
  background: rgba(0, 0, 0, 0.3);
}

.bh-lookbook-item__content {
  color: var(--bh-white);
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--bh-transition), opacity var(--bh-transition);
}

.bh-lookbook-item:hover .bh-lookbook-item__content {
  transform: translateY(0);
  opacity: 1;
}

.bh-lookbook-item__title {
  font-size: var(--bh-text-xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--bh-space-2);
}

.bh-lookbook-item__sub {
  font-size: var(--bh-text-sm);
  opacity: 0.8;
}

/* Lookbook full width */
.bh-lookbook-item--full {
  grid-column: 1 / -1;
}

.bh-lookbook-item--full img {
  aspect-ratio: 16/7;
}

/* ============================================================
   SECTION MARQUE — Texte géant + slogan
   ============================================================ */

.bh-section-brand {
  padding: var(--bh-space-20) var(--bh-space-8);
  background: var(--bh-black);
  text-align: center;
  overflow: hidden;
}

.bh-section-brand__eyebrow {
  font-size: var(--bh-text-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--bh-space-6);
}

.bh-section-brand__title {
  font-size: var(--bh-text-giant);
  font-weight: 700;
  color: var(--bh-white);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: var(--bh-space-8);
}

.bh-section-brand__title em {
  font-style: normal;
  color: var(--bh-beige-dark);
}

.bh-section-brand__desc {
  font-size: var(--bh-text-md);
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto var(--bh-space-8);
  line-height: 1.6;
}

.bh-section-brand__cta {
  display: inline-flex;
  align-items: center;
  padding: var(--bh-space-4) var(--bh-space-8);
  background: var(--bh-white);
  color: var(--bh-black);
  border-radius: var(--bh-radius-pill);
  font-size: var(--bh-text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--bh-transition);
}

.bh-section-brand__cta:hover {
  opacity: 0.85;
}

/* ============================================================
   BANNIÈRES PROMOTIONNELLES
   ============================================================ */

.bh-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bh-space-3);
  padding: var(--bh-space-16) var(--bh-space-8);
  background: var(--bh-beige-light);
}

.bh-promo-banner {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--bh-beige-mid);
}

.bh-promo-banner__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform var(--bh-transition-slow);
}

.bh-promo-banner:hover .bh-promo-banner__image {
  transform: scale(1.03);
}

.bh-promo-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--bh-space-8);
  background: linear-gradient(90deg, rgba(10,10,10,0.6) 0%, transparent 70%);
}

.bh-promo-banner__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--bh-space-3);
  background: var(--bh-red);
  color: var(--bh-white);
  border-radius: var(--bh-radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--bh-space-3);
  width: fit-content;
}

.bh-promo-banner__title {
  font-size: var(--bh-text-xl);
  font-weight: 700;
  color: var(--bh-white);
  line-height: 1.2;
  margin-bottom: var(--bh-space-2);
}

.bh-promo-banner__sub {
  font-size: var(--bh-text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--bh-space-5);
}

.bh-promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-space-2);
  padding: var(--bh-space-3) var(--bh-space-5);
  background: var(--bh-white);
  color: var(--bh-black);
  border-radius: var(--bh-radius-pill);
  font-size: var(--bh-text-sm);
  font-weight: 700;
  width: fit-content;
  transition: opacity var(--bh-transition);
}

.bh-promo-banner__cta:hover {
  opacity: 0.85;
}

/* Bannière full width */
.bh-promo-banner--full {
  grid-column: 1 / -1;
}

/* ============================================================
   SECTION BESTSELLERS
   ============================================================ */

.bh-section-bestsellers {
  padding: var(--bh-space-16) var(--bh-space-8);
  background: var(--bh-white);
}

.bh-section-bestsellers__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--bh-space-8);
}

.bh-section-title {
  font-size: var(--bh-text-2xl);
  font-weight: 700;
  color: var(--bh-black);
  letter-spacing: -0.02em;
}

/* Tabs filtres bestsellers */
.bh-section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bh-gray-mid);
  margin-bottom: var(--bh-space-6);
}

.bh-section-tab {
  padding: var(--bh-space-3) var(--bh-space-5);
  font-size: var(--bh-text-sm);
  font-weight: 500;
  color: var(--bh-gray-text);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--bh-font);
  transition: color var(--bh-transition), border-color var(--bh-transition);
}

.bh-section-tab.is-active {
  color: var(--bh-black);
  border-bottom-color: var(--bh-black);
  font-weight: 700;
}

.bh-section-tab:hover:not(.is-active) {
  color: var(--bh-black);
}

/* ============================================================
   SECTION RÉASSURANCE HOMEPAGE
   ============================================================ */

.bh-section-reassurance {
  padding: var(--bh-space-10) var(--bh-space-8);
  background: var(--bh-beige-light);
  border-top: 1px solid var(--bh-beige-dark);
  border-bottom: 1px solid var(--bh-beige-dark);
}

.bh-reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bh-space-6);
  max-width: var(--bh-container);
  margin: 0 auto;
}

.bh-reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: var(--bh-space-4);
}

.bh-reassurance-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--bh-black);
}

.bh-reassurance-item__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.bh-reassurance-item__title {
  font-size: var(--bh-text-sm);
  font-weight: 700;
  color: var(--bh-black);
  margin-bottom: 4px;
}

.bh-reassurance-item__desc {
  font-size: var(--bh-text-xs);
  color: var(--bh-gray-text);
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE HOMEPAGE
   ============================================================ */

@media (max-width: 1279px) {
  .bh-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) {
  .bh-hero {
    min-height: 60vh;
  }

  .bh-hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bh-hero--split .bh-hero__panel {
    min-height: 50vh;
  }

  .bh-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bh-cat-card--large {
    grid-row: span 1;
    min-height: 0;
  }

  .bh-cat-card--large .bh-cat-card__image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
  }

  .bh-promo-grid {
    grid-template-columns: 1fr;
  }

  .bh-reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bh-lookbook-item--full img {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 767px) {
  .bh-hero__content {
    padding: var(--bh-space-8) var(--bh-space-4) var(--bh-space-8);
  }

  .bh-hero__title {
    font-size: clamp(32px, 10vw, 56px);
  }

  .bh-hero__ctas {
    flex-direction: column;
  }

  .bh-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bh-lookbook-grid {
    grid-template-columns: 1fr;
  }

  .bh-lookbook-item--full img {
    aspect-ratio: 3/4;
  }

  .bh-section-brand__title {
    font-size: clamp(40px, 15vw, 80px);
  }

  .bh-reassurance-grid {
    grid-template-columns: 1fr;
  }

  .bh-section-cats,
  .bh-section-new,
  .bh-section-lookbook,
  .bh-section-brand,
  .bh-promo-grid,
  .bh-section-bestsellers,
  .bh-section-reassurance {
    padding-left: var(--bh-space-4);
    padding-right: var(--bh-space-4);
  }

  .bh-slider-track {
    padding: 0 var(--bh-space-4);
  }

  .bh-section-new__header {
    padding: 0 var(--bh-space-4);
  }
}