/* Page Peintures — complète styles.css */

.nav a[aria-current="page"] { background-size: 100% 3px; }

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--ocre);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 750;
}
.cart-badge[hidden] { display: none; }

/* En-tête */
.shop-hero {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: var(--tint);
}
.shop-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 750;
  font-stretch: 85%;
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 14em;
}
.shop-hero .lede { margin-top: 1rem; max-width: 40em; color: var(--ink-soft); font-size: 1.1rem; }

.family-filter {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
  padding-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .45rem 1rem .45rem .6rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: #8EA3B8; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-dots { display: inline-flex; }
.chip-dots i {
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(14, 42, 71, .18);
}
.chip-dots i + i { margin-left: -.4rem; }

/* Nuancier */
.shop-section { padding-top: 2rem; }
.shop-count { margin-bottom: 1rem; font-size: .95rem; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.swatch {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.swatch[hidden] { display: none; }

.swatch-color {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--c);
  border-bottom: 1px solid rgba(14, 42, 71, .08);
}
.swatch-color svg { width: 46%; height: auto; filter: drop-shadow(0 6px 10px rgba(14, 42, 71, .18)); }
.swatch-ref {
  position: absolute;
  top: .7rem; left: .8rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(14, 42, 71, .7);
}
.swatch-color[data-dark="true"] .swatch-ref { color: rgba(255, 255, 255, .85); }

.swatch-body { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.section .swatch-name { font-size: 1.2rem; font-weight: 700; font-stretch: 100%; line-height: 1.2; letter-spacing: 0; margin: 0; max-width: none; }
.swatch-family { font-size: .88rem; }

.swatch-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.swatch-options label { display: grid; gap: .2rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.swatch-options select,
.qty input {
  width: 100%;
  min-height: 2.6rem;
  padding: .4rem .5rem;
  border: 1.5px solid #B5C4D3;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.swatch-options select:focus-visible,
.qty input:focus-visible { outline: none; border-color: var(--azur); box-shadow: 0 0 0 3px rgba(28, 95, 168, .25); }

.swatch-price { margin-top: .8rem; font-weight: 700; }
.swatch-buy { display: flex; gap: .6rem; margin-top: auto; padding-top: .8rem; }
.qty { width: 4.5rem; flex: none; }
.swatch-buy .btn { flex: 1; }

.shop-disclaimer { margin-top: 2rem; max-width: 46em; font-size: .92rem; }

/* Commande */
.cart-empty p { color: var(--ink-soft); }
.cart-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}
.cart-dot { width: 1.6rem; height: 1.6rem; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(14, 42, 71, .2); }
.cart-text { display: grid; font-size: .95rem; line-height: 1.35; }
.cart-text .muted { font-size: .85rem; }
.cart-remove {
  min-height: 2.5rem;
  padding: .3rem .6rem;
  border: 0;
  background: none;
  color: var(--azur);
  font: inherit;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.cart-remove:hover { color: var(--error); }
.cart-total { margin-bottom: 1rem; font-weight: 700; }

/* Sur cette page, le bouton « Ma commande » reste visible sur petit écran. */
@media (max-width: 459px) {
  .header-cta { display: inline-flex; padding-inline: .7rem; font-size: .9rem; }
  .brand span { display: none; }
}

/* Case CGV */
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .2rem .7rem; }
.field-check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--azur); }
.field-check label { font-weight: 400; font-size: .92rem; line-height: 1.45; }
.field-check .field-error { grid-column: 2; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Page merci */
.thanks { padding-block: clamp(3.5rem, 9vw, 6rem); }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 750; font-stretch: 85%; line-height: 1.05; }
.thanks p { margin-top: 1rem; max-width: 36em; font-size: 1.1rem; color: var(--ink-soft); }
.thanks .btn { margin-top: 2rem; }
