/* Pages collection — fond blanc + titres comme fiche produit (related-section) */

html:has(body.page-collection) {
  background: #fff;
}

body.page-collection {
  --text: #1a1a1a;
  --title-display: #2e2e2e;
  --muted: #6b6b6b;
  background: #fff !important;
  color: var(--text);
}

body.page-collection .page-breadcrumb--collection {
  padding: 18px 40px 0;
  font-size: 13px;
}

body.page-collection .page-breadcrumb--collection a {
  color: #5a5a5a;
  text-decoration: none;
}

body.page-collection .page-breadcrumb--collection a:hover {
  color: #d0296d;
}

body.page-collection .page-breadcrumb--collection .page-breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

body.page-collection .page-breadcrumb--collection .page-breadcrumb-sep {
  color: #9a9a9a;
}

body.page-collection .section-header,
body.page-collection .grid-wrap {
  background: #fff;
}

body.page-collection .section-header {
  padding: 32px 40px 16px;
  align-items: flex-end;
}

body.page-collection .section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
}

body.page-collection .section-title--display {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 4.8vw, 46px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--title-display);
}

body.page-collection .section-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(13px, 3vw, 23px);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

body.page-collection .section-sub.section-sub--lead {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 2.2vw, 18px);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

body.page-collection .collection-fit-note {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 10px;
  max-width: 28rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.5vw, 13px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #8a1848;
  background: #fce8f1;
  border: 1px solid #f3b6cf;
  border-radius: 6px;
}

body.page-collection .view-all {
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

body.page-collection .view-all:hover {
  color: var(--gold);
}

body.page-collection .grid-wrap {
  padding-top: 0;
  padding-bottom: 48px;
}

body.page-collection .product-name,
body.page-collection .product-price {
  color: var(--text);
}

body.page-collection .section-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  body.page-collection .products-grid.cols3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  body.page-collection .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 16px 12px;
  }

  body.page-collection .section-header > div:first-child {
    width: 100%;
    text-align: center;
  }

  body.page-collection .section-nav {
    justify-content: center;
    gap: 14px 18px;
    margin-bottom: 0;
    width: 100%;
  }

  body.page-collection .section-title {
    font-size: clamp(28px, 8vw, 40px);
    text-align: center;
  }

  body.page-collection .section-title--display {
    font-size: clamp(16px, 7vw, 28px);
  }

  body.page-collection .section-sub.section-sub--lead {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  body.page-collection .collection-fit-note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body.page-collection .section-sub {
    font-size: clamp(11px, 3vw, 14px);
    text-align: center;
  }

  body.page-collection .grid-wrap {
    padding: 0 16px 36px;
    max-width: 100%;
  }

  body.page-collection .products-grid.cols3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.page-collection .product-card {
    text-align: center;
  }

  body.page-collection .product-img-wrap {
    margin-bottom: 10px;
  }

  body.page-collection .product-name {
    font-size: 12px;
    line-height: 1.35;
    min-height: auto;
    margin-bottom: 4px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  body.page-collection .product-price {
    font-size: 12px;
    margin-bottom: 8px;
    text-align: center;
  }

  body.page-collection .product-add-btn {
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0.05em;
    gap: 5px;
    border-radius: 6px;
    border-width: 1px;
    max-width: 100%;
  }

  body.page-collection .product-add-btn-icon {
    width: 13px;
    height: 13px;
  }

  body.page-collection .product-add-btn span {
    font-size: 0;
    line-height: 0;
  }

  body.page-collection .product-add-btn span::after {
    content: 'Ajouter';
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

@media (max-width: 400px) {
  body.page-collection .products-grid.cols3 {
    gap: 10px;
  }

  body.page-collection .product-add-btn {
    padding: 7px 8px;
  }

  body.page-collection .product-add-btn span::after {
    font-size: 8px;
  }
}

/* Hub collection homme / femme — univers + grilles par style */
.collection-hub {
  padding: 0 40px 56px;
}

.collection-hub__intro {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
}

.collection-hub__nav-title {
  margin: 0 0 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.06em;
  color: var(--title-display);
}

.collection-hub__nav-lead {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.collection-hub__univ-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 40px;
  align-items: stretch;
}

.collection-hub__univ-cards .univers-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a10;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.collection-hub__univ-cards .univers-card--pink {
  border-color: #d0296d;
}

.collection-hub__univ-cards .univers-card--gold {
  border-color: #c9a84a;
}

.collection-hub__univ-cards .univers-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.collection-hub__univ-cards .univers-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  padding: 18px 16px 10px;
  background: #0a0a10;
}

.collection-hub__univ-cards .univers-card__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.collection-hub__univ-cards .univers-card:hover .univers-card__media img {
  transform: none;
}

.collection-hub__univ-cards .univers-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 0 14px 14px;
  background: #0a0a10;
}

.collection-hub__univ-cards .univers-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}

.collection-hub__univ-cards .univers-card__tagline {
  font-size: 13px;
  line-height: 1.4;
  color: #c9a84a;
}

.collection-hub__univ-cards .univers-card__arrow {
  margin-top: auto;
  padding-top: 6px;
  font-size: 16px;
  color: #d0296d;
}

.collection-hub__section {
  max-width: 1200px;
  margin: 0 auto 40px;
  scroll-margin-top: 88px;
}

.collection-hub__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #ece4d8;
}

.collection-hub__section-title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 3.5vw, 30px);
  color: var(--title-display);
}

.collection-hub__section-count {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.collection-hub__grid {
  padding: 0;
}

/* Cartes produit hub homme / femme — contour blanc */
body.page-collection .collection-hub__grid .product-card {
  border: 2px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  background: #12031a;
  box-sizing: border-box;
}

body.page-collection .collection-hub__grid .product-img-wrap {
  margin-bottom: 0;
  border-radius: 0;
}

body.page-collection .collection-hub__grid .product-name,
body.page-collection .collection-hub__grid .product-price {
  padding-left: 12px;
  padding-right: 12px;
}

body.page-collection .collection-hub__grid .product-price {
  padding-bottom: 12px;
}

body.page-collection .collection-hub__grid .product-name {
  padding-top: 10px;
  color: #fff;
}

body.page-collection .collection-hub__grid .product-price {
  color: #d0296d;
}

.collection-hub__empty {
  margin: 0;
  padding: 20px 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .collection-hub__univ-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }

  .collection-hub__univ-cards .univers-card {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .collection-hub {
    padding: 0 16px 40px;
  }

  .collection-hub__section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .collection-hub__univ-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
  }

  .collection-hub__univ-cards .univers-card__media {
    padding: 14px 12px 8px;
  }

  .collection-hub__univ-cards .univers-card__body {
    min-height: 84px;
    padding: 0 10px 12px;
  }

  .collection-hub__univ-cards .univers-card__title {
    font-size: 22px;
  }

  .collection-hub__univ-cards .univers-card__tagline {
    font-size: 12px;
  }
}
