:root{--navy:#173d12;--navy2:#24561c;--amber:#ffffff;--ink:#111827;--grey:#4b5563;--bg:#f3f4f6;--card:#fff}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}
a{color:var(--navy2)}
header{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff}
.wrap{max-width:960px;margin:0 auto;padding:0 20px}
nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:700;font-size:18px}
.logo{width:42px;height:42px;border-radius:50%;background:var(--amber);display:grid;place-items:center;color:var(--navy);font-size:22px}
.links a{color:#e3efdc;text-decoration:none;margin-left:16px;font-size:15px}
.links a:hover{color:#fff}
.lang{border:1px solid #cfe3c6;border-radius:999px;padding:3px 10px}
.hero{padding:48px 0 64px}
.hero h1{font-size:clamp(30px,5vw,46px);line-height:1.15;margin:0 0 14px}
.hero p{font-size:18px;color:#cfe3c6;max-width:640px;margin:0 0 24px}
.btn{display:inline-block;background:var(--amber);color:var(--navy);font-weight:700;padding:14px 22px;border-radius:12px;text-decoration:none}
.btn.ghost{background:transparent;color:#fff;border:1px solid #cfe3c6;margin-left:10px}
main{padding:32px 0 48px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{background:var(--card);border-radius:16px;padding:22px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.card h3{margin:6px 0 6px;font-size:17px}
.card p{margin:0;color:var(--grey);font-size:15px}
.ico{font-size:26px}
h2{font-size:26px;margin:40px 0 16px}
.doc{background:var(--card);border-radius:16px;padding:28px}
.doc h2{margin-top:28px;font-size:20px}
.doc h2:first-child{margin-top:0}
.doc p,.doc li{color:#374151}
table{border-collapse:collapse;width:100%}
td{padding:8px 0;border-bottom:1px solid #e5e7eb;vertical-align:top}
td:first-child{color:var(--grey);width:38%;padding-right:12px}
.steps li{margin-bottom:8px}
.note{background:#fef3c7;border-radius:12px;padding:14px 16px;color:#92400e}
footer{background:var(--navy);color:#cfe3c6;padding:28px 0;font-size:14px}
footer a{color:#fff}
/* v2 */
body{-webkit-font-smoothing:antialiased}
nav{padding:14px 0}
.links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}
.links a{margin-left:0;white-space:nowrap}
.hero{padding:40px 0 56px}
.cta{display:flex;flex-wrap:wrap;gap:12px}
.btn.ghost{margin-left:0}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:700;color:var(--amber);margin:48px 0 4px}
.eyebrow.light{margin-top:0}
section:first-child .eyebrow{margin-top:8px}
h2{margin-top:0}
.lead{color:var(--grey);font-size:17px;max-width:680px;margin:-6px 0 22px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:34px;padding-top:24px;border-top:1px solid rgba(199,210,254,.25)}
.stats b{display:block;font-size:24px;color:#fff}
.stats span{font-size:13px;color:#cfe3c6}
@media(max-width:560px){.stats{grid-template-columns:repeat(2,1fr)}}
.chip{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:24px;background:#eef4ea;margin-bottom:10px}
.pole{border-top:4px solid var(--c)}
.pole .chip{background:color-mix(in srgb,var(--c) 12%,#fff)}
.ticks{list-style:none;padding:0;margin:14px 0 0}
.ticks li{padding-left:24px;position:relative;font-size:14px;color:#374151;margin:6px 0}
.ticks li:before{content:"✓";position:absolute;left:0;color:var(--c,var(--amber));font-weight:700}
.card{transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,27,61,.08)}
.band{background:#e8edf9;margin:48px -100vw 0;padding:8px 100vw 36px}
.small{font-size:14px;margin-top:18px}
.contact .card p{word-break:break-word}
html,body{overflow-x:hidden}
/* v4 boutique */
.links a.shoplink{background:var(--amber);color:var(--navy);font-weight:700;border-radius:999px;padding:3px 12px}
.tabs,.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:none}
.tabs button,.chips button{flex:0 0 auto;border:1px solid #cfe3c6;background:#fff;color:var(--navy);border-radius:999px;padding:9px 16px;font:600 15px system-ui,sans-serif;cursor:pointer}
.tabs button.on,.chips button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.chips button{padding:6px 12px;font-size:13px}
.search{width:100%;padding:13px 16px;border:1px solid #d1d5db;border-radius:12px;font-size:16px;margin:4px 0 16px;background:#fff}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:12px}
.pcard{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column}
.pcard img,.pcard .noimg{width:100%;aspect-ratio:1;object-fit:cover;background:#eef4ea;display:grid;place-items:center;font-size:44px}
.pcard.out{opacity:1}.pcard.out img,.pcard.out .noimg,.pcard.out h3,.pcard.out .price{opacity:.6}
.pbody{padding:12px;display:flex;flex-direction:column;gap:4px;flex:1}
.pbody h3{margin:0;font-size:15px;line-height:1.3}
.ref{margin:0;font-size:12px;color:var(--grey)}
.pdesc{margin:0;font-size:13px;color:#374151}
.price{margin:auto 0 6px;font-weight:800;color:var(--navy)}
.price s{color:#9ca3af;font-weight:400}.price span{font-weight:400;color:var(--grey);font-size:13px}
.oos{color:#b91c1c;font-weight:700;margin:0}
.btn.add,.btn.small{padding:10px 12px;font-size:14px;text-align:center;border:0;cursor:pointer}
.qty{display:flex;align-items:center;justify-content:space-between;border:1px solid #cfe3c6;border-radius:12px}
.qty button{border:0;background:none;font-size:22px;width:44px;height:40px;color:var(--navy);cursor:pointer}
.cartbtn{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:20;background:var(--navy);color:#fff;border:0;border-radius:999px;padding:15px 24px;font:700 16px system-ui,sans-serif;box-shadow:0 10px 30px rgba(15,27,61,.35);cursor:pointer}
.sheet{position:fixed;inset:0;background:rgba(15,27,61,.55);z-index:30;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheetin{background:#fff;width:100%;max-width:560px;max-height:92vh;overflow:auto;border-radius:20px 20px 0 0;padding:18px 20px 28px}
.shead{display:flex;justify-content:space-between;align-items:center}.shead h3{margin:0}
.x{border:0;background:#f3f4f6;border-radius:50%;width:36px;height:36px;font-size:16px;cursor:pointer}
.form{display:flex;flex-direction:column;gap:12px}
.form label{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:600;color:#374151}
.form input,.form select,.form textarea{padding:12px;border:1px solid #d1d5db;border-radius:10px;font:16px system-ui,sans-serif;background:#fff}
.form label.rad{flex-direction:row;align-items:center;gap:8px;font-weight:500}
.form fieldset{border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px}
.btn.wide{display:block;width:100%;text-align:center;border:0;cursor:pointer;margin-top:6px;font-size:16px}
.btn.danger{color:#b91c1c;border-color:#fecaca}
.tot{font-size:18px;font-weight:800;color:var(--navy);margin:0}
.tbl td.r{text-align:right;white-space:nowrap}
.card.mini{margin-top:12px}.small{font-size:13px}.muted{color:var(--grey)}.center{text-align:center}
.row{display:flex;gap:10px;align-items:center}.row>*{flex:1}.row .btn{flex:0 0 auto}
.card.order{margin-bottom:12px;border-left:5px solid #cfe3c6}
.st-nouvelle{border-left-color:var(--amber)!important}.st-confirmee{border-left-color:#3b82f6!important}.st-livree{border-left-color:#8b5cf6!important}.st-payee{border-left-color:#10b981!important}.st-annulee{border-left-color:#ef4444!important;opacity:.7}
.ohead{display:flex;justify-content:space-between;align-items:center}
.pill{background:#eef4ea;color:var(--navy);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700}
.pill.red{background:#fee2e2;color:#b91c1c}.pill.green{background:#dcfce7;color:#166534}.pill.grey{background:#f3f4f6;color:#4b5563}
.plist{display:grid;gap:10px}
.prow{display:flex;gap:12px;align-items:center;cursor:pointer;padding:12px}
.prow img,.prow .noimg{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#eef4ea;display:grid;place-items:center;font-size:30px;flex:0 0 auto}
img.prev{max-width:160px;border-radius:12px;margin-top:6px}
button.link{border:0;background:none;color:#b91c1c;font-weight:700;cursor:pointer}
body.admin main{padding-top:20px}
#shop{padding-bottom:80px}
/* v5 boutique pro */
.trust{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:4px 0 18px}
@media(min-width:720px){.trust{grid-template-columns:repeat(4,1fr)}}
.trust div{background:#fff;border-radius:12px;padding:10px 12px;display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.trust span{grid-row:span 2;font-size:22px}.trust b{font-size:13px}.trust small{font-size:12px;color:var(--grey)}
.vehbox{background:#fff;border:1px solid #cfe3c6;border-radius:14px;padding:12px 14px;margin:0 0 12px;display:flex;flex-direction:column;gap:8px}
.vehbox select{padding:10px;border:1px solid #d1d5db;border-radius:10px;font-size:15px;background:#fff;width:100%}
.sbar{display:flex;gap:0;margin:4px 0 6px}.sbar .search{margin:0;border-radius:12px 0 0 12px;border-right:0}
.sbar button{border:1px solid #d1d5db;border-left:0;background:var(--navy);color:#fff;border-radius:0 12px 12px 0;padding:0 16px;font-size:18px;cursor:pointer}
#qinfo{margin:0 0 10px}
.pcard{position:relative;cursor:pointer}
.promo{position:absolute;top:10px;left:10px;background:#dc2626;color:#fff;font-weight:800;font-size:12px;border-radius:8px;padding:3px 8px}
.tag{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;background:#eef4ea;color:var(--navy);align-self:flex-start}
.tag.ok{background:#dcfce7;color:#166534}.tag.no{background:#f3f4f6;color:#6b7280}
.gmain{width:100%;max-height:340px;object-fit:contain;background:#f9fafb;border-radius:14px;margin:10px 0 6px}
.thumbs{display:flex;gap:8px;margin-bottom:10px}.thumbs img{width:64px;height:64px;object-fit:cover;border-radius:10px;border:2px solid transparent;cursor:pointer}.thumbs img.on{border-color:var(--amber)}
.price.big{font-size:22px;margin:10px 0}
.tbl.spec td:first-child{width:40%}
.btn.ghost.dark{color:var(--navy);border:1px solid #cfe3c6;background:#fff}
.cline{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e5e7eb}
.cline.tot0{grid-template-columns:1fr auto}
.cline .r{text-align:right}.qty.sm button{width:34px;height:34px;font-size:18px}.qty.sm b{min-width:18px;text-align:center}
.form h4{margin:14px 0 0;color:var(--navy)}
.req{color:#dc2626}.opt{color:var(--grey);font-weight:400}
.hint{font-weight:400;color:var(--grey);font-size:12px}
.err{color:#b91c1c;font-weight:700;margin:0;min-height:1em}
.bad{border-color:#dc2626!important;outline:2px solid #fecaca}
.cd{color:#166534;font-weight:700;margin:-4px 0 0}
.spin{display:inline-block;width:14px;height:14px;border:2px solid rgba(23,61,18,.3);border-top-color:var(--navy);border-radius:50%;animation:sp 1s linear infinite;vertical-align:-2px}
@keyframes sp{to{transform:rotate(360deg)}}
.ono{font-size:20px;font-weight:800;letter-spacing:.5px;color:var(--navy);margin:4px 0}
.tline{list-style:none;padding:0;margin:14px 0;display:flex;justify-content:space-between;position:relative}
.tline:before{content:"";position:absolute;top:11px;left:8%;right:8%;height:3px;background:#e5e7eb}
.tline li{position:relative;text-align:center;flex:1;font-size:13px;color:var(--grey);padding-top:30px}
.tline li:before{content:"";position:absolute;top:2px;left:50%;transform:translateX(-50%);width:20px;height:20px;border-radius:50%;background:#e5e7eb;border:3px solid #fff}
.tline li.done{color:var(--navy);font-weight:700}.tline li.done:before{background:#10b981}
.wafloat{position:fixed;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:15}
.mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 10px}
.phs{display:flex;gap:8px;flex-wrap:wrap}.ph{position:relative}.ph img.prev{width:90px;height:90px;object-fit:cover;margin:0}
.ph button{position:absolute;top:-6px;right:-6px;border:0;background:#dc2626;color:#fff;border-radius:50%;width:24px;height:24px;cursor:pointer}
.pcard img{content-visibility:auto}
.form label{display:block}
.form label input:not([type=checkbox]):not([type=radio]),.form label select,.form label textarea{display:block;width:100%;margin-top:5px;box-sizing:border-box}
.form label.rad{display:flex}
.row>*{min-width:0}.vehbox select{min-width:0}
[hidden]{display:none!important}
/* ===== Charte SU (vert, noir, blanc) et Saloum Automobile (rouge, noir, blanc) ===== */
.eyebrow{color:var(--navy2)}
.hero .eyebrow,.eyebrow.light{color:#cfe3c6}
main .btn:not(.ghost){background:var(--navy2);color:#fff}
.btn.auto,main .btn.auto{background:#d9382f;color:#fff}
.logo.img{width:auto;height:44px;border-radius:10px;background:#fff;padding:4px 8px;display:flex;align-items:center}
.logo.img img{height:100%;width:auto;display:block}
.logo.img.auto{height:50px}
.brand .sub{font-size:12px;font-weight:500;opacity:.85;max-width:180px;line-height:1.3}
.links a.shoplink{margin-left:10px}
.links a.shoplink.auto{background:#d9382f;color:#fff}
.st-nouvelle{border-left-color:#e8742c!important}
.ticks li:before{color:var(--c,var(--navy2))}
.shops{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:16px 0 8px}
.shopcard{display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:16px;text-decoration:none;color:#fff;min-height:210px;box-shadow:0 6px 20px rgba(0,0,0,.08);transition:transform .15s}
.shopcard:hover{transform:translateY(-2px)}
.shopcard.auto{background:linear-gradient(135deg,#1c1c1e,#2b2b2e);border-bottom:5px solid #d9382f}
.shopcard.agro{background:linear-gradient(135deg,#173d12,#24561c)}
.shopcard .sclogo{background:#fff;border-radius:12px;padding:8px 12px;align-self:flex-start;height:64px;display:flex;align-items:center}
.shopcard .sclogo img{height:100%;width:auto}
.shopcard b{font-size:20px}
.shopcard span{opacity:.9}
.shopcard .go{margin-top:auto;font-weight:700;opacity:1}
.shopcard.auto .go{color:#ff8a80}
/* Pages Saloum Automobile */
body.brand-auto{--navy:#1c1c1e;--navy2:#d9382f;--bg:#f6f5f4}
body.brand-auto header{background:linear-gradient(135deg,#141416,#2b2b2e);border-bottom:4px solid #d9382f}
body.brand-auto .hero .eyebrow{color:#ffb4ad}
body.brand-auto .tabs button,body.brand-auto .qty,body.brand-auto .vehbox,body.brand-auto .btn.ghost.dark{border-color:#e6dcdb}
body.brand-auto .tabs button.on,body.brand-auto .chips button.on{background:#1c1c1e;border-color:#1c1c1e}
body.brand-auto .links a.shoplink.auto{background:#fff;color:#d9382f}
body.brand-auto footer{background:#141416}
body.brand-auto .cartbtn{background:#d9382f}
.b360{position:absolute;top:10px;right:10px;background:#c8101e;color:#fff;font-weight:700;font-size:12px;border-radius:999px;padding:3px 9px}
.spinbox{margin:6px 0 12px}
.oos{font-size:13px}
.btn.notify{background:#25d366;color:#fff;border-color:#25d366;margin-top:6px}
.sheetin{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.sheet{overscroll-behavior:contain;touch-action:pan-y}
.paybox{border:1px solid #e3e7df;border-radius:12px;padding:12px;margin:8px 0;background:#fafbf9}
.payamt{font-size:26px;font-weight:800;margin:2px 0 6px}
.wavebtn{background:#1dc8ff;border-color:#1dc8ff;color:#06263a;font-weight:800;margin:6px 0 2px}
.paypicks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.paypick{display:flex;align-items:center;gap:8px;border:1.5px solid #dfe4da;border-radius:12px;padding:10px;cursor:pointer;font-weight:600;background:#fff}
.paypick input{accent-color:#173d12;margin:0}
.paypick:has(input:checked){border-color:#173d12;box-shadow:0 0 0 2px rgba(23,61,18,.12)}
.pp-logo{display:inline-grid;place-items:center;min-width:42px;height:26px;border-radius:7px;font-size:11px;font-weight:800;color:#fff;padding:0 6px}
.paypick.wave .pp-logo{background:#1dc8f2}.paypick.om .pp-logo{background:#ff7900}
.paygo{margin:6px 0;color:#fff!important;border:0}
.paygo.wave{background:#1dc8f2!important;border-color:#1dc8f2!important}.paygo.om{background:#ff7900!important;border-color:#ff7900!important}
.btn.paid{background:#173d12!important;color:#fff!important;border-color:#173d12!important}
.payrow{display:flex;align-items:center;gap:8px;border:1px solid #e3e7df;border-radius:10px;padding:6px 10px;margin:6px 0;background:#fff}.payrow .btn{margin:0}.paybox .payamt{font-size:26px!important;font-weight:800}
.payrow .small{min-width:110px}.payrow b{flex:1;font-size:16px}
