/* ═══════════════════════════════════════════════════════════════
   ABIDJAN MARKET — Styles globaux v2
   #004202 Forest Green | #FF8A00 Orange | #FFFFFF White
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
    --am-green:        #004202;
    --am-green-mid:    #005a03;
    --am-green-hover:  #003301;
    --am-green-light:  #d4e8d4;
    --am-green-pale:   #f0f7f0;
    --am-orange:       #FF8A00;
    --am-orange-dark:  #e07a00;
    --am-orange-light: #fff3e0;
    --am-white:        #FFFFFF;
    --am-body-bg:      #ffffff;
    --am-text:         #1a1a1a;
    --am-text-muted:   #6b7280;
    --am-border:       #e5e7eb;
    --am-radius:       12px;
    --am-shadow:       0 2px 12px rgba(0,66,2,.08);
    --am-shadow-hover: 0 8px 24px rgba(0,66,2,.14);

    /* Admin dashboard */
    --adm-bg:          #001800;
    --adm-hover:       #002500;
    --adm-text:        #a5c5a5;
    --adm-active-bar:  #FF8A00;
    --adm-topbar:      #004202;
    --adm-content-bg:  #f2f5f2;

    /* Vendor dashboard */
    --vnd-bg:          #001600;
    --vnd-hover:       #002200;
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
    color: var(--am-text);
    background: var(--am-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { transition: color .18s; }
img { max-width: 100%; height: auto; }

/* ─── Bootstrap Overrides ─── */
.bg-success                 { background-color: var(--am-green) !important; }
.btn-success                { background-color: var(--am-green) !important; border-color: var(--am-green) !important; }
.btn-success:hover          { background-color: var(--am-green-hover) !important; border-color: var(--am-green-hover) !important; }
.btn-outline-success        { color: var(--am-green) !important; border-color: var(--am-green) !important; }
.btn-outline-success:hover  { background-color: var(--am-green) !important; color: #fff !important; }
.text-success               { color: var(--am-green) !important; }
.border-success             { border-color: var(--am-green) !important; }
.badge.bg-success           { background-color: var(--am-green) !important; }
.form-control:focus,
.form-select:focus          { border-color: var(--am-green); box-shadow: 0 0 0 .2rem rgba(0,66,2,.15); }
.page-link                  { color: var(--am-green); }
.page-item.active .page-link{ background-color: var(--am-green); border-color: var(--am-green); }
.card                       { border-radius: var(--am-radius) !important; }
.form-label                 { font-weight: 500; font-size: .875rem; color: #374151; }

/* Orange utility */
.btn-am-orange              { background: var(--am-orange); border: none; color: #fff; border-radius: 8px; padding: .55rem 1.2rem; font-weight: 700; transition: background .2s; }
.btn-am-orange:hover        { background: var(--am-orange-dark); color: #fff; }
.text-orange                { color: var(--am-orange) !important; }
.bg-orange                  { background: var(--am-orange) !important; }

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar-main {
    background: var(--am-green) !important;
    padding: .65rem 0;
    position: sticky; top: 0; z-index: 1040;
    box-shadow: 0 2px 10px rgba(0,40,0,.35);
}
.navbar-main .navbar-brand {
    color: #fff !important;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -.3px;
}
.navbar-main .navbar-brand span { color: var(--am-orange); }
.navbar-main .search-bar .form-control {
    border: none; border-radius: 8px 0 0 8px;
    height: 38px; font-size: .88rem;
}
.navbar-main .search-bar .btn-search {
    background: var(--am-orange); border: none; color: #fff;
    border-radius: 0 8px 8px 0; padding: 0 14px;
}
.navbar-main .nav-icon {
    color: rgba(255,255,255,.85); background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px; padding: 5px 11px; font-size: .9rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
    transition: all .2s;
}
.navbar-main .nav-icon:hover { background: rgba(255,255,255,.22); color: #fff; }
.navbar-main .nav-icon .badge { background: var(--am-orange) !important; font-size: .65rem; }
.navbar-main .dropdown-menu { border: none; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 10px; margin-top: 6px; }
.navbar-main .dropdown-item:hover { background: var(--am-green-pale); color: var(--am-green); }
.navbar-main .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-main .navbar-toggler-icon { filter: invert(1); }

/* Secondary nav bar */
.navbar-secondary {
    background: var(--am-green-mid);
    border-bottom: 2px solid rgba(255,138,0,.25);
    padding: 0;
}
.navbar-secondary .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    padding: .45rem .85rem !important;
    white-space: nowrap;
    border-radius: 6px;
    transition: color .18s, background .18s;
}
.navbar-secondary .nav-link:hover  { background: #fff !important; color: var(--am-green) !important; }
.navbar-secondary .nav-link.active { background: #fff !important; color: var(--am-green) !important; }

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--am-green) 0%, #006604 60%, #003a01 100%);
    display: flex; align-items: center; overflow: hidden;
}
.hero-section .hero-bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .18; mix-blend-mode: overlay;
}
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(0,66,2,.88) 35%, rgba(0,66,2,.2) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; background: var(--am-orange);
    color: #fff; font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 12px; border-radius: 20px; margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    font-weight: 900; line-height: 1.12; color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero-title .hl { color: var(--am-orange); }
.hero-subtitle { font-size: 1.08rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-btn {
    display: inline-block;
    background: var(--am-orange); border: none;
    border-radius: 50px; padding: .7rem 2rem;
    font-weight: 800; color: #fff; font-size: .98rem;
    box-shadow: 0 4px 16px rgba(255,138,0,.4);
    transition: all .3s; text-decoration: none;
}
.hero-btn:hover { background: var(--am-orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255,138,0,.5); }
.hero-btn-outline {
    display: inline-block;
    background: transparent; border: 2px solid rgba(255,255,255,.45);
    border-radius: 50px; padding: .65rem 1.8rem;
    font-weight: 700; color: #fff; font-size: .96rem;
    transition: all .3s; text-decoration: none;
}
.hero-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.hero-stat-num  { font-size: 1.6rem; font-weight: 900; color: var(--am-orange); line-height: 1; }
.hero-stat-label{ font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }

/* ═══════════════════════════════════════════════
   PARTNER LOGOS SCROLLER
   ═══════════════════════════════════════════════ */
.partner-scroller { background: var(--am-green-pale); overflow: hidden; padding: 14px 0; border-top: 1px solid var(--am-green-light); border-bottom: 1px solid var(--am-green-light); }
.partner-track { display: flex; align-items: center; gap: 36px; animation: scrollPartners 28s linear infinite; width: max-content; }
.partner-scroller:hover .partner-track { animation-play-state: paused; }
.partner-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--am-green); font-weight: 700; font-size: .85rem; opacity: .7; transition: opacity .2s; min-width: 140px; }
.partner-item:hover { opacity: 1; color: var(--am-green); }
.partner-item .p-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--am-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; }
.partner-item .p-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════
   5-IMAGE PROMO CAROUSEL
   ═══════════════════════════════════════════════ */
.carousel-5-wrapper { position: relative; }
.carousel-5-track { display: flex; gap: 12px; overflow: hidden; }
.carousel-5-slide {
    flex: 0 0 calc(20% - 10px); min-width: 0;
    border-radius: 12px; overflow: hidden;
    position: relative; cursor: pointer;
    transition: transform .25s;
}
.carousel-5-slide:hover { transform: translateY(-4px); }
.carousel-5-slide img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.carousel-5-slide .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,66,2,.75) 0%, transparent 55%);
    display: flex; align-items: flex-end; padding: .9rem;
}
.carousel-5-slide .slide-label { color: #fff; font-weight: 700; font-size: .82rem; line-height: 1.3; }
.carousel-5-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    background: var(--am-orange); border: none; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: background .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.carousel-5-btn:hover { background: var(--am-orange-dark); }
.carousel-5-btn.prev { left: -16px; }
.carousel-5-btn.next { right: -16px; }

/* ═══════════════════════════════════════════════
   VIDEO AD SPACE
   ═══════════════════════════════════════════════ */
.video-ad-wrap {
    border-radius: 16px; overflow: hidden;
    position: relative; aspect-ratio: 16/9;
    background: #001a00;
    box-shadow: var(--am-shadow-hover);
}
.video-ad-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--am-green) 0%, #001a00 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 2rem;
}
.play-btn {
    width: 76px; height: 76px;
    background: rgba(255,138,0,.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.1rem; cursor: pointer;
    box-shadow: 0 0 0 10px rgba(255,138,0,.2);
    transition: all .3s; margin-bottom: 1rem;
}
.play-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255,138,0,.25); }
.ad-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; opacity: .5; }

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */
.section-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }
.section-hdr::before { content: ''; width: 4px; height: 28px; background: var(--am-orange); border-radius: 2px; flex-shrink: 0; }
.section-hdr h2 { font-size: 1.35rem; font-weight: 800; color: var(--am-green); margin: 0; }
.section-hdr .badge-new { background: var(--am-orange); color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 2px 8px; border-radius: 3px; }

/* ═══════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════ */
.product-card {
    border: 1px solid #efefef;
    border-radius: var(--am-radius) !important;
    transition: all .25s;
    background: #fff;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--am-shadow-hover) !important;
    border-color: var(--am-green-light);
}
.product-img-hover { transition: transform .4s ease; display: block; }
.product-card:hover .product-img-hover { transform: scale(1.05); }
.product-price { color: var(--am-green); font-weight: 800; font-size: 1.05rem; }
.product-price-old { color: #bbb; text-decoration: line-through; font-size: .83rem; }
.add-to-cart-btn {
    background: var(--am-green); color: #fff;
    border: none; border-radius: 8px;
    padding: 6px 14px; font-size: .82rem; font-weight: 700;
    transition: background .2s;
}
.add-to-cart-btn:hover { background: var(--am-orange); color: #fff; }
.wishlist-form button { width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════════════
   PACK STAR BADGE — étoiles du pack de commission,
   affichées sur le logo boutique / l'image produit
   (indépendant de la note client / avis)
   ═══════════════════════════════════════════════ */
.pack-star-badge {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    font-size: .7rem;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 1px 5px rgba(0,0,0,.3);
}
.pack-star-badge--image  { left: 8px; bottom: 8px; }
.pack-star-badge--avatar { right: -3px; bottom: -3px; border: 2px solid #fff; font-size: .6rem; padding: 0 4px; }
.pack-star-badge--tiny   { right: -2px; bottom: -2px; border: 2px solid #fff; font-size: .5rem; padding: 0 3px; }

/* ═══════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════ */
.blog-content { line-height: 1.85; font-size: 1.05rem; }
.blog-content h2, .blog-content h3 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; color: var(--am-green); }
.blog-content img { max-width: 100%; border-radius: 8px; }
.product-description { line-height: 1.7; }
.product-description img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer { background: #001400; color: rgba(255,255,255,.65); }
.footer-top { padding: 3.5rem 0 2rem; }
.site-footer .f-brand { color: #fff; font-size: 1.5rem; font-weight: 900; }
.site-footer .f-brand span { color: var(--am-orange); }
.site-footer .f-about { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.7; margin-top: .75rem; }
.site-footer h6 { color: rgba(255,255,255,.9); font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: 1px; margin-bottom: 1rem; }
.site-footer .f-link { color: rgba(255,255,255,.5); text-decoration: none; font-size: .87rem; display: block; margin-bottom: 6px; transition: color .2s; }
.site-footer .f-link:hover { color: var(--am-orange); }
.f-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%; color: rgba(255,255,255,.65); margin-right: 6px; transition: all .2s; font-size: 1rem; }
.f-social a:hover { background: var(--am-orange); color: #fff; }
.footer-bottom { background: rgba(0,0,0,.3); padding: 1rem 0; font-size: .78rem; }
.pay-badge { display: inline-block; background: rgba(255,255,255,.1); padding: 3px 8px; border-radius: 4px; font-size: .7rem; color: rgba(255,255,255,.55); margin: 2px; }

/* Newsletter bar */
.newsletter-bar { background: linear-gradient(90deg, var(--am-green) 0%, #007b05 100%); padding: 2.5rem 0; }
.newsletter-bar h4 { color: #fff; font-weight: 800; margin-bottom: .3rem; }
.newsletter-bar p { color: rgba(255,255,255,.75); margin: 0; font-size: .9rem; }
.newsletter-form .form-control { border: none; border-radius: 8px 0 0 8px; padding: .7rem 1rem; font-size: .9rem; }
.newsletter-form .btn { border-radius: 0 8px 8px 0; background: var(--am-orange); border-color: var(--am-orange); color: #fff; font-weight: 700; padding: .7rem 1.4rem; }

/* ═══════════════════════════════════════════════
   ADMIN — WORDPRESS-LIKE LAYOUT
   ═══════════════════════════════════════════════ */
body.admin-body { background: var(--adm-content-bg); padding-bottom: 0 !important; }

/* Layout wrapper */
.wp-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.wp-sidebar {
    width: 244px; min-width: 244px;
    background: var(--adm-bg);
    position: fixed; top: 0; left: 0;
    height: 100vh; overflow-y: auto;
    z-index: 1030; transition: transform .3s;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent;
}
.wp-sidebar::-webkit-scrollbar { width: 3px; }
.wp-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }

.wp-sidebar-logo {
    padding: 1.1rem 1.3rem;
    background: var(--am-green);
    display: flex; align-items: center; gap: 10px;
}
.wp-sidebar-logo .s-name { color: #fff; font-weight: 900; font-size: 1.05rem; }
.wp-sidebar-logo .s-name span { color: var(--am-orange); }
.wp-sidebar-logo .s-badge { background: var(--am-orange); color: #fff; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 1px 6px; border-radius: 3px; }

.wp-nav { padding: .4rem 0; }
.wp-nav-section { padding: .7rem 1rem .2rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.25); }
.wp-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: .6rem 1.2rem;
    color: var(--adm-text);
    text-decoration: none; font-size: .87rem; font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.wp-nav a:hover   { background: var(--adm-hover); color: #fff; border-left-color: rgba(255,255,255,.2); }
.wp-nav a.active  { background: rgba(255,138,0,.1); color: #fff; border-left-color: var(--adm-active-bar); }
.wp-nav a i       { font-size: .98rem; min-width: 18px; }
.wp-nav .nav-badge{ background: var(--am-orange); font-size: .62rem; margin-left: auto; }

/* Content area */
.wp-content { margin-left: 244px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Top bar */
.wp-topbar {
    background: var(--adm-topbar);
    color: rgba(255,255,255,.85);
    padding: .55rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; position: sticky; top: 0; z-index: 1020;
}
.wp-topbar nav { --bs-breadcrumb-divider: '>'; }
.wp-topbar .breadcrumb { margin: 0; font-size: .8rem; }
.wp-topbar .breadcrumb-item { color: rgba(255,255,255,.6); }
.wp-topbar .breadcrumb-item.active { color: #fff; }
.wp-topbar .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.wp-topbar-right { display: flex; align-items: center; gap: 14px; }
.wp-topbar-right a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .82rem; }
.wp-topbar-right a:hover { color: #fff; }

/* Page content */
.wp-page { padding: 1.6rem 2rem; flex: 1; }
.wp-page-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; padding-bottom: .85rem;
    border-bottom: 2px solid var(--am-green-light);
}
.wp-page-hdr h1 { font-size: 1.35rem; font-weight: 800; color: var(--am-green); margin: 0; display: flex; align-items: center; gap: 8px; }

/* Stat cards */
.wp-stat {
    background: #fff; border-radius: 12px;
    padding: 1.25rem 1.4rem;
    border: 1px solid #e6ede6;
    display: flex; align-items: center; gap: 1.1rem;
    box-shadow: var(--am-shadow);
    transition: all .2s;
}
.wp-stat:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-hover); }
.wp-stat .s-icon { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; flex-shrink: 0; }
.wp-stat .s-icon.green  { background: #e6f2e6; color: var(--am-green); }
.wp-stat .s-icon.orange { background: #fff3e0; color: var(--am-orange); }
.wp-stat .s-icon.blue   { background: #e3f0ff; color: #2563eb; }
.wp-stat .s-icon.red    { background: #fde8e8; color: #dc2626; }
.wp-stat .s-icon.purple { background: #f3e8ff; color: #7c3aed; }
.wp-stat .s-icon.teal   { background: #d1fae5; color: #065f46; }
.wp-stat .s-val  { font-size: 1.75rem; font-weight: 900; line-height: 1; color: var(--am-text); }
.wp-stat .s-lbl  { font-size: .77rem; color: var(--am-text-muted); margin-top: 2px; }
.wp-stat .s-chg  { font-size: .72rem; font-weight: 700; }
.wp-stat .s-chg.up   { color: #16a34a; }
.wp-stat .s-chg.down { color: #dc2626; }

/* WP Card */
.wp-card { background: #fff; border-radius: 12px; border: 1px solid #e6ede6; box-shadow: var(--am-shadow); overflow: hidden; }
.wp-card-hdr {
    padding: .9rem 1.2rem; background: #fff;
    border-bottom: 1px solid #f0f4f0;
    display: flex; align-items: center; gap: 8px;
}
.wp-card-hdr h5 { margin: 0; font-weight: 700; font-size: .93rem; color: var(--am-green); flex: 1; }
.wp-card-hdr .hdr-actions { display: flex; gap: 6px; }
.wp-card .table thead th {
    background: #f8faf8; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--am-text-muted);
    border-bottom: 2px solid #eaf2ea;
}
.wp-card .table td { font-size: .87rem; vertical-align: middle; border-color: #f5f8f5; }

/* WP Buttons */
.btn-wp-add  { background: var(--am-green); color: #fff; border: none; border-radius: 7px; padding: 6px 16px; font-size: .84rem; font-weight: 700; }
.btn-wp-add:hover  { background: var(--am-green-hover); color: #fff; }
.btn-wp-warn { background: var(--am-orange); color: #fff; border: none; border-radius: 7px; padding: 6px 16px; font-size: .84rem; font-weight: 700; }
.btn-wp-warn:hover { background: var(--am-orange-dark); color: #fff; }
.btn-wp-ghost{ background: transparent; color: var(--am-green); border: 1.5px solid var(--am-green-light); border-radius: 7px; padding: 5px 14px; font-size: .83rem; }
.btn-wp-ghost:hover { background: var(--am-green-pale); border-color: var(--am-green); color: var(--am-green); }

/* ═══════════════════════════════════════════════
   VENDOR DASHBOARD
   ═══════════════════════════════════════════════ */
body.vendor-body { background: #f2f6f2; padding-bottom: 0 !important; }
.vnd-layout { display: flex; min-height: 100vh; }

.vnd-sidebar {
    width: 224px; min-width: 224px;
    background: var(--vnd-bg);
    position: fixed; top: 0; left: 0;
    height: 100vh; overflow-y: auto;
    z-index: 1030; transition: transform .3s;
}
.vnd-sidebar-logo { padding: 1rem 1.1rem; background: var(--am-green); }
.vnd-sidebar-logo .s-name { color: #fff; font-weight: 900; font-size: .95rem; }
.vnd-sidebar-logo .s-name span { color: var(--am-orange); }
.vnd-sidebar-logo .s-store { color: rgba(255,255,255,.6); font-size: .75rem; margin-top: 2px; }

.vnd-nav { padding: .4rem 0; }
.vnd-nav .nav-section { padding: .7rem 1rem .2rem; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.22); }
.vnd-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: .58rem 1.1rem;
    color: #9cbb9c; text-decoration: none;
    font-size: .86rem; font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.vnd-nav a:hover  { background: var(--vnd-hover); color: #fff; }
.vnd-nav a.active { background: rgba(255,138,0,.1); color: #fff; border-left-color: var(--am-orange); }
.vnd-nav a i { font-size: .94rem; min-width: 16px; }
.vnd-nav .nav-badge { background: var(--am-orange); font-size: .62rem; margin-left: auto; }

.vnd-content { margin-left: 224px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.vnd-topbar {
    background: var(--am-green); color: #fff;
    padding: .6rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .83rem; position: sticky; top: 0; z-index: 1020;
}
.vnd-topbar .t-title { font-weight: 700; font-size: .95rem; }
.vnd-topbar .t-actions { display: flex; align-items: center; gap: 12px; }
.vnd-topbar .t-actions a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.vnd-topbar .t-actions a:hover { color: #fff; }
.vnd-page { padding: 1.4rem 1.6rem; flex: 1; }
.vnd-page-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.4rem; padding-bottom: .75rem;
    border-bottom: 2px solid var(--am-green-light);
}
.vnd-page-hdr h1 { font-size: 1.25rem; font-weight: 800; color: var(--am-green); margin: 0; display: flex; align-items: center; gap: 8px; }

/* Vendor stat */
.vnd-stat { background: #fff; border-radius: 12px; padding: 1.1rem 1.3rem; border: 1px solid #e6ede6; display: flex; align-items: center; gap: 1rem; box-shadow: var(--am-shadow); transition: all .2s; }
.vnd-stat:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-hover); }
.vnd-stat .v-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.vnd-stat .v-icon.green  { background: #e6f2e6; color: var(--am-green); }
.vnd-stat .v-icon.orange { background: #fff3e0; color: var(--am-orange); }
.vnd-stat .v-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.vnd-stat .v-icon.red    { background: #fee2e2; color: #dc2626; }
.vnd-stat .v-val  { font-size: 1.5rem; font-weight: 900; line-height: 1; color: var(--am-text); }
.vnd-stat .v-lbl  { font-size: .76rem; color: var(--am-text-muted); margin-top: 1px; }

.vnd-card { background: #fff; border-radius: 12px; border: 1px solid #e6ede6; box-shadow: var(--am-shadow); overflow: hidden; }
.vnd-card-hdr { padding: .85rem 1.2rem; border-bottom: 1px solid #f0f5f0; display: flex; align-items: center; gap: 8px; }
.vnd-card-hdr h5 { margin: 0; font-weight: 700; font-size: .92rem; color: var(--am-green); flex: 1; }

/* ═══════════════════════════════════════════════
   CHAT UI
   ═══════════════════════════════════════════════ */
.chat-wrap { display: flex; height: 520px; border-radius: 12px; overflow: hidden; border: 1px solid #e6ede6; }
.chat-list  { width: 260px; border-right: 1px solid #e6ede6; overflow-y: auto; background: #fafafa; flex-shrink: 0; }
.chat-list-item { padding: .75rem 1rem; border-bottom: 1px solid #f0f5f0; cursor: pointer; transition: background .15s; }
.chat-list-item:hover, .chat-list-item.active { background: var(--am-green-pale); }
.chat-list-item .c-name  { font-size: .87rem; font-weight: 700; color: var(--am-text); }
.chat-list-item .c-last  { font-size: .77rem; color: var(--am-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread { flex: 1; display: flex; flex-direction: column; background: #fff; }
.chat-t-hdr  { padding: .75rem 1rem; background: var(--am-green); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.chat-body   { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 10px; background: #f9fdf9; }
.chat-bubble { max-width: 72%; padding: .6rem .9rem; border-radius: 12px; font-size: .88rem; line-height: 1.5; }
.chat-bubble.sent { background: var(--am-green); color: #fff; align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.chat-bubble.recv { background: #fff; color: var(--am-text); border: 1px solid #e0e8e0; align-self: flex-start; border-radius: 12px 12px 12px 2px; }
.chat-bubble .b-time { font-size: .65rem; opacity: .6; margin-top: 4px; text-align: right; }
.chat-footer { padding: .75rem; border-top: 1px solid #e6ede6; display: flex; gap: 8px; background: #fff; }
.chat-footer input { flex: 1; border: 1px solid #e0e0e0; border-radius: 20px; padding: .5rem 1rem; font-size: .88rem; outline: none; }
.chat-footer input:focus { border-color: var(--am-green); }
.chat-send { background: var(--am-green); border: none; color: #fff; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.chat-send:hover { background: var(--am-orange); }

/* ═══════════════════════════════════════════════
   RECEIPT PRINT
   ═══════════════════════════════════════════════ */
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; padding: 0 !important; }
    .wp-layout, .vnd-layout { display: block; }
    .wp-sidebar, .vnd-sidebar, .wp-topbar, .vnd-topbar { display: none !important; }
    .wp-content, .vnd-content { margin: 0 !important; }
    .receipt-paper { box-shadow: none !important; border: none !important; }
}
.receipt-paper { background: #fff; border-radius: 12px; border: 1px solid #e6ede6; padding: 2.5rem; max-width: 760px; margin: 0 auto; }
.receipt-logo { font-size: 1.5rem; font-weight: 900; color: var(--am-green); }
.receipt-logo span { color: var(--am-orange); }
.receipt-divider { border-top: 2px dashed var(--am-green-light); margin: 1rem 0; }
.receipt-table th { background: var(--am-green-pale); color: var(--am-green); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.receipt-total { font-size: 1.2rem; font-weight: 900; color: var(--am-green); }

/* ═══════════════════════════════════════════════
   STATIC PAGES
   ═══════════════════════════════════════════════ */
.page-hero { background: linear-gradient(135deg, var(--am-green) 0%, #007a05 100%); color: #fff; padding: 3.5rem 0; }
.page-hero h1 { font-weight: 900; font-size: 2.2rem; }
.page-hero .lead { opacity: .82; }
.page-section { padding: 3rem 0; }
.page-section.alt { background: var(--am-green-pale); }
.icon-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1rem; }
.icon-circle.g { background: var(--am-green-light); color: var(--am-green); }
.icon-circle.o { background: var(--am-orange-light); color: var(--am-orange); }
.step-card { display: flex; gap: 1rem; padding: 1.5rem; background: #fff; border-radius: 12px; border: 1px solid var(--am-green-light); margin-bottom: 1rem; transition: all .2s; }
.step-card:hover { box-shadow: var(--am-shadow-hover); border-color: var(--am-green); }
.step-num { width: 42px; height: 42px; min-width: 42px; background: var(--am-green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; }
.plan-card { border: 2px solid var(--am-green-light); border-radius: 14px; padding: 2rem; transition: all .2s; }
.plan-card.featured { border-color: var(--am-orange); background: var(--am-orange-light); }
.plan-card:hover { box-shadow: var(--am-shadow-hover); border-color: var(--am-green); }
.plan-card .plan-price { font-size: 2rem; font-weight: 900; color: var(--am-green); }
.plan-card .plan-price span { font-size: .9rem; font-weight: 400; color: var(--am-text-muted); }
.plan-card.featured .plan-price { color: var(--am-orange); }

/* ═══════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════ */
.s-pending    { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-paid       { background: #d1fae5; color: #065f46; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-processing { background: #dbeafe; color: #1e40af; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-shipped    { background: #ede9fe; color: #5b21b6; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-delivered  { background: #d1fae5; color: #065f46; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-cancelled  { background: #fee2e2; color: #991b1b; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-approved   { background: #d1fae5; color: #065f46; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }
.s-rejected   { background: #fee2e2; color: #991b1b; border-radius: 6px; padding: 3px 8px; font-size: .77rem; font-weight: 700; }

/* ═══════════════════════════════════════════════
   MOBILE — APP-LIKE EXPERIENCE
   ═══════════════════════════════════════════════ */
@media (max-width: 991px) {
    .wp-sidebar  { transform: translateX(-100%); }
    .wp-sidebar.open  { transform: translateX(0); }
    .wp-content  { margin-left: 0; }
    .vnd-sidebar { transform: translateX(-100%); }
    .vnd-sidebar.open { transform: translateX(0); }
    .vnd-content { margin-left: 0; }
    .wp-page, .vnd-page { padding: 1rem; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1029; }
    .sidebar-overlay.show { display: block; }
}
@media (max-width: 767px) {
    body { padding-bottom: 70px; }
    .hero-section { min-height: 380px; }
    .hero-title { font-size: 1.7rem; }
    .hero-stats { gap: 1.2rem; }
    .carousel-5-slide { flex: 0 0 calc(50% - 6px) !important; }
    .video-ad-wrap { aspect-ratio: 16/10; }
    .chat-list { display: none; }
    .chat-wrap { height: 440px; }
    .section-hdr h2 { font-size: 1.1rem; }
    .partner-track { gap: 24px; }
    .navbar-secondary { display: none; }
}
@media (max-width: 480px) {
    .carousel-5-slide { flex: 0 0 calc(100% - 8px) !important; }
    .wp-page, .vnd-page { padding: .75rem; }
}

/* Mobile bottom nav */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e0e8e0; z-index: 1050; box-shadow: 0 -4px 20px rgba(0,0,0,.09); }
@media (max-width: 767px) { .mobile-bottom-nav { display: flex; } }
.mobile-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; color: #999; text-decoration: none; font-size: .66rem; font-weight: 500; transition: color .2s; }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--am-green); }
.mobile-bottom-nav i { font-size: 1.3rem; margin-bottom: 2px; }
.mobile-bottom-nav .has-dot { position: relative; }
.mobile-bottom-nav .has-dot::after { content: ''; position: absolute; top: -1px; right: -5px; width: 8px; height: 8px; background: var(--am-orange); border-radius: 50%; border: 1.5px solid #fff; }

/* ─── Misc helpers ─── */
.img-placeholder { background: linear-gradient(135deg, var(--am-green-pale), var(--am-green-light)); display: flex; align-items: center; justify-content: center; color: var(--am-green); font-size: 2rem; }
.sticky-sidebar { position: sticky; top: 80px; }

/* ─── Bulk Actions ─── */
[data-bulk-bar] {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #1a2e1a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: .85rem;
  animation: bulkSlideDown .18s ease;
}
[data-bulk-bar].bulk-bar--visible { display: flex; }
@keyframes bulkSlideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.bulk-bar-count { font-weight: 700; white-space: nowrap; }
.bulk-bar-count .bulk-badge { background: var(--am-orange, #f08c00); color: #fff; border-radius: 20px; padding: 1px 9px; font-size: .82rem; margin-right: 4px; }

.bulk-btn { border: none; border-radius: 6px; padding: 5px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: opacity .15s; display: inline-flex; align-items: center; gap: 5px; }
.bulk-btn:hover { opacity: .85; }
.bulk-btn--danger  { background: #dc3545; color: #fff; }
.bulk-btn--success { background: #198754; color: #fff; }
.bulk-btn--warning { background: #ffc107; color: #000; }
.bulk-btn--info    { background: #0dcaf0; color: #000; }
.bulk-btn--light   { background: rgba(255,255,255,.15); color: #fff; }

.bulk-deselect { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: .8rem; }
.bulk-deselect:hover { background: rgba(255,255,255,.1); }

/* Ligne sélectionnée */
tr.bulk-selected > td { background: rgba(25,135,84,.07) !important; }
.bulk-card.bulk-selected { outline: 2px solid var(--am-green, #198754); outline-offset: 2px; }

/* Checkbox colonne */
.col-bulk-check { width: 36px; padding-right: 0 !important; }
[data-bulk-row] { cursor: pointer; }
[data-bulk-form] input[type="checkbox"] { accent-color: var(--am-green, #198754); width: 16px; height: 16px; cursor: pointer; }

/* ═══════════════════════════════════════════════
   ANIMATIONS — PAGE D'ACCUEIL
   ═══════════════════════════════════════════════ */

/* Keyframes de base */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-50px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(50px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulseRing  {
    0%   { box-shadow: 0 0 0 0 rgba(255,138,0,.5); }
    70%  { box-shadow: 0 0 0 18px rgba(255,138,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,138,0,0); }
}
@keyframes countUp    { from { opacity:0; transform:scale(.6); } to { opacity:1; transform:scale(1); } }
@keyframes float      { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }

/* Hero column entrance (toujours actif, pas de scroll trigger) */
.hero-anim-left  { animation: fadeInLeft  .9s ease both; }
.hero-anim-right { animation: fadeInRight .9s ease .35s both; }

/* Hero image column */
.hero-img-col {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    position: relative;
    margin: 0 auto;
}

/* Placeholder hero */
.hero-img-placeholder {
    width: 100%; height: 100%;
    background: rgba(255,255,255,.07);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1.2rem; padding: 1.5rem;
}
.hero-img-placeholder .hip-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; width: 140px;
}
.hero-img-placeholder .hip-cell {
    aspect-ratio: 1/1; border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: rgba(255,255,255,.3);
    animation: float 3s ease-in-out infinite;
}
.hero-img-placeholder .hip-cell:nth-child(2) { animation-delay: .4s; }
.hero-img-placeholder .hip-cell:nth-child(3) { animation-delay: .8s; }
.hero-img-placeholder .hip-cell:nth-child(4) { animation-delay: 1.2s; }
.hero-img-placeholder .hip-label {
    color: rgba(255,255,255,.45); font-size: .8rem; text-align: center;
}

/* Scroll-triggered sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}
.anim-delay-1 { transition-delay: .08s; }
.anim-delay-2 { transition-delay: .16s; }
.anim-delay-3 { transition-delay: .24s; }
.anim-delay-4 { transition-delay: .32s; }

/* Slots d'images promotionnelles */
.promo-slot {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}
.promo-slot:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,66,2,.18); }
.promo-slot img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-slot .slot-placeholder {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .8rem; padding: 1.5rem;
    background: repeating-linear-gradient(
        45deg,
        var(--am-green-pale),
        var(--am-green-pale) 10px,
        var(--am-green-light) 10px,
        var(--am-green-light) 20px
    );
    border: 2px dashed var(--am-green-light);
    border-radius: 14px;
    transition: border-color .2s;
}
.promo-slot:hover .slot-placeholder { border-color: var(--am-green); }

/* Badge % de réduction sur les promos */
.promo-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--am-orange); color: #fff;
    font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255,138,0,.4);
    z-index: 3;
}

/* Compteur badge promotions */
.promo-count-badge { animation: countUp .5s .4s both; }

/* Bouton play vidéo — pulsation continue */
.play-btn { animation: pulseRing 2.5s ease infinite; }

/* Feature items — légère animation au hover */
.feature-item { transition: transform .2s ease; }
.feature-item:hover { transform: translateX(6px); }

/* Responsive hero image column */
@media (max-width: 767px) {
    .hero-img-col { max-width: 280px; }
}
