/* Jorsenshop V1.1: interfaces pensées d'abord pour le pouce et l'écran mobile.
   Cette feuille définit la base téléphone, puis enrichit tablette et ordinateur.
   Pas de rendu néon, pas de décor artificiel; priorité aux photos réelles des articles. */
:root{--ink:#14253c;--muted:#657283;--line:#e7ebef;--mint:#09d6c4;--mint-dark:#008d85;--shadow:0 3px 14px #14253c0b;--font:system-ui,-apple-system,'Segoe UI',sans-serif}
html{scroll-behavior:auto;scroll-padding-top:72px}
body{font-size:14px;overflow-x:hidden;background:#fff}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,select,input[type=submit]{touch-action:manipulation}
:focus-visible{outline:2px solid #087d82;outline-offset:3px}
.wide{padding-inline:16px;width:100%}
.top-strip{padding:7px 10px;font-size:9px;letter-spacing:.085em}
.header{height:62px;box-shadow:none;z-index:40}
.header-in{height:100%;gap:7px}
.logo img{width:138px}
.header-actions{gap:1px}
.header-actions .icon-btn{width:40px;height:44px;border-radius:0}
.header-favorite{display:none}
.nav-links,.header-actions .searchbar{display:none}
.mobile-menu{display:grid}
.demo-strip{padding:6px 0;border-bottom:1px solid #e0e9e8;background:#f4f8f7;color:#4a655f}
.demo-strip .wide{display:block}
.demo-strip span{font-size:9px;line-height:1.4}
.mobile-popmenu{position:sticky;top:62px;background:#fff;z-index:39;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-bottom:1px solid var(--line)}
.mobile-popmenu a{text-align:center;padding:15px 4px;border-right:1px solid var(--line);font-weight:650;font-size:11px}
.btn{transition:background-color .15s ease,color .15s ease;min-height:44px;transform:none!important;border-radius:7px;padding:12px 17px;font-weight:650}
.btn-sm{min-height:40px}
.icon-btn{min-height:42px}
.section{padding:36px 0}
.section-head{gap:12px;align-items:center;margin-bottom:19px;flex-wrap:wrap}
.section-head h2,.section-title{font-size:23px;letter-spacing:-.035em;line-height:1.14}
.section-head .text-link{margin-left:auto}
.overline{font-weight:750;font-size:10px;letter-spacing:.12em}
/* MOBILE-FIRST EDITORIAL CAROUSEL */
.shop-carousel{position:relative;width:100%;background:#101d2e;isolation:isolate;color:#fff;touch-action:pan-y}
.carousel-stage{position:relative;height:min(122vw,550px);min-height:455px;overflow:hidden}
.carousel-slide{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .36s ease,visibility .36s ease}
.carousel-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.carousel-slide>img,.carousel-slide>video{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:50% 30%;filter:none;transform:none}
.carousel-media-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,16,30,.12) 6%,rgba(5,16,30,.13) 28%,rgba(5,16,30,.78) 100%)}
.carousel-content{position:relative;height:100%;display:flex;align-items:flex-end;padding-bottom:89px;pointer-events:none}
.carousel-copy{max-width:410px;position:relative;z-index:2;pointer-events:auto}
.carousel-kicker{font-size:10px;letter-spacing:.15em;font-weight:750;color:#b5e6e0}
.carousel-copy h1{font-size:clamp(31px,9.1vw,45px);font-weight:760;letter-spacing:-.05em;line-height:1.09;margin:13px 0}
.carousel-copy p{font-size:12px;line-height:1.65;color:#ebf0f0;max-width:330px;margin:0 0 19px}
.carousel-cta{display:inline-flex;align-items:center;gap:9px;min-height:43px;background:#fff;color:#142238;padding:11px 16px;border-radius:5px;font-size:12px;font-weight:700}
.carousel-cta svg{width:16px;height:16px}
.carousel-controls{position:absolute;bottom:17px;left:16px;right:16px;display:flex;gap:18px;align-items:center;justify-content:space-between;z-index:2}
.carousel-controls>button{height:42px;width:42px;border:1px solid #ffffff7d;border-radius:50%;background:#17233465;color:#fff;display:grid;place-items:center;cursor:pointer}
.carousel-controls>button:first-child svg{transform:rotate(180deg)}
.carousel-dots{display:flex;gap:7px;align-items:center}
.carousel-dot{height:29px;width:28px;background:transparent;border:0;display:grid;place-items:center;cursor:pointer}
.carousel-dot:after{content:'';display:block;width:21px;height:3px;background:#ffffff70;border-radius:3px}
.carousel-dot.is-active:after{background:#fff}
/* Expérience boutique mobile */
.ticker .wide{grid-template-columns:1fr 1fr;padding-block:17px;gap:8px}
.service{gap:7px;justify-content:start}
.service svg{width:20px;height:20px;flex-shrink:0}
.service b{font-size:10px}.service small{font-size:9px;line-height:1.3}
.service:last-child{display:none}
.categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.category-tile{border-radius:7px;height:190px;min-width:0}
.category-tile .ctext{padding:13px}
.category-tile b{font-size:16px}
.category-tile small{font-size:9px}
.category-tile img{transition:none}
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 10px}
.product-img{border-radius:6px;aspect-ratio:3/3.8}
.product-img img{object-position:center;transition:none}
.product-card .product-info{padding:10px 0 0}
.product-info .cat{font-size:9px;letter-spacing:.06em}
.product-info a{font-size:12px!important;font-weight:700;line-height:1.4;min-height:30px}
.product-price{font-size:13px}
.product-info .variants{font-size:9px;margin-top:4px}
.swatch{width:22px;height:22px;border-width:2px}
.swatch-row{gap:8px;margin-top:10px;align-items:center}
.product-tag{font-size:9px;top:8px;left:7px;border-radius:4px;padding:5px 6px}
.heart{width:37px;height:37px;top:6px;right:6px}
.promo{border-radius:8px;grid-template-columns:1fr;background:#eef3f2}
.promo-copy{padding:27px 20px}
.promo-copy h2{font-size:29px}
.promo-photo{height:225px;min-height:0}
.page-head{padding-block:25px}.page-head h1{font-size:29px}
.catalog-layout{display:block;padding-block:18px 52px}
.filter-panel{padding:13px 0;position:static;border:0;margin-bottom:4px}
.filter-panel h3{margin:0 0 10px}
.filter-panel .divider,.filter-panel .helper{display:none}
.filter-cat-list{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:3px 1px 10px}
.filter-cat-list::-webkit-scrollbar{display:none}
.filter-option{width:auto;flex:none;border:1px solid var(--line);border-radius:6px;padding:10px 13px;font-size:11px}
.filter-option.active{background:#0c263c;color:#fff;border-color:#0c263c}
.filter-option small{display:none}
.catalog-toolbar{align-items:center;margin-bottom:14px}.catalog-toolbar select{font-size:11px;max-width:149px;padding:9px}
.detail{display:block;padding-top:13px;padding-bottom:50px}
.gallery{display:flex;flex-direction:column-reverse;gap:9px}
.detail-main{aspect-ratio:3/3.7;border-radius:7px}
.thumbs{display:flex;flex-direction:row;gap:10px;overflow-x:auto;padding:3px 0 9px;scrollbar-width:none}
.thumbs button{flex:0 0 65px;max-width:65px}
.detail-copy{margin-top:19px}
.detail-copy h1{font-size:27px}
.variant-options{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.variant-btn{flex:0 0 auto}
.purchase-row{display:flex;gap:8px}
.purchase-row .btn-primary{flex:1;min-width:0}
.checkout-layout{grid-template-columns:1fr;gap:14px;padding-block:23px 65px}
.footer-grid{grid-template-columns:1fr 1fr;gap:25px}
.footer-grid>:first-child{grid-column:1/-1}
.footer{padding-bottom:90px}
.mobile-bottom{display:flex;height:calc(61px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -2px 12px #0000000d}
.mobile-bottom a{min-height:55px;min-width:56px;justify-content:center;font-size:10px}
.mobile-bottom svg{height:21px;width:21px}
#toast{bottom:calc(73px + env(safe-area-inset-bottom));right:13px;left:13px}
.toast-item{border-radius:8px}
/* Espaces internes: téléphone conçu comme tableau de bord compact, sans navigation desktop rétrécie. */
.staff-header{height:65px}
.staff-header-in{display:flex;align-items:center;justify-content:space-between;gap:10px;height:100%}
.staff-header .logo img{width:112px}
.staff-header-label{font-size:11px;font-weight:800;white-space:nowrap;line-height:1.2}
.staff-demo-mark{color:#008f82;background:#e6f7f4;border-radius:4px;padding:3px 4px;font-size:8px;vertical-align:middle}
.staff-back{display:flex;align-items:center;justify-content:center;width:40px;height:44px;border-radius:6px;background:#f3f6f8}
.staff-back svg{transform:rotate(180deg)}
.staff-back span{display:none}
.staff-warning{padding:8px 16px;background:#fff9ef;color:#71551b;font-size:10px;line-height:1.5;border-bottom:1px solid #f0dfbd;text-align:center}
.dashboard{padding-top:16px;padding-bottom:64px}
.dashboard .dash-layout{display:flex;flex-direction:column;gap:14px}
.dash-heading{display:flex;justify-content:space-between;align-items:start;gap:8px;flex-wrap:wrap}
.dash-heading h1{font-size:25px;margin:0}
.dash-heading p{font-size:11px;margin-top:6px}
.dash-heading .pill{font-size:9px;padding:6px 9px}
.dashboard .side{display:flex;position:static;max-width:100%;overflow:auto hidden;overscroll-behavior-x:contain;scrollbar-width:none;gap:6px;padding:4px 0 7px;background:transparent;border:0}
.dashboard .side::-webkit-scrollbar{display:none}
.dashboard .side a{display:flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px 12px;font-size:11px}
.dashboard .side a.active{background:#10233b;color:white;border-color:#10233b}
.dashboard .side .side-label{display:none}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.stat{border-radius:8px;padding:14px 11px;min-width:0;overflow:hidden}
.stat span{font-size:10px;line-height:1.35;display:block}
.stat .value{font-size:clamp(16px,4.4vw,22px);overflow-wrap:anywhere;letter-spacing:-.045em}
.stat small{font-size:9px;display:block;line-height:1.4}
.panel{padding:16px 13px;border-radius:9px;min-width:0}
.panel h2{font-size:17px}
.order-card{border-radius:7px;padding:13px;margin-bottom:12px;overflow:hidden}
.order-top{gap:7px;flex-wrap:wrap}
.order-progress{overflow:auto hidden}
.order-items{flex-wrap:wrap}
.order-items img{flex-shrink:0}
.inline-tools{gap:8px}
.inline-tools .admin-action-select{max-width:100%;min-height:42px}
.form-grid{grid-template-columns:1fr}
.field.wide-field{grid-column:auto}
.field input,.field select,.field textarea{min-height:44px}
.split{grid-template-columns:1fr;gap:13px}
.chat{display:flex;flex-direction:column;min-height:0}
.chat-list{display:flex;overflow-x:auto;min-height:75px;max-width:100%;border-right:0;border-bottom:1px solid var(--line);scrollbar-width:none}
.chat-contact{flex:0 0 180px}
.chat-messages{height:42vh;min-height:240px;max-height:370px}
.chat-input{gap:5px}
.chat-input input{min-width:0}
.chat-input .btn{padding:9px 10px}
.staff-bottom{background:#fff;z-index:50}
/* Commandes: vrais blocs verticaux sur téléphone plutôt qu'un tableau illisible. */
.data-table:has([data-label="Commande"]){display:block;width:100%;min-width:0}
.data-table:has([data-label="Commande"]) thead{display:none}
.data-table:has([data-label="Commande"]) tbody{display:grid;gap:11px}
.data-table:has([data-label="Commande"]) tr{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.data-table:has([data-label="Commande"]) td{display:flex;flex-direction:column;gap:5px;padding:0;border:0;min-width:0;font-size:11px;overflow-wrap:anywhere}
.data-table:has([data-label="Commande"]) td::before{content:attr(data-label);font-size:9px;font-weight:800;color:#7a8795;letter-spacing:.07em;text-transform:uppercase}
.data-table:has([data-label="Commande"]) td:first-child{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:9px}
.data-table:has([data-label="Commande"]) .admin-action-select{width:100%;padding:9px 5px;min-height:43px}
.table-wrap{overflow-x:auto;max-width:100%}
/* Carrousel configurable depuis l'admin */
.promo-editor{display:grid;gap:16px;margin-top:20px}
.promo-edit-card{min-width:0;border:1px solid #e1e7eb;border-radius:8px;padding:14px;margin:0}
.promo-edit-card legend{font-size:12px;font-weight:800;padding:0 6px}
.promo-preview{height:145px;overflow:hidden;background:#f3f5f7;border-radius:5px;margin-bottom:15px}
.promo-preview img{width:100%;height:100%;object-fit:cover;object-position:center}
.promo-editor>.btn{width:100%}
/* Tablette : air supplémentaire, galerie 3-4 colonnes, meilleur espace pour édition */
@media(min-width:600px){.wide{padding-inline:24px}.logo img{width:161px}.header-favorite{display:grid}.carousel-stage{height:490px;min-height:0}.carousel-content{padding-bottom:100px}.carousel-copy{max-width:500px}.carousel-copy h1{font-size:53px}.carousel-controls{left:24px;right:24px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 15px}.categories{grid-template-columns:repeat(4,1fr)}.category-tile{height:235px}.footer-grid{grid-template-columns:repeat(3,1fr)}.footer-grid>:first-child{grid-column:auto}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.promo-editor>.btn{width:auto}.promo-edit-card .form-grid{grid-template-columns:1fr 1fr}.promo-edit-card .field.wide-field{grid-column:1/-1}.staff-back{width:auto;padding:0 12px;gap:9px}.staff-back span{display:block;font-size:11px;font-weight:650}}
/* Desktop: enrichissement des mêmes composants, pas une maquette source rapetissée. */
@media(min-width:880px){.wide{max-width:1380px;padding-inline:38px}.top-strip{font-size:10px}.header{height:76px}.header-in{gap:24px}.logo img{width:194px}.nav-links{display:flex}.header-actions .searchbar{display:flex;width:180px}.mobile-menu{display:none}.demo-strip{padding:8px 0}.demo-strip span{font-size:11px}.carousel-stage{height:530px}.carousel-slide>img,.carousel-slide>video{left:auto;right:0;width:59%;object-fit:cover;object-position:center 29%}.carousel-media-shade{background:linear-gradient(90deg,#101d2e 0%,#101d2e 33%,#101d2edb 45%,#101d2e26 69%,transparent 85%)}.carousel-content{align-items:center;padding-top:8px;padding-bottom:45px}.carousel-copy h1{font-size:clamp(47px,5.6vw,71px);max-width:620px}.carousel-copy p{font-size:14px;max-width:390px}.carousel-controls{bottom:20px;left:38px;right:38px}.carousel-slide>img,.carousel-slide>video{object-position:center 36%}.section{padding:68px 0}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:27px 17px}.product-img{aspect-ratio:4/4.65}.categories{gap:15px}.category-tile{height:255px}.catalog-layout{display:grid;grid-template-columns:224px 1fr;gap:27px}.filter-panel{position:sticky;top:100px;border:1px solid var(--line);padding:19px;margin-bottom:0}.filter-cat-list{display:block;overflow:visible}.filter-option{border:0;border-radius:0;width:100%;padding:10px 0}.filter-option.active{background:transparent;color:#008b82;border-color:transparent}.filter-option small{display:block}.filter-panel .divider,.filter-panel .helper{display:block}.detail{display:grid;grid-template-columns:52% 48%;gap:33px}.gallery{display:grid;grid-template-columns:68px 1fr;gap:12px}.thumbs{flex-direction:column;overflow:visible}.thumbs button{width:auto;max-width:none;flex:auto}.detail-main{aspect-ratio:1/1.13}.checkout-layout{grid-template-columns:1.2fr .8fr;gap:30px}.footer{padding-bottom:45px}.mobile-bottom{display:none}.dashboard{padding-block:35px 85px}.dashboard .dash-layout{display:grid;grid-template-columns:215px 1fr;gap:25px}.dashboard .side{position:sticky;top:105px;flex-direction:column;overflow:visible;padding:14px;border:1px solid var(--line);border-radius:9px;align-self:start}.dashboard .side a{width:100%;border:0;background:transparent;border-radius:5px}.dashboard .side a.active{background:#10233b;color:#fff}.dashboard .side .side-label{display:block}.panel{padding:24px}.stat{padding:20px}.stat .value{font-size:25px}.split{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr 1fr}.field.wide-field{grid-column:1/-1}.chat{display:grid;grid-template-columns:240px 1fr}.chat-list{display:block;overflow-y:auto;overflow-x:hidden;border-right:1px solid var(--line);border-bottom:0}.chat-messages{height:360px}.promo-editor{grid-template-columns:1fr 1fr;align-items:start}.promo-editor>.btn{grid-column:1/-1;max-width:max-content}.data-table:has([data-label="Commande"]){display:table;width:100%}.data-table:has([data-label="Commande"]) thead{display:table-header-group}.data-table:has([data-label="Commande"]) tbody{display:table-row-group}.data-table:has([data-label="Commande"]) tr{display:table-row;padding:0;border:0}.data-table:has([data-label="Commande"]) td{display:table-cell;padding:13px 11px;font-size:12px}.data-table:has([data-label="Commande"]) td::before{display:none}.data-table:has([data-label="Commande"]) td:first-child{border-bottom:0;padding:13px 11px}.staff-header{height:75px}.staff-header-label{font-size:13px}.staff-header .logo img{width:176px}}
@media(min-width:1250px){.header-actions .searchbar{width:210px}.carousel-stage{height:565px}.promo-editor{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.carousel-slide,.product-img img,.category-tile img{transition:none!important}html{scroll-behavior:auto}}
/* Empêche les dépassements microscopiques dus aux contrôles sur les écrans de 320 px. */
html{overflow-x:clip}
