/* =============================================================================
   GOSSMARKET — DESIGN SYSTEM (charte graphique officielle)
   Source de vérité unique, extraite de gossmarket-maquette.html.
   RÈGLE : toute interface de la plateforme DOIT utiliser ces tokens et
   composants. Ne pas redéfinir de couleurs / polices / styles en dur ailleurs.
   ============================================================================= */

:root {
  /* ---- Couleurs ---- */
  --bg: #FBF7F0;          /* crème (fond) */
  --ink: #1C1A17;         /* encre / quasi-noir (texte) */
  --muted: #6E665B;       /* gris chaud (texte secondaire) */
  --line: #E7DECF;        /* filet / bordures */
  --card: #FFFFFF;        /* surfaces cartes */
  --clay: #C75B33;        /* terracotta (accent principal) */
  --clay-d: #A8401F;      /* terracotta foncé */
  --indigo: #1F4B5E;      /* indigo profond */
  --gold: #E0A03B;        /* or chaud */
  --green: #3F7A4F;       /* vert (succès / validé) */

  /* ---- Rayons (échelle unique — ne plus utiliser de valeurs arbitraires) ---- */
  --r-xs: 8px;     /* petits éléments (badges, pastilles) */
  --r-sm: 11px;    /* champs de formulaire, mini-cartes */
  --radius: 16px;  /* cartes & surfaces (valeur par défaut) */
  --r-lg: 20px;    /* grands blocs, héros, bandeaux */
  --r-pill: 999px; /* boutons, chips */

  /* ---- Ombres ---- */
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 8px 24px rgba(28, 26, 23, .06);
  --shadow-sm: 0 1px 3px rgba(28, 26, 23, .08);
  --ring: 0 0 0 3px rgba(199, 91, 51, .14); /* focus terracotta */

  /* ---- Typographies ---- */
  --display: 'Sora', system-ui, sans-serif;  /* titres */
  --body: 'Inter', system-ui, sans-serif;     /* corps */
}

/* ---- Reset léger ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Messages flash ---- */
.msg-container { max-width: 1180px; margin: 0 auto; padding: 12px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 500; }
.msg-success { background: #E6F0E9; color: #2C5938; border: 1px solid #BFDAC6; }
.msg-error { background: #F7E5DD; color: var(--clay-d); border: 1px solid #EAC7B5; }
.msg-info { background: #E2ECF0; color: var(--indigo); border: 1px solid #BFD4DB; }
.msg-warning { background: #FBF0DA; color: #9C6B14; border: 1px solid #F3E0B3; }
.msg-close { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6; color: inherit; padding: 0 0 0 12px; }
.msg-close:hover { opacity: 1; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Conteneur ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* =============================================================================
   TOP BAR + LOGO
   ============================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 20px;
}
/* ---- Logo natif : SVG inline (sac + G/flèche) + mot-symbole ----
   Reconstruit vectoriellement à partir du logo de référence. Aucune image
   bitmap : net à toute résolution, aux couleurs de la charte, stylable. */
.gm-logo {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; line-height: 1;
  color: var(--ink); /* pilote l'anse du sac (currentColor) */
}
/* Variante sur fond sombre (spécificité renforcée pour primer sur les couleurs de base) */
.gm-logo.gm-logo--on-dark { color: #fff; }
.gm-logo.gm-logo--on-dark .gm-goss { color: #fff; }
.gm-logo.gm-logo--on-dark .gm-market { color: var(--gold); }
.gm-logo.gm-logo--on-dark .gm-logo-tagline { color: rgba(255,255,255,.65); }
.gm-logo-mark { width: 38px; height: 38px; flex: none; display: block; }
.gm-logo-text { display: flex; flex-direction: column; }
.gm-logo-word {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -.02em; line-height: 1;
}
.gm-logo-word .gm-goss { color: var(--ink); }
.gm-logo-word .gm-market { color: var(--clay); }
.gm-logo-tagline {
  font-family: var(--display); font-weight: 600; font-size: 8px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
/* Variantes de taille */
.gm-logo.gm-logo-sm .gm-logo-mark { width: 30px; height: 30px; }
.gm-logo.gm-logo-sm .gm-logo-word { font-size: 18px; }
.gm-logo.gm-logo-lg .gm-logo-mark { width: 56px; height: 56px; }
.gm-logo.gm-logo-lg .gm-logo-word { font-size: 32px; }
.gm-logo.gm-logo-lg .gm-logo-tagline { font-size: 10px; }

/* =============================================================================
   BOUTONS
   ============================================================================= */
.btn {
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: .18s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--clay); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-xs { font-size: 12px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* Actions d'authentification dans la top bar publique */
.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* =============================================================================
   TYPOGRAPHIE UTILITAIRE
   ============================================================================= */
h1, h2, h3, h4, h5 { font-family: var(--display); letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--clay);
}
.text-muted { color: var(--muted); }
.link { font-size: 14px; font-weight: 600; color: var(--clay); display: inline-flex; align-items: center; gap: 5px; }

/* =============================================================================
   CARTES & SURFACES
   ============================================================================= */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card-pad { padding: 18px; }
.shadow { box-shadow: var(--shadow); }

/* =============================================================================
   CHIPS (catégories) & PILLS
   ============================================================================= */
.chip {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 13.5px; font-weight: 500; color: var(--muted); transition: .18s;
}
.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip.on { background: var(--clay); color: #fff; border-color: var(--clay); }
.pill {
  display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: #F1E9DA; color: var(--clay-d);
}

/* =============================================================================
   BADGES DE STATUT
   ============================================================================= */
.badge { font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; display: inline-block; }
.b-green { background: #E6F0E9; color: var(--green); }
.b-gold  { background: #FBF0DA; color: #9C6B14; }
.b-clay  { background: #F7E5DD; color: var(--clay-d); }
.b-grey  { background: #EEE9E0; color: var(--muted); }
.b-indigo { background: #E3EDF2; color: var(--indigo); }
.b-blue  { background: #DBE8F2; color: #1A5A7E; }

/* =============================================================================
   TABLEAUX
   ============================================================================= */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600; padding: 12px 20px; background: var(--bg);
}
td { padding: 14px 20px; font-size: 13.5px; border-top: 1px solid var(--line); }

/* =============================================================================
   PRIX
   ============================================================================= */
.price { font-family: var(--display); font-weight: 700; font-size: 16px; }

/* =============================================================================
   PIED DE PAGE
   ============================================================================= */
footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 30px; }
.foot-in {
  max-width: 1180px; margin: 0 auto; padding: 0 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.foot-in p { font-size: 13px; color: var(--muted); }

/* =============================================================================
   FORMULAIRES
   ============================================================================= */
.form-label {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 13px; color: var(--ink); margin-bottom: 7px;
}
.form-input, .form-select, textarea.form-input {
  width: 100%; font-family: var(--body); font-size: 14.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; line-height: 1.3; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input::placeholder { color: #b8ad9c; }
.form-input:focus, .form-select:focus, textarea.form-input:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(199,91,51,.14);
}
.form-select {
  cursor: pointer; padding-right: 40px; background-repeat: no-repeat;
  background-position: right 14px center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E665B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--error .form-input, .field--error .form-select {
  border-color: var(--clay-d); box-shadow: 0 0 0 3px rgba(168,64,31,.12);
}
.form-error {
  display: flex; align-items: flex-start; gap: 6px; color: var(--clay-d);
  font-size: 12.5px; font-weight: 500; margin-top: 6px;
}
.form-error::before {
  content: "!"; flex: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--clay-d); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 46px; } /* place de l'icône œil */
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: transparent; border: none; color: var(--muted); border-radius: 8px; cursor: pointer;
}
.pw-toggle:hover { color: var(--clay); background: var(--bg); }
.pw-toggle svg { width: 18px; height: 18px; display: block; }
.pw-toggle .i-off { display: none; }
.pw-toggle.showing .i-on { display: none; }
.pw-toggle.showing .i-off { display: block; }
.checkbox-row { display: flex; align-items: flex-start; gap: 11px; }
.form-checkbox {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  accent-color: var(--clay); cursor: pointer;
}
.checkbox-row label { font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }

/* Groupe de cases à cocher (moyens de paiement, etc.) */
.check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-group label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
  font-size: 13.5px; background: var(--card); transition: .15s;
}
.check-group label:hover { border-color: var(--clay); }
.check-group input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--clay); }

/* Photos additionnelles (formulaire produit) — galerie + tuile « + » */
.photo-uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-cell { position: relative; width: 84px; height: 84px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); display: block; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell .rm {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(28,26,23,.72); color: #fff; border: none; font-size: 14px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.photo-existing { cursor: pointer; }
.photo-existing .photo-del { position: absolute; opacity: 0; pointer-events: none; }
.photo-existing .photo-del:checked ~ img { opacity: .35; }
.photo-existing .photo-del:checked ~ .rm { background: var(--clay-d); }
.photo-add {
  width: 84px; height: 84px; border-radius: 11px; border: 1.5px dashed var(--line);
  background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--clay); transition: .15s;
}
.photo-add:hover { border-color: var(--clay); background: var(--bg); }
.photo-add svg { width: 24px; height: 24px; }

/* Champ d'upload de fichier (pièce d'identité, logo, etc.) */
.file-field { position: relative; }
.file-field .form-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-box {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px;
  border: 1.5px dashed var(--line); border-radius: 11px; background: var(--card); transition: .15s;
}
.file-field:hover .file-box { border-color: var(--clay); }
.field--error .file-box { border-color: var(--clay-d); }
.file-box .ic {
  flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--bg);
  display: grid; place-items: center; color: var(--clay);
}
.file-box .ic svg { width: 19px; height: 19px; }
.file-box .ft b { display: block; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.file-box .ft .fn { font-size: 12px; color: var(--muted); }

/* Sections numérotées dans un formulaire */
.form-section + .form-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section-title {
  font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px;
}
.form-section-title .n {
  width: 21px; height: 21px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--line); color: var(--clay); display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}

/* =============================================================================
   PAGE AUTH (inscription / connexion) — panneau de marque + formulaire
   Page immersive plein écran (chrome global masqué).
   ============================================================================= */
.auth { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 100vh; }

/* -- Panneau de marque (gauche) -- */
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 44px 52px;
  display: flex; flex-direction: column;
  background: linear-gradient(155deg, #23201B 0%, #1C1A17 48%, #173A49 100%);
}
.auth-brand::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,160,59,.26), transparent 68%);
}
.auth-brand::before {
  content: ""; position: absolute; width: 360px; height: 360px; left: -130px; bottom: -150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(199,91,51,.30), transparent 68%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .ab-in { margin: 5vh 0 auto; max-width: 420px; }
.brand-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--display);
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-top: 40px;
}
.brand-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); }
.auth-brand h2 { font-size: 33px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin: 16px 0; }
.auth-brand h2 em { font-style: normal; color: var(--gold); }
.auth-brand .lede { color: #C9C2B6; font-size: 15px; line-height: 1.6; margin-bottom: 30px; max-width: 384px; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.auth-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; color: #EDE8DF; line-height: 1.5; }
.auth-points b { color: #fff; }
.auth-points .ck {
  flex: none; width: 23px; height: 23px; border-radius: 50%; margin-top: 1px;
  background: rgba(143,217,162,.16); color: #8FD9A2; display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.ab-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #A59E92; padding-top: 30px; }
.ab-foot .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63,122,79,.22); }

/* -- Colonne formulaire (droite) -- */
.auth-form-col { padding: 44px 48px; display: flex; align-items: flex-start; justify-content: center; background: var(--bg); }
.auth-form-inner { width: 100%; max-width: 460px; }
.auth-form-inner > h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-form-inner > .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }

/* Indicateur d'étapes (tunnel inscription → abonnement → confirmation) */
.steps { display: flex; align-items: center; margin-bottom: 30px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.step .dot {
  width: 25px; height: 25px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card);
  color: var(--muted); display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
}
.step.active { color: var(--ink); }
.step.active .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.done { color: var(--green); }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step-line { flex: 1; height: 1.5px; background: var(--line); margin: 0 10px; min-width: 14px; }

/* Tunnel d'inscription centré (étapes formule / confirmation) */
.funnel { max-width: 920px; margin: 0 auto; padding: 40px 22px 64px; }
.steps--center { justify-content: center; max-width: 520px; margin: 0 auto 30px; }
.funnel-head { text-align: center; margin-bottom: 32px; }
.funnel-head h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; line-height: 1.1; margin: 12px 0 8px; }
.funnel-head p { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto; }

.auth-alert { background: #E6F0E9; border: 1px solid #BFDAC6; color: #2C5938; border-radius: 12px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 20px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* =============================================================================
   ESPACE VENDEUR — Bandeau statut (VUE 6)
   ============================================================================= */
.shop-status-bar {
  border-bottom: 1px solid var(--line);
  transition: .2s;
}
.shop-status-bar.status-en_attente,
.shop-status-bar.status-en_attente_config { background: #FBF0DA; }
.shop-status-bar.status-active { background: #F0F7F2; }
.shop-status-bar.status-suspendue,
.shop-status-bar.status-expiree { background: #F7E5DD; }

/* =============================================================================
   ESPACE VENDEUR — Navigation
   ============================================================================= */
.shop-nav-link {
  display: inline-flex; align-items: center; padding: 14px 18px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; transition: .18s; white-space: nowrap;
}
.shop-nav-link:hover { color: var(--ink); }
.shop-nav-link.on { color: var(--clay); border-bottom-color: var(--clay); }

/* =============================================================================
   CHOIX FORMULE (VUE 2)
   ============================================================================= */
.formules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.formule-card {
  display: flex; flex-direction: column; padding: 24px;
  border: 1.5px solid var(--line); transition: .2s;
}
.formule-card:hover { border-color: var(--clay); box-shadow: var(--shadow); }
.formule-header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.formule-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.formule-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price-amount { font-family: var(--display); font-size: 36px; font-weight: 800; color: var(--clay); line-height: 1; }
.price-currency { font-size: 14px; font-weight: 600; color: var(--muted); }
.formule-duration { font-size: 13px; color: var(--muted); margin-top: 4px; }
.formule-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.formule-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.formule-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.formule-features .ck {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: rgba(63,122,79,.12); color: var(--green); display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}

/* =============================================================================
   CONFIRMATION (VUE 3)
   ============================================================================= */
.conf-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 14px;
}
.conf-row + .conf-row { border-top: 1px solid var(--line); }
.conf-label { color: var(--muted); }
.conf-value { font-weight: 600; }

/* =============================================================================
   TABLEAU DE BORD (Dashboard)
   ============================================================================= */
.dash-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.dash-card { display: flex; flex-direction: column; gap: 8px; }
.dash-card-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600;
}

/* =============================================================================
   PRODUITS — Liste (VUE 7)
   ============================================================================= */
.product-toolbar { margin-bottom: 20px; }
.search-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { min-width: 640px; }
.table-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }

/* =============================================================================
   PRODUITS — Formulaire (VUE 8) / Déclinaisons
   ============================================================================= */
.declinaison-row { margin-bottom: 10px; }
.declinaison-row .field-row { grid-template-columns: 1fr 1fr 80px auto; gap: 8px; }
.stock-input { text-align: center; }

/* =============================================================================
   RESPONSIVE (mobile-first attendu par le cahier des charges, §9.2)
   ============================================================================= */
@media (max-width: 960px) {
  .topbar-in { gap: 12px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 30px 24px; }
  .auth-brand .ab-in { margin: 0; max-width: none; }
  .brand-eyebrow { margin-top: 22px; }
  .auth-brand h2 { font-size: 25px; }
  .auth-brand .lede { margin-bottom: 22px; }
  .ab-foot { display: none; }
  .auth-form-col { padding: 32px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step .lbl { display: none; }

  .formules-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   BACK-OFFICE VENDEUR — App shell (sidebar + topbar) + widgets dashboard
   ============================================================================= */
.vendor { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* -- Sidebar -- */
.vendor-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #1C1A17; color: #fff; display: flex; flex-direction: column; padding: 16px 14px;
}
.vside-brand { padding: 6px 8px 14px; }
.vside-shop {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
  background: rgba(255,255,255,.05); margin-bottom: 8px;
}
.vside-shop .av {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--clay), var(--gold));
}
.vside-shop b { font-family: var(--display); font-size: 13.5px; display: block; line-height: 1.25; }
.vside-shop span { font-size: 11.5px; color: #A59E92; }
.nav-group { margin-top: 16px; }
.nav-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #6E665B; padding: 0 10px 8px;
}
.vnav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: #C9C2B6; text-decoration: none; transition: .15s; margin-bottom: 2px;
}
.vnav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.vnav-item.on { background: var(--clay); color: #fff; }
.vnav-item .vi { width: 18px; height: 18px; flex: none; }
.vnav-item .count {
  margin-left: auto; background: rgba(255,255,255,.16); color: #fff; font-size: 11px;
  font-weight: 700; padding: 1px 8px; border-radius: 999px;
}
.vnav-item.disabled { opacity: .42; pointer-events: none; }
.vnav-item .soon { margin-left: auto; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #8a8276; }
.vnav-sub { padding-left: 40px !important; font-size: 12.5px !important; }
.vside-foot { margin-top: auto; padding-top: 14px; }
.vside-foot .vnav-item { background: rgba(255,255,255,.05); }

/* -- Zone principale -- */
.vendor-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.vendor-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 16px 30px; background: rgba(251,247,240,.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.vt-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 6px; transition: .15s; }
.vt-back:hover { color: var(--clay); }
.vt-back::before { content: ''; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.vendor-top h1 { font-size: 21px; font-weight: 800; line-height: 1.15; }
.vendor-top .vt-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.vt-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.vt-search {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; width: 230px;
}
.vt-search input { border: none; outline: none; background: transparent; font-size: 13.5px; flex: 1; font-family: var(--body); color: var(--ink); }
.vt-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; color: var(--ink);
}
.vt-icon { text-decoration: none; transition: border-color .15s; }
.vt-icon:hover { border-color: var(--clay); }
.vt-icon .vt-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); border: 1.5px solid var(--card); }
.vt-icon .vt-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d33b2c; color: #fff; font-family: var(--body); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); }
.vt-user { display: flex; align-items: center; gap: 9px; }
.vt-user .av {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-weight: 700; font-family: var(--display); background: linear-gradient(135deg, var(--indigo), var(--green));
}
.vt-user b { font-size: 13px; font-family: var(--display); display: block; line-height: 1.2; }
.vt-user span { font-size: 11.5px; color: var(--muted); }
.vendor-body { padding: 26px 30px 54px; }

/* -- KPI cards -- */
/* Cartes KPI — compactes & pro (style Shopify/Stripe) */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.kpi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 10px; }
.kpi-ic svg { width: 17px; height: 17px; }
.kpi .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--muted); }
.kpi .val { font-family: var(--display); font-size: 22px; font-weight: 800; margin-top: 3px; line-height: 1.1; }
.kpi .sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
/* Surplus : grille jusqu'à 4/ligne en desktop, scroll horizontal sur mobile */
@media (max-width: 680px) {
  .kpi-row { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .kpi { min-width: 175px; flex: none; scroll-snap-align: start; }
}
.ic-clay { background: #F7E5DD; color: var(--clay-d); }
.ic-gold { background: #FBF0DA; color: #9C6B14; }
.ic-indigo { background: #E2ECF0; color: var(--indigo); }
.ic-green { background: #E6F0E9; color: var(--green); }

/* -- Lignes de panneaux -- */
.dash-row { display: grid; gap: 18px; margin-bottom: 18px; }
.dash-row.c-2-1 { grid-template-columns: 1.7fr 1fr; }
.dash-row.c-1-1 { grid-template-columns: 1fr 1fr; }
.dash-row.c-3 { grid-template-columns: 1fr 1fr 1fr; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h3 { font-size: 15px; font-weight: 700; }
.panel-b { padding: 20px; }

/* -- État vide -- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 38px 20px; }
.empty .ec { width: 50px; height: 50px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; color: var(--clay); margin-bottom: 14px; }
.empty .ec svg { width: 24px; height: 24px; }
.empty p { font-size: 13.5px; color: var(--muted); max-width: 280px; margin-bottom: 16px; }

/* -- Graphique (placeholder vide stylé) -- */
.chart-empty {
  height: 230px; border-radius: 12px; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 46px,
    var(--bg);
  display: grid; place-items: center;
}
.chart-empty .ce-msg { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13.5px; }
.chart-empty .ce-msg svg { width: 26px; height: 26px; color: var(--clay); margin-bottom: 8px; }

/* -- Checklist préparation boutique -- */
.prep-progress { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.prep-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.prep-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--clay), var(--gold)); transition: width .4s; }
.prep-pct { font-family: var(--display); font-weight: 800; font-size: 14px; }
.check-list { list-style: none; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 20px; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: none; }
.check-mark { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.check-mark.done { background: var(--green); color: #fff; }
.check-mark.todo { background: var(--bg); border: 1.5px solid var(--line); color: var(--muted); }
.check-item .ct b { font-size: 13.5px; font-family: var(--display); font-weight: 600; }
.check-item.is-done .ct b { color: var(--muted); text-decoration: line-through; }
.check-item .ct p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* -- Responsive back-office -- */
@media (max-width: 1024px) { .kpi-row { grid-template-columns: 1fr 1fr; } .dash-row.c-2-1, .dash-row.c-1-1 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .vendor { grid-template-columns: 1fr; }
  .vendor-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; padding: 10px 12px; }
  .vside-brand, .vside-shop, .nav-group-label { display: none; }
  .nav-group { margin-top: 0; display: flex; gap: 4px; }
  .vside-foot { margin: 0; padding: 0; }
  .vnav-item { white-space: nowrap; margin-bottom: 0; }
  .vendor-top { padding: 14px 18px; flex-wrap: wrap; }
  .vt-search { display: none; }
  .vendor-body { padding: 20px 18px 44px; }

  .declinaison-row .field-row { grid-template-columns: 1fr 1fr; }
  .table-actions { flex-direction: column; align-items: flex-end; }
}
@media (max-width: 520px) { .kpi-row { grid-template-columns: 1fr; } }

/* ── Commandes (refonte moderne) ────────────────────────── */
.ord-filters { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.ord-filter-group { display: flex; flex-direction: column; gap: 6px; }
.ord-filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.ord-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Barre de filtres commandes ── */
.ord-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.ord-toolbar-form { display:flex; align-items:center; gap:8px; flex:1; min-width:0; flex-wrap:wrap; }
.ord-toolbar-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.ord-toolbar-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--muted); pointer-events:none; }
.ord-toolbar-search-input { padding-left:34px; width:100%; }
.ord-toolbar-select { width:auto; min-width:140px; font-size:13px; cursor:pointer; }
.ord-toolbar-reset { padding:9px 18px; font-size:13px; white-space:nowrap; }
.ord-toolbar-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }

.ord-list { display: flex; flex-direction: column; gap: 14px; }

.ord-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .18s; }
.ord-card:hover { box-shadow: 0 2px 12px rgba(28,26,23,.06); }

.ord-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ord-card-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ord-card-head-right { display: flex; align-items: center; gap: 8px; }

.ord-id { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink); }

.ord-prio { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.prio-urgent { background: #FDECEC; color: #C0392B; }
.prio-high { background: #FEF0DD; color: #C77A1E; }
.prio-normal { background: #E2ECF0; color: var(--indigo); }
.prio-low { background: var(--bg); color: var(--muted); }
.prio-suggest { background: #F0F0F0; color: var(--muted); font-style: italic; font-weight: 500; }

.ord-card-date { font-size: 12.5px; color: var(--muted); }

.ord-card-body { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 16px 18px; align-items: start; }
@media (max-width: 768px) { .ord-card-body { grid-template-columns: 1fr; gap: 12px; } }

.ord-card-col { display: flex; flex-direction: column; gap: 4px; }
.ord-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.ord-value { font-size: 13px; color: var(--ink); }

.ord-prod-header { display: grid; grid-template-columns: 1fr 70px 130px 130px; gap: 12px; padding: 6px 0 7px; align-items: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 2px solid var(--line); }
.ord-ph-qte { text-align: center; }
.ord-ph-prix { text-align: right; }
.ord-ph-total { text-align: right; }

.ord-prod-row { display: grid; grid-template-columns: 1fr 70px 130px 130px; gap: 12px; padding: 8px 0; align-items: center; font-size: 13px; border-bottom: 1px solid var(--line); }
.ord-prod-row:last-child { border-bottom: none; }

.ord-pr-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ord-prod-img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; background: var(--bg); }
.ord-prod-img--empty { display: grid; place-items: center; color: var(--muted); opacity: .3; }
.ord-prod-img--empty svg { width: 16px; height: 16px; }
.ord-prod-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ord-pr-qte { text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.ord-pr-prix { text-align: right; color: var(--ink); font-weight: 500; white-space: nowrap; }
.ord-pr-total { text-align: right; font-weight: 800; color: var(--clay); white-space: nowrap; font-family: var(--display); }

.ord-client-info { display: flex; flex-direction: column; gap: 3px; }
.ord-client-name { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.ord-client-detail { font-size: 12px; color: var(--muted); }
.ord-client-tel { font-weight: 600; color: var(--indigo); }

.ord-detail-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ord-detail-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.ord-detail-item + .ord-detail-item { border-top: 1px solid var(--line); }
.ord-detail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.ord-detail-value { font-size: 14px; font-weight: 500; color: var(--ink); text-align: right; }

@media (max-width: 700px) {
  .ord-prod-header { grid-template-columns: 1fr 60px 100px; gap: 8px; }
  .ord-ph-qte { text-align: center; }
  .ord-ph-prix, .ord-ph-total { text-align: right; }
  .ord-prod-row { grid-template-columns: 1fr 60px 100px; gap: 8px; padding: 6px 0; }
  .ord-pr-qte { text-align: center; }
  .ord-pr-prix { text-align: right; }
  .ord-pr-total { grid-column: 1 / -1; text-align: right; padding-top: 2px; }
}

.ord-card-actions { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; position: relative; }

.ord-card-info { display: flex; gap: 12px; padding: 8px 18px; background: #FBF8F5; border-top: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.ord-delai { color: var(--indigo); }
.ord-motif { color: var(--clay-d); }



/* ── Grille produits (espace vendeur) ───────────────────── */
.gprod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.gprod-card { background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; position: relative; }
.gprod-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(28,26,23,.08); }
.gprod-card-img { position: relative; height: 160px; background: var(--bg); overflow: hidden; }
.gprod-card-img img { width: 100%; height: 100%; object-fit: cover; }
.gprod-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); opacity: .35; }
.gprod-card-placeholder svg { width: 36px; height: 36px; }
.gprod-card-promo { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--clay); color: #fff; }
.gprod-card-hidden { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(28,26,23,.55); color: #fff; backdrop-filter: blur(2px); }
.gprod-card-body { padding: 13px 14px 10px; flex: 1; }
.gprod-card-name { font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.25; }
.gprod-card-cat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gprod-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.gprod-card-price { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--clay); }
.gprod-card-stock { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #E6F0E9; color: var(--green); }
.gprod-card-stock.out { background: #F7E5DD; color: var(--clay-d); }
.gprod-card-stock.low { background: #FBF0DA; color: #9C6B14; }
.gprod-card-badges { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.gprod-card-actions { position: absolute; top: 8px; right: 8px; z-index: 5; }
.gprod-card-dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 1px 4px rgba(28,26,23,.12); transition: .15s; }
.gprod-card-dot:hover { color: var(--clay); background: #fff; }
.gprod-card-menu { display: none; padding: 6px; border-radius: 12px; }
.gprod-card-menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ink); text-decoration: none; transition: .12s; }
.gprod-card-menu-item:hover { background: var(--bg); color: var(--clay); }
.gprod-card-menu-item svg { flex: none; }
.gprod-card-menu-item--danger { color: var(--clay); }
.gprod-card-menu-item--danger:hover { background: #F7E5DD; }
.gprod-card-menu-divider { height: 1px; background: var(--line); margin: 4px 8px; }

/* ── Sélecteur de vue ───────────────────────────────────── */
.gprod-view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gprod-view-btn { display: grid; place-items: center; width: 36px; height: 36px; color: var(--muted); text-decoration: none; transition: .12s; }
.gprod-view-btn:hover { color: var(--ink); background: var(--bg); }
.gprod-view-btn.on { background: var(--card); color: var(--clay); box-shadow: inset 0 1px 3px rgba(28,26,23,.06); }

/* ── Tableau produits (espace vendeur) ──────────────────── */
.gprod-table-wrap { background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.gprod-table { width: 100%; border-collapse: collapse; }
.gprod-table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 13px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.gprod-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gprod-table tr:last-child td { border-bottom: none; }
.gprod-table-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; background: var(--bg); }
.gprod-table-thumb--empty { display: grid; place-items: center; color: var(--muted); opacity: .3; }
.gprod-table-thumb--empty svg { width: 18px; height: 18px; }
.gprod-table-name { font-family: var(--display); font-weight: 600; font-size: 14px; }
.gprod-table-cat-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.gprod-table-price { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--clay); white-space: nowrap; }
.gprod-table-stock { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #E6F0E9; color: var(--green); white-space: nowrap; }
.gprod-table-stock.out { background: #F7E5DD; color: var(--clay-d); }
.gprod-table-stock.low { background: #FBF0DA; color: #9C6B14; }
.gprod-table-dot { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .12s; }
.gprod-table-dot:hover { background: var(--bg); color: var(--clay); }
.gprod-table-menu { display: none; padding: 6px; border-radius: 12px; }
.gprod-table-menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--ink); text-decoration: none; transition: .12s; }
.gprod-table-menu-item:hover { background: var(--bg); color: var(--clay); }
.gprod-table-menu-item svg { flex: none; }
.gprod-table-menu-item--danger { color: var(--clay); }
.gprod-table-menu-item--danger:hover { background: #F7E5DD; }
.gprod-table-menu-divider { height: 1px; background: var(--line); margin: 4px 8px; }

/* ── Pagination ─────────────────────────────────────────── */
.gprod-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gprod-pagination-info { font-size: 13px; color: var(--muted); }
.gprod-pagination-nav { display: flex; gap: 8px; }

/* Grille de catégories (espace vendeur) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 3px; text-decoration: none; transition: .18s; }
.cat-card--add:hover { border-color: var(--clay); box-shadow: var(--shadow); }
.cat-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--clay); margin-bottom: 8px; }
.cat-ic svg { width: 19px; height: 19px; }
.cat-card .cat-name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.cat-card .cat-count { font-size: 12.5px; color: var(--muted); }
.cat-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; margin-top: 5px; align-self: flex-start; }
.cat-badge--defaut { background: #E3EDF2; color: var(--indigo); }
.cat-badge--perso { background: #F0E5D4; color: #8A6412; }
.cat-del { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; transition: .15s; align-self: flex-start; }
.cat-del:hover { color: var(--clay); background: rgba(199,91,51,.08); }
.cat-card--add { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--muted); min-height: 132px; gap: 8px; }
.cat-card--add:hover { color: var(--clay); }
.cat-card--add .plus { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 26px; font-weight: 300; line-height: 1; color: var(--clay); }
.cat-card--add b { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink); }

/* Mini-liste de produits (dashboard) */
.mini-prod { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-prod:first-child { border-top: none; }
.mini-prod .thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--line); flex: none; }
.mini-prod .mp-info { min-width: 0; flex: 1; }
.mini-prod .mp-info b { font-size: 13.5px; font-family: var(--display); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-prod .mp-info .price { font-size: 13px; }

/* =============================================================================
   VITRINE PUBLIQUE — Home (grille de boutiques)
   ============================================================================= */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; margin-bottom: 40px;
}
.shop-card { text-decoration: none; display: flex; flex-direction: column; transition: .2s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sc-banner { height: 100px; background: var(--line); overflow: hidden; }
.sc-banner img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { padding: 16px; text-align: center; position: relative; }
.sc-logo-wrap { margin: -40px auto 10px; }
.sc-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); background: var(--card); }
.sc-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sc-slogan { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.sc-stats { display: flex; justify-content: center; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* =============================================================================
   VITRINE PUBLIQUE — Shop detail (boutique complète)
   ============================================================================= */
/* Héro */
.sp-hero {
  position: relative; min-height: 280px; background: var(--indigo); background-size: cover; background-position: center;
}
.sp-hero-overlay {
  background: linear-gradient(to bottom, rgba(28,26,23,.55), rgba(28,26,23,.78));
  min-height: 280px; display: flex; align-items: flex-end; padding: 30px 0;
}
.sp-hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; width: 100%; }
.sp-brand { display: flex; align-items: center; gap: 18px; color: #fff; }
.sp-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.3); background: var(--card); }
.sp-name { font-size: clamp(20px,2.6vw,28px); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sp-verified { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; align-items: center; justify-content: center; }
.sp-slogan { font-size: 15px; opacity: .85; margin-top: 2px; }
.sp-badges { display: flex; gap: 8px; margin-top: 8px; }
.sp-badges .chip { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; padding: 5px 13px; }
.sp-badges .chip:hover { background: rgba(255,255,255,.25); }
.sp-metrics { display: flex; gap: 20px; color: #fff; flex-wrap: wrap; }
.sp-metric { text-align: center; }
.sp-m-val { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.sp-m-lbl { display: block; font-size: 11.5px; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }

/* Corps */
.sp-body { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding-top: 30px; padding-bottom: 50px; align-items: start; }
.sp-info { font-size: 13.5px; }
.sp-info-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sp-info-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sp-info-section h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--clay); margin-bottom: 8px; }
.sp-info-section p { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.sp-info-section details { margin-top: 6px; }
.sp-info-section details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); padding: 4px 0; }
.sp-info-section details summary:hover { color: var(--clay); }
.sp-contact-form { display: flex; flex-direction: column; }
.sp-contact-form .form-input { font-size: 13px; padding: 9px 12px; }

/* Catalogue */
.sp-catalog { min-width: 0; }
.sp-toolbar { margin-bottom: 24px; }
.sp-toolbar .search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-section { margin-bottom: 30px; }
.sp-section h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }

/* Cartes produits */
.sp-item { text-decoration: none; display: flex; flex-direction: column; transition: .2s; overflow: hidden; }
.sp-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sp-item-img { position: relative; height: 170px; background: var(--line); overflow: hidden; }
.sp-item-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-item-noimg { display: block; width: 100%; height: 100%; background: var(--line); }
.sp-item-discount {
  position: absolute; top: 8px; left: 8px; background: var(--clay); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
}
.sp-item-soldout {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(28,26,23,.55); color: #fff; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
}
.sp-item-body { padding: 12px 13px; flex: 1; display: flex; flex-direction: column; }
.sp-item-body h3 { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; flex: 1; }
.sp-item-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.sp-item-current { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.sp-item-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.sp-item-meta { display: flex; gap: 10px; font-size: 11.5px; }

/* Avis */
.sp-reviews { display: flex; flex-direction: column; gap: 12px; }
.sp-review { display: flex; flex-direction: column; gap: 6px; }
.sr-header { display: flex; justify-content: space-between; align-items: center; }
.sr-name { font-weight: 600; font-size: 13.5px; }
.sr-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.sr-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.sr-date { font-size: 12px; }

/* =============================================================================
   VITRINE PUBLIQUE — Fiche produit détaillée
   ============================================================================= */
.pd { padding-top: 24px; padding-bottom: 50px; }
.pd-breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.pd-breadcrumb a { color: var(--clay); font-weight: 500; }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-main { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }

/* Galerie */
.pd-gallery { }
.pd-main-photo { width: 100%; height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--line); margin-bottom: 10px; }
.pd-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; padding: 0; background: none; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.on { border-color: var(--clay); }

/* Infos produit */
.pd-meta-top { display: flex; gap: 8px; margin-bottom: 10px; }
.pd-title { font-size: clamp(22px,2.8vw,28px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.pd-price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pd-current-price { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ink); }
.pd-old-price { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pd-stock { margin-bottom: 18px; }
.pd-instock { color: var(--green); font-weight: 600; font-size: 14px; }
.pd-lowstock { color: var(--gold); font-weight: 600; font-size: 14px; }
.pd-outstock { color: var(--clay-d); font-weight: 600; font-size: 14px; }

/* Variantes */
.pd-variants { margin-bottom: 20px; }
.pd-variants h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.pd-var-group { margin-bottom: 10px; }
.pd-var-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.pd-var-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-var-btn {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s; font-family: var(--body);
}
.pd-var-btn:hover { border-color: var(--clay); }
.pd-var-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Actions */
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-actions .btn { font-size: 13.5px; padding: 11px 20px; }

/* Trust block */
.pd-trust { background: var(--bg); }
.pd-trust-row { display: flex; gap: 14px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.pd-trust-row + .pd-trust-row { margin-top: 8px; }

/* Description / Caractéristiques */
.pd-details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.pd-details h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.pd-desc p { font-size: 14px; line-height: 1.6; color: var(--ink); }
.pd-features ul { list-style: none; padding: 0; }
.pd-features li { padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.pd-features li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* Sections */
.pd-section { margin-bottom: 30px; }
.pd-section > h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }

/* Questions / Réponses */
.pd-q { margin-bottom: 10px; }
.pd-q-q, .pd-q-a { font-size: 13.5px; line-height: 1.5; }
.pd-q-q { margin-bottom: 6px; color: var(--ink); }
.pd-q-a { color: var(--muted); }

/* Avis produit */
.pd-avis-list { display: flex; flex-direction: column; gap: 10px; }
.pd-avis { }
.pa-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pa-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.pa-author { font-weight: 600; font-size: 13px; }
.pa-date { font-size: 12px; }
.pa-text { font-size: 13.5px; line-height: 1.5; }

/* =============================================================================
   RESPONSIVE — Vitrine publique
   ============================================================================= */
@media (max-width: 860px) {
  .sp-body { grid-template-columns: 1fr; }
  .sp-hero-in { flex-direction: column; align-items: flex-start; }
  .sp-metrics { width: 100%; justify-content: space-around; }
  .pd-main { grid-template-columns: 1fr; }
  .pd-main-photo { height: 280px; }
  .pd-details { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* =============================================================================
   PAGE D'ACCUEIL PUBLIQUE — sections riches (VUE 21)
   ============================================================================= */
/* Sous-barre recherche + nav */
.subnav { border-bottom: 1px solid var(--line); background: var(--card); }
.subnav-in { display: flex; align-items: center; gap: 20px; padding: 12px 22px; }
.subnav-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.subnav-search input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--body); font-size: 14px; color: var(--ink); }
.subnav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.subnav-links a { font-size: 14px; font-weight: 600; color: var(--muted); }
.subnav-links a:hover { color: var(--clay); }
.subnav-links .snl-cta { color: var(--clay); }

/* Héro */
.home-hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.hh-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 56px 22px; }
.hh-text h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin: 14px 0 14px; }
.hh-text h1 em { font-style: normal; color: var(--clay); }
.hh-text p { font-size: 17px; color: var(--muted); max-width: 460px; margin-bottom: 26px; }
.hh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hh-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.hh-bag { width: 220px; height: 220px; border-radius: 36px; background: radial-gradient(circle at 35% 30%, #fff, var(--bg)); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); }
.hh-chip { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-family: var(--display); font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow); }
.hh-chip-1 { top: 12px; left: 6%; color: var(--clay-d); }
.hh-chip-2 { bottom: 30px; left: 0; color: var(--indigo); }
.hh-chip-3 { top: 40px; right: 2%; color: var(--green); }

/* Bande stats */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 8px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.stat-band .stat { text-align: center; }
.stat-band .stat b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--clay); }
.stat-band .stat span { font-size: 13px; color: var(--muted); }

/* Section générique */
.section { padding: 36px 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; font-weight: 800; }

/* Compléments cartes boutique */
.sc-cat { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.sc-logo-ph { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--clay); }
.sc-rate { font-size: 13px; font-weight: 700; color: var(--gold); }
.sc-rate span { color: var(--muted); font-weight: 500; font-size: 12px; }
.sc-meta { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.btn-visit {
  display: block; width: 100%; text-align: center; padding: 11px 16px; border-radius: 999px;
  border: 1.5px solid var(--clay); color: var(--clay); background: var(--card);
  font-family: var(--body); font-weight: 600; font-size: 13.5px; transition: .18s; text-decoration: none;
}
.btn-visit:hover { background: var(--clay); color: #fff; }

/* Grille catégories (home) — icônes rondes */
.home-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-cat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px; text-align: center; transition: .18s; }
.home-cat:hover { border-color: var(--clay); box-shadow: var(--shadow); }
.home-cat .hc-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--clay); margin: 0 auto 12px; }
.home-cat .hc-ic svg { width: 22px; height: 22px; }
.home-cat b { display: block; font-family: var(--display); font-size: 14.5px; font-weight: 700; }
.home-cat .hc-count { font-size: 12px; color: var(--muted); }
.home-cat:nth-child(2) .hc-ic { color: var(--indigo); } .home-cat:nth-child(3) .hc-ic { color: var(--green); }
.home-cat:nth-child(4) .hc-ic { color: #9C6B14; } .home-cat:nth-child(6) .hc-ic { color: var(--indigo); }
.home-cat:nth-child(7) .hc-ic { color: var(--green); } .home-cat:nth-child(8) .hc-ic { color: #9C6B14; }

/* 3 colonnes (listes) */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.rank-item:first-child { border-top: none; }
.rank-num { width: 18px; font-family: var(--display); font-weight: 800; color: var(--muted); flex: none; }
.rank-av { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--clay), var(--gold)); }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-info b { font-size: 13.5px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.rank-info span { font-size: 12px; color: var(--muted); }
.rank-note { font-size: 13px; font-weight: 700; color: var(--gold); flex: none; }
.promo-thumb { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: var(--line); flex: none; }
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* CTA commerçant */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 10px 0 8px; padding: 30px 34px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #23201B, #173A49); }
.cta-band h2 { font-size: 24px; font-weight: 800; color: #fff; }
.cta-band p { color: #C9C2B6; font-size: 14.5px; margin-top: 6px; max-width: 520px; }

/* Grille produits */
.prod-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.prod-card { text-decoration: none; display: flex; flex-direction: column; transition: .2s; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-img { position: relative; height: 130px; background: var(--bg); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--clay); color: #fff; }
.pc-tag-new { background: var(--green); }
.pc-fav { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--clay); box-shadow: 0 1px 3px rgba(28,26,23,.15); }
.pc-fav svg { width: 16px; height: 16px; }
.pc-body { padding: 12px 13px; }
.pc-body b { font-size: 13px; font-weight: 600; display: block; line-height: 1.3; }
.pc-shop { font-size: 11.5px; color: var(--muted); }
.pc-price { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--clay); margin-top: 6px; }
.pc-old { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }

/* Bande de confiance */
.trust-band { border-top: 1px solid var(--line); background: var(--card); margin-top: 20px; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 22px; }
.trust { display: flex; align-items: center; gap: 13px; }
.trust .ti { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #F7E5DD; color: var(--clay-d); font-family: var(--display); font-weight: 800; font-size: 18px; }
.trust b { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; }
.trust span { font-size: 12.5px; color: var(--muted); }

/* Footer riche (home) */
.home-foot { border-top: none; background: #1C1A17; color: #C9C2B6; padding: 44px 0 26px; margin-top: 0; }
.hf-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 0 22px; }
.hf-brand p { font-size: 13px; color: #A59E92; margin-top: 12px; max-width: 280px; }
.hf-col h4 { font-family: var(--display); font-size: 13px; color: #fff; margin-bottom: 12px; }
.hf-col a, .hf-col span { display: block; font-size: 13px; color: #A59E92; margin-bottom: 8px; }
.hf-col a:hover { color: var(--gold); }
.hf-bottom { padding: 22px 22px 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8a8276; }

@media (max-width: 900px) {
  .hh-in { grid-template-columns: 1fr; }
  .hh-art { display: none; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .home-cats { grid-template-columns: 1fr 1fr; }
  .cols3 { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .hf-in { grid-template-columns: 1fr 1fr; }
  .subnav-links { display: none; }
}

/* =============================================================================
   HARMONISATION GLOBALE — cohérence transverse (toutes les pages)
   ============================================================================= */

/* Accessibilité : focus visible homogène au clavier */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px;
}

/* Surfaces cliquables : survol uniforme (lift + ombre) sur toutes les cartes-liens */
.shop-card, .prod-card, .home-cat, .kpi, .formule-card, .cat-card--add {
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .shop-card:hover, .prod-card:hover { transform: none; }
}

/* ---- Utilitaires (à privilégier au lieu des styles « en dur ») ---- */
.u-flex   { display: flex; }
.u-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-center { display: flex; align-items: center; gap: 10px; }
.u-wrap   { flex-wrap: wrap; }
.u-gap-sm { gap: 8px; } .u-gap { gap: 16px; } .u-gap-lg { gap: 24px; }
.u-grow   { flex: 1; }
.u-right  { margin-left: auto; }
.u-mt   { margin-top: 16px; }  .u-mt-lg { margin-top: 28px; }
.u-mb   { margin-bottom: 16px; } .u-mb-lg { margin-bottom: 28px; }
.u-muted { color: var(--muted); }
.u-center-text { text-align: center; }
.u-narrow { max-width: 760px; }
.u-narrow-sm { max-width: 520px; }

/* Graphiques (page Statistiques) */
.chart-head { flex-wrap: wrap; gap: 10px; }
.chart-tabs, .chart-periods { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ct-tab, .cp-tab { border: none; background: transparent; font-family: var(--body); font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.ct-tab.on, .cp-tab.on { background: var(--card); color: var(--clay); box-shadow: var(--shadow-sm); }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.chart-trend { font-size: 13.5px; color: var(--muted); }
.chart-trend b { font-family: var(--display); font-size: 20px; color: var(--ink); }
.chart-trend .tr { font-weight: 700; margin-left: 6px; }
.chart-trend .tr.up { color: var(--green); }
.chart-trend .tr.down { color: var(--clay-d); }
.chart-trend .tr-sub { font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.chart-wrap { position: relative; }
.chart-wrap canvas { width: 100%; display: block; }
.chart-tip { position: absolute; display: none; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 11.5px; padding: 4px 9px; border-radius: 7px; pointer-events: none; white-space: nowrap; z-index: 2; }
.chart-tip b { font-family: var(--display); }

/* Panneau repliable (accordéon) — ex. Inventaire */
.inv-collapse { padding: 0; }
.inv-collapse > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; user-select: none; }
.inv-collapse > summary::-webkit-details-marker { display: none; }
.inv-collapse > summary:hover { background: var(--bg); }
.inv-collapse .inv-sum-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.inv-collapse .inv-hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.inv-collapse .inv-chevron { color: var(--muted); transition: transform .2s; flex: none; }
.inv-collapse[open] .inv-chevron { transform: rotate(180deg); }

/* Sélecteur de dates personnalisé (statistiques) */
.chart-dates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.chart-dates .cd-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chart-dates label { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cd-input { font-family: var(--body); font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.cd-input:focus { outline: none; border-color: var(--clay); box-shadow: var(--ring); }

/* Messages & clients (back-office) */
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--green)); }

/* Titres de page homogènes (back-office & vitrine) */
.page-title { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.page-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* Pages d'erreur (404 / boutique introuvable) */
.err-box { max-width: 460px; margin: 0 auto; text-align: center; }
.err-ic { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; background: #F7E5DD; color: var(--clay-d); }
.err-ic svg { width: 34px; height: 34px; }
.err-code { font-family: var(--display); font-size: 64px; font-weight: 800; color: var(--clay); line-height: 1; margin-bottom: 6px; }
.err-box h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.err-box p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Modale générique ─────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(28,26,23,.45); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.modal-box { background: var(--card); border-radius: 16px; padding: 32px 30px 26px; max-width: 400px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.15); animation: modalIn .2s ease-out; }
@keyframes modalIn { from { opacity:0; transform:scale(.94) translateY(6px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* ── Correction : pas de soulignement sur les boutons ────── */
.btn, a.btn, button, [role="button"], .table-actions a, .chip, .pill { text-decoration: none !important; }

/* ── Inventaire (panneau statistiques) ───────────────────── */
.inv-collapse summary { cursor: pointer; }
.inv-collapse summary::-webkit-details-marker { display: none; }
.inv-collapse summary .inv-chevron { transition: transform .25s; }
.inv-collapse[open] summary .inv-chevron { transform: rotate(180deg); }
.inv-sum-title { display: inline-flex; align-items: center; gap: 10px; }
.inv-hint { font-weight: 400; font-size: 13px; color: var(--muted); font-family: var(--body); }
.dash-row.c-5 { grid-template-columns: repeat(5, 1fr); }
.inv-filters { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.inv-filters label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }

/* ── Notifications dropdown ── */
.notif-dropdown { font-family: var(--body); }
.notif-dropdown a:hover { color: var(--clay); text-decoration: underline; }

/* ── Dropdown action ── */
.ord-select-btn { user-select: none; }
.ord-select-btn:hover { background: var(--clay-d) !important; border-color: var(--clay-d) !important; }
.ord-bulk-dropdown { font-size: 13px; }
.ord-bulk-opt { padding: 8px 14px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .1s; }
.ord-bulk-opt:hover:not(.disabled) { background: #FBF7F0; }
.ord-bulk-opt.disabled { color: var(--muted); cursor: not-allowed; opacity: .6; }

/* ── Barre de filtres produits ── */
.gprod-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.gprod-toolbar-form { display:flex; align-items:center; gap:8px; flex:1; min-width:0; flex-wrap:wrap; }
.gprod-toolbar-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.gprod-toolbar-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--muted); pointer-events:none; }
.gprod-toolbar-search-input { padding-left:34px; width:100%; }
.gprod-toolbar-select { width:auto; min-width:140px; font-size:13px; cursor:pointer; }
.gprod-toolbar-reset { padding:9px 18px; font-size:13px; white-space:nowrap; }
.gprod-toolbar-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.gprod-toolbar-add { font-size:14px; padding:12px 22px; white-space:nowrap; }

/* =============================================================================
   VITRINE BOUTIQUE PUBLIQUE — refonte « grande marketplace » (.bq-*)
   ============================================================================= */
/* Hero boutique : bannière en couverture plein cadre + contenu superposé */
.bq-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.bq-banner { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(120deg, var(--clay), var(--indigo)); background-size: cover; background-position: center; }
.bq-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,26,23,.10), rgba(28,26,23,.45) 55%, rgba(28,26,23,.82)); }
.bq-hero-in { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-end; gap: 18px; padding: 64px 22px 22px; }
.bq-logo { width: 104px; height: 104px; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 18px rgba(0,0,0,.35); overflow: hidden; flex: none; display: grid; place-items: center; }
.bq-logo img { width: 100%; height: 100%; object-fit: cover; }
.bq-logo-ph { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--clay); }
.bq-head { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 2px; }
.bq-head h1 { font-size: 26px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.bq-verified { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; display: grid; place-items: center; }
.bq-slogan { color: rgba(255,255,255,.92); font-size: 14px; margin-top: 4px; max-width: 560px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.bq-stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.bq-stats span { font-size: 13px; color: rgba(255,255,255,.85); }
.bq-stats b { color: #fff; font-family: var(--display); }
.bq-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.bq-actions .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.bq-tabs-wrap { border-bottom: 1px solid var(--line); background: var(--card); }
.bq-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 22px; }
.bq-tab { padding: 13px 16px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.bq-tab:hover { color: var(--ink); }
.bq-tab.on { color: var(--clay); border-bottom-color: var(--clay); }

/* La page boutique exploite une largeur plus grande que le reste du site */
.bq .wrap { max-width: 1520px; }
.bq-body { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 26px 22px 24px; align-items: start; }
.bq-side { display: flex; flex-direction: column; gap: 16px; }
.bq-side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bq-side-title { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; }
.bq-side-card p { font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.bq-coord { margin-bottom: 6px; }
.bq-contact { display: flex; flex-direction: column; gap: 8px; }
.bq-main { min-width: 0; }

/* Barre de filtres compacte (hauteur réduite, tout aligné sur une ligne) */
.bq-filterbar { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 6px; width: fit-content; max-width: 100%; }
.bq-search { flex: 1 1 200px; max-width: 300px; display: flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; height: 34px; }
.bq-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--body); font-size: 13px; color: var(--ink); height: 100%; }
.bq-fselect { width: auto; height: 34px; padding: 0 30px 0 9px; font-size: 12.5px; border-radius: 8px; }
.bq-price { display: flex; align-items: center; gap: 5px; height: 34px; }
.bq-price input { width: 66px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 7px; font-size: 12.5px; background: var(--card); color: var(--ink); font-family: var(--body); }
.bq-price input:focus { outline: none; border-color: var(--clay); box-shadow: var(--ring); }
.bq-price > span { color: var(--muted); font-size: 12.5px; }
.bq-price-unit { font-size: 11px; color: var(--muted); }
.bq-fbtn { height: 34px; padding: 0 16px; font-size: 13px; }
@media (max-width: 560px) { .bq-search { flex-basis: 100%; max-width: none; } .bq-price input { width: 60px; } }

.bq-quickfilters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.bq-section { margin-bottom: 30px; }
.bq-section:last-child { margin-bottom: 0; }
.bq-section .empty { padding: 20px; }
.bq-section .empty p { margin-bottom: 0; }
.bq-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bq-sec-head h2 { font-size: 19px; font-weight: 800; }

/* Cartes produit (.pcard) — densité augmentée */
.pcard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-imgwrap { position: relative; display: block; }
.pcard-img { display: block; height: 130px; background: var(--bg); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-noimg { display: block; width: 100%; height: 100%; background: var(--line); }
.pcard-badge { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; color: #fff; padding: 3px 9px; border-radius: 999px; }
.bg-promo { background: var(--clay); } .bg-vedette { background: var(--gold); color: var(--ink); } .bg-pop { background: var(--indigo); } .bg-new { background: var(--green); }
.pcard-fav { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--clay); box-shadow: 0 1px 3px rgba(28,26,23,.15); }
.pcard-fav svg { width: 16px; height: 16px; }
.pcard-body { padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.pcard-name:hover { color: var(--clay); }
.pcard-cat { font-size: 11px; color: var(--muted); }
.pcard-price { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--clay); margin-top: 1px; }
.pcard-old { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 2px; }
.pcard-rate { color: var(--gold); font-weight: 600; }
.pcard-rate .muted { color: var(--muted); font-weight: 400; }
.pcard-stock.in { color: var(--green); } .pcard-stock.out { color: var(--clay-d); }
.pcard-buy { width: 100%; justify-content: center; margin-top: 7px; font-size: 12.5px; padding: 8px 12px; }

.bq-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* Pagination catalogue */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.pager-btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: .15s; }
.pager-btn:hover { border-color: var(--clay); color: var(--clay); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-pages { display: flex; gap: 4px; }
.pager-num { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: .15s; }
.pager-num:hover { border-color: var(--clay); color: var(--clay); }
.pager-num.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-info { text-align: center; font-size: 12.5px; margin-top: 10px; }

@media (max-width: 860px) {
  .bq-body { grid-template-columns: 1fr; }
  .bq-reviews { grid-template-columns: 1fr; }
  .bq-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 430px) { .pcard-grid { grid-template-columns: 1fr 1fr; } }

/* =============================================================================
   PAGE D'ACCUEIL — refonte « place de marché » (charte GossMarket)
   Structure reprise du modèle, couleurs/typo de la charte uniquement.
   ============================================================================= */

/* Conteneur élargi pour la place de marché : exploite toute la largeur disponible */
.mk-page .wrap { max-width: 1760px; }
/* L'en-tête (topbar) suit la même largeur que le contenu sur ces pages → alignement logo/boutons */
.page-wide .topbar-in { max-width: 1760px; }

/* ---- Hero ---- */
.mk-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.mk-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 34px 22px 40px; }
.mk-hl { font-family: var(--display); font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin: 10px 0 12px; }
.mk-hl em { font-style: normal; color: var(--clay); }
.mk-hero-text > p { font-size: 15px; color: var(--muted); max-width: 460px; line-height: 1.5; margin-bottom: 20px; }
.mk-trustmini { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.mk-tm { display: flex; align-items: center; gap: 11px; }
.mk-tm-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.mk-tm-ic svg { width: 20px; height: 20px; }
.mk-tm b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mk-tm span { font-size: 12px; color: var(--muted); }

/* Visuel hero : podium + sac de marque + puces flottantes (aucune image externe) */
.mk-hero-art { position: relative; display: grid; place-items: center; min-height: 250px; }
.mk-podium { position: relative; width: 300px; height: 250px; display: grid; place-items: center; }
.mk-podium-disc { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff, var(--bg) 70%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mk-bag { position: relative; width: 160px; height: 160px; border-radius: 30px; background: linear-gradient(160deg, #fff, var(--bg)); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); }
.mk-bag svg { width: 110px; height: 110px; }
.mk-fchip { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-family: var(--display); font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; }
.mk-fchip-1 { top: 8px; right: -4px; color: var(--gold); }
.mk-fchip-2 { bottom: 40px; left: -16px; color: var(--indigo); }
.mk-fchip-3 { bottom: 4px; right: 10px; color: var(--clay-d); }

/* ---- Panneau de recherche (sombre, accent indigo de la charte) ---- */
.mk-finder { margin: -34px 0 8px; position: relative; z-index: 5; background: linear-gradient(135deg, #173A49, #1F4B5E); border-radius: 20px; padding: 24px 26px; box-shadow: var(--shadow); }
.mk-finder-head { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.mk-finder-head svg { color: var(--gold); }
.mk-finder-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-field label { font-size: 12px; font-weight: 600; color: #CFE0E6; }
.mk-field input, .mk-field select { height: 42px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; padding: 0 12px; font-family: var(--body); font-size: 13.5px; width: 100%; }
.mk-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CFE0E6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.mk-field select option { color: var(--ink); }
.mk-field input::placeholder { color: #9DB6BF; }
.mk-field input:focus, .mk-field select:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }
.mk-field input:disabled, .mk-field select:disabled { opacity: .55; cursor: not-allowed; }
.mk-price { display: flex; align-items: center; gap: 7px; }
.mk-price input { width: 100%; }
.mk-price span { color: #CFE0E6; font-size: 13px; }
.mk-finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.mk-finder-count { font-size: 13px; color: #CFE0E6; }
.mk-finder-actions { display: flex; gap: 10px; margin-left: auto; }
.mk-finder .mk-reset { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.mk-finder .mk-reset:hover { background: rgba(255,255,255,.1); }

/* ---- En-têtes de section ---- */
.mk-sec { padding: 38px 22px 8px; }
.mk-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.mk-sec-head h2 { font-family: var(--display); font-size: 22px; font-weight: 800; }
.mk-seeall { font-size: 13.5px; font-weight: 600; color: var(--clay); white-space: nowrap; }
.mk-seeall:hover { color: var(--clay-d); }

/* ---- Cartes boutiques (grille 6 colonnes ; s'adapte aux deux sections) ---- */
/* Grilles fluides (auto-fit) : les cartes s'étirent pour combler TOUTE la largeur,
   le nombre de colonnes se calcule selon l'espace disponible (zéro vide à droite). */
.mk-shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.mk-shops-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.mk-shops-16 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Carrousels de section : pagination indépendante, une page de 6 à la fois */
.mk-cnav { display: flex; align-items: center; gap: 10px; }
.mk-cind { font-size: 13px; color: var(--muted); font-weight: 600; min-width: 46px; text-align: center; }
.mk-cbtn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 9px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.mk-cbtn:hover:not(:disabled) { border-color: var(--clay); color: var(--clay); }
.mk-cbtn:disabled { opacity: .45; cursor: not-allowed; }
.mk-cpage { display: none; animation: mk-fade .25s ease; }
.mk-cpage.on { display: grid; }
@keyframes mk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mk-shop { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.mk-shop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mk-shop-banner { height: 78px; background: linear-gradient(135deg, var(--line), #d8cdb8); }
.mk-shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.mk-shop-logo { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--card); background: var(--bg); overflow: hidden; display: grid; place-items: center; }
.mk-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.mk-shop-logo span { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--clay); }
.mk-shop-body { padding: 34px 14px 16px; text-align: center; }
.mk-shop-body h3 { font-size: 15px; font-weight: 700; }
.mk-shop-cat { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.mk-shop-rate { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mk-shop-rate .stars { color: var(--gold); }
.mk-shop-rate .muted { color: var(--muted); font-weight: 500; }
.mk-shop-meta { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.mk-shop-btn { display: block; padding: 9px 0; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink); transition: .15s; }
.mk-shop-btn:hover { border-color: var(--clay); color: var(--clay); }

/* ---- Produits (grille fluide auto-fit) ---- */
.mk-prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; }
.mk-prod { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.mk-prod:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mk-prod-img { position: relative; height: 150px; background: var(--bg); }
.mk-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-prod-badge { position: absolute; top: 10px; left: 10px; background: var(--clay); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 9px; border-radius: 999px; }
.mk-prod-fav { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--clay); box-shadow: 0 1px 3px rgba(28,26,23,.15); }
.mk-prod-fav svg { width: 16px; height: 16px; }
.mk-prod-body { padding: 13px 14px 15px; }
.mk-prod-name { font-size: 13.5px; font-weight: 600; color: var(--ink); display: block; line-height: 1.3; }
.mk-prod-price { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--clay); margin: 7px 0; }
.mk-prod-old { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 7px; }
.mk-prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-prod-rate { font-size: 12px; font-weight: 700; color: var(--gold); }
.mk-prod-rate .muted { color: var(--muted); font-weight: 500; }
.mk-prod-shop { font-size: 11.5px; color: var(--muted); }

/* ---- Bande de confiance (bandeau couleur charte) ---- */
.mk-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 30px 0 40px; padding: 26px 30px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #1F4B5E, #C75B33); }
.mk-trust-item { display: flex; align-items: center; gap: 13px; }
.mk-trust-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.mk-trust-ic svg { width: 22px; height: 22px; }
.mk-trust-item b { display: block; font-family: var(--display); font-size: 14.5px; font-weight: 700; }
.mk-trust-item span { font-size: 12px; color: rgba(255,255,255,.82); }

/* Les grilles boutiques/produits sont en auto-fit : le responsive est automatique.
   On n'ajuste plus que le hero, le finder et la bande de confiance. */
@media (max-width: 900px) {
  .mk-hero-in { grid-template-columns: 1fr; }
  .mk-hero-art { display: none; }
  .mk-finder { margin-top: 8px; }
  .mk-finder-grid { grid-template-columns: 1fr 1fr; }
  .mk-trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mk-shops, .mk-shops-16, .mk-prods { grid-template-columns: 1fr 1fr; }
  .mk-finder-grid { grid-template-columns: 1fr; }
  .mk-trust { grid-template-columns: 1fr; }
}

/* =============================================================================
   PAGE DE RECHERCHE — moteur de découverte d'entreprises
   ============================================================================= */
.rch-top { padding: 28px 22px 6px; }
/* Sur la page recherche, le panneau ne doit pas chevaucher le titre (pas de marge négative) */
.rch-top + .wrap .mk-finder { margin-top: 10px; }
.rch-back { font-size: 13px; font-weight: 600; color: var(--muted); }
.rch-back:hover { color: var(--clay); }
.rch-title { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 12px 0 6px; }
.rch-sub { font-size: 14.5px; color: var(--muted); max-width: 620px; }
.rch-results { padding: 8px 22px 40px; }
.rch-msg { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 12px; padding: 14px 18px; font-size: 14.5px; color: var(--ink); margin: 18px 0 22px; }
.rch-msg b { font-family: var(--display); }

.rch-list { display: flex; flex-direction: column; gap: 16px; }
.rch-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: box-shadow .18s, border-color .18s; }
.rch-card:hover { box-shadow: var(--shadow); border-color: #d8cdb8; }

.rch-shop { display: flex; align-items: center; gap: 16px; }
.rch-logo { width: 58px; height: 58px; flex: none; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.rch-logo img { width: 100%; height: 100%; object-fit: cover; }
.rch-logo span { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--clay); }
.rch-shop-info { min-width: 0; flex: 1; }
.rch-shop-info h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.rch-verif { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.rch-shop-cat { font-size: 12.5px; color: var(--muted); margin: 1px 0 6px; }
.rch-shop-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.rch-note { font-weight: 700; color: var(--gold); }
.rch-shop-cta { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.rch-from { font-size: 12.5px; color: var(--muted); }
.rch-from b { font-family: var(--display); font-size: 15px; color: var(--clay); }

.rch-prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; }
.rch-prod { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.rch-prod:hover { border-color: var(--clay); }
.rch-prod-img { width: 46px; height: 46px; flex: none; border-radius: 8px; background: var(--bg); overflow: hidden; }
.rch-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.rch-prod-info { min-width: 0; }
.rch-prod-info b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.rch-prod-price { font-family: var(--display); font-weight: 800; font-size: 13.5px; color: var(--clay); }
.rch-prod-old { font-family: var(--body); font-weight: 500; font-size: 11.5px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.rch-more { align-self: center; font-size: 13px; font-weight: 600; color: var(--clay); padding: 0 6px; }

@media (max-width: 640px) {
  .rch-shop { flex-wrap: wrap; }
  .rch-shop-cta { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}


/* =============================================================================
   MODALES D'ORIENTATION — choix Client / Boutique (connexion & inscription)
   ============================================================================= */
.gm-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.gm-modal[hidden] { display: none; }
.gm-modal-back { position: absolute; inset: 0; background: rgba(28, 26, 23, .55); backdrop-filter: blur(2px); animation: gm-fade .2s ease; }
.gm-modal-card { position: relative; width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 26px; box-shadow: 0 20px 50px rgba(28,26,23,.25); animation: gm-pop .22s ease; }
.gm-modal-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: none; background: var(--bg); border-radius: 9px; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; transition: .15s; }
.gm-modal-x:hover { background: var(--line); color: var(--ink); }
.gm-modal-title { font-family: var(--display); font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 20px; padding: 0 18px; }
.gm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gm-choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; transition: .16s; }
.gm-choice:hover { border-color: var(--clay); background: #FBEEE7; transform: translateY(-2px); }
.gm-choice--shop:hover { border-color: var(--indigo); background: #ECF2F4; }
.gm-choice-ic { font-size: 34px; line-height: 1; }
.gm-choice b { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); }
.gm-choice-d { font-size: 12px; color: var(--muted); line-height: 1.4; }
@keyframes gm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gm-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 460px) { .gm-choices { grid-template-columns: 1fr; } }

/* Boîte d'affichage du code de sécurité (modale de confirmation d'inscription) */
.code-box { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg); border: 1.5px dashed var(--clay); border-radius: 14px; padding: 18px; }
.code-box-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.code-box-value { font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: .22em; color: var(--clay-d); }

/* Notice « documents incomplets » (modale post-inscription) */
.docs-notice { margin-top: 16px; background: #FBF0DA; border: 1px solid var(--gold); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.docs-notice b { font-family: var(--display); font-size: 14px; color: #9C6B14; }
.docs-notice p { font-size: 12.5px; color: #7d5810; line-height: 1.5; margin-top: 6px; }

/* Note « documents facultatifs » + libellé facultatif (inscription) */
.docs-optional-note { background: #ECF2F4; border: 1px solid var(--indigo); border-left: 4px solid var(--indigo); border-radius: 12px; padding: 12px 15px; font-size: 13px; color: #1F4B5E; line-height: 1.5; margin-bottom: 18px; }
.lbl-opt { font-weight: 500; color: var(--muted); font-size: 12px; }

/* =============================================================================
   BOUTON RETOUR GLOBAL — inline, en haut à gauche (history.back)
   ============================================================================= */
.gm-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-family: var(--body); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.gm-back:hover { border-color: var(--clay); color: var(--clay); }
.gm-back[hidden] { display: none; }
/* Bloc du bouton sur les pages publiques (au-dessus du contenu) */
.gm-back-wrap { padding-top: 16px; }
/* En en-tête d'espace (client) : petite marge sous le bouton */
.client-header .gm-back, .vendor-top .gm-back { margin-bottom: 10px; }

/* =============================================================================
   CHATBOT CLIENT « GOSS »
   ============================================================================= */
#goss { position: fixed; right: 22px; bottom: 22px; z-index: 95; }
.goss-bubble { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--clay), var(--clay-d)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .15s; }
.goss-bubble:hover { transform: translateY(-2px) scale(1.04); }
.goss-bubble svg { width: 26px; height: 26px; }
.goss-panel { position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 130px); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(28,26,23,.28); }
.goss-panel[hidden] { display: none; }
.goss-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  background: linear-gradient(135deg, #1F4B5E, var(--clay)); color: #fff; }
.goss-ava { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.goss-id { display: flex; flex-direction: column; line-height: 1.15; }
.goss-id b { font-family: var(--display); font-size: 15px; }
.goss-id span { font-size: 11.5px; opacity: .85; }
.goss-x { margin-left: auto; background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.goss-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.goss-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.goss-bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.goss-user { align-self: flex-end; background: var(--clay); color: #fff; border-bottom-right-radius: 4px; }
.goss-cards { display: flex; flex-direction: column; gap: 7px; align-self: flex-start; max-width: 92%; }
.goss-card { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 11px; text-decoration: none; transition: border-color .15s; }
.goss-card:hover { border-color: var(--clay); }
.goss-card-n { font-size: 13px; font-weight: 600; color: var(--ink); }
.goss-card-p { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--clay); }
.goss-card-p s { font-family: var(--body); font-weight: 500; color: var(--muted); margin-left: 5px; }
.goss-card-s { font-size: 11.5px; color: var(--muted); }
.goss-links { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; }
.goss-link { font-size: 12.5px; font-weight: 600; color: var(--clay); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.goss-link:hover { border-color: var(--clay); background: #FBEEE7; }
.goss-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.goss-form input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
  font-family: var(--body); font-size: 13.5px; background: var(--bg); color: var(--ink); }
.goss-form input:focus { outline: none; border-color: var(--clay); box-shadow: var(--ring); }
.goss-form button { width: 40px; height: 40px; flex: none; border: none; border-radius: 50%; cursor: pointer;
  background: var(--clay); color: #fff; display: grid; place-items: center; }
.goss-form button svg { width: 17px; height: 17px; }
.goss-typing { display: inline-flex; gap: 4px; }
.goss-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: goss-bounce 1s infinite; }
.goss-typing i:nth-child(2) { animation-delay: .15s; } .goss-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes goss-bounce { 0%,60%,100%{ transform: translateY(0); opacity:.5; } 30%{ transform: translateY(-4px); opacity:1; } }
@media (max-width: 560px) { #goss { right: 14px; bottom: 14px; } .goss-panel { bottom: 66px; } }

/* Bannière « commandes en attente » (dashboard vendeur) */
.cmd-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 18px; border-radius: 12px; text-decoration: none; background: #FBF0DA; border: 1px solid var(--gold); border-left: 4px solid var(--gold); color: #7d5810; transition: .15s; }
.cmd-alert:hover { background: #f8e8c8; }
.cmd-alert-ic { font-size: 20px; }
.cmd-alert b { color: #9C6B14; }
.cmd-alert-go { margin-left: auto; font-weight: 700; color: var(--clay); white-space: nowrap; }

/* Page Paramètres boutique — formulaire encadré + barre d'enregistrement collante */
.params { max-width: 920px; }
.params-card { padding: 22px 24px; }
.params-card .form-section:first-child { padding-top: 0; }
.params-save { position: sticky; bottom: 16px; z-index: 6; display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(28,26,23,.12); }
