/* ============================================================
   RAYON STUDIO — Design System v5
   Canva-inspired · Fond blanc · Catalogue visuel
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:#ffffff;
  --surface:#f7f5f3;
  --surface2:#eeebe8;
  --surface3:#d9d4cf;
  --accent:#9B3522;
  --accent-hover:#832D1C;
  --accent-light:#c97a64;
  --accent-bg:#9B3522;
  --text:#1e1b18;
  --text-secondary:#504840;
  --text-muted:#8a8078;
  --danger:#dc2626;
  --success:#16a34a;
  --radius:12px;
  --radius-lg:16px;
  --radius-xl:20px;
  --topbar-h:54px;
  --bottomnav-h:60px;
  --font-display:'Playfair Display',serif;
  --font-body:'Oswald',sans-serif;
  --font-mono:'Space Mono',monospace;
  --ease:cubic-bezier(.4,0,.2,1);
  --shadow-sm:0 1px 2px rgba(0,0,0,.06);
  --shadow:0 2px 8px rgba(0,0,0,.07);
  --shadow-md:0 4px 16px rgba(0,0,0,.1);
}

html{font-size:19px;scroll-behavior:smooth}
body{font-family:var(--font-body);font-weight:300;background:var(--bg);color:var(--text);min-height:100dvh;-webkit-font-smoothing:antialiased;line-height:1.5;overflow:hidden}
.hidden{display:none!important}

/* ============ TOPBAR ============ */
.topbar{position:fixed;top:0;left:0;right:0;height:var(--topbar-h);background:var(--accent-bg);z-index:900}
.topbar-inner{max-width:1100px;height:100%;margin:0 auto;padding:0 1.25rem;display:flex;align-items:center;justify-content:space-between}
.topbar-logo{display:flex;align-items:center;gap:.65rem}
.logo-rayon{font-family:var(--font-display);font-size:1.35rem;font-weight:400;letter-spacing:5px;color:#fff}
.logo-sep{display:inline-block;width:1px;height:20px;background:rgba(255,255,255,.35)}
.logo-studio{font-family:var(--font-display);font-size:.65rem;font-weight:400;letter-spacing:4px;color:rgba(255,255,255,.8);text-transform:uppercase}
.topbar-icon-btn{position:relative;background:none;border:none;color:#fff;cursor:pointer;padding:.45rem;border-radius:var(--radius);transition:background .2s}
.topbar-icon-btn:hover{background:rgba(255,255,255,.15)}
.topbar-badge{position:absolute;top:-1px;right:-3px;background:#fff;color:var(--accent);font-size:.5rem;font-weight:700;width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-mono)}
.topbar-badge:empty{display:none}

/* ============ BOTTOM NAV ============ */
.bottomnav{position:fixed;bottom:0;left:0;right:0;height:var(--bottomnav-h);background:var(--bg);border-top:1px solid var(--surface2);display:flex;z-index:900}
.nav-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:none;color:var(--text-muted);font-family:var(--font-body);font-size:.72rem;letter-spacing:.3px;cursor:pointer;position:relative;-webkit-tap-highlight-color:transparent;transition:color .2s}
.nav-tab:hover{color:var(--text-secondary)}
.nav-tab.active{color:var(--accent)}
.nav-tab.active svg{stroke-width:2.2}
.nav-badge{position:absolute;top:4px;right:calc(50% - 22px);background:var(--accent);color:#fff;font-size:.48rem;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);padding:0 3px}
.nav-badge:empty{display:none}

/* ============ MAIN ============ */
.app-main{position:fixed;top:var(--topbar-h);bottom:var(--bottomnav-h);left:0;right:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background:var(--bg)}
.tab-view{display:none;max-width:960px;margin:0 auto;padding:0 1.15rem 2rem}
.tab-view.active{display:block}

.page-title{font-family:var(--font-display);font-size:1.6rem;font-weight:700;color:var(--text);padding:1.25rem 0 1rem;letter-spacing:.5px}

/* ============ BUTTONS ============ */
.btn{font-family:var(--font-body);font-size:.95rem;font-weight:500;padding:.7rem 1.4rem;border:none;border-radius:var(--radius);cursor:pointer;letter-spacing:.3px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;transition:background .2s,box-shadow .2s}
.btn:disabled{opacity:.3;cursor:not-allowed}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--accent);color:#fff;box-shadow:var(--shadow-sm)}
.btn-primary:hover:not(:disabled){background:var(--accent-hover);box-shadow:var(--shadow)}
.btn-ghost{background:var(--surface);color:var(--text);border:1px solid var(--surface3)}
.btn-ghost:hover{background:var(--surface2)}
.btn-lg{font-size:1.05rem;padding:.9rem 2rem;min-height:54px}
.btn-full{width:100%}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  background:linear-gradient(135deg,var(--accent-bg) 0%,#c4785e 100%);
  border-radius:0 0 var(--radius-xl) var(--radius-xl);
  padding:2.5rem 1.5rem 2rem;
  margin:0 -1.15rem 1.5rem;
  text-align:center;color:#fff;
}
.hero-title{font-family:var(--font-display);font-size:1.65rem;font-weight:700;line-height:1.25;letter-spacing:.5px}
.hero-title span{font-style:italic;font-weight:400}
.hero-sub{font-size:.9rem;opacity:.85;margin-top:.5rem;letter-spacing:1px;text-transform:uppercase;font-weight:300}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title{font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--text);margin:1.5rem 0 .85rem;letter-spacing:.3px}

/* ============================================================
   STEPS ROW (horizontal scroll)
   ============================================================ */
.steps-row{display:flex;gap:.7rem;overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.steps-row::-webkit-scrollbar{display:none}
.step-card{
  flex:0 0 auto;width:200px;scroll-snap-align:start;
  background:var(--bg);border:1px solid var(--surface2);border-radius:var(--radius-lg);
  padding:1rem 1.1rem;display:flex;align-items:center;gap:.85rem;
  box-shadow:var(--shadow-sm);transition:box-shadow .2s;
}
.step-card:hover{box-shadow:var(--shadow)}
.step-icon{width:44px;height:44px;border-radius:var(--radius);background:var(--surface);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--text-muted)}
.step-text{font-size:.95rem;line-height:1.4;color:var(--text-secondary)}
.step-num{display:block;font-size:.72rem;font-weight:700;color:var(--text-muted);letter-spacing:1px;text-transform:uppercase;margin-bottom:.2rem}

/* ============================================================
   CATALOG FILTERS
   ============================================================ */
.catalog-filters{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.5rem;scrollbar-width:none;margin-bottom:1rem}
.catalog-filters::-webkit-scrollbar{display:none}
.filter-chip{
  flex:0 0 auto;background:var(--bg);border:1.5px solid var(--surface3);border-radius:100px;
  padding:.5rem 1.1rem;font-family:var(--font-body);font-size:.9rem;
  color:var(--text-secondary);cursor:pointer;transition:all .2s;white-space:nowrap;
}
.filter-chip:hover{border-color:var(--accent-light);color:var(--accent)}
.filter-chip.active{background:var(--text);border-color:var(--text);color:#fff}

/* ============================================================
   CATALOG GRID — product cards
   ============================================================ */
.catalog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.85rem}
.product-card{
  background:var(--surface);border-radius:var(--radius-lg);overflow:hidden;
  cursor:pointer;transition:transform .2s,box-shadow .2s;
  box-shadow:var(--shadow-sm);
}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.product-card-img{
  width:100%;aspect-ratio:4/3;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface2);position:relative;overflow:hidden;
}
.product-card-img svg{width:60%;height:60%;stroke:var(--accent);fill:none;stroke-width:1;opacity:.7}
.product-card-body{padding:.85rem .9rem}
.product-card-title{font-size:1rem;font-weight:500;line-height:1.3;color:var(--text)}
.product-card-price{font-size:.88rem;color:var(--text-muted);margin-top:.25rem}
.product-card-price strong{color:var(--accent);font-family:var(--font-mono);font-weight:700}

/* ============================================================
   ARTICLES LIST (panier)
   ============================================================ */
.articles-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}
.article-card{background:var(--bg);border:1px solid var(--surface2);border-radius:var(--radius-lg);padding:.9rem 1.1rem;display:flex;align-items:center;gap:.9rem;box-shadow:var(--shadow-sm)}
.article-card-icon{width:42px;height:42px;border-radius:var(--radius);flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--surface)}
.article-card-icon svg{width:26px;height:26px;stroke:var(--accent);fill:none;stroke-width:1.5}
.article-card-info{flex:1;min-width:0}
.article-card-title{font-size:1rem;font-weight:500}
.article-card-details{font-size:.88rem;color:var(--text-muted);margin-top:.15rem;line-height:1.4}
.article-card-price{font-family:var(--font-mono);color:var(--accent);font-weight:700;font-size:1rem;white-space:nowrap}
.article-card-actions{display:flex;gap:.35rem;flex-shrink:0}
.article-action-btn{width:38px;height:38px;border:1px solid var(--surface2);border-radius:var(--radius);background:var(--surface);color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.95rem;transition:background .2s,color .2s}
.article-action-btn:hover{background:var(--surface2);color:var(--text)}
.article-action-btn.delete:hover{background:var(--danger);color:#fff}

/* Design status badges */
.design-status{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem;font-weight:500;padding:.2rem .55rem;border-radius:100px;margin-top:.25rem}
.design-status.pending{background:#FEF3C7;color:#92400E}
.design-status.done{background:#D1FAE5;color:#065F46}
.design-status.uploaded{background:#DBEAFE;color:#1E40AF}
.design-btn{font-size:.78rem;padding:.35rem .7rem;min-height:auto;border-radius:8px;margin-left:.35rem}

/* ============ CART DETAIL CARDS ============ */
.cart-detail-card{background:var(--bg);border:1px solid var(--surface2);border-radius:var(--radius-lg);margin-bottom:1rem;overflow:hidden;box-shadow:var(--shadow-sm)}
.cd-header{display:flex;justify-content:space-between;align-items:center;padding:.85rem 1.1rem;border-bottom:1px solid var(--surface2)}
.cd-title{font-size:1.05rem;font-weight:500;color:var(--text)}
.cd-actions{display:flex;gap:.35rem}
.cd-status{padding:.4rem 1.1rem;border-bottom:1px solid var(--surface2)}
.cd-section-title{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);padding:.75rem 1.1rem .4rem}
.cd-lines{padding:0 1.1rem}
.cd-line{display:flex;justify-content:space-between;align-items:flex-start;padding:.4rem 0;border-bottom:1px solid var(--surface);font-size:.88rem}
.cd-line:last-child{border-bottom:none}
.cd-line-label{flex:1;color:var(--text-secondary)}
.cd-line-detail{display:block;font-size:.72rem;color:var(--text-muted);margin-top:.1rem}
.cd-line-val{font-family:var(--font-mono);font-weight:700;color:var(--text);white-space:nowrap;margin-left:.75rem}

.cd-totals{padding:.75rem 1.1rem;background:var(--surface);border-top:1px solid var(--surface2)}
.cd-total-row{display:flex;justify-content:space-between;padding:.3rem 0;font-size:.88rem}
.cd-total-row.main{border-top:1px solid var(--surface3);padding-top:.5rem;margin-top:.3rem;font-weight:700;font-size:.95rem}
.cd-total-row.grand{font-weight:700;font-size:1.15rem;padding-top:.4rem}
.cd-val{font-family:var(--font-mono);font-weight:700}
.cd-val.accent{color:var(--accent);font-size:1.2rem}

.cd-perpiece{text-align:center;padding:.6rem 1.1rem;font-size:.88rem;color:var(--text-muted);border-top:1px solid var(--surface2)}
.cd-perpiece strong{color:var(--accent);font-family:var(--font-mono)}

.cd-market{padding:.85rem 1.1rem;border-top:1px solid var(--surface2)}
.cd-market-title{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);margin-bottom:.6rem}
.cd-market-bar{margin-bottom:.5rem}
.cd-bar-track{display:flex;height:10px;border-radius:5px;overflow:hidden;position:relative;margin-bottom:.35rem}
.cd-bar-zone{flex:1}
.zone1{background:#22c55e}
.zone2{background:#eab308}
.zone3{background:#f97316}
.zone4{background:#ef4444}
.cd-bar-cursor{position:absolute;top:-3px;width:16px;height:16px;border-radius:50%;background:var(--text);border:3px solid var(--bg);box-shadow:var(--shadow);transform:translateX(-50%)}
.cd-bar-labels{display:flex;justify-content:space-between;font-size:.62rem;color:var(--text-muted);font-family:var(--font-mono)}
.cd-market-label{font-size:.82rem;color:var(--text-secondary);text-align:center}
.cd-market-label strong{color:var(--accent)}

/* ============ CART STEPS ============ */
.cart-step{animation:fadeSlide .3s ease}
@keyframes fadeSlide{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.cart-step-sub{font-size:.9rem;color:var(--text-muted);margin-bottom:1.25rem;line-height:1.5}
.cart-step-actions{margin-top:1.5rem;padding-bottom:1rem}
.back-link{display:inline-flex;align-items:center;gap:.3rem;background:none;border:none;color:var(--text-muted);font-family:var(--font-body);font-size:.9rem;cursor:pointer;margin-bottom:.5rem;padding:.3rem 0;transition:color .2s}
.back-link:hover{color:var(--accent)}

/* ============ DELAY OPTIONS ============ */
.delay-options{display:flex;flex-direction:column;gap:.65rem;margin-bottom:1.25rem}
.delay-option{background:var(--bg);border:1.5px solid var(--surface3);border-radius:var(--radius-lg);padding:1rem 1.15rem;display:flex;align-items:center;gap:1rem;cursor:pointer;transition:all .2s;position:relative}
.delay-option:hover{border-color:var(--accent-light);background:var(--surface)}
.delay-option.selected{border-color:var(--accent);background:rgba(155,53,34,.05)}
.delay-option-icon{width:42px;height:42px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.delay-option-icon.express{background:#FEF3C7;color:#92400E}
.delay-option-icon.priority{background:#DBEAFE;color:#1E40AF}
.delay-option-icon.standard{background:#D1FAE5;color:#065F46}
.delay-option-info{flex:1}
.delay-option-title{font-size:1rem;font-weight:500}
.delay-option-detail{font-size:.82rem;color:var(--text-muted);margin-top:.1rem}
.delay-option-price{font-family:var(--font-mono);font-weight:700;font-size:1rem;white-space:nowrap}
.delay-option-price.free{color:var(--success)}
.delay-option-price.surcharge{color:var(--accent)}
.delay-option .delay-badge{position:absolute;top:-.55rem;right:.75rem;background:var(--accent);color:#fff;font-size:.6rem;font-weight:700;padding:.15rem .5rem;border-radius:100px;text-transform:uppercase;letter-spacing:.5px}
.delay-check{width:24px;height:24px;border-radius:50%;border:2px solid var(--surface3);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.7rem;color:var(--accent);transition:all .2s}
.delay-option.selected .delay-check{background:var(--accent);border-color:var(--accent);color:#fff}

/* Delay calendar */
.delay-calendar{background:var(--surface);border-radius:var(--radius-lg);padding:1rem;margin-bottom:1rem}
.delay-cal-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.6rem}
.delay-cal-title{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted)}
.delay-cal-month{font-family:var(--font-display);font-size:1rem;font-weight:700;color:var(--text)}
.delay-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.3rem}
.delay-cal-head{font-size:.6rem;color:var(--text-muted);text-align:center;padding:.3rem 0;font-weight:700}
.delay-cal-day{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--radius);font-size:.78rem;cursor:pointer;transition:all .15s;position:relative;border:1.5px solid transparent}
.delay-cal-day:hover:not(.disabled){background:var(--surface2)}
.delay-cal-day.disabled{color:var(--surface3);cursor:default}
.delay-cal-day.selected{border-color:var(--accent);background:rgba(155,53,34,.08);font-weight:700}
.delay-cal-day .day-price{font-size:.5rem;font-family:var(--font-mono);color:var(--success);font-weight:700}
.delay-cal-day.surcharge .day-price{color:var(--accent)}
.delay-cal-day.weekend{background:var(--surface2)}
.delay-cal-day.weekend:not(.disabled){border:1px solid var(--surface3)}
.delay-cal-day.weekend .day-price{color:#92400E}
.day-month-tag{position:absolute;top:1px;left:2px;font-size:.42rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.3px}

.delay-recap{background:var(--surface);border-radius:var(--radius);padding:.85rem 1rem;font-size:.9rem}
.delay-recap strong{color:var(--accent);font-family:var(--font-mono)}

/* ============ BAT ============ */
.bat-box{background:var(--surface);border-radius:var(--radius-lg);padding:1.25rem;margin-bottom:1rem}
.bat-preview{background:var(--bg);border-radius:var(--radius);border:1px solid var(--surface2);min-height:200px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;overflow:hidden}
.bat-preview img{max-width:100%;max-height:250px}
.bat-info{margin-bottom:1rem}
.bat-info p{font-size:.92rem;color:var(--text-secondary);margin-bottom:.6rem;line-height:1.5}
.bat-info ul{list-style:none;padding:0}
.bat-info ul li{font-size:.88rem;color:var(--text-secondary);padding:.3rem 0;padding-left:1.2rem;position:relative}
.bat-info ul li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:700}
.bat-retouches{display:flex;align-items:center;gap:.5rem;background:var(--bg);border-radius:var(--radius);padding:.6rem .85rem;font-size:.85rem;color:var(--text-secondary);margin:.75rem 0}
.bat-retouches svg{color:var(--accent);flex-shrink:0}
.bat-warning{display:flex;align-items:flex-start;gap:.5rem;background:#FEF3C7;border-radius:var(--radius);padding:.6rem .85rem;font-size:.82rem;color:#92400E;line-height:1.4}
.bat-warning svg{flex-shrink:0;margin-top:.1rem}
.bat-signature{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--surface2)}
.bat-check{display:flex;align-items:flex-start;gap:.6rem;cursor:pointer;font-size:.9rem;line-height:1.45;color:var(--text-secondary)}
.bat-check input{width:22px;height:22px;accent-color:var(--accent);flex-shrink:0;margin-top:.1rem;cursor:pointer}

/* ============ CGV ============ */
.cgv-box{margin-bottom:1.25rem}
.cgv-scroll{background:var(--surface);border-radius:var(--radius-lg);padding:1rem 1.15rem;max-height:300px;overflow-y:auto;margin-bottom:.85rem;font-size:.78rem;color:var(--text-secondary);line-height:1.5}
.cgv-scroll h3{font-size:.95rem;font-weight:700;color:var(--text);margin-bottom:.5rem}
.cgv-scroll h4{font-size:.82rem;font-weight:700;color:var(--text);margin:1rem 0 .35rem}
.cgv-scroll ul{padding-left:1.2rem;margin:.35rem 0}
.cgv-scroll p{margin-bottom:.35rem}

/* ============ PAYMENT ============ */
.payment-box{background:var(--surface);border-radius:var(--radius-lg);padding:1.25rem;margin-bottom:1rem}
.payment-box h3{font-family:var(--font-display);font-size:1.15rem;font-weight:700;margin-bottom:.75rem}
.payment-amount{font-family:var(--font-mono);font-size:1.6rem;font-weight:700;color:var(--accent);margin-bottom:.25rem}
.payment-detail{font-size:.82rem;color:var(--text-muted);margin-bottom:1rem}
.stripe-mock{display:flex;flex-direction:column;gap:.6rem}
.stripe-mock label{font-size:.82rem;color:var(--text-secondary);display:flex;flex-direction:column;gap:.25rem}
.stripe-input{background:var(--bg);border:1.5px solid var(--surface3);border-radius:var(--radius);padding:.65rem .75rem;font-family:var(--font-mono);font-size:.92rem;color:var(--text);transition:border-color .2s}
.stripe-input:focus{outline:none;border-color:var(--accent)}
.stripe-input::placeholder{color:var(--text-muted)}
.stripe-row{display:flex;gap:.6rem}
.stripe-row label{flex:1}
.stripe-secure{display:flex;align-items:center;gap:.4rem;font-size:.72rem;color:var(--text-muted);margin-top:.3rem}

/* ============ FORM SECTIONS ============ */
.form-section{background:var(--surface);border-radius:var(--radius-lg);padding:1.15rem;margin-bottom:1rem}
.form-section-title{font-family:var(--font-display);font-size:1.05rem;font-weight:700;margin-bottom:.85rem;color:var(--text)}
.form-row{margin-bottom:.65rem}
.form-row.two-col{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.form-field label{display:block;font-size:.82rem;color:var(--text-secondary);margin-bottom:.25rem;font-weight:400}
.form-field .optional{color:var(--text-muted);font-size:.72rem}
.form-input{width:100%;background:var(--bg);border:1.5px solid var(--surface3);border-radius:var(--radius);padding:.65rem .75rem;font-family:var(--font-body);font-size:.95rem;color:var(--text);transition:border-color .2s}
.form-input:focus{outline:none;border-color:var(--accent)}
.form-input::placeholder{color:var(--text-muted)}

/* Shipping options */
.shipping-options{display:flex;flex-direction:column;gap:.55rem}
.shipping-option{display:flex;align-items:center;gap:.75rem;background:var(--bg);border:1.5px solid var(--surface3);border-radius:var(--radius);padding:.85rem 1rem;cursor:pointer;transition:border-color .2s}
.shipping-option:hover{border-color:var(--accent-light)}
.shipping-option.selected{border-color:var(--accent);background:rgba(155,53,34,.04)}
.shipping-option input[type="radio"]{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0;cursor:pointer}
.shipping-option-content{flex:1}
.shipping-option-title{font-size:.95rem;font-weight:500;display:flex;align-items:center;gap:.5rem}
.shipping-option-detail{font-size:.78rem;color:var(--text-muted);margin-top:.15rem}
.shipping-free{color:var(--success);font-size:.82rem;font-weight:700}
.shipping-price{font-family:var(--font-mono);color:var(--accent);font-weight:700;font-size:.88rem}

.empty-list{text-align:center;padding:3rem 1rem;color:var(--text-muted)}
.empty-list p{font-size:1rem;margin-bottom:.3rem}
.empty-list .sub{font-size:.8rem}

.grand-total-bar{background:var(--accent);color:#fff;border-radius:var(--radius-lg);padding:1rem 1.2rem;display:flex;justify-content:space-between;align-items:center;font-size:1.05rem;font-weight:500;margin-top:.5rem;margin-bottom:1rem}
.grand-total-bar .val{font-family:var(--font-mono);font-size:1.25rem;font-weight:700}

/* Current articles on home */
#currentArticles{margin-top:1.5rem}
#currentArticles .section-title{margin-bottom:.75rem}

/* ============================================================
   TYPEFORM
   ============================================================ */
.typeform-view{position:fixed;top:var(--topbar-h);bottom:var(--bottomnav-h);left:0;right:0;background:var(--bg);z-index:100;overflow:hidden}
.tf-progress{position:absolute;top:0;left:0;right:0;height:3px;background:var(--surface2);z-index:10}
.tf-progress-fill{height:100%;width:0%;background:var(--accent);transition:width .5s var(--ease)}
.tf-back{position:absolute;top:14px;left:14px;z-index:10;background:var(--bg);border:1px solid var(--surface2);border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;color:var(--text-muted);cursor:pointer;transition:background .2s;box-shadow:var(--shadow-sm)}
.tf-back:hover{background:var(--surface);color:var(--text)}
.tf-slides{position:relative;width:100%;height:100%;overflow:hidden}
.tf-slide{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1.5rem;opacity:0;transform:translateY(50px);pointer-events:none;transition:opacity .4s var(--ease),transform .4s var(--ease);overflow-y:auto}
.tf-slide.active{opacity:1;transform:translateY(0);pointer-events:auto}
.tf-slide.exit-up{opacity:0;transform:translateY(-50px);pointer-events:none}

.tf-question{font-family:var(--font-display);font-size:1.75rem;font-weight:700;color:var(--text);text-align:center;margin-bottom:1.75rem;max-width:560px;line-height:1.25}
.tf-subtitle{font-size:.85rem;color:var(--text-muted);text-align:center;margin-top:-.5rem;margin-bottom:1.25rem}

.tf-choices{display:flex;flex-direction:column;gap:.6rem;width:100%;max-width:480px}
.tf-choice{background:var(--bg);border:1.5px solid var(--surface3);border-radius:var(--radius-lg);padding:1rem 1.15rem;display:flex;align-items:center;gap:.9rem;cursor:pointer;transition:border-color .2s,background .15s,transform .15s;user-select:none;min-height:56px}
.tf-choice:hover{border-color:var(--accent-light);background:var(--surface);transform:translateX(3px)}
.tf-choice.selected{border-color:var(--accent);background:rgba(155,53,34,.06)}
.tf-choice-key{width:30px;height:30px;border-radius:8px;border:1.5px solid var(--surface3);display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;color:var(--text-muted);flex-shrink:0;font-family:var(--font-mono);transition:all .2s}
.tf-choice.selected .tf-choice-key,.tf-choice:hover .tf-choice-key{border-color:var(--accent);background:var(--accent);color:#fff}
.tf-choice-icon{flex-shrink:0}
.tf-choice-icon svg{width:34px;height:34px;stroke:var(--accent);fill:none;stroke-width:1.5}
.tf-choice-label{font-size:1.05rem;font-weight:400;flex:1}
.tf-choice-sub{font-size:.82rem;color:var(--text-muted);margin-top:.15rem}
.tf-choice-price{font-family:var(--font-mono);color:var(--accent);font-size:.8rem;font-weight:700;white-space:nowrap}

/* Multi-select choices */
.tf-multi .tf-choice{cursor:pointer}
.tf-multi .tf-choice.selected{border-color:var(--accent);background:rgba(155,53,34,.06)}
.tf-check{width:26px;height:26px;border-radius:50%;border:2px solid var(--surface3);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:var(--accent);flex-shrink:0;margin-left:auto;transition:all .2s}
.tf-multi .tf-choice.selected .tf-check{background:var(--accent);border-color:var(--accent);color:#fff}

.tf-palette{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;max-width:480px}
.tf-swatch-wrap{display:flex;flex-direction:column;align-items:center;gap:.25rem;cursor:pointer}
.tf-swatch{width:52px;height:52px;border-radius:50%;border:3px solid transparent;position:relative;transition:border-color .2s,transform .2s;box-shadow:0 2px 6px rgba(0,0,0,.1)}
.tf-swatch:hover{transform:scale(1.12)}
.tf-swatch.selected{border-color:var(--accent);box-shadow:0 0 0 3px rgba(155,53,34,.2)}
.tf-swatch.selected::after{content:'✓';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.tf-swatch-label{font-size:.7rem;color:var(--text-muted);text-align:center;max-width:56px}

.tf-sizes{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;max-width:520px}
.tf-size-item{background:var(--surface);border-radius:var(--radius);padding:.75rem .9rem;display:flex;align-items:center;gap:.55rem;min-width:138px}
.tf-size-label{font-weight:700;font-size:1.05rem;min-width:30px}
.tf-qty-btn{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--surface3);background:var(--bg);color:var(--text);font-size:1.4rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s}
.tf-qty-btn:hover,.tf-qty-btn:active{background:var(--accent);color:#fff;border-color:var(--accent)}
.tf-qty-val{font-family:var(--font-mono);font-size:1.1rem;min-width:24px;text-align:center;font-weight:700}
.tf-total{margin-top:.75rem;font-size:.95rem;color:var(--text-muted);text-align:center}
.tf-total strong{color:var(--accent);font-family:var(--font-mono);font-size:1.15rem}

.tf-qty-single{display:flex;align-items:center;gap:1rem;justify-content:center;margin-top:.5rem}
.tf-qty-single .tf-qty-btn{width:54px;height:54px;font-size:1.7rem}
.tf-qty-single .tf-qty-val{font-size:1.5rem;min-width:46px}

.tf-presets{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:center;max-width:480px}
.tf-preset{background:var(--surface);border:1.5px solid transparent;border-radius:var(--radius);color:var(--text);padding:.7rem 1rem;font-size:.85rem;cursor:pointer;font-family:var(--font-body);transition:border-color .2s;min-height:46px}
.tf-preset:hover{border-color:var(--surface3)}
.tf-preset.selected{border-color:var(--accent);background:rgba(155,53,34,.06)}

.tf-manual{display:flex;gap:.75rem;align-items:center;justify-content:center;margin-top:.85rem}
.tf-manual label{font-size:.82rem;color:var(--text-muted);display:flex;align-items:center;gap:.35rem}
.tf-manual input{width:68px;background:var(--surface);border:1px solid var(--surface3);border-radius:8px;color:var(--text);padding:.45rem;font-family:var(--font-mono);font-size:.9rem;text-align:center}

.tf-continue{margin-top:1.75rem}
.tf-continue .btn{min-width:200px}

.tf-recap{background:var(--surface);border-radius:var(--radius-lg);padding:1.3rem;max-width:440px;width:100%}
.tf-recap-row{display:flex;justify-content:space-between;padding:.4rem 0;font-size:.9rem}
.tf-recap-row.total{border-top:1px solid var(--surface3);margin-top:.3rem;padding-top:.6rem;font-weight:700;font-size:1.05rem}
.tf-recap-row .val{font-family:var(--font-mono);color:var(--accent);font-weight:700}

/* ============================================================
   EDITOR
   ============================================================ */
.article-selector{display:flex;gap:.45rem;margin-bottom:.75rem;flex-wrap:wrap;padding-top:1rem}
.article-tab{background:var(--surface);border:1.5px solid transparent;border-radius:var(--radius);padding:.5rem .9rem;cursor:pointer;font-family:var(--font-body);font-size:.8rem;color:var(--text-muted);transition:all .2s;display:flex;align-items:center;gap:.4rem}
.article-tab:hover{color:var(--text)}
.article-tab.active{border-color:var(--accent);color:var(--accent)}
.article-tab-dot{width:12px;height:12px;border-radius:50%;border:1px solid var(--surface3)}

.editor-layout{display:grid;grid-template-columns:58px 1fr 210px;gap:.5rem;min-height:460px}
.editor-toolbar{background:var(--surface);border-radius:var(--radius);padding:.4rem;display:flex;flex-direction:column;align-items:center;gap:.3rem}
.tool-btn{width:44px;height:44px;border:none;border-radius:var(--radius);background:transparent;color:var(--text-muted);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;transition:all .2s}
.tool-btn:hover{background:var(--surface2);color:var(--text)}
.tool-btn.danger:hover{background:var(--danger);color:#fff}
.tool-label{font-size:.45rem;text-transform:uppercase;letter-spacing:.5px;opacity:.6}
.tool-sep{width:26px;height:1px;background:var(--surface3);margin:.1rem 0}

.editor-canvas-wrap{background:var(--surface);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;min-height:420px}
.editor-canvas{position:relative;width:400px;height:500px}
.editor-garment-bg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:0}
.editor-garment-bg svg{width:100%;height:100%}
.marking-zone{position:absolute;border:2px dashed var(--accent);opacity:.5;z-index:1;pointer-events:none}
.editor-element{position:absolute;cursor:move;z-index:10;user-select:none;outline:2px solid transparent;transition:outline-color .15s}
.editor-element.selected{outline-color:var(--accent)}
.editor-element.out-of-bounds{outline-color:var(--danger)!important}
.resize-handle{position:absolute;width:11px;height:11px;background:var(--accent);border-radius:3px;z-index:20}
.resize-handle.tl{top:-5px;left:-5px;cursor:nw-resize}.resize-handle.tr{top:-5px;right:-5px;cursor:ne-resize}
.resize-handle.bl{bottom:-5px;left:-5px;cursor:sw-resize}.resize-handle.br{bottom:-5px;right:-5px;cursor:se-resize}
.rotate-handle{position:absolute;top:-24px;left:50%;transform:translateX(-50%);width:14px;height:14px;background:var(--accent);border-radius:50%;cursor:grab;z-index:20}
.snap-guide{position:absolute;background:var(--accent);z-index:50;pointer-events:none}
.snap-guide.horizontal{height:1px;left:0;right:0}.snap-guide.vertical{width:1px;top:0;bottom:0}

.editor-panel{background:var(--surface);border-radius:var(--radius);padding:.75rem;overflow-y:auto;max-height:520px}
.panel-section{margin-bottom:.85rem}
.panel-section h4{font-size:.7rem;text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);margin-bottom:.45rem}
.vinyl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem}
.vinyl-swatch{aspect-ratio:1;border-radius:5px;cursor:pointer;border:2px solid transparent;transition:all .2s;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.vinyl-swatch:hover{transform:scale(1.1)}
.vinyl-swatch.selected{border-color:var(--accent)}
.input-field{width:100%;background:var(--bg);border:1px solid var(--surface3);border-radius:8px;color:var(--text);padding:.45rem .5rem;font-family:var(--font-body);font-size:.82rem;margin-bottom:.4rem}
.input-field.small{width:70px}
.prop-row{display:flex;gap:.4rem;align-items:center;margin-bottom:.4rem}
.prop-row label{font-size:.78rem;color:var(--text-muted);display:flex;align-items:center;gap:.3rem}
.prop-btn{width:36px;height:36px;border:1px solid var(--surface3);border-radius:8px;background:var(--bg);color:var(--text);cursor:pointer;font-size:.9rem;transition:all .2s}
.prop-btn:hover{background:var(--surface2)}
.prop-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.shapes-grid{display:flex;gap:.4rem;flex-wrap:wrap}
.shape-btn{width:46px;height:46px;border:1px solid var(--surface3);border-radius:var(--radius);background:var(--bg);color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
.shape-btn:hover{background:var(--surface);color:var(--text)}
.editor-bottom-actions{margin-top:.85rem;display:flex;gap:.5rem}

/* ============ TRUST BAR ============ */
.trust-bar{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center;margin-bottom:1.5rem}
.trust-item{display:flex;align-items:center;gap:.45rem;font-size:.85rem;color:var(--text-secondary);background:var(--surface);padding:.55rem .9rem;border-radius:100px}
.trust-item svg{color:var(--accent);flex-shrink:0;width:22px;height:22px}

/* ============ SOCIAL PROOF ============ */
.social-proof{margin-bottom:1.5rem}
.proof-stats{display:flex;gap:.5rem;margin-bottom:1rem}
.proof-stat{flex:1;background:var(--surface);border-radius:var(--radius);padding:.85rem .6rem;text-align:center}
.proof-stat strong{display:block;font-size:1.4rem;font-weight:700;color:var(--accent);font-family:var(--font-mono)}
.proof-stat span{font-size:.78rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}
.proof-testimonials{display:flex;gap:.6rem;overflow-x:auto;scrollbar-width:none;padding-bottom:.25rem}
.proof-testimonials::-webkit-scrollbar{display:none}
.testimonial{flex:0 0 85%;background:var(--bg);border:1px solid var(--surface2);border-radius:var(--radius);padding:.85rem 1rem;scroll-snap-align:start}
.testimonial p{font-size:.95rem;font-style:italic;color:var(--text-secondary);line-height:1.5;margin-bottom:.4rem}
.testimonial-author{font-size:.85rem;color:var(--text-muted);font-weight:500}

/* ============ INLINE EDITOR VIEW ============ */
.inline-editor-view{position:fixed;top:var(--topbar-h);bottom:var(--bottomnav-h);left:0;right:0;background:var(--bg);z-index:100;display:flex;flex-direction:column;overflow:hidden}
.ie-header{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;border-bottom:1px solid var(--surface2);flex-shrink:0}
.ie-header .tf-back{position:static;box-shadow:none;border:1px solid var(--surface2);width:38px;height:38px}
.ie-title{flex:1;font-family:var(--font-display);font-size:1.1rem;font-weight:700;color:var(--text)}
.btn-sm{font-size:.85rem;padding:.5rem 1rem;min-height:40px}
.ie-body{flex:1;overflow-y:auto;padding:.75rem}

/* ============ EDITOR BYPASS (mode upload) ============ */
.bypass-box-full{background:var(--surface);border-radius:var(--radius-lg);padding:2rem 1.5rem;text-align:center;max-width:500px;margin:0 auto}
.bypass-illus{margin-bottom:1rem}
.bypass-box-full h3{font-family:var(--font-display);font-size:1.25rem;font-weight:700;margin-bottom:.4rem;color:var(--text)}
.bypass-box-full p{font-size:.95rem;color:var(--text-muted);margin-bottom:1.25rem;line-height:1.5}
.bypass-upload-lg{display:inline-flex;align-items:center;gap:.6rem;background:var(--accent);color:#fff;border:none;border-radius:var(--radius);padding:.85rem 1.5rem;cursor:pointer;font-size:1rem;font-family:var(--font-body);font-weight:500;transition:background .2s;box-shadow:var(--shadow)}
.bypass-upload-lg:hover{background:var(--accent-hover)}
.bypass-formats{font-size:.78rem;color:var(--text-muted);margin-top:.6rem}
.bypass-file-name{font-size:.9rem;color:var(--accent);margin-top:.5rem;min-height:1.2rem;font-weight:500}
.bypass-note{width:100%;background:var(--bg);border:1px solid var(--surface3);border-radius:var(--radius);padding:.75rem;font-family:var(--font-body);font-size:.92rem;color:var(--text);resize:vertical;margin-top:1rem}
.bypass-note::placeholder{color:var(--text-muted)}
.bypass-trust{display:flex;flex-direction:column;gap:.4rem;margin-top:1.25rem;text-align:left}
.bypass-trust .trust-item{background:transparent;padding:.2rem 0}

/* ============ TYPEFORM TIPS ============ */
.tf-tip{background:rgba(155,53,34,.06);border-left:3px solid var(--accent);border-radius:0 var(--radius) var(--radius) 0;padding:.75rem .95rem;margin-top:.85rem;max-width:500px;width:100%;font-size:.88rem;color:var(--text-secondary);line-height:1.45;display:flex;align-items:flex-start;gap:.5rem}
.tf-tip svg{flex-shrink:0;color:var(--accent);margin-top:.1rem}

/* ============ MODAL EXTRAS ============ */
.modal-devis-id{font-family:var(--font-mono);font-size:.9rem;color:var(--text-muted);margin-bottom:1rem;background:var(--surface);display:inline-block;padding:.35rem .85rem;border-radius:100px}
.modal-timeline{display:flex;gap:0;margin-bottom:1.25rem;position:relative}
.modal-timeline::before{content:'';position:absolute;top:9px;left:10px;right:10px;height:2px;background:var(--surface2)}
.timeline-step{flex:1;display:flex;flex-direction:column;align-items:center;gap:.35rem;position:relative;font-size:.75rem;color:var(--text-muted);text-align:center}
.tl-dot{width:20px;height:20px;border-radius:50%;background:var(--surface2);border:2px solid var(--bg);position:relative;z-index:1;transition:background .2s}
.timeline-step.done .tl-dot{background:var(--accent)}
.timeline-step.done{color:var(--accent);font-weight:500}
.modal-trust{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem;padding:.75rem;background:var(--surface);border-radius:var(--radius)}
.modal-trust .trust-item{background:transparent;padding:.25rem 0;font-size:.88rem}
.modal-actions-row{display:flex;gap:.5rem}
.modal-actions-row .btn{flex:1}

/* ============================================================
   PLUS / MENU
   ============================================================ */
.menu-list{display:flex;flex-direction:column}
.menu-item{display:flex;align-items:center;gap:.85rem;padding:1.1rem .25rem;border-bottom:1px solid var(--surface2);text-decoration:none;color:var(--text);font-size:1.05rem;transition:background .15s}
.menu-item:hover{background:var(--surface)}
.menu-item svg{color:var(--text-muted);flex-shrink:0}
.menu-item .chevron{margin-left:auto;color:var(--surface3)}
.footer-credit{text-align:center;padding:2rem 1rem;font-size:.8rem;color:var(--text-muted);letter-spacing:.5px}

/* ============================================================
   CART TABLE (modal/devis)
   ============================================================ */
.cart-article{background:var(--bg);border:1px solid var(--surface2);border-radius:var(--radius-lg);margin-bottom:.85rem;overflow:hidden;box-shadow:var(--shadow-sm)}
.cart-article-header{background:var(--surface);padding:.75rem 1rem;font-weight:500;font-size:.9rem;display:flex;align-items:center;gap:.5rem}
.cart-article-header .dot{width:14px;height:14px;border-radius:50%;border:1px solid var(--surface3)}
.cart-table{width:100%;border-collapse:collapse;font-size:.82rem}
.cart-table td{padding:.45rem 1rem;border-bottom:1px solid var(--surface2)}
.cart-table td:last-child{text-align:right;font-family:var(--font-mono);color:var(--accent)}
.cart-table tr:last-child td{border-bottom:none;font-weight:700;font-size:.9rem}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:1000;padding:1rem}
.modal-overlay.open{display:flex}
.modal{background:var(--bg);border-radius:var(--radius-xl);padding:1.75rem;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.15)}
.modal-close{position:absolute;top:.75rem;right:.75rem;background:var(--surface);border:none;color:var(--text-muted);font-size:1.1rem;cursor:pointer;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .2s}
.modal-close:hover{background:var(--surface2)}
.modal-title{font-family:var(--font-display);font-size:1.6rem;color:var(--accent);margin-bottom:.85rem;font-weight:700}
#modalPreview{margin-bottom:.85rem;text-align:center}
#modalPreview img{max-width:100%;max-height:220px;border-radius:var(--radius);border:1px solid var(--surface2)}
.modal-mention{font-size:.85rem;color:var(--text-muted);margin-bottom:1rem;line-height:1.6}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(min-width:769px){
  .bottomnav{max-width:400px;left:50%;transform:translateX(-50%);border-radius:16px 16px 0 0;border:1px solid var(--surface2);border-bottom:none}
  .catalog-grid{grid-template-columns:repeat(3,1fr)}
  .hero{margin:0 -1.15rem 1.5rem;border-radius:0 0 var(--radius-xl) var(--radius-xl)}
}
@media(max-width:768px){
  .editor-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr auto}
  .editor-toolbar{flex-direction:row;justify-content:center;order:3;position:sticky;bottom:0;border-radius:var(--radius) var(--radius) 0 0;padding:.35rem .5rem;gap:.15rem;background:var(--surface);z-index:50}
  .tool-btn{width:40px;height:40px}.tool-label{display:none}.tool-sep{width:1px;height:26px}
  .editor-canvas-wrap{order:1;min-height:300px}.editor-panel{order:2;max-height:none}
  .tf-question{font-size:1.5rem}
}
@media(max-width:480px){
  html{font-size:18px}
  .logo-studio{display:none}
  .hero-title{font-size:1.4rem}
  .catalog-grid{grid-template-columns:repeat(2,1fr);gap:.65rem}
}
