﻿/* WMST Shop : style marketplace (type Alibaba). Ã€ mettre en DERNIER dans le <head> de index.html :
   <link rel="stylesheet" href="alibaba.css">   (aprÃ¨s theme.css et mobile_fix.css) */

:root{--ali:#3558E6;--ali2:#2644C7;--hot:#E5484D;--page:#F2F4F8}
html body{background:var(--page)}

/* ---------- Titres de sections faÃ§on marketplace ---------- */
html body h2.sec{font:800 19px/1.2 'Bricolage Grotesque',Inter,sans-serif;margin:26px 0 12px;padding-left:12px;border-left:4px solid var(--ali);align-items:center}
html body h2.sec small a{font-weight:600;color:var(--ali2)}
html body #v-accueil .hrow,html body #v6rows .hrow{background:#fff;border:1px solid var(--edge);border-radius:12px;padding:12px}

/* ---------- Cartes produit : denses, plates ---------- */
html body .pc{border-radius:8px;box-shadow:none;border:1px solid var(--edge)}
html body .pc:hover{box-shadow:0 6px 20px rgba(16,24,40,.14);transform:translateY(-2px);border-color:#C7D5FF}
html body .pc .pc-p b{font-size:18px}
html body .pc .pc-d{border-radius:4px;background:var(--hot)}

/* ---------- ORDINATEUR (â‰¥ 900 px) ---------- */
@media(min-width:900px){
 html body .util{background:#142858;color:#DCE6FF}
 html body .top{padding-top:12px;padding-bottom:12px}
 html body .sb input{border-radius:6px;border-width:2px;min-height:46px}
 html body .dnav{background:var(--ali);border:0}
 html body .dnav button{color:#fff;border-radius:0;padding:13px 18px;font-weight:600}
 html body .dnav button:hover{background:rgba(255,255,255,.14)}
 html body .dnav button.on{background:#fff;color:var(--ali2)}
 html body .dnav button.pm{color:#FFD39A}
 html body .dnav button.pm.on{color:var(--hot)}
 /* hÃ©ros plus bas : le catalogue apparaÃ®t plus vite */
 html body .h3d{min-height:380px;padding:30px 48px;border-radius:12px}
 html body .h3d h1{font-size:clamp(32px,3.6vw,48px)}
 html body .h3p{transform-origin:center;scale:.8}
 /* catÃ©gories Ã  gauche + banniÃ¨re */
 html body .homegrid{grid-template-columns:260px minmax(0,1fr);gap:12px}
 html body .catside{border-radius:10px;padding:0}
 html body .catside h3{background:var(--ali);color:#fff;margin:0;padding:12px 16px;border-radius:10px 10px 0 0;font-size:15px}
 html body .catside button{border-bottom:1px solid #F0F2F6;padding:11px 16px}
 html body .catside button:hover{background:#EEF2FF;padding-left:20px}
 html body .ad{min-height:300px}
 html body .trust{border-radius:10px}
 /* grilles Ã  6 colonnes */
 html body .grid{grid-template-columns:repeat(5,1fr);gap:12px}
 html body .hrow .pc{flex:0 0 190px}
 html body .ctiles{grid-template-columns:repeat(6,1fr);gap:10px}
 html body .ctile{border-radius:10px;align-items:center;text-align:center;padding:18px 10px}
}
@media(min-width:1400px){html body .grid{grid-template-columns:repeat(6,1fr)}}

/* ---------- TÃ‰LÃ‰PHONE (â‰¤ 640 px) ---------- */
@media(max-width:640px){
 html body{background:#fff}
 /* en-tÃªte : ligne 1 = logo + icÃ´nes, ligne 2 = recherche pleine largeur */
 html body .top{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 6px;padding:8px 10px}
 html body .top>.brand{order:1;margin-right:auto}
 html body .top>.locb{order:2}
 html body .top>#bh{order:3}html body .top>#bc{order:4}html body .top>.acct{order:5}
 html body .top>#bf{order:6}
 html body .top>.sb{order:10;flex:1 1 100%;min-width:100%}
 html body .sb input{min-height:44px;border-radius:8px;padding-right:76px}
 html body .sellcta{display:none!important}
 html body .util{font-size:11.5px}
 html body .util .wrap{min-height:28px;justify-content:center;text-align:center}

 /* accueil : on voit les produits tout de suite */
 html body .h3d{min-height:0;padding:18px 14px;border-radius:12px;margin-top:8px}
 html body .h3s{display:none}
 html body .h3d h1{font-size:28px;margin:10px 0}
 html body .h3d p{font-size:14px;margin-bottom:14px}
 html body .trust{grid-template-columns:repeat(2,1fr);padding:2px}
 html body .trust div{padding:8px 10px}
 html body .trust small{font-size:11px}
 html body .homegrid{display:block;margin-top:10px}
 html body .ad{min-height:190px}
 html body .adx h3{font-size:20px}
 html body .ad-deal{display:none}

 /* catÃ©gories : tuiles compactes en dÃ©filement horizontal */
 html body .ctiles{display:flex;overflow-x:auto;gap:8px;scrollbar-width:none;padding-bottom:4px}
 html body .ctiles::-webkit-scrollbar{display:none}
 html body .ctile{flex:0 0 96px;align-items:center;text-align:center;padding:12px 6px;border-radius:12px}
 html body .ctile b{font-size:12.5px}html body .ctile small{font-size:10.5px}

 /* sections et cartes */
 html body h2.sec{font-size:17px;margin:20px 0 10px}
 html body #v-accueil .hrow,html body #v6rows .hrow{padding:8px;border-radius:10px;gap:8px}
 html body .hrow .pc{flex:0 0 138px}
 html body .grid{gap:6px}
 html body .pc{border-radius:8px}
 html body .pc .bd{padding:7px 8px 9px;gap:3px}
 html body .pc .bd h3{font-size:12px;min-height:31px}
 html body .pc .pc-p b{font-size:15px}
 html body .pc .pc-tg,html body .pc .sold,html body .pc .pc-sv{display:none}
 html body .pc .tag{font-size:9px}
 html body .promo-price{font-weight:800}

 /* barre du bas : plus fine, lisible */
 html body .dock{padding:4px 2px calc(4px + env(safe-area-inset-bottom,0px))}
 html body .dock button{font-size:10px;padding:4px 2px}
 html body .dock .i{width:21px;height:21px}
 html body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}

 /* pied de page */
 html body .foot{border-radius:0;margin-top:14px}
}

/* Accueil marketplace WMST : recherche, rep?res et produits au premier plan. */
:root{--ali:#3558E6;--ali2:#2644C7;--page:#F3F6FB;--edge:#E2E8F0;--ink:#16213E;--soft:#64748B}
html[data-theme="default"] body,html[data-theme="light"] body{background:var(--page);color:var(--ink)}
html body .wrap{max-width:1380px}
html body .top{top:0;margin:0 auto;padding:12px 18px;border-radius:0 0 14px 14px;background:#fff;border:1px solid #E7ECF5;box-shadow:0 3px 16px rgba(24,42,82,.07);backdrop-filter:none;-webkit-backdrop-filter:none;color:#16213E}
html body .brand{font-size:20px;color:#16213E}
html body .brand img{width:44px;height:44px;border-radius:12px}
html body .sb input{background:#F7F9FD;color:#16213E;border:1px solid #CAD4E5;border-radius:9px;min-height:46px}
html body .sb input::placeholder{color:#7A879B}
html body .sb input:focus{background:#fff;border-color:#3558E6;box-shadow:0 0 0 3px rgba(53,88,230,.12)}
html body .tb{background:#fff;border-color:#E2E8F0;color:#2644C7;border-radius:10px}
html body .locb{color:#26344D}
html body .util{background:#142858;color:#E5ECFF}
html body .util .wrap{max-width:1380px}
html body .dnav{background:#3558E6;border:0}
html body .dnav .wrap{max-width:1380px}
html body .dnav button{color:#fff;border-radius:7px}
html body .market-welcome{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;min-height:218px;overflow:hidden;margin:18px 0 14px;padding:30px clamp(22px,4vw,52px);border:1px solid #DCE6FF;border-radius:16px;background:linear-gradient(110deg,#F0F5FF 0%,#E5EDFF 54%,#DBF7F5 100%);color:#16213E}
html body .market-welcome-copy{position:relative;z-index:2;max-width:700px}
html body .market-kicker{display:inline-block;margin-bottom:8px;color:#3558E6;font-size:11px;font-weight:800;letter-spacing:.12em}
html body .market-welcome h1{max-width:680px;color:#172B57;font:800 clamp(26px,3.1vw,40px)/1.1 'Bricolage Grotesque',Inter,sans-serif;letter-spacing:-.035em}
html body .market-welcome p{max-width:560px;margin:10px 0 17px;color:#52627B;font-size:15px}
html body .market-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
html body .market-welcome .btn{min-height:42px;padding:10px 17px;border-radius:8px;background:#3558E6;border:1px solid #3558E6;box-shadow:0 4px 10px rgba(53,88,230,.18);color:#fff}
html body .market-text-link{padding:8px 0;border:0;background:transparent;color:#2644C7;font-weight:700;cursor:pointer}
html body .market-welcome-art{position:absolute;z-index:1;right:5%;top:50%;width:260px;height:190px;transform:translateY(-50%);display:grid;place-items:center}
html body .market-orbit{position:absolute;border:1px solid rgba(53,88,230,.16);border-radius:50%;transform:rotate(-22deg)}
html body .market-orbit-one{width:236px;height:120px}.market-orbit-two{width:190px;height:160px;transform:rotate(38deg)}
html body .market-bag{display:grid;place-items:center;width:92px;height:104px;border-radius:18px 18px 24px 24px;background:linear-gradient(145deg,#5275F4,#2644C7);box-shadow:0 18px 34px rgba(38,68,199,.24);color:#fff;font:800 16px 'Bricolage Grotesque';letter-spacing:.16em;transform:rotate(-7deg)}
html body .market-bag:before{content:"";position:absolute;top:-20px;width:37px;height:32px;border:5px solid #3558E6;border-bottom:0;border-radius:22px 22px 0 0}
html body .market-spark{position:absolute;color:#14A99A;font-size:28px}.market-spark-one{top:12px;right:40px}.market-spark-two{bottom:12px;left:20px;font-size:20px}
html body .wmst-old-hero{display:none!important}
html body #v-accueil>.stats{margin:10px 0}
html body #v-accueil>.homegrid{margin-top:12px}
html body #v-accueil>.homegrid .catside{background:#fff;border:1px solid #E2E8F0}
html body #v-accueil>.homegrid .catside button{color:#27364F}
html body #v-accueil>.homegrid .catside button em{color:#77849A}
html body #v-accueil>#rowNew{margin:0 0 6px}
html body #v-accueil>#rowNew .pc{background:#fff}
html body #v-accueil .ads{display:block}
html body #v-accueil .adtrack{border-radius:12px}
html body #v-accueil .ad::before{background:linear-gradient(90deg,rgba(21,42,91,.9),rgba(31,62,133,.67) 50%,rgba(24,53,112,.14))}
html body #v-accueil .ad-kicker{color:#A9C0FF}
html body h2.sec{color:#182744}
html body #v-accueil .hrow{background:#fff;border-color:#E4E9F2}
html body .pc{background:#fff;color:#16213E}
html body .pc .bd h3{color:#25344D}
html body .pc .pc-p b{color:#2644C7}
html body .ctile{background:linear-gradient(145deg,#3558E6,#2644C7)!important;color:#fff}
html body .foot{background:#fff;color:#26344D}
html body .foot a{color:#3558E6}
html[data-theme="dark"] body{background:#0A1226;color:#F3F6FF}
html[data-theme="dark"] body .top{background:#101B34;color:#F3F6FF;border-color:#263654}
html[data-theme="dark"] body .brand,html[data-theme="dark"] body h2.sec{color:#F3F6FF}
html[data-theme="dark"] body .sb input{background:#14213D;color:#F3F6FF;border-color:#334568}
html[data-theme="dark"] body .tb{background:#14213D;color:#DCE6FF;border-color:#334568}
html[data-theme="dark"] body .market-welcome{background:linear-gradient(110deg,#14213D,#182B55 58%,#123C4A);border-color:#2B426B;color:#F3F6FF}
html[data-theme="dark"] body .market-welcome h1{color:#F3F6FF}
html[data-theme="dark"] body .market-welcome p{color:#C4D0E7}
html[data-theme="dark"] body h2.sec{color:#F3F6FF}
html[data-theme="dark"] body .pc,html[data-theme="dark"] body #v-accueil .hrow,html[data-theme="dark"] body #v-accueil .catside,html[data-theme="dark"] body .foot{background:#111D35;color:#F3F6FF;border-color:#283A5B}
html[data-theme="dark"] body .pc .bd h3,html[data-theme="dark"] body .catside button{color:#EAF0FF}
html[data-theme="dark"] body .foot a{color:#9CB5FF}
@media(min-width:900px){html body .top{max-width:1380px}html body .homegrid{grid-template-columns:250px minmax(0,1fr);gap:14px}html body .grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1400px){html body .grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:640px){
 html body .top{border-radius:0 0 12px 12px;padding:8px 10px;gap:7px 5px}
 html body .brand img{width:38px;height:38px}
 html body .market-welcome{min-height:0;margin:10px 0;padding:20px 16px;border-radius:12px}
 html body .market-welcome-copy{max-width:100%}
 html body .market-welcome h1{max-width:82%;font-size:25px}
 html body .market-welcome p{max-width:84%;font-size:13px;line-height:1.45;margin:8px 0 12px}
 html body .market-welcome-art{right:-64px;width:190px;height:150px;opacity:.48}
 html body .market-orbit-one{width:180px;height:92px}.market-orbit-two{width:144px;height:120px}
 html body .market-bag{width:70px;height:80px;font-size:12px}
 html body .market-bag:before{top:-15px;width:29px;height:24px;border-width:4px}
 html body .market-kicker{font-size:9px}
 html body .market-actions{gap:10px}
 html body .market-welcome .btn{min-height:40px;padding:9px 12px;font-size:13px}
 html body .market-text-link{font-size:12px}
 html body #v-accueil>.homegrid{margin-top:8px}
 html body #v-accueil>.homegrid .ads{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){html body .market-welcome-art *{animation:none!important}}

/* Parcours t?l?phone : acc?s au compte et cinq actions de premier niveau. */
@media(max-width:640px){
 html body#shop-home .top{display:grid!important;grid-template-columns:34px 40px minmax(0,1fr) 34px 36px 34px;grid-template-rows:40px 42px;gap:6px;padding:6px 10px 8px;border-radius:0 0 12px 12px}
 html body#shop-home .top>.mnb{grid-column:1;grid-row:1;width:34px;height:34px}
 html body#shop-home .top>.brand{grid-column:2;grid-row:1;justify-self:center}
 html body#shop-home .top>.locb{grid-column:3;grid-row:1;justify-self:end;min-width:0;max-width:100%!important;padding:4px!important;gap:4px;font-size:10px}
 html body#shop-home .top>.locb small{display:none}
 html body#shop-home .top>.locb b{max-width:100%;font-size:10px}
 html body#shop-home .top>.sb{grid-column:1/-1;grid-row:2;min-width:0;width:100%;max-width:none}
 html body#shop-home .top>#bf{display:none!important}
 html body#shop-home .top>#bh{grid-column:4;grid-row:1;width:34px;height:34px}
 html body#shop-home .top>#bc{grid-column:5;grid-row:1;width:36px;height:36px}
 html body#shop-home .top>.acct{grid-column:6;grid-row:1;display:grid!important;place-items:center;width:34px;height:34px;min-width:34px;padding:0;border-radius:10px;background:#EEF2FF;border:1px solid #D7E1FF;color:#2644C7;font-size:12px;font-weight:700;white-space:nowrap}
 html body#shop-home .top>.acct svg,html body#shop-home .top>.acct img,html body#shop-home .top>.acct .wmst-account-initial{width:19px!important;height:19px!important;flex:none;border-radius:50%}
 html body#shop-home .top>.acct .acct-label{display:none}
 html body#shop-home #v-accueil.on{display:flex;flex-direction:column;gap:0}
 html body#shop-home #v-accueil>.market-welcome{order:1}
 html body#shop-home #v-accueil>#personalBlock{order:2}
 html body#shop-home #v-accueil>#stats{order:3}
 html body#shop-home #v-accueil>h2.sec:has(+ #tiles){order:4}
 html body#shop-home #v-accueil>#tiles{order:5}
 html body#shop-home #v-accueil>.homegrid{order:6}
 html body#shop-home #v-accueil>#promoBlock{order:7}
 html body#shop-home #v-accueil>h2.sec:has(+ #rowNew){order:8}
 html body#shop-home #v-accueil>#rowNew{order:9}
 html body#shop-home #v-accueil>#recBlock{order:10}
 html body#shop-home #v-accueil>#v6rows{order:11}
 html body#shop-home #v-accueil>h2.sec:not(:has(+ #tiles)):not(:has(+ #rowNew)){order:12}
 html body#shop-home #v-accueil>.why,html body#shop-home #v-accueil>.two,html body#shop-home #v-accueil>.box{order:13}
 html body#shop-home #v-accueil>#tiles{margin-bottom:4px}
 html body#shop-home #v-accueil>.homegrid .catside{display:none}
}
html[data-theme="dark"] body#shop-home .top>.acct{background:#1C2A49;border-color:#334B7A;color:#D4DEFF}

html body#shop-home .top>.acct{width:auto;min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border-radius:10px;background:#EEF2FF;border:1px solid #D7E1FF;color:#2644C7;font-size:13px;font-weight:700;white-space:nowrap}html body#shop-home .top>.acct svg,html body#shop-home .top>.acct img{width:20px;height:20px;flex:none}html body#shop-home .top>.acct .acct-label{display:inline}
