:root{--blue:#1e5bff;--blue2:#1539c7;--dark:#0f172a;--muted:#64748b;--bg:#f4f7fb;--card:#fff;--ok:#11b95d;--danger:#ef4444;--shadow:0 18px 40px rgba(15,23,42,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--dark)}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 34px;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);box-shadow:0 1px 0 rgba(15,23,42,.06)}.brand{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--dark)}.logo{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--blue),var(--blue2));display:grid;place-items:center;font-size:29px}.brand b{display:block;font-size:28px;color:#1d4ed8;letter-spacing:.04em}.brand small{color:var(--muted)}nav{display:flex;gap:22px;flex-wrap:wrap}nav a{color:#334155;text-decoration:none;font-weight:800}.cart-btn,.btn,button{border:0;border-radius:14px;padding:13px 18px;font-weight:900;cursor:pointer;transition:.25s}.cart-btn{background:#0f172a;color:white}.cart-btn span{background:var(--blue);padding:3px 8px;border-radius:999px;margin-left:6px}.hero{min-height:420px;display:grid;place-items:center;background:radial-gradient(circle at top left,#3b82f6,transparent 30%),linear-gradient(135deg,#1e62ff,#102caa);color:#fff;overflow:hidden;position:relative}.hero:before{content:"";position:absolute;inset:-80px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent);transform:rotate(12deg);animation:shine 5s infinite}.hero-inner{text-align:center;max-width:1000px;padding:70px 20px;position:relative}.pill{display:inline-flex;padding:9px 16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:999px}.hero h1{font-size:clamp(38px,6vw,78px);line-height:1.04;margin:22px 0}.hero p{font-size:22px;color:#dbeafe}.hero-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.btn.primary{background:linear-gradient(135deg,var(--blue),#1643df);color:#fff;box-shadow:0 12px 24px rgba(30,91,255,.28)}.btn.ghost{background:#e8eefc;color:#1d4ed8}.btn.danger{background:#fee2e2;color:#b91c1c}.btn.full{width:100%}main{max-width:1450px;margin:auto;padding:34px}.tools{display:grid;grid-template-columns:1fr 260px;gap:16px;margin:10px 0 34px}.tools input,.tools select,input,textarea,select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:14px 15px;background:white;color:var(--dark);outline:none}textarea{min-height:90px;resize:vertical}.section-title{display:flex;align-items:center;gap:18px;margin:34px 0 20px}.section-title h2{font-size:34px;margin:0}.section-title:after{content:"";height:4px;flex:1;border-radius:999px;background:linear-gradient(90deg,var(--blue),transparent)}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.product-card{background:var(--card);border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.1);overflow:hidden;position:relative;transform:translateY(20px);opacity:0;animation:rise .55s ease forwards}.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}.product-img{height:270px;background:#e2e8f0;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover;transition:.45s}.product-card:hover img{transform:scale(1.08)}.stock{position:absolute;right:18px;top:18px;background:var(--ok);color:white;border-radius:999px;padding:10px 16px;font-weight:900}.stock.low{background:#f97316}.product-info{padding:22px}.product-info h3{margin:0 0 14px;font-size:21px}.price{font-size:27px;color:var(--blue);font-weight:500;margin:14px 0}.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.drawer{position:fixed;top:0;right:0;width:min(460px,94vw);height:100vh;background:white;z-index:40;transform:translateX(105%);transition:.35s;box-shadow:-20px 0 60px rgba(2,6,23,.2);padding:20px;overflow:auto}.drawer.open{transform:translateX(0)}.overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);opacity:0;pointer-events:none;z-index:30;transition:.25s}.overlay.open{opacity:1;pointer-events:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center}.drawer-head button{font-size:28px;background:#f1f5f9}.cart-line{display:grid;grid-template-columns:68px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e2e8f0}.cart-line img{width:68px;height:68px;object-fit:cover;border-radius:12px}.cart-line h4{margin:0}.mini{color:var(--muted);font-size:13px}.qty{display:flex;gap:6px;align-items:center}.qty button{padding:7px 10px;border-radius:9px}.cart-total{display:flex;justify-content:space-between;padding:18px 0;font-size:20px}.order-form{display:grid;gap:12px}.location-row{display:grid;grid-template-columns:1fr;gap:10px}.location-row button{background:#2563eb;color:#fff}.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);background:#0f172a;color:#fff;padding:14px 18px;border-radius:14px;box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:60;transition:.25s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.location-preview{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:14px;padding:12px 14px;font-size:13px;line-height:1.45}.location-preview a,.map-link{color:#1d4ed8;font-weight:900;text-decoration:none}.location-preview a:hover,.map-link:hover{text-decoration:underline}.location-details{display:grid;gap:4px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;margin-top:4px}.location-details small{color:#64748b}
.admin-body{background:linear-gradient(135deg,#eff6ff,#f8fafc)}.admin-shell{max-width:1300px}.admin-card{background:#fff;border-radius:22px;padding:24px;box-shadow:var(--shadow);margin:20px 0}.admin-grid{display:grid;grid-template-columns:420px 1fr;gap:20px}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.hidden{display:none}.admin-product,.order-card{border:1px solid #e2e8f0;border-radius:16px;padding:14px;margin:10px 0;display:grid;gap:6px}.file-label{display:grid;gap:8px;color:#334155;font-weight:800}@keyframes shine{0%{translate:-120% 0}100%{translate:120% 0}}@keyframes rise{to{transform:translateY(0);opacity:1}}@media(max-width:980px){.topbar{padding:14px;align-items:flex-start}.brand b{font-size:22px}nav{display:none}.tools,.products,.admin-grid{grid-template-columns:1fr}.hero h1{font-size:42px}main{padding:18px}.product-img{height:230px}.admin-top{display:grid}.product-actions{grid-template-columns:1fr}}
.top-actions{display:flex;align-items:center;gap:10px}.whatsapp,.whatsapp-top,.whatsapp-hero{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;text-decoration:none;box-shadow:0 12px 24px rgba(34,197,94,.24)}.whatsapp-top{border-radius:14px;padding:13px 18px;font-weight:900;white-space:nowrap}.whatsapp-hero{border-radius:14px}.product-whatsapp{grid-column:1/-1}.whatsapp:hover,.whatsapp-top:hover,.whatsapp-hero:hover,.whatsapp-float:hover{filter:brightness(1.05);transform:translateY(-2px)}.whatsapp-float{position:fixed;right:24px;bottom:24px;z-index:50;width:64px;height:64px;border-radius:999px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;text-decoration:none;display:grid;place-items:center;font-size:34px;font-weight:900;box-shadow:0 18px 40px rgba(22,163,74,.36);animation:pulseWhatsApp 1.8s infinite}.whatsapp-float.hidden,.whatsapp-top.hidden,.whatsapp-hero.hidden{display:none}@keyframes pulseWhatsApp{0%{box-shadow:0 0 0 0 rgba(34,197,94,.42)}70%{box-shadow:0 0 0 18px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}@media(max-width:980px){.top-actions{margin-left:auto}.whatsapp-top{display:none}.whatsapp-float{width:58px;height:58px;right:16px;bottom:16px}.hero-actions .btn{width:100%;text-align:center}.product-actions{grid-template-columns:1fr}}
.product-actions.single-action{grid-template-columns:1fr;gap:10px}.product-actions.single-action .btn{width:100%}.modal-backdrop{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.68);display:grid;place-items:center;padding:18px;animation:fadeIn .2s ease}.modal-backdrop.hidden{display:none}.order-modal-card,.success-card{width:min(430px,96vw);background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.35);padding:24px;position:relative;animation:popIn .25s ease}.order-modal-card h2{margin:0 40px 4px 0;font-size:22px}.modal-price{margin:0 0 20px;color:var(--blue);font-weight:500}.modal-close{position:absolute;right:16px;top:16px;width:28px;height:28px;padding:0;border-radius:7px;background:#fff;color:#94a3b8;border:2px solid #cbd5e1;font-size:24px;line-height:20px;display:grid;place-items:center}.single-order-form{display:grid;gap:14px}.single-order-form label{display:grid;gap:8px;color:#334155;font-weight:800;font-size:14px}.single-order-form input,.single-order-form select{border-radius:9px;padding:13px 14px}.single-order-form small{font-weight:500;color:#64748b}.form-label{display:block;margin-bottom:8px;color:#334155;font-weight:800;font-size:14px}.modal-location-actions{display:grid;grid-template-columns:1fr 88px;gap:8px;margin-bottom:10px}.modal-location-actions button{border-radius:9px;padding:12px 10px}.modal-location-actions #singleGpsBtn{background:#2563eb;color:#fff}.modal-location-actions #singleManualBtn{background:#e2e8f0;color:#334155}.modal-total{border:1px solid #bfdbfe;background:#dbeafe;color:#334155;border-radius:10px;padding:14px 16px}.modal-total strong{color:var(--blue);font-size:18px}.success-card{text-align:center;padding:32px 26px}.success-icon{width:76px;height:76px;border-radius:999px;margin:0 auto 18px;background:#dcfce7;color:#16a34a;display:grid;place-items:center;font-size:42px;font-weight:900;border:8px solid #bbf7d0}.success-card h2{font-size:22px;margin:0 0 14px}.success-card p{margin:8px 0;color:#64748b}.success-card strong{color:var(--blue)}.success-note{background:#eff6ff;border-radius:10px;margin:16px 0 22px;padding:16px 20px;color:#64748b;font-size:18px;line-height:1.45}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes popIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:560px){.order-modal-card,.success-card{padding:20px}.modal-location-actions{grid-template-columns:1fr}.success-note{font-size:16px}.topbar{gap:10px}.cart-btn{padding:11px 13px}}

.admin-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.admin-section-head h2{margin:0 0 6px}.admin-section-head p{margin:0;color:#64748b}.admin-counter{display:inline-flex;align-items:center;justify-content:center;min-width:112px;padding:10px 14px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:900}.order-filters{display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(150px,1fr)) auto;gap:10px;margin:16px 0}.order-filters input,.order-filters select{min-height:48px}.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}.active-filters span{display:inline-flex;align-items:center;border-radius:999px;background:#e0ecff;color:#1d4ed8;padding:7px 11px;font-weight:800;font-size:13px}.order-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-card-head>div{display:grid;gap:4px}.order-meta-row{display:flex;flex-wrap:wrap;gap:8px;color:#334155}.status-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;white-space:nowrap}.status-chip.new{background:#dbeafe;color:#1d4ed8}.status-chip.waiting{background:#fef3c7;color:#b45309}.status-chip.delivered{background:#dcfce7;color:#15803d}.status-chip.cancelled{background:#fee2e2;color:#b91c1c}@media(max-width:980px){.admin-section-head{display:grid}.order-filters{grid-template-columns:1fr}.admin-counter{width:max-content}.order-card-head{display:grid}.status-chip{width:max-content}}

/* Ajouts admin : statistiques, exécution des commandes et assistant commercial */
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;margin-top:14px}.stat-card{background:linear-gradient(135deg,#f8fbff,#eef5ff);border:1px solid #dbeafe;border-radius:18px;padding:18px;display:grid;gap:8px;box-shadow:0 10px 24px rgba(30,91,255,.08)}.stat-card span{color:#64748b;font-weight:800;font-size:13px}.stat-card strong{font-size:24px;color:#0f172a}.stat-card small{color:#475569}.profit-alert{margin-top:14px;border-radius:16px;padding:14px 16px;font-weight:800}.profit-alert.warning{background:#fffbeb;color:#b45309;border:1px solid #fde68a}.profit-alert.danger-zone{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.profit-alert.success-zone{background:#ecfdf5;color:#047857;border:1px solid #bbf7d0}.ai-badge{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:999px;background:#111827;color:#fff;font-weight:900}.ai-insights{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.ai-insight{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:16px}.ai-insight strong{display:block;margin-bottom:7px;color:#0f172a}.ai-insight p{margin:0;color:#475569;line-height:1.45}.order-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.completion-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;white-space:nowrap}.completion-chip.completed{background:#dcfce7;color:#166534}.completion-chip.pending{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}.order-actions{display:grid;grid-template-columns:minmax(170px,220px) auto;gap:10px;align-items:center;margin-top:8px}.order-actions select{min-height:44px}.order-filters{grid-template-columns:minmax(220px,1.25fr) repeat(4,minmax(145px,1fr)) auto}@media(max-width:1100px){.stats-grid,.ai-insights{grid-template-columns:1fr 1fr}.order-filters{grid-template-columns:1fr 1fr}}@media(max-width:720px){.stats-grid,.ai-insights,.order-actions,.order-filters{grid-template-columns:1fr}.order-badges{justify-content:flex-start}.stat-card strong{font-size:21px}}

/* ==============================
   ADMIN REDESIGN - Business console
   ============================== */
body.admin-redesign{background:#eef2f7;color:#111827;min-height:100vh}.admin-redesign .admin-shell{max-width:none;margin:0;padding:0}.admin-login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,460px);gap:28px;align-items:center;padding:42px;background:radial-gradient(circle at 18% 8%,rgba(30,91,255,.20),transparent 30%),radial-gradient(circle at 85% 90%,rgba(15,23,42,.12),transparent 28%),linear-gradient(135deg,#f8fafc,#e8eef8)}.login-brand-panel{min-height:560px;border-radius:34px;padding:46px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,91,255,.76)),url('/assets/sample-shoe.svg');background-size:cover;background-position:center;box-shadow:0 28px 80px rgba(15,23,42,.25);position:relative;overflow:hidden}.login-brand-panel:before{content:"";position:absolute;inset:-80px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);transform:rotate(16deg);animation:shine 7s infinite}.login-brand-panel>*{position:relative}.console-badge{width:max-content;display:inline-flex;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);font-weight:900}.login-brand-panel h1{font-size:clamp(42px,7vw,76px);line-height:.98;margin:28px 0 16px}.login-brand-panel p{max-width:620px;font-size:19px;line-height:1.55;color:#e5e7eb}.login-checks{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.login-checks span{border-radius:999px;padding:10px 13px;background:rgba(255,255,255,.14);font-weight:800}.admin-login-card{background:#fff;border:1px solid #e5e7eb;border-radius:30px;padding:34px;box-shadow:0 24px 70px rgba(15,23,42,.15)}.admin-login-card h2{font-size:28px;margin:8px 0 8px}.admin-login-card p{color:#64748b;line-height:1.5}.admin-login-card label{display:grid;gap:8px;margin:22px 0 14px;font-weight:900;color:#334155}.login-icon{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:#eef4ff;font-size:28px}.security-note{display:block;text-align:center;color:#64748b;margin-top:14px}.admin-app{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:100vh}.admin-sidebar{position:sticky;top:0;height:100vh;padding:22px;background:#0b1220;color:#fff;display:flex;flex-direction:column;gap:24px;box-shadow:14px 0 45px rgba(15,23,42,.13);z-index:10}.admin-logo{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none;padding:12px;border-radius:22px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.admin-logo span{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#1e5bff,#60a5fa);font-weight:1000;box-shadow:0 12px 30px rgba(30,91,255,.32)}.admin-logo strong{display:block}.admin-logo small{color:#93a4bd}.admin-nav{display:grid;gap:8px}.admin-nav a{color:#cbd5e1;text-decoration:none;padding:13px 14px;border-radius:16px;font-weight:900;transition:.2s}.admin-nav a:hover{background:#162033;color:#fff;transform:translateX(3px)}.sidebar-footer{margin-top:auto;display:grid;gap:14px}.sidebar-footer span{color:#94a3b8;font-size:13px}.admin-main{min-width:0;padding:28px}.admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px;padding:26px;border-radius:28px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #e5e7eb;box-shadow:0 14px 36px rgba(15,23,42,.07)}.page-kicker{display:inline-flex;font-size:13px;font-weight:1000;color:#1d4ed8;text-transform:uppercase;letter-spacing:.08em}.admin-header h1{margin:8px 0 6px;font-size:clamp(28px,3vw,42px);letter-spacing:-.04em}.admin-header p{margin:0;color:#64748b;line-height:1.5}.admin-header-actions,.section-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-panel-card{background:#fff;border:1px solid #e5e7eb;border-radius:28px;padding:24px;box-shadow:0 16px 45px rgba(15,23,42,.07);margin:0 0 22px}.admin-hero-card{background:radial-gradient(circle at top right,rgba(30,91,255,.10),transparent 30%),#fff}.admin-section-head.clean{margin-bottom:18px}.admin-section-head.clean h2{font-size:24px;letter-spacing:-.02em}.admin-section-head.clean.compact{margin-bottom:12px}.live-dot{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 14px;background:#ecfdf5;color:#047857;font-weight:900}.pro-stats{grid-template-columns:repeat(3,minmax(200px,1fr));gap:16px}.pro-stats .stat-card{border:1px solid #e5e7eb;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.06);position:relative;overflow:hidden}.pro-stats .stat-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#94a3b8}.pro-stats .stat-card.tone-blue:before{background:#1e5bff}.pro-stats .stat-card.tone-orange:before{background:#f97316}.pro-stats .stat-card.tone-green:before{background:#11b95d}.pro-stats .stat-card.tone-red:before{background:#ef4444}.pro-stats .stat-card span{text-transform:uppercase;letter-spacing:.05em;font-size:12px}.pro-stats .stat-card strong{font-size:clamp(22px,3vw,31px);letter-spacing:-.04em}.pro-filters{padding:14px;border-radius:22px;background:#f8fafc;border:1px solid #e5e7eb}.pro-filters input,.pro-filters select,.product-admin-form input,.product-admin-form textarea,.product-admin-form select{border:1px solid #d8e0ea;background:#fff;border-radius:14px}.pro-filters input:focus,.pro-filters select:focus,.product-admin-form input:focus,.product-admin-form textarea:focus{border-color:#1e5bff;box-shadow:0 0 0 4px rgba(30,91,255,.10)}.active-filters span{background:#eef4ff;border:1px solid #dbeafe}.orders-list{display:grid;gap:14px}.pro-order-card{border:1px solid #e5e7eb;border-radius:24px;padding:18px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 24px rgba(15,23,42,.05);transition:.2s}.pro-order-card:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(15,23,42,.10)}.order-card-head strong{font-size:18px}.order-card-head span{color:#64748b}.order-summary-line{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px;margin:16px 0}.order-summary-line>div{padding:13px;border-radius:18px;background:#f8fafc;border:1px solid #edf2f7;display:grid;gap:4px}.order-summary-line span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900}.order-summary-line strong{font-size:17px}.order-summary-line small{color:#64748b}.order-location{display:grid;gap:5px;padding:14px;border-radius:18px;background:#f8fbff;border:1px solid #dbeafe;margin:12px 0;color:#334155}.order-location strong{color:#0f172a}.order-location small{color:#64748b}.muted-block{background:#f8fafc;border-color:#e2e8f0;color:#64748b}.map-link{font-weight:900;color:#1d4ed8;text-decoration:none}.map-link:hover{text-decoration:underline}.order-items-list{display:grid;gap:8px;margin-top:12px}.order-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px dashed #e5e7eb}.order-item-row span{font-weight:800}.order-item-row small{color:#64748b}.pro-order-actions{grid-template-columns:minmax(180px,240px) auto;justify-content:flex-end;border-top:1px solid #edf2f7;padding-top:14px}.admin-two-columns{display:grid;grid-template-columns:minmax(340px,470px) minmax(0,1fr);gap:22px}.product-admin-form{display:grid;gap:13px}.product-admin-form label{display:grid;gap:7px;color:#334155;font-weight:900}.form-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.refined-file{padding:14px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc}.refined-file small{font-weight:600;color:#64748b}.ai-panel{background:linear-gradient(135deg,#0b1220,#111827);color:#fff}.ai-panel h2,.ai-panel .admin-section-head.clean h2{color:#fff}.ai-panel p{color:#cbd5e1}.ai-panel .ai-badge{background:#fff;color:#111827}.pro-ai{grid-template-columns:1fr;gap:10px}.pro-ai .ai-insight{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff}.pro-ai .ai-insight strong{color:#fff}.pro-ai .ai-insight p{color:#d1d5db}.admin-table-wrap{width:100%;overflow:auto;border:1px solid #e5e7eb;border-radius:22px}.admin-table{width:100%;border-collapse:collapse;background:#fff;min-width:920px}.admin-table th{background:#f8fafc;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.06em;text-align:left;padding:14px;border-bottom:1px solid #e5e7eb}.admin-table td{padding:14px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.admin-table tbody tr:hover{background:#f8fbff}.product-cell{display:flex;align-items:center;gap:12px}.product-cell img,.image-placeholder{width:54px;height:54px;border-radius:16px;object-fit:cover;background:#eef2f7;display:grid;place-items:center;flex:0 0 54px}.product-cell strong{display:block;color:#0f172a}.product-cell small{display:block;max-width:280px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-pill{display:inline-flex;min-width:42px;justify-content:center;border-radius:999px;padding:7px 10px;font-weight:1000}.stock-ok{background:#dcfce7;color:#166534}.stock-warning{background:#fef3c7;color:#b45309}.stock-danger{background:#fee2e2;color:#b91c1c}.muted-text{color:#94a3b8}.compact-btn{padding:9px 12px;border-radius:12px}.empty-admin-state{border:1px dashed #cbd5e1;background:#f8fafc;color:#64748b;border-radius:20px;padding:22px;text-align:center;font-weight:800}.admin-counter{background:#111827;color:#fff}.btn{box-shadow:none}.btn.primary:hover,.btn.ghost:hover,.btn.danger:hover{transform:translateY(-1px);filter:brightness(.98)}.toast{z-index:1000}
@media(max-width:1180px){.admin-app{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto;display:grid;grid-template-columns:1fr;gap:14px}.admin-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar-footer{margin-top:0}.pro-stats{grid-template-columns:1fr 1fr}.admin-two-columns{grid-template-columns:1fr}.admin-main{padding:18px}}
@media(max-width:820px){.admin-login-screen{grid-template-columns:1fr;padding:18px}.login-brand-panel{min-height:360px;padding:28px}.admin-header,.admin-section-head.clean{display:grid}.admin-header-actions,.section-actions{justify-content:flex-start}.admin-nav{grid-template-columns:1fr 1fr}.pro-stats,.order-summary-line,.form-split{grid-template-columns:1fr}.pro-order-actions{grid-template-columns:1fr}.order-item-row{grid-template-columns:1fr}.admin-panel-card{border-radius:22px;padding:18px}.admin-main{padding:14px}}
@media(max-width:540px){.admin-nav{grid-template-columns:1fr}.admin-logo{align-items:flex-start}.login-brand-panel h1{font-size:38px}.admin-header h1{font-size:28px}.admin-header-actions .btn,.section-actions .btn{width:100%}.admin-counter{width:100%}.pro-filters{padding:10px}}

/* Pages admin séparées : connexion + tableau de bord */
.admin-login-body{min-height:100vh;background:radial-gradient(circle at 12% 10%,rgba(30,91,255,.22),transparent 32%),radial-gradient(circle at 86% 15%,rgba(34,197,94,.15),transparent 26%),linear-gradient(135deg,#eef5ff,#f8fafc)}.admin-login-page{max-width:none;min-height:100vh;padding:0}.split-login-screen{min-height:100vh;align-items:center}.animated-panel{animation:loginSlideLeft .55s ease both}.animated-card{animation:loginSlideRight .55s ease both}.login-kicker{display:inline-flex;margin-top:16px;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.08em;color:#1d4ed8}.admin-login-card button:disabled{opacity:.72;cursor:not-allowed}.admin-dashboard-body{background:#eef3f9}.admin-dashboard-shell{max-width:none;margin:0;padding:0}.dashboard-animated{animation:fadeIn .25s ease both}.page-rise{animation:adminRise .42s ease both}.delay-1{animation-delay:.06s}.delay-2{animation-delay:.12s}.delay-3{animation-delay:.18s}.delay-4{animation-delay:.24s}@keyframes loginSlideLeft{from{opacity:0;transform:translateX(-28px) scale(.98)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes loginSlideRight{from{opacity:0;transform:translateX(28px) scale(.98)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes adminRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@media(max-width:820px){.split-login-screen{min-height:auto}.animated-panel,.animated-card{animation:adminRise .42s ease both}.admin-login-page{padding:0}.admin-login-card{border-radius:24px}}

/* =========================================================
   CORRECTION POP-UP COMMANDE MOBILE / PETIT ÉCRAN
   À coller tout en bas de public/css/style.css
   ========================================================= */

html,
body{
   font-family:'Montserrat',sans-serif;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.72);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.hidden {
  display: none !important;
}

.order-modal-card,
.success-card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: auto 0;
  border-radius: 22px;
}

.order-modal-card {
  padding: 34px 38px;
}

.single-order-form {
  display: grid;
  gap: 20px;
  padding-bottom: 8px;
}

.single-order-form label,
.single-order-form > div {
  min-width: 0;
}

.single-order-form input,
.single-order-form select,
.single-order-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.modal-location-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.modal-total {
  position: sticky;
  bottom: 74px;
  z-index: 3;
  backdrop-filter: blur(12px);
}

.single-order-form .btn.full,
#singleOrderForm button[type="submit"] {
  position: sticky;
  bottom: 0;
  z-index: 4;
  min-height: 54px;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 10px;
    align-items: flex-start;
  }

  .order-modal-card,
  .success-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    margin: 0;
    border-radius: 20px;
  }

  .order-modal-card {
    padding: 26px 22px;
  }

  .order-modal-card h2 {
    padding-right: 54px;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.1;
  }

  .single-order-form {
    gap: 18px;
  }

  .single-order-form input,
  .single-order-form select {
    min-height: 58px;
    font-size: 16px;
  }

  .modal-location-actions {
    grid-template-columns: 1fr;
  }

  .modal-location-actions button {
    width: 100%;
    min-height: 58px;
  }

  .modal-total {
    bottom: 72px;
  }
}

@media (max-height: 720px) {
  .modal-backdrop {
    align-items: flex-start;
  }

  .order-modal-card,
  .success-card {
    margin: 0;
    max-height: calc(100dvh - 20px);
  }
}
.stats-section{
    margin-top:-50px;
    position:relative;
    z-index:5;
}

.stats-grid-home{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    max-width:900px;
    margin:auto;
}

.stat-home{
    background:white;
    border-radius:20px;
    padding:25px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.stat-home h3{
    color:#1e5bff;
    font-size:38px;
    margin:0;
}

.how-section,
.contact-section{
    padding:80px 20px;
}

.container-box{
    max-width:1100px;
    margin:auto;
    background:white;
    padding:50px;
    border-radius:30px;
}

.section-tag{
    color:#1e5bff;
    font-weight:800;
    letter-spacing:2px;
    font-size:12px;
}

.container-box h2{
    font-size:52px;
    margin:20px 0 40px;
}

.steps-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.step-card{
    background:#f8fafc;
    border:1px solid #dbeafe;
    border-radius:20px;
    padding:25px;
}

.step-card span{
    background:#1e5bff;
    color:white;
    padding:10px 14px;
    border-radius:12px;
    display:inline-block;
    font-weight:700;
}

.contact-buttons{
    display:flex;
    gap:15px;
    margin-top:30px;
}

@media(max-width:768px){

.stats-grid-home{
grid-template-columns:1fr 1fr;
}

.steps-grid{
grid-template-columns:1fr;
}

.container-box h2{
font-size:34px;
}

.contact-buttons{
flex-direction:column;
}
}
.hero-shoe{
    animation: floatShoe 4s ease-in-out infinite;
}

@keyframes floatShoe{
    0%{
        transform:translateY(0px) rotate(-8deg);
    }
    50%{
        transform:translateY(-20px) rotate(-8deg);
    }
    100%{
        transform:translateY(0px) rotate(-8deg);
    }
}
.hero{
   display:flex;
   align-items:center;
   justify-content:space-between;
   padding:80px;
}

.hero-image img{
   max-width:500px;
}
.hero{
    min-height:760px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:60px 80px;
    background:linear-gradient(135deg,#2860ff,#102caa);
    overflow:hidden;
    position:relative;
}

.hero-inner{
    max-width:580px;
}

.pill{
    font-size:13px;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.hero h1{
    font-size:76px;
    line-height:1.02;
    font-weight:900;
    letter-spacing:-3px;
    margin:18px 0 24px;
    max-width:520px;
}

.hero p{
    max-width:500px;
    font-size:18px;
    line-height:1.8;
    color:#dbeafe;
}


.hero-image{
    position:relative;
    width:700px;
    height:650px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.shoe-card{
    width:650px;
    background:#ea001b;
    border-radius:45px;
    padding:35px;
    transform:rotate(-6deg);
    position:relative;
    z-index:5;
}

.hero-shoe{
    width:100%;
    max-width:560px;
    animation:floatHero 5s ease-in-out infinite;
}

.stock-badge,
.price-badge{
    background:white;
    color:#0f172a;
    border-radius:28px;
    font-size:16px;
    font-weight:900;
    padding:16px 28px;
    position:absolute;
    z-index:20;
    animation:floatHero 5s ease-in-out infinite;
}

.stock-badge{
    top:70px;
    left:40px;
}

.price-badge{
    right:10px;
    bottom:70px;
}

.hero-bubble{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    animation:floatHero 5s ease-in-out infinite;
}

.bubble-1{
    width:320px;
    height:320px;
    top:10px;
    right:120px;
}

.bubble-2{
    width:220px;
    height:220px;
    bottom:50px;
    left:80px;
}

.bubble-3{
    width:170px;
    height:170px;
    bottom:-20px;
    right:-20px;
}

@keyframes floatHero{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-18px);
    }
    100%{
        transform:translateY(0px);
    }
}
/* =========================================================
   Ajustements design : tailles plus raisonnables + transparence
   À conserver en fin de fichier pour écraser les anciens styles.
   ========================================================= */
:root{
  --soft-card: rgba(255,255,255,.78);
  --soft-card-border: rgba(255,255,255,.55);
}

body{
  font-size:15.5px;
}

.topbar{
  padding:12px 26px;
}
.logo{
  width:46px;
  height:46px;
  border-radius:14px;
  font-size:24px;
}
.brand b{
  font-size:22px;
  letter-spacing:.025em;
}
.brand small{
  font-size:13px;
}
nav{
  gap:16px;
}
nav a{
  font-size:15px;
}
.cart-btn,
.btn,
button,
.whatsapp-top{
  padding:11px 16px;
  border-radius:12px;
}

.hero{
  min-height:620px;
  padding:48px 62px;
}
.hero-inner{
  max-width:540px;
}
.pill{
  font-size:11px;
  padding:8px 14px;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
}
.hero h1{
  font-size:clamp(42px,5.2vw,64px);
  line-height:1.04;
  letter-spacing:-2px;
  max-width:500px;
  margin:16px 0 20px;
}
.hero p{
  font-size:16px;
  line-height:1.65;
  max-width:470px;
}
.hero-image{
  width:540px;
  height:500px;
}
.shoe-card{
  width:500px;
  border-radius:34px;
  padding:26px;
  background:rgba(234,0,27,.88);
  box-shadow:0 24px 70px rgba(15,23,42,.18);
}
.hero-shoe{
  max-width:430px;
}
.stock-badge,
.price-badge{
  font-size:13px;
  padding:12px 20px;
  border-radius:22px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.55);
  backdrop-filter:blur(12px);
  box-shadow:0 16px 35px rgba(15,23,42,.14);
}
.stock-badge{
  top:76px;
  left:56px;
}
.price-badge{
  right:26px;
  bottom:88px;
}
.hero-bubble{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.055);
  backdrop-filter:blur(2px);
}
.bubble-1{
  width:210px;
  height:210px;
  top:48px;
  right:128px;
}
.bubble-2{
  width:150px;
  height:150px;
  bottom:82px;
  left:100px;
}
.bubble-3{
  width:110px;
  height:110px;
  bottom:18px;
  right:20px;
}

.stats-section{
  margin-top:-34px;
  padding:0 24px 10px;
}
.stats-grid-home{
  max-width:1050px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.stat-home{
  min-height:160px;
  padding:22px 24px;
  border-radius:22px;
  background:var(--soft-card);
  border:1px solid var(--soft-card-border);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.stat-home h3{
  font-size:clamp(30px,3.2vw,42px);
  letter-spacing:-1.4px;
}
.stat-home p{
  font-size:clamp(15px,1.45vw,19px);
  line-height:1.25;
  margin:24px 0 0;
  color:#111827;
}

main{
  max-width:1240px;
  padding:28px 24px 40px;
}
.tools{
  margin:8px 0 28px;
}
.section-title{
  margin:30px 0 18px;
  gap:14px;
}
.section-title h2{
  font-size:clamp(24px,2.4vw,30px);
}
.products{
  gap:22px;
}
.product-card{
  border-radius:16px;
}
.product-img{
  height:230px;
}
.product-info{
  padding:18px;
}
.product-info h3{
  font-size:19px;
  margin-bottom:10px;
}
.price{
  font-size:23px;
  margin:12px 0;
}
.stock{
  top:14px;
  right:14px;
  padding:8px 13px;
  font-size:14px;
}

.how-section,
.contact-section{
  padding:58px 20px;
}
.container-box{
  max-width:1040px;
  padding:38px;
  border-radius:24px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
}
.container-box h2{
  font-size:clamp(28px,4vw,42px);
  margin:16px 0 30px;
}

@media(max-width:1180px){
  .hero{
    padding:44px 34px;
    gap:24px;
  }
  .hero-image{
    width:470px;
    height:440px;
  }
  .shoe-card{
    width:430px;
  }
  .hero-shoe{
    max-width:370px;
  }
  .stats-grid-home{
    max-width:900px;
  }
}

@media(max-width:980px){
  .topbar{
    padding:12px 16px;
  }
  .brand b{
    font-size:19px;
  }
  .hero{
    min-height:auto;
    padding:56px 22px 72px;
    display:grid;
    text-align:center;
  }
  .hero-inner{
    max-width:760px;
    margin:auto;
  }
  .hero h1{
    max-width:none;
    font-size:clamp(36px,8vw,50px);
  }
  .hero p{
    margin-left:auto;
    margin-right:auto;
  }
  .hero-image{
    width:min(520px,92vw);
    height:390px;
    margin:auto;
  }
  .shoe-card{
    width:min(420px,82vw);
    padding:22px;
  }
  .hero-shoe{
    max-width:min(360px,74vw);
  }
  .stats-section{
    margin-top:-28px;
  }
  .stats-grid-home{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:620px;
  }
  .stat-home{
    min-height:135px;
    padding:20px;
  }
  .products{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .product-img{
    height:210px;
  }
}

@media(max-width:640px){
  body{
    font-size:15px;
  }
  .topbar{
    gap:10px;
  }
  .logo{
    width:42px;
    height:42px;
    font-size:21px;
  }
  .brand b{
    font-size:17px;
  }
  .brand small{
    font-size:12px;
  }
  .cart-btn{
    padding:10px 12px;
    font-size:13px;
  }
  .hero{
    padding:42px 16px 58px;
  }
  .pill{
    font-size:10px;
    letter-spacing:1.2px;
  }
  .hero h1{
    font-size:clamp(31px,10vw,40px);
    letter-spacing:-1.3px;
  }
  .hero p{
    font-size:15px;
    line-height:1.55;
  }
  .hero-image{
    height:300px;
  }
  .stock-badge,
  .price-badge{
    font-size:11px;
    padding:9px 13px;
  }
  .stock-badge{
    top:42px;
    left:24px;
  }
  .price-badge{
    right:16px;
    bottom:48px;
  }
  .bubble-1{
    width:145px;
    height:145px;
  }
  .bubble-2{
    width:105px;
    height:105px;
  }
  .bubble-3{
    width:80px;
    height:80px;
  }
  .stats-section{
    margin-top:-20px;
    padding:0 14px 4px;
  }
  .stats-grid-home{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .stat-home{
    min-height:118px;
    padding:16px;
    border-radius:18px;
  }
  .stat-home h3{
    font-size:29px;
  }
  .stat-home p{
    font-size:14px;
    margin-top:16px;
  }
  main{
    padding:22px 14px 34px;
  }
  .tools{
    grid-template-columns:1fr;
  }
  .products{
    grid-template-columns:1fr;
    gap:18px;
  }
  .product-img{
    height:205px;
  }
  .section-title h2{
    font-size:24px;
  }
  .container-box{
    padding:24px;
    border-radius:20px;
  }
}


/* Footer public */
.site-footer{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#071225 0%,#0c1d3d 48%,#102b68 100%);
  color:#dbe7ff;
  padding:64px 18px 24px;
  margin-top:36px;
  isolation:isolate;
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:52px 52px;
  opacity:.18;
  z-index:-2;
}
.footer-glow{
  position:absolute;
  border-radius:999px;
  filter:blur(8px);
  opacity:.28;
  z-index:-1;
}
.footer-glow-one{
  width:280px;
  height:280px;
  background:#1e5bff;
  top:-130px;
  left:-80px;
}
.footer-glow-two{
  width:220px;
  height:220px;
  background:#60a5fa;
  right:-70px;
  bottom:-90px;
}
.footer-inner{
  width:min(1180px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.35fr .75fr .75fr .95fr;
  gap:34px;
  align-items:start;
}
.footer-brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  color:white;
  text-decoration:none;
}
.footer-logo{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 14px 35px rgba(0,0,0,.18);
}
.footer-brand strong{
  display:block;
  font-size:21px;
  letter-spacing:.5px;
}
.footer-brand small{
  display:block;
  color:#a9bdec;
  margin-top:2px;
}
.footer-brand-block p,
.footer-contact p{
  color:#abc0ea;
  line-height:1.75;
  margin:18px 0 22px;
  max-width:430px;
}
.footer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.footer-btn,
.footer-contact-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.footer-btn{
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
}
.footer-btn-primary{
  background:#1e5bff;
  color:white;
  box-shadow:0 14px 30px rgba(30,91,255,.32);
}
.footer-btn-soft{
  background:rgba(255,255,255,.1);
  color:white;
  border:1px solid rgba(255,255,255,.18);
}
.footer-btn:hover,
.footer-contact-link:hover{
  transform:translateY(-2px);
}
.footer-col h3{
  color:white;
  margin:4px 0 18px;
  font-size:16px;
  letter-spacing:.3px;
}
.footer-col a{
  display:block;
  color:#b8c8ee;
  text-decoration:none;
  margin:11px 0;
  font-size:14px;
  transition:color .2s ease,transform .2s ease;
}
.footer-col a:hover{
  color:white;
  transform:translateX(3px);
}
.footer-contact-link{
  color:white!important;
  width:max-content;
  max-width:100%;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
}
.footer-bottom{
  width:min(1180px,100%);
  margin:42px auto 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  color:#9fb2da;
  font-size:13px;
}
.footer-bottom strong{
  color:white;
}

@media(max-width:900px){
  .site-footer{
    padding-top:48px;
  }
  .footer-inner{
    grid-template-columns:1fr 1fr;
    gap:28px;
  }
  .footer-brand-block{
    grid-column:1 / -1;
  }
}

@media(max-width:580px){
  .site-footer{
    margin-top:20px;
    padding:42px 16px 22px;
  }
  .footer-inner{
    grid-template-columns:1fr;
    gap:24px;
  }
  .footer-brand strong{
    font-size:18px;
  }
  .footer-logo{
    width:44px;
    height:44px;
    border-radius:14px;
  }
  .footer-actions{
    flex-direction:column;
  }
  .footer-btn{
    width:100%;
  }
  .footer-bottom{
    margin-top:28px;
    font-size:12px;
  }
}

/* Patch admin produits : actions modifier/supprimer + filtres intelligents */
.product-manager{display:grid;gap:16px}.product-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px;border:1px solid #e5e7eb;border-radius:22px;background:linear-gradient(135deg,#f8fbff,#fff)}.product-toolbar strong{display:block;font-size:18px;color:#0f172a}.product-toolbar small{display:block;margin-top:4px;color:#64748b}.product-toolbar-actions{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(170px,.8fr) minmax(170px,.8fr) auto;gap:10px;align-items:center;min-width:min(100%,760px)}.product-toolbar-actions input,.product-toolbar-actions select{min-height:44px;border:1px solid #d8e0ea;border-radius:14px;background:#fff;padding:0 13px;font-weight:700;color:#0f172a}.product-toolbar-actions input:focus,.product-toolbar-actions select:focus{outline:none;border-color:#1e5bff;box-shadow:0 0 0 4px rgba(30,91,255,.10)}.inventory-summary{display:flex;flex-wrap:wrap;gap:8px}.inventory-summary span{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:9px 12px;background:#f8fafc;border:1px solid #e5e7eb;color:#475569;font-weight:900}.inventory-summary span strong{color:#0f172a}.inventory-summary .warn{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.inventory-summary .danger{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.product-table-wrap{border-radius:24px}.products-admin-table th:last-child,.products-admin-table td:last-child{position:sticky;right:0;background:inherit;box-shadow:-14px 0 22px rgba(15,23,42,.04);z-index:1}.products-admin-table thead th:last-child{background:#f8fafc;z-index:2}.product-action-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:255px}.product-action-cell .btn{white-space:nowrap}.stock-control{display:inline-flex;align-items:center;gap:7px}.stock-control button{width:30px;height:30px;border:0;border-radius:10px;background:#eef4ff;color:#1d4ed8;font-weight:1000;cursor:pointer;transition:.18s}.stock-control button:hover{transform:translateY(-1px);background:#dbeafe}.stock-control button:first-child{background:#f8fafc;color:#64748b}.stock-control button:first-child:hover{background:#fee2e2;color:#b91c1c}.admin-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(10px);display:grid;place-items:center;padding:18px;z-index:1200;overflow:auto}.admin-modal-backdrop.hidden{display:none}.admin-edit-modal{width:min(760px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:30px;padding:28px;box-shadow:0 28px 90px rgba(15,23,42,.32);position:relative;animation:adminModalIn .24s ease both}.admin-edit-modal h2{margin:8px 42px 6px 0;font-size:clamp(24px,4vw,34px);letter-spacing:-.04em}.admin-edit-modal p{margin:0 0 18px;color:#64748b}.admin-edit-close{position:absolute;right:18px;top:18px}.edit-product-form{gap:14px}.edit-product-form textarea{resize:vertical}.inline-checkbox{display:flex!important;align-items:center;gap:10px;border:1px solid #e5e7eb;border-radius:16px;padding:12px;background:#f8fafc}.inline-checkbox input{width:18px;height:18px}.edit-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:8px}.edit-modal-actions .btn{min-width:190px}.btn:disabled{opacity:.7;cursor:not-allowed}@keyframes adminModalIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1050px){.product-toolbar{display:grid}.product-toolbar-actions{grid-template-columns:1fr 1fr;min-width:0}.products-admin-table th:last-child,.products-admin-table td:last-child{position:static;box-shadow:none}}@media(max-width:640px){.product-toolbar-actions{grid-template-columns:1fr}.inventory-summary span{width:100%;justify-content:space-between}.product-action-cell{min-width:0;display:grid;grid-template-columns:1fr}.product-action-cell .btn{width:100%}.admin-edit-modal{padding:22px;border-radius:24px}.edit-modal-actions{display:grid}.edit-modal-actions .btn{width:100%;min-width:0}}

/* === Patch admin compact : actions produits plus propres === */
.products-admin-table{
  min-width:1080px;
}
.products-admin-table th,
.products-admin-table td{
  padding:12px 14px;
}
.products-admin-table th:last-child,
.products-admin-table td:last-child{
  width:168px;
  min-width:168px;
}
.products-admin-table .sizes-cell{
  max-width:140px;
  color:#334155;
  line-height:1.35;
}
.product-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:1000;
  border:1px solid transparent;
}
.product-state.state-ok{
  color:#047857;
  background:#ecfdf5;
  border-color:#bbf7d0;
}
.product-state.state-warning{
  color:#92400e;
  background:#fffbeb;
  border-color:#fde68a;
}
.product-state.state-warn{
  color:#c2410c;
  background:#fff7ed;
  border-color:#fed7aa;
}
.product-state.state-danger{
  color:#b91c1c;
  background:#fef2f2;
  border-color:#fecaca;
}
.compact-actions{
  min-width:0!important;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
}
.icon-action{
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  display:inline-grid;
  place-items:center;
  position:relative;
  font-weight:1000;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.icon-action span{
  font-size:20px;
  line-height:1;
}
.icon-action small{
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  opacity:0;
  pointer-events:none;
  white-space:nowrap;
  background:#0f172a;
  color:#fff;
  padding:6px 9px;
  border-radius:9px;
  font-size:11px;
  font-weight:900;
  box-shadow:0 10px 25px rgba(15,23,42,.18);
  transition:.18s ease;
  z-index:20;
}
.icon-action:hover small,
.icon-action:focus-visible small{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.icon-action:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(15,23,42,.12);
}
.icon-action.edit{
  color:#fff;
  background:linear-gradient(135deg,#1e5bff,#1746d5);
}
.icon-action.duplicate{
  color:#1d4ed8;
  background:#e8efff;
}
.icon-action.delete{
  color:#b91c1c;
  background:#fee2e2;
}
.icon-action.delete:hover{
  filter:brightness(.98);
}
.compact-stock-control{
  gap:6px;
}
.compact-stock-control button{
  width:28px;
  height:28px;
  border-radius:9px;
}
.compact-stock-control .stock-pill{
  min-width:38px;
  padding:6px 9px;
}

@media(max-width:780px){
  .admin-table-wrap.product-table-wrap{
    border:0;
    overflow:visible;
    background:transparent;
  }
  .products-admin-table{
    min-width:0;
    border-collapse:separate;
    border-spacing:0 12px;
    background:transparent;
  }
  .products-admin-table thead{
    display:none;
  }
  .products-admin-table,
  .products-admin-table tbody,
  .products-admin-table tr,
  .products-admin-table td{
    display:block;
    width:100%;
  }
  .products-admin-table tr{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:14px;
    box-shadow:0 12px 28px rgba(15,23,42,.06);
  }
  .products-admin-table td{
    border:0;
    padding:9px 0;
  }
  .products-admin-table td:not(:first-child){
    display:grid;
    grid-template-columns:120px minmax(0,1fr);
    gap:10px;
    align-items:center;
    border-top:1px solid #f1f5f9;
  }
  .products-admin-table td:not(:first-child)::before{
    content:attr(data-label);
    color:#64748b;
    font-size:12px;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.06em;
  }
  .products-admin-table .product-cell img,
  .products-admin-table .image-placeholder{
    width:64px;
    height:64px;
    flex-basis:64px;
  }
  .products-admin-table th:last-child,
  .products-admin-table td:last-child{
    position:static;
    width:100%;
    min-width:0;
    box-shadow:none;
  }
  .compact-actions{
    justify-content:flex-end;
  }
  .icon-action{
    width:44px;
    height:44px;
  }
}

@media(max-width:430px){
  .products-admin-table td:not(:first-child){
    grid-template-columns:1fr;
    gap:6px;
  }
  .compact-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .icon-action small{
    display:none;
  }
}

/* === Correction définitive disposition catalogue admin === */
.product-manager{
  width:100%;
  min-width:0;
  overflow:hidden;
}
.product-toolbar{
  display:grid!important;
  grid-template-columns:minmax(220px,360px) minmax(0,1fr);
  gap:18px;
  align-items:center!important;
  padding:18px 20px!important;
  overflow:hidden;
}
.product-toolbar-actions{
  min-width:0!important;
  width:100%;
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(180px,240px) minmax(170px,220px) auto!important;
  gap:10px!important;
}
.product-toolbar-actions input,
.product-toolbar-actions select,
.product-toolbar-actions button{
  width:100%;
  min-width:0;
  height:46px;
  font-size:14px;
}
.inventory-summary{
  gap:10px!important;
  overflow:hidden;
}
.inventory-summary span{
  padding:8px 12px!important;
  font-size:14px!important;
}

.admin-products-grid{
  display:grid;
  gap:14px;
  width:100%;
  min-width:0;
}
.admin-product-card{
  display:grid;
  grid-template-columns:minmax(280px,1.3fr) minmax(360px,1fr) auto;
  gap:18px;
  align-items:center;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}
.admin-product-card:hover{
  transform:translateY(-1px);
  border-color:#d7e2f0;
  box-shadow:0 16px 35px rgba(15,23,42,.075);
}
.admin-product-main{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.admin-product-media{
  width:68px;
  height:68px;
  flex:0 0 68px;
}
.admin-product-media img,
.admin-product-media .image-placeholder{
  width:68px;
  height:68px;
  border-radius:18px;
  object-fit:cover;
  background:#eef2f7;
  display:grid;
  place-items:center;
}
.admin-product-title{
  min-width:0;
  display:grid;
  gap:5px;
}
.admin-product-topline{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.admin-product-topline strong{
  min-width:0;
  color:#0f172a;
  font-size:17px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-product-title small{
  color:#64748b;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-product-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.admin-product-tags span{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  border-radius:999px;
  padding:5px 9px;
  background:#f8fafc;
  border:1px solid #edf2f7;
  color:#475569;
  font-size:12px;
  font-weight:800;
}
.admin-product-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(82px,1fr));
  gap:8px;
  min-width:0;
}
.metric-box{
  min-width:0;
  display:grid;
  gap:4px;
  padding:10px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #edf2f7;
}
.metric-box span{
  font-size:11px;
  font-weight:1000;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#64748b;
}
.metric-box strong{
  color:#0f172a;
  font-size:14px;
  line-height:1.15;
}
.metric-box strong em{
  color:#94a3b8;
  font-style:normal;
  font-weight:800;
}
.stock-metric .stock-control{
  align-self:center;
}
.admin-product-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
  min-width:190px;
}
.soft-action{
  border:0;
  border-radius:13px;
  padding:10px 11px;
  font-weight:1000;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.soft-action:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}
.soft-action.edit{
  color:#fff;
  background:linear-gradient(135deg,#1e5bff,#1746d5);
}
.soft-action.duplicate{
  color:#1d4ed8;
  background:#e8efff;
}
.soft-action.delete{
  color:#b91c1c;
  background:#fee2e2;
}

@media(max-width:1280px){
  .product-toolbar{
    grid-template-columns:1fr;
  }
  .admin-product-card{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .admin-product-actions{
    justify-content:flex-start;
    min-width:0;
  }
}
@media(max-width:860px){
  .product-toolbar-actions{
    grid-template-columns:1fr 1fr!important;
  }
  .product-toolbar-actions input{
    grid-column:1 / -1;
  }
  .admin-product-metrics{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:560px){
  .product-toolbar{
    padding:14px!important;
    border-radius:18px!important;
  }
  .product-toolbar-actions{
    grid-template-columns:1fr!important;
  }
  .inventory-summary span{
    width:100%;
    justify-content:space-between;
  }
  .admin-product-card{
    padding:14px;
    border-radius:18px;
  }
  .admin-product-main{
    align-items:flex-start;
  }
  .admin-product-media,
  .admin-product-media img,
  .admin-product-media .image-placeholder{
    width:56px;
    height:56px;
    flex-basis:56px;
    border-radius:15px;
  }
  .admin-product-topline{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .admin-product-topline strong,
  .admin-product-title small{
    white-space:normal;
  }
  .admin-product-metrics{
    grid-template-columns:1fr;
  }
  .admin-product-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .soft-action{
    width:100%;
    padding:12px;
  }
}

/* === Admin moderne : commandes en onglets + prévisualisation === */
.admin-dashboard-body{background:
  radial-gradient(circle at 18% 4%,rgba(30,91,255,.14),transparent 28%),
  radial-gradient(circle at 88% 12%,rgba(17,185,93,.10),transparent 24%),
  linear-gradient(135deg,#eef4fb,#f8fafc 42%,#eef2f7);
}
.admin-dashboard-shell{max-width:none;width:100%;padding:0;margin:0}
.admin-app.dashboard-animated{background:transparent}
.admin-sidebar{background:linear-gradient(180deg,#08111f,#101827 58%,#0b1220);border-right:1px solid rgba(255,255,255,.08)}
.admin-sidebar:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 40% 0,rgba(30,91,255,.28),transparent 36%);pointer-events:none}
.admin-sidebar>*{position:relative}
.admin-nav a{display:flex;align-items:center;gap:8px}
.admin-panel-card{backdrop-filter:blur(14px);background:rgba(255,255,255,.86);box-shadow:0 18px 55px rgba(15,23,42,.08);border-color:rgba(203,213,225,.75)}
.orders-panel{overflow:hidden;position:relative}
.orders-panel:before{content:"";position:absolute;right:-110px;top:-120px;width:260px;height:260px;border-radius:999px;background:rgba(30,91,255,.08);filter:blur(2px);pointer-events:none}
.orders-head-modern{position:relative;z-index:1}
.order-tabs-modern{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 16px}
.order-tab{border:1px solid #dbe4f0;background:#fff;border-radius:22px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#334155;box-shadow:0 10px 26px rgba(15,23,42,.05);transition:.22s ease;min-height:64px;text-align:left}
.order-tab span{font-weight:950;font-size:15px}.order-tab strong{min-width:36px;height:36px;border-radius:999px;display:grid;place-items:center;background:#eef4ff;color:#1d4ed8;font-size:16px}.order-tab:hover{transform:translateY(-2px);border-color:#bcd1ff}.order-tab.active{background:linear-gradient(135deg,#123edb,#1e5bff);color:#fff;border-color:transparent;box-shadow:0 18px 42px rgba(30,91,255,.22)}.order-tab.active strong{background:rgba(255,255,255,.18);color:#fff}
.order-command-center{position:relative;z-index:1;display:grid;grid-template-columns:minmax(240px,1.1fr) minmax(260px,.95fr) minmax(330px,1.2fr) minmax(260px,.95fr) auto;gap:12px;align-items:end;margin:0 0 12px;padding:14px;border:1px solid #e1e9f5;background:rgba(248,250,252,.78);border-radius:24px;overflow:hidden}.order-command-center input{height:48px;border:0;background:transparent;padding:0;font-weight:750}.order-search-box{height:54px;display:flex;align-items:center;gap:10px;padding:0 16px;background:#fff;border:1px solid #d8e3f2;border-radius:18px}.order-search-box span{font-size:18px}.filter-block{display:grid;gap:7px}.filter-block small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:1000}.segmented-control{display:flex;align-items:center;gap:7px;padding:5px;background:#fff;border:1px solid #d8e3f2;border-radius:18px;min-height:54px;overflow:auto}.segmented-control.wrap{flex-wrap:wrap;overflow:visible}.segmented-control button{padding:9px 11px;border-radius:13px;background:transparent;color:#475569;font-size:13px;font-weight:950;white-space:nowrap}.segmented-control button:hover{background:#eef4ff;color:#1d4ed8}.segmented-control button.active{background:#0f172a;color:#fff;box-shadow:0 8px 18px rgba(15,23,42,.16)}.compact-reset{min-height:54px;align-self:end;white-space:nowrap}.active-order-tags{min-height:30px}.active-order-tags span{background:#eef6ff;color:#1d4ed8;border:1px solid #cfe0ff}
.orders-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(350px,.72fr);gap:18px;align-items:start;margin-top:14px}.modern-orders-list{display:grid;gap:12px}.modern-order-card{position:relative;margin:0!important;padding:16px!important;border-radius:22px!important;cursor:pointer;overflow:hidden;background:rgba(255,255,255,.95)!important;border:1px solid #e4ebf5!important;box-shadow:0 12px 32px rgba(15,23,42,.06)!important;animation:adminCardIn .32s ease both}.modern-order-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#94a3b8}.modern-order-card:has(.completion-chip.pending):before{background:#1e5bff}.modern-order-card:has(.completion-chip.completed):before{background:#11b95d}.modern-order-card.selected{border-color:#1e5bff!important;box-shadow:0 20px 48px rgba(30,91,255,.16)!important;transform:translateY(-1px)}.compact-order-head{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px}.compact-order-head strong{font-size:15px!important}.compact-order-head span{font-size:13px}.order-client-line{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.order-client-line>div{border:1px solid #edf2f8;background:#f9fbff;border-radius:16px;padding:12px}.order-client-line span{display:block;color:#64748b;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:1000;margin-bottom:4px}.order-client-line strong{display:block;font-size:18px;color:#0f172a}.order-client-line small{display:block;color:#64748b;margin-top:2px}.order-mini-product{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px dashed #e5eaf2;border-bottom:1px dashed #e5eaf2;color:#334155}.order-mini-product span{font-weight:900}.order-mini-product small{color:#64748b;white-space:nowrap}.order-quick-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:13px}.soft-action.preview{background:#eef4ff;color:#1d4ed8}.soft-action.wait{background:#fff7ed;color:#c2410c}.soft-action.done,.soft-action.delivered{background:#dcfce7;color:#166534}.soft-action.undo{background:#f1f5f9;color:#334155}.soft-action.delete{background:#fee2e2;color:#b91c1c}.soft-action{border-radius:14px;padding:10px 13px;font-weight:1000;transition:.18s}.soft-action:hover{transform:translateY(-1px);filter:brightness(.98)}
.order-preview-panel{position:sticky;top:20px;min-height:420px;border-radius:26px;border:1px solid #dbe6f3;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.94));box-shadow:0 18px 45px rgba(15,23,42,.08);padding:20px;overflow:hidden;animation:adminCardIn .35s ease both}.order-preview-panel:before{content:"";position:absolute;right:-60px;top:-70px;width:180px;height:180px;border-radius:999px;background:rgba(30,91,255,.10)}.order-preview-panel>*{position:relative}.preview-empty{min-height:360px;display:grid;place-items:center;text-align:center;color:#64748b;align-content:center}.preview-empty span{width:76px;height:76px;display:grid;place-items:center;border-radius:26px;background:#eef4ff;font-size:32px;margin-bottom:12px}.preview-empty h3{margin:0;color:#0f172a}.preview-empty p{max-width:320px;line-height:1.5}.preview-top{display:grid;gap:5px;margin-bottom:16px}.preview-top h3{font-size:22px;margin:0;color:#0f172a}.preview-top small{color:#64748b}.preview-badges{justify-content:flex-start;margin-top:8px}.preview-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.preview-metrics div{border-radius:18px;background:#0f172a;color:#fff;padding:14px}.preview-metrics div:nth-child(2){background:linear-gradient(135deg,#1e5bff,#1539c7)}.preview-metrics span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:rgba(255,255,255,.72);font-weight:1000}.preview-metrics strong{font-size:20px;display:block;margin-top:4px}.preview-section{border-top:1px solid #edf2f8;padding-top:14px;margin-top:14px}.preview-section h4{font-size:13px;text-transform:uppercase;letter-spacing:.07em;color:#64748b;margin:0 0 8px}.preview-section p{margin:0;color:#334155;line-height:1.45}.preview-items{display:grid;gap:8px}.preview-item{display:flex;justify-content:space-between;gap:12px;border:1px solid #edf2f8;border-radius:16px;padding:11px;background:#fff}.preview-item strong{display:block;color:#0f172a}.preview-item small{display:block;color:#64748b}.preview-item span{font-weight:1000;color:#1d4ed8}.preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.preview-actions .full{grid-column:1/-1}.order-preview-panel .order-location{margin-top:14px}.status-chip,.completion-chip{box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.product-manager,.admin-products-grid{overflow:visible}.product-toolbar{gap:16px}.product-toolbar-actions{max-width:100%;flex-wrap:wrap}.product-toolbar-actions input{min-width:260px}.admin-products-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.admin-product-card{transition:.2s ease}.admin-product-card:hover{transform:translateY(-2px);box-shadow:0 20px 48px rgba(15,23,42,.10)}
@keyframes adminCardIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1380px){.order-command-center{grid-template-columns:1fr 1fr}.compact-reset{width:max-content}.orders-workspace{grid-template-columns:1fr}.order-preview-panel{position:relative;top:auto;order:-1;min-height:auto}.preview-empty{min-height:220px}}
@media(max-width:860px){.order-tabs-modern{grid-template-columns:1fr}.order-command-center{grid-template-columns:1fr;padding:12px}.segmented-control{overflow:auto}.order-client-line,.preview-metrics,.preview-actions{grid-template-columns:1fr}.compact-order-head{display:grid!important}.order-mini-product{display:grid}.order-mini-product small{white-space:normal}.order-quick-actions{justify-content:flex-start}.orders-panel{padding:16px}.admin-main{padding:12px}.admin-products-grid{grid-template-columns:1fr}.product-toolbar,.product-toolbar-actions{display:grid!important;grid-template-columns:1fr!important}.product-toolbar-actions input{min-width:0}}
@media(max-width:520px){.modern-order-card{padding:14px!important}.order-tab{padding:14px}.admin-counter{min-width:0}.preview-item{display:grid}.order-preview-panel{padding:16px;border-radius:22px}.segmented-control.wrap button{flex:1 1 auto}.admin-header,.admin-panel-card{border-radius:20px}}

/* =========================================================
   ADMIN V2 — Console moderne, responsive, sans débordement
   ========================================================= */
.admin-redesign-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .12), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, .12), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f8fafc 42%, #eef2f7 100%);
}

.admin-console-v2 {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .14);
  border: 1px solid rgba(148, 163, 184, .22);
}

.admin-sidebar-v2 {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .32), transparent 36%),
    linear-gradient(180deg, #0f172a 0%, #111827 52%, #020617 100%);
}

.admin-logo-v2 span {
  box-shadow: 0 16px 40px rgba(37, 99, 235, .35);
}

.admin-nav-v2 a {
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.admin-nav-v2 a:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}

.admin-main-v2 {
  min-width: 0;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(18px);
}

.admin-header-v2,
.admin-card-v2 {
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 18px 60px rgba(15, 23, 42, .08);
}

.admin-header-v2 {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(239,246,255,.82)),
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.16), transparent 28%);
  border-radius: 28px;
  padding: 26px;
}

.stats-grid-v2 .stat-card {
  border-radius: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stats-grid-v2 .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15,23,42,.10);
}

.orders-panel-v2 {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92)),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .08), transparent 28%);
}

.orders-topbar-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.orders-topbar-v2 h2 {
  margin: 4px 0 4px;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  color: #0f172a;
}
.orders-topbar-v2 p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}
.section-actions-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-counter-v2 {
  background: #0f172a;
  color: white;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(15,23,42,.18);
  white-space: nowrap;
}

.orders-tabs-row-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.order-tab-v2 {
  border: 1px solid #dbe5f3;
  background: rgba(255,255,255,.82);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: #334155;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.order-tab-v2 strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8eefc;
  color: #1d4ed8;
}
.order-tab-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.order-tab-v2.active {
  border-color: rgba(37,99,235,.5);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  box-shadow: 0 18px 42px rgba(37,99,235,.24);
}
.order-tab-v2.active strong {
  background: rgba(255,255,255,.18);
  color: white;
}

.orders-toolbar-v2 {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(241,245,249,.82);
  border: 1px solid #dbe5f3;
  margin-bottom: 12px;
}
.order-search-box-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dbe5f3;
  padding: 0 14px;
  min-width: 0;
}
.order-search-box-v2 input {
  border: 0 !important;
  outline: none;
  min-width: 0;
  width: 100%;
  height: 54px;
  background: transparent;
  font-weight: 700;
}

.orders-workspace-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 18px;
  align-items: start;
  overflow: visible;
}
.orders-list-panel-v2,
.order-preview-panel-v2 {
  min-width: 0;
}
.orders-list-v2 {
  display: grid;
  gap: 14px;
}

.order-card-v2 {
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.92);
  border-radius: 26px;
  padding: 18px;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: adminCardIn .35s ease both;
}
.order-card-v2:hover,
.order-card-v2.selected {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.42);
  box-shadow: 0 18px 48px rgba(37,99,235,.12);
}
.order-card-v2.is-treated {
  background: linear-gradient(135deg, rgba(240,253,244,.96), rgba(255,255,255,.92));
}
.order-card-v2-head,
.order-card-v2-body,
.order-card-v2-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.order-card-v2-head { margin-bottom: 16px; }
.order-code {
  display: block;
  color: #0f172a;
  font-weight: 950;
  font-size: 1rem;
  word-break: break-word;
}
.order-card-v2-head small,
.order-customer-v2 small,
.order-total-v2 small {
  color: #64748b;
  display: block;
  margin-top: 4px;
}
.order-customer-v2,
.order-total-v2 {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}
.order-customer-v2 span,
.order-total-v2 span {
  display: block;
  color: #64748b;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.order-customer-v2 strong,
.order-total-v2 strong {
  color: #0f172a;
  font-size: 1.1rem;
}

.order-items-mini {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}
.order-items-mini span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-weight: 750;
}
.order-items-mini span strong {
  color: #1d4ed8;
  white-space: nowrap;
}
.order-items-mini em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}
.order-items-mini.empty {
  color: #94a3b8;
}

.order-card-v2-actions {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.primary-soft {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
}
.treated-note,
.treated-confirmation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
}

.completion-chip.pending {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.completion-chip.completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.items-count-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 900;
}
.preview-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.order-preview-panel-v2 {
  position: sticky;
  top: 16px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.92)),
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.12), transparent 34%);
  border: 1px solid #dbe5f3;
  box-shadow: 0 18px 55px rgba(15,23,42,.08);
  padding: 18px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.preview-top-v2 h3 {
  word-break: break-word;
}
.preview-metrics-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.preview-metrics-v2 div,
.preview-section-v2 {
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.preview-items-v2 {
  display: grid;
  gap: 10px;
}
.preview-item-v2 {
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
}
.preview-actions-v2 {
  margin-top: 16px;
}

.product-admin-form-v2 input,
.product-admin-form-v2 textarea,
.product-admin-form-v2 select {
  border-radius: 16px;
}

@keyframes adminCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .orders-workspace-v2 {
    grid-template-columns: 1fr;
  }
  .order-preview-panel-v2 {
    position: relative;
    top: auto;
    max-height: none;
    order: -1;
  }
}

@media (max-width: 900px) {
  .orders-topbar-v2,
  .section-actions-v2 {
    align-items: stretch;
    flex-direction: column;
  }
  .orders-tabs-row-v2 {
    grid-template-columns: 1fr;
  }
  .orders-toolbar-v2 {
    grid-template-columns: 1fr;
  }
  .order-card-v2-body,
  .order-card-v2-head {
    flex-direction: column;
  }
  .order-customer-v2,
  .order-total-v2 {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .admin-header-v2,
  .admin-card-v2 {
    border-radius: 22px;
    padding: 18px;
  }
  .order-card-v2 {
    border-radius: 22px;
    padding: 14px;
  }
  .order-items-mini span {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-metrics-v2 {
    grid-template-columns: 1fr;
  }
  .admin-counter-v2,
  .section-actions-v2 .btn {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   Patch footer partout + créateur + navbar admin persistante
   À garder en fin de fichier pour écraser les anciens styles.
   ========================================================= */
.footer-bottom-creator{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-created{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#dbeafe;
  font-weight:800;
}
.footer-created strong{
  color:#ffffff;
  letter-spacing:.04em;
}

.admin-global-footer{
  margin:24px 0 6px;
  padding:18px 22px;
  border-radius:24px;
  border:1px solid #dbe5f3;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  box-shadow:0 14px 35px rgba(15,23,42,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.admin-global-footer div{
  display:grid;
  gap:3px;
}
.admin-global-footer strong{
  color:#0f172a;
  font-weight:1000;
}
.admin-global-footer span{
  color:#64748b;
  font-weight:700;
}
.admin-global-footer p{
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:999px;
  background:#eef4ff;
  color:#1d4ed8;
  font-weight:900;
}
.admin-global-footer p strong{
  color:#1d4ed8;
  letter-spacing:.04em;
}

.admin-login-footer{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto 24px;
  padding:14px 18px;
  border-radius:20px;
  border:1px solid #dbe5f3;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 35px rgba(15,23,42,.07);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#64748b;
  font-weight:800;
}
.admin-login-footer strong{
  color:#1d4ed8;
  letter-spacing:.04em;
}

/* Navbar admin toujours visible */
.admin-app,
.admin-app.admin-console-v2{
  align-items:start;
}
.admin-sidebar,
.admin-sidebar-v2{
  position:sticky !important;
  top:0 !important;
  height:100dvh !important;
  max-height:100dvh !important;
  overflow-y:auto !important;
  scrollbar-width:thin;
  z-index:50 !important;
}
.admin-sidebar::-webkit-scrollbar,
.admin-sidebar-v2::-webkit-scrollbar{
  width:7px;
}
.admin-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar-v2::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.22);
  border-radius:999px;
}

@media(max-width:1180px){
  .admin-sidebar,
  .admin-sidebar-v2{
    position:sticky !important;
    top:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    border-radius:0 0 24px 24px;
  }
  .admin-nav,
  .admin-nav-v2{
    display:flex !important;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }
  .admin-nav a,
  .admin-nav-v2 a{
    flex:0 0 auto;
    white-space:nowrap;
  }
  .sidebar-footer,
  .sidebar-footer-v2{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
}

@media(max-width:640px){
  .footer-bottom-creator,
  .admin-global-footer,
  .admin-login-footer{
    justify-content:center;
    text-align:center;
  }
  .footer-created,
  .admin-global-footer p{
    width:100%;
    justify-content:center;
  }
}

/* =========================================================
   FINAL PATCH — Footer identique partout + sidebar admin fixe
   ========================================================= */

/* Le sticky ne marche pas si un parent coupe l'overflow. */
.admin-shell,
.admin-dashboard-shell,
.admin-app,
.admin-app.admin-console-v2,
.admin-console-v2,
.admin-main,
.admin-main-v2{
  overflow:visible !important;
}

.admin-app,
.admin-app.admin-console-v2{
  align-items:start !important;
}

/* Sidebar admin toujours visible pendant le scroll desktop. */
.admin-sidebar,
.admin-sidebar-v2{
  position:sticky !important;
  top:0 !important;
  align-self:start !important;
  height:100vh !important;
  height:100dvh !important;
  min-height:100vh !important;
  min-height:100dvh !important;
  max-height:100vh !important;
  max-height:100dvh !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  z-index:80 !important;
}

.admin-sidebar .sidebar-footer,
.admin-sidebar-v2 .sidebar-footer-v2,
.sidebar-footer,
.sidebar-footer-v2{
  margin-top:auto !important;
}

/* Footer client réutilisé aussi dans l'admin. */
.admin-site-footer{
  margin-top:34px !important;
  border-radius:30px 30px 0 0;
  box-shadow:0 -18px 60px rgba(15,23,42,.10);
}
.admin-main-v2 > .admin-site-footer,
.admin-main > .admin-site-footer{
  width:100%;
}
.admin-site-footer .footer-inner,
.admin-site-footer .footer-bottom{
  width:min(1180px, calc(100% - 40px));
}
.footer-created{
  text-transform:none;
}

/* Si une ancienne version a laissé l'ancien footer admin, on le rend cohérent. */
.admin-global-footer,
.admin-login-footer{
  display:none !important;
}

@media(max-width:1180px){
  .admin-app,
  .admin-app.admin-console-v2{
    display:block !important;
  }
  .admin-sidebar,
  .admin-sidebar-v2{
    position:sticky !important;
    top:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    z-index:100 !important;
    border-radius:0 0 24px 24px;
  }
  .admin-nav,
  .admin-nav-v2{
    display:flex !important;
    gap:8px;
    overflow-x:auto;
    padding-bottom:6px;
    scrollbar-width:thin;
  }
  .admin-nav a,
  .admin-nav-v2 a{
    flex:0 0 auto;
    white-space:nowrap;
  }
  .sidebar-footer,
  .sidebar-footer-v2{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
}

@media(max-width:640px){
  .admin-site-footer{
    border-radius:24px 24px 0 0;
  }
  .admin-site-footer .footer-inner,
  .admin-site-footer .footer-bottom{
    width:calc(100% - 28px);
  }
}


/* =========================================================
   PATCH FINAL FOOTER CLIENT + MINI FOOTER ADMIN
   Objectif : footer client plus léger, footer admin minimal,
   sidebar admin qui s'arrête avant le footer admin.
   ========================================================= */

/* Footer client : uniquement marque + contact */
.compact-client-footer{
  position:relative;
  padding:64px 5vw 28px;
  overflow:hidden;
  background:
    radial-gradient(circle at 88% 72%, rgba(30,91,255,.42), transparent 24%),
    linear-gradient(135deg,#071226 0%,#0c1f44 50%,#14367a 100%);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.08);
}

.compact-client-footer .footer-inner-two{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:clamp(28px,6vw,92px);
  align-items:stretch;
}

.compact-client-footer .footer-brand-block,
.compact-client-footer .footer-contact-card{
  min-width:0;
}

.compact-client-footer .footer-brand{
  display:inline-flex;
  align-items:center;
  gap:16px;
  color:#fff;
  text-decoration:none;
  margin-bottom:22px;
}

.compact-client-footer .footer-logo{
  width:58px;
  height:58px;
  border-radius:22px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.compact-client-footer .footer-brand strong{
  display:block;
  color:#fff;
  font-size:clamp(23px,2.4vw,34px);
  line-height:1;
  letter-spacing:.02em;
}

.compact-client-footer .footer-brand small{
  display:block;
  margin-top:7px;
  color:#bdd3ff;
  font-size:17px;
  font-weight:800;
}

.compact-client-footer .footer-brand-block p,
.compact-client-footer .footer-contact-card p{
  max-width:560px;
  color:#c7d7ff;
  font-size:clamp(16px,1.5vw,20px);
  line-height:1.75;
  margin:0 0 22px;
}

.compact-client-footer .footer-actions,
.compact-client-footer .footer-contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.compact-client-footer .footer-btn,
.compact-client-footer .footer-contact-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:13px 18px;
  border-radius:18px;
  color:#fff;
  text-decoration:none;
  font-weight:1000;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  transition:.22s ease;
}

.compact-client-footer .footer-btn-primary,
.compact-client-footer .footer-whatsapp-link{
  background:linear-gradient(135deg,#1e5bff,#1847d9);
  border-color:rgba(255,255,255,.16);
}

.compact-client-footer .footer-btn:hover,
.compact-client-footer .footer-contact-link:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.17);
}

.compact-client-footer .footer-contact-card{
  padding:28px;
  border-radius:32px;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 70px rgba(0,0,0,.18);
}

.compact-client-footer .footer-chip{
  display:inline-flex;
  width:max-content;
  padding:9px 13px;
  border-radius:999px;
  color:#bcd2ff;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.14);
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:16px;
}

.compact-client-footer .footer-contact-card h3{
  color:#fff;
  margin:0 0 14px;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.25;
  letter-spacing:-.02em;
}

.compact-client-footer .footer-bottom{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:44px auto 0;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.12);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:16px;
  align-items:center;
  color:#bfd1ff;
  font-size:15px;
}

.compact-client-footer .footer-bottom span:nth-child(2){
  text-align:center;
}

.compact-client-footer .footer-created{
  justify-self:end;
  max-width:100%;
  color:#fff;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:11px 16px;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
  white-space:nowrap;
}

/* Admin : aucun gros footer client dans la console */
.admin-site-footer{
  display:none!important;
}

.admin-dashboard-shell{
  display:block;
  min-height:auto;
}

.admin-app,
.admin-app.admin-console-v2{
  min-height:auto!important;
  align-items:start;
}

.admin-sidebar,
.admin-sidebar-v2{
  position:sticky!important;
  top:0!important;
  height:100svh!important;
  max-height:100svh!important;
  align-self:start!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}

/* Mini footer admin, séparé de la sidebar */
.admin-mini-footer{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 28px;
  color:#b8c8e8;
  background:linear-gradient(135deg,#071226,#0b1730);
  border-top:1px solid rgba(255,255,255,.08);
  box-shadow:0 -12px 34px rgba(15,23,42,.10);
  font-weight:800;
}

.admin-mini-footer strong{
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:9px 14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  letter-spacing:.02em;
  white-space:nowrap;
}

.admin-login-mini-footer{
  margin-top:0;
}

@media(max-width:1180px){
  .compact-client-footer .footer-inner-two{
    grid-template-columns:1fr;
  }
  .compact-client-footer .footer-bottom{
    grid-template-columns:1fr;
    text-align:left;
  }
  .compact-client-footer .footer-bottom span:nth-child(2){
    text-align:left;
  }
  .compact-client-footer .footer-created{
    justify-self:start;
    white-space:normal;
  }

  .admin-sidebar,
  .admin-sidebar-v2{
    position:sticky!important;
    top:0!important;
    height:auto!important;
    max-height:none!important;
    z-index:30;
  }
}

@media(max-width:720px){
  .compact-client-footer{
    padding:46px 18px 24px;
  }
  .compact-client-footer .footer-contact-card{
    padding:22px;
    border-radius:26px;
  }
  .compact-client-footer .footer-actions,
  .compact-client-footer .footer-contact-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .compact-client-footer .footer-btn,
  .compact-client-footer .footer-contact-link{
    width:100%;
  }
  .admin-mini-footer{
    display:grid;
    justify-items:start;
    padding:16px 18px;
    font-size:14px;
  }
}

/* =========================================================
   Correction finale : boutons de gestion du stock admin
   Empêche les boutons - / + de sortir de la carte stock.
   ========================================================= */
.admin-product-card .admin-product-metrics{
  align-items:stretch;
}

.admin-product-card .metric-box,
.admin-product-card .metric-card,
.catalogue-admin-card .metric-box,
.catalogue-admin-card .metric-card,
.product-admin-card .metric-box,
.product-admin-card .metric-card{
  min-width:0!important;
  overflow:hidden;
}

.admin-product-card .metric-box.stock-metric,
.admin-product-card .metric-card.stock,
.catalogue-admin-card .metric-box.stock-metric,
.catalogue-admin-card .metric-card.stock,
.product-admin-card .metric-box.stock-metric,
.product-admin-card .metric-card.stock{
  min-width:126px!important;
  overflow:visible!important;
}

.admin-product-card .stock-control,
.admin-product-card .compact-stock-control,
.catalogue-admin-card .stock-control,
.catalogue-admin-card .compact-stock-control,
.product-admin-card .stock-control,
.product-admin-card .compact-stock-control{
  display:grid!important;
  grid-template-columns:30px 42px 30px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  max-width:120px!important;
  margin:8px auto 0!important;
}

.admin-product-card .stock-control button,
.admin-product-card .compact-stock-control button,
.catalogue-admin-card .stock-control button,
.catalogue-admin-card .compact-stock-control button,
.product-admin-card .stock-control button,
.product-admin-card .compact-stock-control button{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  padding:0!important;
  border:1px solid #dbe5f3!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:1000!important;
  box-shadow:0 8px 18px rgba(15,23,42,.05)!important;
}

.admin-product-card .stock-control button:first-child,
.admin-product-card .compact-stock-control button:first-child,
.catalogue-admin-card .stock-control button:first-child,
.catalogue-admin-card .compact-stock-control button:first-child,
.product-admin-card .stock-control button:first-child,
.product-admin-card .compact-stock-control button:first-child{
  background:#f8fafc!important;
  color:#475569!important;
}

.admin-product-card .stock-control button:last-child,
.admin-product-card .compact-stock-control button:last-child,
.catalogue-admin-card .stock-control button:last-child,
.catalogue-admin-card .compact-stock-control button:last-child,
.product-admin-card .stock-control button:last-child,
.product-admin-card .compact-stock-control button:last-child{
  background:#eaf1ff!important;
  color:#1d4ed8!important;
}

.admin-product-card .stock-control button:hover,
.admin-product-card .compact-stock-control button:hover,
.catalogue-admin-card .stock-control button:hover,
.catalogue-admin-card .compact-stock-control button:hover,
.product-admin-card .stock-control button:hover,
.product-admin-card .compact-stock-control button:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(30,91,255,.12)!important;
}

.admin-product-card .stock-pill,
.admin-product-card .stock-value,
.catalogue-admin-card .stock-pill,
.catalogue-admin-card .stock-value,
.product-admin-card .stock-pill,
.product-admin-card .stock-value{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:30px!important;
  padding:0!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:14px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}

@media(max-width:720px){
  .admin-product-card .metric-box.stock-metric,
  .admin-product-card .metric-card.stock,
  .catalogue-admin-card .metric-box.stock-metric,
  .catalogue-admin-card .metric-card.stock,
  .product-admin-card .metric-box.stock-metric,
  .product-admin-card .metric-card.stock{
    min-width:0!important;
  }

  .admin-product-card .stock-control,
  .admin-product-card .compact-stock-control,
  .catalogue-admin-card .stock-control,
  .catalogue-admin-card .compact-stock-control,
  .product-admin-card .stock-control,
  .product-admin-card .compact-stock-control{
    margin-left:0!important;
    margin-right:0!important;
  }
}


/* =========================================================
   PATCH — Commandes légères + bulle infos + IA lisible + logo
   À garder tout en bas du fichier.
   ========================================================= */

/* Logo boutique dans header/footer/client/admin */
.logo-img-wrap,
.footer-logo,
.admin-logo-mark{
  overflow:hidden!important;
  background:linear-gradient(135deg,#1e5bff,#1539c7)!important;
}
.brand-logo-img,
.footer-logo-img,
.admin-logo-img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.admin-logo-mark{
  width:52px!important;
  height:52px!important;
  flex:0 0 52px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 12px 30px rgba(30,91,255,.32)!important;
}
.footer-logo-img{border-radius:inherit;}

/* Assistant IA : lisible, sérieux, contrasté */
#aiSection.ai-panel,
.ai-panel.admin-card-v2{
  background:
    radial-gradient(circle at top right,rgba(59,130,246,.28),transparent 34%),
    linear-gradient(135deg,#071226,#111827 58%,#172554)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.18)!important;
}
#aiSection .page-kicker,
.ai-panel .page-kicker{color:#8bb6ff!important;}
#aiSection h2,
#aiSection p,
#aiSection .admin-section-head p,
.ai-panel h2,
.ai-panel p{color:#eef6ff!important;}
#aiSection .ai-badge{
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:0 12px 28px rgba(255,255,255,.12)!important;
}
#aiInsights.pro-ai,
#aiInsights.ai-insights{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
#aiInsights .ai-insight{
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:18px!important;
  padding:16px!important;
  box-shadow:0 14px 35px rgba(0,0,0,.12)!important;
}
#aiInsights .ai-insight strong{
  color:#ffffff!important;
  font-size:16px!important;
  letter-spacing:.01em!important;
}
#aiInsights .ai-insight p{
  color:#dbeafe!important;
  font-size:14.5px!important;
  line-height:1.6!important;
}

/* Liste commandes moins chargée */
.orders-no-preview .orders-accordion-list{
  max-height:calc(100dvh - 330px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:6px!important;
}
.compact-order-card{
  border-radius:22px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid #dbe5f3!important;
  box-shadow:0 12px 30px rgba(15,23,42,.055)!important;
}
.compact-order-summary{
  grid-template-columns:minmax(180px,1fr) minmax(170px,.75fr) auto!important;
  padding:14px 16px!important;
  gap:12px!important;
}
.order-summary-minimal{
  min-width:0;
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #edf2f7;
}
.order-summary-minimal strong,
.order-summary-minimal small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-summary-minimal strong{color:#0f172a;font-size:15px;}
.order-summary-minimal small{color:#64748b;font-weight:800;}
.compact-state{gap:8px!important;}
.info-bubble-btn{
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  background:#eef4ff!important;
  color:#1d4ed8!important;
  border:1px solid #cfe0ff!important;
  font-size:13px!important;
  font-weight:1000!important;
  box-shadow:none!important;
}
.info-bubble-btn:hover{background:#dbeafe!important;transform:translateY(-1px)!important;}
.compact-order-content{
  padding:0 16px 16px!important;
  max-height:260px!important;
  overflow:auto!important;
}
.compact-order-line{
  display:grid;
  gap:4px;
  padding:14px;
  margin:14px 0;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #edf2f7;
}
.compact-order-line span{
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-size:11px;
  font-weight:1000;
}
.compact-order-line strong{color:#0f172a;word-break:break-word;}
.compact-order-line small{color:#64748b;font-weight:800;}
.compact-order-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.compact-order-actions .btn,
.compact-order-actions .soft-action{min-width:170px;}

/* Bulle/modale d'informations complètes commande */
body.admin-modal-open{overflow:hidden;}
.order-info-modal.hidden{display:none!important;}
.order-info-modal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  padding:18px;
}
.order-info-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.62);
  backdrop-filter:blur(10px);
}
.order-info-bubble{
  position:relative;
  z-index:1;
  width:min(760px,100%);
  max-height:min(86dvh,760px);
  overflow:auto;
  border-radius:30px;
  background:
    radial-gradient(circle at top right,rgba(30,91,255,.12),transparent 30%),
    linear-gradient(135deg,#ffffff,#f8fbff);
  border:1px solid #dbe5f3;
  box-shadow:0 32px 110px rgba(15,23,42,.35);
  padding:26px;
  animation:adminCardIn .22s ease both;
}
.order-info-close{
  position:sticky;
  top:0;
  margin-left:auto;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:16px;
  background:#eef4ff!important;
  color:#1d4ed8!important;
  border:1px solid #cfe0ff!important;
  font-size:25px!important;
  padding:0!important;
  z-index:2;
}
.order-info-head{margin-top:-38px;padding-right:54px;}
.order-info-head h2{
  margin:7px 0 4px;
  font-size:clamp(24px,4vw,34px);
  letter-spacing:-.04em;
  color:#0f172a;
  word-break:break-word;
}
.order-info-head p{margin:0;color:#64748b;}
.order-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:18px 0;
}
.order-info-box{
  min-width:0;
  padding:15px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.order-info-box span,
.order-info-section h3{
  display:block;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
  font-weight:1000;
  margin:0 0 8px;
}
.order-info-box strong{display:block;color:#0f172a;font-size:18px;word-break:break-word;}
.order-info-box small{display:block;color:#64748b;margin-top:4px;}
.order-info-section{
  margin-top:12px;
  padding:14px;
  border-radius:20px;
  background:#fff;
  border:1px solid #e2e8f0;
}
.order-info-items{display:grid;gap:8px;max-height:230px;overflow:auto;padding-right:4px;}
.order-info-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background:#eff6ff;
  border:1px solid #dbeafe;
}
.order-info-item div{min-width:0;}
.order-info-item strong{display:block;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.order-info-item small{display:block;color:#64748b;}
.order-info-item span{color:#1d4ed8;font-weight:1000;white-space:nowrap;}
.order-info-actions{display:flex;justify-content:flex-end;margin-top:16px;}
.order-info-actions .btn{min-width:230px;}
.order-info-bubble .order-location{margin:0!important;}
.order-info-bubble .order-location span,
.order-info-bubble .order-location small{word-break:break-word;}

@media(max-width:860px){
  .compact-order-summary{grid-template-columns:1fr!important;}
  .compact-state{justify-content:flex-start!important;}
  .orders-no-preview .orders-accordion-list{max-height:none!important;overflow:visible!important;padding-right:0!important;}
  .order-info-grid{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .order-info-modal{padding:10px;align-items:start;}
  .order-info-bubble{max-height:calc(100dvh - 20px);border-radius:24px;padding:20px;}
  .order-info-head{margin-top:-34px;}
  .order-info-item{display:grid;}
  .order-info-actions .btn{width:100%;min-width:0;}
  .compact-order-actions{display:grid;}
  .compact-order-actions .btn,.compact-order-actions .soft-action{width:100%;min-width:0;}
}


/* =========================================================
   PATCH FINAL — commandes sans espace vide + logo PNG officiel
   ========================================================= */

/* Header client : remplacer le texte par le logo officiel sans casser app.js */
.brand.brand-logo-only{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  min-width:0!important;
  text-decoration:none!important;
}
.site-header-logo{
  display:block!important;
  width:auto!important;
  height:66px!important;
  max-width:min(330px,58vw)!important;
  object-fit:contain!important;
}
.brand-text-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Footer client : même logique, le logo prend la place du texte AU MOINS CHER */
.footer-logo-only{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin-bottom:22px!important;
}
.footer-main-logo{
  display:block!important;
  width:auto!important;
  height:96px!important;
  max-width:min(380px,100%)!important;
  object-fit:contain!important;
  filter:drop-shadow(0 16px 35px rgba(0,0,0,.18));
}

/* Logo admin : utilise le même fichier PNG, sans changer la place du menu */
.admin-logo-img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border-radius:16px!important;
}
.admin-logo-mark{
  overflow:hidden!important;
  background:#1e5bff!important;
}

/* Commandes : supprimer le grand espace vide à droite */
.orders-panel-v2,
.orders-panel,
#ordersSection{
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
.orders-no-preview,
.orders-workspace.orders-no-preview,
.orders-accordion-workspace.orders-no-preview,
.orders-no-preview .orders-list-panel-full,
.orders-no-preview .orders-list-panel-v2{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  overflow:hidden!important;
}
.orders-no-preview .orders-accordion-list,
#adminOrders.orders-accordion-list{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
  overflow-x:hidden!important;
}
.orders-no-preview .order-dropdown-card,
#adminOrders .order-dropdown-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* En-tête de commande moins chargé, mais qui occupe toute la largeur */
.orders-no-preview .order-dropdown-summary,
#adminOrders .order-dropdown-summary{
  width:100%!important;
  grid-template-columns:minmax(220px,.9fr) minmax(260px,1fr) auto!important;
  align-items:center!important;
}
.orders-no-preview .orders-hint-card{
  display:none!important;
}
.order-summary-minimal{
  max-width:none!important;
}
.compact-state{
  min-width:max-content!important;
}

/* IA : contraste forcé, même si d'anciens styles repassent par-dessus */
#aiSection.ai-panel,
#aiSection.admin-panel-card,
.ai-panel.admin-card-v2{
  background:linear-gradient(135deg,#071226,#0f172a 54%,#172554)!important;
  color:#ffffff!important;
}
#aiSection *,
.ai-panel *{
  color:inherit;
}
#aiSection h2,
#aiSection .page-kicker,
#aiSection .admin-section-head h2,
#aiSection .admin-section-head p,
#aiInsights .ai-insight strong,
#aiInsights .ai-insight p{
  color:#ffffff!important;
  opacity:1!important;
}
#aiInsights .ai-insight{
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
#aiInsights .ai-insight p{
  color:#dbeafe!important;
  font-weight:700!important;
}
#aiSection .ai-badge{
  background:#ffffff!important;
  color:#0f172a!important;
}

@media(max-width:900px){
  .site-header-logo{
    height:180px!important;
    max-width:min(280px,62vw)!important;
  }
  .footer-main-logo{
    height:82px!important;
  }
  .orders-no-preview .order-dropdown-summary,
  #adminOrders .order-dropdown-summary{
    grid-template-columns:1fr!important;
  }
  .compact-state{
    justify-content:flex-start!important;
  }
}

@media(max-width:560px){
  .site-header-logo{
    height:50px!important;
    max-width:min(230px,60vw)!important;
  }
  .footer-main-logo{
    height:72px!important;
  }
}
/* =========================================================
   LOGO ADMIN COMPLET — remplace la bulle + le texte
   ========================================================= */

.admin-sidebar .admin-logo-full-link,
.admin-sidebar-v2 .admin-logo-full-link {
  width: 100% !important;
  min-height: 128px !important;
  padding: 18px !important;
  border-radius: 28px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .255), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045)) !important;

  border: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 45px rgba(0, 0, 0, .18) !important;

  overflow: hidden !important;
  text-decoration: none !important;
}

.admin-sidebar-logo-full {
  display: block !important;
  width: 100% !important;
  max-width: 280px !important;
  height: auto !important;
  max-height: 92px !important;
  object-fit: contain !important;
}

/* On neutralise les anciens styles de la bulle au cas où */
.admin-logo-full-link .admin-logo-mark,
.admin-logo-full-link .admin-logo-img,
.admin-logo-full-link div,
.admin-logo-full-link strong,
.admin-logo-full-link small {
  display: none !important;
}

/* Responsive tablette */
@media (max-width: 1180px) {
  .admin-sidebar .admin-logo-full-link,
  .admin-sidebar-v2 .admin-logo-full-link {
    min-height: 104px !important;
    padding: 14px 18px !important;
    border-radius: 22px !important;
  }

  .admin-sidebar-logo-full {
    max-width: 240px !important;
    max-height: 76px !important;
  }
}

/* Responsive mobile */
@media (max-width: 560px) {
  .admin-sidebar .admin-logo-full-link,
  .admin-sidebar-v2 .admin-logo-full-link {
    min-height: 92px !important;
    padding: 12px 14px !important;
  }

  .admin-sidebar-logo-full {
    max-width: 210px !important;
    max-height: 68px !important;
  }
}
/* =========================================================
   LOGO HEADER + FOOTER GROS SANS AGRANDIR LE HEADER
   ========================================================= */

/* HEADER : le header garde sa taille */
.topbar{
  height: 112px !important;
  padding: 12px 34px !important;
  overflow: visible !important;
}

/* Si ton logo header est composé de l'icône + texte */
.topbar .brand{
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;

  transform: scale(1.32);
  transform-origin: left center;

  position: relative;
  z-index: 10;
}

/* Icône bleue du header */
.topbar .logo{
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;
  font-size: 30px !important;
}

/* Texte AU MOINS CHER */
.topbar .brand b{
  font-size: 31px !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
}

/* Texte Chaussures premium */
.topbar .brand small{
  font-size: 16px !important;
  line-height: 1.1 !important;
}

/* Si ton logo header est une image PNG */
.topbar .site-header-logo{
  height: 78px !important;
  width: auto !important;
  max-width: 420px !important;
  object-fit: contain !important;

  transform: scale(1.22);
  transform-origin: left center;
}


/* FOOTER : ici on peut vraiment agrandir le logo */
.footer-main-logo{
  height: 130px !important;
  width: auto !important;
  max-width: 520px !important;
  object-fit: contain !important;
}

.footer-logo-only{
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  max-width: 100% !important;
}


/* RESPONSIVE */
@media(max-width:900px){
  .topbar{
    height: 96px !important;
  }

  .topbar .brand{
    transform: scale(1.18);
  }

  .topbar .site-header-logo{
    height: 68px !important;
    transform: scale(1.14);
  }

  .footer-main-logo{
    height: 105px !important;
  }
}

@media(max-width:560px){
  .topbar{
    height: 78px !important;
    padding: 10px 14px !important;
  }

  .topbar .brand{
    transform: scale(1.04);
    gap: 10px !important;
  }

  .topbar .logo{
    width: 48px !important;
    height: 48px !important;
    font-size: 23px !important;
  }

  .topbar .brand b{
    font-size: 19px !important;
  }

  .topbar .brand small{
    font-size: 12px !important;
  }

  .topbar .site-header-logo{
    height: 52px !important;
    transform: scale(1.08);
    max-width: 240px !important;
  }

  .footer-main-logo{
    height: 82px !important;
  }
}

/* =========================================================
   PATCH — Aperçu image produit + pointures visibles + DAAK_TECH
   ========================================================= */

/* Carte produit : l'image devient cliquable sans ressembler à un bouton */
.product-viewer-trigger{
  position:relative!important;
  display:block!important;
  width:100%!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  cursor:zoom-in!important;
  text-align:inherit!important;
  color:inherit!important;
  font:inherit!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}

.product-viewer-trigger:focus-visible{
  outline:4px solid rgba(30,91,255,.28)!important;
  outline-offset:-4px!important;
}

.product-viewer-trigger .viewer-badge{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.76);
  color:#fff;
  font-weight:1000;
  font-size:12px;
  letter-spacing:.02em;
  backdrop-filter:blur(10px);
  box-shadow:0 10px 24px rgba(15,23,42,.25);
}

.product-card-sizes{
  margin:14px 0 4px;
  display:grid;
  gap:8px;
}

.product-card-sizes > span{
  color:#64748b;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.product-card-sizes > div,
.viewer-sizes{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.size-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:32px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef4ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
  font-size:13px;
  font-weight:1000;
}

.size-chip.muted,
.product-sizes.empty{
  background:#f8fafc;
  color:#64748b;
  border-color:#e2e8f0;
}

/* Fenêtre plein écran : aperçu image */
.product-viewer-modal{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:24px;
}

.product-viewer-modal.hidden{
  display:none!important;
}

.product-viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.74);
  backdrop-filter:blur(14px);
}

.product-viewer-card{
  position:relative;
  z-index:1;
  width:min(1120px,96vw);
  max-height:92vh;
  overflow:auto;
  border-radius:34px;
  background:
    radial-gradient(circle at top left, rgba(30,91,255,.12), transparent 35%),
    linear-gradient(135deg,#ffffff,#f8fbff);
  box-shadow:0 34px 90px rgba(0,0,0,.38);
  padding:24px;
}

.product-viewer-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  z-index:4!important;
}

.product-viewer-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:24px;
  align-items:stretch;
}

.product-viewer-stage{
  --viewer-rx:0deg;
  --viewer-ry:0deg;
  position:relative;
  min-height:520px;
  border-radius:30px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), rgba(226,232,240,.75) 44%, rgba(203,213,225,.85));
  display:grid;
  place-items:center;
  perspective:1000px;
  cursor:grab;
  isolation:isolate;
}

.product-viewer-stage::before{
  content:"";
  position:absolute;
  width:68%;
  height:22%;
  left:16%;
  bottom:10%;
  border-radius:50%;
  background:radial-gradient(circle, rgba(15,23,42,.28), transparent 68%);
  filter:blur(16px);
  transform:translateY(20px);
  z-index:0;
}

.product-viewer-stage img{
  position:relative;
  z-index:1;
  width:min(92%,680px);
  height:min(78vh,480px);
  object-fit:contain;
  transform:rotateX(var(--viewer-rx)) rotateY(var(--viewer-ry)) scale(1.04);
  transform-style:preserve-3d;
  transition:transform .12s ease, filter .2s ease;
  filter:drop-shadow(0 34px 36px rgba(15,23,42,.28));
  user-select:none;
  pointer-events:none;
}

.product-viewer-badge{
  position:absolute;
  left:18px;
  top:18px;
  z-index:2;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(15,23,42,.75);
  color:#fff;
  font-size:12px;
  font-weight:1000;
  backdrop-filter:blur(10px);
}

.viewer-nav{
  position:absolute;
  top:50%;
  z-index:3;
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.65);
  background:rgba(255,255,255,.86);
  color:#0f172a;
  font-size:36px;
  line-height:1;
  font-weight:900;
  box-shadow:0 14px 32px rgba(15,23,42,.20);
  cursor:pointer;
}

.viewer-prev{left:18px;}
.viewer-next{right:18px;}

.product-viewer-info{
  border-radius:30px;
  padding:28px;
  background:rgba(255,255,255,.86);
  border:1px solid #e2e8f0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.product-viewer-info h2{
  margin:0;
  font-size:clamp(28px,3vw,44px);
  line-height:1;
}

.product-viewer-info p{
  margin:0;
  color:#64748b;
  font-weight:700;
}

.viewer-price{
  display:block;
  color:#1e5bff;
  font-size:32px;
  font-weight:1000;
}

.viewer-sizes-block{
  display:grid;
  gap:10px;
}

.viewer-sizes-block > span{
  color:#64748b;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.viewer-thumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 0 8px;
}

.viewer-thumbs button{
  flex:0 0 auto;
  width:74px;
  height:74px;
  border-radius:18px;
  border:2px solid transparent;
  padding:0;
  overflow:hidden;
  background:#e2e8f0;
  cursor:pointer;
}

.viewer-thumbs button.active{
  border-color:#1e5bff;
  box-shadow:0 10px 22px rgba(30,91,255,.22);
}

.viewer-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Couleur demandée pour DAAK_TECH */
.footer-created strong,
.footer-created strong a,
.admin-mini-footer strong,
.admin-mini-footer strong a,
.admin-global-footer strong,
.admin-global-footer strong a,
.admin-login-footer strong,
.admin-login-footer strong a{
  color:#FFC300!important;
}

/* Garde le header/footer logo équilibré */
.site-header-logo,
.topbar .brand img,
.brand-logo-only img{
  height:86px!important;
  width:auto!important;
  max-width:min(430px,64vw)!important;
  object-fit:contain!important;
  transform:none!important;
}

.footer-main-logo,
.footer-logo-only img{
  height:76px!important;
  width:auto!important;
  max-width:min(300px,100%)!important;
  object-fit:contain!important;
  transform:none!important;
}

.topbar .brand b,
.topbar .brand small,
.topbar .brand > div,
.footer-logo-only strong,
.footer-logo-only small,
.footer-logo-only > div{
  display:none!important;
}

@media(max-width:980px){
  .product-viewer-layout{
    grid-template-columns:1fr;
  }

  .product-viewer-stage{
    min-height:430px;
  }

  .site-header-logo,
  .topbar .brand img,
  .brand-logo-only img{
    height:70px!important;
    max-width:min(330px,58vw)!important;
  }

  .footer-main-logo,
  .footer-logo-only img{
    height:64px!important;
  }
}

@media(max-width:640px){
  .product-card-sizes > div,
  .viewer-sizes{
    gap:6px;
  }

  .size-chip{
    min-width:34px;
    min-height:30px;
    padding:5px 9px;
    font-size:12px;
  }

  .product-viewer-modal{
    padding:10px;
  }

  .product-viewer-card{
    border-radius:26px;
    padding:14px;
  }

  .product-viewer-stage{
    min-height:330px;
    border-radius:24px;
  }

  .product-viewer-stage img{
    width:96%;
    height:320px;
  }

  .product-viewer-info{
    padding:20px;
    border-radius:24px;
  }

  .viewer-nav{
    width:44px;
    height:44px;
    font-size:30px;
  }

  .viewer-thumbs button{
    width:62px;
    height:62px;
    border-radius:14px;
  }

  .site-header-logo,
  .topbar .brand img,
  .brand-logo-only img{
    height:56px!important;
    max-width:min(230px,58vw)!important;
  }

  .footer-main-logo,
  .footer-logo-only img{
    height:54px!important;
    max-width:210px!important;
  }
}


/* =========================================================
   PATCH — Vue image directe + paiement avance Wave
   ========================================================= */

/* On abandonne la fausse 3D : l'image doit rester normale, lisible, directe. */
.product-viewer-trigger .viewer-badge{
  background:rgba(15,23,42,.82)!important;
}

.product-viewer-stage{
  perspective:none!important;
  cursor:zoom-in!important;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.98), rgba(239,246,255,.72) 46%, rgba(226,232,240,.82))!important;
}

.product-viewer-stage img{
  width:min(96%,760px)!important;
  height:min(78vh,520px)!important;
  object-fit:contain!important;
  transform:none!important;
  transform-style:flat!important;
  transition:none!important;
  filter:drop-shadow(0 28px 34px rgba(15,23,42,.22))!important;
}

.product-viewer-stage:hover img,
.product-viewer-stage:active img{
  transform:none!important;
}

.viewer-tag{
  color:#0b63ff!important;
}

/* Paiement Wave / avance */
.wave-advance-box,
.wave-payment-card{
  margin:14px 0!important;
  padding:16px!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at top left, rgba(0,201,87,.16), transparent 38%),
    linear-gradient(135deg,#f0fdf4,#ecfeff)!important;
  border:1px solid rgba(34,197,94,.28)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
}

.wave-advance-box{
  display:grid!important;
  gap:5px!important;
}

.wave-advance-box span,
.wave-payment-card span{
  color:#047857!important;
  font-size:12px!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

.wave-advance-box strong,
.wave-payment-card h3{
  color:#064e3b!important;
  font-weight:1000!important;
}

.wave-advance-box strong{
  font-size:22px!important;
}

.wave-advance-box small,
.wave-payment-card small,
.wave-payment-card p{
  color:#475569!important;
  font-weight:800!important;
  line-height:1.45!important;
}

.wave-payment-card{
  text-align:left!important;
}

.wave-payment-card h3{
  margin:6px 0 8px!important;
  font-size:22px!important;
}

.wave-payment-card p{
  margin:0 0 12px!important;
}

.wave-pay-link{
  margin:12px 0!important;
  background:linear-gradient(135deg,#16a34a,#0ea5e9)!important;
  box-shadow:0 18px 34px rgba(14,165,233,.22)!important;
}

.cart-total + .wave-advance-box{
  margin-top:12px!important;
}

@media(max-width:640px){
  .product-viewer-stage{
    min-height:340px!important;
  }

  .product-viewer-stage img{
    height:min(58vh,360px)!important;
  }

  .wave-advance-box,
  .wave-payment-card{
    border-radius:18px!important;
    padding:14px!important;
  }
}



/* =========================================================
   FIX AFFICHAGE PAIEMENT WAVE APRÈS COMMANDE
   ========================================================= */

.order-success-modal,
.order-success-card {
  max-width: 680px !important;
}

.wave-payment-box,
.wave-deposit-box,
.order-wave-payment {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #eafff5, #effffb) !important;
  border: 1px solid #9af0c4 !important;
  color: #0b3b2e !important;
  overflow: hidden !important;
}

.wave-payment-box h3,
.wave-deposit-box h3,
.order-wave-payment h3 {
  margin: 0 !important;
  font-size: 1.45rem !important;
  line-height: 1.15 !important;
  color: #064e3b !important;
}

.wave-payment-box p,
.wave-deposit-box p,
.order-wave-payment p {
  margin: 0 !important;
  line-height: 1.35 !important;
  color: #43546a !important;
  font-weight: 800 !important;
}

.wave-payment-button,
.wave-pay-button,
a[href*="pay.wave.com"] {
  display: flex !important;
  width: 100% !important;
  min-height: 54px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #00b4ff, #006dff) !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 16px 34px rgba(0, 109, 255, .25) !important;
  white-space: normal !important;
}

.wave-warning,
.wave-confirmation-note {
  display: block !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: #eef5ff !important;
  color: #607089 !important;
  text-align: center !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

@media (max-width: 560px) {
  .wave-payment-box,
  .wave-deposit-box,
  .order-wave-payment {
    padding: 16px !important;
  }

  .wave-payment-box h3,
  .wave-deposit-box h3,
  .order-wave-payment h3 {
    font-size: 1.2rem !important;
  }

  .wave-payment-button,
  .wave-pay-button,
  a[href*="pay.wave.com"] {
    min-height: 50px !important;
    font-size: .92rem !important;
  }
}

/* =========================================================
   BADGE STOCK SUR IMAGE PRODUIT
   ========================================================= */

.product-image-wrap,
.product-card-image,
.product-media {
  position: relative !important;
  overflow: hidden !important;
}

.product-stock-badge {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 5 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 36px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;

  background: #19c463 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;

  box-shadow: 0 12px 24px rgba(0, 0, 0, .18) !important;
}

.product-stock-badge.low {
  background: #ff7a1a !important;
}

.view-image-badge {
  position: absolute !important;
  left: 16px !important;
  bottom: 16px !important;
  z-index: 5 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 38px !important;
  padding: 9px 15px !important;
  border: 0 !important;
  border-radius: 999px !important;

  background: #1f2937 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;

  box-shadow: 0 14px 26px rgba(0, 0, 0, .22) !important;
}

/* =========================================================
   BADGE STOCK SUR CHAQUE CARTE PRODUIT
   ========================================================= */

.product-image-wrap,
.product-card-image,
.product-media {
  position: relative !important;
  overflow: hidden !important;
}

/* Badge principal */
.product-stock-badge {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 20 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 34px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;

  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;

  box-shadow: 0 14px 28px rgba(0, 0, 0, .22) !important;
  pointer-events: none !important;
}

/* Stock normal */
.product-stock-badge.stock-ok {
  background: #18c964 !important;
}

/* Stock faible */
.product-stock-badge.stock-low {
  background: #ff7a1a !important;
}

/* Rupture */
.product-stock-badge.stock-out {
  background: #ef4444 !important;
}

/* Image produit : garde le badge bien placé */
.product-card img,
.product-image-button img {
  display: block !important;
}

/* Responsive */
@media (max-width: 560px) {
  .product-stock-badge {
    top: 10px !important;
    right: 10px !important;
    min-height: 30px !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
  }
}


/* =========================================================
   PHASE 1 ADMIN — Tableau de bord du jour + graphique 7 jours
   ========================================================= */

.today-dashboard-card {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at top right, rgba(30, 91, 255, .12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7fbff) !important;
}

.today-dashboard-card::after {
  content: "" !important;
  position: absolute !important;
  right: -90px !important;
  top: -110px !important;
  width: 260px !important;
  height: 260px !important;
  border-radius: 50% !important;
  background: rgba(30, 91, 255, .09) !important;
  pointer-events: none !important;
}

.today-head {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 22px !important;
}

.today-live {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.today-dashboard-layout {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.today-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.today-kpi {
  min-height: 118px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(210, 222, 240, .95) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06) !important;
}

.today-kpi-icon {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #eef4ff !important;
  font-size: 21px !important;
}

.today-kpi small {
  display: block !important;
  color: #6b7b92 !important;
  font-size: .74rem !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin-bottom: 7px !important;
}

.today-kpi strong {
  display: block !important;
  color: #0f172a !important;
  font-size: clamp(1.35rem, 2.1vw, 2.05rem) !important;
  font-weight: 1000 !important;
  line-height: 1.05 !important;
  letter-spacing: -.055em !important;
}

.today-kpi em {
  display: block !important;
  margin-top: 8px !important;
  color: #6c7890 !important;
  font-style: normal !important;
  font-size: .84rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

.today-kpi.tone-blue {
  border-left: 5px solid #1e5bff !important;
}

.today-kpi.tone-green {
  border-left: 5px solid #16c784 !important;
}

.today-kpi.tone-orange {
  border-left: 5px solid #ff8a1f !important;
}

.today-kpi.tone-red {
  border-left: 5px solid #ef4444 !important;
}

.seven-day-card {
  min-height: 100% !important;
  padding: 20px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .12), transparent 36%),
    linear-gradient(135deg, #0f1a30, #172554) !important;
  color: #ffffff !important;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .15) !important;
  display: grid !important;
  gap: 20px !important;
}

.seven-day-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.seven-day-head .page-kicker {
  color: #9bb9ff !important;
}

.seven-day-head h3 {
  margin: 4px 0 0 !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  color: #ffffff !important;
}

.seven-day-head small {
  color: #dbe7ff !important;
  font-weight: 900 !important;
  text-align: right !important;
  line-height: 1.25 !important;
}

.seven-day-chart {
  min-height: 210px !important;
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: end !important;
}

.chart-day {
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: 1fr auto auto !important;
  gap: 8px !important;
  text-align: center !important;
}

.chart-bar-track {
  height: 140px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .12) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 5px !important;
  overflow: hidden !important;
}

.chart-bar {
  display: block !important;
  width: 100% !important;
  height: var(--bar-height, 10%) !important;
  min-height: 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #7dd3fc, #2563eb) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .35) !important;
  transition: height .25s ease !important;
}

.chart-day.is-today .chart-bar {
  background: linear-gradient(180deg, #facc15, #f97316) !important;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .35) !important;
}

.chart-day strong {
  color: #ffffff !important;
  font-size: .78rem !important;
  font-weight: 1000 !important;
  text-transform: capitalize !important;
}

.chart-day small {
  color: #cbd8f7 !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1180px) {
  .today-dashboard-layout {
    grid-template-columns: 1fr !important;
  }

  .today-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .today-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .seven-day-head {
    display: grid !important;
  }

  .seven-day-head small {
    text-align: left !important;
  }

  .seven-day-chart {
    gap: 7px !important;
  }

  .chart-bar-track {
    height: 110px !important;
  }

  .chart-day small {
    display: none !important;
  }
}



/* =========================================================
   PHASE 2 ADMIN — WORKFLOW COMMANDES + ANNULATION
   À AJOUTER TOUT EN BAS DE public/css/style.css
   ========================================================= */

.phase2-workflow-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.phase2-workflow-tabs .order-tab-v2 {
  position: relative !important;
  overflow: hidden !important;
}

.phase2-workflow-tabs .order-tab-v2::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  background: #dbeafe !important;
}

.phase2-workflow-tabs .workflow-tab-new::before { background: #2563eb !important; }
.phase2-workflow-tabs .workflow-tab-waiting::before { background: #f97316 !important; }
.phase2-workflow-tabs .workflow-tab-delivered::before { background: #22c55e !important; }
.phase2-workflow-tabs .workflow-tab-cancelled::before { background: #ef4444 !important; }
.phase2-workflow-tabs .workflow-tab-all::before { background: #64748b !important; }

.completion-chip.waiting,
.status-chip.waiting {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}

.completion-chip.cancelled,
.status-chip.cancelled,
.cancelled-confirmation {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
  font-weight: 1000 !important;
  line-height: 1.1 !important;
}

.order-dropdown-card.is-cancelled {
  background: linear-gradient(135deg, #fff7f7, #ffffff) !important;
  border-color: #fecaca !important;
}

.order-dropdown-card.is-waiting {
  border-color: #fed7aa !important;
}

.order-dropdown-card.is-completed {
  border-color: #bbf7d0 !important;
}

.compact-order-actions-phase2,
.order-phase2-actions,
.preview-actions-phase2 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.order-phase2-actions .btn,
.preview-actions-phase2 .btn {
  min-width: 160px !important;
}

.soft-action.waiting {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}

.soft-action.cancel,
.btn.danger {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
}

.btn.danger {
  min-height: 46px !important;
  border-radius: 16px !important;
  padding: 12px 18px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
}

.soft-action.cancel:hover,
.soft-action.waiting:hover,
.btn.danger:hover {
  transform: translateY(-1px) !important;
  filter: brightness(.98) !important;
}

.cancel-order-modal {
  max-width: 560px !important;
}

.cancel-order-form select,
.cancel-order-form textarea {
  width: 100% !important;
}

.danger-kicker {
  color: #dc2626 !important;
}

.cancel-reason-box {
  border-color: #fecaca !important;
  background: #fff7f7 !important;
}

.cancel-reason-box h3,
.cancel-reason-box h4 {
  color: #991b1b !important;
}

.cancel-reason-inline {
  display: block !important;
  margin-top: 6px !important;
  color: #b91c1c !important;
  font-weight: 900 !important;
}

@media (max-width: 1180px) {
  .phase2-workflow-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .phase2-workflow-tabs {
    grid-template-columns: 1fr !important;
  }

  .compact-order-actions-phase2,
  .order-phase2-actions,
  .preview-actions-phase2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .compact-order-actions-phase2 .btn,
  .compact-order-actions-phase2 .soft-action,
  .order-phase2-actions .btn,
  .order-phase2-actions .soft-action,
  .preview-actions-phase2 .btn,
  .preview-actions-phase2 .soft-action,
  .cancelled-confirmation {
    width: 100% !important;
  }
}







/* =========================================================
   PHASE 3 ADMIN — ANALYSE BUSINESS PREMIUM
   À AJOUTER APRÈS LES CSS PHASE 1 ET PHASE 2
   ========================================================= */

.phase3-business-card {
  margin-top: 24px !important;
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at top right, rgba(255, 195, 0, .14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(30, 91, 255, .10), transparent 38%),
    linear-gradient(135deg, #ffffff, #f8fbff) !important;
}

.phase3-head {
  align-items: flex-start !important;
}

.phase3-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 16px !important;
  border-radius: 999px !important;
  background: #fff7d6 !important;
  color: #8a6400 !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  border: 1px solid rgba(255, 195, 0, .35) !important;
  box-shadow: 0 12px 26px rgba(255, 195, 0, .18) !important;
}

.phase3-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 20px 0 !important;
}

.phase3-metric-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 136px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, .25) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07) !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 14px !important;
  align-items: flex-start !important;
}

.phase3-metric-card::after {
  content: "" !important;
  position: absolute !important;
  right: -32px !important;
  bottom: -42px !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 999px !important;
  background: rgba(30, 91, 255, .08) !important;
}

.phase3-metric-card.tone-green::after {
  background: rgba(34, 197, 94, .13) !important;
}

.phase3-metric-card.tone-orange::after {
  background: rgba(249, 115, 22, .13) !important;
}

.phase3-metric-card.tone-red::after {
  background: rgba(239, 68, 68, .12) !important;
}

.phase3-metric-icon {
  position: relative !important;
  z-index: 2 !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #eef5ff !important;
  font-size: 22px !important;
}

.phase3-metric-card small {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  margin-bottom: 10px !important;
}

.phase3-metric-card strong {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  color: #0f172a !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  letter-spacing: -.05em !important;
}

.phase3-metric-card em {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  margin-top: 10px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.phase3-board-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

.phase3-board-card {
  padding: 20px !important;
  border-radius: 26px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16) !important;
  overflow: hidden !important;
}

.phase3-board-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(255, 195, 0, .16), transparent 32%),
    #111827 !important;
}

.phase3-board-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, .16), transparent 32%),
    #111827 !important;
}

.phase3-activity-card {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, .18), transparent 34%),
    #0f172a !important;
}

.phase3-card-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 13px !important;
  margin-bottom: 16px !important;
}

.phase3-card-head > span {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, .10) !important;
  font-size: 22px !important;
  flex: 0 0 auto !important;
}

.phase3-card-head h3 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 1000 !important;
}

.phase3-card-head p {
  margin: 4px 0 0 !important;
  color: rgba(255, 255, 255, .68) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.phase3-top-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.phase3-top-row {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 13px 14px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
}

.phase3-rank {
  min-width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
}

.phase3-top-row strong {
  display: block !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
  line-height: 1.15 !important;
}

.phase3-top-row small {
  display: block !important;
  margin-top: 4px !important;
  color: rgba(255, 255, 255, .66) !important;
  font-weight: 800 !important;
}

.phase3-top-row b {
  color: #bfdbfe !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
}

.phase3-top-row.is-dead-stock b {
  color: #fecaca !important;
}

.phase3-timeline {
  position: relative !important;
  display: grid !important;
  gap: 12px !important;
  max-height: 390px !important;
  overflow: auto !important;
  padding-right: 6px !important;
}

.phase3-timeline-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
}

.phase3-timeline-dot {
  width: 13px !important;
  height: 13px !important;
  margin-top: 5px !important;
  border-radius: 999px !important;
  background: #60a5fa !important;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, .12) !important;
}

.phase3-timeline-item.success .phase3-timeline-dot {
  background: #22c55e !important;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .14) !important;
}

.phase3-timeline-item.danger .phase3-timeline-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, .14) !important;
}

.phase3-timeline-item.warning .phase3-timeline-dot {
  background: #f97316 !important;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, .14) !important;
}

.phase3-timeline-item strong {
  display: block !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
  margin-bottom: 4px !important;
}

.phase3-timeline-item p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.phase3-timeline-item small {
  display: block !important;
  margin-top: 7px !important;
  color: rgba(255, 255, 255, .46) !important;
  font-weight: 900 !important;
}

.phase3-summary-strip {
  margin-top: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #fff7d6, #fffdf1) !important;
  border: 1px solid rgba(255, 195, 0, .35) !important;
  color: #4a3900 !important;
}

.phase3-summary-strip strong {
  font-weight: 1000 !important;
}

.phase3-summary-strip span {
  color: #7c6412 !important;
  font-weight: 900 !important;
}

/* Responsive Phase 3 */
@media (max-width: 1180px) {
  .phase3-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .phase3-board-grid {
    grid-template-columns: 1fr !important;
  }

  .phase3-summary-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .phase3-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .phase3-metric-card {
    min-height: 118px !important;
  }

  .phase3-top-row {
    grid-template-columns: auto 1fr !important;
  }

  .phase3-top-row b {
    grid-column: 2 !important;
    justify-self: start !important;
  }
}

/* =========================================================
   ADMIN STOCK PREMIUM — Modifier / Dupliquer / Masquer / Badges / Évolution
   ========================================================= */

.admin-product-card.is-hidden-product {
  opacity: .82 !important;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(241, 245, 249, .92)) !important;
  border-style: dashed !important;
}

.admin-product-card.is-hidden-product .admin-product-media img {
  filter: grayscale(.55) contrast(.9) !important;
}

.admin-product-media {
  position: relative !important;
  overflow: hidden !important;
}

.admin-best-seller-ribbon {
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  z-index: 4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #facc15, #f97316) !important;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .28) !important;
}

.product-state.state-hidden {
  background: #e5e7eb !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

.product-state.state-visible {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
}

.admin-product-badges {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

.product-extra-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  border: 1px solid transparent !important;
}

.product-extra-badge.warning {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

.product-extra-badge.danger {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

.product-extra-badge.best {
  background: #fef9c3 !important;
  color: #854d0e !important;
  border-color: #fde68a !important;
}

.product-extra-badge.info {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.product-extra-badge.muted {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.stock-edit-link {
  margin-top: 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.stock-edit-link:hover {
  color: #1d4ed8 !important;
}

.stock-evolution-metric strong.stock-evolution {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  white-space: normal !important;
}

.stock-evolution.neutral {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

.stock-evolution.up {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.stock-evolution.down {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.soft-action.visibility {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

.admin-product-card.is-hidden-product .soft-action.visibility {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.stock-edit-modal .stock-edit-product-name {
  margin: 0 0 16px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 1000 !important;
}

.stock-edit-form {
  display: grid !important;
  gap: 14px !important;
}

.stock-edit-current {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #eff6ff, #f8fbff) !important;
  border: 1px solid #bfdbfe !important;
}

.stock-edit-current span {
  color: #64748b !important;
  font-weight: 900 !important;
}

.stock-edit-current strong {
  color: #1d4ed8 !important;
  font-size: 1.8rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

.stock-edit-form input {
  width: 100% !important;
}

@media(max-width: 760px) {
  .admin-product-badges {
    gap: 6px !important;
  }

  .product-extra-badge {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }

  .stock-evolution-metric strong.stock-evolution {
    width: 100% !important;
  }
}

/* =========================================================
   ADMIN STOCK — LISTE PRODUITS PROPRE
   Sans Phase 4 / sans stock par pointure
   ========================================================= */

.admin-products-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  width: 100% !important;
}

/* Carte principale */
.admin-stock-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 1.2fr) minmax(520px, 1.4fr) minmax(260px, .75fr) !important;
  gap: 20px !important;
  align-items: center !important;

  padding: 20px !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, .26) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
  overflow: visible !important;
}

.admin-stock-row.is-hidden-product {
  opacity: .72 !important;
  background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
}

/* Bloc image + infos */
.admin-stock-product {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  min-width: 0 !important;
}

.admin-stock-image {
  width: 96px !important;
  height: 96px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14) !important;
  flex: 0 0 auto !important;
}

.admin-stock-image img,
.admin-stock-image .image-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  object-fit: cover !important;
  font-size: 34px !important;
}

/* Infos produit */
.admin-stock-info {
  min-width: 0 !important;
  width: 100% !important;
}

.admin-stock-title-line {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.admin-stock-title-line h3 {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;

  color: #0f172a !important;
  font-size: 1.22rem !important;
  line-height: 1.2 !important;
  font-weight: 1000 !important;

  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: normal !important;
}

.admin-stock-description {
  margin: 0 0 10px !important;
  color: #64748b !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;

  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Badges */
.admin-stock-state-group,
.admin-stock-tags {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.admin-stock-tags span,
.product-extra-badge,
.product-state {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: max-content !important;
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 7px 10px !important;

  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, .25) !important;
  color: #475569 !important;

  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.product-state.state-ok,
.product-state.state-visible {
  background: #dcfce7 !important;
  color: #047857 !important;
  border-color: #bbf7d0 !important;
}

.product-state.state-warning,
.product-state.state-warn,
.product-extra-badge.warning {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

.product-state.state-danger,
.product-extra-badge.danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}

.product-state.state-hidden,
.product-extra-badge.muted {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

.product-extra-badge.best {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

.product-extra-badge.info {
  background: #eaf2ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

/* Métriques */
.admin-stock-metrics {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.admin-stock-metric {
  min-width: 0 !important;
  min-height: 116px !important;
  padding: 14px !important;
  border-radius: 18px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;

  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
}

.admin-stock-metric > span {
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.admin-stock-metric > strong,
.admin-stock-metric strong {
  color: #0f172a !important;
  font-size: 1rem !important;
  line-height: 1.15 !important;
  font-weight: 1000 !important;
}

.admin-stock-metric strong em {
  color: #94a3b8 !important;
  font-style: normal !important;
}

/* Stock */
.admin-stock-counter {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.admin-stock-counter button {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1px solid rgba(37, 99, 235, .18) !important;
  border-radius: 12px !important;
  background: #eef5ff !important;
  color: #1d4ed8 !important;

  font-size: 18px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
}

.stock-pill {
  min-width: 44px !important;
  min-height: 32px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
}

.stock-pill.stock-ok {
  background: #dcfce7 !important;
  color: #047857 !important;
}

.stock-pill.stock-warning {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.stock-pill.stock-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.admin-stock-link {
  margin-top: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

/* Évolution */
.stock-evolution {
  color: #475569 !important;
  font-size: .84rem !important;
  line-height: 1.3 !important;
}

.stock-evolution.up {
  color: #047857 !important;
}

.stock-evolution.down {
  color: #be123c !important;
}

/* Actions */
.admin-stock-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.admin-stock-actions .soft-action {
  width: 100% !important;
  min-height: 44px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 10px 14px !important;
  border-radius: 14px !important;

  font-size: 13px !important;
  font-weight: 1000 !important;
  text-align: center !important;
  white-space: normal !important;
  cursor: pointer !important;
}

.admin-stock-actions .soft-action.edit {
  background: linear-gradient(135deg, #1e5bff, #1746d5) !important;
  color: #ffffff !important;
}

.admin-stock-actions .soft-action.duplicate {
  background: #e8efff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.admin-stock-actions .soft-action.visibility {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.admin-stock-actions .soft-action.delete {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

/* Responsive */
@media (max-width: 1450px) {
  .admin-stock-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .admin-stock-product {
    grid-template-columns: 104px 1fr !important;
  }

  .admin-stock-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .admin-stock-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-stock-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .admin-stock-row {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .admin-stock-product {
    grid-template-columns: 76px 1fr !important;
    gap: 12px !important;
  }

  .admin-stock-image {
    width: 76px !important;
    height: 76px !important;
    border-radius: 17px !important;
  }

  .admin-stock-title-line h3 {
    font-size: 1.05rem !important;
  }

  .admin-stock-metrics {
    grid-template-columns: 1fr !important;
  }

  .admin-stock-metric {
    min-height: 92px !important;
  }

  .admin-stock-actions {
    grid-template-columns: 1fr !important;
  }
}



/* =========================================================
   POPUP CLIENT — IMAGE + INFOS CHAUSSURE AU CLIC
   ========================================================= */

body.amc-popup-open {
  overflow: hidden !important;
}

.amc-product-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 28px !important;
  background: rgba(15, 23, 42, .76) !important;
  backdrop-filter: blur(12px) !important;
}

.amc-product-popup {
  position: relative !important;

  width: min(1120px, 96vw) !important;
  max-height: 92vh !important;

  display: grid !important;
  grid-template-columns: minmax(360px, 1.2fr) minmax(320px, .8fr) !important;
  gap: 28px !important;

  padding: 28px !important;
  border-radius: 34px !important;

  background: #ffffff !important;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .35) !important;
  overflow: auto !important;
}

.amc-product-popup-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 5 !important;

  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 14px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #eef2f7 !important;
  color: #64748b !important;
  font-size: 28px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
}

.amc-product-popup-image {
  min-height: 470px !important;
  border-radius: 28px !important;
  overflow: hidden !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 36%),
    #f1f5f9 !important;
}

.amc-product-popup-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 560px !important;
  display: block !important;
  object-fit: contain !important;
}

.amc-product-popup-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 16px !important;
  min-width: 0 !important;
  padding: 8px !important;
}

.amc-product-popup-kicker {
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
  letter-spacing: .14em !important;
}

.amc-product-popup-info h2 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(2rem, 4vw, 3.3rem) !important;
  line-height: .98 !important;
  font-weight: 1000 !important;
  letter-spacing: -0.06em !important;
}

.amc-product-popup-description {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 1.05rem !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

.amc-product-popup-price {
  color: #1263ff !important;
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  font-weight: 1000 !important;
  letter-spacing: -0.05em !important;
}

.amc-product-popup-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.popup-stock-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: max-content !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;

  font-size: 14px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

.popup-stock-badge.ok {
  background: #dcfce7 !important;
  color: #047857 !important;
  border: 1px solid #bbf7d0 !important;
}

.popup-stock-badge.low {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}

.popup-stock-badge.out {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

.amc-product-popup-sizes strong {
  display: block !important;
  margin-bottom: 10px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.amc-product-popup-sizes div {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.amc-product-popup-sizes span {
  min-width: 42px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  background: #eaf2ff !important;
  color: #1263ff !important;
  border: 1px solid #cfe0ff !important;

  font-weight: 1000 !important;
}

.amc-product-popup-sizes em {
  color: #94a3b8 !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.amc-product-popup-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin-top: 8px !important;
}

.amc-product-popup-actions .btn {
  min-height: 56px !important;
  border-radius: 16px !important;
  font-weight: 1000 !important;
}

/* Mobile */
@media (max-width: 820px) {
  .amc-product-popup-overlay {
    padding: 14px !important;
  }

  .amc-product-popup {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 18px !important;
    border-radius: 26px !important;
  }

  .amc-product-popup-image {
    min-height: 280px !important;
    border-radius: 22px !important;
  }

  .amc-product-popup-info h2 {
    font-size: 2rem !important;
  }
}
/* Phase 1 catalogue multi-type : header fixe + sous-menus de marques */
.main-nav{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.main-nav>.nav-link,.nav-dropdown>.nav-link{padding:10px 9px;border-radius:10px;white-space:nowrap}.main-nav>.nav-link:hover,.nav-dropdown>.nav-link:hover{background:#eff6ff;color:#1d4ed8}.nav-dropdown{position:relative;display:flex;align-items:center}.nav-dropdown-toggle{padding:8px 7px;background:transparent;color:#64748b;border-radius:8px}.nav-dropdown-menu{position:absolute;top:calc(100% + 8px);left:0;min-width:220px;max-height:360px;overflow:auto;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18);display:none;z-index:70}.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{display:grid}.nav-dropdown-menu a{padding:10px 12px;border-radius:9px;font-size:14px}.nav-dropdown-menu a:hover{background:#eff6ff;color:#1d4ed8}.catalogue-heading{margin-top:10px}.catalogue-heading h2{font-size:clamp(30px,4vw,46px);margin:8px 0}.delivery-highlight{display:inline-flex;margin:0 0 14px;padding:9px 13px;border-radius:999px;background:#dcfce7;color:#166534;font-weight:800}.tools{grid-template-columns:minmax(260px,1fr) repeat(3,minmax(170px,220px))}.product-meta-line{margin:0 0 8px;color:#1d4ed8;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:1180px){.main-nav{gap:4px}.main-nav>.nav-link,.nav-dropdown>.nav-link{padding:9px 6px;font-size:14px}.tools{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.main-nav{display:none}.tools{grid-template-columns:1fr}.catalogue-heading{padding-top:6px}}
.mobile-nav-toggle{display:none;background:#eff6ff;color:#1d4ed8;padding:10px 12px;font-size:20px}
@media(max-width:980px){.mobile-nav-toggle{display:inline-grid;place-items:center;margin-left:auto}.topbar{align-items:center;flex-wrap:wrap}.main-nav{display:none;order:4;width:100%;padding:10px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 16px 36px rgba(15,23,42,.12)}.main-nav.open{display:grid;grid-template-columns:1fr}.main-nav>.nav-link,.nav-dropdown>.nav-link{width:100%;padding:12px}.nav-dropdown{display:grid;grid-template-columns:1fr auto}.nav-dropdown-menu{position:static;grid-column:1/-1;box-shadow:none;border:0;border-left:3px solid #dbeafe;border-radius:0;margin-left:12px;max-height:240px}.nav-dropdown:focus-within .nav-dropdown-menu{display:grid}.nav-dropdown:hover .nav-dropdown-menu{display:none}.nav-dropdown:focus-within:hover .nav-dropdown-menu{display:grid}.top-actions{margin-left:0}}

/* Phase 3 : favoris */
.product-card{position:relative}.product-favorite{position:absolute;z-index:8;top:12px;right:12px;width:40px;height:40px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.94);display:grid;place-items:center;font-size:1.35rem;cursor:pointer;box-shadow:0 4px 15px rgba(0,0,0,.08)}.product-favorite.active{background:#111;color:#fff;border-color:#111}

/* Phase 4 : bouton favoris visible + annonce sacs */
.product-card{position:relative;overflow:hidden}
.product-favorite{
  left:12px !important;
  right:auto !important;
  top:12px !important;
  z-index:32 !important;
  width:44px !important;
  height:44px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  background:rgba(255,255,255,.96) !important;
  color:#0f172a !important;
  box-shadow:0 16px 28px rgba(15,23,42,.22) !important;
  backdrop-filter:blur(8px);
}
.product-favorite:hover{transform:translateY(-1px)}
.product-favorite.active{background:#111827 !important;color:#fff !important;border-color:#111827 !important}
.product-viewer-trigger .viewer-badge{z-index:21 !important}
.product-stock-badge{right:14px !important;left:auto !important;z-index:24 !important;max-width:calc(100% - 76px) !important}
@media(max-width:560px){
  .product-favorite{left:10px !important;top:10px !important;width:40px !important;height:40px !important}
  .product-stock-badge{right:10px !important;max-width:calc(100% - 70px) !important}
}

.bag-launch-section{
  width:min(1180px, calc(100% - 32px));
  margin:14px auto 38px;
  padding:32px;
  border-radius:38px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,500px);
  gap:28px;
  align-items:center;
  background:linear-gradient(135deg,#0f1e49 0%,#1e5bff 54%,#2547ca 100%);
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:0 30px 60px rgba(30,91,255,.23);
}
.bag-launch-section::before,
.bag-launch-section::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.bag-launch-section::before{width:340px;height:340px;left:-140px;top:-140px;background:rgba(255,255,255,.08)}
.bag-launch-section::after{width:240px;height:240px;right:-70px;bottom:-80px;background:rgba(239,68,68,.18)}
.bag-launch-copy,
.bag-launch-visual{position:relative;z-index:1}
.bag-launch-copy .section-tag{background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.16)}
.bag-launch-copy h2{font-size:clamp(2rem,4vw,3.4rem);line-height:1.02;margin:14px 0 16px;color:#fff}
.bag-launch-copy p{max-width:640px;color:rgba(255,255,255,.88);font-size:1.05rem;line-height:1.7}
.bag-launch-points{margin:20px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.bag-launch-points li{display:flex;align-items:flex-start;gap:10px;color:#fff;font-weight:700}
.bag-launch-points li::before{content:"✓";display:inline-grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:999px;background:rgba(255,255,255,.16);font-size:.82rem}
.bag-launch-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.bag-launch-actions .btn.primary{background:#fff;color:#12308f;border-color:#fff}
.bag-launch-actions .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.42)}
.bag-launch-visual{display:block;text-decoration:none;color:inherit;min-height:430px}
.bag-launch-stock,
.bag-launch-price,
.bag-launch-caption{
  position:absolute;
  z-index:2;
  border-radius:999px;
  padding:14px 20px;
  box-shadow:0 20px 40px rgba(15,23,42,.24);
}
.bag-launch-stock{left:24px;top:6px;background:rgba(255,255,255,.95);color:#0f172a;font-weight:900}
.bag-launch-price{right:8px;bottom:8px;background:#ffe3ee;color:#141b36;font-weight:900}
.bag-launch-caption{left:22px;bottom:18px;right:138px;border-radius:24px;background:rgba(15,23,42,.72);backdrop-filter:blur(10px)}
.bag-launch-caption strong,.bag-launch-caption span{display:block}
.bag-launch-caption strong{font-size:1.06rem;color:#fff}
.bag-launch-caption span{font-size:.85rem;color:rgba(255,255,255,.8);margin-top:4px}
.bag-launch-card{
  position:absolute;
  inset:46px 18px 28px 42px;
  border-radius:34px;
  background:linear-gradient(135deg,#ec103d 0%,#f81335 50%,#d80a5c 100%);
  transform:rotate(-5deg);
  overflow:hidden;
  box-shadow:inset 0 0 0 18px rgba(255,255,255,.06),0 28px 60px rgba(7,13,36,.35);
}
.bag-launch-image{
  position:absolute;
  inset:18px 12px 18px 12px;
  width:calc(100% - 24px);
  height:calc(100% - 36px);
  object-fit:contain;
  transform:translateY(0px);
  animation:bagFloat 4.8s ease-in-out infinite;
  filter:drop-shadow(0 26px 34px rgba(0,0,0,.28));
}
.bag-launch-halo{position:absolute;border-radius:50%;pointer-events:none;z-index:0}
.bag-launch-halo.halo-a{width:180px;height:180px;left:-8px;bottom:10px;background:rgba(255,255,255,.08)}
.bag-launch-halo.halo-b{width:110px;height:110px;right:6px;bottom:-10px;background:rgba(255,255,255,.09)}
@keyframes bagFloat{0%,100%{transform:translateY(0px)}50%{transform:translateY(-14px)}}
@media(max-width:980px){
  .bag-launch-section{grid-template-columns:1fr;padding:24px}
  .bag-launch-visual{min-height:360px}
}
@media(max-width:640px){
  .bag-launch-section{width:min(100% - 20px,1180px);padding:18px;border-radius:28px;margin:8px auto 26px}
  .bag-launch-copy h2{font-size:2rem}
  .bag-launch-copy p{font-size:.97rem}
  .bag-launch-actions .btn{width:100%;justify-content:center}
  .bag-launch-visual{min-height:290px}
  .bag-launch-card{inset:44px 14px 16px 18px;border-radius:26px}
  .bag-launch-stock{left:12px;top:0;padding:10px 14px;font-size:.88rem}
  .bag-launch-price{right:0;bottom:0;padding:10px 14px;font-size:.9rem}
  .bag-launch-caption{left:12px;right:112px;bottom:12px;padding:12px 14px;border-radius:18px}
}

/* FIX FAVORIS + HERO SLIDER CHAUSSURES / SACS */
.product-favorite{left:12px!important;right:auto!important;top:12px!important;width:44px!important;height:44px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;z-index:32!important;border:1px solid rgba(255,255,255,.7)!important;background:rgba(255,255,255,.96)!important;color:#0f172a!important;box-shadow:0 14px 28px rgba(15,23,42,.18)!important;backdrop-filter:blur(10px)}
.product-favorite.active{background:#111827!important;color:#fff!important;border-color:#111827!important}.favorite-icon{display:block;line-height:1;font-size:1.25rem;transform:translateY(1px);pointer-events:none}.product-stock-badge{right:14px!important;left:auto!important;z-index:24!important;max-width:calc(100% - 76px)!important}
.hero.hero-slider{min-height:620px;padding:0!important;overflow:hidden;position:relative}.hero-slider-track{display:flex;width:100%;transition:transform .8s cubic-bezier(.22,.61,.36,1);will-change:transform}.hero-slide{min-width:100%;width:100%;display:flex;align-items:center;justify-content:space-between;gap:36px;padding:48px 62px;min-height:620px}.hero-slide .hero-inner{flex:0 0 46%;max-width:560px;text-align:left}.hero-slide .hero-image{flex:0 0 48%;position:relative;width:540px;height:500px;display:flex;justify-content:center;align-items:center}.hero-slide .hero-actions{justify-content:flex-start}.hero-slide .pill{display:inline-flex;padding:10px 16px}.hero-slide .shoe-card{width:500px;border-radius:34px;padding:26px;background:rgba(234,0,27,.88);box-shadow:0 24px 70px rgba(15,23,42,.18);transform:rotate(-6deg)}.hero-slide .hero-shoe{width:100%;max-width:430px;animation:floatHero 5s ease-in-out infinite}.hero-slide .stock-badge,.hero-slide .price-badge{font-size:13px;padding:12px 20px;border-radius:22px;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.55);backdrop-filter:blur(12px);box-shadow:0 16px 35px rgba(15,23,42,.14);color:#0f172a;font-weight:900;position:absolute;z-index:20}.hero-slide .stock-badge{top:76px;left:56px}.hero-slide .price-badge{right:26px;bottom:88px}.hero-slide .hero-bubble{background:rgba(255,255,255,.05)}.hero-caption-badge{position:absolute;left:34px;bottom:148px;z-index:21;padding:14px 18px;border-radius:20px;background:rgba(15,23,42,.72);backdrop-filter:blur(12px);box-shadow:0 18px 36px rgba(15,23,42,.20);min-width:260px;max-width:330px}.hero-caption-badge strong,.hero-caption-badge span{display:block}.hero-caption-badge strong{color:#fff;font-size:1.05rem;font-weight:900}.hero-caption-badge span{margin-top:4px;color:rgba(255,255,255,.82);font-size:.88rem}.hero-slider-dots{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:10px;z-index:25}.hero-slider-dot{width:12px;height:12px;border-radius:999px;border:0;padding:0;background:rgba(255,255,255,.32);cursor:pointer;box-shadow:none}.hero-slider-dot.is-active{background:#fff;transform:scale(1.12)}
@media(max-width:980px){.hero.hero-slider{min-height:auto}.hero-slide{flex-direction:column;padding:34px 20px 56px;gap:24px}.hero-slide .hero-inner{flex:none;max-width:100%;text-align:center}.hero-slide .hero-actions{justify-content:center}.hero-slide .hero-image{flex:none;width:100%;max-width:540px;height:420px}.hero-slide .shoe-card{width:100%;max-width:430px}.hero-caption-badge{left:18px;bottom:120px;right:110px;min-width:auto;max-width:none}}
@media(max-width:640px){.product-favorite{width:40px!important;height:40px!important;left:10px!important;top:10px!important}.product-stock-badge{right:10px!important;max-width:calc(100% - 70px)!important}.hero-slide{padding:24px 16px 52px}.hero-slide .hero-image{height:300px}.hero-slide .shoe-card{max-width:100%;padding:18px;border-radius:24px}.hero-slide .stock-badge{top:16px;left:6px;font-size:12px;padding:10px 14px}.hero-slide .price-badge{right:0;bottom:12px;font-size:12px;padding:10px 14px}.hero-caption-badge{left:10px;right:92px;bottom:76px;padding:12px 14px;border-radius:16px}.hero-slider-dots{bottom:12px}}

/* =========================================================
   AJUSTEMENT BANNIÈRE SAC — STYLE DISTINCT
   ========================================================= */
.hero-slide-bag{
  background:
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.10), transparent 22%),
    radial-gradient(circle at 16% 82%, rgba(249,115,22,.18), transparent 26%),
    linear-gradient(135deg,#111827 0%,#312e81 52%,#7c3aed 100%);
}
.hero-slide-bag .pill{
  background:rgba(249,115,22,.16);
  border-color:rgba(251,146,60,.28);
  color:#ffedd5;
}
.hero-slide-bag h1{
  color:#fff;
}
.hero-slide-bag h1::after{
  content:"";
  display:block;
  width:92px;
  height:7px;
  margin-top:18px;
  border-radius:999px;
  background:linear-gradient(90deg,#fb923c,#f43f5e);
}
.hero-slide-bag p{color:#ede9fe}
.hero-slide-bag .btn.primary{
  background:linear-gradient(135deg,#f97316,#ef4444);
  box-shadow:0 16px 28px rgba(239,68,68,.28);
}
.hero-slide-bag .btn.ghost{
  background:rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.hero-bag-stage{
  position:relative;
  isolation:isolate;
}
.bag-showcase{
  position:relative;
  z-index:5;
  width:min(440px,82%);
  height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:44px 110px 44px 110px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
  box-shadow:0 36px 90px rgba(8,15,40,.38);
  transform:rotate(3deg);
  overflow:hidden;
}
.bag-showcase::before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:34px 92px 34px 92px;
  border:1px dashed rgba(255,255,255,.18);
}
.bag-showcase-label{
  position:absolute;
  left:24px;
  top:22px;
  z-index:3;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.18em;
  color:#fed7aa;
}
.hero-bag-image{
  position:relative;
  z-index:2;
  width:86%;
  height:82%;
  object-fit:contain;
  animation:bagHeroFloat 4.6s ease-in-out infinite;
  filter:drop-shadow(0 30px 30px rgba(0,0,0,.35));
}
@keyframes bagHeroFloat{
  0%,100%{transform:translateY(0) rotate(-2deg)}
  50%{transform:translateY(-16px) rotate(2deg)}
}
.bag-new-badge,
.bag-cta-badge{
  position:absolute;
  z-index:12;
  border-radius:999px;
  font-weight:900;
  box-shadow:0 18px 38px rgba(8,15,40,.25);
}
.bag-new-badge{
  top:50px;
  right:12px;
  padding:12px 18px;
  background:#fff7ed;
  color:#c2410c;
  transform:rotate(3deg);
}
.bag-cta-badge{
  right:6px;
  bottom:72px;
  padding:14px 20px;
  background:linear-gradient(135deg,#f97316,#ef4444);
  color:#fff;
}
.bag-caption{
  left:10px !important;
  bottom:62px !important;
  right:auto !important;
  max-width:290px !important;
  background:rgba(17,24,39,.80) !important;
  border:1px solid rgba(255,255,255,.10);
}
.bag-orbit{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  z-index:0;
}
.bag-orbit-one{width:430px;height:430px;right:4px;top:22px}
.bag-orbit-two{width:290px;height:290px;right:74px;top:92px;border-color:rgba(251,146,60,.20)}
.bag-grid-mark{
  position:absolute;
  z-index:0;
  width:180px;
  height:180px;
  right:-18px;
  bottom:18px;
  opacity:.22;
  background-image:radial-gradient(circle,#fff 1.5px,transparent 1.5px);
  background-size:18px 18px;
}

@media(max-width:980px){
  .bag-showcase{height:370px;width:min(420px,86%)}
  .bag-new-badge{top:28px;right:4px}
  .bag-cta-badge{bottom:28px}
  .bag-caption{bottom:24px !important}
}
@media(max-width:640px){
  .bag-showcase{height:255px;width:82%;border-radius:28px 64px 28px 64px}
  .bag-showcase::before{border-radius:20px 48px 20px 48px}
  .bag-new-badge{top:0;right:0;font-size:.74rem;padding:9px 12px}
  .bag-cta-badge{right:0;bottom:8px;font-size:.76rem;padding:9px 12px}
  .bag-caption{left:0 !important;bottom:8px !important;max-width:205px !important;padding:10px 12px !important}
  .bag-caption strong{font-size:.82rem !important}
  .bag-caption span{font-size:.68rem !important}
}

/* Post-commande : invitation facultative à se connecter */
.success-account-prompt{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:18px 0;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(135deg,#eff6ff,#f8fbff);
  border:1px solid #dbeafe;
  text-align:left;
}
.success-account-prompt.hidden{display:none}
.success-account-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#1e5bff;
  color:#fff;
  box-shadow:0 10px 24px rgba(30,91,255,.22);
}
.success-account-prompt strong{display:block;color:#0f172a;margin-bottom:5px}
.success-account-prompt p{margin:0;color:#64748b;font-size:.9rem;line-height:1.55}
.success-actions{display:grid;gap:10px;margin-top:14px}
.success-actions a{text-decoration:none;text-align:center}

/* Fix sac : le champ Pointure doit réellement disparaître dans le formulaire de commande. */
#singleSizeBox.hidden {
  display: none !important;
}

/* Admin : champs conditionnels chaussures / sacs */
[data-size-field][hidden],
[data-size-stock-field][hidden],
[data-global-stock-field][hidden]{display:none!important}

/* =========================================================
   Stock par pointure — affichage client + formulaire admin
   ========================================================= */

/* Côté client : une pointure = une vraie mini-carte de stock */
.product-card-sizes > div,
.viewer-sizes{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.size-chip{
  min-width:62px;
  min-height:48px;
  padding:7px 11px;
  border-radius:14px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  background:linear-gradient(180deg,#f5f8ff,#edf4ff);
  border:1px solid #cfe0ff;
  color:#1d4ed8;
  box-shadow:0 6px 14px rgba(30,91,255,.06);
  line-height:1;
}

.size-chip b{
  font-size:14px;
  font-weight:1000;
}

.size-chip small{
  font-size:10px;
  font-weight:900;
  color:#64748b;
  white-space:nowrap;
}

.size-chip.size-low{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#c2410c;
}

.size-chip.size-low small{
  color:#c2410c;
}

.size-chip.size-out{
  background:#f8fafc;
  border-color:#e2e8f0;
  color:#94a3b8;
  opacity:.78;
}

.size-chip.size-out small{
  color:#ef4444;
}

.size-chip.muted{
  min-width:44px;
  background:#f8fafc;
}

/* Côté admin : constructeur visuel pointure + quantité */
.size-stock-builder{
  margin:4px 0 18px;
  padding:18px;
  border-radius:22px;
  border:1px solid #dbe7ff;
  background:
    radial-gradient(circle at top right,rgba(30,91,255,.08),transparent 32%),
    linear-gradient(180deg,#fbfdff,#f4f8ff);
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.size-stock-builder[hidden]{
  display:none !important;
}

.size-stock-builder-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}

.size-stock-builder-head h3{
  margin:4px 0 5px;
  font-size:19px;
  color:#0f172a;
}

.size-stock-builder-head p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
}

.size-stock-kicker{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#eaf1ff;
  color:#1d4ed8;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.size-stock-total{
  min-width:104px;
  padding:11px 14px;
  border-radius:16px;
  background:#111827;
  color:#fff;
  text-align:center;
  box-shadow:0 12px 24px rgba(17,24,39,.14);
}

.size-stock-total span,
.size-stock-total strong{
  display:block;
}

.size-stock-total span{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.72;
}

.size-stock-total strong{
  margin-top:3px;
  font-size:24px;
  line-height:1;
}

.size-stock-toolbar{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.size-stock-toolbar button{
  min-height:38px;
  padding:9px 13px;
  border-radius:12px;
  font-size:12px;
  font-weight:900;
}

.size-stock-preset{
  background:#eaf1ff;
  color:#1d4ed8;
  border:1px solid #cfe0ff;
}

.size-stock-add{
  background:#1e5bff;
  color:#fff;
  box-shadow:0 8px 18px rgba(30,91,255,.18);
}

.size-stock-rows{
  display:grid;
  gap:10px;
}

.size-stock-row{
  display:grid;
  grid-template-columns:minmax(115px,.7fr) minmax(180px,1.15fr) minmax(135px,.75fr);
  gap:10px;
  align-items:end;
  padding:11px;
  border-radius:16px;
  border:1px solid #e2e8f0;
  background:#fff;
  transition:.2s ease;
}

.size-stock-row:focus-within{
  border-color:#9bbcff;
  box-shadow:0 0 0 3px rgba(30,91,255,.08);
}

.size-stock-row.has-error{
  border-color:#fda4af;
  background:#fff8f8;
}

.size-stock-control{
  display:grid;
  gap:6px;
  margin:0 !important;
}

.size-stock-control > span{
  font-size:11px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.size-stock-control input{
  min-height:44px;
  margin:0;
  border-radius:12px;
}

.size-stock-stepper{
  display:grid;
  grid-template-columns:42px minmax(70px,1fr) 42px;
  align-items:center;
  border:1px solid #d7e1ef;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.size-stock-stepper button{
  height:42px;
  padding:0;
  border-radius:0;
  background:#f1f5f9;
  color:#0f172a;
  font-size:20px;
}

.size-stock-stepper button:hover{
  background:#e5edff;
  color:#1d4ed8;
}

.size-stock-stepper input{
  min-height:42px;
  border:0 !important;
  border-radius:0 !important;
  text-align:center;
  font-weight:1000;
  box-shadow:none !important;
  appearance:textfield;
}

.size-stock-stepper input::-webkit-inner-spin-button,
.size-stock-stepper input::-webkit-outer-spin-button{
  appearance:none;
  margin:0;
}

.size-stock-row-state{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 8px 7px 12px;
  border-radius:12px;
  background:#f8fafc;
}

.size-stock-live b,
.size-stock-live small{
  display:block;
}

.size-stock-live b{
  font-size:15px;
  color:#1d4ed8;
}

.size-stock-live small{
  margin-top:2px;
  color:#64748b;
  font-size:10px;
  font-weight:800;
}

.size-stock-remove{
  width:32px;
  height:32px;
  padding:0 !important;
  border-radius:10px !important;
  display:grid;
  place-items:center;
  background:#fff1f2;
  color:#be123c;
  font-size:18px;
}

.size-stock-row-error{
  grid-column:1/-1;
  min-height:0;
  color:#be123c;
  font-size:11px;
  font-weight:800;
}

.size-stock-row-error:empty{
  display:none;
}

.size-stock-empty{
  padding:14px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  text-align:center;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.size-stock-empty[hidden]{
  display:none;
}

.size-stock-builder.compact{
  padding:14px;
}

@media(max-width:760px){
  .size-stock-builder-head{
    flex-direction:column;
  }
  .size-stock-total{
    width:100%;
  }
  .size-stock-row{
    grid-template-columns:1fr 1fr;
  }
  .size-stock-row-state{
    grid-column:1/-1;
  }
}

@media(max-width:520px){
  .size-stock-row{
    grid-template-columns:1fr;
  }
  .size-stock-row-state{
    grid-column:auto;
  }
  .size-chip{
    min-width:56px;
    min-height:44px;
  }
}

/* =========================================================
   PHASE 6 — ADMIN HEADER HORIZONTAL + CENTRE D'ACTIONS
   ========================================================= */
.admin-redesign-body{
  --admin-header-h: 88px;
}
.admin-console-v2{
  display:block !important;
  width:100% !important;
  min-height:100vh !important;
}
.admin-sidebar,
.admin-sidebar-v2{
  display:none !important;
}
.admin-topnav{
  position:sticky;
  top:0;
  z-index:120;
  min-height:var(--admin-header-h);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:12px 20px;
  background:rgba(8,18,43,.96);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 42px rgba(15,23,42,.18);
  backdrop-filter:blur(18px);
}
.admin-topnav-brand{
  display:flex;
  width:170px;
  height:58px;
  padding:8px 12px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  overflow:hidden;
}
.admin-topnav-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.admin-topnav-links{
  display:flex !important;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
  padding:4px 2px;
}
.admin-topnav-links::-webkit-scrollbar{display:none}
.admin-topnav-links a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 12px;
  border-radius:12px;
  color:#dbeafe;
  text-decoration:none;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
  transition:.2s ease;
}
.admin-topnav-links a:hover,
.admin-topnav-links a:focus-visible{
  background:rgba(59,130,246,.17);
  color:#fff;
  outline:none;
}
.admin-topnav-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.admin-topnav-actions .btn{
  width:auto !important;
  min-height:42px;
  padding:10px 13px;
  white-space:nowrap;
}
.admin-topnav-actions .ghost{
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
}
.admin-main-v2{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:26px clamp(18px,3vw,44px) 54px !important;
}
.admin-dashboard-shell{
  max-width:none !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
}
.admin-header-v2{
  margin-top:0 !important;
}
.admin-action-center{
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 30%),
    linear-gradient(180deg,#fff,#f8fbff) !important;
}
.admin-action-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.admin-action-card{
  min-height:148px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px;
  border-radius:22px;
  border:1px solid #e2e8f0;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.admin-action-card strong{
  font-size:2rem;
  line-height:1;
  color:#0f172a;
}
.admin-action-card h3{
  margin:0;
  font-size:1rem;
  color:#0f172a;
}
.admin-action-card p{
  margin:0;
  color:#64748b;
  font-size:.82rem;
  line-height:1.5;
}
.admin-action-card a{
  margin-top:auto;
  color:#1d4ed8;
  font-weight:900;
  font-size:.82rem;
  text-decoration:none;
}
.admin-action-card.danger{border-color:#fecaca;background:#fff7f7}
.admin-action-card.warn{border-color:#fed7aa;background:#fffaf4}
.admin-action-card.success{border-color:#bbf7d0;background:#f3fff7}
.admin-restock-list{
  display:grid;
  gap:12px;
}
.admin-restock-row{
  display:grid;
  grid-template-columns:minmax(180px,1.3fr) minmax(150px,.8fr) minmax(180px,1fr) auto;
  align-items:center;
  gap:14px;
  padding:15px 16px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
}
.admin-restock-product{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.admin-restock-product img{
  width:54px;
  height:54px;
  border-radius:14px;
  object-fit:cover;
  background:#f8fafc;
}
.admin-restock-product strong,
.admin-restock-product span{
  display:block;
}
.admin-restock-product span,
.admin-restock-meta{
  color:#64748b;
  font-size:.8rem;
}
.admin-restock-size{
  display:inline-flex;
  width:max-content;
  padding:7px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:900;
  font-size:.8rem;
}
.admin-restock-row.notified{
  opacity:.62;
  background:#f8fafc;
}
@media(max-width:1180px){
  .admin-topnav{grid-template-columns:auto minmax(0,1fr)}
  .admin-topnav-actions{grid-column:1/-1;justify-content:flex-end;display:none}
  .admin-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .admin-redesign-body{--admin-header-h:72px}
  .admin-topnav{grid-template-columns:120px minmax(0,1fr);padding:9px 10px;gap:10px}
  .admin-topnav-brand{width:120px;height:50px;padding:6px 8px}
  .admin-topnav-links a{font-size:.76rem;padding:9px 10px}
  .admin-main-v2{padding:18px 12px 44px !important}
  .admin-action-grid{grid-template-columns:1fr}
  .admin-restock-row{grid-template-columns:1fr;align-items:start}
}

/* Phase 6 — alerte réassort côté client */
.restock-alert-btn{
  grid-column:1/-1;
  background:#fff7ed !important;
  color:#c2410c !important;
  border:1px solid #fed7aa !important;
  box-shadow:none !important;
}
.restock-alert-btn:hover{background:#ffedd5 !important}
.restock-modal-card{
  position:relative;
  width:min(480px,calc(100% - 28px));
  padding:28px;
  border-radius:28px;
  background:#fff;
  box-shadow:0 32px 80px rgba(15,23,42,.24);
}
.restock-modal-card h2{margin:12px 0 8px;font-size:clamp(1.5rem,4vw,2.2rem)}
.restock-modal-card>p{margin:0 0 20px;color:#64748b;line-height:1.6}
.restock-form{display:grid;gap:14px}
.restock-form label{display:grid;gap:7px;font-weight:900;color:#0f172a}
.restock-form input,.restock-form select{border:1px solid #cbd5e1;border-radius:14px;padding:13px 14px;background:#fff}

/* Phase 7 : checkout connecté intelligent */
.checkout-saved-address{
  display:grid;
  gap:7px;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff,#eef4ff);
  border:1px solid #dbeafe;
}
.checkout-saved-address.hidden{display:none !important}
.checkout-saved-address label{
  font-size:.82rem;
  font-weight:900;
  color:#1e3a8a;
}
.checkout-saved-address select{
  width:100%;
  min-height:46px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  padding:10px 12px;
  font:inherit;
}

/* Phase 10 : panier et choix de pointure */
.drawer{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-left:1px solid #e2e8f0}.drawer-head{padding:6px 2px 18px;border-bottom:1px solid #edf2f7}.drawer-head h2{font-size:clamp(1.8rem,4vw,2.5rem);margin:0}.cart-items{display:grid;gap:10px;padding:16px 0}.cart-line{grid-template-columns:88px 1fr auto;gap:16px;padding:14px;border:1px solid #e7edf7;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05)}.cart-line img{width:88px;height:88px;border-radius:18px;background:#f1f5f9}.cart-line h4{font-size:1rem;margin:2px 0 6px}.cart-line .mini{line-height:1.45}.cart-line>.qty{}.qty{margin-top:10px}.qty button{width:34px;height:34px;padding:0;border-radius:11px;background:#eef2f7;color:#0f172a}.cart-line>button[data-cart-action="remove"]{align-self:start;width:36px;height:36px;padding:0;border-radius:12px;background:#f8fafc;color:#475569}.cart-total{margin:8px 0 14px;padding:18px 4px;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.cart-total strong{font-size:1.55rem}.order-form{padding:18px;border-radius:24px;background:#fff;border:1px solid #e7edf7}.order-form h3{margin-top:0}
.cart-options-card{position:relative;width:min(620px,94vw);padding:26px;border-radius:30px;background:#fff;box-shadow:0 34px 90px rgba(15,23,42,.28)}.cart-options-product{display:grid;grid-template-columns:110px 1fr;gap:18px;align-items:center;padding:0 42px 18px 0;border-bottom:1px solid #edf2f7}.cart-options-product img{width:110px;height:90px;object-fit:cover;border-radius:20px;background:#f1f5f9}.cart-options-product span{display:block;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:#2563eb}.cart-options-product h2{font-size:1.45rem;margin:5px 0}.cart-options-product strong{color:#2563eb;font-size:1.2rem}.cart-options-size-block{padding:20px 0}.cart-options-label{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:12px}.cart-options-label strong,.cart-options-label span{display:block}.cart-options-label span{font-size:.76rem;color:#64748b;text-align:right}.cart-options-sizes{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px}.cart-options-sizes button{padding:13px 10px;border-radius:16px;border:1px solid #dbe4f2;background:#f8fbff;color:#0f172a}.cart-options-sizes button strong,.cart-options-sizes button span{display:block}.cart-options-sizes button strong{font-size:1.05rem}.cart-options-sizes button span{font-size:.7rem;margin-top:4px;color:#64748b}.cart-options-sizes button.selected{background:#1e5bff;border-color:#1e5bff;color:#fff;box-shadow:0 12px 26px rgba(30,91,255,.22)}.cart-options-sizes button.selected span{color:#dbeafe}.cart-options-sizes button:disabled{opacity:.42;cursor:not-allowed;text-decoration:line-through}.cart-options-quantity{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px;border-radius:18px;background:#f8fafc;margin-bottom:18px}.cart-options-quantity>div:first-child strong,.cart-options-quantity>div:first-child span{display:block}.cart-options-quantity>div:first-child span{font-size:.75rem;color:#64748b;margin-top:3px}.cart-options-qty-control{display:flex;align-items:center;gap:12px}.cart-options-qty-control button{width:38px;height:38px;padding:0;border-radius:12px;background:#e8eefc;color:#1d4ed8;font-size:1.2rem}.cart-options-qty-control strong{min-width:26px;text-align:center}.cart-options-qty-control button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:560px){.cart-line{grid-template-columns:72px 1fr auto;padding:10px}.cart-line img{width:72px;height:72px}.cart-options-card{padding:18px;border-radius:24px}.cart-options-product{grid-template-columns:82px 1fr}.cart-options-product img{width:82px;height:72px}.cart-options-label{align-items:flex-start;flex-direction:column;gap:4px}.cart-options-label span{text-align:left}.cart-options-sizes{grid-template-columns:repeat(3,1fr)}}

/* Phase 10 : fidélité admin */
.customer-admin-search{display:flex;gap:10px;align-items:center}.customer-admin-search input{min-width:280px}.admin-customers-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.admin-customer-card{padding:20px;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #e2e8f0;box-shadow:0 12px 28px rgba(15,23,42,.05)}.admin-customer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-customer-head strong,.admin-customer-head span{display:block}.admin-customer-head strong{font-size:1.03rem}.admin-customer-head span{font-size:.75rem;color:#64748b;margin-top:4px}.admin-loyalty-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:.72rem;font-weight:900;white-space:nowrap}.admin-loyalty-chip b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#cbd5e1;color:#0f172a;font-size:.65rem}.admin-loyalty-chip.level-1{background:#eff6ff;color:#1d4ed8}.admin-loyalty-chip.level-2{background:#f5f3ff;color:#6d28d9}.admin-loyalty-chip.level-3{background:#fdf2f8;color:#be185d}.admin-loyalty-chip.level-4{background:#fffbeb;color:#b45309}.admin-loyalty-chip.level-5{background:#111827;color:#fff}.admin-loyalty-chip.active{box-shadow:0 0 0 2px rgba(34,197,94,.18)}.admin-customer-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.admin-customer-stats>div{padding:11px;border-radius:15px;background:#fff;border:1px solid #edf2f7}.admin-customer-stats b,.admin-customer-stats span{display:block}.admin-customer-stats b{font-size:.95rem}.admin-customer-stats span{font-size:.66rem;color:#64748b;margin-top:3px}.admin-customer-progress>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:.72rem;color:#475569}.admin-progress-bar{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-top:7px}.admin-progress-bar i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#7c3aed);border-radius:inherit}.admin-benefit-list{display:grid;gap:6px;margin-top:12px}.admin-benefit-list span{padding:8px 10px;border-radius:12px;background:#f0fdf4;color:#166534;font-size:.72rem;font-weight:800}.admin-benefit-none{display:block;margin-top:10px;color:#94a3b8;font-size:.75rem}.order-loyalty-admin{background:#f8fbff;border-radius:18px;padding:14px!important}.order-loyalty-admin h3{margin-top:0}@media(max-width:720px){.customer-admin-search{width:100%;flex-direction:column;align-items:stretch}.customer-admin-search input{min-width:0}.admin-customers-grid{grid-template-columns:1fr}.admin-customer-stats{grid-template-columns:1fr 1fr}}

/* Phase 10 : guide installation téléphone */
.install-shortcut-trigger{position:fixed;right:18px;bottom:18px;z-index:78;border:1px solid rgba(255,255,255,.35);background:#111827;color:#fff;border-radius:999px;padding:11px 15px;font-weight:900;box-shadow:0 18px 40px rgba(15,23,42,.24)}.install-guide-overlay[hidden]{display:none!important}.install-guide-overlay{position:fixed;inset:0;z-index:9998;display:grid;place-items:end center;padding:18px;background:rgba(15,23,42,.62);backdrop-filter:blur(6px)}.install-guide-sheet{width:min(680px,100%);padding:24px;border-radius:28px;background:#fff;box-shadow:0 30px 80px rgba(15,23,42,.32)}.install-guide-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.install-guide-head h2{margin:4px 0 6px}.install-guide-head p{margin:0;color:#64748b}.install-guide-close{width:42px;height:42px;padding:0;border-radius:14px;background:#f1f5f9}.install-guide-tabs{display:flex;gap:8px;margin:18px 0}.install-guide-tabs button{flex:1;background:#eef2ff;color:#334155}.install-guide-tabs button.active{background:#1e5bff;color:#fff}.install-guide-steps{display:grid;gap:10px}.install-guide-step{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:12px;border-radius:16px;background:#f8fafc}.install-guide-step b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8}.install-native-btn{width:100%;margin-top:14px}.install-guide-note{font-size:.76rem;color:#64748b;margin:12px 0 0}@media(display-mode:standalone){.install-shortcut-trigger{display:none!important}}@media(max-width:560px){.install-shortcut-trigger{right:12px;bottom:12px;font-size:.76rem}.install-guide-overlay{padding:8px}.install-guide-sheet{padding:18px;border-radius:24px}}

/* Phase 11 — affiliation au checkout */
.checkout-reward-box{display:flex!important;align-items:center;gap:12px;padding:14px 15px;border:1px solid #bbf7d0;border-radius:16px;background:linear-gradient(135deg,#ecfdf5,#f0fdf4);cursor:pointer}.checkout-reward-box.hidden{display:none!important}.checkout-reward-box input{width:20px;height:20px;accent-color:#16a34a;flex:0 0 auto}.checkout-reward-box span{display:grid;gap:3px}.checkout-reward-box strong{color:#065f46}.checkout-reward-box small{color:#047857}.checkout-referral-benefit{display:grid;gap:4px;padding:13px 14px;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#eef2ff);border:1px solid #dbeafe;color:#1e3a8a}.checkout-referral-benefit.hidden{display:none}.checkout-referral-benefit strong{font-size:.88rem}.checkout-referral-benefit span{font-size:.8rem;line-height:1.45}.referral-discount-inline{display:inline-flex;padding:4px 8px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.8rem;font-weight:900}.cart-total-old{text-decoration:line-through;color:#94a3b8;font-size:.8em;font-weight:700;margin-right:6px}

/* Phase 11 — affiliation admin */
.admin-referral-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.admin-referral-stats article{padding:16px;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff)}.admin-referral-stats span,.admin-customer-referral span{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:900}.admin-referral-stats strong{display:block;font-size:1.6rem;margin-top:7px}.admin-referral-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.admin-referral-card{padding:18px;border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.05)}.admin-referral-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.admin-referral-head strong,.admin-referral-head span{display:block}.admin-referral-head>div>span{font-size:.78rem;color:#64748b;margin-top:4px}.admin-referral-code{padding:7px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.78rem;font-weight:900}.admin-referral-progress{margin:16px 0}.admin-referral-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:.82rem;margin-bottom:7px}.admin-referral-meta{display:flex;gap:7px;flex-wrap:wrap}.admin-referral-meta span{padding:6px 9px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;font-size:.72rem;font-weight:800}.ref-active{color:#047857!important}.ref-cooldown{color:#c2410c!important}.admin-customer-referral{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f0}.admin-customer-referral>div{padding:10px;border-radius:14px;background:#f8fafc}.admin-customer-referral strong{display:block;margin-top:5px;font-size:.84rem}.admin-order-benefits{background:linear-gradient(135deg,#ecfdf5,#f0fdf4)!important;border:1px solid #bbf7d0!important;border-radius:18px;padding:16px!important}.admin-order-benefits p{margin:10px 0 0;color:#065f46}@media(max-width:1000px){.admin-referral-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-customer-referral{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.admin-referral-stats{grid-template-columns:1fr}.admin-referral-head{flex-direction:column}.admin-customer-referral{grid-template-columns:1fr}}
.order-benefit-chip{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.68rem;font-weight:900;border:1px solid #bbf7d0}

/* Correctif affiliation — avantage filleul très visible au checkout */
.checkout-referral-benefit{
  grid-template-columns:46px 1fr !important;
  gap:12px !important;
  align-items:center !important;
  padding:14px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#ecfdf5 0%,#eff6ff 100%) !important;
  border:1px solid #86efac !important;
  color:#064e3b !important;
  box-shadow:0 12px 24px rgba(16,185,129,.08) !important;
}
.checkout-referral-benefit.hidden{display:none!important}
.checkout-referral-gift-icon{
  width:46px;height:46px;display:grid;place-items:center;border-radius:15px;
  background:#fff;font-size:1.4rem;box-shadow:0 8px 18px rgba(15,23,42,.08)
}
.checkout-referral-benefit>div:last-child{display:grid;gap:3px}
.checkout-referral-benefit strong{color:#065f46 !important;font-size:.9rem !important}
.checkout-referral-benefit span{color:#047857 !important;font-size:.8rem !important;line-height:1.45 !important}
.checkout-referral-benefit small{color:#0f766e;font-size:.72rem;font-weight:700}
.referral-free-delivery{
  background:linear-gradient(135deg,#dcfce7,#ecfdf5) !important;
  border:1px solid #86efac !important;
}
.referral-free-delivery strong{color:#047857 !important;font-size:1.05rem !important}

/* Phase 12.2 — livraison gratuite affichée clairement */
.single-wave-advance.referral-free-delivery{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:76px !important;
  padding:18px 22px !important;
  border:1px solid #86efac !important;
  border-radius:20px !important;
  background:linear-gradient(135deg,#ecfdf5,#dcfce7) !important;
  box-shadow:0 14px 30px rgba(16,185,129,.10) !important;
}
.single-wave-advance.referral-free-delivery span{
  display:block !important;
  margin:0 !important;
  color:#047857 !important;
  font-size:clamp(1.1rem,2.2vw,1.55rem) !important;
  line-height:1.15 !important;
  letter-spacing:.08em !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  text-align:center !important;
}
.single-wave-advance.referral-free-delivery strong{display:none !important}
.delivery-highlight.referral-free-delivery-highlight{
  background:linear-gradient(135deg,#dcfce7,#ecfdf5) !important;
  color:#047857 !important;
  border:1px solid #86efac !important;
  box-shadow:0 10px 24px rgba(16,185,129,.10) !important;
}

/* Phase 14 — raccourci profil client dans le header */
.customer-profile-shortcut{width:46px;height:46px;flex:0 0 46px;border-radius:50%;padding:2px;background:linear-gradient(135deg,#fff,#e8efff);border:1px solid #dbe5f5;box-shadow:0 8px 22px rgba(15,23,42,.10);overflow:hidden;transition:.2s;display:none;align-items:center;justify-content:center;text-decoration:none}.customer-profile-shortcut:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(30,91,255,.16)}.customer-profile-shortcut img{width:100%;height:100%;border-radius:50%;object-fit:cover;background:#eaf1ff}.customer-profile-shortcut.authenticated{border-color:#bcd0ff;box-shadow:0 0 0 3px rgba(30,91,255,.08),0 10px 24px rgba(15,23,42,.10)}.top-actions .customer-profile-shortcut{display:inline-flex}@media(max-width:560px){.customer-profile-shortcut{width:42px;height:42px;flex-basis:42px}.top-actions{gap:7px}.top-actions .cart-btn{padding:11px 13px}}

/* 1.5.1 — Affichage initial et stabilité visuelle des miniatures */
.catalogue-loading { width: 100%; text-align: center; padding: 4rem 1rem; color: #64748b; font-weight: 600; }
.product-card .product-img img { display: block; }

/* Sprint 6 — stock admin plus visuel */
.admin-stock-row{position:relative!important}
.admin-stock-row::before{content:'';position:absolute;inset:0 auto 0 0;width:6px;border-radius:26px 0 0 26px;background:linear-gradient(180deg,#bfdbfe,#e2e8f0);opacity:.95}
.admin-stock-row.stock-level-stock-ok::before{background:linear-gradient(180deg,#22c55e,#bbf7d0)}
.admin-stock-row.stock-level-stock-warning::before{background:linear-gradient(180deg,#f59e0b,#fde68a)}
.admin-stock-row.stock-level-stock-danger::before{background:linear-gradient(180deg,#ef4444,#fecaca)}
.admin-stock-metric small.admin-stock-helper{display:block;color:#64748b;font-size:.78rem;line-height:1.35;font-weight:700}
.admin-stock-metric.stock-box{justify-content:flex-start!important}
.admin-stock-metric.stock-box.stock-ok{background:linear-gradient(135deg,#ecfdf5,#f8fafc)!important;border-color:#bbf7d0!important}
.admin-stock-metric.stock-box.stock-warning{background:linear-gradient(135deg,#fff7ed,#fffbeb)!important;border-color:#fdba74!important}
.admin-stock-metric.stock-box.stock-danger{background:linear-gradient(135deg,#fff1f2,#fef2f2)!important;border-color:#fda4af!important}
.admin-stock-metric.evolution-box.up{background:linear-gradient(135deg,#ecfdf5,#f8fafc)!important}
.admin-stock-metric.evolution-box.down{background:linear-gradient(135deg,#fff1f2,#f8fafc)!important}
.admin-stock-counter.variant-stock-summary{flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important}
.admin-stock-counter .stock-pill{box-shadow:0 10px 24px rgba(15,23,42,.08)!important}
.product-state.stock-ok{background:#dcfce7!important;color:#047857!important;border-color:#bbf7d0!important}
.product-state.stock-warning{background:#fff7ed!important;color:#c2410c!important;border-color:#fed7aa!important}
.product-state.stock-danger{background:#fee2e2!important;color:#991b1b!important;border-color:#fecaca!important}
