/* Polices hébergées sur le site (pas d'appel à Google Fonts : rien n'est
   transmis à un tiers lors d'une visite). Licence SIL OFL, voir /fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-elev: #12100e;
  --surface: #171411;
  --surface-2: #201c18;
  --border: #2d2823;
  --border-strong: #3d362f;
  --text: #f4efe7;
  --muted: #a69c90;
  --faint: #6f675e;
  --gold: #c9a96e;
  --gold-2: #e3c891;
  --gold-ink: #1a1408;
  --green: #6cc497;
  --green-bg: rgba(108, 196, 151, 0.12);
  --red: #e58474;
  --red-bg: rgba(229, 132, 116, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Boutons & champs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: 500 14px var(--sans);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; font-weight: 600; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-danger:hover { border-color: var(--red); color: var(--red); }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }

input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font: 15px var(--sans);
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201, 169, 110, 0.45); outline-offset: 1px; border-color: var(--gold); }
input[type='checkbox'] { width: 18px; min-height: 18px; accent-color: var(--gold); }

.checkbox { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-error { background: var(--red-bg); color: var(--red); }
.alert-ok { background: var(--green-bg); color: var(--green); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gold { background: rgba(201, 169, 110, 0.14); color: var(--gold-2); }

/* ---------- Landing ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 10, 9, 0.82);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0.14em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--gold); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }

.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.18), transparent 65%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0 20px; }
.hero h1 em { color: var(--gold-2); font-style: italic; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

.preview-stack { position: relative; display: grid; gap: 14px; }
.preview-label { font-size: 12px; color: var(--faint); text-align: right; }

.section { padding: 84px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin: 12px 0 14px; }

.why-grid, .steps, .features { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.why-grid .card h3, .features .card h3 { font-size: 24px; margin-bottom: 8px; }
.steps .card { position: relative; }
.step-num { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-2);
  margin-bottom: 14px;
  font-size: 18px;
}

.pricing { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.price-card { display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.price-card h3 { font-size: 30px; }
.price { font-family: var(--serif); font-size: 50px; line-height: 1; }
.price small { font: 15px var(--sans); color: var(--muted); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-card li { padding-left: 26px; position: relative; color: var(--muted); }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--faint); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* ---------- Cartes d'annonce (landing + app) ---------- */

.deal {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.deal.is-fresh { animation: flash 2.4s ease-out; }
@keyframes flash { from { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25); } }
.deal-img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.deal-body { min-width: 0; display: grid; gap: 6px; align-content: start; }
.deal-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.deal-figures { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.deal-price { font-family: var(--serif); font-size: 24px; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Auth ---------- */

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(420px, 100%); display: grid; gap: 22px; }
.auth-card .logo { text-align: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.tabs button { min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--surface-2); color: var(--text); }
.auth-card form { display: grid; gap: 14px; }

/* ---------- Application ---------- */

.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px 18px;
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
}
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}
.sidebar nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.sidebar nav a[aria-current='page'] { background: var(--surface-2); color: var(--text); }
.sidebar nav a .icon { width: 18px; text-align: center; color: var(--gold); }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; font-size: 13px; }

.main { padding: 32px clamp(16px, 4vw, 44px) 60px; min-width: 0; }
.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.view-head h1 { font-size: 38px; }
.view-head p { margin-top: 6px; }

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.live.paused::before { background: var(--faint); box-shadow: none; }

.deal-list { display: grid; gap: 12px; }
.stack { display: grid; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { justify-content: space-between; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { font-size: 26px; color: var(--text); margin-bottom: 8px; }

.banner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-color: var(--gold); background: linear-gradient(135deg, rgba(201, 169, 110, 0.12), transparent); }

.wl-item { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.wl-item h3 { font-size: 22px; }
.wl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wl-item.inactive { opacity: 0.6; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--faint); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.me td { color: var(--gold-2); }
tr.total td { font-weight: 700; border-bottom: 0; font-size: 16px; }
.table-wrap { overflow-x: auto; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.result-big { font-family: var(--serif); font-size: 46px; line-height: 1; margin: 6px 0 4px; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .hero .container, .calc { grid-template-columns: 1fr; }
  .why-grid, .steps, .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }

  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    z-index: 10;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .sidebar .logo { font-size: 17px; flex-shrink: 0; }
  .sidebar nav { display: flex; gap: 2px; }
  .sidebar nav a { padding: 8px 10px; white-space: nowrap; }
  .sidebar nav a .icon { display: none; }
  .sidebar-foot { display: none; }
  .main { padding-top: 22px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 56px; }
  .hide-sm { display: none !important; }
  .deal { grid-template-columns: 72px 1fr; gap: 12px; }
  .deal-img { width: 72px; height: 72px; }
  .view-head h1 { font-size: 32px; }
}
.mt-10 { margin-top: 10px; }

/* ---------- En-tête du site (pages publiques) ---------- */

.site-nav a[aria-current='page'] { color: var(--text); }
.header-actions .btn-link { color: var(--muted); font-size: 14px; padding: 0 6px; }
.header-actions .btn-link:hover { color: var(--text); text-decoration: none; }

@media (max-width: 900px) {
  .site-header .container { flex-wrap: wrap; gap: 10px 16px; padding: 10px 0; }
  .site-header .site-nav { display: flex; order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
  .site-nav a { white-space: nowrap; }
}

/* ---------- Catalogue ---------- */

.page { padding: 34px 0 72px; }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.filters { position: sticky; top: 86px; display: grid; gap: 14px; }
.filters h2 { font-size: 24px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters-toggle { display: none; }

.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.product-card a { color: inherit; display: block; }
.product-card a:hover { text-decoration: none; }
.product-media { aspect-ratio: 1 / 1; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 12px 14px 16px; display: grid; gap: 4px; }
.product-brand { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.product-title { font: 600 15px/1.35 var(--sans); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { font-size: 12px; color: var(--muted); }
.product-price { font-family: var(--serif); font-size: 24px; margin-top: 4px; }
.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 10, 9, 0.7);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
}
.fav[aria-pressed='true'] { color: var(--red); border-color: var(--red); }
.center { justify-content: center; }
.mt-20 { margin-top: 20px; }

/* ---------- Fiche produit ---------- */

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.thumbs button[aria-current='true'] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: 18px; }
.product-info h1 { font-size: clamp(30px, 4vw, 42px); }
.title-ja { font-size: 13px; color: var(--faint); }
.price-box { display: grid; gap: 10px; }
.price-total { font-family: var(--serif); font-size: 46px; line-height: 1; }
.breakdown { width: 100%; }
.breakdown td { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.breakdown tr:last-child td { border-bottom: 0; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.perks li { padding-left: 24px; position: relative; }
.perks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.attrs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; }
.warning-box { border-color: rgba(229, 132, 116, 0.5); background: var(--red-bg); }
.warning-box ul { margin: 8px 0 0; padding-left: 18px; }
.description { white-space: pre-line; color: var(--text); }
.original { white-space: pre-wrap; font-size: 13px; color: var(--muted); margin: 10px 0 0; font-family: var(--sans); }
details summary { cursor: pointer; color: var(--gold-2); font-size: 14px; }

/* ---------- Commandes ---------- */

.status-chip { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.status-paid, .status-purchased, .status-warehouse { background: rgba(201, 169, 110, 0.14); color: var(--gold-2); }
.status-shipped, .status-delivered { background: var(--green-bg); color: var(--green); }
.status-cancelled { background: var(--red-bg); color: var(--red); }
.order-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; color: inherit; }
.order-row:hover { text-decoration: none; border-color: var(--border-strong); }
.order-row img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; color: var(--faint); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { border-color: var(--gold); background: var(--gold); }
.timeline small { display: block; color: var(--muted); }
.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ---------- Back-office ---------- */

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat strong { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs-row button[aria-pressed='true'] { border-color: var(--gold); color: var(--gold-2); }
.admin-order { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
.admin-order img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; font-size: 14px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.admin-actions input { min-height: 36px; padding: 6px 10px; width: auto; flex: 1 1 160px; }

@media (max-width: 900px) {
  .catalog, .product, .order-detail { grid-template-columns: 1fr; }
  .filters { position: static; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .filters.collapsed { display: none; }
  .filters-toggle { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-price { font-size: 21px; }
  .admin-order { grid-template-columns: 1fr; }
}
.span-grid { grid-column: 1 / -1; }
a.deal { color: inherit; } a.deal:hover { text-decoration: none; border-color: var(--border-strong); }
.product-links { font-size: 14px; color: var(--muted); }

/* =========================================================
   Couleurs et animations
   ========================================================= */

:root {
  --sakura: #f4a6c6;
  --vermilion: #ff8a65;
  --indigo: #8b93ff;
  --jade: #5fd4a8;
  --sky: #7dd3fc;
  --lilac: #c4a7ff;
  --grad-brand: linear-gradient(120deg, #e3c891 0%, #f4a6c6 45%, #8b93ff 100%);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes gradient-pan { to { background-position: 200% center; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 20px) scale(0.95); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes petal-fall { from { transform: translate(0, -30px) rotate(0deg); } to { transform: translate(140px, 820px) rotate(560deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
@keyframes pop { 50% { transform: scale(1.25); } }

.text-gradient,
.logo span,
.eyebrow,
.step-num {
  background: var(--grad-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 7s linear infinite;
}
.hero h1 em.text-gradient { color: transparent; }

/* Boutons */
.btn-gradient {
  position: relative;
  overflow: hidden;
  background: var(--grad-brand);
  background-size: 200% auto;
  color: #170f15;
  border-color: transparent;
  font-weight: 600;
  transition: background-position 0.6s var(--ease-out), transform 0.15s, box-shadow 0.25s;
}
.btn-gradient:hover { background-position: 100% center; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(244, 166, 198, 0.28); text-decoration: none; }
.btn-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-gradient:hover::after { transform: translateX(120%); transition: transform 0.8s ease; }
.btn-gradient:disabled { opacity: 0.6; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15px; }
.btn { transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px); }

/* Hero animé */
.hero::before { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 18s ease-in-out infinite alternate; }
.blob-gold { width: 520px; height: 520px; background: #c9a96e; opacity: 0.3; top: -180px; right: -60px; }
.blob-sakura { width: 480px; height: 480px; background: var(--sakura); opacity: 0.2; bottom: -260px; left: 6%; animation-duration: 23s; }
.blob-indigo { width: 340px; height: 340px; background: var(--indigo); opacity: 0.18; top: 18%; right: 32%; animation-duration: 27s; }
.petals span {
  position: absolute;
  top: -4%;
  width: 12px;
  height: 10px;
  border-radius: 12px 0 12px 0;
  background: linear-gradient(135deg, #ffe0ea, var(--sakura));
  opacity: 0.65;
  animation: petal-fall linear infinite;
}
.petals span:nth-child(1) { left: 6%; animation-duration: 15s; animation-delay: -3s; }
.petals span:nth-child(2) { left: 18%; animation-duration: 19s; animation-delay: -11s; transform: scale(0.8); }
.petals span:nth-child(3) { left: 31%; animation-duration: 13s; animation-delay: -6s; }
.petals span:nth-child(4) { left: 44%; animation-duration: 21s; animation-delay: -15s; opacity: 0.45; }
.petals span:nth-child(5) { left: 57%; animation-duration: 16s; animation-delay: -1s; }
.petals span:nth-child(6) { left: 68%; animation-duration: 18s; animation-delay: -9s; opacity: 0.5; }
.petals span:nth-child(7) { left: 79%; animation-duration: 14s; animation-delay: -5s; }
.petals span:nth-child(8) { left: 90%; animation-duration: 20s; animation-delay: -13s; opacity: 0.4; }
.hero-in > * { animation: fade-up 0.9s var(--ease-out) both; }
.hero-in > :nth-child(2) { animation-delay: 0.08s; }
.hero-in > :nth-child(3) { animation-delay: 0.16s; }
.hero-in > :nth-child(4) { animation-delay: 0.24s; }
.hero-in > :nth-child(5) { animation-delay: 0.32s; }
.preview-stack .deal { animation: fade-up 0.9s var(--ease-out) both, bob 7s ease-in-out 1s infinite; transition: border-color 0.2s, box-shadow 0.2s; }
.preview-stack .deal:nth-child(2) { animation-delay: 0.15s, 2.2s; }
.preview-stack .deal:nth-child(3) { animation-delay: 0.3s, 3.4s; }
.preview-stack .deal:hover { border-color: rgba(244, 166, 198, 0.5); box-shadow: 0 16px 40px rgba(139, 147, 255, 0.15); }

/* Défilement des maisons */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.07), rgba(244, 166, 198, 0.07), rgba(139, 147, 255, 0.07));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 26px; color: var(--muted); white-space: nowrap; padding: 0 26px; }
.marquee-track span::after { content: '✦'; margin-left: 52px; font-size: 13px; color: var(--sakura); vertical-align: middle; }
.marquee-track span:nth-child(3n + 2)::after { color: var(--indigo); }
.marquee-track span:nth-child(3n)::after { color: var(--gold-2); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Apparition au défilement (activée par motion.js) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Cartes colorées */
.why-grid .card, .steps .card, .features .card { transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s; }
.why-grid .card:hover, .steps .card:hover, .features .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.features .card:nth-child(6n + 1) { --accent: var(--gold-2); }
.features .card:nth-child(6n + 2) { --accent: var(--sakura); }
.features .card:nth-child(6n + 3) { --accent: var(--indigo); }
.features .card:nth-child(6n + 4) { --accent: var(--jade); }
.features .card:nth-child(6n + 5) { --accent: var(--vermilion); }
.features .card:nth-child(6n + 6) { --accent: var(--sky); }
.features .card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.features .feature-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.why-grid .card:nth-child(1):hover { border-color: rgba(227, 200, 145, 0.5); }
.why-grid .card:nth-child(2):hover { border-color: rgba(244, 166, 198, 0.5); }
.why-grid .card:nth-child(3):hover { border-color: rgba(139, 147, 255, 0.5); }
.steps .card:hover { border-color: rgba(244, 166, 198, 0.45); }

.price-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box;
  background-size: auto, 200% auto;
  animation: gradient-pan 6s linear infinite;
  box-shadow: 0 24px 60px rgba(244, 166, 198, 0.12);
}
.price-card .price { font-size: 58px; }
.single-plan { grid-template-columns: minmax(0, 440px); }
.glow-card { border-color: rgba(244, 166, 198, 0.28); box-shadow: 0 0 0 1px rgba(139, 147, 255, 0.08), 0 20px 50px rgba(244, 166, 198, 0.08); }

/* Catalogue : cartes, catégories, chargement */
.product-card { animation: fade-up 0.55s var(--ease-out) both; transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s; }
.product-card:nth-child(2) { animation-delay: 0.04s; }
.product-card:nth-child(3) { animation-delay: 0.08s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.16s; }
.product-card:nth-child(6) { animation-delay: 0.2s; }
.product-card:nth-child(7) { animation-delay: 0.24s; }
.product-card:nth-child(8) { animation-delay: 0.28s; }
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 166, 198, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 10px 40px rgba(139, 147, 255, 0.14);
}
.product-media { overflow: hidden; }
.product-media img { transition: transform 0.7s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.07); }
.fav { transition: transform 0.15s, color 0.15s, border-color 0.15s; }
.fav:hover { transform: scale(1.1); }
.fav[aria-pressed='true'] { animation: pop 0.35s; color: var(--sakura); border-color: var(--sakura); }

.skeleton {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4.3;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  --c: var(--gold-2);
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c);
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.chip:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--c) 20%, transparent); }
.chip[aria-pressed='true'] { background: var(--c); color: #140f12; }
.chip[data-cat='bag'] { --c: var(--sakura); }
.chip[data-cat='wallet'] { --c: var(--gold-2); }
.chip[data-cat='watch'] { --c: var(--indigo); }
.chip[data-cat='jewelry'] { --c: var(--jade); }
.chip[data-cat='accessory'] { --c: var(--vermilion); }
.chip[data-cat='clothing'] { --c: var(--lilac); }
.chip[data-cat='shoes'] { --c: var(--sky); }
.chip[data-cat='other'] { --c: var(--muted); }

.badge-green { box-shadow: 0 0 0 1px rgba(108, 196, 151, 0.25); }
.product-links { word-break: break-word; }

/* Pied de page : filet dégradé */
.site-footer { border-top: 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-brand); opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .petals, .blob { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

.link-button { background: none; border: 0; padding: 0; cursor: pointer; font: 14px var(--sans); justify-self: start; }
.link-button:hover { color: var(--gold-2); }
.center-text { text-align: center; }
.auth-card h1 { font-size: 32px; }

.legal { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.consent { font-size: 12px; color: var(--faint); }
.consent a { color: var(--muted); text-decoration: underline; }

/* Notifications des alertes */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notif-card { border-color: rgba(201, 169, 110, 0.35); background: linear-gradient(135deg, rgba(201, 169, 110, 0.09), transparent 60%), var(--surface); }
.notif-card.attention { animation: attention 1.1s var(--ease-out) 2; }
@keyframes attention { 40% { box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.35); border-color: var(--gold); } }
.channels { display: grid; gap: 10px; }
.channel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  transition: border-color 0.3s;
}
.channel.on { border-color: rgba(108, 196, 151, 0.45); }
.channel-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 169, 110, 0.12); color: var(--gold-2); transition: background 0.3s, color 0.3s; }
.channel.on .channel-icon { background: var(--green-bg); color: var(--green); }
.channel-text { display: grid; gap: 2px; min-width: 0; }
.notif-help { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13px; }
.notify-hint { margin: 0; color: var(--muted); }
.notify-hint.off { color: var(--red); }
.notify-hint a { color: inherit; text-decoration: underline; }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--border-strong); transition: background 0.2s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform 0.2s var(--ease-out); }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: 0.5; }
@media (max-width: 560px) {
  .channel { grid-template-columns: 40px minmax(0, 1fr); }
  .channel > :last-child { grid-column: 2; justify-self: start; }
}

/* Page d'abonnement (accès au catalogue) */
.paywall { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px); gap: 48px; align-items: center; min-height: calc(100vh - 230px); }
.paywall-intro { display: grid; gap: 20px; align-content: start; animation: fade-up 0.8s var(--ease-out) both; }
.paywall h1 { font-size: clamp(38px, 5.5vw, 62px); }
.paywall h1 em { font-style: italic; }
.paywall .perks { font-size: 15px; gap: 10px; }
.paywall .price-card { animation: fade-up 0.8s 0.12s var(--ease-out) both; }
.paywall .price-card p a { color: var(--gold-2); text-decoration: underline; }
@media (max-width: 860px) {
  .paywall { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
}

/* Catalogue : nouveautés arrivées pendant la visite */
.new-items { margin-top: 10px; animation: fade-up 0.5s var(--ease-out) both; }

/* Site d'origine de chaque pièce (Mercari, Yahoo! Auctions, Rakuten) */
.source-tag { float: right; font-size: 10px; letter-spacing: 0.04em; text-transform: none; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.source-yahoo { color: #ff7a9a; background: rgba(255, 0, 51, 0.1); }
.source-rakuten { color: #ff8a8a; background: rgba(191, 0, 0, 0.14); }
.source-mercari { color: var(--sky); background: rgba(125, 211, 252, 0.1); }
#health { white-space: pre-line; }

/* Back-office : secret du webhook Whop */
.whop-form input { flex: 1; min-width: 220px; }
