/* =========================================================
   BootikHub — pages applicatives
   (inscription, studio, produits, commandes, suivi, boutique)
   S'appuie sur les tokens de style.css.
   ========================================================= */

.app-body { background: var(--canvas); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.btn-violet.pulse { box-shadow: var(--sh-violet), 0 0 0 4px rgba(84, 51, 235, .18); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.ic-sm { width: 16px; height: 16px; }

/* Apparition simple */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.anim-in { animation: fadeUp .7s var(--ease) both; animation-delay: var(--d, 0ms); }
.pop-in { animation: popIn .6s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.88); } }
@keyframes spinOnce { to { transform: rotate(360deg); } }

/* ---------- Coquille : barre latérale ---------- */
.app { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; z-index: 60; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; background: #fff; }
.rail-logo { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; box-shadow: var(--sh-violet); transition: transform .5s var(--ease-spring); }
.rail-logo:hover { transform: rotate(-8deg) scale(1.06); }
.ri { position: relative; width: 48px; height: 48px; border-radius: 20px; display: grid; place-items: center; color: #000; transition: background-color .3s, transform .45s var(--ease-spring); }
.ri .ic { width: 24px; height: 24px; }
.ri:hover { background: var(--canvas); transform: scale(1.06); }
.ri.is-on { background: var(--canvas); }
.ri::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; padding: 6px 10px; border-radius: 10px; background: #000; color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-6px, -50%); transition: opacity .2s, transform .3s var(--ease); }
.ri:hover::after { opacity: 1; transform: translate(0, -50%); }
.badge-dot { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.rail-sp { flex: 1; }
.rail-av { width: 34px; height: 34px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.app-main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 72px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app-head h1 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; }
.app-head p { margin-top: 6px; max-width: 560px; color: var(--muted); }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Formulaires & composants ---------- */
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-sm); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .label { font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label em, .field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(5, 41, 77, .12); background: #fff; color: #000;
  font: inherit; font-size: 16px; letter-spacing: -0.02em; outline: 0;
  transition: border-color .3s, box-shadow .3s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 18px; border-radius: 20px; line-height: 1.45; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(84, 51, 235, .45); box-shadow: 0 0 0 4px rgba(84, 51, 235, .12); }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.input.flash, .textarea.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(84, 51, 235, .5); background: #f3f0ff; } 100% { box-shadow: 0 0 0 10px rgba(84, 51, 235, 0); background: #fff; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); font-size: 14px; transition: background-color .25s, color .25s, border-color .25s, transform .45s var(--ease-spring); }
.chip:hover { transform: translateY(-2px); }
.chip.is-on { background: #000; color: #fff; border-color: #000; }
.chip .ic { width: 16px; height: 16px; }

.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); }
.seg.full { display: flex; }
.seg button { position: relative; z-index: 1; flex: 1; height: 34px; padding: 0 14px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .3s; }
.seg button .ic { width: 16px; height: 16px; }
.seg button.is-on { color: #fff; }
.seg-ind { position: absolute; top: 3px; left: 0; height: 34px; width: 0; border-radius: var(--r-pill); background: #000; transition: transform .55s var(--ease-spring), width .55s var(--ease-spring); }

.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: var(--r-pill); background: var(--stone); transition: background-color .3s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .5s var(--ease-spring); }
.switch[aria-checked="true"] { background: #000; }
.switch[aria-checked="true"] i { transform: translateX(18px); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(#000, #000) 0 / var(--fill, 50%) 100% no-repeat, #e3e6e8; outline: 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #000; box-shadow: var(--sh-sm); cursor: grab; transition: transform .3s var(--ease-spring); }
.range::-webkit-slider-thumb:active { transform: scale(1.2); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #000; }

.pm { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
.pm i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: var(--ci, #fff); display: grid; place-items: center; flex: none; }
.pm i .ic { width: 13px; height: 13px; }
.flag { width: 22px; height: 16px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }
.info-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--canvas); font-size: 13px; color: var(--muted); line-height: 1.45; }
.info-note .ic { width: 18px; height: 18px; flex: none; color: #000; margin-top: 1px; }
.info-note b { color: #000; font-weight: 500; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: live 1.8s infinite; flex: none; }

/* ---------- Assistant (tiroir de discussion) ---------- */
.assist {
  position: fixed; z-index: 150; right: 16px; bottom: 16px; top: 16px; width: min(420px, calc(100% - 32px));
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-card); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35);
  transform: translateX(calc(100% + 40px)); transition: transform .7s var(--ease);
}
.assist.open { transform: none; }
.assist-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.assist-av { width: 40px; height: 40px; border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-violet); flex: none; }
.assist-head div { flex: 1; min-width: 0; }
.assist-head b { display: block; font-weight: 600; letter-spacing: -0.03em; }
.assist-head small { color: var(--muted); font-size: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); flex: none; transition: transform .4s var(--ease-spring), background-color .3s; }
.icon-btn:hover { transform: rotate(90deg); }
.icon-btn .ic { width: 18px; height: 18px; }
.assist-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; animation: popIn .5s var(--ease-spring) both; transform-origin: left bottom; }
.msg.bot { align-self: flex-start; background: var(--canvas); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: #000; color: #fff; border-bottom-right-radius: 6px; transform-origin: right bottom; }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.assist-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.assist-input .input { height: 46px; }
.assist-input .submit { width: 46px; height: 46px; }
.assist-input .submit::before { display: none; }
.help-fab { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: #000; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .4); transition: transform .5s var(--ease-spring); }
.help-fab:hover { transform: translateY(-3px) scale(1.03); }
.help-fab .ic { width: 20px; height: 20px; }
.qa { display: flex; flex-direction: column; gap: 6px; }
.qa button { text-align: left; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); font-size: 14px; transition: background-color .25s, transform .4s var(--ease-spring); }
.qa button:hover { background: var(--canvas); transform: translateX(4px); }

/* =========================================================
   INSCRIPTION
   ========================================================= */
.su-body { background: var(--canvas); }
.su-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 16px clamp(16px, 4vw, 40px); background: rgba(242, 244, 245, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.su-progress { flex: 1; max-width: 420px; height: 4px; margin: 0 auto; border-radius: 4px; background: #e1e4e6; overflow: hidden; }
.su-progress i { display: block; height: 100%; background: #000; border-radius: 4px; transform-origin: left; transform: scaleX(var(--p, .2)); transition: transform .8s var(--ease); }
.su-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.su-count b { color: #000; font-weight: 500; }
.su-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); width: min(1200px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(24px, 5vh, 56px) 0 64px; align-items: start; }
.su-step { display: none; }
.su-step.is-on { display: block; animation: stepIn .8s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } }
.su-step.back.is-on { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }
.su-step h1 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.055em; line-height: 1.02; }
.su-lead { margin-top: 12px; max-width: 520px; font-size: 17px; color: var(--muted); }
.su-body .namebar { margin-top: 28px; width: 100%; max-width: 560px; }
.su-avail { min-height: 32px; margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.su-avail .ok { color: #16a34a; display: inline-flex; align-items: center; gap: 6px; }
.su-avail .ic { width: 18px; height: 18px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d7dadc; border-top-color: #000; animation: spinOnce .7s linear infinite; }
.su-nav { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.su-nav .btn { height: 52px; padding: 0 26px; font-size: 16px; }
.su-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 26px; }
.su-country { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid transparent; text-align: left; box-shadow: var(--sh-sm); transition: border-color .25s, transform .45s var(--ease-spring), box-shadow .3s; }
.su-country:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.su-country.is-on { border-color: #000; box-shadow: 0 0 0 1px #000; }
.su-country span { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }
.su-country small { color: var(--muted); font-size: 12px; }
.su-detected { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: #fff; font-size: 13px; box-shadow: var(--sh-sm); }
.su-country-info { margin-top: 18px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--sh-sm); }
.su-country-info .label { margin-bottom: 10px; }
.su-country-info .chips { gap: 6px; }
.su-phone { display: flex; gap: 8px; max-width: 520px; margin-top: 28px; }
.su-dial { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid rgba(5, 41, 77, .12); font-size: 16px; white-space: nowrap; }
.su-phone .input { height: 52px; }
.otp { display: flex; gap: 8px; margin-top: 18px; }
.otp input { width: 52px; height: 60px; border-radius: 16px; border: 1px solid rgba(5, 41, 77, .14); background: #fff; text-align: center; font: inherit; font-size: 24px; font-weight: 500; outline: 0; transition: border-color .2s, box-shadow .2s, transform .4s var(--ease-spring); }
.otp input:focus { border-color: #000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.otp.ok input { border-color: #16a34a; background: #f0fdf4; }
.otp.bad { animation: shake .5s var(--ease); }
.su-otp { display: none; margin-top: 26px; }
.su-otp.show { display: block; animation: fadeUp .6s var(--ease) both; }
.su-otp p { color: var(--muted); font-size: 14px; }
/* Inscription : numéro de paiement */
.su-payq { display: none; margin-top: 26px; max-width: 520px; }
.su-payq.show { display: block; animation: fadeUp .6s var(--ease) both; }
.su-verified { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: #f0fdf4; color: #15803d; font-size: 13px; font-weight: 500; }
.su-verified .ic { width: 16px; height: 16px; }
.su-payq h2 { margin-top: 16px; font-size: 24px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; }
.su-payq-lead { margin-top: 6px; color: var(--muted); font-size: 14px; }
.su-choice { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.su-choice button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid transparent; text-align: left; box-shadow: var(--sh-sm); transition: border-color .25s, transform .45s var(--ease-spring), box-shadow .3s; }
.su-choice button:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.su-choice button.is-on { border-color: #000; box-shadow: 0 0 0 1px #000; }
.su-choice i { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #d5d9dc; transition: border-color .25s; }
.su-choice button.is-on i { border-color: #000; }
.su-choice button.is-on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #000; animation: popIn .4s var(--ease-spring); }
.su-choice span { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.su-choice b { font-weight: 500; }
.su-choice small { color: var(--muted); font-size: 13px; }
.su-payq .su-phone { margin-top: 12px; }
.su-payq .su-nav { margin-top: 24px; flex-wrap: wrap; }
.sms { position: fixed; z-index: 160; left: 50%; top: 16px; width: min(380px, calc(100% - 32px)); display: flex; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 60px -15px rgba(0, 0, 0, .3); transform: translate(-50%, -140%); transition: transform .8s var(--ease-spring); }
.sms.show { transform: translate(-50%, 0); }
.sms-ic { width: 38px; height: 38px; border-radius: 11px; background: #16a34a; color: #fff; display: grid; place-items: center; flex: none; }
.sms b { display: block; font-size: 13px; }
.sms p { font-size: 13px; color: #333; }
.sms small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.su-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 26px; }
.su-type { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--sh-sm); border: 1px solid transparent; font-size: 15px; font-weight: 500; transition: transform .45s var(--ease-spring), box-shadow .3s, border-color .25s; }
.su-type i { width: 40px; height: 40px; border-radius: 13px; background: var(--canvas); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.su-type i .ic { width: 20px; height: 20px; }
.su-type:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.su-type:hover i { transform: rotate(-10deg); }
.su-type.is-on { border-color: #000; box-shadow: 0 0 0 1px #000; }
.su-type.is-on i { background: #000; color: #fff; }
.su-owner { max-width: 420px; margin-top: 22px; }
.su-done-list { display: grid; gap: 10px; margin-top: 28px; }
.su-next { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sh-sm); transition: transform .5s var(--ease-spring), box-shadow .3s; }
.su-next:hover { transform: translateX(6px); box-shadow: var(--sh-lg); }
.su-next i { width: 48px; height: 48px; border-radius: 16px; background: var(--canvas); display: grid; place-items: center; flex: none; }
.su-next i .ic { width: 22px; height: 22px; }
.su-next span { flex: 1; }
.su-next b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -0.03em; }
.su-next small { color: var(--muted); font-size: 14px; }
.su-next > .ic { transition: transform .4s var(--ease); }
.su-next:hover > .ic { transform: translateX(4px); }
.su-next.primary { background: #000; color: #fff; }
.su-next.primary i { background: var(--violet); }
.su-next.primary small { color: rgba(255, 255, 255, .6); }

.su-side { position: sticky; top: 96px; }
.su-side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.su-phone-mock { position: relative; width: min(340px, 100%); margin: 0 auto; padding: 12px; border-radius: 44px; background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45); }
.su-screen { position: relative; overflow: hidden; border-radius: 34px; background: #fff; min-height: 600px; }
.su-screen-url { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px 8px; font-size: 11px; color: var(--muted); }
.su-screen-url .ic { width: 12px; height: 12px; }
.su-mini-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; }
.su-mini-logo { font-size: 18px; font-weight: 600; letter-spacing: -0.05em; transition: opacity .3s; }
.su-mini-logo i { color: var(--violet); font-style: normal; }
.su-mini-hero { position: relative; height: 230px; margin: 8px 12px 0; border-radius: 24px; overflow: hidden; background: var(--canvas); }
.su-mini-hero img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--ease); }
.su-mini-hero img.swap { opacity: 0; transform: scale(1.08); }
.su-mini-hero div { position: absolute; left: 16px; bottom: 16px; right: 16px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.su-mini-hero small { font-size: 11px; opacity: .9; }
.su-mini-hero strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.su-mini-sec { padding: 14px 18px 0; }
.su-mini-sec .label { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.su-mini-pay { display: flex; flex-wrap: wrap; gap: 5px; }
.su-mini-pay .pm { font-size: 11px; padding-right: 9px; }
.su-mini-pay .pm i { width: 20px; height: 20px; }
.su-mini-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 12px 0; }
.su-mini-products div { border-radius: 16px; overflow: hidden; background: var(--canvas); }
.su-mini-products img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.su-mini-products span { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 11px; }
.su-mini-products b { font-weight: 600; transition: opacity .3s; }
.su-mini-wa { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: var(--r-pill); background: #25d366; color: #fff; font-size: 13px; font-weight: 500; }
.su-mini-wa .ic { width: 18px; height: 18px; }

/* =========================================================
   STUDIO DE DESIGN
   ========================================================= */
.st-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-panel { display: flex; flex-direction: column; gap: 10px; }
.st-sec { padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sh-sm); }
.st-sec h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.st-sec h3 em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-preset { display: flex; flex-direction: column; gap: 5px; font-size: 11px; text-align: center; color: var(--muted); transition: color .2s; }
.st-preset span.th { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s, transform .45s var(--ease-spring); }
.st-preset img { width: 100%; height: 100%; object-fit: cover; }
.st-preset span.th i { position: absolute; right: 5px; bottom: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.st-preset:hover span.th { transform: translateY(-2px) scale(1.03); }
.st-preset.is-on { color: #000; }
.st-preset.is-on span.th { outline-color: #000; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .4s var(--ease-spring), box-shadow .25s; }
.sw:hover { transform: scale(1.15); }
.sw.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 4px #000; transform: scale(1.08); }
.sw-custom { overflow: hidden; background: conic-gradient(#e11d48, #f59e0b, #facc15, #16a34a, #0ea5e9, #5433eb, #db2777, #e11d48); cursor: pointer; }
.sw-custom input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; }
.sw-custom::after { content: "+"; position: absolute; inset: 7px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.st-fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-font { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 16px; background: var(--canvas); border: 1px solid transparent; transition: border-color .25s, background-color .25s, transform .4s var(--ease-spring); }
.st-font b { font-family: var(--ff); font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: 0; }
.st-font small { font-size: 11px; color: var(--muted); }
.st-font:hover { transform: translateY(-2px); }
.st-font.is-on { background: #fff; border-color: #000; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-ann { margin-top: 12px; height: 42px; font-size: 14px; }
.st-sec .seg { display: flex; }

.st-preview { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.st-pv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: #fff; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-url .ic { width: 14px; height: 14px; }
.st-stage { display: flex; justify-content: center; padding: 18px; border-radius: var(--r-card); background: #e7eaec; overflow: hidden; }
.st-frame { width: 100%; max-width: 100%; height: min(78vh, 760px); overflow: hidden; border-radius: 18px; background: #fff; border: 0 solid #000; box-shadow: var(--sh-card), 0 30px 60px -30px rgba(0, 0, 0, .3); transition: max-width .9s var(--ease), border-radius .7s var(--ease), border-width .5s; }
.st-frame[data-device="mobile"] { max-width: 390px; border-radius: 44px; border-width: 10px; }
.st-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.st-tips { display: flex; flex-direction: column; gap: 8px; }
.tip { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--sh-sm); font-size: 14px; animation: fadeUp .6s var(--ease) both; }
.tip > .ic { width: 20px; height: 20px; flex: none; }
.tip span { flex: 1; }
.tip.warn > .ic { color: #ea580c; }
.tip.good > .ic { color: #16a34a; }
.sugg { padding: 12px; border-radius: 20px; border: 1px solid var(--border); animation: popIn .6s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
.sugg-pv { display: flex; align-items: center; gap: 10px; height: 74px; padding: 0 14px; border-radius: 14px; background: var(--sbg); color: var(--sfg); }
.sugg-pv b { font-family: var(--sff); font-size: 26px; font-weight: 500; }
.sugg-pv span { flex: 1; }
.sugg-pv i { padding: 7px 12px; border-radius: var(--sr); background: var(--sa); color: var(--sai); font-style: normal; font-size: 12px; font-weight: 600; }
.sugg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.sugg-foot b { font-size: 14px; font-weight: 500; }
.sugg-foot small { display: block; font-size: 12px; color: var(--muted); }

/* =========================================================
   PRODUITS
   ========================================================= */
.pr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pr-search { position: relative; width: min(360px, 100%); }
.pr-search .ic { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.pr-search .input { padding-left: 44px; height: 44px; }
.pr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pr-card { position: relative; padding: 8px 8px 14px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); transition: transform .5s var(--ease-spring), box-shadow .3s; animation: fadeUp .6s var(--ease) both; animation-delay: var(--d, 0ms); }
.pr-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pr-card-img { position: relative; aspect-ratio: 1; border-radius: var(--r-inner); overflow: hidden; background: var(--canvas); }
.pr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pr-card:hover .pr-card-img img { transform: scale(1.06); }
.pr-card-act { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .45s var(--ease-spring); }
.pr-card:hover .pr-card-act, .pr-card:focus-within .pr-card-act { opacity: 1; transform: none; }
.pr-card-act button { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-lg); }
.pr-card-act .ic { width: 16px; height: 16px; }
.pr-card-meta { padding: 10px 6px 0; }
.pr-card-meta b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.pr-card-meta span { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--muted); }
.stock-pill { padding: 2px 8px; border-radius: var(--r-pill); background: var(--canvas); color: #000; font-size: 11px; }
.stock-pill.low { background: #fff1e6; color: #c2410c; }
.pr-add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 280px; border-radius: var(--r-card); border: 2px dashed #d5d9dc; color: var(--muted); font-size: 15px; transition: border-color .3s, color .3s, transform .5s var(--ease-spring); }
.pr-add-card i { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-sm); color: #000; transition: transform .5s var(--ease-spring); }
.pr-add-card:hover { border-color: #000; color: #000; transform: translateY(-4px); }
.pr-add-card:hover i { transform: rotate(90deg); }

.ed { position: fixed; z-index: 140; inset: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.ed-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .5s; }
.ed-sheet { position: relative; width: min(980px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--canvas); border-radius: 32px 0 0 32px; transform: translateX(100%); transition: transform .75s var(--ease); }
.ed.open { pointer-events: auto; }
.ed.open .ed-overlay { opacity: 1; }
.ed.open .ed-sheet { transform: none; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.ed-head h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.05em; }
.ed-body { flex: 1; overflow-y: auto; padding: 0 24px 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-content: start; overscroll-behavior: contain; }
.ed-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: #fff; border-top: 1px solid var(--border); }
.ed-foot .btn { height: 48px; }
.drop { position: relative; aspect-ratio: 1; border-radius: var(--r-card); background: #fff; border: 2px dashed #d5d9dc; overflow: hidden; display: grid; place-items: center; text-align: center; transition: border-color .3s, background-color .3s; cursor: pointer; }
.drop:hover, .drop.over { border-color: #000; background: #fafafa; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; color: var(--muted); font-size: 14px; }
.drop-empty i { width: 56px; height: 56px; border-radius: 18px; background: var(--canvas); color: #000; display: grid; place-items: center; }
.drop-empty i .ic { width: 26px; height: 26px; }
.drop-empty b { color: #000; font-weight: 500; font-size: 16px; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { display: none; }
.drop .scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, rgba(84, 51, 235, 0), rgba(84, 51, 235, .35)); border-bottom: 2px solid #fff; opacity: 0; pointer-events: none; }
.drop.scanning .scan { opacity: 1; animation: scan 1.2s var(--ease-io) infinite alternate; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(330%); } }
.drop-change { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: #fff; font-size: 12px; font-weight: 500; box-shadow: var(--sh-lg); }
.drop-change .ic { width: 14px; height: 14px; }
.samples { display: flex; gap: 6px; }
.samples button { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex: none; outline: 2px solid transparent; outline-offset: 2px; transition: transform .4s var(--ease-spring), outline-color .2s; }
.samples button:hover { transform: translateY(-3px); }
.samples button.is-on { outline-color: #000; }
.samples img { width: 100%; height: 100%; object-fit: cover; }
.ai-card { padding: 16px; border-radius: 24px; background: #fff; box-shadow: var(--sh-sm); }
.ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-head .assist-av { width: 34px; height: 34px; border-radius: 11px; }
.ai-head .assist-av .ic { width: 18px; height: 18px; }
.ai-head b { font-weight: 600; letter-spacing: -0.02em; }
.ai-msg { font-size: 14px; line-height: 1.45; color: #333; min-height: 40px; }
.ai-msg b { font-weight: 600; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--canvas); font-size: 13px; font-weight: 500; transition: background-color .25s, transform .45s var(--ease-spring); }
.ai-btn:hover { background: #e6e9eb; transform: translateY(-2px); }
.ai-btn .ic { width: 16px; height: 16px; }
.ai-btn.rec { background: #fee2e2; color: #b91c1c; }
.ai-btn.rec .ic { animation: blink 1s infinite; }
.inline-sugg { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: #f3f0ff; color: var(--violet); font-size: 12px; font-weight: 500; transition: transform .4s var(--ease-spring); }
.inline-sugg:hover { transform: translateY(-1px); }
.inline-sugg .ic { width: 14px; height: 14px; }
.ed-form { padding: 20px; border-radius: 24px; background: #fff; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 16px; }
.ed-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-wrap { position: relative; }
.price-wrap .input { padding-right: 70px; }
.price-wrap em { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); }
.quality { padding: 16px; border-radius: 24px; background: #fff; box-shadow: var(--sh-sm); }
.quality-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.quality-top b { font-size: 22px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.quality-bar { height: 8px; border-radius: 8px; background: var(--canvas); overflow: hidden; }
.quality-bar i { display: block; height: 100%; width: var(--q, 0%); border-radius: 8px; background: #000; transition: width .8s var(--ease), background-color .4s; }
.quality ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.quality li { display: flex; align-items: center; gap: 6px; transition: color .3s; }
.quality li .ic { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--canvas); color: transparent; transition: background-color .3s, color .3s; }
.quality li.ok { color: #000; }
.quality li.ok .ic { background: #000; color: #fff; }

/* =========================================================
   COMMANDES (vendeuse)
   ========================================================= */
.od-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sh-sm); }
.kpi small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.kpi small .ic { width: 16px; height: 16px; }
.kpi b { display: block; margin-top: 8px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.od-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.od-list { padding: 12px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); }
.od-list .seg { margin: 4px 4px 10px; }
.od-items { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
.od-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; text-align: left; transition: background-color .25s; animation: fadeUp .5s var(--ease) both; animation-delay: var(--d, 0ms); }
.od-item:hover { background: var(--canvas); }
.od-item.is-on { background: var(--canvas); box-shadow: inset 0 0 0 1px #000; }
.od-item.new { animation: newOrder 1.6s var(--ease) both; }
@keyframes newOrder { 0% { background: #f3f0ff; transform: scale(.96); } 40% { background: #f3f0ff; transform: none; } 100% { background: transparent; } }
.od-thumbs { display: flex; flex: none; }
.od-thumbs img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; margin-left: -14px; }
.od-thumbs img:first-child { margin-left: 0; }
.od-item-main { flex: 1; min-width: 0; }
.od-item-main b { display: block; font-size: 14px; font-weight: 600; }
.od-item-main small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--canvas); font-size: 11px; font-weight: 500; color: #000; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc, #000); }
.status[data-s="0"] { --sc: var(--violet); background: #f3f0ff; }
.status[data-s="5"] { --sc: #16a34a; background: #f0fdf4; }
.od-empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.od-empty i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; background: var(--canvas); color: #000; }
.od-detail { position: sticky; top: 20px; padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); }
.od-dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.od-dh h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.05em; }
.od-dh p { font-size: 13px; color: var(--muted); }
.od-client { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 18px; background: var(--canvas); }
.od-av { width: 42px; height: 42px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.od-client div { flex: 1; min-width: 0; }
.od-client b { display: block; font-weight: 600; font-size: 14px; }
.od-client small { display: block; color: var(--muted); font-size: 12px; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: #25d366; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: transform .45s var(--ease-spring), box-shadow .3s; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6); }
.wa-btn .ic { width: 18px; height: 18px; }
.wa-btn.wa-lg { height: 52px; padding: 0 22px; font-size: 15px; }
.timeline { position: relative; margin: 22px 0 6px; padding-left: 4px; list-style: none; }
.tl { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl.done::before { background: #000; }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: grid; place-items: center; flex: none; color: transparent; transition: background-color .4s, border-color .4s, color .4s, transform .6s var(--ease-spring); }
.tl-dot .ic { width: 16px; height: 16px; }
.tl.done .tl-dot { background: #000; border-color: #000; color: #fff; }
.tl.next .tl-dot { border-color: #000; border-style: dashed; animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 50% { transform: scale(1.1); } }
.tl.just .tl-dot { animation: justDone .9s var(--ease-spring); }
@keyframes justDone { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } }
.tl-body { flex: 1; min-width: 0; padding-top: 5px; }
.tl-body b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.tl-body small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.tl:not(.done):not(.next) .tl-body b { color: var(--muted); }
.tl-time { padding-top: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.od-action { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.od-action .btn-violet { height: 54px; font-size: 16px; }
.od-links { display: flex; flex-wrap: wrap; gap: 6px; }
.od-sum { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.od-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.od-line img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.od-line span { flex: 1; }
.od-total { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.od-total b { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }

/* =========================================================
   SUIVI CLIENT
   ========================================================= */
.tr-body { background: var(--canvas); }
.tr { width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 16px 0 56px; }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 20px; }
.tr-shop { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.tr-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--a, #000); color: var(--a-ink, #fff); display: grid; place-items: center; font-weight: 600; }
.tr-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: #fff; font-size: 13px; box-shadow: var(--sh-sm); }
.tr-card { margin-top: 12px; padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); }
.tr-hero { padding: 26px; }
.tr-hero small { font-size: 13px; color: var(--muted); }
.tr-status { margin-top: 10px; font-size: clamp(34px, 7vw, 54px); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.tr-status.swap { animation: statusIn .9s var(--ease) both; }
@keyframes statusIn { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
.tr-hero p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.tr-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 22px; }
.tr-bar i { height: 6px; border-radius: 6px; background: var(--canvas); overflow: hidden; position: relative; }
.tr-bar i::after { content: ""; position: absolute; inset: 0; background: var(--a, #000); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.tr-bar i.on::after { transform: scaleX(1); }
.tr-truck { --truck-bg: var(--canvas); display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 18px; background: var(--canvas); font-size: 14px; }
.tr-truck .ic { width: 22px; height: 22px; flex: none; }
.tr-truck.move .ic { animation: rumble .3s linear infinite alternate; }
.tr-card h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.035em; margin-bottom: 4px; }
.tr .tl.done .tl-dot { background: var(--a, #000); border-color: var(--a, #000); color: var(--a-ink, #fff); }
.tr .tl.done::before { background: var(--a, #000); }
.tr .tl.next .tl-dot { border-color: var(--a, #000); }
.tr-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tr-help p { color: var(--muted); font-size: 14px; }
.tr-find { display: flex; gap: 8px; margin-top: 16px; }
.tr-recent { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.tr-recent a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--canvas); font-size: 14px; transition: transform .4s var(--ease-spring); }
.tr-recent a:hover { transform: translateX(4px); }
.tr-foot { margin-top: 24px; text-align: center; font-size: 12px; color: var(--muted); }
.tr-foot a { color: var(--violet); font-weight: 600; letter-spacing: -0.05em; }

/* =========================================================
   BOUTIQUE (vitrine de la vendeuse, thémable)
   ========================================================= */
.sf {
  --a: #111; --a-ink: #fff; --bg: #fff; --fg: #161514; --pr: 16px;
  --pf-h: 'Inter', sans-serif; --pf-b: 'Inter', sans-serif; --ls-h: -0.04em;
  --card: color-mix(in srgb, var(--fg) 6%, var(--bg));
  --mut: color-mix(in srgb, var(--fg) 58%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 12%, transparent);
  --btn-r: min(var(--pr), 999px);
  min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: var(--pf-b); letter-spacing: -0.015em;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.sf-body { background: #fff; }
.sf h1, .sf h2, .sf h3, .sf-logo { font-family: var(--pf-h); letter-spacing: var(--ls-h); font-weight: 500; }
.sf-announce { overflow: hidden; max-height: 40px; background: var(--a); color: var(--a-ink); font-size: 12px; text-align: center; transition: max-height .5s var(--ease), background-color .5s, color .5s; }
.sf-announce span { display: block; padding: 10px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf[data-announce="off"] .sf-announce { max-height: 0; }
.sf-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 16px clamp(16px, 4cqi, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background-color .6s; }
.sf-logo { font-size: 24px; font-weight: 600; white-space: nowrap; }
.sf-logo i { color: var(--a); font-style: normal; transition: color .5s; }
.sf-nav { flex: 1; display: flex; gap: 22px; font-size: 14px; color: var(--mut); overflow: hidden; }
.sf-nav button { color: inherit; transition: color .25s; white-space: nowrap; }
.sf-nav button:hover, .sf-nav button.is-on { color: var(--fg); }
.sf-icons { display: flex; gap: 6px; margin-left: auto; }
.sf-ib { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background-color .25s, transform .4s var(--ease-spring); }
.sf-ib:hover { background: var(--card); }
.sf-ib .ic { width: 21px; height: 21px; }
.sf-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--a); color: var(--a-ink); font-size: 10px; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease-spring), background-color .5s; }
.sf-count.on { transform: scale(1); }
.sf-count.bump { animation: bump .6s var(--ease-spring); }

.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: var(--btn-r); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; border: 1.5px solid var(--a); background: var(--a); color: var(--a-ink); transition: background-color .5s, color .5s, border-color .5s, border-radius .5s, transform .45s var(--ease-spring), box-shadow .3s; cursor: pointer; white-space: nowrap; }
.sf-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--a) 70%, transparent); }
.sf-btn:active { transform: scale(.97); }
.sf-btn .ic { width: 18px; height: 18px; }
.sf[data-btn="outline"] .sf-btn { background: transparent; color: var(--fg); }
.sf[data-btn="outline"] .sf-btn:hover { background: var(--a); color: var(--a-ink); }
.sf[data-btn="underline"] .sf-btn { height: auto; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--fg); text-decoration: underline; text-decoration-color: var(--a); text-decoration-thickness: 2px; text-underline-offset: 6px; box-shadow: none; }
.sf[data-btn="underline"] .sf-btn.block { padding: 0 24px; height: 50px; background: var(--a); color: var(--a-ink); text-decoration: none; border-radius: var(--btn-r); }
.sf-btn.block { width: 100%; height: 50px; }
.sf-btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }

/* Bannière d'accueil : 3 styles */
.sf-hero { position: relative; margin: 16px clamp(16px, 4cqi, 48px) 0; }
.sf-hero-media { position: relative; overflow: hidden; border-radius: var(--pr); background: var(--card); transition: border-radius .5s var(--ease); }
.sf-hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sf-hero:hover .sf-hero-media img { transform: scale(1.03); }
.sf-hero-txt small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.sf-hero-txt h1 { margin: 10px 0 12px; font-size: clamp(34px, 6cqi, 72px); line-height: 1.02; }
.sf-hero-txt p { max-width: 440px; margin-bottom: 22px; font-size: 16px; opacity: .85; }
.sf[data-hero="image"] .sf-hero-media { height: clamp(380px, 52cqi, 560px); }
.sf[data-hero="image"] .sf-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); }
.sf[data-hero="image"] .sf-hero-txt { position: absolute; left: clamp(20px, 5cqi, 56px); bottom: clamp(20px, 5cqi, 56px); right: 30%; color: #fff; z-index: 1; }
.sf[data-hero="image"][data-btn="outline"] .sf-hero .sf-btn, .sf[data-hero="image"][data-btn="underline"] .sf-hero .sf-btn { color: #fff; border-color: #fff; }
.sf[data-hero="split"] .sf-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4cqi, 56px); align-items: center; }
.sf[data-hero="split"] .sf-hero-media { order: 2; height: clamp(320px, 42cqi, 520px); }
.sf[data-hero="split"] .sf-hero-txt { padding: 20px 0; }
.sf[data-hero="split"] .sf-hero-txt small { color: var(--a); opacity: 1; font-weight: 600; }
.sf[data-hero="minimal"] .sf-hero { padding: clamp(40px, 8cqi, 100px) 0 clamp(24px, 4cqi, 48px); text-align: center; }
.sf[data-hero="minimal"] .sf-hero-media { display: none; }
.sf[data-hero="minimal"] .sf-hero-txt h1 { font-size: clamp(42px, 9cqi, 110px); }
.sf[data-hero="minimal"] .sf-hero-txt p { margin-inline: auto; }
.sf[data-hero="minimal"] .sf-hero-txt small { color: var(--a); opacity: 1; font-weight: 600; }

.sf-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px clamp(16px, 4cqi, 48px) 0; }
.sf-trust div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--pr); background: var(--card); font-size: 13px; line-height: 1.3; transition: border-radius .5s, background-color .6s; }
.sf-trust .ic { width: 22px; height: 22px; flex: none; color: var(--a); --truck-bg: var(--card); }
.sf[data-dark="no"] .sf-trust .ic { color: color-mix(in srgb, var(--a) 80%, #000); }
.sf-trust b { display: block; font-weight: 600; }
.sf-trust small { color: var(--mut); }

.sf-shop { padding: clamp(36px, 6cqi, 72px) clamp(16px, 4cqi, 48px); }
.sf-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sf-sec-head h2 { font-size: clamp(28px, 4cqi, 44px); line-height: 1; }
.sf-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-cats button { height: 36px; padding: 0 14px; border-radius: var(--btn-r); border: 1px solid var(--line); font-size: 13px; transition: background-color .3s, color .3s, border-color .3s; }
.sf-cats button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2cqi, 20px); }
.sf[data-layout="gallery"] .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf[data-layout="list"] .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sf-p { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; animation: pIn .7s var(--ease-spring) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes pIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.sf-p-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--pr); background: var(--card); transition: border-radius .5s var(--ease); }
.sf[data-layout="gallery"] .sf-p-img { aspect-ratio: 1 / 1.1; }
.sf-p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sf-p:hover .sf-p-img img { transform: scale(1.06); }
.sf-p-add { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: min(var(--pr), 999px); background: var(--a); color: var(--a-ink); display: grid; place-items: center; transform: translateY(12px) scale(.7); opacity: 0; transition: transform .5s var(--ease-spring), opacity .3s, background-color .5s; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.sf-p-add .ic { width: 20px; height: 20px; }
.sf-p:hover .sf-p-add { transform: none; opacity: 1; }
.sf-p-tag { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: min(var(--pr), 999px); background: var(--a); color: var(--a-ink); font-size: 11px; font-weight: 600; }
.sf-p-info { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sf-p-info b { font-weight: 500; }
.sf-p-info span { color: var(--mut); white-space: nowrap; }
.sf[data-layout="gallery"] .sf-p-info { font-size: 16px; }
.sf[data-layout="list"] .sf-p { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: var(--pr); background: var(--card); transition: border-radius .5s, background-color .6s; }
.sf[data-layout="list"] .sf-p-img { width: 96px; flex: none; aspect-ratio: 1; border-radius: calc(var(--pr) * .7); }
.sf[data-layout="list"] .sf-p-info { flex: 1; flex-direction: column; gap: 2px; }
.sf[data-layout="list"] .sf-p-add { position: static; transform: none; opacity: 1; flex: none; }
.sf[data-layout="list"] .sf-p-tag { display: none; }
.sf-p > .sf-p-add { display: none; }
.sf[data-layout="list"] .sf-p > .sf-p-add { display: grid; }
.sf[data-layout="list"] .sf-p-img .sf-p-add { display: none; }
.sf-btn[disabled] { opacity: .4; pointer-events: none; }
.sf-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--mut); border-radius: var(--pr); background: var(--card); }

.sf-foot { margin-top: 24px; padding: clamp(32px, 6cqi, 64px) clamp(16px, 4cqi, 48px) 28px; background: var(--card); transition: background-color .6s; }
.sf-news { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sf-news h3 { font-size: clamp(24px, 3.4cqi, 36px); line-height: 1.05; }
.sf-news p { color: var(--mut); margin-top: 6px; font-size: 14px; }
.sf-news form { display: flex; gap: 8px; width: min(440px, 100%); }
.sf-input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: var(--btn-r); border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; outline: 0; transition: border-color .3s, border-radius .5s; }
.sf-input:focus { border-color: var(--a); }
.sf-copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.sf-copy a b { color: var(--fg); }

/* Fenêtres & panier (dans .sf pour hériter du thème) */
.sf-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .45s; }
.sf-overlay.on { opacity: 1; pointer-events: auto; }
.sf-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.sf-sheet { position: relative; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: max(var(--pr), 20px); background: var(--bg); color: var(--fg); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .4s, transform .6s var(--ease-spring); }
.sf-modal.open { pointer-events: auto; }
.sf-modal.open .sf-sheet { opacity: 1; transform: none; }
.sf-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--fg); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); transition: transform .4s var(--ease-spring); }
.sf-close:hover { transform: rotate(90deg); }
.sf-close .ic { width: 18px; height: 18px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pm-img { aspect-ratio: 4 / 5; background: var(--card); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 4cqi, 36px); }
.pm-info small { color: var(--mut); font-size: 13px; }
.pm-info h2 { font-size: clamp(26px, 3.6cqi, 38px); line-height: 1.05; }
.pm-price { font-size: 22px; font-weight: 500; }
.pm-info p { color: var(--mut); font-size: 15px; line-height: 1.55; }
.pm-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-sizes button { min-width: 44px; height: 40px; padding: 0 12px; border-radius: min(var(--pr), 12px); border: 1px solid var(--line); font-size: 14px; transition: background-color .25s, color .25s, border-color .25s; }
.pm-sizes button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-r); height: 46px; }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-row { display: flex; gap: 8px; margin-top: auto; }
.pm-row .sf-btn { flex: 1; }

.sf-drawer { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); color: var(--fg); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .4); transform: translateX(105%); transition: transform .65s var(--ease); }
.sf-drawer.open { transform: none; }
.sf-dh { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.sf-dh h3 { font-size: 22px; }
.sf-dh .sf-close { position: static; box-shadow: none; background: var(--card); }
.sf-lines { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.sf-line { display: flex; align-items: center; gap: 12px; animation: fadeUp .5s var(--ease) both; }
.sf-line img { width: 68px; height: 68px; border-radius: min(var(--pr), 16px); object-fit: cover; }
.sf-line div { flex: 1; min-width: 0; }
.sf-line b { display: block; font-weight: 500; font-size: 14px; }
.sf-line small { color: var(--mut); font-size: 13px; }
.sf-line .qty { height: 36px; }
.sf-line .qty button { width: 32px; }
.sf-df { padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.sf-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.sf-total b { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.sf-df small { color: var(--mut); font-size: 12px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sf-df small .ic { width: 15px; height: 15px; color: #25d366; }
.sf-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--mut); text-align: center; padding: 20px; }
.sf-cart-empty i { width: 64px; height: 64px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--fg); }
.sf-cart-empty .ic { width: 26px; height: 26px; }

.co { width: min(560px, 100%); padding: clamp(22px, 5cqi, 36px); }
.co-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.co-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--card); overflow: hidden; position: relative; }
.co-steps i::after { content: ""; position: absolute; inset: 0; background: var(--a); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.co-steps i.on::after { transform: scaleX(1); }
.co-pane { display: none; flex-direction: column; gap: 14px; }
.co-pane.is-on { display: flex; animation: fadeUp .6s var(--ease) both; }
.co-pane h2 { font-size: 28px; line-height: 1.05; padding-right: 40px; }
.co-pane > p { color: var(--mut); font-size: 14px; margin-top: -6px; }
.co-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.co-field .sf-input { width: 100%; }
.co-phone { display: flex; gap: 6px; }
.co-dial { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border-radius: var(--btn-r); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.co-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-pays { display: flex; flex-direction: column; gap: 8px; }
.co-m { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: min(var(--pr), 18px); border: 1.5px solid var(--line); text-align: left; transition: border-color .25s, background-color .25s, transform .45s var(--ease-spring); }
.co-m:hover { transform: translateX(3px); }
.co-m.is-on { border-color: var(--a); background: color-mix(in srgb, var(--a) 8%, var(--bg)); }
.co-m i { width: 38px; height: 38px; border-radius: 12px; background: var(--c); color: var(--ci, #fff); display: grid; place-items: center; flex: none; }
.co-m i .ic { width: 18px; height: 18px; }
.co-m > span:not(.co-radio) { flex: 1; }
.co-m b { display: block; font-weight: 600; font-size: 14px; }
.co-m small { color: var(--mut); font-size: 12px; }
.co-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; transition: border-color .25s; }
.co-m.is-on .co-radio { border-color: var(--a); }
.co-m.is-on .co-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--a); animation: popIn .4s var(--ease-spring); }
.co-recap { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: min(var(--pr), 16px); background: var(--card); font-size: 14px; }
.co-recap b { font-weight: 600; }
.co-wa { align-items: center; text-align: center; }
.co-wa-ring { position: relative; width: 96px; height: 96px; margin: 6px auto 4px; }
.co-wa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.co-wa-ring circle { fill: none; stroke-width: 6; }
.co-wa-ring .bg { stroke: var(--card); }
.co-wa-ring .fg { stroke: #25d366; stroke-linecap: round; stroke-dasharray: 276; stroke-dashoffset: 276; }
.co-wa-ring.go .fg { animation: ring 2.2s linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.co-wa-ring span { position: absolute; inset: 16px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; animation: popIn .6s var(--ease-spring) both; }
.co-wa-ring span .ic { width: 32px; height: 32px; }
.wa-bubble { align-self: stretch; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #dcf8c6; color: #111; font-size: 13px; line-height: 1.45; text-align: left; white-space: pre-line; max-height: 200px; overflow-y: auto; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }
.co-wa .sf-btn { width: 100%; }
.wa-green { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; text-decoration: none !important; padding: 0 24px !important; height: 50px !important; border-radius: var(--btn-r) !important; }
.co-demo { font-size: 12px; color: var(--mut); }

@container (max-width: 760px) {
  .sf-nav { display: none; }
  .sf-head { gap: 10px; padding: 12px 16px; }
  .sf-logo { font-size: 20px; }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf[data-layout="gallery"] .sf-grid, .sf[data-layout="list"] .sf-grid { grid-template-columns: 1fr; }
  .sf[data-hero="image"] .sf-hero-txt { right: 20px; }
  .sf[data-hero="split"] .sf-hero { grid-template-columns: 1fr; }
  .sf[data-hero="split"] .sf-hero-media { order: 0; height: 280px; }
  .sf-trust { grid-template-columns: 1fr; }
  .sf-hero-txt p { font-size: 14px; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-img { aspect-ratio: 1; }
  .co-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE (pages applicatives)
   ========================================================= */
@media (max-width: 1100px) {
  .st-grid { grid-template-columns: 320px minmax(0, 1fr); }
  .od-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .su-grid { grid-template-columns: 1fr; }
  .su-side { position: static; order: -1; display: none; }
  .st-grid { grid-template-columns: 1fr; }
  .st-preview { position: sticky; top: 0; z-index: 5; order: -1; padding: 8px 0 10px; background: var(--canvas); box-shadow: 0 -40px 0 0 var(--canvas); }
  .st-frame { height: 46vh; }
  .st-stage { padding: 10px; }
  .st-tips { display: none; }
  .od-grid { grid-template-columns: 1fr; }
  .od-detail { position: static; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-sheet { border-radius: 28px 28px 0 0; height: 94%; margin-top: auto; transform: translateY(100%); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; height: 64px; flex-direction: row; justify-content: space-around; padding: 0 8px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); }
  .rail-logo, .rail-sp, .rail-av { display: none; }
  .ri::after { display: none; }
  .app-main { padding-bottom: 110px; }
  .help-fab { bottom: 88px; }
  .st-fonts { grid-template-columns: repeat(2, 1fr); }
  .ed-2 { grid-template-columns: 1fr; }
  .quality ul { grid-template-columns: 1fr; }
  .otp input { width: 44px; height: 54px; font-size: 20px; }
  .su-phone { flex-direction: column; }
  .su-dial { align-self: flex-start; }
  .su-nav .btn { flex: 1; }
}

/* =========================================================
   BOUTIQUE — v2 : logo, avis, promos, 7 affichages produits
   ========================================================= */
.sf-page { container-type: inline-size; }
.sf-flash { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: var(--fg); color: var(--bg); font-size: 13px; cursor: pointer; overflow: hidden; }
.sf-flash::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--a) 45%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s var(--ease-io) infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.sf-flash-title { font-weight: 600; position: relative; }
.sf-flash-code { position: relative; padding: 3px 10px; border-radius: var(--btn-r); border: 1px dashed color-mix(in srgb, var(--bg) 60%, transparent); }
.sf-cd { position: relative; display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
.sf-cd b { display: inline-block; min-width: 26px; padding: 2px 4px; border-radius: 6px; background: var(--a); color: var(--a-ink); text-align: center; font-weight: 600; }
.sf-cd b.tick { animation: tick .45s var(--ease-spring); }
@keyframes tick { from { transform: translateY(-40%); opacity: .2; } }

.sf-logo { display: inline-flex; align-items: center; gap: 10px; }
.sf-logo-img { width: 40px; height: 40px; border-radius: min(var(--pr), 50%); background: var(--a); color: var(--a-ink); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 18px; font-weight: 600; font-family: var(--pf-h); transition: border-radius .5s, background-color .5s; }
.sf-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.sf[data-header="name"] .sf-logo-img { display: none; }
.sf[data-header="logo"] .sf-logo-name { display: none; }
.sf[data-header="logo"] .sf-logo-img { width: 52px; height: 52px; }
.sf-rating { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--btn-r); background: var(--card); font-size: 12px; white-space: nowrap; transition: transform .45s var(--ease-spring); }
.sf-rating:hover { transform: translateY(-2px); }
.sf-rating b { font-weight: 600; }
.sf-rating span { color: var(--mut); }
.stars-ic { display: inline-flex; gap: 1px; letter-spacing: 0; line-height: 1; }
.stars-ic i { font-style: normal; color: color-mix(in srgb, var(--fg, #000) 18%, transparent); }
.stars-ic i.on { color: #f5a623; }
.stars-ic i.half { background: linear-gradient(90deg, #f5a623 50%, color-mix(in srgb, var(--fg, #000) 18%, transparent) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sf-price { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.sf-price b { font-weight: 600; color: var(--fg); }
.sf-price s { color: var(--mut); font-size: .88em; }
.sf-p-tag.promo { background: #e11d48; color: #fff; animation: tagPulse 2.4s var(--ease-io) infinite; }
@keyframes tagPulse { 50% { transform: scale(1.08) rotate(-3deg); } }
.sf-p-desc { display: none; color: var(--mut); font-size: 13px; line-height: 1.45; }

/* Ratio des photos */
.sf[data-ratio="square"] .sf-p-img { aspect-ratio: 1; }
.sf[data-ratio="landscape"] .sf-p-img { aspect-ratio: 4 / 3; }
.sf[data-ratio="portrait"] .sf-p-img { aspect-ratio: 4 / 5; }

/* Grille : nombre de colonnes réglable */
.sf[data-layout="grid"] .sf-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }

/* Vedette : le premier produit en grand */
.sf[data-layout="featured"] .sf-grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-flow: dense; }
.sf[data-layout="featured"] .sf-p.big { grid-column: span 2; grid-row: span 2; }
.sf[data-layout="featured"] .sf-p.big .sf-p-img { aspect-ratio: auto; flex: 1; min-height: 360px; }
.sf[data-layout="featured"] .sf-p.big .sf-p-info { font-size: 20px; }
.sf[data-layout="featured"] .sf-p.big .sf-p-desc { display: block; font-size: 14px; max-width: 520px; }

/* Carrousel : défilement horizontal avec flèches */
.sf-grid-wrap { position: relative; }
.sf-arrow { display: none; position: absolute; top: 40%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); color: var(--fg); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); place-items: center; transition: transform .4s var(--ease-spring); }
.sf-arrow:hover { transform: scale(1.1); }
.sf-arrow .ic { width: 20px; height: 20px; }
.sf-arrow.prev { left: -10px; }
.sf-arrow.next { right: -10px; }
.sf[data-layout="carousel"] .sf-arrow { display: grid; }
.sf[data-layout="carousel"] .sf-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.sf[data-layout="carousel"] .sf-grid::-webkit-scrollbar { display: none; }
.sf[data-layout="carousel"] .sf-p { flex: 0 0 calc((100% - 3 * clamp(10px, 2cqi, 20px)) / 3.4); scroll-snap-align: start; }

/* Mosaïque : tailles variées */
.sf[data-layout="mosaic"] .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.sf[data-layout="mosaic"] .sf-p:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.sf[data-layout="mosaic"] .sf-p:nth-child(6n + 1) .sf-p-img { aspect-ratio: auto; flex: 1; }
.sf[data-layout="mosaic"] .sf-p:nth-child(6n + 4) { grid-column: span 2; }
.sf[data-layout="mosaic"] .sf-p:nth-child(6n + 4) .sf-p-img { aspect-ratio: 2 / 1; }

/* Galerie */
.sf[data-layout="gallery"] .sf-p-desc { display: block; }

/* Liste */
.sf[data-layout="list"] .sf-p-desc { display: none; }

/* Magazine : grandes photos et texte en alternance */
.sf[data-layout="magazine"] .sf-grid { display: flex; flex-direction: column; gap: clamp(28px, 5cqi, 64px); }
.sf-mag { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4cqi, 56px); align-items: center; cursor: pointer; animation: pIn .8s var(--ease-spring) both; animation-delay: calc(var(--i) * 80ms); }
.sf-mag:nth-child(even) .sf-p-img { order: 2; }
.sf-mag .sf-p-img { aspect-ratio: 5 / 4; }
.sf-mag:hover .sf-p-img img { transform: scale(1.04); }
.sf-mag-txt small { color: var(--a); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.sf[data-dark="no"] .sf-mag-txt small { color: color-mix(in srgb, var(--a) 80%, #000); }
.sf-mag-txt h3 { margin: 8px 0 12px; font-size: clamp(28px, 4cqi, 46px); line-height: 1.05; }
.sf-mag-txt p { color: var(--mut); font-size: 15px; line-height: 1.6; max-width: 460px; }
.sf-mag-txt .sf-price { margin-top: 16px; font-size: 22px; }
.sf-mag-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Avis clients défilants */
.sf-reviews { padding: clamp(36px, 6cqi, 72px) 0; background: var(--card); overflow: hidden; transition: background-color .6s; }
.sf-rev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 clamp(16px, 4cqi, 48px); margin-bottom: 28px; }
.sf-rev-head h2 { font-size: clamp(28px, 4cqi, 44px); line-height: 1.05; }
.sf-rev-head p { color: var(--mut); margin-top: 8px; font-size: 14px; }
.sf-rev-sum { display: flex; align-items: center; gap: 24px; }
.sf-rev-big { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sf-rev-big b { font-family: var(--pf-h); font-size: 48px; font-weight: 500; line-height: 1; }
.sf-rev-big .stars-ic { font-size: 16px; }
.sf-rev-big small { color: var(--mut); font-size: 12px; }
.sf-rev-dist { display: grid; gap: 4px; min-width: 180px; font-size: 12px; }
.sf-rev-dist div { display: grid; grid-template-columns: 26px 1fr 20px; align-items: center; gap: 8px; color: var(--mut); }
.sf-rev-dist i { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.sf-rev-dist em { display: block; height: 100%; width: var(--w); background: #f5a623; border-radius: 6px; animation: grow 1.2s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.sf-rev-rows { display: flex; flex-direction: column; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sf-rev-row { overflow: hidden; }
.sf-rev-track { display: flex; gap: 14px; width: max-content; padding: 6px 7px; animation: marquee var(--dur, 40s) linear infinite; }
.sf-rev-row.rev .sf-rev-track { animation-direction: reverse; }
.sf-rev-row:hover .sf-rev-track { animation-play-state: paused; }
.sf-rev { width: 320px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: max(var(--pr), 16px); background: var(--bg); color: var(--fg); transition: transform .5s var(--ease-spring), box-shadow .3s, border-radius .5s; }
.sf-rev:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); }
.sf-rev .stars-ic { font-size: 15px; }
.sf-rev blockquote { font-size: 15px; line-height: 1.45; }
.sf-rev-reply { padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: 13px; color: var(--mut); }
.sf-rev-reply b { color: var(--fg); font-weight: 600; }
.sf-rev figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.sf-rev-av { width: 36px; height: 36px; border-radius: 50%; background: var(--a); color: var(--a-ink); display: grid; place-items: center; font-weight: 600; flex: none; }
.sf-rev figcaption b { display: block; font-size: 14px; font-weight: 600; }
.sf-rev figcaption small { font-size: 12px; color: var(--mut); }

/* Fiche produit enrichie */
.pm-sheet { width: min(980px, 100%); }
.pm-img { position: relative; }
.pm-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); }
.pm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.pm-price b { font-size: 28px; font-weight: 600; }
.pm-price s { color: var(--mut); font-size: 17px; }
.pm-save { padding: 4px 10px; border-radius: var(--btn-r); background: #fee2e2; color: #be123c; font-size: 12px; font-weight: 600; }
.pm-save:empty { display: none; }
.pm-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #16a34a !important; }
.pm-stock .ic { width: 16px; height: 16px; }
.pm-stock.low { color: #ea580c !important; }
.pm-perks { list-style: none; margin: 0; padding: 14px; border-radius: min(var(--pr), 18px); background: var(--card); display: grid; gap: 8px; font-size: 13px; }
.pm-perks li { display: flex; align-items: center; gap: 10px; }
.pm-perks .ic { width: 18px; height: 18px; flex: none; --truck-bg: var(--card); }
.pm-share { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; color: var(--mut); transition: color .25s; }
.pm-share:hover { color: var(--fg); }
.pm-share .ic { width: 16px; height: 16px; }
.pm-related { padding: 0 clamp(20px, 4cqi, 36px) clamp(20px, 4cqi, 36px); }
.pm-related h3 { font-size: 20px; margin-bottom: 12px; }
.pm-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pm-rel-item { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 13px; transition: transform .45s var(--ease-spring); }
.pm-rel-item:hover { transform: translateY(-4px); }
.pm-rel-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: min(var(--pr), 16px); }
.wa-buy, #pmBuy { margin-top: -4px; }

/* Code promo dans le panier */
.sf-promo { display: flex; align-items: center; gap: 8px; }
.sf-promo > .ic { width: 20px; height: 20px; color: var(--mut); flex: none; }
.sf-promo .sf-input { height: 42px; text-transform: uppercase; }
.sf-promo .sf-btn { height: 42px; padding: 0 16px; }
.sf-promo-msg { font-size: 12px; min-height: 0; }
.sf-promo-msg:empty { display: none; }
.sf-promo-msg.ok { color: #16a34a; }
.sf-promo-msg.bad { color: #e11d48; }
.sf-sub { display: flex; justify-content: space-between; font-size: 14px; color: var(--mut); }
.sf-sub.disc { color: #16a34a; }
.sf-sub.disc button { width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--fg); font-size: 12px; line-height: 1; }

@container (max-width: 760px) {
  .sf-rating > span:not(.stars-ic) { display: none; }
  .sf[data-layout="featured"] .sf-grid, .sf[data-layout="grid"] .sf-grid, .sf[data-layout="mosaic"] .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf[data-layout="featured"] .sf-p.big .sf-p-img { min-height: 260px; }
  .sf[data-layout="carousel"] .sf-p { flex-basis: 70%; }
  .sf-arrow { display: none !important; }
  .sf-mag { grid-template-columns: 1fr; }
  .sf-mag:nth-child(even) .sf-p-img { order: 0; }
  .sf-rev-sum { width: 100%; justify-content: space-between; }
  .sf-rev { width: 270px; }
}
@media (max-width: 760px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-img { aspect-ratio: 1; }
  .pm-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-2 { grid-template-columns: 1fr; }
}

/* ---------- Coquille : avatar / logo ---------- */
.rail-av { overflow: hidden; }
.rail-av img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .rail { justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .ri { width: 40px; height: 40px; flex: none; border-radius: 14px; }
  .ri .ic { width: 21px; height: 21px; }
}
@media (max-width: 420px) {
  .rail { gap: 0; padding: 0 6px; }
  .ri { width: 36px; height: 40px; border-radius: 12px; }
  .ri .ic { width: 20px; height: 20px; }
  .badge-dot { top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 9px; }
}

/* ---------- Studio : vignettes de thèmes ---------- */
.st-presets { grid-template-columns: repeat(4, 1fr); }
.th-mini { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; aspect-ratio: 1; padding: 6px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); text-align: left; transition: transform .45s var(--ease-spring), box-shadow .25s; }
.th-bar { height: 4px; border-radius: 4px; }
.th-mini b { font-size: 17px; font-weight: 500; line-height: 1; letter-spacing: 0; }
.th-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; flex: 1; }
.th-cards i { display: block; }
.th-btn { height: 8px; width: 60%; }
.st-preset:hover .th-mini { transform: translateY(-2px) scale(1.04); }
.st-preset.is-on .th-mini { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.st-sub { display: grid; gap: 10px; }
.st-sub + .st-sub { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.st-sub .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.st-layouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-layout { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 14px; background: var(--canvas); border: 1px solid transparent; font-size: 11px; color: var(--muted); transition: border-color .25s, background-color .25s, transform .4s var(--ease-spring); }
.st-layout svg { width: 100%; height: 30px; color: #000; }
.st-layout:hover { transform: translateY(-2px); }
.st-layout.is-on { background: #fff; border-color: #000; color: #000; }
.up-row { display: flex; align-items: center; gap: 12px; }
.up-thumb { position: relative; width: 64px; height: 64px; border-radius: 16px; background: var(--canvas); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--muted); }
.up-thumb.round { border-radius: 50%; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb .ic { width: 24px; height: 24px; }
.up-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.up-actions input { display: none; }
.st-sec .input { height: 42px; font-size: 14px; }
.st-sec .field { gap: 6px; }

/* ---------- Pages Paramètres, Promotions, Avis ---------- */
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.set-card { padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 16px; }
.set-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }
.set-card h2 .ic { width: 22px; height: 22px; }
.set-card > p { color: var(--muted); font-size: 14px; margin-top: -8px; }
.logo-up { display: flex; align-items: center; gap: 16px; }
.logo-big { position: relative; width: 96px; height: 96px; border-radius: 28px; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 40px; font-weight: 600; overflow: hidden; flex: none; box-shadow: var(--sh-lg); transition: border-radius .5s var(--ease); }
.logo-big.round { border-radius: 50%; }
.logo-big img { width: 100%; height: 100%; object-fit: cover; }
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; border: 1px solid var(--border); transition: border-color .25s, background-color .25s; }
.pay-row.on { border-color: #000; background: #fafafa; }
.pay-row i { width: 36px; height: 36px; border-radius: 11px; background: var(--c); color: var(--ci, #fff); display: grid; place-items: center; flex: none; }
.pay-row i .ic { width: 18px; height: 18px; }
.pay-row span { flex: 1; min-width: 0; }
.pay-row b { display: block; font-size: 14px; font-weight: 500; }
.pay-row small { font-size: 12px; color: var(--muted); }
.pay-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9999px; background: #f3f0ff; color: var(--violet); font-size: 10px; font-weight: 600; vertical-align: 1px; }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.type-grid .su-type { padding: 12px; gap: 10px; font-size: 13px; box-shadow: none; border-color: var(--border); }
.type-grid .su-type.is-on { border-color: #000; }
.promo-list { display: flex; flex-direction: column; gap: 8px; }
.promo-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; border: 1px solid var(--border); animation: fadeUp .5s var(--ease) both; }
.promo-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: .04em; padding: 6px 10px; border-radius: 10px; background: var(--canvas); border: 1px dashed #c9cdd0; }
.promo-row span.d { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.promo-row span.d b { color: #000; font-weight: 500; }
.promo-form { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 8px; align-items: end; }
.promo-form .btn { height: 48px; }
.flash-pv { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 16px; background: #111; color: #fff; font-size: 13px; }
.flash-pv b.cd { padding: 2px 6px; border-radius: 6px; background: var(--violet); }
.rev-sum { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rev-sum .big { font-size: 64px; font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.rev-sum .stars-ic { font-size: 20px; }
.rev-dist { flex: 1; min-width: 220px; display: grid; gap: 6px; font-size: 13px; }
.rev-dist div { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 10px; color: var(--muted); }
.rev-dist i { height: 8px; border-radius: 8px; background: var(--canvas); overflow: hidden; }
.rev-dist em { display: block; height: 100%; width: var(--w); background: #f5a623; animation: grow 1.2s var(--ease) both; transform-origin: left; }
.rev-item { padding: 18px; border-radius: 22px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; animation: fadeUp .5s var(--ease) both; animation-delay: var(--d, 0ms); }
.rev-item-top { display: flex; align-items: center; gap: 10px; }
.rev-item-top .od-av { width: 38px; height: 38px; }
.rev-item-top div { flex: 1; }
.rev-item-top b { display: block; font-size: 14px; }
.rev-item-top small { font-size: 12px; color: var(--muted); }
.rev-item p { font-size: 15px; }
.rev-reply { display: flex; gap: 8px; }
.rev-reply .input { height: 40px; font-size: 14px; }
.rev-reply-done { padding: 10px 12px; border-radius: 14px; background: var(--canvas); font-size: 13px; color: var(--muted); }
.rev-reply-done b { color: #000; font-weight: 500; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: #16a34a; }
.verified .ic { width: 13px; height: 13px; }

/* Avis depuis la page de suivi */
.tr-review .stars-pick { display: flex; gap: 6px; margin: 14px 0; }
.stars-pick button { font-size: 38px; line-height: 1; color: #d9dcde; transition: transform .35s var(--ease-spring), color .2s; }
.stars-pick button.on { color: #f5a623; }
.stars-pick button:hover { transform: scale(1.2) rotate(-8deg); }
.stars-pick button.pop { animation: starPop .5s var(--ease-spring); }
@keyframes starPop { 50% { transform: scale(1.45) rotate(10deg); } }
.tr-review .textarea { min-height: 96px; }
.tr-review .btn { margin-top: 12px; height: 50px; }
.tr-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 0; }
.tr-thanks .big-star { font-size: 64px; color: #f5a623; animation: starPop .8s var(--ease-spring); }
.pr-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-badge-pv { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #be123c; font-weight: 600; }

@media (max-width: 900px) {
  .set-grid { grid-template-columns: 1fr; }
  .promo-form { grid-template-columns: 1fr 1fr; }
  .promo-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-layouts { grid-template-columns: repeat(4, 1fr); }
}
.sf[data-logo="round"] .sf-logo-img { border-radius: 50%; }
[hidden] { display: none !important; }
.pm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pm-row .sf-btn, #pmBuy { min-width: 0; white-space: normal; }
@media (max-width: 860px) {
  .pm-grid { grid-template-columns: minmax(0, 1fr); }
  .pm-img { aspect-ratio: 1; }
}
.st-presets { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }

/* =========================================================
   v3 : disponibilité, nouvel arrivage, livraison, avis photo
   ========================================================= */
.sf-badges { position: absolute; top: 10px; left: 10px; right: 54px; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.sf-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: min(var(--pr, 12px), 999px); font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.sf-badge.new { background: var(--a); color: var(--a-ink); animation: newGlow 2.6s var(--ease-io) infinite; }
@keyframes newGlow { 50% { transform: translateY(-2px); box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--a) 60%, transparent); } }
.sf-badge.promo { background: #e11d48; color: #fff; }
.sf-badge.low { background: #fff7ed; color: #c2410c; }
.sf-badge.sold { background: #111; color: #fff; }
.sf-p.sold .sf-p-img img, .sf-mag.sold .sf-p-img img { filter: grayscale(1); opacity: .55; }
.sf-p.sold .sf-p-add, .sf-mag.sold [data-add] { display: none !important; }
.sf-p.sold .sf-price b { color: var(--mut); }
.pm-new { align-self: flex-start; margin-top: -6px; }
.pm-stock.out { color: #e11d48 !important; }
.sf-rev-photo { display: block; width: 100%; height: 150px; border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.sf-rev-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sf-rev-photo:hover img { transform: scale(1.06); }
.ph-sheet { width: min(640px, 100%); padding: 12px; }
.ph-sheet img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 16px; background: var(--card); }
.ph-cap { padding: 10px 6px 2px; font-size: 13px; color: var(--mut); }
.sf-ship-hint { font-size: 12px; color: #c2410c; }
.sf-ship-hint:empty { display: none; }
.sf-sub b.free { color: #16a34a; font-weight: 600; }

/* Avis : photo de l'article reçu */
.rev-photo-pick { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 64px; border-radius: 18px; border: 2px dashed #d5d9dc; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .3s; }
.rev-photo-pick:hover { border-color: #000; }
.rev-photo-pick input { display: none; }
.rp-empty { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.rp-empty .ic { width: 26px; height: 26px; }
.rp-empty b { display: block; font-weight: 500; }
.rp-empty small { color: var(--muted); font-size: 12px; }
.rev-photo-pick.has { border-style: solid; border-color: #000; }
.rev-photo-pick.has .rp-empty { display: none; }
.rev-photo-pick img { width: 100%; max-height: 260px; object-fit: cover; animation: popIn .5s var(--ease-spring); }
.tr-thanks-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 20px; margin-top: 6px; box-shadow: var(--sh-lg); }
.rev-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; }
.rev-vis { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.rev-item.is-hidden { background: #fafafa; }
.rev-item.is-hidden > p, .rev-item.is-hidden .rev-photo { opacity: .45; }

/* Produits : options et bascules rapides */
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: 14px; }
.pr-badges { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.pr-badges i { font-style: normal; padding: 4px 8px; border-radius: 9999px; font-size: 10px; font-weight: 600; background: #fff; box-shadow: var(--sh-sm); }
.pr-badges i.new { background: var(--violet); color: #fff; }
.pr-badges i.sold { background: #111; color: #fff; }
.pr-badges i.low { background: #fff7ed; color: #c2410c; }
.pr-quick { display: flex; gap: 6px; padding: 10px 6px 0; }
.pr-q { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.pr-q .ic { width: 14px; height: 14px; }
.pr-q.on { background: #000; border-color: #000; color: #fff; }
.pr-q[data-q-avail]:not(.on) { color: #e11d48; border-color: #fecdd3; }

/* Promotions : aperçu livraison */
.ship-pv { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--canvas); font-size: 14px; transition: background-color .3s, color .3s; }
.ship-pv .ic { width: 24px; height: 24px; flex: none; --truck-bg: transparent; }
.ship-pv small { color: var(--muted); font-size: 12px; }
.ship-pv.on { background: #f0fdf4; color: #166534; }

/* =========================================================
   PAIEMENT VÉRIFIÉ PAR LA VENDEUSE
   ========================================================= */
/* Boutique : instructions de paiement Mobile Money */
.co-howto { display: flex; flex-direction: column; border-radius: min(var(--pr), 18px); background: var(--card); overflow: hidden; }
.co-howto-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.co-howto-row + .co-howto-row { border-top: 1px solid var(--line); }
.co-howto-row span { color: var(--mut); flex: none; }
.co-howto-row b { flex: 1; text-align: right; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.co-copy { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--fg); background: var(--bg); transition: transform .4s var(--ease-spring); }
.co-copy:hover { transform: scale(1.08); }
.co-copy .ic { width: 16px; height: 16px; }
.co-steps-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--mut); display: flex; flex-direction: column; gap: 4px; }
.co-steps-list b { color: var(--fg); font-weight: 600; }
.co-proof { margin-top: 0; background: transparent; border-color: var(--line); }
.co-proof:hover, .co-proof.has { border-color: var(--a); }
.co-proof .rp-empty small { color: var(--mut); }
.co-paystate { align-self: stretch; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; text-align: left; font-size: 13px; background: #fff7ed; color: #9a3412; }
.co-paystate b { font-weight: 600; font-size: 14px; }
.co-paystate[data-p="proof"] { background: #eff6ff; color: #1e40af; }
.co-paystate[data-p="paid"] { background: #f0fdf4; color: #166534; }
.co-paystate[data-p="cod"] { background: #f4f4f5; color: #3f3f46; }

/* Statut de paiement (pastille) */
.pay-st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 500; background: #fff7ed; color: #c2410c; }
.pay-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pay-st[data-p="proof"] { background: #eff6ff; color: #1d4ed8; animation: payBlink 1.6s infinite; }
.pay-st[data-p="paid"] { background: #f0fdf4; color: #15803d; }
.pay-st[data-p="cod"] { background: #f4f4f5; color: #52525b; }
@keyframes payBlink { 50% { box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); } }
.od-item-side .pay-st { font-size: 10px; }

/* Commandes : carte de vérification du paiement */
.od-pay { margin-top: 12px; padding: 14px; border-radius: 18px; border: 1.5px solid #fed7aa; background: #fffaf5; display: flex; flex-direction: column; gap: 10px; }
.od-pay[data-p="proof"] { border-color: #bfdbfe; background: #f8fbff; }
.od-pay[data-p="paid"] { border-color: #bbf7d0; background: #f7fdf9; }
.od-pay[data-p="cod"] { border-color: var(--border); background: var(--canvas); }
.od-pay-h { display: flex; align-items: center; gap: 10px; }
.od-pay-h i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--c); color: var(--ci, #fff); }
.od-pay-h i .ic { width: 18px; height: 18px; }
.od-pay-h div { flex: 1; min-width: 0; }
.od-pay-h b { display: block; font-size: 14px; font-weight: 600; }
.od-pay-h small { display: block; font-size: 12px; color: var(--muted); }
.od-pay p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.od-pay p b { color: #000; font-weight: 500; }
.od-pay-ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; font-size: 13px; }
.od-pay-ref b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 0; overflow-wrap: anywhere; }
.od-pay-proof { display: block; width: 96px; height: 96px; padding: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sh-sm); cursor: zoom-in; transition: width .45s var(--ease), height .45s var(--ease); }
.od-pay-proof img { width: 100%; height: 100%; object-fit: cover; }
.od-pay-proof.big { width: 100%; height: 360px; cursor: zoom-out; }
.od-pay-proof.big img { object-fit: contain; }
.od-pay-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.od-pay-btns .btn { flex: 1 1 auto; }
.btn-ok { background: #16a34a; color: #fff; }
.btn-ok:hover { background: #15803d; }
.od-wait { font-size: 12px; color: #c2410c; text-align: center; }

/* Ma boutique : numéros de réception */
.pay-num { display: flex; align-items: center; gap: 8px; margin: -2px 0 4px 48px; font-size: 12px; color: var(--muted); }
.pay-num .input { height: 40px; flex: 1; min-width: 0; font-size: 14px; }

/* Suivi : paiement côté cliente */
.tr-pay { border: 1.5px solid #fed7aa; }
.tr-pay[data-p="proof"] { border-color: #bfdbfe; }
.tr-pay[data-p="paid"] { border-color: #bbf7d0; }
.tr-pay[data-p="cod"] { border-color: transparent; }
.tr-pay-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tr-pay .co-howto { --card: var(--canvas); --line: var(--border); --mut: var(--muted); --fg: #000; --bg: #fff; --pr: 18px; margin-top: 12px; }
.tr-pay .co-steps-list { --mut: var(--muted); --fg: #000; margin-top: 12px; }
.tr-pay form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tr-pay .rev-photo-pick { margin-top: 0; }
.tr-pay-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.tr-pay-sent { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.tr-pay-sent img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }

/* =========================================================
   EXPÉDITION : LIVREUR
   ========================================================= */
/* Commandes : formulaire livreur */
.od-ship { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; border: 1.5px solid #000; background: #fff; animation: fadeUp .5s var(--ease) both; }
.od-ship-h { display: flex; align-items: flex-start; gap: 10px; }
.od-ship-h > .ic { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.od-ship-h b { display: block; font-size: 15px; font-weight: 600; }
.od-ship-h small { display: block; font-size: 12px; color: var(--muted); }
.od-ship .field { margin: 0; }
.od-ship-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.od-ship-saved > span { width: 100%; }
.od-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: var(--r-pill); background: var(--canvas); font-size: 13px; color: #000; transition: background-color .25s, transform .4s var(--ease-spring); }
.od-chip:hover { background: #e7eaec; transform: translateY(-1px); }
.od-chip img, .od-chip i { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.od-chip i { display: grid; place-items: center; background: #000; color: #fff; font-style: normal; font-size: 11px; font-weight: 600; }
.od-ship-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.od-pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 120px; border-radius: 16px; border: 2px dashed #d5d9dc; font-size: 12px; color: var(--muted); text-align: center; cursor: pointer; overflow: hidden; transition: border-color .25s; }
.od-pick:hover { border-color: #000; color: #000; }
.od-pick input { display: none; }
.od-pick .ic { width: 26px; height: 26px; }
.od-pick.has { border-style: solid; border-color: #000; }
.od-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: popIn .5s var(--ease-spring); }
.od-pick.has span { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; }
.od-ship-phone { display: flex; gap: 6px; }
.od-ship-phone .su-dial { height: 48px; }
.od-ship-phone .input { flex: 1; min-width: 0; }
.od-plate { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
/* Commandes : résumé sous l'étape « Expédiée » */
.od-courier { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 14px; background: var(--canvas); flex-wrap: wrap; }
.od-courier-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #000; color: #fff; font-weight: 600; flex: none; }
.od-courier-av img { width: 100%; height: 100%; object-fit: cover; }
.od-courier > div { flex: 1; min-width: 120px; }
.od-courier b { display: block; font-size: 13px; font-weight: 600; }
.od-courier small { margin: 0; font-size: 12px; }
.od-courier-parcel { width: 44px; height: 44px; padding: 0; border-radius: 10px; overflow: hidden; flex: none; cursor: zoom-in; transition: width .45s var(--ease), height .45s var(--ease); }
.od-courier-parcel img { width: 100%; height: 100%; object-fit: cover; }
.od-courier-parcel.big { width: 100%; height: 300px; cursor: zoom-out; order: 5; }
.od-courier-parcel.big img { object-fit: contain; background: #fff; }

/* Suivi : carte du livreur */
.tr-cr { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tr-cr-av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--a, #000); color: var(--a-ink, #fff); font-size: 26px; font-weight: 600; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--border); }
.tr-cr-av img { width: 100%; height: 100%; object-fit: cover; }
.tr-cr-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.tr-cr-info b { font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.tr-cr-info small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tr-cr-info small .ic { width: 15px; height: 15px; }
.tr-plate { display: inline-block; padding: 3px 10px; border-radius: 6px; border: 2px solid #000; background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.tr-cr-btns { display: flex; gap: 8px; margin-top: 16px; }
.tr-cr-btns > * { flex: 1; justify-content: center; height: 48px; }
.tr-parcel { margin-top: 16px; }
.tr-parcel small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tr-parcel small .ic { width: 15px; height: 15px; }
.tr-parcel-img { display: block; width: 100%; height: 180px; padding: 0; border-radius: 18px; overflow: hidden; background: var(--canvas); cursor: zoom-in; transition: height .5s var(--ease); }
.tr-parcel-img img { width: 100%; height: 100%; object-fit: cover; }
.tr-parcel-img.big { height: 420px; cursor: zoom-out; }
.tr-parcel-img.big img { object-fit: contain; }
.tr-cr-tip { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--canvas); font-size: 12px; color: var(--muted); }
.tr-cr-tip .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* =========================================================
   ABONNEMENT (vendeuse) · FERMETURE · ADMIN
   ========================================================= */
.badge-dot.warn { background: #ea580c; }
.spinner.big { width: 44px; height: 44px; border-width: 4px; margin: 4px auto 6px; }
.btn .spinner { margin-right: 8px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

/* Bandeau de rappel en haut de l'espace vendeuse */
.sub-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border-radius: 18px; background: #f3f0ff; color: #3b2a9e; font-size: 14px; transition: transform .45s var(--ease-spring), box-shadow .3s; animation: fadeUp .6s var(--ease) both; }
.sub-bar:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.sub-bar > .ic { width: 20px; height: 20px; flex: none; }
.sub-bar span { flex: 1; min-width: 0; }
.sub-bar b { font-weight: 600; }
.sub-bar em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; white-space: nowrap; }
.sub-bar em .ic { width: 16px; height: 16px; transition: transform .4s var(--ease-spring); }
.sub-bar:hover em .ic { transform: translateX(4px); }
.sub-bar.urgent { background: #fff7ed; color: #9a3412; }

/* Espace fermé (abonnement expiré) */
.sub-locked .app-main > :not(#subBar) { filter: blur(3px); opacity: .5; pointer-events: none; user-select: none; }
.sub-lock { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(242, 244, 245, .55); }
.sub-lock-card { width: min(440px, 100%); padding: 30px 26px 24px; border-radius: 28px; background: #fff; box-shadow: var(--sh-lg); text-align: center; animation: fadeUp .6s var(--ease) both; }
.sub-lock-card > i { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: #fff7ed; color: #c2410c; }
.sub-lock-card > i .ic { width: 28px; height: 28px; }
.sub-lock-card h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; }
.sub-lock-card p { margin: 10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sub-lock-card p b { color: #000; font-weight: 500; }

/* Boutique fermée aux clientes */
.sf-is-closed { overflow: hidden; }
.sf-closed { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--bg, #f2f4f5); }
.sf-closed-card { width: min(420px, 100%); text-align: center; animation: fadeUp .7s var(--ease) both; color: var(--fg, #000); }
.sf-closed-logo { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--a, #000); color: var(--a-ink, #fff); font-size: 32px; font-weight: 600; }
.sf-closed-logo img { width: 100%; height: 100%; object-fit: cover; }
.sf-closed h1 { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; }
.sf-closed p { margin: 10px 0 22px; color: var(--mut, #5d6470); font-size: 15px; line-height: 1.5; }

/* Page « Mon abonnement » */
.sb-status { display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); animation: fadeUp .6s var(--ease) both; }
.sb-st-main { flex: 1; min-width: 0; }
.sb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: #f3f0ff; color: var(--violet); font-size: 13px; font-weight: 500; }
.sb-pill .ic { width: 15px; height: 15px; }
.sb-status[data-s="active"] .sb-pill { background: #f0fdf4; color: #15803d; }
.sb-status[data-s="expired"] .sb-pill { background: #fff7ed; color: #c2410c; }
.sb-days { margin-top: 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.sb-days b { font-weight: 500; }
.sb-status p { margin-top: 10px; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sb-status p b { color: #000; font-weight: 500; }
.sb-ring { position: relative; width: 120px; height: 120px; flex: none; }
.sb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sb-ring circle { fill: none; stroke: var(--canvas); stroke-width: 9; }
.sb-ring .fg { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: calc(276.5 - 276.5 * var(--p) / 100); transition: stroke-dashoffset 1.2s var(--ease); }
.sb-status[data-s="active"] .sb-ring .fg { stroke: #16a34a; }
.sb-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 500; letter-spacing: -0.04em; }
.sb-ring span .ic { width: 30px; height: 30px; color: #c2410c; }
.sb-title { margin: 30px 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.04em; }
.sb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sb-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); animation: fadeUp .6s var(--ease) both; animation-delay: var(--d); transition: transform .5s var(--ease-spring), box-shadow .3s; }
.sb-plan:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.sb-plan.pop { box-shadow: 0 0 0 2px var(--violet), var(--sh-lg); }
.sb-tag { position: absolute; top: -11px; left: 22px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--violet); color: #fff; font-size: 11px; font-weight: 600; }
.sb-plan h3 { font-size: 16px; font-weight: 500; color: var(--muted); }
.sb-price { font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.05em; }
.sb-local { min-height: 16px; font-size: 12px; color: var(--muted); }
.sb-plan p { font-size: 14px; color: var(--muted); }
.sb-save { align-self: flex-start; margin: 4px 0 12px; padding: 4px 10px; border-radius: var(--r-pill); background: #f0fdf4; color: #15803d; font-size: 12px; font-weight: 500; }
.sb-save.ghost { background: var(--canvas); color: var(--muted); }
.sb-plan .btn { margin-top: auto; }
.sb-secure { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 18px; background: #fff; font-size: 13px; color: var(--muted); }
.sb-secure > .ic { width: 18px; height: 18px; color: #000; }
.sb-secure b { color: #000; font-weight: 600; }
.sb-test { font-style: normal; color: #c2410c; }
.sb-methods { display: flex; gap: 4px; margin-left: auto; }
.sb-methods i, .sb-gp-m i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: var(--ci); }
.sb-methods .ic, .sb-gp-m i .ic { width: 15px; height: 15px; }
.sb-history { margin-top: 30px; padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); }
.sb-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.sb-row:first-child { border-top: 0; }
.sb-row > i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #f0fdf4; color: #16a34a; flex: none; }
.sb-row > i .ic { width: 16px; height: 16px; }
.sb-row span { flex: 1; min-width: 0; }
.sb-row span b { display: block; font-weight: 500; }
.sb-row small { font-size: 12px; color: var(--muted); }
.sb-row > b { font-weight: 500; white-space: nowrap; }

/* Fenêtre (simulation GeniusPay, confirmation) */
.sb-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0); transition: background-color .3s; }
.sb-modal.open { background: rgba(0, 0, 0, .45); }
.sb-sheet { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 28px; background: #fff; box-shadow: var(--sh-lg); opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .3s, transform .45s var(--ease-spring); }
.sb-modal.open .sb-sheet { opacity: 1; transform: none; }
.sb-done { padding: 30px 26px 24px; text-align: center; }
.sb-done h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.sb-done p { margin: 10px 0 20px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.sb-done p b { color: #000; font-weight: 500; }
.sb-done-ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #16a34a; color: #fff; animation: popIn .6s var(--ease-spring); }
.sb-done-ic .ic { width: 34px; height: 34px; }
.sb-done-ic.wait { background: #fff7ed; color: #c2410c; }
.sb-gp { padding: 0 0 20px; }
.sb-gp-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sb-gp-head b { font-size: 18px; letter-spacing: -0.03em; }
.sb-gp-head b span { margin-left: 2px; padding: 0 5px; border-radius: 6px; background: #2563eb; color: #fff; }
.sb-gp-head small { flex: 1; font-size: 12px; color: var(--muted); }
.sb-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); }
.sb-x .ic { width: 16px; height: 16px; }
.sb-gp-amount { padding: 20px; text-align: center; }
.sb-gp-amount small { font-size: 13px; color: var(--muted); }
.sb-gp-amount b { display: block; margin-top: 4px; font-size: 34px; font-weight: 500; letter-spacing: -0.05em; }
.sb-gp-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px 16px; }
.sb-gp-m { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 500; text-align: left; transition: border-color .25s; }
.sb-gp-m.is-on { border-color: #2563eb; background: #eff6ff; }
.sb-gp > .btn { width: calc(100% - 40px); margin: 0 20px; }
.sb-gp-note { margin: 12px 20px 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Admin */
.ad { width: min(1180px, 100% - 2 * var(--gutter, 16px)); margin: 0 auto; padding: 24px 0 72px; }
.ad-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ad-head .rail-logo { margin: 0; background: #000; box-shadow: none; }
.ad-head h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.05em; }
.ad-head > div { flex: 1; }
.ad-mode { padding: 5px 12px; border-radius: var(--r-pill); background: #fff7ed; color: #c2410c; font-size: 12px; font-weight: 500; }
.ad-mode[data-live="true"] { background: #f0fdf4; color: #15803d; }
.ad-login { width: min(400px, 100%); margin: 8vh auto 0; padding: 26px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 12px; }
.ad-login h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.ad-login p { font-size: 14px; color: var(--muted); }
.ad-demo { margin-bottom: 16px; }
.ad .od-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ad-card { margin-top: 14px; padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-sm); }
.ad-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ad-card-h h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }
.ad-search { margin-bottom: 8px; }
.ad-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--border); font-size: 14px; }
.ad-tr small { display: block; font-size: 12px; color: var(--muted); }
.ad-tr b { font-weight: 500; }
.ad-th { border-top: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ad-st { display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill); font-style: normal; font-size: 12px; font-weight: 500; background: #f3f0ff; color: var(--violet); }
.ad-st[data-s="active"] { background: #f0fdf4; color: #15803d; }
.ad-st[data-s="expired"] { background: #fff7ed; color: #c2410c; }
.ad-empty { padding: 16px 4px; font-size: 14px; }
.ad-secret { margin-top: 12px; padding: 14px; border-radius: 16px; background: #fffbeb; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.ad-secret-v { display: block; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
/* Admin : état des réglages GeniusPay */
.ad-setup { display: flex; flex-direction: column; gap: 8px; }
.ad-setup-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff7ed; }
.ad-setup-row[data-ok="true"] { background: #f0fdf4; }
.ad-setup-row i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #c2410c; color: #fff; }
.ad-setup-row[data-ok="true"] i { background: #16a34a; }
.ad-setup-row i .ic { width: 16px; height: 16px; }
.ad-setup-row b { display: block; font-size: 14px; font-weight: 600; }
.ad-setup-row small { display: block; font-size: 12px; color: var(--muted); }
.ad code, .ad-login code { padding: 1px 6px; border-radius: 6px; background: var(--canvas); font-size: .92em; }

@media (max-width: 900px) {
  .sb-plans { grid-template-columns: 1fr; }
  .ad .od-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sb-status { flex-direction: column-reverse; align-items: flex-start; padding: 22px; }
  .sb-ring { width: 88px; height: 88px; }
  .sb-methods { margin-left: 0; }
  .ad-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-tr > :nth-child(3) { display: none; }
  .ad-tr > :nth-child(4) { grid-column: 1 / -1; }
  .ad-th { display: none; }
  .sub-bar { flex-wrap: wrap; }
}
