/* ============================================================
   POTE'L LAKAY : feuille de style
   Fond gris sombre d'origine, accent blanc décliné en nuances
   (blanc pur, blanc cassé, gris perle, voiles transparents).
   Coins : 3 rayons seulement, choisis selon la taille du bloc.
   ============================================================ */

:root {
  /* Fonds (inchangés) */
  --bg-0: #1e2124;      /* header, sidebar, champs */
  --bg-1: #282b30;      /* fond de page */
  --bg-2: #313338;      /* cartes, panneaux */
  --bg-3: #3a3d43;      /* survol */
  --bg-4: #4a4e55;      /* bordures actives */

  /* Accent blanc et ses nuances */
  --white:      #ffffff;
  --white-soft: #f1f2f4;   /* survol d'un bouton blanc */
  --white-mute: #dfe1e5;   /* bouton blanc pressé */
  --pearl:      #b4b8bf;   /* blanc grisé pour les icônes secondaires */
  --veil-1: rgba(255,255,255,.04);
  --veil-2: rgba(255,255,255,.07);
  --veil-3: rgba(255,255,255,.12);
  --veil-4: rgba(255,255,255,.22);
  --ink: #1e2124;          /* texte posé sur du blanc */

  --accent:     var(--white);
  --accent-lit: var(--white-soft);

  /* Couleurs d'état */
  --success: #3ba55c;
  --danger:  #ed4245;
  --warning: #e8a33d;
  --info:    #7b86f5;

  /* Texte */
  --text-0: #ffffff;
  --text-1: #dcddde;
  --text-2: #b9bbbe;
  --text-3: #8b8f97;

  --border:        var(--veil-2);
  --border-strong: var(--veil-3);

  /* Rayons : petit (champs, boutons, puces), moyen (cartes), grand (panneaux) */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Espacements */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;

  /* Typographie : échelle 1.25 */
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: 1.953rem;
  --fs-hero: clamp(2.3rem, 5.2vw, 3.9rem);

  --shadow-pop: 0 18px 44px rgba(0,0,0,.45), 0 0 0 1px var(--veil-1);
  --ease: cubic-bezier(.3,.7,.4,1);
  --transition: .15s var(--ease);
  --transition-slow: .24s var(--ease);

  --page-max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --header-gap: 12px;
  --sticky-top: calc(var(--header-h) + var(--header-gap) + 16px);
  --sidebar-w: 236px;
  --content-max: 1100px;
}

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

html {
  scroll-behavior: smooth; font-size: 16px;
  scrollbar-color: var(--bg-4) transparent; scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-0); line-height: 1.15; text-wrap: balance; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

::selection { background: var(--white); color: var(--ink); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: var(--r-sm); }

a { color: var(--text-0); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white-mute); }
p a, .form-hint a, .buybox-security a, .auth-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--veil-4); }
p a:hover, .buybox-security a:hover, .auth-footer a:hover { text-decoration-color: var(--white); }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ── ICÔNES (Lucide en trait, Phosphor en duotone) ── */
.ico { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.ico-sm { width: 15px; height: 15px; vertical-align: -2px; }
.ico-lg { width: 26px; height: 26px; }
.ico-xl { width: 40px; height: 40px; }

/* ── CONTAINERS ── */
.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }
.container-form { max-width: 620px; }
.section { padding-block: var(--s-7); }
.section-tight { padding-block: var(--s-5); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section-title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s-5); }
.section-head .section-title { margin: 0; }
.section-lead { color: var(--text-2); max-width: 60ch; margin-top: calc(var(--s-4) * -1); margin-bottom: var(--s-5); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); }
.link-more:hover { color: var(--white); }

/* ── HEADER flottant ── */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: var(--header-gap); }
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: var(--header-h); padding: 0 10px 0 16px;
  background: rgba(30, 33, 36, .7);
  border: 1px solid var(--veil-2);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,.32), inset 0 1px 0 var(--veil-1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background var(--transition-slow);
}
.site-header .container { padding-inline: calc(var(--gutter) - 8px); }
.site-header.is-scrolled .header-row { background: rgba(24, 26, 29, .88); }
.logo {
  display: flex; align-items: center; gap: 10px; color: var(--text-0);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; flex-shrink: 0;
}
.logo:hover { color: var(--text-0); }
.logo-icon { width: 34px; height: 34px; object-fit: contain; border-radius: var(--r-sm); flex-shrink: 0; }

.main-nav { display: flex; gap: 2px; justify-content: center; flex: 1; min-width: 0; }
.nav-link {
  color: var(--text-2); padding: 8px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.is-active { color: var(--text-0); background: var(--veil-2); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--text-1); border: 1px solid var(--border); border-radius: var(--r-pill);
  background: transparent; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--veil-2); border-color: var(--border-strong); color: var(--text-0); }
.icon-btn:active, .btn:active { transform: scale(.97); }

.badge {
  background: var(--white); color: var(--ink); border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle .badge { position: absolute; top: -5px; right: -5px; border: 2px solid var(--bg-0); }

/* Menu unique (compte + navigation sur mobile) */
.menu-wrap { position: relative; }
.menu-panel {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 8px; z-index: 150;
}
.menu-panel.is-open { display: block; animation: nav-drop .16s var(--ease); }
.menu-account { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-account-role { font-size: var(--fs-xs); color: var(--text-3); }
.menu-account-name { font-size: .95rem; color: var(--text-0); font-weight: 600; }
.menu-sitenav { display: none; flex-direction: column; }
.menu-nav-sep { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border-radius: var(--r-sm); color: var(--text-1);
  font-size: var(--fs-sm); font-weight: 500; background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font-body);
}
.menu-item:hover { background: var(--veil-2); color: var(--text-0); }
.menu-item .ico { color: var(--pearl); }
.menu-item span { flex: 1; }
.menu-item-danger { color: #f3a5a7; }
.menu-item-danger .ico { color: currentColor; }
.menu-item-danger:hover { background: rgba(237,66,69,.14); color: #ff8e90; }
.menu-item-accent { background: var(--white); color: var(--ink); margin-top: 4px; }
.menu-item-accent .ico { color: var(--ink); }
.menu-item-accent:hover { background: var(--white-soft); color: var(--ink); }
.menu-item-expand .chevron { transition: transform var(--transition); }
.menu-item-expand[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.menu-submenu { max-height: 0; overflow: hidden; display: flex; flex-direction: column; transition: max-height var(--transition-slow); }
.menu-submenu.is-open { max-height: 160px; }
.menu-subitem { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 40px; border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-sm); }
.menu-subitem:hover { background: var(--veil-2); color: var(--text-0); }
.menu-subitem.is-active { color: var(--text-0); font-weight: 600; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 2px; }

/* ── BOUTONS ── */
.btn, .btn-primary, .btn-ghost, .btn-danger, .btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); cursor: pointer; font-weight: 600; font-family: var(--font-body);
  font-size: var(--fs-sm); padding: 10px 18px; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--white-soft); color: var(--ink); }
.btn-primary:active { background: var(--white-mute); }
.btn-ghost { background: var(--veil-2); color: var(--text-1); border-color: var(--veil-2); }
.btn-ghost:hover { background: var(--veil-3); color: var(--text-0); }
.btn-danger { background: rgba(237,66,69,.14); color: #ff9a9c; border-color: rgba(237,66,69,.3); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #2f9150; color: #fff; }
.btn-primary:active, .btn-ghost:active, .btn-danger:active, .btn-success:active { transform: scale(.97); }
button:disabled { opacity: .55; cursor: not-allowed; }

.btn-sm { padding: 7px 13px; font-size: var(--fs-xs); }
.btn-lg { padding: 13px 24px; font-size: .95rem; }
.btn-full { width: 100%; }

/* ── FLASH / TOAST ── */
.flash {
  display: flex; align-items: center; gap: 10px;
  max-width: min(560px, calc(100% - 2 * var(--gutter))); margin: var(--s-4) auto 0;
  padding: 11px 16px; border-radius: var(--r-sm); font-weight: 500; font-size: var(--fs-sm);
  border: 1px solid;
}
.flash-success { background: rgba(59,165,92,.13); border-color: rgba(59,165,92,.38); color: #8fdcaa; }
.flash-error   { background: rgba(237,66,69,.13); border-color: rgba(237,66,69,.38); color: #f7a9ab; }
.flash-warning { background: rgba(232,163,61,.13); border-color: rgba(232,163,61,.38); color: #f3cd8f; }
.flash-info    { background: var(--veil-2); border-color: var(--veil-3); color: var(--text-1); }
.auth-card .flash, .dashboard-main .flash, .card .flash { max-width: none; margin: 0 0 var(--s-4); }
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; min-width: 260px; margin: 0; box-shadow: var(--shadow-pop); }

/* ── BARRE DE CHARGEMENT ── */
.loading-bar { position: relative; height: 2px; width: 100%; overflow: hidden; z-index: 90; }
.loading-bar-fill { display: none; }
.loading-bar.active .loading-bar-fill {
  display: block; position: absolute; top: 0; left: -35%; height: 100%; width: 35%;
  background: linear-gradient(90deg, transparent, var(--white) 50%, transparent);
  animation: loading-bar-sweep 1.05s ease-in-out infinite;
}
@keyframes loading-bar-sweep { to { left: 100%; } }

/* ── CARTES ── */
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.card-body { padding: var(--s-5); }
.card-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 650; color: var(--text-0); }
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }

/* ── HOME : HERO ── */
.hero { padding-block: var(--s-7) var(--s-6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-7); align-items: center; }
.hero-place { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; margin-bottom: var(--s-4); }
.hero-place .ico { color: var(--pearl); }
.hero-title {
  font-size: var(--fs-hero); font-weight: 760; letter-spacing: -.028em; line-height: 1.02;
  margin-bottom: var(--s-4); max-width: 13ch;
  font-variation-settings: "opsz" 96;
}
.hero-sub { font-size: 1.075rem; color: var(--text-2); max-width: 46ch; margin-bottom: var(--s-5); }
.hero-search {
  display: flex; align-items: center; gap: 6px; max-width: 520px;
  background: var(--bg-0); border: 1px solid var(--veil-3); border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px; transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-search:focus-within { border-color: var(--veil-4); box-shadow: 0 0 0 4px var(--veil-1); }
.hero-search .ico { color: var(--text-3); }
.hero-search input[type=text] { border: 0; background: transparent; padding: 8px 4px; box-shadow: none; }
.hero-search input[type=text]:focus { box-shadow: none; }

/* Carte de vérification : l'élément signature du site */
.trust-card {
  position: relative; background: var(--bg-2); border: 1px solid var(--veil-3);
  border-radius: var(--r-lg); padding: var(--s-6);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.trust-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 100% 0%, var(--veil-2), transparent 60%);
}
.trust-seal { color: var(--white); margin-bottom: var(--s-4); }
.trust-seal .ico { width: 48px; height: 48px; }
.trust-card h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s-2); }
.trust-card > p { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.verify-form { display: flex; gap: 8px; }
.verify-form input { flex: 1; min-width: 0; }
.trust-legend { list-style: none; display: grid; gap: 8px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.trust-legend li { display: flex; gap: 10px; align-items: center; }
.tone-ok { color: var(--success); }
.tone-warn { color: var(--warning); }
.tone-bad { color: var(--danger); }

/* Étapes (vraie séquence, donc numérotées) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: var(--s-5); background: var(--veil-1); border: 1px solid var(--border); border-radius: var(--r-md); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: var(--s-3);
  border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-weight: 700; font-size: var(--fs-sm);
}
.steps h3 { font-size: var(--fs-md); font-weight: 650; margin-bottom: 4px; }
.steps p { font-size: var(--fs-sm); color: var(--text-2); }

/* Catégories en tuiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text-1); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--transition), border-color var(--transition);
}
.cat-tile .ico { width: 28px; height: 28px; color: var(--white); }
.cat-tile:hover { background: var(--bg-3); border-color: var(--border-strong); color: var(--text-0); }

/* ── CARTE ARTICLE (composant unique) ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s-4); }
.article-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 8px; transition: border-color var(--transition-slow), background var(--transition-slow);
}
.article-card:hover { border-color: var(--border-strong); background: #34363b; }
.article-img-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: calc(var(--r-md) - 6px); padding: 14px; aspect-ratio: 4 / 3; overflow: hidden;
}
.article-img { width: 100%; height: 100%; object-fit: contain; }
.article-img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa0a8; }
.article-img-wrap.image-unavailable, .article-img-wrap.is-empty { background: var(--bg-3); }
.article-card .card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 8px 6px; }
.article-card .card-title {
  font-family: var(--font-body); font-size: .97rem; font-weight: 600; line-height: 1.35; color: var(--text-0);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.article-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-0); letter-spacing: -.01em; margin-top: 2px; }
.article-price small { font-size: .7em; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.article-price-final { font-size: var(--fs-xs); color: var(--text-3); }
.article-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-2); margin-top: 6px; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.article-foot .btn-primary, .article-foot .btn-ghost { position: relative; z-index: 1; }
.article-stock { font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.stock-ok   { color: var(--text-3); font-weight: 500; }
.stock-low  { color: var(--warning); }
.stock-none { color: var(--danger); }
.article-pl-id { font-size: .7rem; color: var(--text-3); letter-spacing: .02em; }
.article-badge-pending, .badge-verified {
  display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; padding: 3px 9px 3px 6px;
}
.article-badge-pending { background: rgba(232,163,61,.14); color: var(--warning); }
.badge-verified { background: var(--veil-2); color: var(--text-0); }
.badge-verified .ico { width: 15px; height: 15px; color: var(--white); }
.seller-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.delivered-count { font-size: var(--fs-xs); color: var(--text-3); }

/* ── PAGE PRODUIT ── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--s-5); }
.breadcrumb-item { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill); background: var(--veil-1); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
a.breadcrumb-item:hover { background: var(--veil-2); color: var(--text-0); }
.breadcrumb-item.is-current { background: transparent; border-color: transparent; color: var(--text-0); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-sep { display: inline-flex; color: var(--text-3); }
.breadcrumb-sep .ico { width: 14px; height: 14px; }
.product-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) 320px; gap: var(--s-6); align-items: start; }
.product-gallery { position: sticky; top: var(--sticky-top); }
.product-main-img { background: #fff; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; padding: 22px; height: 380px; cursor: zoom-in; }
.product-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-main-img.image-unavailable { background: var(--bg-3); cursor: default; }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 2px; }
.product-thumbs img { width: 60px; height: 60px; object-fit: contain; background: #fff; flex-shrink: 0; border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer; padding: 4px; scroll-snap-align: start; transition: border-color var(--transition); }
.product-thumbs img:hover, .product-thumbs img.active { border-color: var(--white); }
.product-info h1 { font-size: var(--fs-2xl); font-weight: 720; letter-spacing: -.015em; margin-bottom: var(--s-2); }
.product-pl-id { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--s-4); display: flex; gap: 10px; flex-wrap: wrap; }
.product-pl-id strong { color: var(--text-2); letter-spacing: .03em; font-weight: 600; }
.product-seller-line { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-5); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-seller-line a { color: var(--text-0); font-weight: 600; }
.product-desc { color: var(--text-1); line-height: 1.75; margin-bottom: var(--s-5); max-width: 68ch; }
.product-specs table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.product-specs td { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-1); }
.product-specs td:first-child { color: var(--text-3); width: 40%; }
.product-specs tr:hover td { background: none; }
.buybox { background: var(--bg-2); border: 1px solid var(--veil-3); border-radius: var(--r-lg); padding: var(--s-5); position: sticky; top: var(--sticky-top); }
.buybox .article-price { font-size: 2rem; }
.buybox-total { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-4); }
.buybox-total strong { color: var(--text-0); }
.buybox-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); padding: 8px 0; border-top: 1px solid var(--border); }
.buybox-row span:last-child { color: var(--text-1); text-align: right; }
.buybox-security { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--s-4); line-height: 1.5; }
.buybox-security .ico { color: var(--success); width: 20px; height: 20px; }
.qty-group { display: flex; align-items: center; gap: 6px; margin: var(--s-4) 0; }
.qty-group input[type=number] { width: 64px; text-align: center; }
.qty-group .btn-ghost { width: 38px; height: 38px; padding: 0; }

/* Visionneuse */
.image-lightbox { position: fixed; inset: 0; background: rgba(12,13,15,.92); display: flex; align-items: center; justify-content: center; z-index: 300; opacity: 0; pointer-events: none; transition: opacity .2s; padding: 24px; }
.image-lightbox.open { opacity: 1; pointer-events: all; }
.image-lightbox img { max-width: min(90vw, 900px); max-height: 86vh; object-fit: contain; border-radius: var(--r-lg); background: #fff; transform: scale(.96); transition: transform .2s; }
.image-lightbox.open img { transform: scale(1); }
.image-lightbox-close { position: absolute; top: 18px; right: 18px; }

/* ── ONGLETS / PASTILLES DE FILTRE ── */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.tab-btn {
  background: var(--veil-1); color: var(--text-2); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 16px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: background var(--transition), color var(--transition);
}
.tab-btn:hover { background: var(--veil-2); color: var(--text-0); }
.tab-btn.active { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ── CATALOGUE : barre de recherche ── */
.search-bar { display: flex; gap: 10px; margin-bottom: var(--s-5); flex-wrap: wrap; }
.search-bar .search-field { flex: 1; min-width: 200px; position: relative; }
.search-bar .search-field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-bar .search-field input { padding-left: 42px; }
.sort-select { width: auto; min-width: 170px; }

/* ── FORMULAIRES ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--white); flex-shrink: 0; }
.form-check label { margin: 0; cursor: pointer; color: var(--text-1); }
label { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
input[type=text], input[type=password], input[type=email],
input[type=number], input[type=tel], input[type=url], input[type=file], select, textarea {
  background: var(--bg-0); border: 1px solid var(--veil-3); border-radius: var(--r-sm);
  color: var(--text-0); padding: 11px 14px; font-size: .95rem; font-family: var(--font-body);
  width: 100%; transition: border-color var(--transition), box-shadow var(--transition);
}
input[type=radio], input[type=checkbox] { accent-color: var(--white); }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--veil-4); box-shadow: 0 0 0 4px var(--veil-1); }
input:disabled { color: var(--text-3); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; min-height: 100px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 7px; display: flex; color: var(--text-3); border-radius: var(--r-sm); }
.pw-toggle:hover { color: var(--text-0); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.is-visible .eye-on { display: none; }
.pw-toggle.is-visible .eye-off { display: block; }
.form-hint  { font-size: var(--fs-xs); color: var(--text-3); }
.media-links-wrap { display: flex; flex-direction: column; gap: 8px; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; color: var(--text-1); }
.choice:has(input:checked) { border-color: var(--veil-4); background: var(--veil-1); }
.img-preview { max-height: 140px; border-radius: var(--r-sm); margin-top: 8px; }

/* ── CONNEXION / INSCRIPTION ── */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: flex; align-items: center; justify-content: center; padding: var(--s-6) var(--gutter); }
.auth-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); width: 100%; max-width: 420px; }
.auth-card-wide { max-width: 500px; }
.auth-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-0); letter-spacing: -.01em; margin-bottom: 4px; }
.auth-sub { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.auth-footer { text-align: center; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.captcha-row { margin-bottom: 18px; }

/* Widget ALTCHA aux couleurs du site */
altcha-widget {
  --altcha-max-width: 100%;
  --altcha-border-width: 1px;
  --altcha-border-radius: var(--r-sm);
  --altcha-border-color: var(--veil-3);
  --altcha-color-base: var(--bg-0);
  --altcha-color-base-content: var(--text-1);
  --altcha-color-primary: var(--white);
  --altcha-color-primary-content: var(--ink);
  --altcha-color-success: var(--success);
  --altcha-color-error: var(--danger);
  --altcha-color-neutral: var(--bg-3);
  --altcha-color-neutral-content: var(--text-2);
  --altcha-checkbox-border-color: var(--veil-4);
  --altcha-checkbox-border-radius: 6px;
  --altcha-spinner-color: var(--white);
  --altcha-input-background-color: var(--bg-0);
  --altcha-input-color: var(--text-0);
  --altcha-shadow: none;
  display: block;
}

/* ── DASHBOARD ── */
.dashboard-layout { display: flex; gap: var(--s-5); width: 100%; max-width: calc(var(--page-max) + 120px); margin: 0 auto; padding: var(--s-5) var(--gutter) var(--s-7); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; align-self: flex-start;
  position: sticky; top: var(--sticky-top); max-height: calc(100vh - var(--sticky-top) - 16px); overflow-y: auto;
  background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px;
}
.sidebar-user { padding: 12px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.sidebar-user small { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.sidebar-user strong { color: var(--text-0); font-weight: 600; }
.sidebar-sep { height: 1px; background: var(--border); margin: 8px 4px; }
.sidebar-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); padding: 8px 12px 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0;
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-sm);
  transition: background var(--transition), color var(--transition);
}
.sidebar-link .ico { color: var(--pearl); }
.sidebar-link:hover { background: var(--veil-2); color: var(--text-0); }
.sidebar-link.active { background: var(--white); color: var(--ink); font-weight: 600; }
.sidebar-link.active .ico { color: var(--ink); }
.sidebar-link .badge { margin-left: auto; }
.sidebar-link.is-danger { color: #f3a5a7; }
.sidebar-link.is-danger .ico { color: currentColor; }
.dashboard-main { flex: 1; min-width: 0; }
.dashboard-main > * { max-width: var(--content-max); }
.dash-title { font-size: var(--fs-2xl); font-weight: 720; letter-spacing: -.015em; margin-bottom: var(--s-5); }
.dash-subtitle { font-size: var(--fs-lg); font-weight: 650; margin: var(--s-6) 0 var(--s-4); }

.welcome-panel { background: var(--veil-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-5); }
.welcome-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 4px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-6); }
.stat-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: 4px; }
.stat-icon { color: var(--pearl); margin-bottom: 6px; }
.stat-icon .ico { width: 26px; height: 26px; }
.stat-label { font-size: var(--fs-sm); color: var(--text-2); }
.stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--text-0); letter-spacing: -.01em; line-height: 1.1; }
/* La statistique qui compte le plus pour le rôle : plus grande, sur fond blanc */
.stat-card.is-lead { order: -1; grid-column: span 2; background: var(--white); border-color: var(--white); }
.stat-card.is-lead .stat-value { color: var(--ink); font-size: 2.6rem; }
.stat-card.is-lead .stat-label, .stat-card.is-lead .stat-icon { color: #4a4e55; }

.list-stack { display: grid; gap: var(--s-3); }
.order-card .card-body { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4) var(--s-5); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card .card-title { font-size: var(--fs-md); }
.meta-line { font-size: var(--fs-xs); color: var(--text-3); }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-actions-end { justify-content: flex-end; }
.item-list { list-style: none; display: grid; gap: 4px; margin: var(--s-3) 0; font-size: var(--fs-sm); color: var(--text-2); }
.item-list li { display: flex; align-items: center; gap: 8px; }
.item-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--pearl); flex-shrink: 0; }
.amount { font-family: var(--font-display); font-weight: 700; color: var(--text-0); }
.meeting-point { display: flex; align-items: center; gap: 8px; margin: var(--s-2) 0; color: var(--text-1); font-size: var(--fs-sm); }
.meeting-point .ico { color: var(--pearl); }
.chart-box { position: relative; height: 320px; }
.card-head { margin-bottom: var(--s-4); }
.card-head .card-title { font-size: var(--fs-lg); }
.card-head p { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* ── TABLEAUX ── */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
thead { background: var(--bg-0); }
th { padding: 12px 14px; text-align: left; color: var(--text-3); font-weight: 600; font-size: var(--fs-xs); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--veil-1); }
.td-muted { color: var(--text-3); font-size: var(--fs-xs); }
.table-form { display: flex; gap: 6px; align-items: center; }
.table-form select { padding: 6px 34px 6px 10px; font-size: var(--fs-xs); width: auto; }
.cart-thumb { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: var(--r-sm); padding: 3px; }
.cart-product { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text-0); }
.qty-inline { display: inline-flex; align-items: center; gap: 4px; }
.qty-inline .btn-ghost { width: 32px; height: 32px; padding: 0; }
.qty-inline span { min-width: 26px; text-align: center; }

/* ── PILLS D'ÉTAT ── */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.pill-pending { background: rgba(232,163,61,.15); color: var(--warning); }
.pill-ok      { background: rgba(59,165,92,.16); color: #6fd193; }
.pill-danger  { background: rgba(237,66,69,.16); color: #ff8e90; }
.pill-info    { background: var(--veil-2); color: var(--text-0); }

/* ── PANIER / COMMANDE ── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
.cart-summary { background: var(--bg-2); border: 1px solid var(--veil-3); border-radius: var(--r-lg); padding: var(--s-5); position: sticky; top: var(--sticky-top); }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--text-2); font-size: var(--fs-sm); }
.cart-line span:last-child { color: var(--text-1); white-space: nowrap; }
.cart-line-muted { color: var(--text-3); font-size: var(--fs-xs); }
.cart-total { font-size: var(--fs-lg); font-weight: 700; color: var(--text-0); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.cart-total span:last-child { color: var(--text-0); font-family: var(--font-display); }
.card-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-sm); color: var(--text-2); margin-top: var(--s-3); }
.order-meta span { display: inline-flex; align-items: center; gap: 6px; }
.order-meta .ico { color: var(--pearl); }
.card-emphasis { border-color: var(--veil-4); }

/* Finaliser (deux boutons synchronisés) */
.finalize-zone { background: var(--veil-1); border: 1px solid var(--veil-4); border-radius: var(--r-lg); padding: var(--s-5); text-align: center; margin-top: var(--s-4); }
.finalize-zone p { color: var(--text-2); font-size: var(--fs-sm); }
.finalize-countdown { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text-0); }

/* ── MODALES ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; padding: 16px; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); max-width: 600px; width: 100%; max-height: 82vh; overflow-y: auto; transform: translateY(16px); transition: transform .2s; }
.modal-sm { max-width: 540px; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--text-0); margin-bottom: var(--s-4); display: flex; align-items: center; gap: 10px; }
.modal-body { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; }
.modal-body h3 { font-size: var(--fs-md); margin: 16px 0 4px; }
.modal-footer { display: flex; gap: 10px; margin-top: var(--s-5); justify-content: flex-end; }

/* Recadrage d'image (Cropper.js) : on neutralise la règle img globale */
.crop-stage { position: relative; height: 320px; background: #0f1012; border-radius: var(--r-md); overflow: hidden; }
.crop-stage .cropper-container { max-width: none; max-height: none; }
.crop-stage .cropper-container img, .crop-stage .cropper-view-box img, .crop-stage .cropper-face { max-width: none !important; max-height: none !important; }
.crop-toolbar { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.crop-hint { text-align: center; font-size: var(--fs-xs); color: var(--text-3); margin-top: 8px; }

/* ── FOURNISSEURS ── */
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }
.supplier-card { position: relative; display: flex; flex-direction: column; color: inherit; transition: border-color var(--transition-slow); }
.supplier-card:hover { border-color: var(--border-strong); color: inherit; }
.supplier-card-cover { height: 120px; background: linear-gradient(135deg, var(--bg-0), var(--bg-3)); background-size: cover; background-position: center; }
.supplier-card .card-body { display: grid; gap: 8px; }
.supplier-cover { height: 220px; margin: var(--s-4) var(--gutter) 0; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--bg-0), var(--bg-3)); background-size: cover; background-position: center; }
.supplier-head { display: grid; gap: 10px; margin-bottom: var(--s-6); }
.supplier-head p { color: var(--text-2); max-width: 70ch; }
.social-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── PAGES TEXTE ── */
.prose { color: var(--text-1); line-height: 1.8; max-width: 70ch; }
.prose h2, .prose h3 { font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-2); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--s-3); color: var(--text-2); }
.legal-updated { color: var(--text-3); font-size: var(--fs-xs); margin-top: var(--s-5); }

/* Vérification (page dédiée + carte du home) */
.verify-result { margin-top: var(--s-4); }
.verify-section { background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); display: grid; gap: 8px; }
.verify-section p { font-size: var(--fs-sm); color: var(--text-2); }
.verify-section strong { color: var(--text-0); }
.verify-role { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill); width: fit-content; }
.verify-role .ico { width: 20px; height: 20px; }
.verify-ok  { background: rgba(59,165,92,.16); color: #6fd193; }
.verify-bad { background: rgba(237,66,69,.16); color: #ff8e90; }
.verify-warn { color: var(--warning); }

/* ── ÉTATS VIDES / 404 ── */
.empty-state { text-align: center; padding: var(--s-7) var(--s-4); color: var(--text-2); display: grid; justify-items: center; gap: 10px; }
.empty-state-compact { padding: var(--s-5) var(--s-4); }
.empty-icon { width: 56px; height: 56px; padding: 12px; background: var(--veil-2); border-radius: var(--r-md); object-fit: contain; }
.empty-state h1 { font-size: var(--fs-2xl); }
.empty-state-404 { padding-block: var(--s-8); }
.icon-404 { width: 120px; height: 120px; padding: 22px; border-radius: var(--r-lg); animation: icon-404-float 3.2s ease-in-out infinite; }
@keyframes icon-404-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.image-fallback { display: grid; justify-items: center; gap: 10px; color: var(--text-2); padding: 20px; font-size: var(--fs-xs); }
.image-fallback .ico { width: 34px; height: 34px; }

/* Squelettes */
.skeleton-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 8px 18px; animation: skeleton-pulse 1.3s ease-in-out infinite alternate; }
.skeleton-media { aspect-ratio: 4 / 3; background: var(--bg-3); border-radius: calc(var(--r-md) - 6px); }
.skeleton-line { height: 13px; margin: 16px 8px 0; background: var(--bg-3); border-radius: var(--r-pill); }
.skeleton-line.short { width: 45%; }
@keyframes skeleton-pulse { to { opacity: .45; } }

/* Messages */
.message-row.message-unread { border-color: var(--veil-4); }
.message-row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.message-title { font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; }
.message-email { color: var(--text-2); font-size: var(--fs-sm); }
.message-date { font-size: var(--fs-xs); color: var(--text-3); }
.message-body { color: var(--text-1); line-height: 1.65; margin-bottom: var(--s-4); }

/* ── FOOTER ── */
.site-footer { margin-top: var(--s-8); border-top: 1px solid var(--border); background: var(--bg-0); padding-top: var(--s-7); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-brand .logo { margin-bottom: var(--s-3); }
.footer-brand p { color: var(--text-3); font-size: var(--fs-sm); max-width: 32ch; }
.footer-zone { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.footer-zone .ico { color: var(--pearl); }
.footer-links h4 { font-family: var(--font-body); color: var(--text-1); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s-3); }
.footer-links a { display: block; color: var(--text-3); font-size: var(--fs-sm); padding: 3px 0; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: var(--s-6); padding: var(--s-4) 0; color: var(--text-3); font-size: var(--fs-xs); }

/* ── UTILITAIRES ── */
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--text-3); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gap-2 { gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sep { height: 1px; background: var(--border); margin: var(--s-5) 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE : un seul jeu de règles par palier
   ============================================================ */
@media (max-width: 1080px) {
  .product-page { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .buybox { grid-column: 1 / -1; position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .product-page { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-main-img { height: 300px; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; --header-gap: 10px; }
  .logo { font-size: 1.05rem; }
  .logo-icon { width: 30px; height: 30px; }
  .header-row { padding: 0 8px 0 12px; border-radius: var(--r-md); }
  .main-nav { display: none; }
  .menu-sitenav { display: flex; }
  .menu-nav-sep { display: block; }

  .section { padding-block: var(--s-6); }
  .hero { padding-block: var(--s-6) var(--s-5); }
  .trust-card { padding: var(--s-5); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

  /* Dashboard : la sidebar devient une barre d'onglets défilante */
  .dashboard-layout { flex-direction: column; gap: var(--s-4); padding-top: var(--s-4); }
  .sidebar {
    position: sticky; top: calc(var(--header-h) + var(--header-gap) + 6px); z-index: 50; width: 100%; max-height: none;
    display: flex; gap: 4px; overflow-x: auto; padding: 6px; border-radius: var(--r-pill);
    scrollbar-width: none; background: rgba(30,33,36,.92); backdrop-filter: blur(12px);
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-user, .sidebar-sep, .sidebar-label { display: none; }
  .sidebar-link { white-space: nowrap; margin: 0; border-radius: var(--r-pill); padding: 8px 14px; }
  .dash-title { font-size: var(--fs-xl); }
  .stat-card.is-lead { grid-column: 1 / -1; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .card-input-row, .grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: var(--s-5); }
  th, td { padding: 10px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .article-card { padding: 6px; }
  .article-card .card-body { padding: 10px 4px 4px; }
  .article-card .card-title { font-size: .88rem; }
  .article-price { font-size: 1.1rem; }
  .article-foot { flex-direction: column; align-items: stretch; }
  .article-foot .btn-primary { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .supplier-grid { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .hero-search { padding-left: 14px; }
  .hero-search .btn-primary { padding-inline: 14px; }
  .toast { left: 16px; right: 16px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.card-emphasis .form-check { margin: 0; }
.supplier-name { margin: 0; }
