/* Luxury Shop DZ — noir profond, or champagne, titres en sérif. Un seul thème sombre, voulu. */
:root {
  --bg: #0A0A0B; --surface: #141416; --surface-2: #1b1b1e; --line: #2a2a2e; --text: #F2EEE6; --muted: #A09B90;
  --gold: #C9A96A; --gold-ink: #0A0A0B; --ok: #7fbf9a; --warn: #e0b45a; --err: #e08a80;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(32px, 6vw, 48px); } h2 { font-size: clamp(24px, 4vw, 32px); } h3 { font-size: 20px; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 460px; padding-block: 48px; }
main.wrap { padding-block: 24px 64px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }

/* en-tête */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 10px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.search { display: flex; flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.search-input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); padding: 0 14px; height: 44px; font: inherit; }
.search-input:focus-visible { outline-offset: -2px; }
.pro-link { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 12px 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a.on, .nav a:hover { color: var(--text); border-bottom-color: var(--gold); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; }
.foot { border-top: 1px solid var(--line); padding-block: 32px; margin-top: 48px; } .foot-title { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }

/* accueil */
.hero { padding: clamp(40px, 9vw, 110px) 0 clamp(32px, 6vw, 70px); }
.hero h1 { font-size: clamp(40px, 9vw, 84px); max-width: 12ch; font-style: italic; margin-bottom: 28px; }
.genders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 48px; }
.gender { padding: 22px 8px; text-align: center; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.gender + .gender { border-left: 1px solid var(--line); } .gender:hover { color: var(--gold); }
section { margin-bottom: 48px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.more { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); min-height: 44px; display: inline-flex; align-items: center; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 8px 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.brand-tile:hover { border-color: var(--gold); color: var(--gold); }

/* cartes produit */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; min-width: 0; }
.card-img { aspect-ratio: 4 / 5; background: var(--surface); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 12px; color: var(--gold); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; left: 10px; top: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); background: rgba(10,10,11,.8); padding: 4px 8px; }
.card-brand { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card-name { font-family: var(--serif); font-size: 20px; line-height: 1.15; margin: 2px 0 4px; overflow-wrap: anywhere; }
.card-price { color: var(--gold); font-size: 14px; }
.watch-art { color: var(--gold); }

/* catalogue */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: thin; }
.chip { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); } .chip:not(.on):hover { border-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; flex: 1 1 140px; min-width: 0; }
.count { margin-bottom: 20px; } .more-row { text-align: center; margin-top: 32px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* fiche produit */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 13px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 860px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.stage { aspect-ratio: 1; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--gold); overflow: hidden; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; background: var(--surface); border: 1px solid var(--line); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb:hover, .thumb:focus-visible { border-color: var(--gold); }
.price { font-size: 26px; color: var(--gold); margin: 12px 0 4px; } .stock { color: var(--ok); font-size: 13px; letter-spacing: .06em; } .stock.low { color: var(--warn); }
.desc { color: #d6d1c6; margin-top: 20px; white-space: pre-line; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin-top: 20px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }

/* formulaires et boutons */
.input, select.input, textarea.input { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); min-height: 44px; padding: 8px 12px; font: inherit; border-radius: 0; }
textarea.input { resize: vertical; } .input[readonly] { opacity: .65; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 4px; } label.check { display: inline-flex; margin: 0; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: transparent; color: var(--text); border: 1px solid var(--muted); font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn.gold, .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); } .btn.gold:hover:not(:disabled), .btn.primary:hover:not(:disabled) { background: #d8ba7d; color: var(--gold-ink); }
.btn.danger { border-color: var(--err); color: var(--err); } .btn.small { min-height: 36px; padding: 0 12px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; } .btn.is-busy { opacity: .7; }
.form-error { color: var(--err); min-height: 1.4em; margin: 10px 0 0; } .login { display: flex; flex-direction: column; }
.login .btn { margin-top: 16px; }

/* administration */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 900px) { .admin { grid-template-columns: 240px minmax(0, 1fr); } }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .side { position: sticky; top: 0; height: 100vh; } }
.side .logo { font-size: 18px; margin-bottom: 16px; display: block; }
.side a:not(.logo) { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); border-left: 2px solid transparent; font-size: 14px; }
.side a.on, .side a:not(.logo):hover { color: var(--text); border-left-color: var(--gold); background: var(--surface-2); }
.side-foot { margin-top: auto; padding-top: 16px; } .side-foot p { margin: 0 0 4px; overflow-wrap: anywhere; }
.admin-main { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
@media (min-width: 900px) { .admin-main { padding-inline: 32px; } }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; } .table th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--muted); padding: 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; } .table td.warn { color: var(--warn); }
.pill { display: inline-block; padding: 2px 10px; font-size: 12px; border: 1px solid var(--line); } .pill.ok { color: var(--ok); border-color: #2c4a3a; } .pill.off { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
a.stat:hover { border-color: var(--gold); } .stat-n { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--gold); } .stat-l { font-size: 13px; color: var(--muted); }
.stat.warn .stat-n { color: var(--warn); }
.notice { padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); margin: 16px 0; } .notice p { margin: 0 0 8px; } .notice.warn { border-color: var(--warn); } .notice.err { border-color: var(--err); } .notice.ok { border-color: var(--ok); }
.dropzone { border: 1px dashed var(--muted); padding: 32px 16px; text-align: center; margin: 16px 0; } .dropzone input { position: absolute; left: -9999px; }
details { margin: 12px 0; } summary { cursor: pointer; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.confirm { margin-top: 24px; max-width: 420px; } .row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.media-box { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; } .media-list { list-style: none; padding: 0; margin: 0 0 12px; }
.media-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.media-add { display: grid; gap: 8px; }

/* fenêtres, messages */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--line); width: 100%; max-width: 480px; } .modal.wide { max-width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); } .modal-head h2 { margin: 0; font-size: 22px; }
.modal-body { padding: 8px 20px 20px; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.toasts { position: fixed; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(92vw, 420px); }
.toast { background: var(--surface-2); border: 1px solid var(--ok); padding: 12px 16px; } .toast.err { border-color: var(--err); }
.loading { display: flex; align-items: center; gap: 12px; padding: 40px 16px; color: var(--muted); justify-content: center; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { border: 1px solid var(--err); padding: 16px; margin: 16px 0; } .empty { text-align: center; padding: 48px 16px; } .empty-title { font-family: var(--serif); font-size: 26px; margin: 0 0 8px; max-width: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.admin-main h2 { margin-top: 36px; }
.admin-main > h1 { margin-bottom: 16px; }

/* ---- photos (administration) ---- */
.queue-card { border: 1px solid var(--line); background: var(--surface); padding: 20px; display: grid; gap: 14px; max-width: 640px; }
.queue-card h2 { font-size: 30px; margin: 0; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.paste-zone { border: 1px dashed var(--line); background: var(--surface-2); color: var(--muted); padding: 22px 12px; text-align: center; font-size: 14px; min-height: 64px; outline: none; }
.paste-zone:focus { border-color: var(--gold); }
.photo-preview { background: #fff; display: grid; place-items: center; max-height: 340px; overflow: hidden; }
.photo-preview img { max-width: 100%; max-height: 340px; object-fit: contain; }
.file-btn { cursor: pointer; display: inline-block; }
.table tr.st-erreur td:last-child, .table tr.st-inconnu td:last-child { color: var(--err); } .table tr.st-envoye td:last-child { color: var(--ok); } .table tr.st-ignore td { color: var(--muted); }
