/* Nuance Dorée — final visual language shared by every page. */
:root {
  --polish-line: #dfd5c4;
  --polish-soft: #fbf8f2;
  --polish-shadow: 0 16px 42px rgb(89 67 30 / 7%);
}

html { overflow-x: clip; }
body { overflow-x: clip; }
button, input, select, textarea { font-family: var(--font); }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* A calm, consistent typographic scale. */
.section-heading h2 { font-size: clamp(32px, 3.25vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading .eyebrow, .shop-hero .eyebrow,
.collection-intro .eyebrow, .account-hero .eyebrow, .legal-kicker {
  font-size: 10px; line-height: 1.5; letter-spacing: .18em;
}
.hero-description, .duo-copy > p:not(.eyebrow):not(.offer-terms),
.collection-intro p, .legal-lead { line-height: 1.65; }
.button { border-radius: 999px; justify-content: center; gap: 20px; }
.button svg, .button i { flex: none; }
.text-link { text-underline-offset: 5px; }

/* A real collection header, with enough room for its title and introduction. */
.shop-main { padding-bottom: 104px; }
.shop-hero {
  min-height: 256px;
  padding-block: clamp(54px, 5vw, 78px) 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.shop-hero h1 {
  font-size: clamp(47px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 13px;
}
.shop-hero > p:last-of-type { max-width: 610px; font-size: 15px; line-height: 1.65; }
.shop-hero:after { margin-top: 22px; }
.catalog-controls {
  display: block;
  padding: 22px 24px;
  margin: 28px 0 24px;
  background: var(--polish-soft);
  border: 1px solid var(--polish-line);
  border-radius: 16px;
}
.catalog-secondary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  grid-template-areas: "search types" "price price";
  align-items: center;
  gap: 16px 18px;
}
.catalog-search { grid-area: search; border-color: var(--polish-line); }
.catalog-pills { grid-area: types; gap: 7px; }
.catalog-pills .catalog-filter-link {
  border-color: var(--polish-line);
  background: #fff;
  padding: 10px 15px;
  min-height: 37px;
}
.catalog-pills .catalog-filter-link.active { background: var(--deep); border-color: var(--deep); }
.catalog-selects {
  grid-area: price;
  gap: 20px;
  justify-content: flex-end;
  padding-top: 13px;
  border-top: 1px solid var(--polish-line);
}
.catalog-selects label { white-space: nowrap; }
.catalog-count { font-size: 12px; letter-spacing: .025em; padding-bottom: 16px; margin-bottom: 26px; }

/* Each piece reads as a distinct object, while the whole grid stays quiet. */
.product-grid { align-items: stretch; gap: 24px 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--polish-line);
  border-radius: 17px 17px 36px 17px;
  box-shadow: 0 5px 18px rgb(89 67 30 / 4%);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
  overflow: hidden;
}
.product-card:hover {
  border-color: #cbb67d;
  box-shadow: var(--polish-shadow);
  transform: translateY(-4px);
}
.product-image {
  flex: none;
  aspect-ratio: 4 / 4.8;
  border-radius: 11px 11px 28px 11px;
}
.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 15px 10px 11px;
}
.product-meta { margin-bottom: 8px; font-size: 9px; line-height: 1.35; letter-spacing: .12em; }
.product-title-row {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.product-card .product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  width: 100%;
  min-height: 3.65em;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.product-card .product-title:hover { color: var(--wine); }
.product-card .product-price {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.product-colors { margin-top: 11px; min-height: 13px; }
.product-badge {
  top: 11px;
  left: 11px;
  max-width: calc(100% - 65px);
  padding: 6px 8px;
  font-size: 9px;
  background: #fffffff0;
}
.favorite-button { top: 10px; right: 10px; }
.quick-add { width: 38px; height: 38px; bottom: 10px; right: 10px; box-shadow: 0 3px 14px rgb(89 67 30 / 11%); }
.selection-bottom { margin-top: 34px; }

/* Article: image, text and recommendations follow the same visual rhythm. */
.product-page main { max-width: 1320px; }
.product-detail-page { gap: clamp(34px, 6vw, 90px); }
.product-copy h1, .product-copy h1.product-title-long {
  max-width: 550px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.product-copy h1 { font-size: clamp(33px, 3vw, 46px); }
.product-copy h1.product-title-long { font-size: clamp(28px, 2.35vw, 35px); }
.product-description { font-size: 14px; line-height: 1.72; }
.product-price { font-variant-numeric: tabular-nums; }
.product-options button { border-radius: 999px; }
.product-seo-copy {
  margin-top: 82px;
  padding: 34px 42px;
  max-width: 850px;
  background: var(--polish-soft);
  border: 1px solid var(--polish-line);
  border-radius: 18px 18px 42px 18px;
}
.product-seo-copy h2 { font-size: clamp(25px, 2.2vw, 31px); line-height: 1.2; }
.product-seo-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: .18em;
}
.product-seo-copy p { font-size: 13px; line-height: 1.75; }
.related-products { margin-top: 84px; }
.related-products h2 { font-size: clamp(30px, 3vw, 40px); }
.related-card-body { min-height: 137px; }
.related-card strong { font-size: 16px; line-height: 1.24; }
.related-card-bottom { gap: 7px; }
.related-card-cta { min-height: 39px; }

/* Cart, favourites, account and information pages carry the same finish. */
.collection-intro h1, .account-hero h1, .legal-main h1 {
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.collection-intro { margin-bottom: 38px; }
.page-cart-row > img, .favorite-page-image { border-radius: 11px 11px 26px 11px; }
.page-cart-row h2 { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; }
.collection-summary {
  background: var(--polish-soft);
  border: 1px solid var(--polish-line);
  border-radius: 16px 16px 38px 16px;
}
.favorites-page-grid { gap: 20px; }
.favorite-page-card {
  padding: 8px 8px 17px;
  border: 1px solid var(--polish-line);
  border-radius: 17px 17px 36px 17px;
  background: #fff;
  overflow: hidden;
}
.favorite-page-copy { padding: 13px 10px 0; }
.favorite-page-copy h2 { font-size: 18px; line-height: 1.24; }
.account-shell { max-width: 980px; }
.account-panel { border-color: var(--polish-line); border-radius: 18px 18px 44px 18px; }
.account-form h2, .account-dashboard h2 { font-size: clamp(27px, 2.5vw, 34px); }
.account-card { border-color: var(--polish-line); border-radius: 14px 14px 30px 14px; background: var(--polish-soft); }
.account-card h3 { font-size: 22px; line-height: 1.2; }
.legal-main { max-width: 900px; }
.legal-lead { max-width: 640px; }
.legal-section h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.legal-section p, .legal-section li { line-height: 1.75; }
.legal-notice { background: var(--polish-soft); border-left-color: var(--gold); }

/* Navigation and footer remain balanced on every template. */
.header, .shop-header, .collection-header, .legal-header { border-bottom-color: var(--polish-line); }
.footer-top { border-top-color: var(--gold); }
.footer-links a, .footer-links button { line-height: 1.5; }
.footer-bottom { border-top-color: var(--polish-line); }
.footer-top .wordmark.logo-mark { width: 165px; height: 56px; }
.product-page .footer-logo { width: 165px; height: 56px; }

@media (max-width: 1100px) and (min-width: 801px) {
  .catalog-secondary { grid-template-columns: 1fr; grid-template-areas: "search" "types" "price"; }
  .catalog-pills { justify-content: flex-start; }
}

@media (max-width: 800px) {
  .shop-hero { min-height: 205px; padding-block: 48px 34px; }
  .shop-hero h1 { font-size: clamp(42px, 6vw, 55px); }
  .catalog-controls { padding: 16px; }
  .catalog-secondary { display: grid; grid-template-columns: 1fr; grid-template-areas: "types" "search" "price"; gap: 13px; }
  .catalog-pills { justify-content: flex-start; }
  .catalog-selects { justify-content: space-between; }
  .product-grid { gap: 16px 12px; }
  .product-card .product-title { font-size: 15px; }
  .product-copy h1 { font-size: 35px; }
  .product-copy h1.product-title-long { font-size: 29px; }
  .related-products { margin-top: 64px; }
}

@media (max-width: 560px) {
  .hero-visual .vertical-caption { display: none; }
  .section-wrap { padding-block: 58px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2 { font-size: clamp(30px, 8vw, 36px); line-height: 1.14; }
  .hero h1 { font-size: clamp(48px, 12.5vw, 60px); line-height: 1.02; }
  .hero-description { line-height: 1.65; }
  .duo-copy h2 { font-size: 33px; line-height: 1.14; }
  .duo-copy > p:not(.eyebrow):not(.offer-terms) { font-size: 13px; }
  .shop-main { padding-inline: 16px; padding-bottom: 88px; }
  .shop-hero { margin-inline: -16px; padding-inline: 20px; min-height: 190px; }
  .shop-hero h1 { font-size: clamp(40px, 11vw, 48px); margin-bottom: 10px; }
  .shop-hero > p:last-of-type { font-size: 13px; }
  .catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 15px;
    margin: 20px 0 22px;
  }
  .catalog-secondary { display: contents; }
  .catalog-pills { order: 1; gap: 7px; }
  .catalog-pills .catalog-filter-link { min-height: 37px; font-size: 11px; padding: 9px 8px; }
  .filters-toggle {
    order: 2;
    min-height: 44px;
    border-color: var(--polish-line);
    border-radius: 9px;
    background: #fff;
    font-size: 12px;
  }
  .catalog-search { order: 3; }
  .catalog-selects { order: 4; padding-top: 0; border-top: 0; }
  .catalog-count { margin-bottom: 20px; }
  .product-grid { gap: 13px 9px; }
  .product-card { padding: 5px; border-radius: 11px 11px 24px 11px; }
  .product-image { aspect-ratio: 4 / 4.9; border-radius: 7px 7px 19px 7px; }
  .product-info { padding: 11px 6px 8px; }
  .product-meta { font-size: 8px; letter-spacing: .03em; margin-bottom: 6px; }
  .product-card .product-title { font-size: 13px; line-height: 1.23; min-height: 3.7em; }
  .product-title-row { gap: 7px; }
  .product-card .product-price { font-size: 12px; }
  .product-colors { margin-top: 8px; }
  .product-badge { top: 7px; left: 7px; max-width: calc(100% - 48px); font-size: 7px; padding: 5px; }
  .favorite-button { width: 31px; height: 31px; top: 6px; right: 6px; }
  .quick-add { width: 31px; height: 31px; bottom: 7px; right: 7px; }
  .product-page main { padding-inline: 16px; }
  .product-copy h1 { font-size: 31px; }
  .product-copy h1.product-title-long { font-size: 25px; }
  .product-description { font-size: 13px; }
  .product-seo-copy { margin-top: 54px; padding: 25px 21px; }
  .product-seo-copy h2 { font-size: 23px; }
  .related-products h2 { font-size: 29px; }
  .related-card strong { font-size: 13px; }
  .related-card-body { min-height: 129px; }
  .collection-intro h1, .account-hero h1, .legal-main h1 { font-size: clamp(38px, 10vw, 48px); }
  .collection-intro p, .account-hero p:last-child, .legal-lead { font-size: 13px; line-height: 1.6; }
  .page-cart-row h2 { font-size: 16px; }
  .favorites-page-grid { gap: 11px; }
  .favorite-page-card { padding: 5px 5px 12px; border-radius: 11px 11px 24px 11px; }
  .favorite-page-copy { padding: 10px 6px 0; }
  .favorite-page-copy h2 { font-size: 14px; }
  .account-panel { padding: 23px 18px; }
  .account-card { padding: 20px; }
  .legal-main { padding-inline: 20px; }
  .legal-section h2 { font-size: 25px; }
  .footer-top .wordmark.logo-mark, .product-page .footer-logo { width: 150px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
  .product-card:hover { transform: none; }
}

/* Quatre univers disponibles sur la page d’accueil */
@media (min-width: 900px) {.universes .category-grid {grid-template-columns: repeat(4,minmax(0,1fr));gap: 1.2rem}.universes .category-card {min-width:0}}
@media (max-width: 899px) and (min-width: 601px) {.universes .category-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
.universes .category-card img {object-fit:cover;object-position:center}
.shop-grid .product-card {border:1px solid rgba(149,111,47,.19);background:#fff;box-shadow:0 9px 28px rgba(62,45,20,.045)}
.shop-grid .product-card:has(img[src*="/assets/faire/"]) .product-image img {object-fit:contain;background:#f9f7f3}
.shop-grid .product-photo img[src*="/assets/faire/blush-"] { transform:scale(1.58); }
.shop-grid .product-card:hover .product-photo img[src*="/assets/faire/blush-"] { transform:scale(1.64); }
.catalog-controls:has(.beauty-filter-groups) .catalog-secondary {grid-template-columns:1fr;grid-template-areas:"search" "types" "price"}
.beauty-filter-groups {grid-area:types;display:flex;flex-direction:column;gap:10px}
.beauty-filter-groups .catalog-pills {justify-content:flex-start;gap:8px}
.beauty-filter-groups .catalog-subtype-pills {padding-top:11px;border-top:1px solid var(--polish-line)}
.beauty-filter-groups .catalog-subtype-pills .catalog-filter-link {background:#fcfaf5}
.beauty-filter-groups .catalog-subtype-pills .catalog-filter-link.active {background:var(--deep)}
@media (max-width:560px) {.beauty-filter-groups {order:1;gap:9px}.beauty-filter-groups .catalog-pills {order:initial}.beauty-filter-groups .catalog-filter-link {white-space:normal;text-align:center}}
