/* =====================================================================
   LE MONDE DE ZEINAB — feuille de style boutique (mobile first)
   ===================================================================== */
:root {
    --blue: #1E3A8A;
    --blue-dark: #0F2B6D;
    --blue-soft: #e8edf9;
    --gold: #F5A623;
    --gold-dark: #d98c0a;
    --wa: #25D366;
    --wa-dark: #1da851;
    --bg: #f1f1f2;
    --card: #ffffff;
    --text: #282828;
    --muted: #75757a;
    --border: #e4e4e7;
    --danger: #e11d48;
    --success: #15803d;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 42px; padding: .55em 1.2em;
    border: 1px solid transparent; border-radius: var(--radius);
    font-weight: 600; font-size: .95rem; line-height: 1.2;
    cursor: pointer; text-align: center; transition: background .15s, transform .1s, box-shadow .15s;
    background: #e9e9ec; color: var(--text);
}
.btn:hover { color: inherit; filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #1d1d1f; box-shadow: 0 2px 4px rgba(245,166,35,.35); }
.btn-primary:hover { background: var(--gold-dark); color: #1d1d1f; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: .35em .8em; font-size: .85rem; }
.btn-lg { min-height: 50px; font-size: 1.05rem; }
.btn-icon { width: 42px; padding: 0; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Alertes ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 4px solid; background: #fff; }
.alert-success { border-color: var(--success); background: #ecfdf3; color: #14532d; }
.alert-error { border-color: var(--danger); background: #fff1f2; color: #881337; }
.alert-warning { border-color: var(--gold); background: #fff8eb; color: #7a4a00; }
.alert-info { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--blue); color: #fff; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.topbar a { color: var(--gold); font-weight: 600; }
.topbar .topbar-extra { display: none; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.burger { background: none; border: 0; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; color: var(--blue); border-radius: 6px; flex-shrink: 0; }
.burger:hover { background: var(--bg); }
.logo { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo strong { font-size: 1.05rem; color: var(--blue); letter-spacing: .3px; white-space: nowrap; }
.logo strong span { color: var(--gold); }
.logo small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: none; flex: 1; }
.search form, .mobile-search form { display: flex; width: 100%; }
.search input, .mobile-search input {
    flex: 1; min-width: 0; height: 42px; padding: 0 14px;
    border: 1px solid #c7c7cc; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff;
}
.search input:focus, .mobile-search input:focus { outline: none; border-color: var(--gold); }
.search select { height: 42px; border: 1px solid #c7c7cc; border-right: 0; padding: 0 8px; background: #f7f7f8; max-width: 170px; }
.search button, .mobile-search button {
    height: 42px; padding: 0 18px; border: 0; background: var(--gold); color: #1d1d1f;
    border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; cursor: pointer;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-link { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px; font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; }
.header-link:hover { background: var(--bg); color: var(--gold-dark); }
.header-link i { font-size: 1.25rem; color: var(--blue); }
.header-link .label { display: none; }
.cart-link { position: relative; }
.cart-badge {
    position: absolute; top: 2px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--gold); color: #1d1d1f; font-size: .7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; font-size: .92rem; }
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu i { width: 18px; color: var(--blue); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.mobile-search { padding: 0 0 10px; }

/* ---------- Ligne des catégories (alignée à gauche) ---------- */
.cat-bar { background: #fff; border-top: 1px solid var(--border); }
.cat-bar ul {
    list-style: none; margin: 0; padding: 8px 0; display: flex; justify-content: flex-start;
    gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-bar ul::-webkit-scrollbar { display: none; }
.cat-bar a {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: .85rem; font-weight: 500;
}
.cat-bar a i { color: var(--gold-dark); }
.cat-bar a.active, .cat-bar a:hover { background: var(--blue); color: #fff; }
.cat-bar a.active i, .cat-bar a:hover i { color: var(--gold); }

/* ---------- Tiroir mobile ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; visibility: hidden; transition: .2s; }
.drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 100;
    transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; display: flex; flex-direction: column;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--blue); color: #fff; }
.drawer-head strong { color: var(--gold); }
.drawer-head button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.drawer h4 { margin: 0; padding: 14px 16px 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: .95rem; }
.drawer nav a:hover { background: var(--bg); }
.drawer nav a i { width: 20px; text-align: center; color: var(--gold-dark); }

/* ---------- Page ---------- */
.page { padding: 16px 0 32px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--gold-dark); }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Accueil : grille type Jumia ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cat-sidebar { display: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; align-self: start; }
.cat-sidebar h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 6px 16px 6px; }
.cat-sidebar ul { list-style: none; margin: 0; padding: 0; }
.cat-sidebar a {
    display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: .9rem;
    border-left: 3px solid transparent;
}
.cat-sidebar a i.cat-ico { width: 18px; text-align: center; color: var(--muted); }
.cat-sidebar a .count { margin-left: auto; font-size: .75rem; color: var(--muted); }
.cat-sidebar a:hover, .cat-sidebar a.active { color: var(--gold-dark); background: #fff8eb; border-left-color: var(--gold); }
.cat-sidebar a:hover i.cat-ico, .cat-sidebar a.active i.cat-ico { color: var(--gold-dark); }

.carousel { position: relative; overflow: hidden; border-radius: var(--radius); background: #dfe3ec; aspect-ratio: 16 / 8; box-shadow: var(--shadow); }
.carousel-track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel-slide { position: relative; min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.carousel-caption h2 { margin: 0 0 8px; font-size: 1.15rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.85); color: var(--blue); cursor: pointer; font-size: 1rem; box-shadow: var(--shadow);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; }
.carousel-dots button.active { background: var(--gold); width: 20px; border-radius: 4px; }
.hero-fallback { display: flex; flex-direction: column; justify-content: center; padding: 24px; height: 100%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.hero-fallback h2 { color: var(--gold); font-size: 1.5rem; }

.hero-side { display: none; flex-direction: column; gap: 12px; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; }
.side-card i { font-size: 1.5rem; color: var(--gold-dark); width: 28px; text-align: center; }
.side-card strong { display: block; font-size: .92rem; }
.side-card.wa { background: var(--wa); color: #fff; }
.side-card.wa i { color: #fff; }
.side-card.wa:hover { background: var(--wa-dark); color: #fff; }

.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.trust-strip div { background: #fff; border-radius: var(--radius); padding: 10px; font-size: .78rem; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.trust-strip i { color: var(--gold-dark); font-size: 1.1rem; }

/* ---------- Sections produits ---------- */
.section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; overflow: hidden; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.section-head h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.section-head a { font-size: .85rem; font-weight: 600; color: var(--gold-dark); white-space: nowrap; }
.section-head.flash { background: var(--danger); color: #fff; border: 0; }
.section-head.flash a { color: #fff; }
.section-head.brand { background: var(--blue); color: #fff; border: 0; }
.section-head.brand a { color: var(--gold); }
.section-body { padding: 12px; }

.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card {
    position: relative; background: #fff; border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card .thumb { display: block; aspect-ratio: 1 / 1; background: #fafafa; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-card .info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .name {
    font-size: .88rem; line-height: 1.3; min-height: 2.6em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { font-weight: 800; font-size: 1.02rem; color: var(--text); }
.old-price { text-decoration: line-through; color: var(--muted); font-size: .8rem; }
.badge-discount { position: absolute; top: 8px; right: 8px; background: #fef3e2; color: var(--gold-dark); font-weight: 800; font-size: .75rem; padding: 2px 6px; border-radius: 4px; }
.badge-flash { position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff; font-weight: 700; font-size: .7rem; padding: 2px 8px; border-radius: 4px; }
.badge-out { position: absolute; top: 8px; left: 8px; background: #3f3f46; color: #fff; font-weight: 700; font-size: .7rem; padding: 2px 8px; border-radius: 4px; }
.flash-timer { font-size: .75rem; font-weight: 700; color: var(--danger); }
.card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1; min-height: 36px; font-size: .82rem; padding: .35em .5em; }
.card-actions .btn-wa { flex: 0 0 38px; padding: 0; font-size: 1.1rem; }
.product-card.is-out .thumb img { opacity: .55; }

.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: #c7c7cc; margin-bottom: 12px; display: block; }

/* ---------- Catalogue (catégorie / recherche) ---------- */
.catalog { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.catalog .filters { display: none; }
.filters .card-title { font-size: .9rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar h1 { margin: 0; font-size: 1.15rem; }
.toolbar form { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.toolbar select { height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; background: #fff; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 16px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Fiche produit ---------- */
.pdp { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery-main { aspect-ratio: 1 / 1; background: #fafafa; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 64px; height: 64px; border: 2px solid var(--border); border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; }
.thumbs button.active, .thumbs button:hover { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: 1.3rem; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 8px 0 12px; }
.pdp-price .price { font-size: 1.7rem; }
.pdp-price .old-price { font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill-discount { background: #fef3e2; color: var(--gold-dark); }
.pill-stock { background: #ecfdf3; color: var(--success); }
.pill-out { background: #fff1f2; color: var(--danger); }
.pill-flash { background: var(--danger); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 42px; border: 0; background: #f7f7f8; font-size: 1.1rem; cursor: pointer; }
.qty input { width: 54px; height: 42px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-box { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 160px; }
.description { white-space: normal; line-height: 1.65; }
.info-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.info-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.info-list li:first-child { border-top: 0; }
.info-list i { color: var(--gold-dark); width: 20px; text-align: center; margin-top: 3px; }

/* ---------- Panier ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.cart-item:first-of-type { border-top: 0; }
.cart-item img { width: 72px; height: 72px; object-fit: contain; background: #fafafa; border-radius: 6px; border: 1px solid var(--border); }
.cart-item .name { font-weight: 600; font-size: .92rem; }
.cart-item .meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-item .line-total { font-weight: 800; }
.link-danger { background: none; border: 0; color: var(--danger); font-weight: 600; cursor: pointer; font-size: .85rem; padding: 4px; display: inline-flex; gap: 6px; align-items: center; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .92rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }
.coupon-form { display: flex; gap: 8px; margin: 12px 0; }
.coupon-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; text-transform: uppercase; }
.sticky-summary { position: sticky; top: calc(var(--header-h) + 16px); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c7c7cc; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.field input:disabled { background: #f4f4f5; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

.auth-wrap { max-width: 460px; margin: 10px auto; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-card .auth-head { background: var(--blue); color: #fff; text-align: center; padding: 22px 16px; }
.auth-card .auth-head h1 { color: var(--gold); margin: 0 0 4px; font-size: 1.35rem; }
.auth-card .auth-head p { margin: 0; opacity: .9; font-size: .9rem; }
.auth-card .auth-body { padding: 22px 18px; }
.auth-links { text-align: center; margin-top: 16px; font-size: .9rem; display: flex; flex-direction: column; gap: 8px; }
.auth-links a { color: var(--blue); font-weight: 600; }

/* ---------- Tableaux / statuts ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { background: #f7f7f8; font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); white-space: nowrap; }
.table img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fafafa; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status-pending { background: #fff4d6; color: #8a5a00; }
.status-processing { background: #dff4fb; color: #0e6680; }
.status-shipped { background: var(--blue-soft); color: var(--blue); }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #ffe4e6; color: #9f1239; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 20px 0; position: relative; }
.step { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); position: relative; }
.step .dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px; background: #e4e4e7; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; z-index: 1; }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: #e4e4e7; }
.step:first-child::before { display: none; }
.step.done { color: var(--text); }
.step.done .dot, .step.done::before { background: var(--success); }
.step.current .dot { background: var(--gold); }

.success-box { text-align: center; padding: 28px 16px; }
.success-box .big { font-size: 3rem; color: var(--success); margin-bottom: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-dark); color: #cdd5ea; margin-top: 32px; font-size: .9rem; }
.footer-wa { background: var(--blue); }
.footer-wa .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.footer-wa p { margin: 0; color: #fff; font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 16px; }
.footer-cols h4 { color: var(--gold); font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; text-align: center; font-size: .8rem; }

/* ---------- WhatsApp flottant / toast ---------- */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.toast-zone { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { background: #1f2937; color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; pointer-events: auto; }
.toast.success i { color: var(--wa); }
.toast.error i { color: #fb7185; }
.toast a { color: var(--gold); font-weight: 700; margin-left: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Tablette ≥ 640px
   ===================================================================== */
@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .form-grid.two { grid-template-columns: 1fr 1fr; }
    .trust-strip { grid-template-columns: repeat(4, 1fr); }
    .footer-cols { grid-template-columns: repeat(4, 1fr); }
    .header-link .label { display: inline; }
    .logo strong { font-size: 1.2rem; }
}

/* =====================================================================
   Desktop ≥ 900px : catégories en colonne à gauche (comme Jumia)
   ===================================================================== */
@media (min-width: 900px) {
    h1 { font-size: 1.7rem; }
    .topbar .topbar-extra { display: inline; }
    .burger.mobile-only { display: none; }
    .search { display: block; }
    .mobile-search { display: none; }
    .header-inner { gap: 20px; }
    .cat-bar.mobile-only { display: none; }

    .hero-grid { grid-template-columns: 230px minmax(0, 1fr); }
    .cat-sidebar { display: block; }
    .carousel { aspect-ratio: auto; height: 100%; min-height: 340px; }
    .carousel-caption h2 { font-size: 1.6rem; }

    .catalog { grid-template-columns: 230px minmax(0, 1fr); }
    .catalog .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); }
    .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .catalog .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
    .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; }
    .cart-item { grid-template-columns: 90px 1fr; }
    .cart-item img { width: 90px; height: 90px; }
}

@media (min-width: 1100px) {
    .hero-grid { grid-template-columns: 230px minmax(0, 1fr) 220px; }
    .hero-side { display: flex; }
    .products-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .catalog .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
