/* ==========================================================================
   StockExpress — Vitrine fournisseur (/s/:user_id). Complète home.css.
   ========================================================================== */

.se-vitrine { --se-primary: #0F766E; --se-primary-dark: #134E4A; --se-accent: #FACC15; --se-border: #E2E8F0; --se-muted: #64748B; }

/* ---------- En-tête / bannière ------------------------------------------- */
.se-vh { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 1.5rem; }
.se-vh-banner {
    height: 180px; background-size: cover; background-position: center;
    background-image: radial-gradient(1000px 300px at 80% -20%, rgba(250,204,21,.18), transparent 60%),
                      linear-gradient(135deg, var(--se-primary) 0%, var(--se-primary-dark) 100%);
}
.se-vh-body {
    background: #fff; border: 1px solid var(--se-border); border-top: 0;
    border-radius: 0 0 18px 18px; padding: 1.25rem 1.5rem;
    display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap;
}
.se-vh-logo {
    width: 104px; height: 104px; border-radius: 18px; margin-top: -68px; flex: none;
    background: #fff; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(2,6,23,.12);
    object-fit: cover; display: grid; place-items: center;
    color: var(--se-primary); font-weight: 800; font-size: 2.2rem; overflow: hidden;
}
.se-vh-main { flex: 1 1 280px; }
.se-vh-name { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: #0f172a; line-height: 1.15; margin: 0; }
.se-vh-sub { color: var(--se-muted); font-size: .9rem; margin: .25rem 0 0; }
.se-vh-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.se-vbadge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .25rem .7rem; }
.se-vbadge.verified { background: #ecfdf5; color: var(--se-primary); border: 1px solid #a7f3d0; }
.se-vbadge.rating { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.se-vbadge i { color: inherit; }

/* Stats à droite de l'en-tête */
.se-vh-stats { display: flex; gap: 1.5rem; flex: none; }
.se-vh-stat { text-align: center; }
.se-vh-stat .n { font-size: 1.6rem; font-weight: 800; color: var(--se-primary); line-height: 1; }
.se-vh-stat .l { font-size: .75rem; color: var(--se-muted); margin-top: .2rem; }

/* ---------- Contact / à propos ------------------------------------------- */
.se-vcard { background: #fff; border: 1px solid var(--se-border); border-radius: 16px; padding: 1.25rem; height: 100%; }
.se-vcard h2 { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: .6rem; }
.se-vcard .se-desc { color: #475569; line-height: 1.65; font-size: .92rem; }
.se-vcontact { list-style: none; padding: 0; margin: .5rem 0 0; }
.se-vcontact li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .9rem; color: #334155; }
.se-vcontact li i { color: var(--se-primary); width: 18px; text-align: center; }
.se-vcontact a { color: var(--se-primary); text-decoration: none; }
.se-vcontact a:hover { text-decoration: underline; }

/* ---------- Section titre ------------------------------------------------ */
.se-vsec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.se-vsec-head h2 { font-weight: 800; color: #0f172a; margin: 0; }
.se-vsec-head a { text-decoration: none; color: var(--se-primary); font-weight: 600; white-space: nowrap; }

/* ---------- Avis : distribution ------------------------------------------ */
.se-rating-dist { max-width: 420px; flex: 1 1 280px; }
.se-rating-dist .row-r { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.se-rating-dist .bar { flex: 1; height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.se-rating-dist .bar > span { display: block; height: 100%; background: var(--se-accent); }
.se-review { background: #fff; border: 1px solid var(--se-border); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.se-review .when { color: var(--se-muted); font-size: .8rem; }

[dir="rtl"] .se-vcontact li, [dir="rtl"] .se-rating-dist .row-r { text-align: right; }
