/* ===== Thème ===== */
:root {
  /* Palette du logo Kabir Tech : bleu nuit, cyan néon et blanc.
     Les variables --gold* gardent leur nom mais contiennent désormais le cyan du logo. */
  --black: #070c2a;
  --night: #13205e;
  --gold: #5ee1ee;
  --gold-light: #a5f0f7;
  --gold-dark: #0b7285;
  --gold-soft: #e2f8fb;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #111318;
  --muted: #5f636d;
  --border: #dfe4ee;
  --primary: var(--night);
  --primary-dark: #0a1140;
  --primary-soft: #e9ecfb;
  --accent: var(--black);
  --saffron: var(--gold);
  --saffron-soft: var(--gold-soft);
  --terracotta: var(--gold-dark);
  --terracotta-soft: #ececef;
  --success: #12805c;
  --success-soft: #e3f5ee;
  --warn: #9a5b00;
  --warn-soft: #fff2dc;
  --danger: #c0392b;
  --danger-soft: #fde8e6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(7, 12, 42, .05), 0 4px 14px rgba(7, 12, 42, .05);
  --shadow-lg: 0 14px 40px rgba(7, 12, 42, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 32px; padding-bottom: 32px; }
.section-title { font-size: 1.35rem; margin-bottom: 16px; }
:focus-visible { outline: 3px solid rgba(31, 94, 255, .45); outline-offset: 2px; }

/* ===== Boutons et formulaires ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.btn-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.btn-light:hover { background: rgba(255, 255, 255, .25); border-color: #fff; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #f1c2c7; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-small { padding: 6px 12px; font-size: .875rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; }

input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 94, 255, .15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
input[type=range] { padding: 0; border: 0; accent-color: var(--primary); }
input[type=file] { padding: 8px; background: var(--surface-2); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > legend { font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.danger-text { color: var(--danger); }

/* ===== En-tête de la vitrine ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #6c47ff); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: none; }
.brand-mark-lg { width: 88px; height: 88px; font-size: 2.4rem; border-radius: 18px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-search { flex: 1; display: flex; max-width: 460px; margin-left: auto; }
.header-search input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.header-search button { border: 1px solid var(--primary); background: var(--primary); color: #fff; padding: 0 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; }
.main-nav { border-top: 1px solid var(--border); }
.main-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a { padding: 12px 14px; color: var(--text); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.main-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer; flex: none; position: relative; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--text); position: absolute; left: 10px; }
.bars { top: 19px; }
.bars::before, .bars::after { content: ""; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

/* ===== Hero et catégories ===== */
.hero { background: radial-gradient(circle at 85% 20%, rgba(108, 71, 255, .5), transparent 45%), linear-gradient(135deg, #0f172a 0%, #1b2f6b 60%, #1f5eff 100%); color: #fff; }
.hero-inner { padding-top: 64px; padding-bottom: 64px; max-width: 1200px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.hero .lead { font-size: 1.2rem; opacity: .95; margin-bottom: .6em; }
.hero-about { max-width: 640px; opacity: .8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0 20px; }
.page-head h1 { margin-bottom: .2em; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; border-top: 4px solid var(--primary); }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card strong { font-size: 1.15rem; }
.cat-card span { color: var(--muted); font-size: .92rem; }
.cat-card em { font-style: normal; font-weight: 600; color: var(--primary); font-size: .875rem; margin-top: auto; }
.cat-vetements { border-top-color: #d6456b; }
.cat-vetements em { color: #b8325a; }
.cat-accessoires { border-top-color: #12805c; }
.cat-accessoires em { color: var(--success); }

/* ===== Catalogue ===== */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 130px; }
.filters summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "▾"; color: var(--muted); }
.filters[open] summary { border-bottom: 1px solid var(--border); }
.filters-form { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.filters-actions { display: flex; gap: 8px; }
.filters-actions .btn { flex: 1; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.card-title { font-size: 1.02rem; margin: 0; }
.card-title a { color: var(--text); }
.card-desc { color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--accent); }
.price-lg { font-size: 1.8rem; margin: 6px 0 10px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge-inline { position: static; display: inline-block; }
.badge-in { background: var(--success-soft); color: var(--success); }
.badge-low { background: var(--warn-soft); color: var(--warn); }
.badge-out { background: var(--danger-soft); color: var(--danger); }
.empty { text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 20px; }

/* ===== Fiche article ===== */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.gallery-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 74px; height: 74px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }
.description { margin: 18px 0 24px; color: #344052; }
.order-box { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.order-box h2 { font-size: 1.05rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-mini h2 { font-size: 1rem; }
.pay-mini ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-mini li { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: .88rem; }
.pay-mini .pay-icon { width: 28px; height: 28px; }
.pay-mini .pay-icon svg { width: 16px; height: 16px; }

/* ===== Paiement ===== */
.pay-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.pay-especes { background: var(--success-soft); color: var(--success); }
.pay-mobile { background: #f3e8ff; color: #7a3ad8; }
.pay-virement { background: #e6f4ff; color: #0b6bb3; }
.pay-livraison { background: var(--warn-soft); color: var(--warn); }
.pay-cheque, .pay-autre { background: var(--surface-2); color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pay-card { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.pay-card h2 { font-size: 1.08rem; margin-bottom: 4px; }
.pay-card p { margin: 0; }
.note { margin-top: 24px; padding: 16px 20px; background: var(--surface); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; }
.contact-card { padding: 24px; }
.info-list { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.info-list dt { font-weight: 700; color: var(--muted); font-size: .88rem; }
.info-list dd { margin: 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); min-height: 420px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ===== Pied de page ===== */
.site-footer { background: var(--accent); color: #cbd5e1; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer .muted { color: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 20px; font-size: .85rem; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); padding: 3px 10px; border-radius: 999px; font-size: .82rem; }

/* ===== Administration ===== */
.admin-body { background: #f3f5f8; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side { background: var(--accent); color: #cbd5e1; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; }
.admin-brand div { display: flex; flex-direction: column; min-width: 0; }
.admin-brand strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-brand small { color: #94a3b8; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { color: #cbd5e1; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.admin-side nav a.active { background: var(--primary); color: #fff; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-side-foot a, .admin-side-foot .linklike { color: #cbd5e1; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-topbar h1 { font-size: 1.35rem; margin: 0; }
.admin-user { margin-left: auto; font-size: .9rem; }
.admin-content { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1200px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--primary); }
.stat span { color: var(--muted); font-size: .88rem; }
.stat strong { font-size: 1.6rem; }
.stat-warn { border-left-color: #e5a100; }
.stat-danger { border-left-color: var(--danger); }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat-bars, .alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cat-bars a { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); color: var(--text); }
.alert-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.alert-list li:last-child { border-bottom: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-grid a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.quick-grid a:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.quick-grid span { color: var(--muted); font-size: .85rem; }

.alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; transition: opacity .6s; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.alert-success { background: var(--success-soft); border-color: #a8dcc7; color: #0b5e43; }
.alert-error { background: var(--danger-soft); border-color: #f1b7bd; color: #9b1f2a; }
.alert.fade { opacity: .55; }
.alert-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; }

.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar-form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.toolbar-form input { max-width: 280px; }
.toolbar-form select { max-width: 220px; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); padding: 10px 14px; }
.table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid h2 { margin: 0; }
.form-grid.narrow { max-width: 720px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio-card span { display: flex; flex-direction: column; }
.radio-card small { color: var(--muted); }
.radio-card input { margin-top: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-grid.preview:empty { display: none; }
.photo-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; background: var(--surface); }
.photo-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.photo-item label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.photo-item small { overflow-wrap: anywhere; }
.logo-field { display: flex; gap: 20px; align-items: flex-start; }
.logo-preview img { width: 88px; height: 88px; object-fit: contain; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2); }

.pay-admin-list { display: flex; flex-direction: column; gap: 14px; }
.pay-admin { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; }
.pay-admin.is-off { opacity: .7; background: #fafbfc; }
.pay-admin-fields { display: flex; flex-direction: column; gap: 12px; }
.pay-admin-actions { display: flex; flex-direction: column; gap: 6px; }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.loc-grid { grid-template-columns: 420px 1fr; align-items: start; }
.map-admin { min-height: 380px; margin-bottom: 10px; }
.map-admin iframe { min-height: 380px; }

/* ===== Connexion ===== */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, #1b2f6b, #0f172a 60%); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 1.5rem; margin: 0; }
.auth-brand { padding: 0; }
.auth-brand strong { color: var(--text); }
.auth-brand small { color: var(--muted); }
.auth-foot { text-align: center; margin: 4px 0 0; font-size: .9rem; }

/* ===== Adaptation tablettes ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .admin-nav-open .admin-side { transform: none; }
  .admin-menu-toggle { display: inline-block; }
  .admin-topbar { padding: 14px 16px; position: sticky; top: 0; z-index: 10; }
  .admin-content { padding: 16px 16px 32px; }
  .admin-user { display: none; }
}
/* ===== Adaptation téléphones ===== */
@media (max-width: 680px) {
  .header-row { flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .main-nav { display: none; }
  .nav-open .main-nav { display: block; }
  .main-nav .container { flex-direction: column; padding-bottom: 8px; }
  .main-nav a { border-bottom: 0; border-left: 3px solid transparent; }
  .main-nav a.active { border-left-color: var(--primary); }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-desc { display: none; }
  .card-body { padding: 10px 12px 12px; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .card-foot .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pay-admin { grid-template-columns: 1fr; }
  .pay-admin-actions { flex-direction: row; flex-wrap: wrap; }
  .logo-field { flex-direction: column; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 14px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; }
  .table td { border: 0; padding: 0; }
  .table td[data-label="Photo"] { grid-row: span 4; }
  .table td[data-label="Catégorie"], .table td[data-label="Prix"], .table td[data-label="Stock"] { font-size: .9rem; }
  .table td[data-label="Prix"]::before { content: "Prix : "; color: var(--muted); }
  .table td[data-label="Stock"]::before { content: "Stock : "; color: var(--muted); }
  .table .actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .stat-grid, .quick-grid { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.25rem; }
}
@media (max-width: 340px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ===== Livraison ===== */
.zone-admin { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.zone-admin.is-off { opacity: .7; background: #fafbfc; }
.zone-switches { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.zone-table td:nth-child(2), .zone-table th:nth-child(2) { white-space: nowrap; }
.zone-table .fee { font-weight: 700; }
.cod-yes { color: var(--success); font-weight: 600; }
.cod-no { color: var(--muted); }
.delivery-mini { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.delivery-mini h2 { font-size: 1rem; margin-bottom: 6px; }
.delivery-mini p { margin: 0 0 6px; }
.pay-wave { background: #e0f4ff; color: #0a7fc2; }
.pay-orange { background: #fff1e5; color: #e25c00; }
.pay-mixx { background: #fff8d6; color: #8a6d00; }
@media (max-width: 680px) {
  .zone-admin { grid-template-columns: 1fr; }
  .zone-admin .pay-admin-actions { flex-direction: row; flex-wrap: wrap; }
  .zone-table thead { display: none; }
  .zone-table, .zone-table tbody, .zone-table tr, .zone-table td { display: block; width: 100%; }
  .zone-table tr { padding: 12px 14px; border-top: 1px solid var(--border); }
  .zone-table td { border: 0; padding: 2px 0; white-space: normal !important; }
  .zone-table td[data-label]::before { content: attr(data-label) " : "; color: var(--muted); }
}

/* ===== Fourchette de prix ===== */
.price-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.price-box > small { margin-top: 2px; }
.price-note { margin: -4px 0 10px; font-size: .92rem; }
@media (max-width: 680px) { .price-row { grid-template-columns: 1fr; } }
