:root{--navy:#000;--blue:#111;--blue-d:#333;--link:#0b57d0;--bg:#f3f5f8;--card:#fff;--line:#dfe4ea;--text:#1b2430;--muted:#637083;--ok:#12805c;--warn:#b26a00;--bad:#c0362c;--radius:12px}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;font-size:16px}
a{color:var(--link)}
h1{font-size:1.6rem;margin:0 0 .5rem}h2{font-size:1.2rem;margin:0 0 .75rem}h3{font-size:1rem;margin:0 0 .5rem}
.top{background:var(--navy);color:#fff}
.top .in{max-width:1100px;margin:0 auto;padding:14px 16px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.top a{color:#fff;text-decoration:none}
.brand{font-weight:700;font-size:1.15rem;margin-right:auto;display:flex;align-items:center}.brand img{display:block;height:46px;width:auto}
.nav{display:flex;gap:4px;flex-wrap:wrap}
.nav a{padding:6px 10px;border-radius:8px;font-size:.92rem;opacity:.85}
.nav a.on,.nav a:hover{background:rgba(255,255,255,.14);opacity:1}
.wrap{max-width:1100px;margin:0 auto;padding:20px 16px 60px}
.narrow{max-width:760px}
.hero{background:#111;color:#fff;padding:36px 16px}
.hero .in{max-width:1100px;margin:0 auto}
.hero h1{font-size:2rem}.hero p{margin:0;opacity:.9}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:16px}
.grid{display:grid;gap:16px}
@media(min-width:860px){.g2{grid-template-columns:1fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}.g-main{grid-template-columns:1.5fr 1fr}.g4{grid-template-columns:repeat(4,1fr)}}
label{display:block;font-weight:600;font-size:.9rem;margin:10px 0 4px}
input,select,textarea{width:100%;padding:9px 10px;border:1px solid #c5ccd6;border-radius:8px;font:inherit;background:#fff;color:inherit}
input[type=checkbox],input[type=radio]{width:auto;margin-right:6px}
textarea{min-height:70px}
label.inline{font-weight:400;display:flex;align-items:center;margin:8px 0}
.row{display:flex;gap:10px;flex-wrap:wrap}.row>*{flex:1;min-width:130px}
.btn{display:inline-block;background:var(--blue);color:#fff;border:0;border-radius:8px;padding:10px 16px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--blue-d)}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.sec{background:#e8edf3;color:var(--text)}.btn.sec:hover{background:#dbe2ea}
.btn.bad{background:var(--bad)}.btn.ok{background:var(--ok)}.btn.sm{padding:5px 10px;font-size:.85rem}
.btn.big{width:100%;padding:13px;font-size:1.05rem;margin-top:12px}
table{width:100%;border-collapse:collapse;font-size:.93rem}
th,td{text-align:left;padding:8px 8px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.8rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
td.r,th.r{text-align:right;white-space:nowrap}
.tscroll{overflow-x:auto}
.muted{color:var(--muted)}.small{font-size:.86rem}
.flash{padding:10px 14px;border-radius:8px;margin-bottom:14px;font-weight:600}
.flash.ok{background:#e2f5ec;color:#0b5c40}.flash.error{background:#fde8e6;color:#8f231b}
.badge{display:inline-block;padding:2px 9px;border-radius:99px;font-size:.78rem;font-weight:700;white-space:nowrap}
.b-quote{background:#eee7fb;color:#5b3aa8}.b-pending{background:#fff1d6;color:#8a5a00}.b-confirmed{background:#dceaff;color:#0f4fb0}
.b-out{background:#ffe3c9;color:#9a4a00}.b-returned{background:#e3f0d2;color:#3f6b12}.b-closed{background:#e6e9ee;color:#4a5665}.b-cancelled{background:#fde0de;color:#8f231b}
.sum{width:100%}.sum td{padding:6px 0;border-bottom:1px solid var(--line)}.sum td:last-child{text-align:right;white-space:nowrap}
.sum tr.total td{font-weight:700;font-size:1.1rem;border-bottom:0;padding-top:10px}
.stat{font-size:1.5rem;font-weight:700}
/* Calendrier client */
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:8px}
.cal .dow{font-size:.72rem;text-align:center;color:var(--muted);font-weight:700}
.cal .d{aspect-ratio:1;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:.85rem;background:#e2f5ec;color:#0b5c40;line-height:1.1}
.cal .d small{font-size:.62rem;opacity:.8}
.cal .d.low{background:#fff1d6;color:#8a5a00}.cal .d.full{background:#fde0de;color:#8f231b}.cal .d.past{background:#eef1f4;color:#a3adb9}.cal .d.blank{background:none}
.calhead{display:flex;justify-content:space-between;align-items:center}
.legend{display:flex;gap:12px;font-size:.8rem;margin-top:10px;flex-wrap:wrap}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:4px;vertical-align:-1px}
/* Calendrier admin */
.tl{border-collapse:separate;border-spacing:1px;font-size:.72rem}
.tl th,.tl td{padding:0;border:0;text-align:center;min-width:26px;height:30px}
.tl th.u,.tl td.u{text-align:left;padding:0 8px;min-width:100px;font-size:.85rem;text-transform:none;color:var(--text);position:sticky;left:0;background:#fff}
.tl td{background:#eef1f4;border-radius:3px}
.tl td a{display:block;height:30px;line-height:30px;color:#fff;text-decoration:none;overflow:hidden}
.tl td.c-confirmed{background:#1565d8}.tl td.c-out{background:#e07a10}.tl td.c-returned{background:#6c9a2e}.tl td.c-closed{background:#9aa5b1}
.tl td.transit{opacity:.45}.tl th.today{color:var(--blue);font-weight:800}.tl th.we{color:#b0b8c3}
.acc{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.acc span{flex:1}.acc input{width:70px}
.footer{text-align:center;color:var(--muted);font-size:.85rem;padding:20px}
details summary{cursor:pointer;font-weight:600;margin:6px 0}
form.inl{display:inline}
@media print{.top,.noprint,.footer{display:none!important}body{background:#fff}.card{border:0;padding:0}.wrap{padding:0}}

/* Site web */
.testbar{background:#f59e0b;color:#111;text-align:center;font-weight:700;padding:6px 10px;font-size:.9rem}
.hero.photo{background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.55)),url(/img/hero.webp) center/cover;padding:90px 16px}
.hero.photo h1{font-size:2.4rem;max-width:760px;line-height:1.15}.hero.photo p{max-width:620px;font-size:1.1rem}
.cta{margin-top:22px!important;display:flex;gap:10px;flex-wrap:wrap}
.btn.light{background:#fff;color:#111}.btn.light:hover{background:#e8e8e8}
.btn.ghost{background:transparent;color:#fff;border:2px solid #fff;padding:8px 14px}.btn.ghost:hover{background:rgba(255,255,255,.15)}
.band{padding:48px 16px}.band.alt{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band .in{max-width:1100px;margin:0 auto}.center{text-align:center}
.band h2{font-size:1.6rem}.lead{font-size:1.08rem;color:#3a4553}
.band .lead{max-width:760px;margin:0 auto 24px}
.feats{margin-top:20px;text-align:center}
.num{display:inline-flex;width:44px;height:44px;border-radius:50%;background:#111;color:#fff;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem;margin-bottom:10px}
.price .amt{font-size:2.2rem;font-weight:800}
.product{align-items:center}.product img{width:100%;max-width:380px;margin:0 auto;display:block;border-radius:12px;background:#fff}
.acccard{text-align:center}.acccard img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.acc img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:none}
.doc h2{margin-top:22px}.doc li,.big li{margin-bottom:8px}
.faq summary{font-size:1.05rem}.faq p{margin:8px 0 0}
.linkcard{display:block;text-decoration:none;color:inherit}.linkcard:hover{border-color:#111}
.sitefoot{background:#000;color:#cfd4da;padding:36px 16px 0;margin-top:30px;font-size:.92rem}
.sitefoot .in{max-width:1100px;margin:0 auto}.sitefoot h3{color:#fff;margin-top:8px}
.sitefoot a{display:block;color:#cfd4da;text-decoration:none;padding:2px 0}.sitefoot a:hover{color:#fff;text-decoration:underline}
.sitefoot .copy{text-align:center;border-top:1px solid #333;margin-top:24px;padding:14px;color:#8a929b}
.barcode{margin:10px 0}.barcode{max-width:240px}.barcode svg{width:100%;height:auto;display:block;background:#fff}
.invlogo{height:64px;display:block;margin-bottom:8px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.search{display:flex;gap:6px}.search input{width:290px;max-width:60vw;padding:6px 10px;border:0}
@media(max-width:700px){.hero.photo{padding:56px 16px}.hero.photo h1{font-size:1.8rem}.top .in{justify-content:center}.brand{margin-right:0}}

/* Signature et verso des factures */
.signbox{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:16px;background:#fafbfc}
.signature{font-family:"Brush Script MT","Segoe Script","Snell Roundhand",cursive;font-size:1.6rem}
p.signature{margin:4px 0 0;border-bottom:1px solid #111;display:inline-block;padding:0 30px 2px 4px}
.signed{color:var(--ok);font-weight:600}
.onlyprint{display:none}
.verso{font-size:.84rem;line-height:1.4}
.versohead{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #111;margin-bottom:10px}
.versohead h2{margin:0 0 6px}
.returnbox{border:2px solid #111;border-radius:8px;padding:10px 14px;margin-bottom:12px}
.returnbox p{margin:4px 0}.returnbox .code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.15rem;font-weight:700;letter-spacing:.06em}
.terms{columns:2;column-gap:22px}.terms p{margin:0 0 6px;break-inside:avoid}.terms h3{margin:0 0 6px}
.signarea{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.signline{display:flex;gap:30px;margin-top:34px}.signline div{flex:2;font-size:.78rem}.signline div:last-child{flex:1}
.signline span{display:block;border-top:1px solid #111;margin-bottom:3px}
@media(max-width:700px){.terms{columns:1}}
@media print{@page{margin:12mm}.onlyprint{display:block}.verso{break-before:page;page-break-before:always;font-size:8.6pt;line-height:1.3}.terms{columns:2}.returnbox,.signarea{break-inside:avoid}}

.codeinput{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.8rem;letter-spacing:.35em;text-align:center}

/* Suggestions d'adresses */
.addr .row{margin-top:0}
.aclist{position:absolute;z-index:20;left:0;right:0;top:100%;margin:2px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid #c5ccd6;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);max-height:300px;overflow:auto}
.aclist li{padding:8px 10px;border-radius:6px;cursor:pointer;font-size:.93rem}
.aclist li span{color:var(--muted)}
.aclist li.on,.aclist li:hover{background:#eef2f7}
.acstatus{margin:8px 0 0}

.sitefoot .disclaimer{display:block;max-width:760px;margin:6px auto 0;font-size:.78rem;color:#6f7780}

.brand{flex-direction:column;align-items:flex-start;gap:2px}.brand .tagline{font-size:.78rem;font-weight:500;color:#d5d9de;letter-spacing:.02em}
.invtagline{font-size:.85rem;font-weight:600;margin:0 0 6px}
