/* ── Variables ── */
:root {
  --brand: #7B6E70;
  --brand-light: #958589;
  --brand-dark: #5f5557;
  --brand-soft: rgba(123, 110, 112, 0.12);
  --cream: #f9f7f7;
  --cream-dark: #f0ecec;
  --charcoal: #3d3637;
  --muted: #8a8081;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(123, 110, 112, 0.1);
  --shadow-lg: 0 12px 40px rgba(123, 110, 112, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Poppins", system-ui, sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Language bar ── */
.lang-bar {
  background: #f3f0f0;
  border-bottom: 1px solid rgba(123, 110, 112, 0.18);
}

.lang-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.45rem 0;
  min-height: 2.35rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.lang-switcher__btn .fi {
  width: 1.15em;
  line-height: 0.85em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lang-switcher__btn:hover {
  color: var(--charcoal);
  background: rgba(123, 110, 112, 0.08);
}

.lang-switcher__btn.is-active {
  color: var(--brand-dark);
  background: var(--white);
  border-color: rgba(123, 110, 112, 0.2);
  box-shadow: 0 1px 3px rgba(123, 110, 112, 0.1);
  font-weight: 600;
}

/* Masquer l’UI Google Translate (barre + widget) */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

html.translated-ltr body,
html.translated-rtl body {
  top: 0 !important;
}

/* ── Header & Nav ── */
.header {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-bottom: 1px solid rgba(123, 110, 112, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: 1rem 0;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
}

.nav__brand:hover { color: var(--charcoal); }

.nav__logo {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1rem;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav__links a:hover { color: var(--charcoal); }

.nav__phone {
  background: var(--brand);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 500 !important;
}

.nav__phone:hover {
  background: var(--brand-dark);
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: 3rem 0 4.5rem;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

/* ── Section headings ── */
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Catalogue ── */
.catalogue {
  padding: 4rem 0 5rem;
  background: var(--white);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color var(--transition);
}

.search:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}

.toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.sort {
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  background: var(--cream);
  color: var(--charcoal);
  cursor: pointer;
}

.sort:focus { outline: none; border-color: var(--brand); }

/* ── Category pills ── */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cat-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--brand-soft);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream);
  color: var(--charcoal);
}

.cat-pill:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.cat-pill.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.results-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Product grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream-dark);
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img { transform: scale(1.04); }

.card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--brand);
  color: var(--white);
}

.card__body {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-barcode {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
  margin: -0.25rem 0 0.5rem;
}

.product-barcode--inline {
  display: inline;
  margin: 0;
}

.card__name + .product-barcode {
  margin-top: -0.35rem;
}

.cart-line__info .product-barcode {
  margin: 0 0 0.35rem;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.card__stock {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.card__stock--in {
  background: var(--brand-soft);
  color: var(--brand);
}

.card__stock--low {
  background: rgba(123, 110, 112, 0.2);
  color: var(--brand-dark);
}

.card__stock--out {
  background: rgba(42, 40, 38, 0.08);
  color: var(--muted);
}

.card__sizes {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ── Empty & Loader ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state p { margin-bottom: 1rem; }

.loader {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

.loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Contact ── */
.contact {
  padding: 4.5rem 0;
  background: var(--cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1rem;
}

.contact__lead {
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.contact__list a {
  font-size: 1.05rem;
  color: var(--charcoal);
  font-weight: 500;
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ── */
.footer {
  padding: 1.75rem 0;
  background: var(--brand);
  color: rgba(255, 255, 255, 0.85);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer__logo {
  border-radius: 50%;
  object-fit: cover;
}

/* ── Modal ── */
.modal {
  position: fixed;
  inset: unset;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  padding: 0;
  margin: 0;
  width: 440px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(42, 40, 38, 0.22);
  overflow: hidden;
  color: var(--charcoal);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  position: fixed;
}

.modal::backdrop {
  background: rgba(42, 40, 38, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal:not([open]) {
  display: none;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cream-dark);
  background: #ffffff;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--charcoal);
  z-index: 2;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.modal__close:hover { background: var(--cream); }

.modal__body {
  background: #ffffff;
  padding: 1.75rem;
  padding-top: 3.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.modal__img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: var(--cream);
  display: block;
}

.modal__cat {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.modal__title {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1rem;
}

.modal__stock-info {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.modal__sizes-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.modal__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal__size {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
}

.modal__cta {
  margin-top: 1.5rem;
  text-align: center;
}

.modal__cta a {
  display: inline-flex;
  width: 100%;
  max-width: 320px;
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.scroll-top:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    gap: 2rem;
    padding: 2.5rem 0 3.5rem;
  }

  .catalogue {
    padding: 3rem 0 4rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .lang-bar__inner {
    justify-content: center;
    padding: 0.4rem 0;
  }

  .lang-switcher {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .lang-switcher__btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }

  .nav {
    padding: 0.85rem 0;
    position: relative;
  }

  .nav__links {
    display: none;
  }

  .nav__cart {
    margin-left: auto;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--brand-soft);
  }

  .nav__cart-icon {
    width: 22px;
    height: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 0 2.5rem;
    gap: 1.5rem;
  }

  .hero__subtitle {
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual { order: -1; }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .catalogue {
    padding: 2.5rem 0 3rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    max-width: none;
    min-width: 0;
  }

  .toolbar__right {
    justify-content: space-between;
    width: 100%;
  }

  .sort {
    flex: 1;
    max-width: none;
  }

  .categories {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .cat-pill {
    flex-shrink: 1;
    scroll-snap-align: unset;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .card__body {
    padding: 0.75rem 0.85rem 1rem;
  }

  .card__name {
    font-size: 0.9rem;
  }

  .card__price {
    font-size: 0.95rem;
  }

  .card__badge {
    font-size: 0.65rem;
    top: 0.5rem;
    left: 0.5rem;
  }

  .card:hover {
    transform: none;
  }

  .contact {
    padding: 3rem 0;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__map {
    aspect-ratio: 16/10;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .modal {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    animation: modal-slide-up 0.25s ease;
  }

  .modal__body {
    padding: 1.25rem;
    padding-top: 3rem;
  }

  .modal__title {
    font-size: 1.15rem;
  }

  .modal__img {
    max-height: 240px;
  }

  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero__actions .btn {
    width: auto;
    min-width: 140px;
  }
}

@keyframes modal-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── Header compact (pages internes) ── */
.header--compact {
  border-bottom: 1px solid rgba(123, 110, 112, 0.08);
}

.header--compact .nav {
  padding: 0.85rem 0;
}

/* ── Nav panier ── */
.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--brand) !important;
  position: relative;
}

.nav__cart.is-active {
  font-weight: 600;
}

.nav__cart-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nav__cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--white);
}

/* ── Bouton ajout rapide ── */
.card__add {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  height: 36px;
  min-width: 36px;
  width: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  font-family: var(--font);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: width 0.28s ease, padding 0.28s ease, background var(--transition), color var(--transition);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.card__add-icon {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.card__add-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.28s ease, opacity 0.2s ease;
}

.card:hover .card__add,
.card__add:focus-visible {
  width: auto;
  padding: 0 1rem;
  gap: 0.35rem;
}

.card:hover .card__add .card__add-label,
.card__add:focus-visible .card__add-label {
  max-width: 140px;
  opacity: 1;
}

.card__add:hover {
  background: var(--brand);
  color: var(--white);
}

.card__variants {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 4;
}

.card__variants[hidden] {
  display: none !important;
}

.card__variants-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.75rem;
  text-align: center;
}

.card__variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.card__variant-btn {
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--brand);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.card__variant-btn:hover {
  background: var(--brand);
  color: var(--white);
}

.cart-line__variant {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88em;
}

@media (hover: none) {
  .card__add {
    width: auto;
    padding: 0 0.85rem;
    gap: 0.35rem;
  }

  .card__add-label {
    max-width: 140px;
    opacity: 1;
  }
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal__actions .btn {
  flex: 1;
  min-width: 140px;
}

/* ── Toast panier ── */
.cart-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.cart-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Page panier ── */
.page-cart,
.page-legal,
.page-confirm {
  padding: 2.5rem 0 4rem;
  background: var(--white);
  min-height: 60vh;
}

.page-head {
  margin-bottom: 2rem;
}

.page-head h1,
.page-legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.page-head p {
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.cart-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.cart-empty p {
  margin-bottom: 1.25rem;
}

.cart-items,
.cart-alert,
.checkout-form {
  grid-column: 1;
}

.cart-summary {
  grid-column: 2;
  grid-row: 1 / -1;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: center;
}

.cart-line--error {
  background: rgba(196, 80, 80, 0.06);
  margin: 0 -0.5rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius-sm);
}

.cart-line__img img,
.cart-line__placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream);
}

.cart-line__info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cart-line__price {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cream);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--brand);
}

.qty-btn:hover {
  background: var(--cream-dark);
}

.qty-input {
  width: 42px;
  height: 32px;
  border: none;
  border-left: 1.5px solid var(--cream-dark);
  border-right: 1.5px solid var(--cream-dark);
  text-align: center;
  font-family: var(--font);
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cart-line__right {
  text-align: right;
}

.cart-line__total {
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.cart-line__remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-line__remove:hover {
  color: var(--brand-dark);
}

.cart-alert {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.cart-alert--error {
  background: rgba(196, 80, 80, 0.1);
  color: #8b3a3a;
  border: 1px solid rgba(196, 80, 80, 0.2);
}

.cart-alert--info {
  background: rgba(123, 110, 112, 0.1);
  color: var(--brand-dark);
  border: 1px solid rgba(123, 110, 112, 0.2);
}

.cart-summary {
  position: sticky;
  top: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cart-summary h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--brand);
}

.summary-lines {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
  max-height: 200px;
  overflow-y: auto;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.summary-row--total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}

.checkout-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--cream-dark);
}

.checkout-form h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.form-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}

.form-field input,
.form-field select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand);
}

.form-notice {
  background: var(--cream);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.btn--large {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.form-pay-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.container--narrow {
  width: min(720px, 92vw);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  margin: 1.75rem 0 0.5rem;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-back {
  margin-top: 2.5rem;
}

.confirm-box {
  text-align: center;
  padding: 2rem 1rem;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-ref {
  margin: 1rem 0;
  color: var(--muted);
}

.confirm-total {
  margin-bottom: 0.5rem;
}

.confirm-box--error .confirm-icon--error {
  background: rgba(196, 80, 80, 0.12);
  color: #8b3a3a;
}

.confirm-box--warn .confirm-icon--warn {
  background: rgba(196, 140, 40, 0.12);
  color: #7a5c1e;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-items,
  .cart-alert,
  .checkout-form,
  .cart-summary {
    grid-column: 1;
    grid-row: auto;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-line {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-line__right {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .nav__cart span:not(.nav__cart-count) {
    display: none;
  }
}
