/* ============================================================
   Urban8shop — landing page
   Palette: Bordeaux & laiton (design default)
   ============================================================ */

:root {
  --ink: #121110;
  --ink-soft: #8a847c;
  --paper: #f4f1ec;
  --bg: #dedbd4;
  --accent: #7a1f24;
  --metal: #c9a227;
  --metal-dark: #9c7c1c;
  --hero-grad: linear-gradient(
    180deg,
    #fff6d8 0%,
    #f0dd94 22%,
    #c9a227 46%,
    #7a5f12 58%,
    #dcc255 72%,
    #fdf3cc 88%,
    #a8871f 100%
  );
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: Archivo, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

/* ---------- Page shell ---------- */

.page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 56px;
  padding: 56px 40px 120px;
  background: var(--bg);
}

.frame {
  width: 1280px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--paper) url('assets/marbre-seamless.png') center top / 2400px auto repeat;
  color: var(--ink);
  overflow: clip;
  container-type: inline-size;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  height: 58px;
  background-image:
    linear-gradient(rgba(250, 247, 241, .55), rgba(250, 247, 241, .55)),
    url('assets/marbre-seamless.png');
  background-position: center top, center top;
  background-size: auto, 2400px auto;
  background-repeat: repeat, repeat;
  background-color: rgba(244, 241, 236, .98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 17, 16, .12);
  transition: background-color .3s ease;
  /* entrée en ressort (repris du bottom-nav-bar : scale 0.9 -> 1 + fade) */
  transform-origin: center top;
  animation: nav-in .5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes nav-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.nav.scrolled {
  background-image: linear-gradient(rgba(250, 247, 241, .12), rgba(250, 247, 241, .12));
  background-color: rgba(244, 241, 236, .22);
}

.nav__logo { height: 59px; width: 84px; display: block; }

.nav__links {
  display: flex;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* items nav : pastille active + press (repris du bottom-nav-bar) */
.nav__links a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .2s ease,
              background-color .25s ease,
              transform .12s ease;
}
.nav__links a:hover { background: rgba(18, 17, 16, .06); }
.nav__links a:active { transform: scale(0.97); }        /* whileTap */
.nav__links a.is-active {
  color: var(--accent);
  background: rgba(122, 31, 36, .12);                    /* bg-primary/10 */
  animation: nav-pill-pop .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ressort de la pastille quand l'item devient actif */
@keyframes nav-pill-pop {
  from { transform: scale(0.9); }
  to   { transform: scale(1); }
}

.nav__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.nav__meta a { display: flex; align-items: center; gap: 7px; }
.nav__meta svg { stroke: var(--metal); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(420px, 54cqw, 720px);
  background: #1c1a19;
}

.hero__slot { position: absolute; inset: 0; }

/* icône accueil dans la barre nav (à gauche) */
.nav__home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--metal);
  transition: color .2s ease, transform .12s ease;
}
.nav__home:hover { color: var(--accent); }
.nav__home:active { transform: scale(.9); }
.nav__home svg { width: 18px; height: 18px; display: block; }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: inherit;
  padding: clamp(20px, 3cqw, 40px) clamp(18px, 2.5cqw, 32px) 0;
  pointer-events: none;
}

.hero__kicker {
  position: absolute;
  left: clamp(18px, 2.5cqw, 32px);
  top: 50%;
  transform: translateY(clamp(26px, 3.2cqw, 50px));
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #7a1f24;
  white-space: nowrap;
}

.hero__title {
  margin: 0;
  align-self: flex-start;
  position: absolute;
  left: clamp(18px, 2.5cqw, 32px);
  top: 50%;
  transform: translateY(-50%) scaleY(1.12);
  transform-origin: left center;
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(38px, 5.6cqw, 80px);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background-image: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(245, 221, 138, .5));
}

/* ---------- Collection ---------- */

.collection { padding: 72px 32px 32px; }

.collection__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.collection__title {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7.8cqw, 100px);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transform: scaleY(1.1);
  transform-origin: bottom left;
  white-space: nowrap;
}

.collection__lede {
  margin: 0;
  max-width: 620px;
  margin-left: auto;
  text-align: right;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.collection__lede span { color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 28px;
}

.product { display: flex; flex-direction: column; gap: 12px; }

.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(184, 151, 79, .35);
}

/* Styled placeholder inside each product media box */
.slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
  color: var(--ink-soft);
  background:
    repeating-linear-gradient(45deg, rgba(184, 151, 79, .06) 0 10px, transparent 10px 20px);
}
.slot__icon {
  width: 34px;
  height: 34px;
  opacity: .4;
  stroke: var(--metal-dark);
}
.slot__label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-soldout {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  pointer-events: none;
}

.product__serial {
  display: flex;
  justify-content: space-between;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--metal-dark);
}

.product__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.product__name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.product__price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.product__colors { display: flex; gap: 6px; }
.product__colors span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(18, 17, 16, .28);
}

.btn-add {
  margin-top: 2px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 11px 14px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-add:hover { background: var(--accent); color: #fff; }
.btn-add:disabled,
.btn-add.is-added {
  background: transparent;
  color: var(--metal-dark);
  border: 2px solid var(--metal);
  padding: 9px 14px;          /* compense la bordure de 2px */
  cursor: default;
}

.btn-soldout {
  margin-top: 2px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid rgba(18, 17, 16, .2);
  color: var(--ink-soft);
  padding: 10px 14px;
}

/* ---------- Banner ---------- */

.banner {
  position: relative;
  overflow: hidden;
  background: var(--accent) url('assets/banner.png') center / cover no-repeat;
  color: #fff;
  padding: clamp(72px, 11cqw, 150px) 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner__text {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 1000px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 9.8cqw, 128px);
  line-height: 0.82;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  transform: scaleY(1.1);
}

.banner__stamp {
  display: inline-block;
  margin-top: 0.06em;
  background: rgb(13, 12, 12);
  color: var(--metal);
  padding: 0.02em 0.16em 0.08em;
  transform: rotate(-1.6deg);
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  font-size: 0.42em;
  letter-spacing: -0.01em;
}

/* ---------- Histoire ---------- */

.story { position: relative; padding: 96px 32px 80px; }

.story__title {
  margin: 0 0 8px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 6.6cqw, 86px);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transform: scaleY(1.1);
  transform-origin: bottom center;
  white-space: nowrap;
  text-align: center;
}

.story__lede {
  margin: 20px auto 44px;
  max-width: 520px;
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: -24px 0 44px;
}

.badge-loc {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px 8px 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-loc img {
  width: 92px;
  height: 64px;
  margin: -25px -4px -25px 0;
  display: block;
  flex: none;
  object-fit: contain;
}

.badge-noserie {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--metal);
  color: var(--ink);
  padding: 8px 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.badge-noserie span {
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

.story__media {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #e6e2da;
}

.story__play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.story__play span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.story__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 30px;
}
.story__sign-lead {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2cqw, 40px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 18px;
}
.story__sign-meta {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--metal);
}

/* ---------- Reviews ---------- */

/* Avis — marquee (cartes qui défilent) */
.reviews {
  position: relative;
  overflow: hidden;
  padding: 24px 0 88px;
  scroll-margin-top: 58px;
}

.reviews__track {
  display: flex;
  width: max-content;
  padding: 8px 0;
  animation: marquee 40s linear infinite;
}
/* pause au survol */
.reviews:hover .reviews__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* dégradés de fondu sur les bords */
.reviews__fade {
  position: absolute;
  inset-block: 0;
  width: 14%;
  z-index: 2;
  pointer-events: none;
}
.reviews__fade--left  { left: 0;  background: linear-gradient(to right, var(--paper), transparent); }
.reviews__fade--right { right: 0; background: linear-gradient(to left,  var(--paper), transparent); }

@media (prefers-reduced-motion: reduce) {
  .reviews__track { animation: none; }
}

.review {
  flex: 0 0 auto;
  width: 320px;
  margin-right: 28px;   /* "gap" porté par la carte -> boucle sans couture */
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, .6);
  padding: 22px 22px 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.review__stars { color: var(--accent); font-size: 13px; letter-spacing: 0.3em; }
.review__text { margin: 12px 0 14px; font-size: 15px; line-height: 1.5; }
.review__who {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 88px 32px;
  border-top: 1px solid rgba(18, 17, 16, .12);
  border-bottom: 1px solid rgba(18, 17, 16, .12);
}
.contact__title {
  margin: 0 0 6px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6cqw, 76px);
  line-height: 1.02;
  text-transform: uppercase;
}
.contact__lede {
  margin: 0;
  max-width: 420px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-insta {
  background: var(--accent);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  padding: 13px 26px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn-insta:hover { color: #fff; opacity: .92; }
.btn-mail {
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  padding: 11px 26px;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 32px 48px;
}
.footer__logo { height: 34px; width: auto; display: block; }
.footer__tag {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4cqw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__social a { display: flex; align-items: center; gap: 8px; }
.footer__social svg { stroke: var(--metal); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page { padding: 20px 12px 60px; gap: 24px; }
  .collection__head { flex-direction: column; align-items: flex-start; }
  .collection__lede { text-align: left; margin-left: 0; }
  .collection__title,
  .story__title { white-space: normal; }

  /* nav compacte : les liens (et la pastille) restent visibles sur mobile */
  .nav { padding: 0 10px; gap: 6px; }
  .nav__home svg { width: 16px; height: 16px; }   /* accueil un peu plus petit sur mobile */
  .nav__logo { height: 44px; width: 60px; }
  .nav__links { gap: 2px; font-size: 10px; }
  .nav__links a { padding: 4px 6px; }
  .nav__meta { gap: 10px; }
  .nav__meta-label { display: none; }   /* icônes seules ; le compteur panier reste */
}

/* ============================================================
   Compte (page de connexion) · Panier · Paiement
   ============================================================ */

/* ---------- Overlay connexion / paiement ---------- */
.auth {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #dedbd4 url('assets/marbre-seamless.png') center top / 2400px auto repeat;
}
#checkout { z-index: 110; }
.auth.is-open { display: flex; animation: auth-fade .25s ease both; }
@keyframes auth-fade { from { opacity: 0; } to { opacity: 1; } }

.auth__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: rgba(244, 241, 236, .97);
  border: 1px solid rgba(184, 151, 79, .45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  padding: 40px 32px 30px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  animation: auth-pop .35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes auth-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.auth__close,
.cart__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.cart__close { position: static; }
.auth__close:hover,
.cart__close:hover { color: var(--accent); }

.auth__logo { height: 52px; width: auto; display: block; margin: 0 auto 12px; }
.auth__title {
  margin: 0 0 4px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}
.auth__sub {
  margin: 0 0 22px;
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}
.auth__account-email {
  margin: 0 0 22px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  color: var(--accent);
  word-break: break-all;
}

.auth__google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
}
.auth__google:hover { background: #f0ece4; }

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(18, 17, 16, .2);
}

.auth__field { margin-bottom: 12px; }
.auth__label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth__input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(18, 17, 16, .3);
  background: #fff;
  font-family: Archivo, sans-serif;
  font-size: 15px;
}
.auth__input:focus { outline: none; border-color: var(--accent); }

.auth__submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: opacity .2s ease;
}
.auth__submit:hover { opacity: .92; }
.auth__submit--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  clip-path: none;
}
.auth__error {
  margin: 10px 0 0;
  color: var(--accent);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}
.auth__note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- Panier (drawer) ---------- */
.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 17, 16, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.cart-scrim.is-open { opacity: 1; visibility: visible; }

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  height: 100%;
  width: 380px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  background: var(--paper) url('assets/marbre-seamless.png') center top / 1600px auto repeat;
  border-left: 1px solid rgba(184, 151, 79, .45);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .28);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart.is-open { transform: translateX(0); }

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(18, 17, 16, .14);
  background: rgba(244, 241, 236, .6);
}
.cart__title {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.cart__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart__empty {
  padding: 48px 0;
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  color: var(--ink-soft);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(18, 17, 16, .1);
}
.cart-item__thumb {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(184, 151, 79, .35);
}
.cart-item__thumb svg { width: 26px; height: 26px; opacity: .5; stroke: var(--metal-dark); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.1;
}
.cart-item__price {
  margin-top: 2px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--metal-dark);
}
.cart-item__meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-item__unique {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--metal-dark);
  border: 1px solid rgba(184, 151, 79, .5);
  padding: 3px 7px;
}
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.qty-btn:hover { background: var(--ink); color: var(--paper); }
.cart-item__count { font-family: 'Space Mono', monospace; font-size: 13px; min-width: 18px; text-align: center; }
.cart-item__remove {
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cart-item__remove:hover { color: var(--accent); }

.cart__foot {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(18, 17, 16, .14);
  background: rgba(244, 241, 236, .6);
}
.cart__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}
.cart__pay {
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color .2s ease, color .2s ease;
}
.cart__pay:hover:not(:disabled) { background: var(--accent); color: #fff; }
.cart__pay:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Récap paiement ---------- */
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(18, 17, 16, .1);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
}
.checkout-line span:first-child { color: var(--ink); }
.checkout-line span:last-child { font-weight: 800; white-space: nowrap; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
}
.checkout-done {
  text-align: center;
  padding: 20px 0 6px;
}
.checkout-done h3 {
  margin: 12px 0 6px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 34px;
  text-transform: uppercase;
}
.checkout-done p { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; color: var(--ink-soft); }
.checkout-done__mark {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 130;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* petit rebond de l'icône panier quand on ajoute */
.nav__meta a.bump { animation: cart-bump .4s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@media (max-width: 720px) {
  .cart { width: 100%; max-width: 100%; }
}

/* ============================================================
   Liste d'attente / Prochain drop (état "hors drop")
   ============================================================ */
.waitlist {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  display: none;                 /* caché par défaut ; affiché seulement via .is-open */
  align-items: center;
  justify-content: center;
  padding: 40px 22px;
  background: #1c1a19 url('assets/marbre-seamless.png') center top / 2400px auto repeat;
}
.waitlist.is-open { display: flex; }
.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 17, 16, .72), rgba(18, 17, 16, .82));
}
.waitlist__inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  text-align: center;
  color: var(--paper);
}
.waitlist__logo { height: 74px; width: auto; margin: 0 auto 18px; display: block; }
.waitlist__kicker {
  margin: 0 0 6px;
  font-family: 'Pinyon Script', cursive;
  font-size: 26px;
  color: var(--metal);
}
.waitlist__title {
  margin: 0 0 28px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 12vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
  transform: scaleY(1.08);
}

/* compte à rebours */
.waitlist__countdown { margin: 0 0 30px; }
.wl-timer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wl-block {
  min-width: 74px;
  padding: 12px 8px;
  background: rgba(244, 241, 236, .06);
  border: 1px solid rgba(201, 162, 39, .4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wl-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1;
  color: var(--paper);
}
.wl-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal);
}
.wl-soon {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 8vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--metal);
}

.waitlist__pitch {
  margin: 0 auto 26px;
  max-width: 460px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 241, 236, .9);
}
.waitlist__pitch b { color: var(--paper); }

.waitlist__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}
.waitlist__input {
  flex: 1 1 180px;
  padding: 13px 14px;
  border: 1px solid rgba(244, 241, 236, .35);
  background: rgba(244, 241, 236, .08);
  color: var(--paper);
  font-family: Archivo, sans-serif;
  font-size: 15px;
}
.waitlist__input::placeholder { color: rgba(244, 241, 236, .5); }
.waitlist__input:focus { outline: none; border-color: var(--metal); }
.waitlist__btn {
  flex: 1 1 100%;
  padding: 14px;
  background: var(--metal);
  color: #121110;
  border: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: opacity .2s ease;
}
.waitlist__btn:hover { opacity: .9; }
.waitlist__btn:disabled { opacity: .5; cursor: default; }

.waitlist__msg {
  margin: 18px auto 0;
  max-width: 460px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--metal);
}

.waitlist__social {
  margin: 34px 0 10px;
  display: flex;
  gap: 22px;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.waitlist__social a { color: rgba(244, 241, 236, .8); }
.waitlist__social a:hover { color: var(--metal); }
.waitlist__made {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, .55);
}
