/* ==========================================================
   DESTOCK DELUXE — Design system
   Blanc pur / noir profond, typographie bold majuscule,
   angles vifs, images full-bleed, boutons pleine largeur.
   ========================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f5f5f5;
  --c-ink: #000000;
  --c-muted: #767676;
  --c-line: #e3e3e3;
  --c-line-strong: #000000;
  --c-success: #1c7c3c;
  --c-danger: #b00020;
  --c-gold: #b8974f;

  --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --header-h: 60px;
  --promo-h: 0px;

  --tr-xs: 0.4px;
  --tr-sm: 1px;
  --tr-md: 1.6px;
  --tr-lg: 2.4px;

  --gut: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gut);
}
.container--wide { max-width: 1440px; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-lg);
  text-transform: uppercase;
  color: var(--c-muted);
}
.h-display {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}
.h-section {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  line-height: 1.2;
  margin: 0 0 12px;
}
.text-muted { color: var(--c-muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tr-md);
  text-transform: uppercase;
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color: #fff;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { background: #262626; border-color: #262626; }
.btn--outline { background: transparent; color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--light:hover { background: #e8e8e8; border-color: #e8e8e8; }
.btn--full { width: 100%; }
.btn--sm { padding: 12px 18px; font-size: 11px; }
.btn[disabled] {
  background: #c9c9c9;
  border-color: #c9c9c9;
  color: #fff;
  cursor: not-allowed;
}
.btn[disabled]:hover { background: #c9c9c9; }

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Bandeau promo ---------- */
.promo-bar {
  position: relative;
  background: var(--c-ink);
  color: #fff;
  text-align: center;
  padding: 12px 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  line-height: 1.45;
}
.promo-bar strong { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.promo-bar__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 0 0 auto;
}
.logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.logo-suffix {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-md);
  text-transform: uppercase;
  color: var(--c-muted);
  align-self: center;
}

.main-nav { display: none; gap: 30px; }
.main-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tr-md);
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.main-nav a:hover { border-color: var(--c-ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.icon-btn {
  position: relative;
  background: none;
  border: none;
  padding: 4px;
  color: var(--c-ink);
  display: flex;
  align-items: center;
}
.icon-btn svg { width: 23px; height: 23px; display: block; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--c-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #fff;
}
.menu-toggle {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--c-ink);
  width: 22px;
}
.menu-toggle span:nth-child(2) { width: 16px; }

/* ---------- Menu mobile plein écran ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 80;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  border-bottom: 1px solid var(--c-line);
}
.mobile-nav__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
}
.mobile-nav__account {
  background: var(--c-ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px var(--gut);
  font-size: 14px;
}
.mobile-nav__account svg { width: 22px; height: 22px; flex: 0 0 auto; }
.mobile-nav__account span { text-decoration: underline; text-underline-offset: 3px; }

.mobile-nav__list { border-top: 1px solid var(--c-line); }
.mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gut);
  border-bottom: 1px solid var(--c-line);
}
.mobile-nav__thumb {
  width: 84px;
  height: 56px;
  background: var(--c-bg-alt);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mobile-nav__thumb img { max-height: 82%; width: auto; }
.mobile-nav__label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
}
.mobile-nav__chev { color: var(--c-muted); font-size: 18px; }
.mobile-nav__links { padding: 22px var(--gut) 60px; background: var(--c-bg-alt); }
.mobile-nav__links a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero-visual {
  position: relative;
  background: var(--c-bg-alt);
  overflow: hidden;
}
.hero-visual__inner {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.9) 0%, rgba(245,245,245,0) 62%),
    linear-gradient(160deg, #ededea 0%, #f7f6f3 46%, #e6e4df 100%);
}
.hero-visual__logo { width: 168px; margin-bottom: 22px; }
.hero-visual__logo img { width: 100%; }
.hero-visual h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--tr-lg);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero-visual p {
  font-size: 13px;
  color: var(--c-muted);
  max-width: 420px;
  margin: 0 0 24px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  margin: 0;
  padding: 34px 16px 22px;
}

/* ---------- Pills de catégories (scroll horizontal) ---------- */
.pill-rail {
  position: relative;
  padding: 0 0 28px;
}
.pill-rail__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px var(--gut) 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pill-rail__track::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 7px 26px 7px 7px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pill:hover, .pill.is-active { border-color: var(--c-ink); }
.pill__thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pill__thumb img { max-height: 78%; width: auto; }
.pill__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-rail__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to left, #fff 55%, rgba(255,255,255,0));
  border: none;
  width: 44px;
  height: 60px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  z-index: 2;
}
.pill-rail__nav--next { right: 0; }
.pill-rail__nav--prev {
  left: 0;
  background: linear-gradient(to right, #fff 55%, rgba(255,255,255,0));
  justify-content: flex-start;
  padding-left: 6px;
  padding-right: 0;
}

/* ---------- Bloc éditorial ---------- */
.editorial-intro { padding: 8px var(--gut) 26px; }
.editorial-intro h2 {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
}
.editorial-intro p {
  color: var(--c-muted);
  font-size: 15px;
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}

/* ---------- Grille & cartes produits ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 14px;
  padding: 0 var(--gut) 44px;
}
.product-grid--tiles { gap: 26px 14px; }

.product-card {
  display: flex;
  flex-direction: column;
}
.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.product-card__image img {
  max-height: 88%;
  max-width: 88%;
  width: auto;
  transition: transform 0.55s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--c-ink);
  color: #fff;
  z-index: 1;
}
.badge--in-stock { background: var(--c-ink); }
.badge--out-stock { background: #8a8a8a; }
.badge--promo { background: var(--c-gold); }
.badge--static { position: static; display: inline-block; margin-bottom: 10px; }

.product-card__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-md);
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: center;
}
.product-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  text-transform: uppercase;
  text-align: center;
  margin: 6px 0 4px;
  line-height: 1.3;
}
.product-card__volume {
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  margin-bottom: 8px;
}
.product-card__price {
  text-align: center;
  margin-bottom: 12px;
}
.price { font-size: 15px; font-weight: 700; }
.price--old {
  text-decoration: line-through;
  color: var(--c-muted);
  font-weight: 400;
  font-size: 13px;
  margin-right: 7px;
}
.price-unit {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 400;
  margin-top: 3px;
}
.product-card .btn { width: 100%; padding: 14px 8px; font-size: 11px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  color: var(--c-muted);
}

/* ---------- Bandeau services ---------- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--c-line);
}
.service-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  text-align: center;
  border-bottom: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
}
.service-strip__item:nth-child(2n) { border-right: none; }
.service-strip__item svg { width: 26px; height: 26px; stroke: var(--c-ink); fill: none; }
.service-strip__item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- Fil d'ariane ---------- */
.breadcrumb {
  font-size: 11px;
  letter-spacing: var(--tr-xs);
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 16px var(--gut);
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Fiche produit ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 48px;
}
.product-detail__image {
  background: var(--c-bg-alt);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail__image img { max-height: 84%; max-width: 84%; width: auto; }
.product-detail__info { padding: 26px var(--gut) 0; text-align: center; }
.product-detail__info .product-card__brand { font-size: 12px; }
.product-detail__info h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  margin: 8px 0 10px;
  line-height: 1.25;
}
.product-detail__price {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-detail__description {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 22px;
  text-align: left;
}
.volume-selector {
  display: inline-block;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.stock-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.stock-status--ok { color: var(--c-success); }
.stock-status--out { color: var(--c-danger); }

.qty-field {
  position: relative;
  border: 1px solid var(--c-ink);
  padding: 6px 4px 4px;
  min-width: 116px;
  flex: 0 0 auto;
}
.qty-field__label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #fff;
  padding: 0 6px;
  font-size: 11px;
  color: var(--c-muted);
}
.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-selector button {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
}
.qty-selector input {
  width: 38px;
  text-align: center;
  border: none;
  font-size: 15px;
  height: 34px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}
.buy-row .btn { flex: 1; }

/* ---------- Barre filtres / tri ---------- */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 var(--gut) 18px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 22px;
}
.toolbar__filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.toolbar__filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.filter-chip:hover { border-color: var(--c-ink); }
.filter-chip.active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.toolbar__right { display: flex; gap: 8px; }
.toolbar__search, .toolbar__sort {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  border-radius: 0;
}
.toolbar__sort {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
}
.toolbar__search:focus, .toolbar__sort:focus { outline: none; border-color: var(--c-ink); }
.toolbar__count {
  font-size: 12px;
  color: var(--c-muted);
  padding: 0 var(--gut) 14px;
}

/* ---------- Formulaires ---------- */
.form-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 36px var(--gut) 64px;
}
.form-page h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px;
}
.form-page p.subtitle {
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--c-line);
  border-radius: 0;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--c-ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-ink);
}
.form-error {
  background: #fdeaec;
  color: var(--c-danger);
  padding: 13px 15px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
.form-success {
  background: #eaf5ed;
  color: var(--c-success);
  padding: 13px 15px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
.form-links {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.9;
}
.form-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--c-ink); }

/* ---------- Panier ---------- */
.cart-page { padding: 22px 0 60px; }
.cart-page h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  padding: 0 var(--gut);
  margin: 0 0 22px;
}
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
.cart-items { padding: 0 var(--gut); }
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.cart-item__image {
  width: 76px;
  height: 76px;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item__image img { max-height: 82%; max-width: 82%; width: auto; }
.cart-item__body { display: flex; flex-direction: column; gap: 8px; }
.cart-item__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  text-transform: uppercase;
  padding-right: 28px;
  line-height: 1.35;
}
.cart-item__meta { font-size: 12px; color: var(--c-muted); }
.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-item__line-total { font-size: 15px; font-weight: 700; }
.cart-item__remove {
  position: absolute;
  top: 20px;
  right: 0;
  background: none;
  border: none;
  padding: 4px;
  color: var(--c-ink);
}
.cart-item__remove svg { width: 19px; height: 19px; stroke: currentColor; fill: none; }

.cart-summary {
  background: var(--c-bg-alt);
  padding: 24px var(--gut) 28px;
  margin-top: 22px;
}
.cart-summary h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  margin: 0 0 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--c-ink);
}
.summary-row span:last-child { font-weight: 700; }
.summary-row--muted, .summary-row--muted span:last-child { color: var(--c-muted); font-weight: 400; }
.summary-row--total {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  border-top: 1px solid var(--c-line-strong);
  padding-top: 16px;
  margin-top: 16px;
  margin-bottom: 18px;
}
.summary-row--total span:last-child { font-size: 18px; }
.free-shipping-note {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eaf5ed;
  color: var(--c-success);
  padding: 12px 14px;
  font-size: 13px;
  margin: 0 var(--gut) 18px;
}
.free-shipping-note svg { width: 18px; height: 18px; flex: 0 0 auto; }

.shipping-progress {
  background: var(--c-bg-alt);
  padding: 14px 15px;
  margin: 0 var(--gut) 18px;
}
.shipping-progress p { margin: 0 0 10px; font-size: 13px; }
.shipping-progress strong { font-weight: 700; }
.shipping-progress__bar {
  height: 4px;
  background: var(--c-line);
  overflow: hidden;
}
.shipping-progress__bar span {
  display: block;
  height: 100%;
  background: var(--c-ink);
  transition: width 0.35s ease;
}

/* ---------- Modale ajout panier ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.sheet-overlay.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  z-index: 91;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}
.sheet.open { transform: translateY(0); }
.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px var(--gut);
  border-bottom: 1px solid var(--c-line);
}
.sheet__head h2 {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}
.sheet__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sheet__check svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.6; }
.sheet__close { background: none; border: none; font-size: 26px; line-height: 1; padding: 0 4px; }
.sheet__body { padding: 18px var(--gut) 8px; }
.sheet__actions { padding: 8px var(--gut) 26px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Compte / commandes ---------- */
/* Utilisé conjointement avec .container : pas de padding horizontal propre,
   sans quoi la gouttière serait appliquée deux fois. */
.account-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 26px 0 64px;
}
.account-layout h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.account-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0;
  scrollbar-width: none;
}
.account-nav::-webkit-scrollbar { display: none; }
.account-nav a {
  flex: 0 0 auto;
  padding: 12px 4px;
  margin-right: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  color: var(--c-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.account-nav a.active, .account-nav a:hover { color: var(--c-ink); border-color: var(--c-ink); }

.order-row {
  border: 1px solid var(--c-line);
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.order-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  padding: 6px 11px;
  background: var(--c-ink);
  color: #fff;
}

/* ---------- Moyens de paiement ---------- */
.payment-block { padding: 26px var(--gut); border-top: 1px solid var(--c-line); }
.payment-block h3 {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 6px;
}
.payment-block p { font-size: 13px; color: var(--c-muted); margin: 0 0 16px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-icons span {
  border: 1px solid var(--c-line);
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  color: #444;
  min-width: 60px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #fff; margin-top: 8px; }
.footer-accordion { border-top: 1px solid #333; }
.footer-acc__head {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gut);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tr-md);
  text-transform: uppercase;
  border-bottom: 1px solid #333;
  text-align: left;
}
.footer-acc__sign { font-size: 19px; font-weight: 400; line-height: 1; }
.footer-acc__panel {
  display: none;
  padding: 6px var(--gut) 20px;
  border-bottom: 1px solid #333;
}
.footer-acc__panel.open { display: block; }
.footer-acc__panel a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: #d8d8d8;
}
.footer-acc__panel a:hover { color: #fff; }

.footer-news { padding: 30px var(--gut) 26px; }
.footer-news h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.5;
}
.footer-news p { font-size: 13px; color: #b5b5b5; margin: 0 0 16px; }
.footer-news input {
  width: 100%;
  padding: 15px 14px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 12px;
}
.footer-news small { display: block; font-size: 11px; color: #9a9a9a; margin-top: 12px; line-height: 1.6; }

.footer-contact { padding: 4px var(--gut) 24px; }
.footer-contact h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tr-md);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  color: var(--c-ink);
  padding: 16px 15px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}
.footer-contact__row svg { width: 22px; height: 22px; stroke: currentColor; fill: none; flex: 0 0 auto; }

.footer-brand { padding: 6px var(--gut) 22px; }
.footer-brand img { width: 138px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 12px; color: #b5b5b5; margin: 0; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px var(--gut) 30px;
  font-size: 12px;
  color: #b5b5b5;
  line-height: 1.9;
}
.footer-bottom a { color: #b5b5b5; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed;
  right: 12px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  background: var(--c-ink);
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 19px; height: 19px; stroke: currentColor; fill: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  background: var(--c-ink);
  color: #fff;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 1fr; min-height: 60vh; }
.admin-sidebar {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 10px var(--gut);
  border-bottom: 1px solid var(--c-line);
  scrollbar-width: none;
}
.admin-sidebar::-webkit-scrollbar { display: none; }
.admin-sidebar a {
  flex: 0 0 auto;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  border: 1px solid transparent;
}
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--c-ink); border-color: var(--c-ink); }
.admin-main { padding: 22px var(--gut) 60px; }
.admin-main h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--tr-sm);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.admin-main h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--tr-xs);
  text-transform: uppercase;
  margin: 28px 0 12px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card { background: var(--c-bg-alt); padding: 18px; }
.stat-card__label { font-size: 10px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: var(--tr-sm); }
.stat-card__value { font-size: 25px; font-weight: 700; margin-top: 8px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  vertical-align: middle;
}
table.admin-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tr-sm);
  color: var(--c-muted);
  white-space: nowrap;
}
table.admin-table input, table.admin-table select {
  padding: 8px 9px;
  border: 1px solid var(--c-line);
  font-size: 13px;
  font-family: inherit;
  border-radius: 0;
}
.detail-panel { border: 1px solid var(--c-line); padding: 20px; margin-bottom: 16px; max-width: 480px; }

/* ==========================================================
   TABLETTE
   ========================================================== */
@media (min-width: 700px) {
  :root { --gut: 28px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .service-strip { grid-template-columns: repeat(4, 1fr); }
  .service-strip__item:nth-child(2n) { border-right: 1px solid var(--c-line); }
  .service-strip__item:last-child { border-right: none; }
  .hero-visual__inner { min-height: 420px; }
  .hero-visual__logo { width: 210px; }
  .hero-visual h1 { font-size: 18px; }
  .section-title { font-size: 32px; padding: 48px 16px 26px; }
  .editorial-intro h2 { font-size: 30px; }

  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 0 var(--gut) 60px;
  }
  .product-detail__image { aspect-ratio: 4 / 5; }
  .product-detail__info { padding: 8px 0 0; text-align: left; }
  .product-detail__info .product-card__brand,
  .product-detail__info .product-card__name { text-align: left; }
  .product-detail__info h1 { font-size: 27px; }
  .buy-row { max-width: 460px; }

  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .toolbar__right { flex: 0 0 auto; }
  .toolbar__search { min-width: 200px; }

  .cart-layout {
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
    padding: 0 var(--gut);
  }
  .cart-items { padding: 0; }
  .cart-summary { margin-top: 0; }
  .free-shipping-note, .shipping-progress { margin-left: 0; margin-right: 0; }
  .cart-item { grid-template-columns: 96px 1fr; }
  .cart-item__image { width: 96px; height: 96px; }

  .account-layout { grid-template-columns: 210px 1fr; gap: 40px; }
  .account-nav { flex-direction: column; border-bottom: none; border-right: 1px solid var(--c-line); overflow: visible; }
  .account-nav a { margin-right: 0; border-bottom: 1px solid var(--c-line); padding: 13px 0; }
  .account-nav a.active, .account-nav a:hover { border-color: var(--c-line); color: var(--c-ink); }

  .sheet {
    top: 50%;
    left: 50%;
    right: auto;
    width: 560px;
    max-width: calc(100% - 48px);
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__actions { flex-direction: row; }
  .sheet__actions .btn { flex: 1; }

  .footer-news, .footer-contact, .footer-brand { max-width: 640px; }
  .admin-layout { grid-template-columns: 210px 1fr; }
  .admin-sidebar {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--c-line);
    padding: 24px 0;
    overflow: visible;
  }
  .admin-sidebar a { padding: 11px 20px; border: none; }
  .admin-sidebar a.active, .admin-sidebar a:hover { background: var(--c-bg-alt); border: none; }
  .admin-main { padding: 30px; }
  table.admin-table { min-width: 0; }
}

/* ==========================================================
   DESKTOP
   ========================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 78px; --gut: 40px; }

  .site-header__inner { gap: 32px; }
  .main-nav { display: flex; flex: 1; }
  .menu-toggle { display: none; }
  .logo img { height: 58px; }
  .header-actions { gap: 22px; }

  .hero-visual__inner { min-height: 500px; }
  .hero-visual__logo { width: 250px; }
  .hero-visual h1 { font-size: 20px; }
  .hero-visual p { font-size: 15px; }

  .section-title { font-size: 38px; padding: 62px 16px 30px; }
  .editorial-intro { padding: 8px var(--gut) 34px; }
  .editorial-intro h2 { font-size: 34px; }
  .editorial-intro p { font-size: 16px; }

  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 48px 28px; padding-bottom: 70px; }
  .product-card__name { font-size: 15px; }

  .product-detail { gap: 64px; padding-bottom: 80px; }
  .product-detail__info h1 { font-size: 30px; }
  .product-detail__price { font-size: 23px; }

  .pill-rail__track { padding-left: var(--gut); padding-right: var(--gut); }
  .breadcrumb { padding: 20px var(--gut); }
  .cart-page h1 { font-size: 28px; padding: 0; }
  .cart-page { padding: 30px 0 80px; }

  .footer-accordion { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #333; }
  .footer-acc__head { cursor: default; pointer-events: none; border-bottom: none; padding-bottom: 8px; }
  .footer-acc__sign { display: none; }
  .footer-acc__panel { display: block; border-bottom: none; padding-top: 0; }
  .footer-news, .footer-contact, .footer-brand { max-width: 720px; }
  .to-top { right: 22px; bottom: 26px; width: 48px; height: 48px; }
}
