/* ───────────────────────────────────────────
   TOKENS
─────────────────────────────────────────── */
:root {
  --bg:       #FAFAF8;
  --bg-alt:   #FFFFFF;
  --ink:      #111111;
  --ink-2:    #555555;
  --ink-3:    #999999;
  --sand:     #C4A882;
  --sand-lt:  #EDE4D8;
  --white:    #FFFFFF;
  --err:      #C0392B;
  --ok:       #27AE60;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Space Grotesk', system-ui, sans-serif;

  --nav-h:    64px;
  --r:        2px;

  --ease:     cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(0,0,.2,1);
}

/* ───────────────────────────────────────────
   RESET
─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: contain; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--f-body); border: none; background: none; }
ul { list-style: none; }

/* ───────────────────────────────────────────
   FADE-IN
─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ───────────────────────────────────────────
   LAYOUT HELPERS
─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 6rem 0;
}
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.section__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}
.section__link {
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  transition: color .2s;
}
.section__link:hover { color: var(--ink); }

/* ───────────────────────────────────────────
   NAV
─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav--scrolled {
  border-bottom-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.nav__left  { display: flex; gap: 2rem; }
.nav__right { display: flex; justify-content: flex-end; }
.nav__logo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .12em;
  justify-self: center;
}
.nav__link {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--ink);
  transition: right .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }
.nav__cart {
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  color: var(--ink);
  transition: opacity .2s;
}
.nav__cart:hover { opacity: .7; }
.nav__cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--ink);
  color: var(--white);
  font-size: .65rem;
  font-weight: 600;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ───────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2.2rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .05em;
  border-radius: var(--r);
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn--primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover {
  background: var(--bg-alt);
}
.btn--overlay {
  background: var(--white);
  color: var(--ink);
  padding: .7rem 1.6rem;
  font-size: .8rem;
}
.btn--overlay:hover { background: var(--bg-alt); }
.btn--full { width: 100%; justify-content: center; }

.btn-color-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ccc; cursor: pointer; transition: transform 0.2s; } .btn-color-dot.active { border-color: #000; transform: scale(1.1); }

/* ───────────────────────────────────────────
   HERO
─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 2rem;
  max-width: 680px;
  margin-left: auto;
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.hero__title em {
  font-style: italic;
  color: var(--sand);
  position: relative;
  display: inline-block;
}
.hero__sub {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero__visual {
  background: var(--sand-lt);
  position: relative;
  overflow: hidden;
}
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
}
.hero__shape--1 {
  width: 400px; height: 400px;
  background: var(--sand);
  top: -80px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.hero__shape--2 {
  width: 250px; height: 250px;
  background: var(--bg);
  bottom: 60px; left: 40px;
  animation: float 6s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero__img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__placeholder {
  display: flex; align-items: center; justify-content: center;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* L'image s'étire pour remplir le cadre, peu importe ses proportions */
}

/* ───────────────────────────────────────────
   STRIP
─────────────────────────────────────────── */
.strip {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: .9rem 0;
}
.strip__inner {
  display: flex;
  gap: 3rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────────────────────────
   CATEGORIES
─────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 2rem 1.6rem;
  background: #f8f8f8;
  border-radius: var(--r);
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.category-card:hover {
  background: var(--white);
  border-color: var(--sand-lt);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
}
.category-card__icon { color: var(--sand); margin-bottom: .3rem; }
.category-card__name { font-weight: 500; font-size: .95rem; }
.category-card__count { font-size: .78rem; color: var(--ink-3); }

/* ───────────────────────────────────────────
   PRODUCT GRID
─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-grid--related {
  grid-template-columns: repeat(4, 1fr);
}

/* ───────────────────────────────────────────
   PRODUCT CARD
─────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px;
  height: 100%; /* Important pour l'alignement */
}

.product-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
  display: block;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Stop le zoom, affiche tout */
  object-position: center;
  background-color: #ffffff;
}
.product-card__img-wrap:hover .product-card__img {
  transform: scale(1.04);
}
.product-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  transition: background .25s;
}
.product-card__img-wrap:hover .product-card__placeholder {
  background: var(--sand-lt);
}
.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: var(--r);
}
.product-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.25));
  transform: translateY(100%);
  transition: transform .3s var(--ease);
  display: flex;
  justify-content: center;
}
.product-card__img-wrap:hover .product-card__overlay {
  transform: none;
}
.product-card__info {
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.product-card__category {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product-card__name {
  font-size: 0.88rem;
  font-weight: 400;
  margin: 10px 0;
}
.product-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card__pricing {
  margin-top: auto; 
  padding-bottom: 10px;
}
.product-card__price { font-weight: 600; }
.product-card__compare {
  font-size: .85rem;
  color: var(--ink-3);
  text-decoration: line-through;
}

/* ───────────────────────────────────────────
   BANNER
─────────────────────────────────────────── */
.banner {
  background: var(--sand-lt);
  padding: 7rem 2rem;
  text-align: center;
}
.banner__eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
}
.banner__title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.banner__title em { font-style: italic; color: var(--sand); }
.banner__text {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ───────────────────────────────────────────
   PAGE HEADER
─────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.page-header .container {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.page-header--inline {
  padding: calc(var(--nav-h) + 3rem) 0 2rem;
  border: none;
}
.page-header__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}
.page-header__count {
  font-size: .85rem;
  color: var(--ink-3);
}

/* ───────────────────────────────────────────
   SHOP LAYOUT
─────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.sidebar__title {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
}
.sidebar__list { display: flex; flex-direction: column; gap: .2rem; }
.sidebar__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  font-size: .9rem;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color .2s;
}
.sidebar__link:hover { color: var(--ink); }
.sidebar__link--active { color: var(--ink); font-weight: 500; }
.sidebar__count {
  font-size: .78rem;
  color: var(--ink-3);
}
.products-area { min-height: 50vh; }
.product-grid--shop {
  grid-template-columns: repeat(3, 1fr);
}

/* ───────────────────────────────────────────
   PRODUCT DETAIL
─────────────────────────────────────────── */
.product-detail {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
}
.breadcrumb {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .8rem;
  color: var(--ink-3);
  margin-bottom: 3rem;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__current { color: var(--ink); }
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.product-detail__img-wrap {
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.product-detail__img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-detail__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: var(--r);
}
.product-detail__category {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand);
}
.product-detail__name {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin: .8rem 0 1.5rem;
  line-height: 1.15;
}
.product-detail__pricing {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.8rem;
}
.product-detail__price {
  font-size: 1.8rem;
  font-weight: 500;
}
.product-detail__compare {
  font-size: 1.1rem;
  color: var(--ink-3);
  text-decoration: line-through;
}
.product-detail__desc {
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.product-detail__stock {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-dot--green { background: var(--ok); }
.stock-dot--red   { background: var(--err); }
.product-detail__form { margin-bottom: 2rem; }

.trust-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.08);
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--ink-2);
}
.section--related { background: var(--bg-alt); }

/* ───────────────────────────────────────────
   CART
─────────────────────────────────────────── */
.cart-page {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 6rem;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.cart-item__img-wrap {
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border-radius: var(--r);
  overflow: hidden;
}
.cart-item__img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.cart-item__cat {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cart-item__name {
  font-size: 1rem;
  font-weight: 400;
  margin: .3rem 0 .3rem;
}
.cart-item__name a:hover { text-decoration: underline; }
.cart-item__unit { font-size: .82rem; color: var(--ink-3); }
.cart-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.cart-item__subtotal { font-weight: 600; font-size: 1.05rem; }
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cart-item__qty-form {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--r);
  overflow: hidden;
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background .2s;
}
.qty-btn:hover { background: var(--bg-alt); }
.qty-display {
  width: 40px;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  border-left: 1px solid rgba(0,0,0,.12);
  border-right: 1px solid rgba(0,0,0,.12);
  padding: .5rem 0;
}
.cart-item__remove {
  font-size: .8rem;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.cart-item__remove:hover { color: var(--err); }

/* CART SUMMARY */
.cart-summary {
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.cart-summary__title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.cart-summary__rows { display: flex; flex-direction: column; gap: .8rem; }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
}
.cart-summary__row--total {
  font-size: 1.05rem;
  font-weight: 600;
}
.cart-summary__divider {
  height: 1px;
  background: rgba(0,0,0,.1);
  margin: .5rem 0;
}
.cart-summary__shipping-msg {
  font-size: .78rem;
  color: var(--sand);
  background: rgba(196,168,130,.1);
  padding: .6rem .8rem;
  border-radius: var(--r);
}
.cart-summary__continue {
  display: block;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-2);
  margin-top: 1rem;
  transition: color .2s;
}
.cart-summary__continue:hover { color: var(--ink); }
.cart-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--ink-3);
  margin-top: 1.2rem;
}
.text-success { color: var(--ok); }

/* EMPTY STATES */
.empty-state, .empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  gap: 1rem;
  color: var(--ink-2);
}
.empty-cart__icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--ink-3);
}
.empty-cart h2 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 400;
}

/* ───────────────────────────────────────────
   TOAST
─────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: .9rem 1.3rem;
  border-radius: var(--r);
  font-size: .85rem;
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  animation: slideUp .3s var(--ease-out);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.toast__close {
  font-size: 1.2rem;
  color: rgba(255,255,255,.6);
  line-height: 1;
  transition: color .2s;
}
.toast__close:hover { color: var(--white); }

/* ───────────────────────────────────────────
   FOOTER
─────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 5rem 0 0;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
}
.footer__logo {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}
.footer__tagline { font-size: .85rem; line-height: 1.7; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__col h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer__col a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .7rem;
  transition: color .2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 1.5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ───────────────────────────────────────────
   RESPONSIVE (Ajusté pour une compatibilité parfaite 📱)
─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { display: none; }
  .hero__content {
    padding: 5rem 2rem;
    max-width: 100%;
    margin: 0;
    min-height: calc(80vh - var(--nav-h));
  }

  /* Correction : force la grille catalogue (qui était à 3 colonnes) à 2 sur tablette */
  .product-grid,
  .product-grid--related,
  .product-grid--shop {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail__grid { grid-template-columns: 1fr; gap: 3rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  /* Ajout : un peu plus d'air pour le layout boutique sur tablette */
  .shop-layout { padding: 2rem 1.5rem 4rem; gap: 2rem; }
  .page-header { padding: calc(var(--nav-h) + 2rem) 0 2rem; }
}

@media (max-width: 768px) {
  /* Ajout : on réduit les gros paddings verticaux de base pour le mobile */
  .section { padding: 4rem 0; }

  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { display: flex; flex-wrap: wrap; gap: .5rem; }
  .sidebar__section { width: 100%; }
  .sidebar__list { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
  .sidebar__link { border: 1px solid rgba(0,0,0,.12); padding: .4rem .9rem; border-radius: 99px; }
  .sidebar__link--active { background: var(--ink); color: var(--white); border-color: var(--ink); }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer__links { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .nav__left { display: none; }

  /* Ajout : on réduit la bannière pour éviter qu'elle n'étouffe l'écran */
  .banner { padding: 4rem 1.5rem; }

  /* Ajout : ajustement panier mobile pour éviter que les éléments se superposent */
  .cart-item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .cart-item__actions { flex-wrap: wrap; gap: 1rem; }
  .cart-item__top { flex-direction: column; gap: 0.5rem; }
  .product-detail__pricing { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Assure 2 colonnes bien proportionnées pour les produits sur tout petit écran */
  .product-grid,
  .product-grid--related,
  .product-grid--shop {
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
  }

  /* Ajout : catégories à 2 colonnes au lieu de s'étirer bizarrement */
  .categories-grid { grid-template-columns: 1fr 1fr; }

  /* Ajout : 1 seule colonne pour les liens du footer sur micro-écran */
  .footer__links { grid-template-columns: 1fr; }

  /* Ajout : on réduit légèrement les très grosses polices */
  .hero__title { font-size: 2.8rem; }
  .page-header__title { font-size: 1.8rem; }
  .product-detail__name { font-size: 1.8rem; }
}

@media (max-width: 767px) {
    .panier-lateral {
        width: 100%;
        max-width: 100vw;
    }
}
