@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{--ink:#203a31;--green:#173b32;--green2:#2f5b4a;--gold:#ba8f54;--paper:#faf8f2;--muted:#748179;--border:#e7e7df;--red:#963b42;--shadow:0 14px 50px rgba(30,50,39,.065)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 'DM Sans',Arial,sans-serif}body.theme-noel{--accent:#aa5b53;--accent-soft:#f4e5e0;--hero:#173b32;--hero2:#345346;--paper:#faf8f3}body.theme-hiver{--accent:#7491a5;--accent-soft:#e7eff5;--hero:#233d50;--hero2:#4a6980;--paper:#f6f9f9}body.theme-printemps{--accent:#ad789b;--accent-soft:#f7eaf1;--hero:#547c62;--hero2:#86a18c;--paper:#faf9f3}body.theme-ete{--accent:#c38e55;--accent-soft:#f9efdc;--hero:#8e6649;--hero2:#bc9262;--paper:#fcf9f2}body.theme-automne{--accent:#b16c4e;--accent-soft:#f7e9df;--hero:#694839;--hero2:#916b4c;--paper:#fbf8f4}.page-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 96% 5%,var(--accent-soft) 0%,transparent 26%),radial-gradient(ellipse at 0% 95%,#e5eee7 0%,transparent 29%)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1,h2{font-family:'Playfair Display',Georgia,serif;letter-spacing:-.035em;line-height:1.15}h1{font-size:clamp(36px,5vw,55px);margin-bottom:14px}h2{font-size:clamp(25px,3vw,33px);margin-bottom:15px}h3{font-size:18px;margin-bottom:8px}p{color:#6e7a72}.shell{max-width:1220px;padding:0 28px;margin:0 auto;min-height:100vh}.site-header{display:flex;justify-content:space-between;align-items:center;padding:26px 0 22px;gap:16px}.brand{display:flex;align-items:center;gap:10px;color:var(--green)}.brand-mark{height:50px;width:50px;border:1px solid #afaa90;border-radius:50%;display:grid;place-items:center;color:var(--gold);font-size:28px;background:#fffdf8}.brand small{display:block;font-size:8px;letter-spacing:.24em;font-weight:700}.brand strong{font-family:Georgia,serif;font-size:25px;letter-spacing:.04em;line-height:1.2}.brand i{font-weight:400;color:var(--gold)}.header-right{display:flex;align-items:center;gap:18px}.season-pill,.user-chip{font-size:12px;background:#fffdf9;border:1px solid var(--border);border-radius:30px;padding:8px 12px}.season-pill{color:var(--accent)}.small-link{font-size:13px;text-decoration:underline;text-underline-offset:4px;font-weight:600}.nav{display:flex;gap:5px;padding:7px;margin:0 0 28px;border:1px solid var(--border);border-radius:14px;width:max-content;max-width:100%;flex-wrap:wrap;background:#fff9}.nav a{padding:10px 15px;font-size:13px;font-weight:600;border-radius:9px;color:#62736a}.nav a:hover,.nav a.active{background:var(--green);color:#fff}.hero{display:grid;grid-template-columns:1.2fr .8fr;min-height:380px;background:linear-gradient(115deg,var(--hero) 30%,var(--hero2));border-radius:24px;overflow:hidden;color:#fff;position:relative;isolation:isolate;margin:20px 0 60px}.hero:before{content:'';position:absolute;width:550px;height:550px;border:1px solid #ffffff17;border-radius:50%;right:-110px;top:-160px;box-shadow:0 0 0 65px #ffffff07,0 0 0 145px #ffffff06;z-index:-1}.hero-copy{padding:65px 64px;align-self:center}.hero .eyebrow{color:#e9d8b8}.hero h1{font-size:clamp(42px,5vw,64px);line-height:1.14;margin:16px 0 16px}.hero h1 em{font-weight:500;color:#eccfa5}.hero p{max-width:500px;color:#ebf0e6;line-height:1.8}.hero-art{display:grid;place-items:center;position:relative;min-height:300px}.hero-ring{font-family:Georgia,serif;font-size:240px;color:#eccfa5;filter:drop-shadow(0 12px 40px #122b2470);transform:rotate(-12deg);line-height:1}.hero-note{position:absolute;bottom:45px;right:42px;transform:rotate(8deg);background:#fcf0d6;color:#294a3b;border-radius:2px;padding:19px 23px;letter-spacing:.1em;font-size:11px;text-align:center;box-shadow:0 14px 25px #0002}.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:700;color:var(--accent);display:block;margin-bottom:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:10px;padding:13px 20px;font-weight:700;font-size:13px;border:1px solid transparent;transition:transform .15s,background .15s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--green);color:white}.btn.primary:hover{background:#285447}.btn.light{background:#f9e8ce;color:#244b3b;margin-top:14px}.btn.outline{border-color:#d6dcd4;background:#fff;color:var(--green)}.btn.full{display:flex;width:100%}.btn.small{padding:9px 13px;font-size:12px}.btn:disabled{opacity:.4;cursor:not-allowed}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:28px 0}.section-heading h2{margin:0}.section-heading>p{margin-bottom:3px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}.filter{border:1px solid #e4e7df;background:#fff;padding:9px 17px;border-radius:100px;color:#61756b;font-weight:600;font-size:12px}.filter.active{background:var(--green);color:white;border-color:var(--green)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.product-card{padding:10px 10px 16px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.product-cover{height:250px;border-radius:11px;position:relative;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#efede2,#c8c7b5)}.product-cover img{width:100%;height:100%;object-fit:cover}.placeholder-ornament{font-size:120px;color:#718b77;text-shadow:0 16px 22px #1b392522}.product-tag{position:absolute;bottom:12px;left:12px;color:var(--green);background:#fffdf4;padding:7px 11px;border-radius:8px;font-size:10px;font-weight:700}.product-meta{padding:18px 5px 12px;display:flex;justify-content:space-between;gap:10px}.product-meta p{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-meta strong{white-space:nowrap;color:var(--green)}.footer{margin-top:75px;padding:25px 0 36px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;color:#819088;font-size:11px}.topline{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:36px 0}.topline h1{margin-bottom:10px}.topline p{margin:0}.sparkle{color:var(--gold)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:30px 0 45px}.stat{background:#fff;border:1px solid var(--border);border-radius:16px;padding:23px;box-shadow:var(--shadow)}.stat span,.stat small{display:block;color:var(--muted);font-size:12px}.stat strong{display:block;font-family:'Playfair Display',serif;font-size:35px;margin:10px 0;line-height:1;color:var(--green)}.orders-list{display:grid;gap:15px}.order-row{background:#fff;padding:23px 26px;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.order-top,.order-main,.order-actions{display:flex;justify-content:space-between;align-items:center;gap:14px}.order-top{border-bottom:1px solid #ebede6;padding-bottom:15px}.order-top>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.order-no{font-size:12px;color:var(--accent);font-weight:700}.order-top small,.order-main small{color:var(--muted);font-size:11px}.order-badges{display:flex;gap:8px;flex-wrap:wrap}.badge{display:inline-block;background:#eff2ed;color:#4c695a;font-size:11px;font-weight:700;padding:6px 11px;border-radius:30px}.badge.good{background:#e2f3e7;color:#3b7652}.badge.warn{background:#fff0de;color:#9d6838}.order-main{padding:22px 0;align-items:start}.order-main h3{margin-bottom:5px}.order-main p{color:var(--ink);font-size:18px;font-family:Georgia,serif;margin-bottom:8px}.order-main .eyebrow{margin-bottom:7px}.price{white-space:nowrap}.order-actions{border-top:1px solid #ebede6;padding-top:17px;justify-content:flex-start;flex-wrap:wrap}.order-actions select{max-width:165px}.order-actions .notes{min-width:100px;flex:1}.order-actions .notes textarea{margin-top:7px}.toolbar{display:flex;gap:10px;margin:25px 0}.toolbar input{flex:1}.toolbar select{min-width:190px}.panel{padding:29px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow)}.panel>p{line-height:1.7}.admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;margin:25px 0}.panel h2{font-size:28px}.form-grid{display:grid;gap:15px;margin:18px 0}.form-grid label:not(.check){font-size:12px;font-weight:700;color:#485e52;display:grid;gap:7px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:13px}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;padding:12px 13px;color:var(--ink);background:#fff;border:1px solid #dce2d9;border-radius:9px;outline:0}input:focus,textarea:focus,select:focus{border-color:#65927c;box-shadow:0 0 0 3px #65927c17}input[type=file]{font-size:11px}.check{display:flex;align-items:center;gap:7px;font-weight:600;color:#506358;font-size:12px;cursor:pointer}.check input{accent-color:var(--green);width:16px;height:16px}.privacy{align-items:start;line-height:1.6}.hint{font-size:11px;color:#8a938b;margin:0}.center{text-align:center}.muted{color:var(--muted)}.form-divider{padding-bottom:8px;border-bottom:1px solid var(--border);font-family:Georgia,serif;font-size:19px}.total{display:grid;align-content:center;padding:8px 20px;background:#f5f5ef;border-radius:9px}.total small{font-size:11px;color:var(--muted)}.total strong{font-family:Georgia,serif;font-size:22px;color:var(--green)}.center-wrap{display:grid;place-items:center;min-height:68vh}.auth-panel{width:min(100%,490px);padding:43px}.auth-panel h1{font-size:40px}.auth-panel>.small-link{margin-top:10px;display:block}.thank-you{text-align:center;width:min(100%,620px);padding:70px 35px}.success-icon{background:#e7f1e8;border-radius:100%;width:65px;height:65px;margin:0 auto 30px;display:grid;place-items:center;color:#2f7551;font-size:30px}.thank-you .btn{margin-top:18px}.overlay{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px}.overlay-backdrop{position:absolute;inset:0;background:#172b25bd;backdrop-filter:blur(5px)}.order-modal{position:relative;z-index:2;width:min(100%,650px);max-height:94vh;overflow:auto;background:#fffdf9;border-radius:18px;padding:31px 36px;box-shadow:0 30px 100px #101c18aa}.order-modal h2{margin-bottom:6px}.order-modal .form-grid{gap:12px}.modal-close{position:absolute;right:21px;top:13px;font-size:31px;font-weight:300}.honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.list-categories{margin-top:25px;display:grid;gap:8px}details{border:1px solid #e6e9e2;border-radius:9px}details>summary{padding:12px;cursor:pointer;display:flex;justify-content:space-between;gap:8px;align-items:center;list-style:none}details>summary::-webkit-details-marker{display:none}details>summary>span:last-child{font-size:11px;color:#7f8d83}details small,.team-item small{display:block;color:#8c948d;font-size:11px}.mini-form{padding:12px;border-top:1px solid #e9e9e5}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.edit-product{padding:9px 13px}.edit-product summary{justify-content:flex-start}.edit-product summary>span:last-child{margin-left:auto}.edit-product summary>span:nth-child(2){display:grid}.tiny-cover{width:46px;height:46px;flex-shrink:0;border-radius:8px;display:grid;place-items:center;background:#e7e9df;font-size:28px;overflow:hidden}.tiny-cover img{width:100%;height:100%;object-fit:cover}.team-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding:14px 0}.team-item span{display:grid}.qrcode-box{background:#fff;width:230px;min-height:230px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;margin:20px auto;padding:14px;text-align:center}.qrcode-box img,.qrcode-box canvas{max-width:100%}.empty{padding:45px;text-align:center;background:#fff;border:1px dashed #d5ded1;border-radius:15px;color:var(--muted);margin:20px 0}@media(max-width:900px){.hero-copy{padding:45px 35px}.hero-ring{font-size:170px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-columns{grid-template-columns:1fr}}@media(max-width:640px){.shell{padding:0 15px}.site-header{padding:16px 0;align-items:start}.brand-mark{width:40px;height:40px;font-size:22px}.brand strong{font-size:19px}.brand small{font-size:6px}.header-right{gap:6px;flex-direction:column;align-items:flex-end}.header-right .season-pill{display:none}.small-link{font-size:11px}.nav{width:100%;overflow:auto;flex-wrap:nowrap;white-space:nowrap;margin-bottom:16px}.nav a{padding:9px;font-size:11px}.hero{grid-template-columns:1fr;margin:8px 0 38px}.hero-copy{padding:38px 25px;z-index:2}.hero h1{font-size:40px}.hero-art{min-height:120px}.hero-ring{font-size:130px;position:absolute;bottom:-6px;right:28px;opacity:.62}.hero-note{right:20px;bottom:15px;padding:10px;font-size:8px}.section-heading{align-items:start;flex-direction:column;gap:5px}.section-heading>p{font-size:12px}.product-grid,.edit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{padding:5px}.product-cover{height:150px}.placeholder-ornament{font-size:78px}.product-tag{font-size:8px;padding:4px;bottom:5px;left:5px}.product-meta{flex-direction:column;gap:2px;padding:10px 5px}.product-meta h3{font-size:14px}.product-meta p{font-size:10px;margin-bottom:5px}.product-card .btn{padding:10px 3px;font-size:10px}.footer{flex-direction:column;margin-top:40px}.topline{margin:22px 0;align-items:start;flex-direction:column}.topline h1{font-size:38px}.stats{gap:8px}.stat{padding:15px}.stat strong{font-size:27px}.stat span,.stat small{font-size:10px}.order-row{padding:15px}.order-top,.order-main{align-items:start}.order-top{flex-direction:column}.order-main h3{font-size:15px}.order-main p{font-size:16px}.order-actions select{max-width:100%}.toolbar{flex-wrap:wrap}.toolbar input{width:100%;flex:auto}.toolbar select{flex:1;min-width:0}.panel{padding:18px}.auth-panel{padding:25px}.two-cols{grid-template-columns:1fr 1fr;gap:9px}.order-modal{padding:24px 18px;max-height:96vh}.order-modal h2{font-size:27px}.edit-product{padding:6px}.edit-product summary{display:grid;grid-template-columns:35px 1fr}.edit-product summary>span:last-child{grid-column:1/-1}.tiny-cover{width:35px;height:35px}.edit-product summary strong{font-size:12px}.filter-row{gap:5px}.filter{font-size:10px;padding:7px 10px}}@media print{.site-header,.nav,.footer,.topline,.admin-columns>.panel:not(:has(#qrcode)),.admin-columns>.panel button{display:none!important}.admin-columns{display:block}.admin-columns>.panel:has(#qrcode){border:0;box-shadow:none}.page-bg{display:none}body{background:#fff}}

/* Parcours tablette / caisse — V1.1 */
.payment-confirm{padding:15px 17px;margin-bottom:13px;border:1px solid #d9e6d9;background:#f0f7ef;border-radius:12px;display:grid;gap:12px}
.payment-confirm .btn{width:100%;white-space:normal;font-size:14px;min-height:48px}
.payment-confirm .hint{font-size:13px;color:#426450;line-height:1.5}
.review-shade{position:fixed;inset:0;z-index:55;display:flex;align-items:center;justify-content:center;background:#142821cf;padding:14px;backdrop-filter:blur(6px)}
.review-card{background:#fffdf7;border:1px solid #e8dbc8;border-radius:22px;width:min(100%,560px);padding:30px;max-height:94dvh;overflow-y:auto;box-shadow:0 30px 80px #15291f66}
.review-card h2{font-size:30px;color:#173b32}
.review-card>p{font-size:14px}
.review-line{display:flex;gap:14px;justify-content:space-between;align-items:baseline;padding:11px 0;border-bottom:1px solid #e9e7dd}
.review-line span{font-size:12px;color:#617469;flex:0 0 37%}
.review-line strong{font-size:15px;text-align:right;overflow-wrap:anywhere}
.review-line:nth-last-child(2) strong{font-size:20px;color:#23503d}
.review-actions{display:flex;gap:10px;margin-top:22px}
.review-actions .btn{flex:1;white-space:normal}
@media(max-width:640px){.review-card{padding:20px}.review-actions{flex-direction:column}.review-line strong{font-size:13px}}

/* V1.2 — actions de catalogue et corbeille */
.catalog-detail>summary{gap:12px;min-height:62px}
.catalog-detail[open]{border-color:#b7cabe;box-shadow:0 0 0 2px #dce9df}
.edit-label{display:inline-flex!important;align-items:center;justify-content:center;border-radius:8px;background:#e9f3ec;color:#194935!important;font-size:12px!important;font-weight:800!important;padding:9px 11px;white-space:nowrap}
.catalog-detail[open] .edit-label{background:#173b32;color:white!important}
.delete-form{padding:0 12px 16px;display:flex;justify-content:flex-end}
.btn.danger{color:#8d2834;background:#fff5f4;border:1px solid #d5a0a5;white-space:normal}
.btn.danger:hover{background:#f9e2e2}
.bin-panel{margin-top:35px}.bin-panel>details{border:0}.bin-panel>details>summary{padding:0 0 15px}.bin-panel>details>p{padding:10px 0 20px}.bin-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 6px;border-top:1px solid #ebede7}.bin-row>span{min-width:0}.bin-row small{display:block;color:#8c948d}.bin-row .btn{flex-shrink:0}
@media(max-width:640px){.catalog-detail>summary{gap:8px}.edit-label{padding:7px 8px;font-size:10px!important}.edit-product>summary{grid-template-columns:35px minmax(0,1fr);gap:8px}.edit-product>summary .edit-label{grid-column:1/-1;justify-self:start;margin-left:0}.bin-row{align-items:flex-start}.bin-row .btn{padding:8px 10px}}

/* V1.3 — photos visibles et lisibles sur tablette, catalogue et caisse. */
.order-product-intro{display:grid;grid-template-columns:minmax(145px,210px) 1fr;align-items:center;gap:22px;padding:12px 0 18px;margin-bottom:10px;border-bottom:1px solid var(--border)}
.order-product-intro h2{margin:4px 0 10px}
.order-product-photo{height:210px;display:grid;place-items:center;background:#f0eee5;border-radius:15px;overflow:hidden}
.order-product-photo img{width:100%;height:100%;object-fit:contain}
.order-product-photo .placeholder-ornament{font-size:95px}
.review-photo{margin:18px 0 12px;border-radius:16px;background:#f2f0e9;padding:13px;text-align:center}
.review-photo img{display:block;width:100%;height:min(35vh,300px);object-fit:contain;border-radius:10px}
.review-photo figcaption{margin-top:9px;color:#65796b;font-size:12px}
.thanks-product-photo{display:block;width:min(100%,310px);height:220px;object-fit:contain;background:#f2efe6;border-radius:16px;margin:0 auto 25px}
.thank-you .order-number{font-family:Georgia,serif;font-size:28px;color:var(--green);display:block;padding:8px}
.order-staff-photo{width:110px;height:110px;object-fit:contain;background:#f3f1e9;border-radius:12px;flex:0 0 auto}
.photo-alert,.photo-ok{border-radius:9px;padding:11px 13px;font-size:12px;margin:3px 0}
.photo-alert{background:#fff2e4;color:#8c4f24}
.photo-ok{background:#eaf4eb;color:#36654b}
@media(max-width:640px){.order-product-intro{grid-template-columns:115px 1fr;gap:12px}.order-product-photo{height:135px}.order-product-intro h2{font-size:22px}.review-photo img{height:min(30vh,250px)}.order-staff-photo{width:74px;height:74px}}


/* V1.4 — borne client pensée d'abord pour les tablettes Android au format paysage. */
.tablet-order-modal{width:min(96vw,1180px);max-height:calc(100dvh - 26px);overflow-y:auto;overscroll-behavior:contain;padding:24px 30px 28px;border-radius:22px}
.order-modal-head{padding:1px 36px 11px 2px;border-bottom:1px solid #e6e8df;margin-bottom:18px}
.order-modal-head .eyebrow{margin-bottom:4px}
.order-modal-head h2{font-size:clamp(26px,3vw,35px);margin:0 0 3px}
.order-modal-head p{margin:0;font-size:13px}
.order-dialog-layout{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(380px,1fr);gap:25px;align-items:start}
.product-showcase{position:sticky;top:12px;align-self:start;border:1px solid #e4e7de;background:#faf9f4;border-radius:18px;overflow:hidden;box-shadow:0 12px 32px #243d3220}
.showcase-photo{height:clamp(190px,35dvh,345px);background:linear-gradient(145deg,#f3f1e8,#e5e8de);display:grid;place-items:center;position:relative;overflow:hidden}
.showcase-photo>img{width:100%;height:100%;object-fit:contain;display:block;padding:12px}
.showcase-photo-label{position:absolute;top:12px;left:12px;background:#fffdf3e8;color:#46594b;border:1px solid #fff;border-radius:100px;padding:6px 12px;letter-spacing:.1em;font-size:10px;font-weight:800}
.showcase-photo-missing{display:grid;justify-items:center;gap:0}.showcase-photo-missing small{font-size:11px;color:#65786b}
.showcase-photo-missing .placeholder-ornament{font-size:90px}
.showcase-info{padding:18px 22px 16px}
.showcase-info .eyebrow{font-size:10px;margin-bottom:3px}
.showcase-info h3{font-family:'Playfair Display',Georgia,serif;font-size:clamp(21px,2.5vw,28px);margin-bottom:2px}
.showcase-unit-price{font-size:14px;color:#567063;margin:0 0 11px}
.showcase-engraving{background:#fff;border:1px dashed #c9d6c9;padding:11px 14px;border-radius:11px;display:grid;gap:5px}
.showcase-engraving small{color:#77867a;font-size:11px;font-weight:700}
.showcase-engraving strong{color:#234f3a;font-family:Georgia,serif;font-size:clamp(16px,2vw,22px);line-height:1.28;overflow-wrap:anywhere;white-space:pre-line}
.showcase-engraving strong.is-empty{font-family:'DM Sans',Arial,sans-serif;font-size:13px;color:#91a294;font-style:italic;font-weight:400}
.showcase-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:11px}
.showcase-total span{font-size:12px;color:#65766d}
.showcase-total strong{font-family:Georgia,serif;font-size:23px;color:#1b4732}
.showcase-disclaimer{font-size:10px!important;line-height:1.4;margin:5px 0 0!important;color:#839185}
.order-form-side{min-width:0;padding:3px 1px 3px 0}
.form-step-label{font-size:15px;font-weight:800;color:#234b39;margin:2px 0 15px;display:flex;align-items:center;gap:10px}
.form-step-label span{background:#214c37;color:white;border-radius:50%;height:28px;width:28px;display:grid;place-items:center;font-size:12px}
.tablet-order-modal .form-grid{gap:13px}
.tablet-order-modal .form-grid>label{font-size:13px}
.tablet-order-modal input,.tablet-order-modal textarea{font-size:16px;min-height:47px}
.tablet-order-modal .privacy{font-size:12px!important}
.tablet-order-modal .privacy input{min-height:0}
.tablet-order-modal .form-divider{margin-top:5px}
.tablet-order-modal .order-review-button{min-height:53px;font-size:15px}
.landscape-review{width:min(1100px,96vw);padding:25px 30px;max-height:calc(100dvh - 24px);overflow-y:auto}
.review-top{padding-bottom:10px;border-bottom:1px solid #e8e9df;margin-bottom:17px}
.review-top h2{font-size:clamp(27px,3vw,36px);margin:0 0 3px}
.review-top p{font-size:13px;margin:0}
.review-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(350px,1fr);gap:25px;align-items:start}
.review-photo{display:grid;gap:9px;align-content:start;min-height:0;margin:0;background:#f0eee5;border-radius:14px;padding:13px}
.review-photo img{width:100%;height:clamp(220px,51dvh,440px);object-fit:contain;border-radius:9px}
.review-photo figcaption{text-align:center;font-size:12px;color:#6e7b70;margin:0}
.review-no-photo{height:clamp(220px,51dvh,440px);display:grid;place-items:center;text-align:center;color:#7f8c80;font-size:13px}
.review-summary{display:grid;align-content:start;gap:0;min-width:0}
.review-line{padding:9px 0;gap:18px}
.review-line span{flex:0 0 35%;font-size:12px}
.review-line strong{font-size:15px}
.review-engraving-line{padding:14px 10px;background:#f6f2e8;border:1px solid #e9dfc7;border-radius:10px;margin:8px 0}
.review-engraving-line strong{font-size:20px;color:#214c37;font-family:Georgia,serif}
.review-total-line strong{font-size:24px;color:#214c37}
.review-payment-hint{font-size:12px;color:#577163;background:#edf5ec;border-radius:9px;padding:9px 12px;margin:12px 0 0}
.review-actions{margin-top:15px}
.review-actions .btn{min-height:51px;font-size:14px}
.tablet-thanks{width:min(100%,700px);padding:48px 42px}
.tablet-thanks h1{font-size:clamp(30px,4vw,46px)}
.tablet-thanks .checkout-instruction{background:#eaf3e9;border:1px solid #d2e3d2;color:#254a35;padding:19px;border-radius:15px;font-size:clamp(16px,2vw,21px);line-height:1.5}
.tablet-thanks .checkout-instruction strong{color:#173d2b}
.kiosk-countdown{font-size:12px;color:#849187;margin:18px 0 0}
@media (orientation:landscape) and (min-width:860px) and (max-height:720px){
 .tablet-order-modal{padding:14px 22px 20px;max-height:calc(100dvh - 16px)}
 .order-modal-head{margin-bottom:11px;padding-bottom:8px}
 .order-modal-head h2{font-size:25px}
 .order-dialog-layout{gap:17px}
 .showcase-photo{height:clamp(170px,31dvh,265px)}
 .showcase-info{padding:11px 17px}
 .showcase-info h3{font-size:22px}
 .showcase-engraving{padding:8px 11px}
 .showcase-engraving strong{font-size:17px}
 .showcase-disclaimer{font-size:9px!important}
 .landscape-review{padding:14px 20px}
 .review-top{margin-bottom:9px;padding-bottom:7px}
 .review-top h2{font-size:26px}
 .review-photo img,.review-no-photo{height:clamp(175px,43dvh,295px)}
 .review-line{padding:7px 0}
 .review-engraving-line{padding:9px 10px}
 .review-actions{margin-top:9px}
}
@media(max-width:859px){
 .tablet-order-modal{padding:20px;max-height:calc(100dvh - 16px)}
 .order-dialog-layout{grid-template-columns:minmax(0,1fr)}
 .product-showcase{position:static;display:grid;grid-template-columns:minmax(130px,.65fr) 1fr;gap:0}
 .showcase-photo{height:100%;min-height:200px}
 .showcase-info{padding:15px}
 .order-modal-head h2{font-size:29px}
 .review-layout{grid-template-columns:minmax(0,1fr)}
 .review-photo{display:grid;grid-template-columns:190px 1fr;align-items:center}
 .review-photo img,.review-no-photo{height:160px}
 .review-photo figcaption{text-align:left}
}
@media(max-width:560px){
 .tablet-order-modal{padding:17px 13px}
 .order-modal-head{padding-right:30px}
 .order-modal-head h2{font-size:26px}
 .product-showcase{grid-template-columns:110px minmax(0,1fr)}
 .showcase-photo{min-height:155px}
 .showcase-photo-label{display:none}
 .showcase-info{padding:10px 12px}
 .showcase-info h3{font-size:18px}
 .showcase-engraving{margin-top:6px;padding:8px}
 .showcase-engraving strong{font-size:15px}
 .showcase-unit-price,.showcase-disclaimer{display:none}
 .showcase-total strong{font-size:18px}
 .review-card.landscape-review{padding:17px 13px}
 .review-photo{grid-template-columns:1fr}
 .review-photo img,.review-no-photo{height:200px}
 .review-payment-hint{font-size:11px}
 .review-actions{flex-direction:column}
 .tablet-thanks{padding:28px 18px}
}
@media(prefers-reduced-motion:reduce){.btn{transition:none}.btn:hover{transform:none}}

/* V1.5 — catégories illustrées, fiches au format carré, coups de cœur, statistiques. */
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.category-tile{display:block;background:#fff;border:1px solid var(--border);border-radius:19px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,border-color .2s}
.category-tile:hover,.category-tile:focus-visible{transform:translateY(-3px);border-color:#89a794;outline:none}
.category-cover{aspect-ratio:1/1;background:linear-gradient(130deg,#eeefe6,#e0e6da);display:grid;place-items:center;overflow:hidden}
.category-cover img{width:100%;height:100%;object-fit:contain;padding:7px}
.category-icon{font-size:clamp(80px,12vw,150px);color:#83a28f}
.category-copy{padding:17px 19px 21px;display:grid;gap:5px}
.category-copy strong{font:600 24px/1.15 'Playfair Display',Georgia,serif;color:var(--green)}
.category-copy span{font-size:13px;color:#78877c;min-height:17px}
.category-copy small{font-size:12px;font-weight:700;color:#3c6d53;margin-top:7px}
.category-helper{display:flex;justify-content:center;align-items:center;gap:15px;padding:29px 0;color:#708075;font-size:13px;flex-wrap:wrap}
.shop-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.shop-topbar span{font-size:12px;color:#64786b}
.square-cover{height:auto;aspect-ratio:1/1;background:#f5f5f0}
.image-zoom-trigger{appearance:none;position:relative;display:block;width:100%;height:100%;border:0;padding:0;margin:0;background:transparent;cursor:zoom-in;touch-action:manipulation;overflow:hidden}
.image-zoom-trigger img{width:100%;height:100%;object-fit:contain!important;padding:10px;display:block}
.zoom-hint{position:absolute;bottom:10px;right:10px;padding:5px 10px;font-size:11px;font-weight:700;color:#345846;background:#fffffff0;border-radius:100px;pointer-events:none}
.favorite-tag{position:absolute;left:10px;top:10px;pointer-events:none;background:#fff4f4;color:#a23c53;border:1px solid #f0ccd4;font-weight:800;border-radius:30px;font-size:12px;padding:7px 11px;box-shadow:0 5px 19px #00000015}
.product-meta{min-height:140px}.micro-label{display:block;color:var(--accent);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:10px;margin-bottom:6px}
.availability{display:inline-block;font-size:11px;line-height:1.4;font-weight:700;padding:7px 9px;border-radius:8px;margin:5px 0}
.availability.available{background:#edf6ee;color:#397252}.availability.on-order{background:#fff0de;color:#906039}
.product-showcase .showcase-zoom{min-height:190px;height:100%}
.photo-zoom-modal{position:fixed;z-index:5000;inset:0;background:#112118e8;display:grid;place-items:center;padding:28px;overscroll-behavior:contain}
.photo-zoom-content{position:relative;width:min(94vw,1000px);height:min(91dvh,850px);background:#fdfcf8;border-radius:18px;padding:14px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;box-shadow:0 30px 100px #0008}
.photo-zoom-content img{width:100%;height:100%;object-fit:contain;min-height:0}
.photo-zoom-content p{text-align:center;margin:0;font-weight:600;font-size:13px}
.photo-zoom-close{position:absolute;right:10px;top:10px;z-index:1;border:0;border-radius:50%;background:#214936;color:white;width:46px;height:46px;font-size:29px;cursor:pointer}
.photo-zoom-close:focus-visible{outline:3px solid var(--gold)}
.photo-form-block{display:grid;gap:8px;border:1px dashed #cddbcf;padding:12px;border-radius:11px}
.photo-form-block>span{font-size:12px;font-weight:800;color:#4e6a5a}
.photo-pickers{display:flex;gap:8px;flex-wrap:wrap}
.photo-picker{cursor:pointer;display:inline-flex!important;align-items:center;justify-content:center;padding:10px 12px;background:#f5f8f3;border:1px solid #cfdcd1;border-radius:9px;font-size:12px;font-weight:800;color:#315a42;min-height:43px}
.photo-picker:focus-within{outline:3px solid #7cab8c}
.photo-picker input[type=file]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.photo-choice{font-size:11px;color:#7e8b81}.photo-choice.has-photo{color:#32744f;font-weight:700}
.category-admin-title{display:flex;align-items:center;gap:9px}.category-admin-title img{width:49px;height:49px;object-fit:contain;border-radius:7px;background:#f2f4ee}
.catalog-product-entry{border-radius:15px;overflow:hidden;border:1px solid var(--border);background:#fff}
.catalog-product-entry .edit-product{border:0;border-radius:0;box-shadow:none}
.catalog-quick-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 16px 15px;background:#fff;border-top:1px solid #f0f1eb}
.catalog-quick-actions form{margin:0}.catalog-quick-actions button{white-space:nowrap}
.btn.favorite-active{background:#b04a60;color:#fff;border-color:#b04a60}
.dashboard-sales{background:linear-gradient(100deg,#173e2f,#376753);color:white;padding:25px 30px;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:-14px 0 38px;flex-wrap:wrap}
.dashboard-sales span,.dashboard-sales small{display:block;color:#e1eae2}.dashboard-sales strong{font:600 34px/1.3 'Playfair Display',Georgia,serif;display:block;margin:4px 0}.dashboard-sales .btn{background:#f9ecd5;color:#1e4732}
.analytics-filter{display:flex;gap:15px;align-items:end;flex-wrap:wrap;margin:18px 0 28px;background:#fff;padding:17px;border-radius:13px;border:1px solid var(--border)}
.analytics-filter label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#486451}
.analytics-filter select{min-width:210px}
.analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0 26px}
.analytics-kpis .stat strong{font-size:clamp(24px,2.8vw,39px)}
.analytics-kpis .accent-stat{background:#1c4937}.analytics-kpis .accent-stat span,.analytics-kpis .accent-stat small{color:#dce8db}.analytics-kpis .accent-stat strong{color:#fff}
.analytics-panels{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin:22px 0}
.analytics-panels>.panel{min-width:0}.analytics-panels h2,.zero-sales h2{font-size:clamp(22px,2.6vw,31px)}
.sales-line-svg{width:100%;max-height:270px;display:block;margin:15px 0 0}
.trend-amounts{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;border-top:1px solid #edf0e9;padding-top:10px}
.trend-amounts span{font-size:11px;display:grid;gap:2px;color:#5a7161;text-align:center}.trend-amounts strong{color:#213c2a}
.donut-wrap{display:flex;gap:22px;align-items:center;margin:21px 0 6px;flex-wrap:wrap}
.sales-donut{width:206px;height:206px;border-radius:50%;flex:0 0 206px;display:grid;place-items:center}
.sales-donut>span{width:122px;height:122px;background:white;border-radius:50%;display:grid;place-content:center;text-align:center}
.sales-donut strong{font:600 37px/1.1 'Playfair Display',Georgia,serif;color:#214f39}.sales-donut small{color:#7b907e}
.sales-legend{flex:1;min-width:210px;display:grid;gap:8px}.legend-entry{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;font-size:12px;color:#5a6e61}.legend-entry strong{white-space:nowrap}.legend-dot{width:11px;height:11px;border-radius:50%}
.top-products{display:grid}.top-product-row{display:grid;grid-template-columns:28px 1fr auto;gap:11px;align-items:center;padding:11px 0;border-bottom:1px solid #eef0e9}.top-rank{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#ebf2eb;font-weight:800;color:#345943}.top-product-row div{display:grid;gap:2px}.top-product-row small{color:#7b877e;font-size:11px}.top-product-row>strong{white-space:nowrap;font-size:13px;color:#274a37}
.category-performance{display:grid;gap:7px;padding:12px 0;border-bottom:1px solid #edf0e9}.category-performance>div:first-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}.category-performance span{color:#6c7d6f}.performance-track{width:100%;height:10px;border-radius:30px;background:#edf1e9;overflow:hidden}.performance-track>span{display:block;height:100%;border-radius:30px}
.zero-products{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.zero-products>span{padding:10px 13px;background:#f4f6ef;border-radius:10px;font-size:13px;color:#294b37}.zero-products small{color:#7d8c7e}
.analytics-footnote{font-size:11px;margin:25px 0;color:#748777}
@media(max-width:980px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-panels{grid-template-columns:minmax(0,1fr)}.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-copy{padding:12px}.category-copy strong{font-size:19px}.category-cover{aspect-ratio:1}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:7px}.product-meta{padding:11px 5px;min-height:180px;flex-direction:column}.product-meta h3{font-size:15px}.product-meta p{font-size:11px}.image-zoom-trigger .zoom-hint{font-size:10px}.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.analytics-kpis .stat{padding:15px}.analytics-kpis .stat strong{font-size:25px}.analytics-panels .panel{padding:19px}.sales-donut{width:180px;height:180px;flex-basis:180px}.sales-donut>span{width:100px;height:100px}.photo-zoom-modal{padding:8px}.photo-zoom-content{width:100%;height:94dvh}.catalog-quick-actions{gap:5px;padding:9px}.catalog-quick-actions button{font-size:11px;padding:9px}.dashboard-sales strong{font-size:28px}}
@media (orientation:landscape) and (min-width:840px) and (max-height:720px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-cover{aspect-ratio:1}.hero{min-height:280px;margin-bottom:26px}.hero-copy{padding:38px 45px}.hero-art{min-height:220px}.photo-zoom-content{height:96dvh}}
@media(min-width:981px){.analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}


/* V1.6 — Réseau de boutiques revendeuses, identité publique neutre et provenance. */
.reseller-header-logo{width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid #eceae3;border-radius:12px;padding:5px;flex-shrink:0}
.brand strong{display:block;max-width:365px;font-size:clamp(17px,2vw,23px);line-height:1.18;letter-spacing:.005em}
.reseller-hero-name{color:#fce6be!important;font-size:clamp(16px,2.2vw,26px)!important;font-weight:700;line-height:1.3!important;margin:-4px 0 10px!important}
.reseller-hero-logo{width:min(80%,310px);max-height:245px;aspect-ratio:1;object-fit:contain;padding:18px;background:#fffef9;border:1px solid #ffffffaa;border-radius:22px;box-shadow:0 20px 45px #0003}
.closed-reseller{max-width:720px;margin:8vh auto;padding:40px}
.reseller-origin{display:inline-flex;align-items:center;gap:6px;background:#f3f1e8;color:#3e624e;border:1px solid #e1e7df;border-radius:100px;padding:5px 10px;font-weight:700;font-size:12px}
.reseller-intro{padding:20px 24px;margin:12px 0 22px;border:1px solid #d8e5da;background:#eff5ee;border-radius:15px}
.reseller-intro strong{font-size:16px;color:#214d38}.reseller-intro p{margin:6px 0 0;font-size:13px}
.resellers-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);align-items:start;gap:22px}
.reseller-create{position:sticky;top:20px}.reseller-cards{min-width:0;display:grid;gap:16px}.reseller-cards>.section-heading{margin:0 0 4px}
.reseller-card{padding:22px 25px}.reseller-card-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.reseller-card-brand{display:flex;align-items:center;gap:15px;min-width:0}.reseller-card-brand>img,.reseller-initial{width:74px;height:74px;border-radius:12px;flex:0 0 74px;object-fit:contain;padding:5px;background:#f8f9f3;border:1px solid #e5ece4}
.reseller-initial{display:grid;place-items:center;font-size:28px}.reseller-card-brand h3{font-family:Georgia,serif;font-size:25px;margin:0 0 6px;line-height:1.2;overflow-wrap:anywhere}.reseller-card-brand small{display:block;margin-top:6px;color:#748379}
.reseller-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:22px 0}
.reseller-numbers span{display:grid;gap:5px;background:#f6f8f3;padding:11px 9px;border-radius:10px;font-size:11px;color:#5c7465}
.reseller-numbers strong{color:#22503d;font-size:17px;white-space:nowrap}
.reseller-link{display:grid;gap:10px;margin-top:10px}.reseller-link label{font-size:12px;font-weight:800;color:#465e50}
.reseller-link code{display:block;background:#f2f5ef;padding:11px;border:1px solid #dfe7db;border-radius:10px;color:#2a553f;overflow-wrap:anywhere;word-break:break-all;font-size:11px}
.reseller-link-actions{display:flex;flex-wrap:wrap;gap:9px}.reseller-qr{display:flex;align-items:center;gap:18px;padding:17px 0 18px;margin-top:13px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.reseller-qr p{font-size:12px;line-height:1.65;margin:0;max-width:240px}
.shop-qrcode{width:198px;min-width:198px;min-height:198px;border:1px solid #dce6d9;border-radius:10px;padding:13px;background:#fff;display:grid;place-items:center;text-align:center}
.shop-qrcode img,.shop-qrcode canvas{max-width:100%;height:auto!important}
.reseller-details{margin-top:15px}.reseller-details>summary{padding:12px;background:#ecf3ed;border-radius:10px;font-weight:800;cursor:pointer;color:#26563d}
.reseller-details .mini-form{margin:14px 0}.reseller-details .delete-form{margin:0;padding:8px 0}
.reseller-archive{margin-top:0}.reseller-archive summary{font-weight:700;color:#315a44}
.catalog-quick-actions [aria-pressed]{width:43px;height:43px;padding:6px;font-size:24px;line-height:1}
.favorite-tag{font-size:23px;padding:1px 12px 3px;background:#fff4f6;color:#ad4a60;min-width:43px;text-align:center}
@media(max-width:1080px){.resellers-layout{grid-template-columns:1fr}.reseller-create{position:static}.reseller-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-cards>.section-heading,.reseller-archive{grid-column:1/-1}}
@media(max-width:730px){.reseller-cards{grid-template-columns:1fr}.reseller-card{padding:19px}.reseller-header-logo{width:43px;height:43px}.brand strong{font-size:17px;max-width:215px}.reseller-qr{flex-wrap:wrap}.reseller-numbers{grid-template-columns:repeat(3,minmax(0,1fr))}.reseller-numbers strong{font-size:14px}.shop-qrcode{width:190px;min-width:190px}.reseller-hero-logo{width:170px;max-height:165px}.hero-art:has(.reseller-hero-logo){min-height:185px}}
@media print{.reseller-create,.reseller-link-actions,.reseller-details,.reseller-archive{display:none!important}.resellers-layout{display:block}.reseller-card{page-break-inside:avoid}}
.public-link-warning{padding:14px 18px;background:#fff3df;border:1px solid #eed5a8;border-radius:12px;color:#6b5432;font-size:13px;font-weight:700}
.employee-card{padding:12px 0;border-bottom:1px solid var(--border)}
.employee-card .team-item{border:0;padding:0 0 12px}
.employee-assign{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.employee-assign label{display:grid;gap:5px;min-width:190px;flex:1;font-size:12px;font-weight:700;color:#4a6454}
.employee-assign select{max-width:100%}
.reseller-location{color:#f8ecd8!important;font-size:13px!important;margin:9px 0 0!important}
.reseller-checkout-note{display:inline-block;padding:7px 13px;background:#f1f5ed;border-radius:8px;color:#3b5d45;font-size:13px}


/* BOITIFULL V1.7 — Identité officielle (image fournie), sans altérer les thèmes saisonniers. */
:root{--ink:#153625;--green:#052f20;--green2:#315542;--gold:#718b2a;--paper:#faf9f4}
.boitifull-header{gap:18px;flex-wrap:wrap;min-height:114px;border-bottom:1px solid #e6e9e0}
.boitifull-brand{display:inline-flex;flex:0 0 auto;max-width:100%;min-width:0;align-items:center}
.boitifull-brand img{display:block;width:246px;max-width:100%;height:auto;aspect-ratio:2048/682;object-fit:contain}
.boitifull-header .header-right{margin-left:auto;flex-shrink:0}
.reseller-header-identity{display:flex;align-items:center;gap:10px;max-width:315px;min-width:0;padding:8px 12px;border:1px solid #dfe7dd;border-radius:14px;background:#fffefa}
.reseller-header-identity .reseller-header-logo{display:block;width:54px;height:54px;max-width:54px;max-height:54px;flex:0 0 54px;object-fit:contain;background:#fff;border:1px solid #e8ece6;padding:5px;border-radius:10px}
.reseller-header-identity span{display:grid;gap:3px;min-width:0}
.reseller-header-identity small{font-size:9px;font-weight:800;letter-spacing:.12em;color:#718572}
.reseller-header-identity strong{font-family:'DM Sans',Arial,sans-serif;font-size:13px;line-height:1.3;color:#173b2b;overflow-wrap:anywhere;max-width:180px;letter-spacing:normal}
.footer strong{color:#153625;letter-spacing:.05em}
.nav a.active,.btn.primary{background:var(--green)}
.nav a:hover,.btn.primary:hover{background:#16513b}
@media(max-width:900px){.boitifull-brand img{width:215px}.reseller-header-identity{max-width:265px}.reseller-header-identity strong{max-width:155px}}
@media(max-width:640px){
 .boitifull-header{min-height:0;padding:14px 0 12px;gap:10px;align-items:center}
 .boitifull-brand{max-width:calc(100% - 95px)}
 .boitifull-brand img{width:185px;height:auto}
 .boitifull-header .header-right{align-items:flex-end;gap:4px}
 .reseller-header-identity{flex-basis:100%;order:3;padding:7px 9px;max-width:100%;gap:9px}
 .reseller-header-identity .reseller-header-logo{width:42px;height:42px;max-width:42px;max-height:42px;flex-basis:42px}
 .reseller-header-identity strong{max-width:none;font-size:13px}
}
@media(orientation:landscape) and (min-width:700px) and (max-height:720px){
 .boitifull-header{min-height:0;padding:10px 0}
 .boitifull-brand img{width:196px}
 .reseller-header-identity{padding:5px 8px}
}
@media print{.boitifull-header{display:none!important}}


/* BOITIFULL V1.8 — Catalogue Stacha : vraie navigation iPhone, fiches plein écran.
   Ne change ni la page publique, ni la mise en page desktop/tablette paysage. */
.catalog-mobile-controls,.catalog-mobile-search,.catalog-category-add-trigger,.catalog-sheet-close,.catalog-search-empty{display:none}
.catalog-page,.catalog-page *{min-width:0}
.catalog-page [hidden],.catalog-page .catalog-search-empty[hidden]{display:none!important}
.catalog-page .catalog-category-add-trigger{font:inherit}
.catalog-page .catalog-category-create-form{margin-bottom:18px}
.catalog-product-entry{scroll-margin-top:120px}
.catalog-page .catalog-product-entry .tiny-cover img{object-fit:contain;background:#f5f4ee}
@media(max-width:760px){
  html{scroll-padding-top:108px;scroll-behavior:smooth}
  body{padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:env(safe-area-inset-bottom,0px);overflow-x:clip}
  body.catalog-editor-open{overflow:hidden}
  .shell{width:100%;max-width:100%;padding:0 14px}
  .boitifull-header{gap:8px;margin-bottom:7px}
  .boitifull-header .boitifull-brand img{max-width:172px}
  .boitifull-header .header-right .user-chip{font-size:10px;padding:6px 8px}
  .nav{max-width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;touch-action:pan-x}
  .nav::-webkit-scrollbar{display:none}
  .nav a{scroll-snap-align:start;flex:0 0 auto}
  .catalog-page{display:flex;flex-direction:column;gap:0;width:100%;min-width:0}
  .catalog-page .topline{order:0;margin:12px 0 5px}
  .catalog-page .topline h1{font-size:clamp(22px,6.6vw,30px);margin:0 0 5px;line-height:1.2}
  .catalog-page .topline p{display:none}
  .catalog-page .topline .eyebrow{font-size:9px;margin-bottom:5px}
  .catalog-mobile-controls{display:block;order:1;position:sticky;top:0;z-index:45;background:var(--paper);padding:6px 0 10px;box-shadow:0 7px 12px -12px #123a2380}
  .catalog-mobile-title{display:none}
  .catalog-mobile-tabs{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:5px;padding:5px;border:1px solid #dfe5db;background:#eef2eb;border-radius:14px}
  .catalog-mobile-tabs button{border:0;background:transparent;color:#526b59;font-size:13px;font-weight:750;min-height:46px;padding:6px 5px;border-radius:10px;white-space:nowrap;touch-action:manipulation}
  .catalog-mobile-tabs button[aria-selected="true"]{background:#073825;color:#fff;box-shadow:0 3px 9px #13342125}
  .catalog-mobile-tabs span{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:0 5px;min-width:20px;height:20px;font-size:10px;background:#ffffff2d;margin-left:2px}
  .catalog-mobile-search{display:grid;order:2;grid-template-columns:minmax(0,1fr) auto;gap:6px 9px;align-items:center;background:#fff;border:1px solid #e1e6de;border-radius:16px;padding:13px;margin:9px 0 14px}
  .catalog-mobile-search label{font-size:11px;font-weight:750;color:#5b7061}
  .catalog-mobile-search input,.catalog-mobile-search select{font-size:16px!important;height:46px;border-radius:10px!important;max-width:100%;padding:8px 10px;grid-column:1/-1}
  .catalog-mobile-search label[for="catalog-search-input"]{grid-column:1/-1;grid-row:1}
  .catalog-mobile-search input{grid-row:2}
  .catalog-mobile-search label[for="catalog-category-filter"]{grid-column:1;grid-row:3}
  .catalog-mobile-search select{grid-row:4}
  .catalog-mobile-search [data-catalog-result-count]{grid-column:2;grid-row:3;justify-self:end;font-size:11px;color:#688071;font-weight:600}
  .catalog-page .catalog-product-heading{display:none}
  .catalog-page .catalog-products-grid{order:3;display:grid;grid-template-columns:minmax(0,1fr);gap:11px;width:100%;margin:0}
  .catalog-page .catalog-empty,.catalog-page .catalog-search-empty{order:4;margin:0 0 18px}
  .catalog-search-empty:not([hidden]){display:block;padding:18px;text-align:center;background:#fff;border:1px dashed #d4dfd4;border-radius:14px;color:#607367;font-size:13px}
  .catalog-page .admin-columns{order:5;display:block;margin:6px 0 14px}
  .catalog-page .admin-columns>.panel{width:100%;margin:0;padding:19px 17px;border-radius:19px;box-shadow:none}
  .catalog-page .admin-columns>.panel h2{font-size:25px;line-height:1.15;margin:4px 0 15px}
  .catalog-page .admin-columns>.panel .eyebrow{font-size:9px}
  .catalog-page .bin-panel{order:6;margin:16px 0 0;box-shadow:none}
  .catalog-page[data-catalog-view="products"] .admin-columns{display:none}
  .catalog-page[data-catalog-view="create"] .catalog-mobile-search,
  .catalog-page[data-catalog-view="create"] .catalog-products-grid,
  .catalog-page[data-catalog-view="create"] .catalog-empty,
  .catalog-page[data-catalog-view="create"] .catalog-search-empty,
  .catalog-page[data-catalog-view="create"] .bin-panel{display:none!important}
  .catalog-page[data-catalog-view="create"] .catalog-categories-panel{display:none}
  .catalog-page[data-catalog-view="categories"] .catalog-mobile-search,
  .catalog-page[data-catalog-view="categories"] .catalog-products-grid,
  .catalog-page[data-catalog-view="categories"] .catalog-empty,
  .catalog-page[data-catalog-view="categories"] .catalog-search-empty,
  .catalog-page[data-catalog-view="categories"] .bin-panel{display:none!important}
  .catalog-page[data-catalog-view="categories"] .catalog-create-panel{display:none}
  .catalog-page .form-grid{gap:15px;width:100%}
  .catalog-page .form-grid label:not(.check){font-size:13px;gap:7px}
  .catalog-page .form-grid input:not([type=checkbox]),
  .catalog-page .form-grid select,
  .catalog-page .form-grid textarea{font-size:16px;max-width:100%;width:100%;min-height:47px}
  .catalog-page .form-grid textarea{min-height:87px}
  .catalog-page .two-cols{grid-template-columns:minmax(0,1fr);gap:13px}
  .catalog-page .photo-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .catalog-page .photo-picker{font-size:12px;min-height:53px;white-space:normal;text-align:center;line-height:1.3;padding:9px 6px}
  .catalog-page .catalog-create-panel>.form-grid>.btn.primary{position:static;min-height:54px;width:100%;box-shadow:none}
  .catalog-page .catalog-create-panel>.form-grid,.catalog-page .catalog-category-create-form{margin-top:13px}
  .catalog-page .catalog-categories-panel{display:flex;flex-direction:column}
  .catalog-page .catalog-categories-panel>.eyebrow{order:0}
  .catalog-page .catalog-categories-panel>h2{order:1}
  .catalog-page .list-categories{order:2;margin:0 0 12px}
  .catalog-page .catalog-category-add-trigger{order:3;display:block;border:1px solid #b3c8b9;background:#eff5ed;color:#15412c;border-radius:12px;padding:13px 15px;font-weight:800;width:100%;min-height:49px}
  .catalog-page .catalog-category-create-form{order:4;display:none;padding:14px;background:#f6f8f2;border-radius:12px;border:1px solid #dce5d9}
  .catalog-page .catalog-category-create-form.is-open{display:grid}
  .catalog-page .catalog-categories-panel>.hint{order:5;padding:12px 0 0}
  .catalog-product-entry{width:100%;overflow:hidden;border:1px solid #e0e7df;border-radius:16px;box-shadow:0 3px 17px #15342309}
  .catalog-product-entry.catalog-editing{overflow:visible}
  .catalog-product-entry .edit-product{padding:4px 8px;background:#fff}
  .catalog-product-entry .edit-product>summary{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:81px;padding:10px 4px;text-align:left;cursor:pointer}
  .catalog-product-entry .edit-product>summary .tiny-cover{width:64px;height:64px;grid-column:1;grid-row:1;flex-shrink:0;border-radius:11px;background:#f7f7f0}
  .catalog-product-entry .edit-product>summary>span:nth-child(2){grid-column:2;grid-row:1;display:grid;gap:3px;min-width:0}
  .catalog-product-entry .edit-product>summary>span:nth-child(2)>strong{font-size:15px;line-height:1.25;overflow-wrap:anywhere}
  .catalog-product-entry .edit-product>summary>span:nth-child(2)>small{font-size:11px;color:#6b7d70;line-height:1.35;overflow-wrap:anywhere}
  .catalog-product-entry .edit-product>summary .edit-label{grid-column:3;grid-row:1;white-space:nowrap;font-size:11px!important;padding:9px 10px;margin:0;background:#edf4ec;color:#17452d;border-radius:10px;min-height:38px;align-self:center}
  .catalog-product-entry .catalog-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px 12px 12px;border-top:1px solid #edf0e8}
  .catalog-product-entry .catalog-quick-actions form{width:100%}
  .catalog-product-entry .catalog-quick-actions button{width:100%;height:44px;min-height:44px;font-size:18px;padding:5px 6px;line-height:1}
  .catalog-product-entry .catalog-quick-actions .catalog-move-label{display:none}
  .catalog-product-entry .catalog-quick-actions [aria-pressed]{height:44px;width:100%}
  .catalog-page .catalog-sheet-close{display:none}
  .catalog-page .catalog-detail[open]{position:fixed!important;inset:0!important;z-index:1002!important;overflow-y:auto!important;overscroll-behavior:contain!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:calc(env(safe-area-inset-top,0px) + 16px) 15px calc(env(safe-area-inset-bottom,0px) + 28px)!important;border:0!important;border-radius:0!important;background:#f9f9f5!important;box-shadow:none!important;-webkit-overflow-scrolling:touch}
  .catalog-page .catalog-detail[open]>summary{background:#fff;border:1px solid #dde7de;border-radius:15px;padding:10px;margin:0 0 8px;min-height:76px}
  .catalog-page .catalog-detail[open]>summary .edit-label{background:#0b3b29!important;color:#fff!important}
  .catalog-page .catalog-detail[open]>.catalog-sheet-close{display:block;position:sticky;top:0;z-index:2;width:100%;min-height:44px;margin:0 0 14px;border:1px solid #d9e5d8;border-radius:11px;background:#edf4eb;color:#12402a;font-size:14px;font-weight:800;text-align:left;padding:10px 14px}
  .catalog-page .catalog-detail[open] .mini-form{margin:0;padding:14px 2px}
  .catalog-page .catalog-detail[open] .mini-form>.btn.primary{position:sticky;bottom:calc(env(safe-area-inset-bottom,0px) + 4px);z-index:2;min-height:55px;box-shadow:0 6px 15px #234a3020}
  .catalog-page .catalog-detail[open] .delete-form{margin:0;padding:6px 0 22px}
  .catalog-page .catalog-detail[open] .delete-form .btn{width:100%;min-height:48px}
  .catalog-page .catalog-categories-panel .catalog-detail>summary{display:flex;justify-content:space-between;gap:10px}
  .catalog-page .catalog-categories-panel .catalog-detail[open]>summary{display:flex}
  .catalog-page .category-admin-title{min-width:0}
  .catalog-page .category-admin-title img{width:47px;height:47px;object-fit:contain}
  .catalog-page .category-admin-title strong{font-size:15px;overflow-wrap:anywhere}
  .catalog-page .category-admin-title small{display:block;font-size:11px}
}
@media(max-width:370px){
  .catalog-mobile-tabs button{font-size:11px;padding:5px 2px}
  .catalog-product-entry .edit-product>summary{grid-template-columns:55px minmax(0,1fr) auto;gap:7px}
  .catalog-product-entry .edit-product>summary .tiny-cover{width:55px;height:55px}
  .catalog-product-entry .edit-product>summary .edit-label{font-size:10px!important;padding:8px 6px}
  .catalog-mobile-search{grid-template-columns:minmax(0,1fr) auto}
  .catalog-mobile-search [data-catalog-result-count]{grid-column:2}
}

/* ================================================================
   BOITIFULL V1.9 — Design system + fluidité multiecran.
   Aucun zoom forcé et aucun scroll horizontal parasite.
   ================================================================ */
:root{
  --ink:#18392a;--green:#083b28;--green2:#31634b;--gold:#9c784b;
  --paper:#f7f5ef;--muted:#697a70;--border:#e4e9e1;
  --shadow:0 12px 32px rgba(29,65,43,.065);
  --radius-card:20px;
}
html{max-width:100%;scroll-padding-top:86px}
body{width:100%;min-width:0;max-width:100%;overflow-x:clip;background:#f8f7f2}
.shell,.shell>main,.topline,.admin-columns,.resellers-layout,.reseller-cards,.catalog-page,.panel,
.form-grid,.form-grid>*,.employee-card,.reseller-card,.order-row,.orders-list,.analytics-panels,
.stats-grid,.edit-grid,.two-cols,.section-heading,.site-header,.site-header>*{min-width:0;max-width:100%}
img,svg,video{max-width:100%}
input,select,textarea{min-width:0}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{max-width:100%}
code,pre,.reseller-link,.reseller-link code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
button,.btn,a,.nav a{touch-action:manipulation}
:focus-visible{outline:3px solid #86a95a!important;outline-offset:3px}
.shell{max-width:1460px;padding:0 clamp(16px,2.3vw,34px)}
.page-bg{background:radial-gradient(ellipse at 94% 0%,#f2e5db 0%,transparent 27%),radial-gradient(ellipse at 4% 98%,#edf2e8 0%,transparent 30%)}
.site-header{padding:18px 0 13px;gap:12px}
.boitifull-header .boitifull-brand img{width:clamp(145px,15vw,210px);max-height:74px;height:auto;object-fit:contain;object-position:left center}
.nav{display:flex;flex-wrap:wrap;gap:5px;padding:5px;border:1px solid #e6e9df;border-radius:16px;background:rgba(255,255,255,.82);margin-bottom:24px;box-shadow:0 4px 18px #1b392909}
.nav a{padding:10px 13px;border-radius:11px;min-height:41px;display:inline-flex;align-items:center;font-weight:700;font-size:13px;white-space:nowrap}
.nav a.active,.nav a:hover{background:#073c29;color:#fff}
.nav-toggle{display:none}
.panel,.order-row,.reseller-card,.employee-card{border:1px solid #e3e7df;border-radius:var(--radius-card);box-shadow:var(--shadow);background:#fff}
.panel{padding:clamp(19px,2.3vw,29px)}
.topline{padding:clamp(15px,2.5vw,30px) 0 clamp(10px,2vw,24px)}
.topline h1{font-size:clamp(32px,4.1vw,52px);max-width:100%;line-height:1.12}
.topline p{max-width:720px;font-size:clamp(13px,1.25vw,15px)}
.topline .eyebrow,.section-heading .eyebrow{letter-spacing:.16em;color:#ac6858}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.section-heading h2{margin-bottom:0}
.section-heading .btn{flex:0 0 auto}
.btn{border-radius:12px;min-height:44px;font-weight:750}
.btn.primary{background:#073c29;color:#fff;border-color:#073c29}
.btn.primary:hover{background:#155238}
.btn.outline{border-color:#d3e0d1}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{border-radius:11px}
.panel-intro{font-size:13px;line-height:1.55;color:#75847a;margin:0 0 17px}
.subtle-count{font:600 14px/1.4 'DM Sans',Arial,sans-serif;color:#89968a;vertical-align:middle;letter-spacing:0}
/* Les listes existantes passent avant les formulaires de création. */
.resellers-layout{display:flex;flex-direction:column;gap:25px;width:100%}
.resellers-layout>.reseller-cards,.resellers-layout>.reseller-create{width:100%;min-width:0}
.reseller-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.reseller-cards>.section-heading,.reseller-archive{grid-column:1/-1}
.reseller-card{margin:0;padding:23px}
.reseller-card-head,.reseller-card-brand{min-width:0}
.reseller-card-brand img{width:64px;height:64px;object-fit:contain;flex:0 0 64px}
.reseller-card h3{overflow-wrap:anywhere}
.reseller-numbers,.reseller-link-actions{min-width:0}
.reseller-link code{display:block;white-space:normal;line-height:1.4}
.reseller-create,.team-create{padding:25px 28px;background:#fbfcf9;border:1px solid #dce8da}
.reseller-create>h2,.team-create>h2{margin-bottom:14px}
.team-layout{display:flex;flex-direction:column;gap:22px}
.team-existing,.team-create{width:100%}
.team-existing .employee-card{background:#fff;border-color:#e7eae2;box-shadow:none;margin:12px 0;padding:17px}
.team-existing .section-heading{margin-bottom:15px}
.employee-card .team-item,.employee-card .employee-assign{min-width:0}
.create-disclosure{display:block;width:100%;border:0}
.create-disclosure>summary{list-style:none;display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:13px 18px;border:1px solid #c7d9c7;background:#edf4eb;color:#154e31;border-radius:12px;cursor:pointer;font-weight:800;font-size:15px}
.create-disclosure>summary::-webkit-details-marker{display:none}
.create-disclosure>summary::after{content:'⌄';margin-left:auto;font-size:20px}
.create-disclosure[open]>summary::after{content:'⌃'}
.create-disclosure[open]>form{margin-top:20px;padding-top:8px}
.catalog-page>.catalog-product-heading,.catalog-page>.catalog-mobile-search,.catalog-page>.catalog-products-grid,.catalog-page>.catalog-empty,.catalog-page>.catalog-search-empty,.catalog-page>.bin-panel,.catalog-page>.admin-columns{width:100%;min-width:0}
.catalog-page .catalog-product-heading{display:flex}
.catalog-page .admin-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0 0}
.catalog-page .admin-columns .panel{height:fit-content}
.catalog-page .catalog-categories-panel{display:flex;flex-direction:column}
.catalog-page .catalog-categories-panel .list-categories{order:2}
.catalog-page .catalog-categories-panel .catalog-category-add-trigger{order:3;margin-top:15px}
.catalog-page .catalog-categories-panel .catalog-category-create-form{order:4}
.catalog-page .catalog-categories-panel>.hint{order:5}
.catalog-page .catalog-create-panel .create-disclosure{margin-top:15px}
.catalog-create-panel form{width:100%}
.catalog-category-add-trigger{display:block;width:100%;text-align:left;min-height:52px;padding:12px 16px;border:1px solid #c7d9c7;border-radius:12px;background:#edf4eb;font-weight:800;color:#154e31}
.catalog-page .catalog-category-create-form{display:none;margin-top:15px;padding:15px;border-radius:12px;background:#f4f8f3;border:1px solid #dee6dd}
.catalog-page .catalog-category-create-form.is-open{display:grid}
.catalog-mobile-search{margin:9px 0 16px}
.catalog-page .catalog-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:14px;margin-bottom:8px}
.catalog-product-entry{min-width:0}
.catalog-product-entry .catalog-detail{min-width:0}
.catalog-quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.catalog-quick-actions form{flex:1 1 30%;min-width:0}
.catalog-quick-actions button{min-height:44px}
.photo-pickers{display:flex;flex-wrap:wrap;gap:9px;min-width:0}
.photo-picker{max-width:100%;flex:1 1 140px;min-height:48px;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center}
.bin-panel{margin-top:22px}
/* Opening an edit form never changes the page scale. */
.sheet-close{display:none}
.reseller-details[open] .mini-form{padding:16px 0 4px}
.reseller-details[open] .form-grid{width:100%}
/* Graphiques, caisse et tableaux : défilement dans la zone si nécessaire, sans agrandir la page. */
.analytics-panels,.analytics-grid,.orders-list,.cards-grid{min-width:0}
.sales-line-svg{width:100%;height:auto;max-width:100%}
.analytics-filter{max-width:100%}
.analytics-filter select,.analytics-filter input{max-width:100%}
.order-top,.order-main,.order-actions,.payment-confirm,.reseller-link-actions,.reseller-numbers{min-width:0}
.order-main>*{min-width:0}
.order-main p,.order-main small,.order-row strong{overflow-wrap:anywhere}
.order-actions{flex-wrap:wrap}
.order-actions select{min-width:0}
@media(min-width:1100px){
  .resellers-layout .reseller-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reseller-card{min-height:0}
  .team-existing{max-width:960px}
  .team-create,.reseller-create{max-width:960px}
}
@media(min-width:761px) and (max-width:1120px){
  .shell{padding:0 22px}
  .reseller-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-page .admin-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav a{padding:9px 10px;font-size:12px}
}
@media(max-width:760px){
  html{scroll-padding-top:12px}
  body{font-size:14px}
  .shell{padding:0 max(13px,env(safe-area-inset-left,0px))}
  .site-header{flex-wrap:wrap;padding:12px 0 8px;margin:0}
  .boitifull-header .boitifull-brand img{width:clamp(138px,43vw,177px);height:auto;max-height:68px}
  .header-right{margin-left:auto;gap:6px;min-width:0}
  .header-right .season-pill{display:none}
  .header-right .user-chip{font-size:10px;max-width:130px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
  .header-right>a.small-link{font-size:11px}
  .nav-toggle{display:flex;justify-content:center;gap:8px;align-items:center;width:100%;min-height:44px;border:1px solid #d9e4d9;border-radius:12px;background:#fff;color:#1a4731;font-weight:800;font-size:15px;margin:5px 0 9px}
  .nav-toggle span{font-size:21px}
  .nav{display:none!important;position:relative;overflow:visible!important;scroll-snap-type:none!important;margin:0 0 10px;max-width:100%;padding:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;box-shadow:0 12px 35px #163c2818}
  body.nav-open .nav{display:grid!important}
  .nav a{display:flex;justify-content:center;text-align:center;white-space:normal!important;font-size:12px;padding:11px 7px;min-height:49px;overflow-wrap:anywhere}
  .topline{padding:9px 0 16px}
  .topline h1{font-size:clamp(28px,7.7vw,36px);line-height:1.13;margin:5px 0 9px}
  .topline p{font-size:13px;line-height:1.42;margin-bottom:0}
  .topline .eyebrow{font-size:10px}
  .section-heading{align-items:center;gap:8px}
  .section-heading h2{font-size:clamp(21px,6vw,27px)}
  .section-heading .btn{font-size:12px;padding:8px 10px;min-height:42px}
  .panel{padding:17px;border-radius:17px}
  .btn,button{min-height:44px}
  /* iOS Safari zooms focused inputs whose computed font size is below 16 px. */
  input:not([type="checkbox"]):not([type="radio"]),select,textarea,
  .form-grid input:not([type="checkbox"]):not([type="radio"]),.form-grid select,.form-grid textarea,
  .employee-assign select,.analytics-filter select,.order-actions select{font-size:16px!important;line-height:1.35!important}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{width:100%;min-height:46px}
  .form-grid,.two-cols,.admin-columns{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:13px}
  .form-grid label,.form-grid label:not(.check){min-width:0;max-width:100%;overflow-wrap:anywhere;font-size:13px}
  .form-grid textarea{min-height:90px}
  .photo-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .photo-picker{min-width:0;min-height:52px;font-size:12px;line-height:1.2;padding:10px 7px}
  .resellers-layout{display:flex;flex-direction:column;gap:16px}
  .reseller-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  .reseller-cards>.section-heading,.reseller-archive{grid-column:auto}
  .reseller-intro{padding:14px 16px;margin-bottom:12px}
  .reseller-intro p{font-size:12px}
  .reseller-card{padding:17px;border-radius:17px}
  .reseller-card-brand{gap:10px}
  .reseller-card-brand img{width:55px!important;height:55px!important;max-height:55px!important;max-width:55px!important;flex:0 0 55px!important}
  .reseller-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:10px 0}
  .reseller-numbers span{min-width:0;overflow-wrap:anywhere;font-size:11px}
  .reseller-numbers strong{font-size:14px}
  .reseller-link-actions{display:flex;flex-wrap:wrap;gap:7px}
  .reseller-link-actions .btn{flex:1 1 120px;white-space:normal}
  .reseller-qr{max-width:100%;overflow-wrap:anywhere}
  .shop-qrcode{width:min(190px,75vw);min-width:0}
  .reseller-create,.team-create{padding:16px;border-radius:17px}
  .team-layout{display:flex;flex-direction:column;gap:16px}
  .team-existing .employee-card{padding:14px;margin:10px 0}
  .employee-card .team-item{gap:10px;flex-wrap:wrap}
  .employee-card .employee-assign{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
  .employee-card .employee-assign button{width:100%}
  .create-disclosure>summary{font-size:14px;min-height:54px}
  .catalog-page .catalog-products-grid{grid-template-columns:minmax(0,1fr)}
  .catalog-page .admin-columns{display:block;margin:8px 0}
  .catalog-page .catalog-product-heading{display:none}
  .catalog-page[data-catalog-view="create"] .catalog-create-panel .create-disclosure{display:block}
  .catalog-page[data-catalog-view="categories"] .catalog-categories-panel{display:flex}
  .catalog-page .catalog-categories-panel>.list-categories{order:2}
  .catalog-page .catalog-categories-panel>.catalog-category-add-trigger{order:3}
  .catalog-page .catalog-categories-panel>.catalog-category-create-form{order:4}
  .catalog-page .catalog-categories-panel>.hint{order:5}
  .catalog-page .catalog-create-panel{padding:17px}
  .catalog-page .catalog-create-panel .create-disclosure[open] .form-grid{display:grid}
  .catalog-page .catalog-create-panel .create-disclosure>summary{font-size:14px}
  .catalog-page .catalog-mobile-search{margin:8px 0 15px}
  .bin-panel{margin:13px 0}
  /* Fullscreen edit sheets: never force viewport zoom / horizontal pan. */
  .reseller-card .reseller-details[open]{position:fixed!important;inset:0!important;z-index:1004!important;overflow-y:auto!important;overscroll-behavior:contain;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:calc(env(safe-area-inset-top,0px) + 13px) 15px calc(env(safe-area-inset-bottom,0px) + 24px)!important;border-radius:0!important;background:#f8f9f5!important;box-shadow:none!important;-webkit-overflow-scrolling:touch}
  .reseller-card .reseller-details[open]>summary{background:#fff;border:1px solid #dce5dc;border-radius:13px;padding:14px;font-size:15px;min-height:48px}
  .reseller-card .reseller-details[open] .sheet-close{display:block;position:sticky;top:0;z-index:3;width:100%;margin:12px 0;padding:12px 15px;min-height:48px;border-radius:11px;border:1px solid #d4e0d5;background:#eaf3e9;color:#16432d;font-size:14px;font-weight:800;text-align:left}
  .reseller-card .reseller-details[open]>.form-grid{display:grid;grid-template-columns:minmax(0,1fr)}
  .reseller-card .reseller-details[open] .two-cols{display:grid;grid-template-columns:minmax(0,1fr)}
  .reseller-card .reseller-details[open] .btn.primary{width:100%;min-height:54px}
  .reseller-card .reseller-details[open] .delete-form{padding:10px 0 22px}
  .reseller-card .reseller-details[open] .delete-form .btn{width:100%}
  body.sheet-open{overflow:hidden}
  /* Other management pages: readable stat cards, forms, and controls. */
  .analytics-panels,.analytics-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px}
  .analytics-filter{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px}
  .analytics-filter label{width:100%;max-width:100%}
  .analytics-filter button{width:100%}
  .order-row{padding:15px;max-width:100%;overflow:hidden}
  .order-top,.order-main{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px}
  .order-main .order-staff-photo{width:73px;height:73px;flex:0 0 73px}
  .order-main>div{flex:1 1 160px;min-width:0}
  .order-main .price{width:100%;text-align:right}
  .order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .order-actions>select{grid-column:1/-1}
  .order-actions .notes{grid-column:1/-1}
  .order-actions>.btn,.order-actions>.check{min-width:0;width:100%}
  .payment-confirm{padding:12px}
  .payment-confirm button{width:100%;min-height:51px}
  .dashboard-sales{padding:18px;gap:12px;margin:0 0 23px}
  .dashboard-sales .btn{width:100%}
  .kpi-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer{flex-wrap:wrap;gap:5px;padding:19px 0}
  .photo-zoom-modal,.review-shade,.overlay{max-width:100vw}
  .review-card,.tablet-order-modal,.landscape-review{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;overflow-y:auto}
  .order-dialog-layout,.review-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
  .product-showcase{position:static}
  .showcase-photo{height:clamp(160px,33vh,270px)}
}
@media(max-width:380px){
  .shell{padding:0 11px}
  .photo-pickers{grid-template-columns:minmax(0,1fr)}
  .reseller-numbers{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .reseller-numbers span:last-child{grid-column:1/-1}
  .order-actions{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:761px) and (max-width:1000px){
  .reseller-cards{grid-template-columns:minmax(0,1fr)}
  .catalog-page .admin-columns{grid-template-columns:minmax(0,1fr)}
  .tablet-order-modal{width:min(96vw,900px)}
}
@media print{.nav-toggle{display:none!important}.create-disclosure:not([open]){display:none}}

/* V1.9 — tableau de bord plus lisible, sans altérer les chiffres existants */
.stats{gap:15px;margin:12px 0 29px}
.stats .stat{border-radius:17px;padding:clamp(16px,2vw,23px);border:1px solid #e4e9e1;box-shadow:0 8px 24px rgba(25,63,41,.055);background:linear-gradient(160deg,#fff 74%,#f7faf5)}
.stats .stat>span{font-weight:700;color:#64766a;font-size:13px}
.stats .stat strong{color:#103f2b;font-size:clamp(27px,3vw,37px);line-height:1.35}
.stats .stat small{color:#839186;font-size:12px}
.dashboard-sales{background:linear-gradient(112deg,#0a402b,#2f634a);border-radius:19px;margin:0 0 34px;box-shadow:0 12px 30px rgba(3,55,29,.13)}
.dashboard-sales .btn{color:#103e2d;background:#f4efe3;border:0;opacity:1!important}
.dashboard-sales .btn:hover{background:#fff;color:#103e2d}
.orders-list .order-row{padding:20px;border-radius:17px;margin-bottom:14px}
.order-top{gap:10px}
.order-top>div{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.order-top .order-no{color:#a95a4a}
.order-staff-photo{border-radius:13px;aspect-ratio:1/1;object-fit:contain}
.order-row .order-main h3{font-size:17px}
.order-row .order-actions{padding-top:12px}
@media(max-width:760px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:9px 0 19px}
  .stats .stat{padding:14px 12px;min-width:0}
  .stats .stat>span{font-size:11px}
  .stats .stat strong{font-size:clamp(25px,7vw,32px)}
  .stats .stat small{font-size:10px;overflow-wrap:anywhere}
  .dashboard-sales{padding:20px;margin:0 0 28px}
  .orders-list .order-row{padding:15px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* V1.9 — aperçu des meilleures ventes et des revendeurs au tableau de bord */
.dashboard-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 32px}
.dashboard-insight{min-width:0;padding:24px}
.dashboard-insight .section-heading{margin-bottom:17px}
.dashboard-insight h2{font-size:clamp(21px,2.4vw,27px)}
.dashboard-insight .small-link{font-size:12px;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.insight-rows{display:grid;gap:12px}
.insight-row-main{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.insight-row-main strong{font-weight:750;color:#254d36;overflow-wrap:anywhere}
.insight-row-main span{font-size:12px;color:#819086;white-space:nowrap}
.insight-track{height:7px;border-radius:9px;overflow:hidden;background:#edf3eb;margin-top:7px}
.insight-track>div{height:100%;background:linear-gradient(90deg,#597d44,#1d5c3d);border-radius:9px}
.reseller-insight{display:grid;grid-template-columns:37px minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px 0;border-bottom:1px solid #ebeee8}
.reseller-insight:last-child{border-bottom:0}
.insight-store-icon{width:37px;height:37px;border-radius:12px;display:grid;place-items:center;background:#eaf1e7;color:#3a683f;font-size:23px}
.insight-store-name{display:grid;min-width:0;gap:2px}
.insight-store-name strong{font-size:13px;overflow-wrap:anywhere}
.insight-store-name small{font-size:11px;color:#798a7d}
.reseller-insight>strong{font-size:13px;white-space:nowrap}
@media(max-width:860px){.dashboard-insights{grid-template-columns:minmax(0,1fr);gap:12px}.dashboard-insight{padding:18px}}
@media(max-width:380px){.reseller-insight{grid-template-columns:33px minmax(0,1fr)}.reseller-insight>strong{grid-column:2;justify-self:start}}
/* =======================================================================
   BOITIFULL V2.0 — direction graphique validée : ivoire, photo bois,
   bandeau photographique, KPI, courbes, produits, catégories et boutiques.
   Les valeurs affichées restent celles de la base SQLite existante.
   ======================================================================= */
:root{--v2forest:#073c29;--v2olive:#728a35;--v2paper:#fbf8f3;--v2line:#ebe8e0;--v2text:#1e392d;--v2muted:#758077;--v2shadow:0 6px 20px rgba(75,54,32,.055)}
body.is-staff{background:var(--v2paper);color:var(--v2text)}
body.is-staff .page-bg{background:radial-gradient(ellipse at 91% 5%,#f4e9df 0%,transparent 34%),linear-gradient(160deg,#fefaf6 0%,#faf7f1 72%,#f6f8f2 100%)}
body.is-staff .shell{max-width:1830px;padding:0 clamp(15px,2vw,38px)}
body.is-staff .site-header{display:grid;grid-template-columns:minmax(165px,195px) minmax(0,1fr) auto;align-items:center;gap:15px;min-height:72px;border-bottom:1px solid #e7e4da;margin-bottom:0;padding:8px 0;background:transparent}
body.is-staff .boitifull-header .boitifull-brand{max-width:195px}
body.is-staff .boitifull-header .boitifull-brand img{width:180px;max-height:53px;object-fit:contain;object-position:left center}
body.is-staff .nav{display:flex;align-items:center;justify-content:space-between;gap:2px;margin:0;padding:0;border:0;box-shadow:none;border-radius:0;background:transparent;flex-wrap:nowrap;min-width:0;max-width:100%;width:100%}
body.is-staff .nav a{font-size:clamp(10px,.7vw,12px);font-weight:700;padding:9px clamp(5px,.75vw,13px);border-radius:28px;min-height:36px;color:#2f3e34;white-space:nowrap;justify-content:center;gap:5px;display:inline-flex}
body.is-staff .nav a.active,body.is-staff .nav a:hover{background:var(--v2forest);color:#fff}
body.is-staff .nav-symbol{font-size:17px;line-height:1;font-weight:500}
body.is-staff .header-right{gap:10px;justify-self:end;white-space:nowrap}
body.is-staff .header-right .small-link{font-size:11px;text-decoration:none;color:#597265}
body.is-staff .user-chip{display:flex;align-items:center;gap:8px;font-size:11px;padding:4px 9px 4px 5px;border-radius:26px;background:#fffdf8;border:1px solid #eee9df}
body.is-staff .user-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#e1e9d2;color:var(--v2forest);font-weight:800;font-size:12px}
body.is-staff .v2-notif{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;color:var(--v2forest);font-size:22px;text-decoration:none;background:#fffdfa;border:1px solid #efe9dd}
body.is-staff .nav-toggle{display:none}
body.is-staff .flash{margin:12px 0 0;padding:8px 13px;border-radius:9px;font-size:12px}
/* Accord de l'ensemble du backoffice, pas seulement l'accueil. */
body.is-staff .panel,body.is-staff .order-row,body.is-staff .reseller-card,body.is-staff .employee-card{border-color:var(--v2line);box-shadow:var(--v2shadow)}
body.is-staff .section-heading h2{color:var(--v2forest)}
body.is-staff .btn.primary{background:var(--v2forest)}
body.is-staff .btn.primary:hover{background:#21563f}
body.is-staff .btn.outline{border-color:#dfe3d9}
/* Hero maquette sur fond photographique, contenu lisible à gauche. */
.v2-dashboard{display:grid;gap:16px;margin:0 0 32px}
.v2-welcome{position:relative;min-height:188px;isolation:isolate;display:flex;align-items:center;overflow:hidden;padding:23px 28px;border-radius:0;background:#faf5ed}
.v2-welcome::before{content:'';position:absolute;inset:0 0 0 35%;z-index:-2;background-image:var(--welcome-photo);background-size:cover;background-position:center 44%;background-repeat:no-repeat}
.v2-welcome::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fcf8f2 0%,#fcf8f2 34%,rgba(252,248,242,.95) 40%,rgba(252,248,242,.28) 60%,rgba(252,248,242,.02) 85%)}
.v2-welcome-copy{max-width:660px;position:relative;z-index:1}
.v2-welcome .eyebrow{color:#b45c50;font-size:10px;font-weight:800;letter-spacing:.22em;margin:0 0 11px}
.v2-welcome h1{font:700 clamp(36px,3.2vw,58px)/1.05 'Playfair Display',Georgia,serif;letter-spacing:-.04em;color:#063824;margin:0 0 7px}
.v2-welcome .sparkle{font-family:Georgia,serif;color:#83a63e;font-size:.75em}
.v2-welcome p{font-size:clamp(12px,.86vw,15px);color:#626a62;line-height:1.45;margin:0}
.v2-welcome-rule{width:53px;height:3px;background:#83a63e;display:block;margin-top:14px}
.v2-hero-setting{position:absolute;bottom:8px;right:14px;color:#16452f;background:#fffdf3e0;backdrop-filter:blur(8px);border-radius:15px;padding:6px 10px;font-size:10px;font-weight:750;opacity:.15;transition:opacity .18s}
.v2-welcome:hover .v2-hero-setting,.v2-hero-setting:focus-visible{opacity:1}
/* KPI 5 colonnes comme la maquette de référence. */
.v2-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.v2-kpi{min-width:0;min-height:117px;display:flex;gap:12px;align-items:flex-start;padding:18px 17px;background:#fff;border:1px solid var(--v2line);border-radius:17px;box-shadow:var(--v2shadow);transition:transform .16s,box-shadow .16s}
.v2-kpi:hover{transform:translateY(-2px);box-shadow:0 10px 23px rgba(31,63,38,.1)}
.v2-kpi-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#eef3e5;color:#477d36;font-size:26px;line-height:1}
.v2-kpi-data{display:grid;gap:2px;min-width:0}
.v2-kpi-data>span{font-size:11.5px;font-weight:750;line-height:1.25;color:#2b4033}
.v2-kpi-data strong{font-family:'Playfair Display',Georgia,serif;font-weight:700;line-height:1.25;letter-spacing:-.035em;font-size:clamp(23px,2vw,36px);color:#0b3e2a;font-variant-numeric:tabular-nums;white-space:nowrap}
.v2-kpi-data small{font-size:10.5px;color:#718077;line-height:1.4}
.v2-kpi-main{background:radial-gradient(ellipse at 97% 97%,#2f6b4a 0%,transparent 45%),linear-gradient(125deg,#063b29,#1a5c3d);border-color:#1a573d}
.v2-kpi-main .v2-kpi-icon{color:#e5ddaa;background:#174831}
.v2-kpi-main .v2-kpi-data>span,.v2-kpi-main .v2-kpi-data strong{color:#fff}
.v2-kpi-main .v2-kpi-data small{color:#dce9df}
/* Grille analytique en trois zones / partie basse en deux zones. */
.v2-analytics-row{display:grid;grid-template-columns:minmax(0,1.64fr) minmax(0,1.08fr) minmax(0,1.03fr);gap:15px;align-items:stretch}
.v2-bottom-row{display:grid;grid-template-columns:minmax(0,2.13fr) minmax(0,.96fr);gap:15px;align-items:stretch}
.v2-widget{min-width:0;min-height:0;padding:20px 19px;border:1px solid var(--v2line);border-radius:17px;background:#fff;box-shadow:var(--v2shadow)}
.v2-widget-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}
.v2-widget-header h2{font-family:'Playfair Display',Georgia,serif;font-size:clamp(19px,1.5vw,27px);color:#123a28;margin:0 0 4px;letter-spacing:-.035em;line-height:1.16}
.v2-widget-header p{font-size:11px;color:#849085;margin:0}
.v2-heading-icon{font:700 22px/1 Arial,sans-serif;margin-right:6px;color:#82932f;vertical-align:-1px}
.v2-widget-link{font-size:10px;align-self:center;flex-shrink:0;font-weight:700;text-decoration:underline;text-underline-offset:3px;color:#244d38}
.v2-range{font-size:10px;padding:7px 10px;border-radius:11px;border:1px solid #e9ece5;white-space:nowrap;color:#66766a}
.v2-trend-svg{width:100%;height:auto;display:block;max-width:100%;margin:6px 0 0}
.v2-chart-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #f0f1ec;margin-top:6px;padding-top:9px;font-size:10px;color:#7e8d81}
.v2-chart-foot strong{font-weight:800;color:#21583b;font-size:12px}
.v2-empty{margin:13px 0 0;padding:22px 8px;text-align:center;border:1px dashed #d7e1d4;border-radius:11px;color:#8b978d;font-size:12px}
.v2-donut-layout{display:grid;grid-template-columns:minmax(122px,46%) minmax(0,1fr);gap:15px;align-items:center;margin-top:28px}
.v2-donut{width:100%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;max-width:210px;box-shadow:0 2px 4px #00000005}
.v2-donut>span{width:58%;height:58%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:white;text-align:center;padding:4px}
.v2-donut strong{font:700 clamp(12px,1.25vw,20px)/1.2 'Playfair Display',Georgia,serif;white-space:nowrap;color:#1d422f}
.v2-donut small{font-size:10px;color:#818f84}
.v2-donut-legend{display:grid;gap:11px;min-width:0}
.v2-donut-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:7px;align-items:center;font-size:10px;min-width:0}
.v2-donut-legend i{width:9px;height:9px;border-radius:50%;display:block}
.v2-donut-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b6c60}
.v2-donut-legend strong{font-size:10px;color:#233d2f}
.v2-category-list{display:grid;gap:5px}
.v2-category-row{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px solid #eff0eb;min-width:0}
.v2-category-row:last-child{border:0}
.v2-category-thumb{width:55px;height:48px;border-radius:8px;flex:0 0 55px;background:#eadcca;display:grid;place-items:center;color:#738a51;font-size:28px;overflow:hidden}
.v2-category-thumb img{height:100%;width:100%;object-fit:contain}
.v2-category-row>span:last-child{display:grid;min-width:0;gap:3px}
.v2-category-row strong{font-size:11.5px;color:#233c2c;overflow-wrap:anywhere}
.v2-category-row small{font-size:10px;color:#8c988b}
/* Tableau miniature de commandes, cliquer sur les numéros renvoie à la gestion. */
.v2-orders-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.v2-orders-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.35;min-width:660px}
.v2-orders-table th{text-transform:uppercase;letter-spacing:.04em;background:#f3f0eb;text-align:left;padding:9px 8px;color:#67766a;font-size:9px;white-space:nowrap}
.v2-orders-table th:first-child{border-radius:6px 0 0 6px}.v2-orders-table th:last-child{border-radius:0 6px 6px 0}
.v2-orders-table td{padding:10px 8px;border-bottom:1px solid #eeeae3;vertical-align:middle}
.v2-orders-table tr:last-child td{border-bottom:0}
.v2-orders-table td:nth-child(2){white-space:nowrap}
.v2-orders-table .v2-order-number{color:#b55946;font-weight:800}
.v2-table-product{display:flex;align-items:center;gap:9px;min-width:0}
.v2-table-product img,.v2-product-placeholder{width:46px;height:33px;border-radius:6px;object-fit:contain;background:#e7dac8;display:grid;place-items:center;flex:0 0 46px}
.v2-table-product>span:last-child{display:grid;gap:2px;color:#284333;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2-table-product small{font-size:9px;color:#8e998d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2-state{white-space:nowrap;font-size:9px;color:#376644;background:#e8f3e5;padding:6px 9px;border-radius:20px;font-weight:800}
.v2-state-wait{color:#926a2e;background:#fff0d6}
.v2-table-empty{text-align:center;color:#98a298;font-size:12px;padding:22px!important}
.v2-reseller-rows{display:grid;gap:5px;margin-top:17px}
.v2-reseller-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #f1efea}
.v2-reseller-row:last-child{border:0}
.v2-reseller-symbol{display:grid;place-items:center;width:35px;height:35px;background:#e8eee2;color:#577b34;border-radius:50%;font-size:24px}
.v2-reseller-row>span:nth-child(2){min-width:0;display:grid;gap:3px}
.v2-reseller-row strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2-reseller-row small{font-size:10px;color:#8b998d}
.v2-reseller-row b{font-size:11px;color:#1f4732;white-space:nowrap}
/* Settings: les photos d'ambiance, en bonne qualité et remplaçables. */
.v2-appearance-settings{scroll-margin-top:24px}
.v2-settings-preview{border:1px solid #e9e9df;border-radius:12px;overflow:hidden;padding:8px;background:#fbfaf5;display:grid;gap:7px}
.v2-settings-preview img{height:118px;width:100%;object-fit:cover;border-radius:8px}
.v2-settings-preview small{font-size:11px;color:#859285}
.v2-appearance-detail{border:1px solid #e1e8db;border-radius:11px;padding:13px}
.v2-appearance-detail summary{cursor:pointer;color:#18452e;font-weight:750}
.v2-photo-slot{padding:13px 0;border-bottom:1px solid #ecefe6;display:grid;gap:7px}
.v2-photo-slot:last-child{border:0}
.v2-photo-slot>div:first-child{display:grid;gap:7px}
.v2-photo-slot>div:first-child img{width:100%;height:80px;object-fit:cover;border-radius:8px}
.v2-photo-slot strong{color:#234c33;font-size:12px}
.v2-photo-slot>.photo-pickers{display:flex;flex-wrap:wrap}
/* Media queries: les graphiques ne compressent jamais les cellules. */
@media(max-width:1510px){
 body.is-staff .site-header{grid-template-columns:165px minmax(0,1fr) auto;gap:9px}
 body.is-staff .boitifull-header .boitifull-brand img{width:158px}
 body.is-staff .nav a{padding:8px 7px;font-size:10.5px;gap:3px}
 body.is-staff .nav-symbol{font-size:14px}
 body.is-staff .header-right .small-link{display:none}
 .v2-kpi{padding:14px 11px;gap:8px}
 .v2-kpi-icon{width:34px;height:34px;flex-basis:34px;font-size:21px}
 .v2-widget{padding:17px 15px}
}
@media(max-width:1220px){
 body.is-staff .site-header{grid-template-columns:170px 1fr auto;grid-template-rows:auto auto;gap:5px;min-height:100px}
 body.is-staff .nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:5px}
 body.is-staff .nav a{font-size:12px;padding:8px 10px}
 body.is-staff .header-right{grid-column:3;grid-row:1}
 .v2-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .v2-analytics-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 .v2-chart-widget{grid-column:1/-1}
 .v2-bottom-row{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:980px){
 body.is-staff .site-header{grid-template-columns:auto 1fr auto;grid-template-rows:auto;min-height:67px}
 body.is-staff .nav-toggle{display:inline-flex;grid-column:2;grid-row:1;justify-self:start;align-items:center;font-size:12px;padding:7px 11px;border:1px solid #e2e7df;border-radius:11px;background:#fff;min-height:40px}
 body.is-staff .nav{display:none;position:absolute;z-index:400;top:65px;left:clamp(12px,2vw,30px);right:clamp(12px,2vw,30px);width:auto;max-width:none;padding:12px;border:1px solid #e4e9e2;border-radius:14px;box-shadow:0 14px 40px #12362522;background:#fff;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:5px}
 body.is-staff.nav-open .nav{display:grid}
 body.is-staff .nav a{justify-content:flex-start;font-size:13px;padding:13px 10px;min-height:43px}
 body.is-staff .nav-symbol{font-size:17px}
 body.is-staff .header-right{grid-column:3;grid-row:1}
 .v2-welcome{min-height:190px}
}
@media(max-width:760px){
 body.is-staff .shell{padding:0 12px}
 body.is-staff .boitifull-header .boitifull-brand img{width:122px;max-height:44px}
 body.is-staff .site-header{gap:8px;grid-template-columns:minmax(95px,125px) auto auto;min-height:66px}
 body.is-staff .header-right{gap:5px}
 body.is-staff .user-chip{padding:4px;background:#f3f5ee}
 body.is-staff .user-chip .user-avatar{width:26px;height:26px}
 body.is-staff .header-right .user-chip{font-size:0}
 body.is-staff .header-right .user-chip .user-avatar{font-size:12px}
 body.is-staff .v2-notif{width:28px;height:28px;font-size:18px}
 .v2-dashboard{gap:12px}
 .v2-welcome{min-height:210px;align-items:flex-end;padding:17px 17px 23px;border-radius:0 0 15px 15px}
 .v2-welcome::before{inset:0 0 35% 0;background-position:center}
 .v2-welcome::after{background:linear-gradient(0deg,#fcf8f2 0%,#fcf8f2 30%,rgba(252,248,242,.8) 57%,rgba(252,248,242,.04) 100%)}
 .v2-welcome .eyebrow{font-size:9px;margin-bottom:5px}
 .v2-welcome h1{font-size:36px;margin-bottom:5px}
 .v2-welcome p{font-size:11px;line-height:1.4}
 .v2-welcome-rule{margin-top:7px}
 .v2-hero-setting{right:8px;top:5px;bottom:auto;opacity:1;font-size:9px}
 .v2-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .v2-kpi{padding:13px 11px;gap:8px;min-height:104px;border-radius:12px}
 .v2-kpi-icon{width:29px;height:29px;flex-basis:29px;font-size:17px;border-radius:9px}
 .v2-kpi-data>span{font-size:10px}
 .v2-kpi-data strong{font-size:clamp(20px,6vw,27px)}
 .v2-kpi-data small{font-size:9px}
 .v2-kpi-main{grid-column:1/-1;grid-row:1}
 .v2-analytics-row,.v2-bottom-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .v2-chart-widget{grid-column:auto}
 .v2-widget{padding:16px 13px}
 .v2-widget-header h2{font-size:22px}
 .v2-trend-svg{min-width:0}
 .v2-donut-layout{grid-template-columns:138px minmax(0,1fr);gap:15px}
 .v2-donut{max-width:138px}
 .v2-donut strong{font-size:15px}
 .v2-orders-table{min-width:625px}
 .v2-range{font-size:9px;padding:6px}
 .v2-appearance-settings{padding:16px}
}
@media(max-width:370px){
 .v2-kpi-icon{display:none}
 .v2-donut-layout{grid-template-columns:120px minmax(0,1fr)}
 .v2-donut{max-width:120px}
 body.is-staff .nav{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.v2-kpi{transition:none}}
@media print{body.is-staff .v2-hero-setting,body.is-staff .nav-toggle,body.is-staff .v2-notif{display:none!important}}

/* Icônes vectorielles identiques sur Windows, iPhone et Android. */
body.is-staff .nav-symbol svg{display:block;width:18px;height:18px;stroke-width:1.7}
.v2-kpi-icon svg{display:block;width:25px;height:25px;stroke-width:1.8}
.v2-notif svg{display:block;width:17px;height:17px}
@media(max-width:760px){.v2-kpi-icon svg{width:19px;height:19px}}
/* Sur téléphone : dernières commandes lisibles sans balayage horizontal. */
@media(max-width:760px){
  .v2-orders-scroll{overflow-x:visible}
  .v2-orders-table,.v2-orders-table tbody,.v2-orders-table tr{display:block;min-width:0;width:100%}
  .v2-orders-table thead{display:none}
  .v2-orders-table tr{padding:12px 0;border-bottom:1px solid #eceee6}
  .v2-orders-table tr:last-child{border-bottom:0}
  .v2-orders-table td{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;border:0;min-width:0;text-align:right;font-size:11px}
  .v2-orders-table td::before{display:block;flex:0 0 76px;text-align:left;color:#7e8b7e;font-size:10px;white-space:nowrap}
  .v2-orders-table td:nth-child(1)::before{content:'Commande'}
  .v2-orders-table td:nth-child(2)::before{content:'Client'}
  .v2-orders-table td:nth-child(3)::before{content:'Création'}
  .v2-orders-table td:nth-child(4)::before{content:'Statut'}
  .v2-orders-table td:nth-child(5)::before{content:'Date'}
  .v2-orders-table td:nth-child(6)::before{content:'Montant'}
  .v2-orders-table .v2-table-product{margin-left:auto;text-align:left;min-width:0;max-width:100%}
  .v2-orders-table .v2-table-product>span:last-child{max-width:180px}
  .v2-orders-table .v2-table-empty{display:block;text-align:center}
  .v2-orders-table .v2-table-empty::before{content:none}
}

/* =====================================================================
   BOITIFULL V2.1 — fidélité à la maquette validée, 1536 × 864.
   Les composants restent du HTML/CSS accessible et les valeurs sont réelles.
   ===================================================================== */
.v2-dashboard{gap:12px}
.v2-welcome{min-height:172px;padding:18px 27px}
.v2-welcome::before{inset:0 0 0 37%;background-position:center 48%}
.v2-welcome::after{background:linear-gradient(90deg,#fcf8f3 0%,#fcf8f3 31%,rgba(252,248,243,.92) 40%,rgba(252,248,243,.28) 59%,transparent 88%)}
.v2-welcome h1{font-size:clamp(37px,3.4vw,55px)}
.v2-welcome-copy{max-width:720px}
.v2-kpi-grid{position:relative;z-index:1;margin-top:-8px;gap:14px}
.v2-kpi{min-height:104px;padding:13px 15px;align-items:flex-start;border-radius:15px}
.v2-kpi-icon{width:39px;height:39px;flex-basis:39px;border-radius:11px}
.v2-kpi-data strong{font-size:clamp(24px,2.15vw,33px)}
.v2-kpi-main{background-image:radial-gradient(ellipse at 96% 96%,rgba(120,159,98,.31),transparent 42%),linear-gradient(125deg,#063b29,#185d3c)}
.v2-widget{border-radius:15px}
.v2-widget-header h2{font-size:clamp(19px,1.48vw,25px)}
.v2-heading-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:-4px;margin-right:6px}
.v2-heading-icon svg{height:23px;width:23px;stroke-width:1.9}
.v2-reseller-symbol svg{height:20px;width:20px}
.v2-chart-widget .v2-trend-svg{max-height:177px;margin:4px 0 0}
.v2-chart-widget .v2-chart-foot{margin-top:0;padding-top:5px}
.v2-donut-layout{grid-template-columns:minmax(108px,42%) minmax(0,1fr);margin-top:10px;gap:14px}
.v2-donut{max-width:177px}
.v2-donut-legend{gap:9px}
.v2-category-row{padding:7px 0}
.v2-bottom-row .v2-widget{min-height:210px}
.v2-orders-table td{padding:9px 8px}
.v2-kpi:hover{transform:translateY(-1px)}
body.is-staff .site-header{min-height:66px;padding:5px 0}
body.is-staff .header-right .small-link{display:none}
@media(min-width:1221px){
 .v2-analytics-row{min-height:250px}
 .v2-analytics-row .v2-widget{height:250px;overflow:hidden;padding:15px 18px}
 .v2-bottom-row .v2-widget{min-height:218px;padding:15px 18px}
 .v2-chart-widget .v2-trend-svg{height:165px}
 .v2-chart-widget .v2-chart-foot{display:none}
 .v2-donut{max-width:168px}
 .v2-donut-layout{margin-top:6px}
 .v2-widget-header{margin-bottom:7px}
}
@media(max-width:1220px){
 .v2-welcome{min-height:185px}
 .v2-kpi-grid{margin-top:0}
 .v2-widget{min-height:0}
 .v2-chart-widget .v2-chart-foot{display:flex}
}
@media(max-width:760px){
 body.is-staff .site-header{min-height:64px}
 .v2-dashboard{gap:12px}
 .v2-welcome{min-height:215px;padding:17px 16px 21px}
 .v2-welcome::before{inset:0 0 35% 0;background-position:center}
 .v2-welcome::after{background:linear-gradient(0deg,#fcf8f2 0%,#fcf8f2 29%,rgba(252,248,242,.78) 57%,rgba(252,248,242,.03) 100%)}
 .v2-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .v2-kpi{min-height:104px;padding:12px 10px}
 .v2-kpi-main{grid-column:1/-1;grid-row:1}
 .v2-kpi-icon{width:30px;height:30px;flex-basis:30px}
 .v2-donut{max-width:138px}
 .v2-donut-layout{grid-template-columns:138px minmax(0,1fr);margin-top:10px}
 .v2-chart-widget .v2-trend-svg{max-height:none}
 .v2-bottom-row .v2-widget{min-height:0}
}
/* Écrans très petits : les boutons restent tactiles sans dépasser. */
@media(max-width:350px){.v2-donut-layout{grid-template-columns:110px minmax(0,1fr);gap:9px}.v2-donut{max-width:110px}.v2-kpi-data strong{font-size:20px}}

/* BOITIFULL V2.1.1 — images d'ambiance visibles sur tous les navigateurs.
   La photo n'est plus uniquement un arriere-plan de pseudo-element :
   une vraie balise IMG prend en charge l'affichage et les photos personnalisees. */
.v2-welcome{position:relative;isolation:isolate;overflow:hidden}
.v2-welcome::before{content:none!important;background:none!important}
.v2-welcome-photo{display:block!important;position:absolute;top:0;right:0;bottom:0;left:37%;width:63%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center 48%;z-index:0;pointer-events:none}
.v2-welcome::after{z-index:1!important;pointer-events:none}
.v2-welcome-copy{position:relative;z-index:2!important}
.v2-welcome .v2-hero-setting{z-index:3!important}
@media(max-width:760px){
  .v2-welcome-photo{top:0;left:0;right:0;bottom:auto;width:100%;height:65%;object-position:center}
}

/* BOITIFULL V2.2 : borne client immersive & administration tactile */
.bf-kiosk-mode{background:#f8f4ec;color:#10372b;overflow-x:hidden}
.bf-kiosk-mode .site-header,.bf-kiosk-mode .nav,.bf-kiosk-mode .footer,.bf-kiosk-mode .page-bg{display:none!important}
.bf-kiosk-mode .shell,.bf-kiosk-mode main{max-width:none!important;margin:0!important;padding:0!important;width:100%!important}
.bf-kiosk-home{min-height:100svh;position:relative}
.bf-kiosk-intro{position:fixed;inset:0;z-index:1100;overflow:hidden;background:#1b2d23;display:grid;place-items:center}
.bf-kiosk-intro.is-hidden{display:none}
.bf-kiosk-slides,.bf-kiosk-shade{position:absolute;inset:0}
.bf-kiosk-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.5s ease-in-out;filter:brightness(.8)}
.bf-kiosk-slide.is-active{opacity:1}
.bf-kiosk-shade{background:linear-gradient(90deg,rgba(7,27,21,.83),rgba(7,27,21,.47) 55%,rgba(7,27,21,.22));pointer-events:none}
.bf-kiosk-welcome{z-index:1;color:#fff;width:min(88vw,1100px);text-align:left;margin:0 auto}
.bf-kiosk-welcome-brand{font-weight:800;font-size:clamp(2rem,4.5vw,4.4rem);letter-spacing:.07em;color:#fff}
.bf-kiosk-welcome-brand{display:inline-flex;align-items:center;max-width:min(74vw,360px);background:#fffdf6;border-radius:19px;padding:8px 20px;box-shadow:0 12px 35px #031f1740}
.bf-kiosk-welcome-brand img{display:block;width:100%;height:auto;max-height:88px;object-fit:contain}
.bf-kiosk-welcome>p{font-size:clamp(1rem,1.8vw,1.5rem);color:#e5ebd9}
.bf-kiosk-welcome h1{max-width:1050px;color:#fff;font-family:Georgia,serif;font-size:clamp(2.8rem,7vw,6.5rem);font-weight:600;line-height:1.06;letter-spacing:-.03em;margin:5vh 0 6vh}
.bf-kiosk-touch{border:2px solid #f6f5e8;background:#f6f4e9;color:#123c2e;padding:clamp(18px,2.8vw,29px) clamp(18px,3vw,43px);font-size:clamp(1.1rem,2.5vw,2rem);font-weight:750;border-radius:21px;box-shadow:0 18px 60px #0a271b45;cursor:pointer;max-width:100%;text-align:left;line-height:1.3}
.bf-kiosk-touch span{margin-left:16px;font-size:1.3em}
.bf-kiosk-touch:focus-visible,.bf-kiosk-standby:focus-visible,.bf-kiosk-category:focus-visible{outline:4px solid #9abb51;outline-offset:5px}
.bf-kiosk-shop{margin-top:28px;font-weight:600;color:#f0dfc1}
.bf-kiosk-categories{min-height:100svh;padding:clamp(18px,3vw,48px);max-width:1680px;margin:auto;background:linear-gradient(160deg,#fdfbf7,#f4f0e8)}
.bf-kiosk-categories-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin-bottom:25px}
.bf-kiosk-categories-head span{color:#a15f4b;font-weight:800;letter-spacing:.18em;font-size:.78rem}
.bf-kiosk-categories-head h1{font-family:Georgia,serif;color:#083a29;font-size:clamp(2rem,3.4vw,4rem);margin:10px 0}
.bf-kiosk-categories-head p{color:#62736a;font-size:clamp(.95rem,1.4vw,1.3rem)}
.bf-kiosk-standby{border:1px solid #b8cbb9;background:#fff;border-radius:100px;padding:14px 25px;white-space:nowrap;color:#12412f;font-weight:750;cursor:pointer}
.bf-kiosk-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,28px)}
.bf-kiosk-category{border-radius:22px;display:flex;flex-direction:column;background:#fff;color:#153929;text-decoration:none!important;border:1px solid #e3e5dc;box-shadow:0 7px 24px #162d1c12;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.bf-kiosk-category:active{transform:scale(.97)}
.bf-kiosk-category-cover{aspect-ratio:1.7;overflow:hidden;background:#e7e0d4}
.bf-kiosk-category-cover img{width:100%;height:100%;object-fit:cover;display:block}
.bf-kiosk-category-title{padding:clamp(13px,1.5vw,23px);display:flex;gap:6px;align-items:center;justify-content:space-between;min-height:80px}
.bf-kiosk-category-title strong{font-family:Georgia,serif;font-size:clamp(1rem,1.25vw,1.4rem)}
.bf-kiosk-category-title span{font-size:.87rem;white-space:nowrap;color:#51745c}
.bf-kiosk-all{text-align:center;padding:30px 10px}
.bf-kiosk-all a{color:#104831;font-weight:800}
.bf-kiosk-empty{background:#fff;padding:45px;text-align:center;border-radius:20px}
/* Le catalogue lui-même reste fonctionnel, mais sans la grande vitrine au-dessus */
.bf-kiosk-mode .hero,.bf-kiosk-mode .category-helper{display:none!important}
.bf-kiosk-mode .catalog-public{max-width:1580px;margin:auto;padding:clamp(16px,3vw,48px)}
.bf-kiosk-mode .catalog-public .section-heading{margin-bottom:16px}
.bf-kiosk-mode .shop-topbar{position:relative;z-index:1}
.bf-kiosk-mode .product-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}
.bf-kiosk-mode .order-modal{max-height:96dvh}
.bf-kiosk-admin h3{margin-top:26px}
.bf-kiosk-admin-actions{margin:15px 0 25px}
.bf-kiosk-admin input[type=range]{width:100%;accent-color:#0f5038;min-height:35px;cursor:pointer}
.bf-kiosk-slides-admin{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}
.bf-kiosk-slide-admin{border:1px solid #dee5da;border-radius:16px;overflow:hidden;background:#fafaf7;min-width:0}
.bf-kiosk-slide-admin>img{width:100%;height:130px;object-fit:cover;display:block}
.bf-kiosk-slide-controls{display:grid;gap:10px;padding:12px}
.bf-kiosk-slide-controls label{min-width:0}
.bf-kiosk-slide-controls input{max-width:100%}
.bf-kiosk-slide-admin form:last-child{padding:0 12px 12px}
.bf-kiosk-remove{border:0;background:transparent;color:#99504a;cursor:pointer;text-decoration:underline}
.bf-kiosk-slide-upload{margin-top:22px;padding:20px;border:1px dashed #a5b3a7;border-radius:16px}
.bf-kiosk-idle-warning{position:fixed;z-index:4000;bottom:25px;left:50%;transform:translateX(-50%);padding:20px 24px;background:#fff;border:3px solid #315d4c;border-radius:18px;box-shadow:0 18px 55px #0005;max-width:min(550px,95vw);text-align:center;font-size:1.12rem}
.bf-kiosk-idle-warning button{background:#11412f;color:#fff;border:0;border-radius:10px;padding:12px 20px;margin:9px;cursor:pointer}
@media(max-width:990px){.bf-kiosk-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bf-kiosk-category-title{flex-direction:column;align-items:flex-start}}
@media(max-width:630px){.bf-kiosk-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bf-kiosk-welcome h1{margin:32px 0}.bf-kiosk-touch{font-size:1.05rem}.bf-kiosk-categories-head{flex-direction:column}.bf-kiosk-category-title{min-height:74px}.bf-kiosk-category-title span{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.bf-kiosk-slide{transition:none}}


/* ==========================================================
   BOITIFULL V2.3 — ÉCRAN TACTILE MAGASIN : MAQUETTES VALIDÉES
   Les autres pages du gestionnaire conservent leur apparence.
   ========================================================== */
.bf-kiosk-mode{--kiosk-cream:#fcf5eb;--kiosk-ink:#302b23;--kiosk-accent:#775535;background:var(--kiosk-cream)!important;color:var(--kiosk-ink)}
.bf-kiosk-mode .site-header,.bf-kiosk-mode .nav,.bf-kiosk-mode .footer:not(.bf-kiosk-categories-footer),.bf-kiosk-mode .page-bg{display:none!important}
.bf-kiosk-mode .shell,.bf-kiosk-mode main{max-width:none!important;margin:0!important;padding:0!important;width:100%!important}
.bf-kiosk-mode .flash{display:none}
.bf-kiosk-home{min-height:100svh;position:relative;font-family:Arial,Helvetica,sans-serif}
.bf-kiosk-intro{position:fixed;inset:0;z-index:1100;display:block;background:#281c14;cursor:pointer;overflow:hidden;color:white;transition:opacity .6s ease,visibility .6s;user-select:none;-webkit-tap-highlight-color:transparent}
.bf-kiosk-intro.is-hidden{opacity:0;visibility:hidden;pointer-events:none;display:block}
.bf-kiosk-slides,.bf-kiosk-shade{position:absolute;inset:0}
.bf-kiosk-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.02);transition:opacity 1.6s ease-in-out,transform 7s linear;filter:saturate(.92)}
.bf-kiosk-slide.is-active{opacity:1;transform:scale(1.06)}
.bf-kiosk-shade{background:linear-gradient(90deg,rgba(35,19,13,.54),rgba(32,18,12,.44) 45%,rgba(35,19,13,.49));pointer-events:none}
.bf-kiosk-attract-brand{position:absolute;z-index:2;top:clamp(22px,6.2vh,64px);left:clamp(24px,5.4vw,105px)}
.bf-kiosk-identity{display:flex;align-items:center;gap:clamp(12px,1.3vw,20px);max-width:min(440px,70vw);min-height:68px;min-width:0}
.bf-kiosk-identity-light{color:#ffefe0;text-shadow:0 2px 12px #1e0b07aa}
.bf-kiosk-identity-dark{color:#3a3c27}
.bf-kiosk-leaf{display:grid;place-items:center;width:clamp(62px,6vw,92px);height:clamp(62px,6vw,92px);flex-shrink:0}
.bf-kiosk-leaf svg{width:100%;height:100%}
.bf-kiosk-shop-logo{display:block;object-fit:contain;max-width:100px;max-height:86px;width:auto;height:auto;background:#fffbf2f2;border-radius:17px;padding:8px;box-shadow:0 3px 14px #0002}
.bf-kiosk-shop-name{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.5rem,2.9vw,2.75rem);line-height:1.06;max-width:350px;overflow-wrap:anywhere;white-space:normal}
.bf-kiosk-attract-center{position:absolute;inset:16% clamp(20px,6vw,100px) 9%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.bf-kiosk-attract-center h1{color:#fff!important;font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.5rem,5.25vw,5.7rem);font-weight:500;line-height:1.12;letter-spacing:-.023em;text-wrap:balance;max-width:1150px;text-shadow:0 3px 28px #210e0c88;margin:0 0 clamp(16px,3vh,36px)}
.bf-kiosk-touch-halo{width:clamp(92px,12vw,172px);height:clamp(92px,12vw,172px);border:3px solid #ffdab4;border-radius:50%;display:grid;place-items:center;color:#fff8eb;background:#c57d4788;box-shadow:0 0 0 17px #d69f6333,0 0 0 35px #dca97213,0 0 50px #ffba6599;animation:bfKioskBreathe 2.7s ease-in-out infinite;flex-shrink:0}
.bf-kiosk-touch-halo svg{display:block;width:50%;height:50%}
@keyframes bfKioskBreathe{0%,100%{transform:scale(.97);box-shadow:0 0 0 13px #d69f6333,0 0 0 30px #dca97213,0 0 40px #ffba6577}50%{transform:scale(1.035);box-shadow:0 0 0 19px #d69f634a,0 0 0 42px #dca97218,0 0 60px #ffba6588}}
.bf-kiosk-attract-center p{color:white;font-weight:500;font-size:clamp(1.25rem,2.2vw,2rem);margin:clamp(16px,3vh,36px) 0 0;text-shadow:0 3px 14px #221411aa}
.bf-kiosk-dots{position:absolute;z-index:2;bottom:clamp(20px,3.6vh,42px);left:50%;transform:translateX(-50%);display:flex;gap:13px;pointer-events:none}
.bf-kiosk-dots i{height:11px;width:11px;background:#ffffff88;border-radius:20px;transition:background .5s,transform .5s}
.bf-kiosk-dots i.is-active{background:#d7a36c;transform:scale(1.3)}
.bf-kiosk-categories{height:100svh;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#fff8ef 0%,#fdf4e9 70%,#fffaf3 100%);padding:clamp(22px,3.5vw,52px) clamp(24px,5.5vw,88px) 24px;scrollbar-color:#737f4c #f0e1d0;scrollbar-width:thin;scroll-behavior:smooth;max-width:none!important}
.bf-kiosk-categories-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 auto 13px;max-width:1440px}
.bf-kiosk-categories-head .bf-kiosk-leaf{width:clamp(52px,5vw,76px);height:clamp(52px,5vw,76px)}
.bf-kiosk-categories-head .bf-kiosk-shop-name{font-size:clamp(1.35rem,2.3vw,2.35rem)}
.bf-kiosk-standby{border:2px solid #4e603e;border-radius:999px;background:transparent;color:#3c5031;font-size:clamp(1rem,1.5vw,1.45rem);min-width:160px;min-height:68px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 22px;font-family:Georgia,serif;cursor:pointer;white-space:nowrap;box-shadow:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bf-kiosk-standby span{font-size:1.6rem}
.bf-kiosk-standby:active{transform:scale(.97);background:#ebe9d9}
.bf-kiosk-categories-copy{text-align:center;margin:clamp(4px,1.2vh,16px) auto clamp(24px,3vh,37px);max-width:1250px}
.bf-kiosk-categories-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.1rem,4vw,4.25rem);font-weight:500;line-height:1.14;letter-spacing:-.027em;color:#322920;margin:0 0 9px;text-wrap:balance}
.bf-kiosk-categories-copy p{font-size:clamp(1rem,1.6vw,1.5rem);font-style:italic;color:#805d4b;line-height:1.35;margin:0}
.bf-kiosk-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:1440px;gap:clamp(14px,1.8vw,28px);margin:0 auto}
.bf-kiosk-category{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:24px;background:#fff7ec;color:#2e3627;text-decoration:none!important;box-shadow:0 9px 21px #65482a1c,0 2px 4px #4a35230e;border:1px solid #f0e0cf;cursor:pointer;transform:scale(1);transition:transform .14s ease-out,box-shadow .14s ease-out;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bf-kiosk-category:active{transform:scale(.97);box-shadow:0 3px 10px #65482a33}
.bf-kiosk-category-cover{width:100%;aspect-ratio:1.1;overflow:hidden;background:#d7c2a8;flex-shrink:0}
.bf-kiosk-category-cover img{display:block;width:100%;height:100%;object-fit:cover}
.bf-kiosk-category-title{display:flex;justify-content:center;align-items:center;text-align:center;min-height:70px;padding:11px 12px;background:linear-gradient(#fff8ef,#fff4e7);width:100%}
.bf-kiosk-category-title strong{font-family:Georgia,serif;font-size:clamp(1.2rem,1.75vw,1.95rem);font-weight:500;line-height:1.15;overflow-wrap:anywhere}
.bf-kiosk-categories-footer{display:flex!important;align-items:center;justify-content:center;gap:34px;font-size:clamp(.9rem,1.2vw,1.25rem);color:#684a39;text-align:center;padding:clamp(25px,3vw,48px) 0 12px;margin:0 auto;max-width:930px}
.bf-kiosk-footer-line{height:1px;background:#c6a184;flex:1;min-width:20px}
.bf-kiosk-empty{padding:38px;text-align:center;color:#674c3c;background:#fffdf8;border-radius:20px}
.bf-kiosk-mode .catalog-public{max-width:1450px!important;margin:0 auto!important;padding:20px clamp(22px,4vw,60px) 50px!important;background:#fff8ed;min-height:calc(100dvh - 98px)}
.bf-kiosk-mode .hero,.bf-kiosk-mode .category-helper{display:none!important}
.bf-kiosk-mode .section-heading{margin:0 0 22px}
.bf-kiosk-mode .section-heading h2{color:#292a1f;font-size:clamp(2rem,3vw,3.25rem)}
.bf-kiosk-mode .shop-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px}
.bf-kiosk-mode .shop-topbar a,.bf-kiosk-mode .product-card .btn{min-height:64px;display:flex;align-items:center;justify-content:center;font-size:clamp(1rem,1.25vw,1.25rem);border-radius:14px;touch-action:manipulation}
.bf-kiosk-mode .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.bf-kiosk-mode .product-card{border-radius:22px;overflow:hidden;background:#fffdf9;min-width:0}
.bf-kiosk-mode .product-cover{height:auto;aspect-ratio:1.15}
.bf-kiosk-mode .product-meta h3{font-size:clamp(1.05rem,1.4vw,1.45rem)}
.bf-kiosk-mode .product-meta p{font-size:clamp(.9rem,1vw,1.05rem)}
.bf-kiosk-product-head{display:flex;justify-content:space-between;align-items:center;gap:22px;min-height:100px;padding:14px clamp(25px,5vw,80px);background:#fff8ed;border-bottom:1px solid #e9d9ca}
.bf-kiosk-product-head .bf-kiosk-shop-name{font-size:clamp(1.25rem,2vw,2.2rem)}
.bf-kiosk-back-link{min-height:64px;display:flex;gap:10px;align-items:center;justify-content:center;text-decoration:none;color:#385036;border:2px solid #9bab8c;border-radius:999px;padding:12px 23px;font-size:clamp(1rem,1.3vw,1.4rem);font-weight:600;white-space:nowrap}
.bf-kiosk-mode .order-modal{max-height:95dvh;max-width:1150px;overflow:auto}
.bf-kiosk-mode .modal-close{min-width:64px;min-height:64px;display:grid;place-items:center;top:0;right:3px;font-size:36px;touch-action:manipulation}
.bf-kiosk-mode .order-modal input,.bf-kiosk-mode .order-modal select,.bf-kiosk-mode .order-modal textarea{font-size:16px;min-height:54px}
.bf-kiosk-mode .order-modal label.check{font-size:15px}
.bf-kiosk-mode .order-modal button.btn{min-height:65px;font-size:1.1rem}
.bf-kiosk-admin .bf-kiosk-materials-form{display:grid;gap:7px;justify-items:start;padding:15px 0}
@media(max-width:1050px){.bf-kiosk-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bf-kiosk-mode .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.bf-kiosk-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-kiosk-mode .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-kiosk-categories-head{gap:8px}.bf-kiosk-categories-head .bf-kiosk-identity{max-width:60%}.bf-kiosk-standby{min-width:110px;min-height:64px;font-size:1rem}.bf-kiosk-shop-name{font-size:1.3rem}.bf-kiosk-category-title{min-height:64px}.bf-kiosk-categories-footer{gap:10px}.bf-kiosk-attract-center{inset:14% 4% 12%}.bf-kiosk-attract-center h1{font-size:clamp(2.05rem,7vw,3.6rem)}.bf-kiosk-product-head{padding:14px 18px}}
@media(max-height:640px) and (orientation:landscape){.bf-kiosk-attract-center h1{font-size:clamp(2rem,5vw,3.6rem);margin-bottom:14px}.bf-kiosk-attract-center p{margin-top:14px}.bf-kiosk-touch-halo{width:90px;height:90px}.bf-kiosk-categories-copy{margin-bottom:20px}.bf-kiosk-categories-copy h1{font-size:clamp(1.8rem,3.5vw,2.8rem)}}
@media(prefers-reduced-motion:reduce){.bf-kiosk-intro,.bf-kiosk-slide,.bf-kiosk-touch-halo,.bf-kiosk-category,.bf-kiosk-dots i{transition:none!important;animation:none!important}}
/* Correct only the shop identity; generic older span rule must not letter-space it. */
.bf-kiosk-categories-head .bf-kiosk-identity .bf-kiosk-shop-name{letter-spacing:0!important;font-weight:500!important;font-size:clamp(1.5rem,2.45vw,2.6rem)!important;color:#3a3c27!important;text-transform:none!important}
.bf-kiosk-categories-head .bf-kiosk-identity .bf-kiosk-leaf{letter-spacing:normal!important}

/* BOITIFULL V2.4 — Panier unique, commandes multi-produits, caisse tactile. */
.bf-kiosk-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.bf-cart-badge{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:64px;min-width:168px;border-radius:999px;border:2px solid #c5b9a4;background:#fffaf1;color:#22472f!important;text-decoration:none!important;font-size:clamp(1rem,1.26vw,1.25rem);font-weight:700;padding:11px 23px;box-shadow:0 4px 16px #58492d12;touch-action:manipulation}
.bf-cart-badge:active,.bf-kiosk-head-actions a:active{transform:scale(.97)}
.bf-cart-add-form input,.bf-cart-add-form textarea{min-height:64px;font-size:18px}
.bf-cart-add-form .btn{min-height:68px;font-size:1.1rem}
.bf-cart-page{background:linear-gradient(145deg,#fff9f0,#f9f3e8);min-height:100dvh;padding:0 clamp(18px,4vw,65px) 80px;color:#23382c}
.bf-cart-header{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1440px;margin:0 auto;padding:22px 0;border-bottom:1px solid #ebdecf}
.bf-cart-title{max-width:1440px;margin:27px auto 27px}.bf-cart-title .eyebrow{color:#a1624e}
.bf-cart-title h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.1rem,3.6vw,3.6rem);line-height:1.12;margin:8px 0;color:#244632}
.bf-cart-title p{font-size:clamp(1.1rem,1.5vw,1.4rem);color:#716454;margin:0}
.bf-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,365px);align-items:start;gap:24px;max-width:1440px;margin:0 auto}
.bf-cart-list{display:grid;gap:16px;min-width:0}
.bf-cart-item{display:grid;grid-template-columns:minmax(115px,168px) minmax(0,1fr) minmax(100px,150px);gap:22px;align-items:start;background:#fffefa;border:1px solid #e7dbcb;border-radius:22px;padding:18px;box-shadow:0 6px 21px #65482a10;min-width:0}
.bf-cart-thumb{aspect-ratio:1;border-radius:14px;overflow:hidden;background:#ebdfcc;display:grid;place-items:center;font-size:3rem;color:#7d9271}
.bf-cart-thumb img{height:100%;width:100%;object-fit:cover}
.bf-cart-item-body{min-width:0}.bf-cart-item-body small{font-size:.91rem;color:#897763}.bf-cart-item-body h3{margin:5px 0 13px;font-size:clamp(1.3rem,1.8vw,1.75rem);color:#253f2e;line-height:1.18;font-family:Georgia,serif}
.bf-cart-item-body p{font-size:1.1rem;line-height:1.5}
.bf-cart-edit{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:6px 0}
.bf-cart-edit label{display:grid;gap:6px;min-width:155px;flex:1;font-size:.94rem;color:#4d554a;font-weight:650}
.bf-cart-edit label:has(input[name=quantity]){flex:0 0 100px;min-width:90px}
.bf-cart-edit input{min-width:0;width:100%;height:62px;border:1px solid #cdd5c7;background:#fff;border-radius:12px;padding:13px;font-size:18px}
.bf-cart-edit .btn{min-height:62px;padding:9px 20px;white-space:nowrap}
.bf-cart-remove button,.bf-cart-reset button{background:none;border:0;padding:12px 8px;color:#aa5148;text-decoration:underline;cursor:pointer;font-size:1rem;min-height:52px}
.bf-cart-line-price{text-align:right;display:grid;gap:7px}.bf-cart-line-price strong{font-size:clamp(1.3rem,1.8vw,1.8rem);color:#173d2c;white-space:nowrap}.bf-cart-line-price span{font-size:.89rem;color:#776e61}
.bf-cart-summary{position:sticky;top:18px;display:grid;gap:12px;background:#fffdfa;border:1px solid #e5dacb;padding:25px;border-radius:22px;box-shadow:0 9px 24px #463a2518}
.bf-cart-summary .eyebrow{color:#ad6e54}.bf-cart-summary h2{font-family:Georgia,serif;font-size:2.1rem;margin:0 0 8px;color:#254733}
.bf-cart-sumrow{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#4a5749;font-size:1.12rem}
.bf-cart-sumrow strong{white-space:nowrap}.bf-cart-total{margin:10px 0 8px;padding-top:20px;border-top:1px solid #d9e2d8;font-size:1.4rem;font-weight:700}
.bf-cart-total strong{font-size:2rem;color:#17452d}
.bf-cart-summary p{font-size:1rem;color:#687468;line-height:1.45;margin:0 0 9px}
.bf-cart-summary .btn{min-height:68px;border-radius:14px;font-size:clamp(1rem,1.25vw,1.2rem);display:flex;justify-content:center;align-items:center;text-align:center;text-decoration:none}
.bf-cart-empty{text-align:center;max-width:620px;margin:30px auto;background:#fff;border-radius:22px;padding:45px 30px;box-shadow:0 5px 18px #0001}
.bf-cart-empty-icon{font-size:4rem;color:#7b9763}.bf-cart-empty h2{font-family:Georgia,serif;color:#254733}.bf-cart-empty .btn{display:inline-flex;align-items:center;min-height:68px;margin-top:15px}
.bf-checkout{max-width:1050px;margin:35px auto 0;display:grid;grid-template-columns:minmax(185px,.6fr) minmax(0,1.4fr);gap:36px;padding:30px;border-radius:24px;background:#fffefb;box-shadow:0 7px 24px #3c362510}
.bf-checkout h2{font-family:Georgia,serif;font-size:2.15rem;color:#254833;margin:8px 0}.bf-checkout p{color:#6f736e}
.bf-checkout input,.bf-checkout textarea,.bf-checkout select{font-size:18px!important;min-height:64px!important;border-radius:13px}
.bf-checkout label{line-height:1.5;font-size:1rem}.bf-checkout button.btn{min-height:76px;font-size:1.3rem;border-radius:14px}
.bf-kiosk-mode .bf-cart-page .shell{max-width:none}.bf-kiosk-mode .bf-cart-item .btn{min-width:64px}
.bf-thanks-total{font-size:1.45rem;color:#174e2e}
.bf-order-items{margin:7px 0 12px;display:grid;gap:7px}
.bf-order-items>div{background:#f8f8f2;border:1px solid #e6eee6;border-radius:10px;padding:9px 12px;display:grid;gap:3px}
.bf-order-items strong{font-size:1rem}.bf-order-items span{font-size:.98rem;color:#43604a}
.bf-order-item-correction{padding:12px 0;border-bottom:1px solid #dee8df;display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,2fr) minmax(75px,.6fr) auto;align-items:end;gap:10px}
.bf-order-item-correction label{display:grid;gap:5px;font-size:.9rem}.bf-order-item-correction input{width:100%;min-height:50px}
@media(max-width:1000px){.bf-cart-layout{grid-template-columns:minmax(0,1fr)}.bf-cart-summary{position:static}.bf-cart-summary .btn{min-height:70px}.bf-checkout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.bf-cart-item{grid-template-columns:90px minmax(0,1fr);gap:14px;padding:13px}.bf-cart-line-price{grid-column:2;text-align:left}.bf-cart-header{flex-wrap:wrap}.bf-cart-edit{align-items:stretch}.bf-cart-edit label:has(input[name=quantity]){flex:1}.bf-cart-edit .btn{width:100%}.bf-order-item-correction{grid-template-columns:1fr 1fr}.bf-order-item-correction strong,.bf-order-item-correction .btn{grid-column:1/-1}.bf-kiosk-head-actions{justify-content:space-between}.bf-cart-badge{min-width:120px;padding:9px 12px;font-size:.95rem}.bf-kiosk-mode .shop-topbar{flex-wrap:wrap}.bf-checkout{padding:18px}.bf-cart-title{margin:16px auto}.bf-cart-title h1{font-size:2.25rem}}

/* BOITIFULL V2.5 — Accès rapide à la borne pour la boutique partenaire */
.bf-shop-kiosk-button{display:inline-flex!important;align-items:center;justify-content:center;max-width:100%;width:fit-content;margin-top:1rem;text-decoration:none;min-height:48px;white-space:normal;text-align:center}
@media(max-width:600px){.bf-shop-kiosk-button{width:100%;padding:1rem!important}}

/* BOITIFULL V2.6 — Gestion indépendante par boutique */
.bf-staff-shop-brand{display:flex;align-items:center;gap:12px;min-width:170px;text-decoration:none;color:#274b3b;font-size:1.25rem;font-weight:780;letter-spacing:-.03em;line-height:1.15}
.bf-staff-shop-brand img{width:52px;height:52px;object-fit:contain;border-radius:12px;background:#f6f3eb}
.bf-shop-catalog-columns{display:grid;grid-template-columns:minmax(280px,1fr) minmax(360px,1.6fr);gap:20px;align-items:start;margin-bottom:22px}
.bf-shop-catalog-columns>.panel{min-width:0}
.bf-shop-catalog-card{margin:12px 0;padding:14px;background:#fcfaf5;border:1px solid #e7e5d9;border-radius:16px}
.bf-shop-catalog-card>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
.bf-shop-catalog-card>summary::-webkit-details-marker{display:none}
.bf-shop-catalog-card>summary strong{color:#274b3b}
.bf-shop-catalog-card .form-grid{margin-top:18px}
.bf-shop-catalog-card>form+form{margin-top:12px}
.bf-small-photo{max-width:160px;max-height:120px;object-fit:contain;border-radius:12px}
.bf-shop-product-summary{display:flex;align-items:center;gap:12px;min-width:0}
.bf-shop-product-summary>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.bf-shop-product-summary small{font-size:.82rem;color:#6f796e}
.bf-product-mini{width:60px;height:60px;object-fit:cover;border-radius:11px;flex-shrink:0}
.bf-shop-selector{max-width:740px;margin-bottom:18px}
.bf-shop-kill{display:inline-block;margin:6px 9px 3px 0}
.bf-access-control{border:1px solid #c7d9cb;margin-bottom:20px}
.bf-shop-production-status{margin:12px 0;padding:12px 16px;background:#f0f5ef;border-radius:12px;color:#28513c}
.page-production .bf-order-items{margin:14px 0}
@media(max-width:850px){.bf-shop-catalog-columns{grid-template-columns:1fr}.bf-staff-shop-brand{font-size:1.07rem;min-width:0}}

/* BOITIFULL V2.7 — Habillage saisonnier pleine page, y compris les boutiques */
body.is-staff{isolation:isolate;background:#f7f4ee}
body.is-staff .page-bg{
 position:fixed;inset:0;z-index:-1;pointer-events:none;
 background-image:linear-gradient(115deg,rgba(255,252,247,.73),rgba(255,251,244,.82) 47%,rgba(255,252,247,.72)),var(--bf-staff-ambience);
 background-repeat:no-repeat;background-position:center;background-size:cover;
}
body.is-staff .shell{position:relative;z-index:0}
body.is-staff .site-header{background:rgba(255,253,249,.82);border-radius:0 0 14px 14px;padding-inline:10px}
body.is-staff .panel,body.is-staff .v2-widget,body.is-staff .v2-kpi:not(.v2-kpi-main),body.is-staff .order-row,body.is-staff .reseller-card,body.is-staff .employee-card{
 background-color:rgba(255,255,252,.94);backdrop-filter:blur(5px)
}
/* Motifs saisonniers subtils sur certaines cartes — pas de superposition aux boutons */
body.is-staff{--bf-flourish:'✦';--bf-flourish-color:#6a916e}
body.is-staff.theme-noel{--bf-flourish:'✧';--bf-flourish-color:#9b5751}
body.is-staff.theme-hiver{--bf-flourish:'❄';--bf-flourish-color:#5c899f}
body.is-staff.theme-printemps{--bf-flourish:'❀';--bf-flourish-color:#a8769e}
body.is-staff.theme-ete{--bf-flourish:'☀';--bf-flourish-color:#b08743}
body.is-staff.theme-automne{--bf-flourish:'❧';--bf-flourish-color:#98654e}
body.is-staff .panel,body.is-staff .v2-widget,body.is-staff .order-row{position:relative}
body.is-staff .admin-columns>.panel::after,body.is-staff .bf-shop-ambience-settings::after,body.is-staff .v2-widget::after,body.is-staff .bf-cashier-order::after,body.is-staff .order-row::after{
 content:var(--bf-flourish);position:absolute;right:13px;top:8px;line-height:1;font-family:Georgia,serif;font-size:27px;
 color:var(--bf-flourish-color);opacity:.18;pointer-events:none;user-select:none
}
body.is-staff .v2-widget::after{font-size:20px;right:8px;top:6px;opacity:.13}
body.is-staff .user-avatar{overflow:hidden;background:#fff;display:grid;place-items:center}
body.is-staff .user-avatar img{width:100%;height:100%;display:block;object-fit:contain;padding:2px}
body.is-staff .user-avatar:has(img[src*="boitifull-logo"]){width:38px;height:32px;border-radius:9px;padding:1px}
body.is-staff .user-avatar:has(img[src*="boitifull-logo"]) img{padding:1px}
body.is-staff .user-avatar svg{display:block;width:19px;height:19px}
body.is-staff .user-chip{max-width:270px}
body.is-staff .bf-caisse-counter{min-width:19px;height:19px;border-radius:40px;display:inline-grid;place-items:center;padding:0 5px;background:#bf6350;color:white;font-size:10px;margin-left:2px}
body.is-staff .bf-shop-checkout-alert{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:15px 20px;border:1px solid #e8c58f;background:#fff3df;border-radius:14px;color:#623e19;text-decoration:none;font-size:13px}
body.is-staff .bf-shop-checkout-alert>span:first-child{background:#f5dca9;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:17px}
body.is-staff .bf-shop-checkout-alert strong{font-size:16px}
.bf-cashier-summary{display:flex;gap:18px;align-items:center;margin:20px 0;padding:20px 24px;border-radius:15px;background:#194a39;color:#fff}
.bf-cashier-summary strong{font:700 39px/1 Georgia,serif}
.bf-cashier-list{display:grid;gap:20px}
.bf-cashier-order{padding:25px 26px}
.bf-cashier-head{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e7e9df;padding-bottom:14px;margin-bottom:14px}
.bf-cashier-head h2{font-size:clamp(21px,2vw,28px);margin:5px 0}
.bf-cashier-head small{color:#69756b}
.bf-cashier-total{text-align:right;display:grid;gap:3px;flex-shrink:0}
.bf-cashier-total small{font-size:11px;color:#57715f;letter-spacing:.09em;font-weight:800}
.bf-cashier-total strong{font:700 clamp(25px,3.8vw,42px)/1.12 Georgia,serif;color:#164937}
.bf-cashier-pay{display:flex;justify-content:flex-end;margin-top:17px}
.bf-cashier-pay .btn{white-space:normal;min-height:52px;font-size:15px}
.bf-shop-ambience-settings{max-width:850px;margin:15px 0 32px}
.bf-shop-ambience-settings .v2-settings-preview img{width:100%;height:min(30vh,250px);object-fit:cover;border-radius:14px}
@media(max-width:760px){
 body.is-staff .page-bg{background-image:linear-gradient(120deg,rgba(255,252,247,.93),rgba(255,250,245,.88)),var(--bf-staff-ambience)}
 .bf-cashier-order{padding:16px}
 .bf-cashier-head{align-items:flex-start;flex-direction:column}
 .bf-cashier-total{text-align:left}
 .bf-cashier-pay .btn{width:100%}
 body.is-staff .user-chip{max-width:92px}
 body.is-staff .user-chip .user-avatar img{width:100%;height:100%}
}
@media print{
 body.is-staff .page-bg{display:none!important}
 body.is-staff .admin-columns>.panel::after,body.is-staff .bf-shop-ambience-settings::after,body.is-staff .v2-widget::after,body.is-staff .bf-cashier-order::after,body.is-staff .order-row::after{display:none!important}
}


/* BOITIFULL V2.7.1 — CORRECTIF : image saisonnière réellement visible derrière tout le gestionnaire.
   L'ancien z-index:-1 plaçait le décor sous le fond du document selon le navigateur.
   On garde le décor en fond FIXE, puis tous les contenus (y compris menus et fenêtres) au-dessus. */
body.is-staff{background:#f7f4ee}
body.is-staff > .page-bg{
 position:fixed!important;
 inset:0!important;
 z-index:0!important;
 pointer-events:none!important;
 background-color:#ede8dd!important;
 background-image:
  linear-gradient(115deg,rgba(255,252,247,.72) 0%,rgba(255,251,246,.68) 48%,rgba(255,252,247,.74) 100%),
  var(--bf-staff-ambience,none)!important;
 background-repeat:no-repeat!important;
 background-size:cover!important;
 background-position:center center!important;
}
body.is-staff > .shell{
 position:relative!important;
 z-index:1!important;
 background:transparent!important;
}
/* Voile un peu plus soutenu sur les petits écrans, sans perdre le décor. */
@media(max-width:760px){
 body.is-staff > .page-bg{
  background-image:linear-gradient(115deg,rgba(255,252,247,.83),rgba(255,250,245,.79)),var(--bf-staff-ambience,none)!important;
 }
}
@media print{body.is-staff > .page-bg{display:none!important}body.is-staff{background:white!important}}



/* ============================================================
   BOITIFULL V2.8 : fonds premium dédiés à la page, distincts des bandeaux.
   Fonctionne pour l'admin et pour chaque revendeur. Le mode est dans le
   data-bf-wallpaper du body, calculé côté serveur à partir des réglages.
   Les ressources sont relatives au fichier CSS /assets/style.css.
   ============================================================ */
body.is-staff > .page-bg {
  position:fixed!important;
  inset:0!important;
  z-index:0!important;
  background-color:#f4f0e7!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
  pointer-events:none!important;
}
body.is-staff > .shell {
  position:relative!important;
  z-index:1!important;
  background:transparent!important;
}
body.is-staff[data-bf-wallpaper="noel"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/noel.webp")!important;
}
body.is-staff[data-bf-wallpaper="hiver"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/hiver.webp")!important;
}
body.is-staff[data-bf-wallpaper="printemps"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/printemps.webp")!important;
}
body.is-staff[data-bf-wallpaper="ete"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/ete.webp")!important;
}
body.is-staff[data-bf-wallpaper="automne"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/automne.webp")!important;
}
body.is-staff[data-bf-wallpaper="halloween"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/halloween.webp")!important;
}
body.is-staff[data-bf-wallpaper="classique"] > .page-bg {
  background-image:linear-gradient(105deg,rgba(255,252,247,.30),rgba(255,252,248,.42) 45%,rgba(255,252,247,.28)),url("wallpapers/classique.webp")!important;
}

/* Le mode personnel conserve sa photo choisie, sans la substituer aux fonds HD de saison. */
body.is-staff[data-bf-wallpaper="personnalise"] > .page-bg{
  background-image:linear-gradient(105deg,rgba(255,252,247,.36),rgba(255,252,248,.45)),var(--bf-staff-ambience,none)!important;
}
/* Panneaux légers mais parfaitement lisibles, sans flous GPU multipliés. */
body.is-staff .panel,
body.is-staff .v2-widget,
body.is-staff .v2-kpi:not(.v2-kpi-main),
body.is-staff .order-row,
body.is-staff .reseller-card,
body.is-staff .employee-card,
body.is-staff .bf-cashier-order {
  background-color:rgba(255,253,249,.89)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  border-color:rgba(115,94,72,.16);
}
body.is-staff .site-header{
  background:rgba(255,253,248,.93)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.is-staff{
  --bf-button-flourish:'❦';
  --bf-button-flourish-color:#77947b;
  --bf-season-border:#b9c8b7;
}
body.is-staff[data-bf-wallpaper="noel"]{
  --bf-button-flourish:'✧';--bf-button-flourish-color:#f1d8a4;--bf-season-border:#c0a57b;
}
body.is-staff[data-bf-wallpaper="hiver"]{
  --bf-button-flourish:'❄';--bf-button-flourish-color:#c6e4ef;--bf-season-border:#9ab7c5;
}
body.is-staff[data-bf-wallpaper="printemps"]{
  --bf-button-flourish:'❀';--bf-button-flourish-color:#f9cfdd;--bf-season-border:#b8bd8d;
}
body.is-staff[data-bf-wallpaper="ete"]{
  --bf-button-flourish:'✺';--bf-button-flourish-color:#ffe3a4;--bf-season-border:#e0bd7f;
}
body.is-staff[data-bf-wallpaper="automne"]{
  --bf-button-flourish:'❧';--bf-button-flourish-color:#f3d2aa;--bf-season-border:#c5977d;
}
body.is-staff[data-bf-wallpaper="halloween"]{
  --bf-button-flourish:'☾';--bf-button-flourish-color:#f7c99a;--bf-season-border:#aa86bb;
}
/* Une touche saisonnière sur les commandes d'action (jamais sur boutons de suppression). */
body.is-staff .btn.primary:not(.danger):not([data-no-flourish]),
body.is-staff .v2-welcome .btn.primary,
body.is-staff .bf-cashier-pay .btn.primary {
  position:relative;
  padding-right:32px;
  border:1px solid var(--bf-season-border)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 3px 10px rgba(29,60,48,.07);
}
body.is-staff .btn.primary:not(.danger):not([data-no-flourish])::after {
  content:var(--bf-button-flourish);
  pointer-events:none;
  position:absolute;
  top:50%;right:10px;
  transform:translateY(-50%);
  color:var(--bf-button-flourish-color);
  font-size:17px;
  font-weight:400;
  line-height:1;
  opacity:.9;
}
/* Discret motif sur l'onglet actif, assez loin du libellé. */
body.is-staff .nav a.active{position:relative;padding-right:23px}
body.is-staff .nav a.active::after{
  content:var(--bf-button-flourish);
  font-size:12px;position:absolute;right:7px;top:50%;
  transform:translateY(-50%);opacity:.68;pointer-events:none;
  color:var(--bf-button-flourish-color);
}
body.is-staff .v2-widget,
body.is-staff .panel{border-color:rgba(123,97,64,.17)!important}
/* Ornements existants de cadres : accords à l'ambiance affichée (indépendamment du thème public). */
body.is-staff .admin-columns>.panel::after,
body.is-staff .bf-shop-ambience-settings::after,
body.is-staff .v2-widget::after,
body.is-staff .bf-cashier-order::after,
body.is-staff .order-row::after{color:var(--bf-season-border)!important}
/* Evite d'étirer les images verticales sur les téléphones. */
@media(max-width:760px){
 body.is-staff > .page-bg{background-position:52% center!important}
 body.is-staff .panel,body.is-staff .v2-widget,body.is-staff .order-row{background-color:rgba(255,253,249,.94)!important}
 body.is-staff .nav a.active{padding-right:24px}
}
@media print{
 body.is-staff > .page-bg{display:none!important}
 body.is-staff .btn.primary::after,body.is-staff .nav a.active::after{display:none!important}
}
