/* ═══════════════════════════════════════════════
   LONAR CAFÉ — Maison de Café
   Noir · Anthracite · Or
   ═══════════════════════════════════════════════ */

:root {
  --noir: #0D0D0D;
  --anthracite: #1A1A1A;
  --anthracite-soft: #232323;
  --gold: #D4AF37;
  --champagne: #E8D9A8;
  --blanc: #FFFFFF;
  --muted: #9A968D;
  --line: rgba(212, 175, 55, 0.22);

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  --container: 1180px;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button { font-family: inherit; cursor: pointer; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

::selection { background: var(--gold); color: var(--noir); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Shared type ── */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blanc);
}

.section-sub {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 12px;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 14px 34px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  background: transparent;
  color: var(--champagne);
  transition: background 0.35s var(--ease-lux), color 0.35s var(--ease-lux), border-color 0.35s;
}

.btn-gold {
  background: var(--gold);
  color: var(--noir);
}

.btn-gold:hover { background: var(--champagne); border-color: var(--champagne); }

.btn-ghost:hover { background: rgba(212, 175, 55, 0.12); }

/* ═══════════ NAVIGATION ═══════════ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 44px);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 175, 55, 0.15);
  padding-block: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.05rem;
}

.nav-brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.38em;
  font-size: 0.95rem;
  color: var(--blanc);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--champagne); }

.nav-cart {
  position: relative;
  background: none;
  border: 1px solid var(--line);
  color: var(--champagne);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transition: border-color 0.3s, color 0.3s;
}

.nav-cart:hover { border-color: var(--gold); color: var(--gold); }

.nav-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--noir);
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 50%;
}

/* ═══════════ HERO — BANNIÈRE VIDÉO ═══════════ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(13,13,13,0.45), transparent 75%),
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.25) 35%, rgba(13,13,13,0.25) 65%, rgba(13,13,13,0.78) 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 24px;
  animation: heroIn 1.4s var(--ease-lux) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero-copy .hero-line { margin-top: 18px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 7.5rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* optically recenters letterspaced caps */
  color: var(--blanc);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  letter-spacing: 0.14em;
  color: var(--champagne);
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
  max-width: 18ch;
}

.hero-cta {
  margin-top: 38px;
  box-shadow: 0 10px 50px rgba(212, 175, 55, 0.25);
}

/* ═══════════ FILTER BAND ═══════════ */

.filter-band {
  padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212,175,55,0.07), transparent 70%),
    var(--noir);
}

.filter-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.1em;
}

.filter-sub {
  color: var(--muted);
  margin-top: 10px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 11px 24px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-lux);
}

.chip:hover { border-color: var(--gold); color: var(--champagne); }

.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--noir);
  font-weight: 500;
}

/* ═══════════ SECTIONS & GRIDS ═══════════ */

.section {
  padding: clamp(60px, 8vw, 110px) 0;
}

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

.grid {
  display: grid;
  gap: clamp(18px, 2.5vw, 30px);
}

.grid-capsules { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-machines { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-accessories { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 44px 20px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
}

/* ── Product card ── */

.card {
  background: linear-gradient(165deg, var(--anthracite-soft) 0%, var(--anthracite) 55%, #141414 100%);
  border: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-lux), border-color 0.5s, box-shadow 0.5s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.card.is-filtered-out { display: none; }

.card-art {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(212,175,55,0.10), transparent 70%),
    linear-gradient(180deg, #1f1f1f, #121212);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.card-art svg { width: 62%; height: auto; }

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-lux);
}

.card:hover .card-art img { transform: scale(1.04); }

.card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.card-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

.card-meta {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

.card-price {
  font-family: var(--font-display);
  color: var(--champagne);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.card-actions { display: flex; gap: 8px; }

.card-btn {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--noir);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 16px;
  transition: background 0.3s, color 0.3s;
}

.card-btn:hover { background: var(--champagne); border-color: var(--champagne); }

.card-btn--ghost {
  background: transparent;
  color: var(--champagne);
}

.card-btn--ghost:hover { background: rgba(212,175,55,0.12); color: var(--champagne); }

/* ── Intensity gauge ── */

.gauge {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.gauge-label strong { color: var(--gold); font-weight: 500; }

.gauge-ticks {
  display: flex;
  gap: 3px;
}

.gauge-tick {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.10);
}

.gauge-tick.is-lit {
  background: linear-gradient(90deg, var(--gold), var(--champagne));
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* ═══════════ MACHINE SPOTLIGHT ═══════════ */

.section--machine {
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(212,175,55,0.08), transparent 72%),
    var(--anthracite);
  border-block: 1px solid rgba(212, 175, 55, 0.12);
}

.section--machine .section-head { text-align: center; }
.section--machine .section-sub { margin-inline: auto; }

/* ═══════════ FOOTER ═══════════ */

.footer {
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { font-size: 0.85rem; }

.footer-tag {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ═══════════ PRODUCT MODAL ═══════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  background: linear-gradient(170deg, var(--anthracite-soft), #131313);
  border: 1px solid rgba(212, 175, 55, 0.3);
  animation: modalIn 0.45s var(--ease-lux);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(13,13,13,0.6);
  color: var(--champagne);
  font-size: 1.4rem;
  line-height: 1;
  transition: border-color 0.3s, color 0.3s;
}

.modal-close:hover { border-color: var(--gold); color: var(--gold); }

.modal-body { padding: 0; }

.modal-art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 65% at 50% 45%, rgba(212,175,55,0.13), transparent 70%),
    linear-gradient(180deg, #202020, #101010);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.modal-art svg { width: 32%; height: auto; }

.modal-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info { padding: 34px clamp(24px, 5vw, 44px) 40px; }

.modal-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.modal-desc { color: var(--muted); margin-top: 14px; max-width: 60ch; }

.modal-facts {
  list-style: none;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 24px;
}

.modal-facts li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.modal-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.modal-buy {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--champagne);
}

.modal-gauge { margin-top: 22px; max-width: 320px; }

/* ── Cross-sell ── */

.pairings {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.pairings-title {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}

.pairing-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pairing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(13, 13, 13, 0.5);
  transition: border-color 0.3s;
}

.pairing:hover { border-color: rgba(212, 175, 55, 0.4); }

.pairing-thumb {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  background: #101010;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.pairing-thumb svg { width: 68%; height: auto; }

.pairing-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pairing-info { flex: 1; min-width: 0; }

.pairing-name { font-size: 0.86rem; font-weight: 400; letter-spacing: 0.03em; }

.pairing-price { font-size: 0.76rem; color: var(--gold); margin-top: 2px; }

.pairing-add {
  flex: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--champagne);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  transition: background 0.3s, color 0.3s;
}

.pairing-add:hover { background: var(--gold); color: var(--noir); }

/* ═══════════ CART DRAWER ═══════════ */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s;
}

.cart-overlay.is-open { opacity: 1; }

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(430px, 100vw);
  background: linear-gradient(190deg, var(--anthracite-soft), #121212);
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-lux);
  display: flex;
  flex-direction: column;
}

.cart.is-open { transform: translateX(0); }

.cart-head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
}

.cart-head .eyebrow { margin-bottom: 6px; }

.cart-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.cart-close { top: 22px; right: 22px; position: absolute; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 40px 20px;
}

.cart-empty .eyebrow { margin-bottom: 10px; }

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.13);
  background: rgba(13, 13, 13, 0.45);
}

.cart-item-thumb {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  background: #101010;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.cart-item-thumb svg { width: 68%; height: auto; }

.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price { font-size: 0.74rem; color: var(--gold); margin-top: 3px; }

.cart-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.cart-qty button {
  width: 26px;
  height: 28px;
  background: none;
  border: none;
  color: var(--champagne);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.cart-qty button:hover { background: rgba(212,175,55,0.15); }

.cart-qty span {
  min-width: 22px;
  text-align: center;
  font-size: 0.8rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--gold); }

.cart-foot {
  padding: 22px 28px 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.cart-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--champagne);
  letter-spacing: 0.02em;
}

.cart-checkout { width: 100%; }

.cart-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.06em;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 80px);
  z-index: 100;
  background: var(--gold);
  color: var(--noir);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 26px;
  opacity: 0;
  transition: transform 0.45s var(--ease-lux), opacity 0.45s;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ═══════════ COMPTE DANS LA BARRE ═══════════ */

/* Les liens gardent le centre ; compte et panier restent collés à droite,
   y compris sur mobile où les liens disparaissent. */
.nav-links { flex: 1; justify-content: center; }

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  margin-right: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--champagne);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}

.nav-account:hover { border-color: var(--gold); color: var(--gold); }

.nav-admin {
  margin-right: 14px;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-admin:hover { background: rgba(212, 175, 55, 0.14); }

.nav-badge {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 6px 12px;
}

/* ═══════════ PAGES SECONDAIRES ═══════════ */

.page {
  padding-top: 130px;
  padding-bottom: clamp(60px, 9vw, 110px);
  min-height: 72vh;
}

.container--narrow { max-width: 860px; }

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-loading {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 26px 0;
}

.account-head { margin-bottom: 30px; }

.account-head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.account-head-actions .btn { padding: 11px 22px; font-size: 0.7rem; }

.panel {
  background: linear-gradient(165deg, var(--anthracite-soft) 0%, var(--anthracite) 60%, #141414 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 26px;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 10px;
  margin-bottom: 22px;
  max-width: 60ch;
}

.panel-sub a { color: var(--gold); }

/* ── Onglets ── */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 12px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}

.tab:hover { color: var(--champagne); }
.tab.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Formulaires ── */

.field { display: block; margin-bottom: 18px; }

.field > span,
.field legend {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field i { color: var(--gold); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #141414;
  border: 1px solid var(--line);
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 12px 14px;
  transition: border-color 0.3s;
}

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

.field input[readonly] { color: var(--muted); }

.field textarea { resize: vertical; }

.field small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 7px;
}

.field--radios {
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.field--check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.field--check input { width: auto; }
.field--check span { margin: 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  color: var(--champagne);
  font-size: 0.85rem;
  cursor: pointer;
}

.radio input { width: auto; accent-color: var(--gold); }

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-row > .field { flex: 1 1 200px; }

.form-inline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-inline .field { flex: 1 1 180px; margin-bottom: 0; }

.field-static {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.field-static span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-error {
  color: #E8A0A0;
  background: rgba(201, 123, 123, 0.1);
  border-left: 2px solid #C97B7B;
  padding: 11px 15px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.form-info {
  color: var(--champagne);
  background: rgba(212, 175, 55, 0.09);
  border-left: 2px solid var(--gold);
  padding: 11px 15px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  display: inline-block;
}

.form-info[hidden] { display: none; }

/* ── Pastilles de statut ── */

.pill {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.pill--en_attente     { color: #E8C86A; }
.pill--confirmee      { color: var(--champagne); }
.pill--en_preparation { color: #9CB8DC; }
.pill--en_livraison   { color: #7FCBBC; }
.pill--livree         { color: #86C892; }
.pill--annulee        { color: #C97B7B; }

/* ═══════════ COMMANDES (CLIENT) ═══════════ */

.order {
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(18px, 3vw, 26px);
  margin-bottom: 16px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.order-ref {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  color: var(--champagne);
}

.order-date { font-size: 0.74rem; color: var(--muted); }

.order-lines {
  list-style: none;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.order-line-name em { color: var(--gold); font-style: normal; }

.order-foot { border-top: 1px solid var(--line); padding-top: 14px; }

.order-totals { display: flex; flex-direction: column; gap: 6px; }

.order-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-total { color: var(--blanc); font-weight: 500; }

.order-payment,
.order-address {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 9px;
}

/* ═══════════ TUNNEL DE COMMANDE ═══════════ */

.modal-panel--form { width: min(900px, 100%); }

.checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.checkout-form-col { padding: 36px clamp(24px, 4vw, 42px) 40px; }

.checkout-form-col .modal-name { margin-bottom: 24px; }

.checkout-recap {
  background: rgba(0, 0, 0, 0.3);
  border-left: 1px solid var(--line);
  padding: 36px clamp(20px, 3vw, 32px);
}

.checkout-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.checkout-line-name em { color: var(--gold); font-style: normal; }

.checkout-totals {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--muted);
}

.checkout-total {
  color: var(--blanc);
  font-size: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.checkout-total span:last-child { color: var(--gold); }

.checkout-submit { width: 100%; margin-top: 10px; }

.checkout-legal {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

.checkout-success {
  padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 44px);
  text-align: center;
}

.checkout-success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.5rem;
}

.checkout-ref {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  color: var(--champagne);
  margin-top: 14px;
}

.checkout-ref strong { color: var(--gold); }

.checkout-success-text { color: var(--muted); margin-top: 16px; font-size: 0.9rem; }

.checkout-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ═══════════ ÉTATS DU CATALOGUE ═══════════ */

.card-art { position: relative; }

.stock-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 13, 13, 0.86);
  border: 1px solid var(--line);
  color: var(--champagne);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.stock-flag--out { color: #C97B7B; border-color: rgba(201, 123, 123, 0.45); }

.card-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.card--skeleton {
  min-height: 430px;
  border-color: rgba(212, 175, 55, 0.08);
  animation: skeletonPulse 1.6s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.62; }
}

.grid-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 52px 20px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  color: var(--muted);
}

.grid-error-detail {
  font-size: 0.76rem;
  opacity: 0.7;
  margin: 10px 0 20px;
}

@media (max-width: 780px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-recap { border-left: none; border-top: 1px solid var(--line); }
  .nav-account span { display: none; }
  .nav-account { padding: 10px; margin-right: 10px; }
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 720px) {
  .nav-links { display: none; }

  /* Hero : hauteur et typo ramenées à l'échelle du mobile */
  .hero {
    height: 70svh;
    min-height: 420px;
    max-height: 620px;
  }
  .hero-copy { padding-inline: 20px; }
  .hero-copy .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
  .hero-line {
    font-size: clamp(1.05rem, 4.8vw, 1.6rem);
    letter-spacing: 0.1em;
    max-width: 20ch;
  }
  .hero-copy .hero-line { margin-top: 12px; }
  .hero-cta {
    margin-top: 26px;
    padding: 12px 26px;
    font-size: 0.72rem;
  }

  .card-foot { flex-direction: column; align-items: stretch; }
  .card-actions { justify-content: stretch; }
  .card-actions .card-btn { flex: 1; }
  .card-price { text-align: center; }
}

/* Très petits écrans : on resserre encore le titre lettré */
@media (max-width: 420px) {
  .hero { min-height: 380px; }
  .hero-title {
    font-size: clamp(1.7rem, 8.6vw, 2.4rem);
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }
  .hero-line { font-size: 1.05rem; }
}

/* Mobile en paysage : hauteur d'écran courte, on compacte le hero */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    height: 100svh;
    min-height: 320px;
    max-height: none;
  }
  .hero-copy .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.26em;
    margin-bottom: 8px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }
  .hero-line {
    font-size: clamp(1rem, 3vw, 1.4rem);
    max-width: 30ch;
  }
  .hero-copy .hero-line { margin-top: 8px; }
  .hero-cta {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 0.7rem;
  }
}

/* ═══════════ REDUCED MOTION ═══════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-copy { animation: none; }
}
