/* ==========================================================================
   Maison Kalidas · V9 — e-boutique : icônes et boutons de la Maison, panneaux, réservation avec acompte,
   espace client et back-office. S'appuie sur les jetons de kalidas.css (couleurs, polices, planchers de lecture).
   ========================================================================== */
:root { --carte: #FBF8F2; --trait: rgba(42, 24, 16, .12); --trait-or: rgba(184, 137, 62, .45); --ombre: 0 24px 60px -34px rgba(42, 24, 16, .45);
  --vert: #3F6B4F; --rouge: #9B3A2B; --r-xl: 28px; --r-l: 20px; --r-m: 14px; }

/* ---------- Icônes : un trait fin, bouts arrondis ---------- */
.ki { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ico svg, .tabbar svg { stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ico .ki { width: 20px; height: 20px; }
.ico { position: relative; transition: background .35s, box-shadow .35s, transform .35s var(--ease-out); }
.ico:hover { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.ico:active { transform: scale(.94); }
.acct.on::after { content: ""; position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 0 2px var(--choco); }
.is-solid .acct.on::after { box-shadow: 0 0 0 2px var(--ivoire); }

/* ---------- Boutons : une matière, trois rangs ---------- */
.btn { min-height: 52px; justify-content: center; border-radius: var(--r-pill); transition: color .5s var(--ease-out), border-color .5s, box-shadow .5s, transform .35s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ivoire), 0 0 0 3.5px var(--or); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-gold { background: linear-gradient(135deg, #DDB96A 0%, #CFA657 46%, #C4923E 100%); color: #2A1810; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), inset 0 -10px 18px -12px rgba(92, 58, 40, .5), 0 14px 26px -18px rgba(92, 58, 40, .8); }
.btn-gold:hover { box-shadow: inset 0 0 0 1px rgba(221, 185, 106, .55), 0 18px 30px -18px rgba(42, 24, 16, .7); }
.btn-ink { background: var(--choco); color: var(--or-pale); box-shadow: inset 0 0 0 1px rgba(221, 185, 106, .4); }
.btn-ink::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, #DDB96A, #C39A4B); transform: translateY(101%); transition: transform .6s var(--ease-out); }
.btn-ink:hover { color: #2A1810; }
.btn-ink:hover::before { transform: none; }
.btn-line { border-color: var(--trait-or); }
.btn-soft { background: var(--ivoire-2); color: var(--choco); box-shadow: inset 0 0 0 1px var(--trait); }
.btn-soft:hover { box-shadow: inset 0 0 0 1px var(--or); }
.btn-sm { min-height: 42px; padding: 0 20px !important; }
.btn .ki { width: 18px; height: 18px; margin-left: -4px; }
.btn.wide { width: 100%; }
.lnk { display: inline-flex; align-items: center; gap: 8px; font: 400 15px/1.3 var(--f-body); color: var(--or-txt); border-bottom: 1px solid var(--trait-or); padding-bottom: 2px; transition: color .3s, border-color .3s, gap .4s var(--ease-out); }
.lnk:hover { color: var(--choco); border-color: var(--choco); gap: 12px; }
.on-dark .lnk:hover, .auth-art .lnk:hover { color: var(--ivoire); border-color: var(--ivoire); }
.fav-big, .c-fav { transition: transform .4s var(--ease-out), box-shadow .4s; }
.fav-big:hover, .c-fav:hover { box-shadow: 0 0 0 1px var(--or); }
.c-fav svg, .fav-big svg { stroke-width: 1.3; }

/* ---------- Tiroir de sélection : le calcul de l'acompte ---------- */
.dr-sum { display: grid; gap: 8px; }
.dr-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 400; color: var(--gris); }
.dr-sum > div b { font: 400 20px var(--f-display); color: var(--encre); font-variant-numeric: lining-nums; }
.dr-sum > div.k { padding-top: 10px; border-top: 1px solid var(--trait); color: var(--encre); }
.dr-sum > div.k b { font-size: 24px; color: var(--or-txt); }
.dr-sum p { margin: 4px 0 0; font-size: 14.5px !important; line-height: 1.55; color: var(--gris); }
.dr-alt { justify-self: center; font: 400 14.5px var(--f-body); color: var(--gris); border-bottom: 1px solid var(--trait); padding-bottom: 2px; }
.dr-alt:hover { color: var(--choco); border-color: var(--or); }
.drawer .dr-foot [hidden] { display: none; }

/* ---------- Panneau latéral (tailles, détails) ---------- */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 972; width: min(420px, 94vw); display: flex; flex-direction: column; background: var(--ivoire); border-radius: 30px 0 0 30px; box-shadow: -30px 0 80px -40px rgba(21, 11, 7, .6); transform: translateX(104%); transition: transform .7s var(--ease-luxe); }
.sheet.open { transform: none; }
.sheet-veil { position: fixed; inset: 0; z-index: 971; background: rgba(21, 11, 7, .45); opacity: 0; pointer-events: none; transition: opacity .5s; }
.sheet.open + .sheet-veil { opacity: 1; pointer-events: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--trait); }
.sheet-head h3 { margin: 0; font: 300 26px/1.1 var(--f-display); }
.sheet-x { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--trait); transition: box-shadow .3s, transform .4s var(--ease-out); }
.sheet-x:hover { box-shadow: inset 0 0 0 1px var(--or); transform: rotate(90deg); }
.sheet-body { flex: 1; overflow: auto; padding: 8px 28px 28px; }
.sheet-foot { padding: 20px 28px 26px; border-top: 1px solid var(--trait); display: grid; gap: 12px; }
.size-list { list-style: none; margin: 0; padding: 0; }
.size-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--trait); font: 400 17px var(--f-body); text-align: left; transition: padding .4s var(--ease-out), color .3s; }
.size-list button small { font-size: 14px; color: var(--gris); }
.size-list button:hover { padding-left: 12px; color: var(--or-txt); }
.size-list button[aria-pressed="true"] { color: var(--or-txt); }
.size-list button[aria-pressed="true"]::after { content: ""; width: 16px; height: 8px; border-left: 1.25px solid; border-bottom: 1.25px solid; transform: rotate(-45deg) translateY(-3px); }
.size-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--trait); font: 400 16px var(--f-body); transition: box-shadow .3s; }
.size-row:hover { box-shadow: inset 0 0 0 1px var(--or); }
.size-row b { font: 400 21px var(--f-display); font-variant-numeric: lining-nums; }
.size-row span { display: inline-flex; align-items: center; gap: 10px; color: var(--gris); }

/* ---------- Fiche : le bloc d'achat ---------- */
.buy-note { display: grid; gap: 10px; margin: -6px 0 0; padding: 0; list-style: none; }
.buy-note li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--cacao); }
.buy-note .ki { margin-top: 2px; color: var(--or-txt); }
.buy-note b { font-weight: 500; color: var(--encre); }
.pi-alt { justify-self: start; }

/* ---------- Formulaires ---------- */
.f { display: grid; gap: 8px; min-width: 0; }
.f > span, .f > label { font: 500 11px/1.3 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.f input, .f select, .f textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 0; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font: 400 16px/1.4 var(--f-body); color: var(--encre); transition: box-shadow .3s; -webkit-appearance: none; appearance: none; }
.f textarea { min-height: 120px; resize: vertical; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5B45' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 44px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--or); }
.f small { font-size: 14px; color: var(--gris); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--cacao); cursor: pointer; }
.f-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--or); }
.f-err { min-height: 1.4em; margin: 0; font-size: 15px; font-weight: 400; color: var(--rouge); }
.f-ok { color: var(--vert); }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }

/* ---------- Pastilles d'état ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: var(--r-pill); font: 500 11px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; background: rgba(184, 137, 62, .12); color: var(--or-txt); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.vert { background: rgba(63, 107, 79, .12); color: var(--vert); }
.pill.fin { background: rgba(42, 24, 16, .07); color: var(--cacao); }
.pill.gris { background: rgba(42, 24, 16, .06); color: var(--gris); }
.pill.rouge { background: rgba(155, 58, 43, .1); color: var(--rouge); }

/* ---------- Cartes et listes ---------- */
.kc { background: var(--carte); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--trait); padding: clamp(22px, 2.6vw, 34px); min-width: 0; }
.kc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kc h2, .kc h3 { margin: 0; font: 300 clamp(24px, 2.2vw, 30px)/1.15 var(--f-display); }
.kc h3 { font-size: clamp(22px, 1.8vw, 26px); }
.cap { font: 500 11px/1.3 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--or-txt); }
.muted { color: var(--gris); font-size: 15px; font-weight: 400; }
.empty { padding: 34px 0 10px; font: italic 300 22px/1.4 var(--f-display); color: var(--gris); }
.piece { display: grid; grid-template-columns: 68px 1fr auto; gap: 16px; align-items: center; }
.piece .t { width: 68px; aspect-ratio: 4/5; border-radius: 34px 34px 12px 12px; overflow: hidden; background: var(--choco); }
.piece .t img { width: 100%; height: 100%; object-fit: cover; }
.piece b { display: block; font: 400 20px/1.2 var(--f-display); }
.piece small { font-size: 14.5px; color: var(--gris); }
.piece .p { font: 400 20px var(--f-display); font-variant-numeric: lining-nums; white-space: nowrap; }

/* Suivi d'une réservation : quatre étapes */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 6px; padding: 0; list-style: none; }
.track li { position: relative; padding-top: 22px; font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--gris); text-align: center; }
.track li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait-or); z-index: 1; }
.track li::after { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 1px; background: var(--trait); }
.track li:first-child::after { display: none; }
.track li.done { color: var(--encre); }
.track li.done::before { background: var(--or); box-shadow: 0 0 0 4px rgba(184, 137, 62, .16); }
.track li.done::after { background: var(--or); }
.track li.now { color: var(--or-txt); font-weight: 500; }
.track.off li { opacity: .45; }

/* Fil de discussion */
.thread { display: grid; gap: 14px; }
.msg { max-width: min(560px, 88%); padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.msg.me { justify-self: end; border-radius: 20px 20px 6px 20px; background: var(--choco); color: var(--ivoire); box-shadow: none; }
.msg p { margin: 0; font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.msg small { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 400; opacity: .7; }
.reply { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 18px; }
@media (max-width: 560px) { .reply { grid-template-columns: 1fr; } }

/* Bandeau de démonstration */
.demo-flag { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 9px 18px; background: #2A1810; color: var(--or-pale); font: 400 14px/1.4 var(--f-body); text-align: center; }
.demo-flag b { font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: var(--or-clair); }

/* ---------- Connexion et inscription ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; background: var(--ivoire); }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(110px, 12vh, 150px) clamp(32px, 5vw, 80px) clamp(40px, 6vh, 70px); background: var(--choco); color: var(--ivoire); overflow: hidden; border-radius: 0 0 44px 0; }
.auth-art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 11, 7, .92), rgba(21, 11, 7, .25) 70%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 { margin: 0; font: 300 var(--t-h1)/1.02 var(--f-display); }
.auth-art h1 em { color: var(--or-clair); }
.auth-art ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-art li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; color: rgba(246, 240, 228, .82); }
.auth-art li .ki { color: var(--or-clair); margin-top: 2px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(110px, 12vh, 150px) clamp(26px, 6vw, 96px) clamp(120px, 12vh, 140px); max-width: 640px; width: 100%; margin: 0 auto; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: var(--r-pill); background: var(--ivoire-2); box-shadow: inset 0 0 0 1px var(--trait); }
.seg button { min-height: 44px; border-radius: var(--r-pill); font: 500 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); transition: background .4s, color .4s, box-shadow .4s; }
.seg button[aria-selected="true"] { background: var(--choco); color: var(--or-pale); box-shadow: 0 10px 20px -14px rgba(42, 24, 16, .8); }
.auth-form form { display: grid; gap: 16px; }
.auth-form h2 { margin: 0; font: 300 var(--t-h2)/1.05 var(--f-display); }
.or-sep { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--gris); }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { padding: 96px var(--gutter) 34px; border-radius: 0 0 34px 34px; }
  .auth-art ul { display: none; }
  .auth-form { padding: 34px var(--gutter) 130px; }
}

/* ---------- Espace client ---------- */
.esp-hero { padding: calc(var(--header-h) + clamp(34px, 6vh, 70px)) 0 clamp(30px, 4vh, 46px); background: var(--choco); color: var(--ivoire); border-radius: 0 0 44px 44px; }
.esp-hero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.esp-hero h1 { margin: 12px 0 0; font: 300 var(--t-h1)/1.02 var(--f-display); }
.esp-hero h1 em { color: var(--or-clair); }
.esp-hero p { margin: 10px 0 0; color: rgba(246, 240, 228, .74); }
.esp { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(30px, 4vw, 56px); padding-bottom: clamp(70px, 8vw, 120px); align-items: start; }
.esp-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.esp-nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border-radius: var(--r-m); font: 400 16px var(--f-body); color: var(--cacao); text-align: left; transition: background .3s, color .3s, box-shadow .3s; }
.esp-nav button:hover { background: rgba(42, 24, 16, .04); }
.esp-nav button[aria-selected="true"] { background: var(--carte); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait-or); }
.esp-nav button[aria-selected="true"] .ki { color: var(--or-txt); }
.esp-nav button i { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--or); color: #2A1810; font: 500 12px var(--f-body); font-style: normal; }
.esp-nav hr { width: 100%; border: 0; border-top: 1px solid var(--trait); margin: 8px 0; }
.esp-main { display: grid; gap: 22px; min-width: 0; }
.esp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.quick-a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-a a, .quick-a button { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-l); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); text-align: left; font: 400 16px/1.35 var(--f-body); transition: box-shadow .3s, transform .5s var(--ease-out); }
.quick-a a:hover, .quick-a button:hover { box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-3px); }
.quick-a .ki { width: 24px; height: 24px; color: var(--or-txt); }
.quick-a small { font-size: 14px; color: var(--gris); }
.rows { display: grid; }
.rows > * { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--trait); text-align: left; width: 100%; }
.rows > *:last-child { border-bottom: 0; }
.rows b { display: block; font: 400 19px/1.25 var(--f-display); }
.rows small { font-size: 14.5px; color: var(--gris); }
.rows button:hover b { color: var(--or-txt); }
.sums { display: grid; gap: 8px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--trait); }
.sums div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 400; color: var(--gris); }
.sums b { font: 400 19px var(--f-display); color: var(--encre); font-variant-numeric: lining-nums; }
.sums .k b { color: var(--or-txt); font-size: 22px; }
.kc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 900px) {
  .esp { grid-template-columns: 1fr; gap: 20px; }
  .esp-nav { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .esp-nav::-webkit-scrollbar { display: none; }
  .esp-nav button { flex: none; width: auto; padding: 11px 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--trait); font-size: 15px; white-space: nowrap; }
  .esp-nav button[aria-selected="true"] { background: var(--choco); color: var(--or-pale); box-shadow: none; }
  .esp-nav button[aria-selected="true"] .ki { color: var(--or-clair); }
  .esp-nav hr { display: none; }
  .esp-grid, .quick-a { grid-template-columns: 1fr; }
  .esp-hero { border-radius: 0 0 34px 34px; padding-top: 104px; }
  .track li { font-size: 14px; }
}

/* ---------- Réservation avec acompte ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 60px); padding-top: clamp(30px, 4vw, 56px); padding-bottom: clamp(80px, 8vw, 130px); align-items: start; }
.co-steps { display: grid; gap: 18px; }
.co-step > h2 { display: flex; align-items: baseline; gap: 14px; }
.co-step > h2 i { font: 500 11px var(--f-body); font-style: normal; letter-spacing: .2em; color: var(--or-txt); }
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice2 label { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: var(--r-l); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); cursor: pointer; transition: box-shadow .3s; }
.choice2 input { position: absolute; opacity: 0; }
.choice2 label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--or); background: var(--carte); }
.choice2 label:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--or); }
.choice2 b { font: 400 21px/1.2 var(--f-display); }
.choice2 span { font-size: 14.5px; font-weight: 400; line-height: 1.5; color: var(--gris); }
.choice2 .ki { width: 24px; height: 24px; color: var(--or-txt); }
.co-side { position: sticky; top: 92px; }
.pay-box { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-l); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.pay-box .stripe-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 400; color: var(--gris); }
.done-hero { text-align: center; display: grid; justify-items: center; gap: 14px; padding: clamp(30px, 5vw, 60px) 0; }
.done-hero .seal-ok { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #DDB96A, #C4923E); color: #2A1810; box-shadow: 0 0 0 10px rgba(184, 137, 62, .14); }
.done-hero .seal-ok .ki { width: 30px; height: 30px; stroke-width: 1.5; }
.done-hero h2 { margin: 0; font: 300 var(--t-h1)/1.05 var(--f-display); }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co-side { position: static; order: -1; } .choice2 { grid-template-columns: 1fr; } }

/* ---------- Back-office ---------- */
.bo { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: #F3ECDD; color: var(--encre); font: 400 16px/1.55 var(--f-body); }
.bo-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 26px 16px 20px; background: #2A1810; color: rgba(246, 240, 228, .78); overflow: auto; }
.bo-brand { display: grid; justify-items: center; gap: 10px; padding: 4px 0 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(230, 211, 170, .14); }
.bo-brand img { width: 104px; }
.bo-brand span { font: 500 11px var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--or-clair); }
.bo-side nav { display: grid; gap: 3px; }
.bo-side nav button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px; border-radius: var(--r-m); font: 400 15.5px var(--f-body); color: inherit; text-align: left; transition: background .3s, color .3s; }
.bo-side nav button:hover { background: rgba(230, 211, 170, .07); color: var(--ivoire); }
.bo-side nav button[aria-selected="true"] { background: rgba(230, 211, 170, .12); color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(221, 185, 106, .3); }
.bo-side nav button[aria-selected="true"] .ki { color: var(--or-clair); }
.bo-side nav button i { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--or-clair); color: #2A1810; font: 500 12px var(--f-body); font-style: normal; }
.bo-who { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(230, 211, 170, .14); font-size: 14.5px; }
.bo-who b { display: block; font: 400 19px var(--f-display); color: var(--ivoire); }
.bo-who button, .bo-who a { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(246, 240, 228, .7); }
.bo-who button:hover, .bo-who a:hover { color: var(--or-clair); }
.bo-main { min-width: 0; padding: clamp(22px, 3vw, 44px) clamp(18px, 3.4vw, 52px) 80px; display: grid; gap: 22px; align-content: start; }
.bo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.bo-top h1 { margin: 6px 0 0; font: 300 clamp(32px, 3vw, 44px)/1.05 var(--f-display); }
.bo-top p { margin: 6px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { display: grid; gap: 10px; padding: 22px; border-radius: var(--r-l); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.kpi.dark { background: #2A1810; color: var(--ivoire); box-shadow: none; }
.kpi.dark .cap { color: var(--or-clair); }
.kpi b { font: 300 clamp(30px, 2.6vw, 40px)/1 var(--f-display); font-variant-numeric: lining-nums; }
.kpi small { font-size: 14px; color: var(--gris); }
.kpi.dark small { color: rgba(246, 240, 228, .66); }
.bo-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 6px; height: 150px; margin-top: 8px; }
.bars span { position: relative; display: block; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #DDB96A, #C4923E); }
.bars span.z { background: var(--trait); }
.bars span:hover::after { content: attr(data-t); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: #2A1810; color: var(--ivoire); font-size: 13px; white-space: nowrap; z-index: 2; }
.bars-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13.5px; color: var(--gris); }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th { padding: 10px 12px; font: 500 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gris); text-align: left; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--trait); font-size: 15px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr[data-open] { cursor: pointer; }
.tbl tbody tr[data-open]:hover { background: rgba(184, 137, 62, .06); }
.tbl td b { font: 400 18px/1.2 var(--f-display); display: block; }
.tbl td small { font-size: 14px; color: var(--gris); }
.tbl .num { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.tbl .th { width: 46px; aspect-ratio: 4/5; border-radius: 23px 23px 8px 8px; overflow: hidden; background: var(--choco); }
.tbl .th img { width: 100%; height: 100%; object-fit: cover; }
.tbl input[type="number"] { width: 110px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font: 400 16px var(--f-body); text-align: right; }
.tbl input.s { width: 64px; text-align: center; }
.tbl input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--or); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--trait); font: 400 15px var(--f-body); color: var(--cacao); transition: background .3s, color .3s, box-shadow .3s; }
.chips button[aria-pressed="true"] { background: #2A1810; color: var(--or-pale); box-shadow: none; }
.sw { position: relative; display: inline-block; width: 46px; height: 26px; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 13px; background: rgba(42, 24, 16, .16); transition: background .3s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--ease-out); }
.sw input:checked + i { background: var(--or); }
.sw input:checked + i::after { transform: translateX(20px); }
.sw input:focus-visible + i { box-shadow: 0 0 0 2px var(--ivoire), 0 0 0 3.5px var(--or); }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lane { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); background: rgba(42, 24, 16, .04); }
.lane > h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 2px; font: 400 21px var(--f-display); }
.lane > h3 i { font: 500 12px var(--f-body); font-style: normal; color: var(--gris); }
.tk { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.tk b { font: 400 19px/1.2 var(--f-display); }
.tk small { font-size: 14px; color: var(--gris); }
.tk .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.inbox { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.inbox-list { display: grid; gap: 8px; }
.inbox-list button { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); text-align: left; transition: box-shadow .3s; }
.inbox-list button[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--or); }
.inbox-list b { font: 400 18px/1.25 var(--f-display); }
.inbox-list small { font-size: 14px; color: var(--gris); }
.dl2 { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.dl2 dt { color: var(--gris); }
.dl2 dd { margin: 0; }
.bo-login { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(90% 70% at 50% 20%, #2A1810, #2A1810 70%); }
.bo-login form { width: min(440px, 100%); display: grid; gap: 16px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: var(--ivoire); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.bo-login img { width: 120px; justify-self: center; }
.bo-login h1 { margin: 0; font: 300 32px/1.1 var(--f-display); text-align: center; }
.bo-login p { margin: 0; text-align: center; }
.bo-mtop { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bo-2, .inbox { grid-template-columns: 1fr; } .lanes { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 16px; } .piece { grid-template-columns: 56px 1fr; } .piece .t { width: 56px; } .piece .p { grid-column: 2; } }
.rows > .piece { display: grid; }
/* Les pages de l'espace n'ont pas de section .sec : la gouttière se pose ici */
.esp-hero, .wrap.esp, .wrap.co, #app > .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.esp-hero .wrap { padding: 0; }

/* ==========================================================================
   Back-office V2 : menu latéral groupé et repliable, tiroir sur mobile, catalogue pilotable, fiches de pièce
   ========================================================================== */
.bo { grid-template-columns: 272px minmax(0, 1fr); overflow-x: clip; transition: grid-template-columns .5s var(--ease-luxe); }
.bo-bar, .bo-veil { display: none; }
.bo-side { padding: 22px 14px 18px; gap: 4px; scrollbar-width: none; background: linear-gradient(180deg, #20120C, #170C08); box-shadow: inset -1px 0 0 rgba(230, 211, 170, .1); }
.bo-side::-webkit-scrollbar { display: none; }
.bo-brand { padding: 6px 0 18px; margin-bottom: 4px; }
.bo-brand img { width: 108px; transition: width .4s var(--ease-out); }
.bo-fold { position: absolute; top: 22px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: rgba(246, 240, 228, .6); box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .18); transition: color .3s, box-shadow .3s, transform .5s var(--ease-out); }
.bo-fold .ki { width: 16px; height: 16px; transform: rotate(180deg); }
.bo-fold:hover { color: var(--or-clair); box-shadow: inset 0 0 0 1px var(--or-clair); }
.bo-side { position: sticky; }
.bo-g { display: block; padding: 16px 14px 6px; font: 500 11px var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: rgba(221, 185, 106, .62); }
.bo-side nav button { position: relative; min-height: 46px; padding: 11px 14px; }
.bo-side nav button > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-side nav button[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--or-clair); }
.bo-who { gap: 6px; }
.bo-me { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.bo-me b { display: block; font: 400 18px/1.2 var(--f-display); color: var(--ivoire); }
.bo-me small { font-size: 14px; color: rgba(246, 240, 228, .6); }
.bo-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #DDB96A, #C4923E); color: #2A1810; font: 500 14px var(--f-body); letter-spacing: .04em; }
.bo-who a, .bo-who button { min-height: 42px; padding: 0 12px; border-radius: var(--r-m); width: 100%; transition: background .3s, color .3s; }
.bo-who a:hover, .bo-who button:hover { background: rgba(230, 211, 170, .07); }
/* menu replié : une colonne d'icônes */
.bo.rail { grid-template-columns: 78px minmax(0, 1fr); }
.bo.rail .bo-side { padding-inline: 12px; align-items: stretch; }
.bo.rail .bo-brand span, .bo.rail .bo-g, .bo.rail .bo-side nav button > span, .bo.rail .bo-me > span:last-child, .bo.rail .bo-who a span, .bo.rail .bo-who button span { display: none; }
.bo.rail .bo-brand img { width: 46px; }
.bo.rail .bo-fold { position: static; margin: 0 auto 8px; }
.bo.rail .bo-fold .ki { transform: none; }
.bo.rail .bo-side nav { gap: 6px; }
.bo.rail .bo-side nav button, .bo.rail .bo-who a, .bo.rail .bo-who button { justify-content: center; padding: 0; }
.bo.rail .bo-side nav button i { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; font-size: 11px; }
.bo.rail .bo-me { justify-content: center; padding-inline: 0; }
.kpi { text-align: left; }
button.kpi { transition: box-shadow .3s, transform .5s var(--ease-out); }
button.kpi:hover { box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-2px); }
.low { color: var(--rouge); }

/* mobile : barre du haut et menu en tiroir */
@media (max-width: 900px) {
  .bo, .bo.rail { display: block; }
  .bo-bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px auto 1fr 44px; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; background: #2A1810; color: var(--ivoire); }
  .bo-bar img { width: 58px; }
  .bo-bar b { font: 400 20px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bo-bar button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--or-pale); box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .22); }
  .bo-side, .bo.rail .bo-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(310px, 86vw); height: auto; padding: 22px 14px 18px; border-radius: 0 28px 28px 0; transform: translateX(-104%); transition: transform .6s var(--ease-luxe); overflow: auto; }
  .bo.menu .bo-side { transform: none; }
  .bo-veil { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(21, 11, 7, .5); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .bo.menu .bo-veil { opacity: 1; pointer-events: auto; }
  .bo-fold { display: none; }
  .bo.rail .bo-brand span, .bo.rail .bo-g, .bo.rail .bo-me > span:last-child { display: block; }
  .bo.rail .bo-side nav button > span, .bo.rail .bo-who a span, .bo.rail .bo-who button span { display: inline; }
  .bo.rail .bo-side nav button, .bo.rail .bo-who a, .bo.rail .bo-who button { justify-content: flex-start; padding: 11px 14px; }
  .bo.rail .bo-brand img { width: 108px; }
  .bo-main { padding: 22px 16px 70px; }
  .bo-top h1 { font-size: 30px; }
}
/* tableaux : des cartes sur petit écran */
@media (max-width: 760px) {
  .tbl.cards { min-width: 0; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody { display: block; }
  .tbl.cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
  .tbl.cards tr:last-child { border-bottom: 0; }
  .tbl.cards td { display: block; padding: 0; border: 0; text-align: left !important; }
  .tbl.cards td:first-child { grid-column: 1 / -1; }
  .tbl.cards td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; margin-bottom: 3px; font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
  .tbl-wrap { margin: 0; overflow: visible; }
}

/* catalogue : la liste */
.cat-tools { display: grid; gap: 14px; }
.cat-search { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); color: var(--gris); transition: box-shadow .3s; }
.cat-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--or); }
.cat-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px var(--f-body); color: var(--encre); }
.cat-search input:focus { outline: none; }
.cat-list { padding-block: 10px; }
.cat-head, .cat-row { display: grid; grid-template-columns: 52px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.5fr) 20px; gap: 16px; align-items: center; }
.cat-head { padding: 10px 0; font: 500 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gris); border-bottom: 1px solid var(--trait); }
.cat-row { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--trait); text-align: left; transition: background .25s, padding .4s var(--ease-out); }
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { background: rgba(184, 137, 62, .06); padding-inline: 10px; margin-inline: -10px; width: calc(100% + 20px); border-radius: 14px; }
.cat-row .th { width: 52px; aspect-ratio: 4/5; border-radius: 26px 26px 10px 10px; overflow: hidden; background: var(--choco); display: grid; place-items: center; color: var(--or-clair); }
.cat-row .th img { width: 100%; height: 100%; object-fit: cover; }
.cat-row b { display: block; font: 400 19px/1.2 var(--f-display); font-variant-numeric: lining-nums; }
.cat-row small { font-size: 14px; color: var(--gris); }
.cat-n { min-width: 0; }
.cat-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-s { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-row > .ki { color: var(--gris); width: 18px; height: 18px; }
@media (max-width: 1100px) {
  .cat-head { display: none; }
  .cat-row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 16px 0; }
  .cat-row .th { grid-row: span 2; align-self: start; }
  .cat-n { grid-column: 2 / -1; }
  .cat-n b { white-space: normal; }
  .cat-c[data-l]::before { content: attr(data-l); display: block; font: 500 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
  .cat-s { grid-column: 1 / -1; }
  .cat-row > .ki { display: none; }
}

/* fiche d'une pièce */
.ed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 22px; align-items: start; }
.ed-main, .ed-pane, .ed-side { display: grid; gap: 22px; min-width: 0; }
.ed-pane[hidden] { display: none; }
.ed-side { position: sticky; top: 20px; }
.ed-seg { max-width: 460px; }
.ed-fields { display: grid; gap: 16px; }
.ed-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 16px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.ed-online { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); cursor: pointer; }
.ed-online b { display: block; font: 400 19px var(--f-display); }
.ed-online small { font-size: 14px; color: var(--gris); }
.ed-econ .dl2 { margin-top: 14px; grid-template-columns: 1fr auto; }
.ed-econ dd { text-align: right; font: 400 19px var(--f-display); font-variant-numeric: lining-nums; }
.ed-actions { display: grid; gap: 14px; }
.f input[type="color"] { padding: 6px; height: 52px; cursor: pointer; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.ph-grid figure { position: relative; margin: 0; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--choco); box-shadow: inset 0 0 0 1px var(--trait); }
.ph-grid figure.main { box-shadow: 0 0 0 2px var(--or); }
.ph-grid img { width: 100%; height: 100%; object-fit: cover; }
.ph-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 26px 8px 8px; background: linear-gradient(180deg, transparent, rgba(21, 11, 7, .82)); color: var(--ivoire); font: 500 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.ph-grid figcaption button { display: inline-grid; place-items: center; min-height: 30px; padding: 0 9px; border-radius: 15px; background: rgba(246, 240, 228, .16); color: inherit; font: inherit; }
.ph-grid figcaption button:hover { background: var(--or); color: #2A1810; }
.ph-grid figcaption .ki { width: 14px; height: 14px; }
.ph-add { aspect-ratio: 4/5; display: grid; place-content: center; justify-items: center; gap: 10px; border-radius: 18px; border: 1px dashed var(--trait-or); color: var(--or-txt); font-size: 14.5px; text-align: center; padding: 10px; cursor: pointer; transition: background .3s; }
.ph-add:hover { background: rgba(184, 137, 62, .08); }
.ph-add .ki { width: 26px; height: 26px; }
@media (max-width: 1100px) { .ed { grid-template-columns: 1fr; } .ed-side { position: static; } }
@media (max-width: 560px) { .ed-checks { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } .bo-top .btn { width: 100%; } }

/* ---------- Fidélité, remises, cadeaux ---------- */
.mini-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trait); }
.mini-f .btn { align-self: end; min-height: 52px; }
.mini-f .f-err { grid-column: 1 / -1; min-height: 0; }
.mini-f .f-err:empty { display: none; }
.loy-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 44px); align-items: center; background: linear-gradient(135deg, #2A1810, #2A1810); color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(221, 185, 106, .3); }
.loy-card .cap { color: var(--or-clair); }
.loy-n { display: block; margin: 6px 0 4px; font: 300 clamp(56px, 7vw, 92px)/1 var(--f-display); font-variant-numeric: lining-nums; background: var(--or-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loy-card p { margin: 0; color: rgba(246, 240, 228, .78); }
.loy-card .buy-note li { color: rgba(246, 240, 228, .82); }
.loy-card .buy-note b { color: var(--ivoire); }
.loy-card .buy-note .ki { color: var(--or-clair); }
@media (max-width: 760px) { .loy-card { grid-template-columns: 1fr; } .quick-a { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .quick-a { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tbl td:first-child b, .tbl td:first-child small { white-space: nowrap; }
@media (max-width: 760px) { .tbl.cards td:first-child b, .tbl.cards td:first-child small { white-space: normal; } }

/* ---------- Barre du haut : le logo reste au centre exact, les deux côtés se répondent ---------- */
@media (min-width: 981px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: clamp(22px, 3vw, 52px); padding-inline: clamp(24px, 4vw, 72px); }
  .site-header nav.left { gap: clamp(14px, 1.9vw, 32px); justify-content: flex-start; }
  .site-header nav.right { gap: clamp(10px, 1.3vw, 22px); }
  .site-header .h-icons { gap: 0; margin: 0; }
  .site-header .brand { justify-self: center; }
}
@media (min-width: 981px) and (max-width: 1480px) { .site-header .h-cta-long { display: none; } }

/* ---------- Compte client : menu et contenu alignés sur le titre, carte de membre ---------- */
.wrap.esp, .wrap.co, #app > .wrap { max-width: calc(1160px + 2 * var(--gutter)); }
.esp { grid-template-columns: 272px minmax(0, 1fr); }
.esp-nav { padding: 14px; border-radius: var(--r-xl); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.esp-me { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 6px 6px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--trait); }
.esp-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #DDB96A, #C4923E); color: #2A1810; font: 500 15px var(--f-body); letter-spacing: .04em; }
.esp-me b { display: block; font: 400 20px/1.2 var(--f-display); }
.esp-me small { font-size: 14px; color: var(--or-txt); font-weight: 400; }
.esp-nav .esp-g { display: block; padding: 12px 16px 4px; font: 500 11px var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gris); }
.esp-nav button { min-height: 46px; padding: 11px 16px; }
.esp-nav button[aria-selected="true"] { background: var(--choco); color: var(--or-pale); box-shadow: none; }
.esp-nav button[aria-selected="true"] .ki { color: var(--or-clair); }
.esp-nav button em { margin-left: auto; font: 400 14px var(--f-body); font-style: normal; color: var(--gris); }
.esp-nav button[aria-selected="true"] em { color: var(--or-clair); }
@media (max-width: 900px) {
  .esp { grid-template-columns: 1fr; }
  .esp-nav { padding: 0 var(--gutter) 4px; background: none; box-shadow: none; border-radius: 0; }
  .esp-me, .esp-nav .esp-g, .esp-nav button em { display: none; }
}

/* ---------- Atelier : objectifs, devis, équipe, marchandise ---------- */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.goal { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-l); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.kc .goal { background: #fff; }
.goal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal-h b { font: 500 14px var(--f-body); color: var(--or-txt); }
.goal-v b { font: 300 30px/1 var(--f-display); font-variant-numeric: lining-nums; }
.goal-v small { margin-left: 8px; font-size: 14px; color: var(--gris); }
.goal-bar { display: block; height: 6px; border-radius: 3px; background: rgba(42, 24, 16, .1); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #C4923E, #DDB96A); transition: width .8s var(--ease-out); }
.goal-bar i.ok { background: linear-gradient(90deg, #3F6B4F, #6E9B7C); }
.q-lines { display: grid; }
.q-line { display: grid; grid-template-columns: 124px minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1fr) 90px 42px; gap: 12px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.q-line .pill { align-self: center; justify-self: start; }
.q-sum { align-self: center; text-align: right; font: 400 20px var(--f-display); font-variant-numeric: lining-nums; }
.q-line .sheet-x { align-self: center; }
.q-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin-top: 18px; }
.q-add .btn { min-height: 52px; }
.mv { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mv input { width: 92px !important; }
@media (max-width: 900px) { .q-line { grid-template-columns: 1fr 1fr; } .q-line .pill, .q-line .f:first-of-type { grid-column: 1 / -1; } .q-sum { text-align: left; } .q-line .sheet-x { justify-self: end; } }
@media print { .bo-side, .bo-bar, .demo-flag, .bo-top .kc-actions, .q-add, .ed-actions, .sheet-x, .toast { display: none !important; } .bo, .ed { display: block !important; } .bo-main { padding: 0 !important; } body { background: #fff !important; } .kc { box-shadow: none !important; padding: 12px 0 !important; break-inside: avoid; } }

/* Back-office : le menu latéral reste déployé, avec ses libellés, dès 901 px ; on ne le replie qu'en cliquant sur la flèche */
@media (min-width: 901px) and (max-width: 1180px) { .bo { grid-template-columns: 236px minmax(0, 1fr); } .bo.rail { grid-template-columns: 78px minmax(0, 1fr); } .bo-main { padding-inline: 22px; } }
.bo-fold { box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .3); color: var(--or-pale); }

/* ==========================================================================
   Icônes V2 : un trait fin et régulier, bouts arrondis, et une touche d'or sur le détail qui signe chaque icône
   (la porte de la Maison, le fermoir du sac, la pierre de la bague, le jour du calendrier…)
   ========================================================================== */
:root { --ki-a: #A87C34; }
.on-dark, .dark, .final, .stones, .trans, .at-hero, .bk-hero, .shop-hero, .page-hero, .esp-hero, .intro, .site-footer, .mobile-menu, .tabbar, .bo-side, .bo-bar, .loy-card, .kpi.dark, .btn-ink, .demo-flag,
.site-header:not(.is-solid), .esp-nav button[aria-selected="true"], .chips button[aria-pressed="true"], .seg button[aria-selected="true"], .msg.me { --ki-a: #DDB96A; }
.btn-gold, .bo-av, .esp-av, .seal-ok { --ki-a: currentColor; }
.ki { stroke-width: 1.3; overflow: visible; }
.ki .a { stroke: var(--ki-a); transition: stroke .4s, fill .4s; }
.ki .f { fill: var(--ki-a); stroke: none; }
.ico .ki, .tabbar .ki { width: 21px; height: 21px; }
.tabbar a.on .ki .a, .tabbar a[aria-current] .ki .a { stroke: #E6D3AA; }
.tabbar a.on .ki .f { fill: #E6D3AA; }
/* au survol, le détail d'or s'allume un peu plus */
.ico:hover .ki .a, .btn:hover .ki .a, .esp-nav button:hover .ki .a, .bo-side nav button:hover .ki .a, .quick-a > *:hover .ki .a { stroke: #E6D3AA; }
.ico:hover .ki .f, .quick-a > *:hover .ki .f { fill: #E6D3AA; }
.is-solid .ico:hover .ki .a, .esp-nav button:not([aria-selected="true"]):hover .ki .a, .quick-a > *:hover .ki .a { stroke: #A0722A; }
.is-solid .ico:hover .ki .f, .quick-a > *:hover .ki .f { fill: #A0722A; }
/* icônes en pastille : réassurance, avantages, raccourcis */
.buy-note .ki, .quick-a .ki, .choice2 .ki { width: 22px; height: 22px; }
.bk-promise .ki { width: 17px; height: 17px; stroke: var(--or-clair); }
.bk-promise .ki .a { stroke: #E6D3AA; }
.c-fav .ki, .fav-big .ki { width: 19px; height: 19px; }
.cue-btn .ki, .tt-arrow.ki { width: 18px; height: 18px; }

/* ==========================================================================
   Le temps des fêtes : le grenat de la création signature et l'or de la Maison. Rien d'autre ne change.
   ========================================================================== */
.fetes { --grenat: #6B1A33; --grenat-2: #3E0E1F; }
.fetes-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.fetes .intro .fetes-snow { z-index: 6; }
.fetes .shop-hero .fetes-snow, .fetes .page-hero .fetes-snow, .fetes .esp-hero .fetes-snow, .fetes .bk-hero .fetes-snow { position: absolute; z-index: 1; }
/* un liseré grenat et or sous l'en-tête, comme un ruban */
.fetes .site-header.is-solid { box-shadow: 0 1px 0 rgba(107, 26, 51, .35), 0 3px 0 -1px rgba(184, 137, 62, .35); }
.fetes .esp-hero, .fetes .page-hero, .fetes .shop-hero { background: radial-gradient(120% 90% at 85% 0%, rgba(107, 26, 51, .55), transparent 60%), var(--choco); }
/* la pastille */
.fetes-pill { position: fixed; left: 24px; bottom: 24px; z-index: 880; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 999px; background: linear-gradient(135deg, #5A1530, #2A0B16); color: var(--ivoire); box-shadow: 0 0 0 1px rgba(228, 197, 128, .45), 0 20px 40px -18px rgba(42, 8, 20, .8); transform: translateY(140%); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s; --ki-a: #F1D9A0; }
.fetes-pill.in { transform: none; opacity: 1; }
.fetes-pill.out { transform: translateY(140%); opacity: 0; }
.fp-star { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(228, 197, 128, .14); color: #E6D3AA; }
.fp-star .ki { width: 20px; height: 20px; animation: fpTwinkle 3.2s ease-in-out infinite; }
@keyframes fpTwinkle { 50% { transform: scale(.82) rotate(18deg); opacity: .7; } }
.fetes-pill a { display: grid; gap: 1px; padding-right: 4px; }
.fetes-pill small { font: 500 11px var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: #E4C580; }
.fetes-pill b { font: 400 19px/1.15 var(--f-display); }
.fetes-pill button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: rgba(246, 240, 228, .7); }
.fetes-pill button:hover { color: var(--ivoire); background: rgba(246, 240, 228, .1); }
.fetes-pill button .ki { width: 16px; height: 16px; }
@media (max-width: 900px) { .fetes-pill { left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; } }
/* le guide des cadeaux de l'accueil */
.fetes-guide { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 20% 0%, #6B1A33, transparent 65%), radial-gradient(80% 60% at 100% 100%, rgba(184, 137, 62, .22), transparent 60%), #2A0B16; color: var(--ivoire); }
.fetes-guide .wrap { position: relative; z-index: 2; }
.fg-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(30px, 4vw, 52px); }
.fg-head h2 { margin: 0; }
.fg-head h2 em { color: #DDB96A; }
.fg-head .lead { margin: 0; color: rgba(246, 240, 228, .8); }
.fg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fg-card { position: relative; display: grid; gap: 14px; padding: 12px 12px 18px; border-radius: 28px; background: rgba(246, 240, 228, .05); box-shadow: inset 0 0 0 1px rgba(228, 197, 128, .22); transition: box-shadow .4s, transform .6s var(--ease-out), background .4s; }
.fg-card:hover { transform: translateY(-4px); background: rgba(246, 240, 228, .08); box-shadow: inset 0 0 0 1px rgba(228, 197, 128, .6); }
.fg-img { display: block; aspect-ratio: 4/5; border-radius: 120px 120px 18px 18px; overflow: hidden; background: #1B0710; }
.fg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.fg-card:hover .fg-img img { transform: scale(1.05); }
.fg-txt { display: grid; gap: 4px; padding: 0 6px; }
.fg-txt small { font: 500 11px var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: #DDB96A; }
.fg-txt b { font: 400 21px/1.2 var(--f-display); }
.fg-txt span { font-size: 15px; color: rgba(246, 240, 228, .72); }
.fg-go { position: absolute; right: 18px; bottom: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(228, 197, 128, .45); color: #E6D3AA; transition: background .4s, color .4s; }
.fg-card:hover .fg-go { background: #DDB96A; color: #2A0B16; }
.fg-go .ki { width: 17px; height: 17px; }
.fg-foot { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 48px); }
@media (max-width: 1000px) { .fg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fg-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .fg-card { padding: 8px 8px 14px; border-radius: 22px; } .fg-txt b { font-size: 18px; } .fg-go { display: none; } }
.fetes-set .kc-head .ki { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .fp-star .ki { animation: none; } }
.fetes-pill.in.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ==========================================================================
   Noël, couleurs affirmées : rouge de Noël, vert sapin et l'or de la Maison.
   Les grandes surfaces sombres prennent les couleurs de Noël ; l'ivoire des pages, le logo et les polices restent ceux de la marque.
   ========================================================================== */
.fetes { --noel-rouge: #8E1B2C; --noel-rouge-2: #5E1020; --noel-rouge-3: #2E0710; --noel-vert: #0F3D2E; --noel-vert-2: #082419; --noel-or: #E4C580; }
/* en-tête : rouge de Noël, filet d'or */
.fetes .site-header.is-solid { background: linear-gradient(180deg, rgba(142, 27, 44, .97), rgba(110, 18, 33, .97)); color: var(--ivoire); box-shadow: 0 1px 0 rgba(228, 197, 128, .55), 0 10px 30px -18px rgba(46, 7, 16, .8); --ki-a: #F1D9A0; }
.fetes .site-header.is-solid nav a:not(.h-cta) { color: var(--ivoire); }
.fetes .site-header.is-solid nav a[aria-current="page"]::after { background: var(--noel-or); }
/* barre d'onglets mobile */
.fetes .tabbar { background: linear-gradient(180deg, rgba(110, 18, 33, .96), rgba(62, 10, 22, .97)); box-shadow: 0 0 0 1px rgba(228, 197, 128, .3), 0 20px 50px -20px rgba(46, 7, 16, .8); }
.fetes .tabbar .on { background: rgba(228, 197, 128, .16); color: #F6E3B4; }
/* ouvertures des pages : vert sapin, lueur rouge, paillettes d'or */
.fetes .shop-hero, .fetes .page-hero, .fetes .esp-hero { background: radial-gradient(85% 75% at 88% 0%, rgba(176, 30, 52, .62), transparent 62%), radial-gradient(70% 60% at 0% 100%, rgba(228, 197, 128, .12), transparent 60%), var(--noel-vert); }
.fetes .bk-hero { background: var(--noel-vert); }
.fetes .bk-hero .bg { opacity: .45; }
/* grandes sections sombres */
.fetes .final { background: radial-gradient(90% 80% at 50% 0%, rgba(176, 30, 52, .55), transparent 65%), var(--noel-vert-2); }
.fetes .site-footer { background: radial-gradient(80% 60% at 100% 0%, rgba(142, 27, 44, .45), transparent 60%), var(--noel-vert-2); box-shadow: inset 0 1px 0 rgba(228, 197, 128, .35); }
/* guide des cadeaux : rouge de Noël franc */
.fetes .fetes-guide { background: radial-gradient(80% 70% at 15% 0%, #B3243A, transparent 62%), radial-gradient(70% 60% at 100% 100%, rgba(15, 61, 46, .85), transparent 65%), var(--noel-rouge-2); }
.fetes .fg-card { background: rgba(46, 7, 16, .35); }
.fetes .fg-img { background: var(--noel-rouge-3); }
/* pastille */
.fetes .fetes-pill { background: linear-gradient(135deg, #A31F33, #5E1020); }
/* boutons sombres : rouge de Noël ; le bouton d'or reste celui de la Maison */
.fetes .btn-ink { background: var(--noel-rouge); color: #F6E3B4; box-shadow: inset 0 0 0 1px rgba(228, 197, 128, .45); }
/* guirlande fine à la place du filet des sur-titres : or et rouge en alternance */
.fetes .eyebrow::before, .fetes .eyebrow.center::after { background: repeating-linear-gradient(90deg, #D4A84F 0 5px, transparent 5px 8px, #B3243A 8px 13px, transparent 13px 16px); opacity: 1; height: 1.5px; }
.fetes .on-dark .eyebrow::before, .fetes .on-dark .eyebrow.center::after, .fetes .intro .eyebrow::before { background: repeating-linear-gradient(90deg, #E4C580 0 5px, transparent 5px 8px, #E05568 8px 13px, transparent 13px 16px); }
/* cartes de la boutique : le nom de la pièce prend l'étoile d'or des fêtes */
.fetes .c-info small i { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #B3243A; }
html.fetes body .sec.dark.final, html.fetes body .sec.final { background: radial-gradient(90% 80% at 50% 0%, rgba(176, 30, 52, .6), transparent 66%), radial-gradient(70% 60% at 50% 118%, rgba(228, 197, 128, .16), transparent 70%), #082419 !important; }
html.fetes body .sec.dark:not(.final):not(.stones):not(.fetes-guide) { background-color: #0B2E22; }

/* ==========================================================================
   Décors de Noël : boules suspendues qui se balancent, étoiles qui scintillent et suivent la souris, poinsettia, houx
   ========================================================================== */
.noel-deco { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; --mx: 0; --my: 0; }
.intro .noel-deco { z-index: 7; }
.noel-deco img { display: block; width: 100%; height: auto; user-select: none; filter: drop-shadow(0 14px 18px rgba(20, 2, 6, .45)); }
/* boules */
.nb { position: absolute; top: 0; left: var(--x); width: clamp(34px, 3.6vw, 56px); transform-origin: 50% 0; animation: nbSwing 5.5s ease-in-out infinite; animation-delay: calc(-1 * var(--d)); }
.nb.b2 { width: clamp(26px, 2.6vw, 40px); animation-duration: 4.6s; }
.nb.b3, .nb.b4 { width: clamp(30px, 3vw, 46px); animation-duration: 6.2s; }
@keyframes nbSwing { 0%, 100% { transform: rotate(calc(-3deg - 7deg * var(--nb-kick, 0))); } 50% { transform: rotate(calc(3deg + 7deg * var(--nb-kick, 0))); } }
/* étoiles */
.ns { position: absolute; left: var(--x); top: var(--y); width: var(--s); transform: translate(calc(var(--mx) * 26px), calc(var(--my) * 18px)); transition: transform 1.2s var(--ease-out); }
.ns img { animation: nsTwinkle 3.4s ease-in-out infinite; animation-delay: calc(-1 * var(--d)); filter: drop-shadow(0 0 8px rgba(246, 223, 160, .75)); }
@keyframes nsTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 45% { transform: scale(.62) rotate(24deg); opacity: .55; } }
/* poinsettia et houx */
.nf { position: absolute; left: clamp(-30px, -2vw, -10px); top: clamp(8px, 2vw, 30px); width: clamp(90px, 10vw, 150px); opacity: .95; transform: rotate(-12deg) translate(calc(var(--mx) * -10px), calc(var(--my) * -8px)); transition: transform 1.4s var(--ease-out); }
.nf img { animation: nfBreath 7s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes nfBreath { 50% { transform: rotate(8deg) scale(1.04); } }
.nh { position: absolute; width: clamp(80px, 8vw, 128px); }
.nh-a { right: 4%; bottom: 3%; transform: rotate(-8deg); }
.nh-l { left: 2%; top: 6%; transform: rotate(-14deg); }
.nh-r { right: 2%; bottom: 8%; transform: rotate(160deg); }
.nh-f { left: clamp(10px, 3vw, 40px); top: -22px; width: clamp(70px, 7vw, 110px); transform: rotate(-6deg); }
.site-footer { position: relative; }
.site-footer .noel-deco { overflow: visible; }
.nbr img { animation: nhSway 7s ease-in-out infinite; transform-origin: 20% 70%; }
@keyframes nhSway { 50% { transform: rotate(4deg); } }
/* la pastille : un brin de houx à la place de l'étoile */
.fetes-pill .fp-star { width: 46px; height: 38px; background: none; }
.fetes-pill .fp-star img { width: 46px; height: auto; animation: nhSway 4s ease-in-out infinite; }
/* le titre du guide laisse la place au poinsettia */
.fetes-guide .fg-head { padding-left: clamp(0px, 6vw, 90px); }
@media (max-width: 760px) { .fetes-guide .fg-head { padding-left: 0; padding-top: 70px; } }
@media (prefers-reduced-motion: reduce) { .nb, .ns img, .nf img, .nbr img, .fetes-pill .fp-star img { animation: none !important; } .ns, .nf { transition: none; } }
/* l'ouverture de l'accueil : les boules descendent sous la barre de navigation, jamais devant les liens */
.intro .noel-deco .nb { top: calc(var(--header-h) + 6px); }
.intro .noel-deco .nb.b1, .intro .noel-deco .nb.b2 { left: calc(var(--x) - 4%); }
/* les ouvertures de page passent sous l'en-tête fixe : les boules s'accrochent juste en dessous */
.nd-hero .nb { top: calc(var(--header-h) - 2px); }
@media (max-width: 900px) { .nd-hero .nb { top: 58px; } .nd-hero .nb.b1 { left: 72%; } .nd-hero .nb.b2 { left: 86%; } }
.fetes .shop-hero > .noel-deco, .fetes .page-hero > .noel-deco, .fetes .esp-hero > .noel-deco, .fetes .bk-hero > .noel-deco { position: absolute; z-index: 3; }

/* Décors V3 : objets rendus en 3D et fleurs de flamboyant (l'arbre de Noël réunionnais) */
.nb-fil { display: block; width: 1px; height: var(--len); margin: 0 auto -3px; background: linear-gradient(#F6DFA0, #B8893E); box-shadow: 0 0 4px rgba(246, 223, 160, .5); }
.nb { width: clamp(40px, 4.2vw, 68px); }
.nb.b2 { width: clamp(30px, 3vw, 46px); }
.nb.b3, .nb.b4 { width: clamp(34px, 3.4vw, 54px); }
.ns img { filter: drop-shadow(0 0 10px rgba(246, 223, 160, .7)) drop-shadow(0 4px 6px rgba(20, 2, 6, .4)); }
.nf { left: auto; top: auto; opacity: 1; }
.nf img { filter: drop-shadow(0 18px 22px rgba(20, 2, 6, .5)); }
.nf-hero { right: 3%; bottom: -4%; width: clamp(120px, 11vw, 190px); transform: rotate(-14deg) translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); }
.nf-guide { right: -1%; bottom: -3%; width: clamp(130px, 13vw, 220px); transform: rotate(18deg) translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); }
.nbr { position: absolute; width: clamp(220px, 26vw, 420px); transition: transform 1.4s var(--ease-out); }
.nbr-guide { left: -3%; top: -2%; transform: rotate(-6deg) translate(calc(var(--mx) * -10px), calc(var(--my) * -6px)); }
.nbr-l { left: -4%; top: -6%; width: clamp(200px, 22vw, 360px); transform: rotate(-8deg); }
.nbr-r { right: -4%; bottom: -8%; width: clamp(200px, 22vw, 360px); transform: rotate(172deg); }
.nbr-f { left: clamp(-30px, -1vw, 0px); top: -54px; width: clamp(170px, 16vw, 260px); transform: rotate(-4deg); }
.fetes-guide .fg-head { padding-top: clamp(60px, 9vw, 120px); }
.fetes-pill .fp-star { background: rgba(228, 197, 128, .1); overflow: visible; }
.fetes-pill .fp-star img { width: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
@media (max-width: 760px) {
  .nbr-guide { width: 230px; left: -40px; top: -16px; }
  .nf-guide { width: 110px; right: -24px; bottom: -20px; }
  .nbr-l, .nbr-r { width: 170px; }
  .nbr-f { width: 150px; top: -40px; }
  .fetes-guide .fg-head { padding-top: 110px; }
}

/* Décors V4 : gerbe de flamboyant peinte et boules d'art (verre soufflé, velours brodé) */
.nb-verre { width: clamp(46px, 4.6vw, 76px); }
.nb-velours { width: clamp(54px, 5.4vw, 90px); }
.nd-guide .nb-velours { width: clamp(70px, 7.6vw, 128px); }
.nb-velours img { filter: drop-shadow(0 16px 20px rgba(10, 0, 4, .55)); }
.nb-verre img { filter: drop-shadow(0 14px 18px rgba(60, 10, 0, .4)) saturate(1.05); }
.nbr img { filter: drop-shadow(0 18px 24px rgba(10, 0, 4, .45)); }
.nbr-guide { width: clamp(260px, 30vw, 500px); left: -4%; top: -6%; }
.nbr-hero { right: -2%; bottom: -10%; width: clamp(200px, 20vw, 330px); transform: rotate(180deg) scaleX(-1); opacity: .95; }
.nbr-l { transform: rotate(-4deg); }
.nbr-r { transform: rotate(180deg); }
.nbr-f { top: -70px; }
@media (max-width: 760px) {
  .nbr-guide { width: 260px; left: -50px; top: -30px; }
  .nb-velours { width: 50px; } .nd-guide .nb-velours { width: 64px; } .nb-verre { width: 42px; }
  .nbr-f { top: -52px; }
}

/* Le temps des fêtes sur l'accueil (one page) */
.fetes .intro { background: #16050A; }
.fetes .intro-shade { background: linear-gradient(0deg, #1A060B 0%, rgba(26, 6, 11, .97) 38%, rgba(26, 6, 11, .6) 52%, transparent 64%) !important; }
.fetes main > .sec.dark:not(.final) { background: radial-gradient(90% 70% at 85% 0%, rgba(176, 30, 52, .5), transparent 62%), radial-gradient(70% 60% at 0% 100%, rgba(228, 197, 128, .1), transparent 60%), var(--noel-vert-2); }
.fetes .manifesto, .fetes #boutiques { background-image: radial-gradient(60% 50% at 100% 0%, rgba(176, 30, 52, .07), transparent 70%); }
.fetes .manifesto .noel-deco, .fetes #boutiques .noel-deco { z-index: 1; }
.fetes .manifesto .display em, .fetes #boutiques .display em { color: #8E1B2C; }
.nbr-iv { right: -3%; top: -4%; width: clamp(200px, 22vw, 360px); transform: scaleX(-1) rotate(-6deg); opacity: .92; }
#boutiques .nbr-iv { right: auto; left: -3%; top: auto; bottom: -6%; transform: rotate(186deg) scaleX(-1); }
.nbr-nuit { right: -3%; bottom: -6%; width: clamp(180px, 18vw, 300px); transform: rotate(180deg); opacity: .9; }
.voyage .nbr-nuit { right: auto; left: -3%; transform: rotate(180deg) scaleX(-1); }
@media (max-width: 760px) { .nbr-iv { width: 170px; right: -40px; top: -20px; } .nbr-nuit { width: 150px; } }

/* Le houx autour des fils : un nœud verni à l'accroche, un brin au collet des grandes boules */
.nb { overflow: visible; }
.nb-houx { position: absolute; left: 50%; top: 0; width: 210%; min-width: 58px; max-width: 110px; transform: translate(-50%, -46%) rotate(var(--hr, 0deg)); z-index: 2; pointer-events: none; }
.nb-houx img, .nb-brin img { filter: drop-shadow(0 6px 8px rgba(10, 0, 4, .5)) !important; }
.nb-brin { position: relative; display: block; width: 92%; margin: -6px auto -22%; z-index: 2; transform: rotate(calc(var(--hr, 0deg) * -1)); }
.nb .nb-ball { position: relative; z-index: 1; }
.nb.b2 .nb-houx { width: 190%; min-width: 46px; }
@media (max-width: 760px) { .nb-houx { min-width: 48px; max-width: 72px; } }

/* Bouquet d'hiver (houx, gui, sapin, pomme de pin) et pluie de pétales de flamboyant */
.nbq { position: absolute; pointer-events: none; }
.nbq img { animation: nhSway 8s ease-in-out infinite; transform-origin: 50% 10%; }
.nbq-intro { right: 4%; top: calc(var(--header-h) + 4px); width: clamp(150px, 13vw, 230px); transform: rotate(8deg); }
.nbq-f { right: clamp(10px, 4vw, 60px); top: -64px; width: clamp(110px, 10vw, 170px); transform: rotate(-6deg); }
.fetes .intro .fetes-snow { mix-blend-mode: normal; }
.fetes-snow { mix-blend-mode: normal; }
@media (max-width: 760px) { .nbq-f { width: 96px; top: -46px; } }
.fetes .intro-stage > .fetes-snow { position: absolute; z-index: 6; }
.nbq-intro { top: auto; bottom: 9%; right: 4%; transform: rotate(-6deg); }
.nbq-f { right: 24%; }
@media (max-width: 760px) { .nbq-f { right: 38%; } }
/* houx givré (photo) : plus haut que large, on l'allège */
.nb-houx { width: 150%; min-width: 46px; max-width: 92px; transform: translate(-50%, -40%) rotate(var(--hr, 0deg)); }
.nb.b2 .nb-houx { width: 130%; min-width: 38px; }
.nb-brin { width: 70%; margin: -4px auto -18%; }
@media (max-width: 760px) { .nb-houx { min-width: 38px; max-width: 54px; } .nb.b2 .nb-houx { display: none; } .nb-brin { width: 62%; } }
/* Minimaliste : un seul ornement par zone, le reste respire */
.fetes .manifesto .display em, .fetes #boutiques .display em { color: inherit; }
.nbr-l { width: clamp(180px, 18vw, 300px); opacity: .9; }
.nbr-guide { width: clamp(220px, 24vw, 400px); }
@media (max-width: 760px) { .nbr-guide { width: 210px; } }

/* Gerbes de flamboyant des sections claires : en angle, à moitié hors champ, jamais sur le texte */
.nd-ivoire { z-index: 1; }
.nd-ivoire .nbr-iv { right: -6%; top: -3%; left: auto; bottom: auto; width: clamp(180px, 20vw, 320px); transform: scaleX(-1) rotate(-8deg); opacity: .95; }
section[data-chapter="Quatre univers"] .nd-ivoire .nbr-iv { right: auto; left: -6%; transform: rotate(-8deg); }
#boutiques .nd-ivoire .nbr-iv { top: auto; bottom: -4%; right: auto; left: -6%; transform: rotate(186deg) scaleX(-1); }
@media (max-width: 760px) { .nd-ivoire .nbr-iv { width: 150px; right: -34px; top: -8px; } section[data-chapter="Quatre univers"] .nd-ivoire .nbr-iv { left: -34px; } #boutiques .nd-ivoire .nbr-iv { left: -34px; bottom: -10px; } }

/* Boules d'art photographiées (papillons, rouge serti, nacre aux violettes, goutte fuchsia) */
.nb-papillons, .nb-rouge, .nb-nacre { width: clamp(54px, 5.4vw, 92px); }
.nb-goutte { width: clamp(34px, 3.3vw, 56px); }
.nd-guide .nb-rouge { width: clamp(70px, 7.6vw, 128px); }
.nb-papillons img, .nb-rouge img, .nb-nacre img, .nb-goutte img { filter: drop-shadow(0 16px 20px rgba(10, 0, 4, .5)); }
@media (max-width: 760px) { .nb-papillons, .nb-rouge, .nb-nacre { width: 52px; } .nb-goutte { width: 34px; } .nd-guide .nb-rouge { width: 64px; } }
.fetes .old-hero > .noel-deco { position: absolute; z-index: 3; }
.fetes .old-hero > .fetes-snow { position: absolute; z-index: 1; }

/* Facettes : une boule géante en filigrane au fond des sections sombres, alternée gauche / droite */
.noel-facette { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.noel-facette img { position: absolute; top: 50%; height: min(120%, 980px); width: auto; max-width: none; opacity: .14;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  transform: translateY(-50%) rotate(-8deg); filter: saturate(1.05) contrast(1.05); }
.nfc-r img { right: 0; translate: 46% 0; }
.nfc-l img { left: 0; translate: -46% 0; transform: translateY(-50%) rotate(8deg); }
@media (max-width: 760px) { .noel-facette img { height: min(70%, 520px); opacity: .13; } .nfc-r img { translate: 52% 0; } .nfc-l img { translate: -52% 0; } }
@media (prefers-reduced-transparency: reduce) { .noel-facette { display: none; } }

/* Les gerbes de flamboyant chevauchent la jonction entre deux sections : plus de coupe nette au bord.
   Le débordement reste vertical seulement (rien ne dépasse à droite ou à gauche de l'écran). */
.nd-ivoire, .nd-final, .nd-guide { overflow: visible; overflow-x: clip; }
.fetes .final, .fetes .fetes-guide { overflow: visible; overflow-x: clip; }
.nd-ivoire .nbr-iv { top: clamp(-110px, -7vw, -60px); }
section[data-chapter="Quatre univers"] .nd-ivoire .nbr-iv { top: clamp(-110px, -7vw, -60px); }
#boutiques .nd-ivoire .nbr-iv { top: auto; bottom: clamp(-110px, -7vw, -60px); }
.nd-final .nbr-l { top: clamp(-120px, -8vw, -64px); }
.nd-guide .nbr-guide { top: clamp(-120px, -8vw, -64px); }
@media (max-width: 760px) {
  .nd-ivoire .nbr-iv, section[data-chapter="Quatre univers"] .nd-ivoire .nbr-iv { top: -56px; }
  #boutiques .nd-ivoire .nbr-iv { top: auto; bottom: -56px; }
  .nd-final .nbr-l, .nd-guide .nbr-guide { top: -60px; }
}

/* Les flamboyants restent figés : pas d'animation ni de suivi de la souris sur ces grandes images (mémoire et fluidité) */
.nbr, .nbr img, .nbq, .nbq img, .nf, .nf img { animation: none !important; transition: none !important; will-change: auto !important; }
.nbr-guide { transform: rotate(-6deg) !important; }
/* Les gerbes de flamboyant et les facettes sont figées ; les boules gardent leur balancement doux */
.noel-facette *, .nbr, .nbr img { animation: none !important; transition: none !important; will-change: auto !important; }

/* ==========================================================================
   Documents : devis, factures et avoirs en A4, signature en ligne
   ========================================================================== */
.kdoc { position: fixed; inset: 0; z-index: 990; display: none; flex-direction: column; align-items: center; background: rgba(21, 11, 7, .72); backdrop-filter: blur(6px); }
.kdoc.open { display: flex; }
.kdoc-on .tabbar, .kdoc-on .fetes-pill { opacity: 0; pointer-events: none; }
.kdoc-bar { width: min(860px, 100%); display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--ivoire); }
.kdoc-bar b { flex: 1; font: 300 22px/1.2 var(--f-display); }
.kdoc-x { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(246, 240, 228, .3); }
.kdoc-x .ki { width: 18px; height: 18px; }
.kdoc-scroll { flex: 1; width: 100%; overflow: auto; display: flex; justify-content: center; padding: 0 16px 16px; }
.kdoc-scroll iframe { width: 794px; max-width: none; min-height: 1123px; border: 0; background: #F6F0E4; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); border-radius: 4px; flex: none; }
.kdoc-tip { margin: 0; padding: 0 16px 14px; font-size: 13px; color: rgba(246, 240, 228, .7); text-align: center; }
@media (max-width: 860px) {
  .kdoc-scroll { justify-content: flex-start; }
  .kdoc-scroll iframe { zoom: .46; }
  .kdoc-bar { padding: 12px 14px; flex-wrap: wrap; } .kdoc-bar b { font-size: 18px; flex-basis: 100%; }
}
.sig-pad { position: relative; height: 180px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); touch-action: none; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sig-pad .sig-hint { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; font: italic 300 18px var(--f-display); color: var(--gris); pointer-events: none; border-top: 1px dashed rgba(42, 24, 16, .2); margin: 0 24px; padding-top: 6px; transition: opacity .3s; }
.sig-pad.inked .sig-hint { opacity: 0; }
.sig-pad #sigClear { position: absolute; right: 12px; top: 10px; }
.q-signed { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: rgba(63, 107, 79, .07); }
.q-signed img { max-height: 54px; max-width: 180px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.q-signed .ki { width: 16px; height: 16px; vertical-align: -3px; }
/* ergonomie des outils : boutons d'action jamais écrasés, lignes qui passent à la ligne sur mobile */
.rows .btn, .inv-act .btn { white-space: nowrap; flex: none; }
.inv-act { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .to-bill > div { flex-wrap: wrap; align-items: flex-start; }
  .to-bill > div .btn { width: 100%; justify-content: center; }
  .inv-act { justify-content: flex-start; }
}
.kdoc-scroll iframe { height: 1123px; }
/* page de signature en ligne */
.sg-page { min-height: 100vh; background: radial-gradient(120% 50% at 50% 0%, #2A1810, transparent 70%), var(--ivoire); }
.sg-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px 46px; background: var(--choco); color: var(--or-pale); border-radius: 0 0 40px 40px; }
.sg-top img { height: 70px; }
.sg-top span { font: 500 11px var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.sg-wrap { width: min(760px, calc(100% - 32px)); margin: -24px auto 0; display: grid; gap: 20px; padding-bottom: 40px; }
.sg-card { display: grid; gap: 16px; }
.sg-h { margin: 6px 0 0; font: 300 clamp(30px, 4vw, 44px)/1.08 var(--f-display); }
.sg-h2 { margin: 0; font: 300 30px/1.1 var(--f-display); }
.sg-h em, .sg-h2 em { color: var(--or-txt); }
.sg-doc { padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); max-height: 420px; overflow: auto; font-size: 15.5px; line-height: 1.7; }
.sg-doc p { margin: 0 0 12px; }
.sg-foot { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 20px 34px; font-size: 13px; color: var(--gris); }
.sg-foot .ki { width: 16px; height: 16px; }
.sg-card .lnk .ki, .sg-card .lnk svg { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Compte client sur téléphone : carte de membre et menu en grille (15 nov. 2026)
   Les 8 rubriques visibles d'un coup (plus de bandeau qui défile et cache la moitié du menu), les pastilles
   de notification à leur place, et une pastille « Changer » qui suit le défilement pour revenir au menu. ---------- */
.esp-jump, .esp-s { display: none; }
.esp-hero .eyebrow { color: var(--or-clair); }
@media (max-width: 900px) {
  .esp-hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 78px; border-radius: 0 0 32px 32px; }
  .esp-hero .wrap { display: block; }
  .esp-hero h1 { margin-top: 10px; font-size: clamp(40px, 11.5vw, 50px); }
  .esp-hero p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: rgba(246, 240, 228, .8); }
  .esp-hero .esp-cta { display: none; }
  .wrap.esp { padding-top: 0; gap: 26px; }
  .esp-nav { position: relative; top: auto; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: -58px -10px 0; padding: 14px 8px 4px; overflow: visible;
    background: #FBF8F2; border-radius: 26px; box-shadow: 0 22px 44px -26px rgba(42, 24, 16, .5), inset 0 0 0 1px rgba(184, 146, 74, .24); }
  .esp-me { display: grid; grid-column: 1 / -1; grid-template-columns: 46px 1fr; gap: 13px; align-items: center; padding: 2px 8px 14px; margin: 0 0 8px; border-bottom: 1px solid var(--trait); }
  .esp-av { width: 46px; height: 46px; font-size: 14.5px; }
  .esp-me b { font-size: 22px; }
  .esp-me small { display: block; margin-top: 1px; font-size: 14px; }
  .esp-nav .esp-g, .esp-nav hr, .esp-nav button em { display: none; }
  .esp-nav button { position: relative; flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px; width: 100%; min-height: 78px; padding: 12px 2px 10px;
    border-radius: 18px; background: none; box-shadow: none; font: 400 12.5px/1.2 var(--f-body); letter-spacing: 0; color: var(--cacao); text-align: center; white-space: normal;
    -webkit-tap-highlight-color: transparent; transition: background .25s, color .25s, transform .2s; }
  .esp-nav button:active { transform: scale(.95); }
  .esp-nav button .ki { flex: none; width: 23px; height: 23px; margin: 0; color: var(--or-txt); }
  .esp-nav button[aria-selected="true"] { background: var(--choco); color: var(--or-pale); box-shadow: 0 10px 22px -12px rgba(42, 24, 16, .7); }
  .esp-nav button[aria-selected="true"] .ki { color: var(--or-clair); }
  /* « Devis & signatures » : trop long pour une case, « Devis » à l'écran, le nom complet reste lu par les lecteurs d'écran */
  .esp-nav .esp-s { display: block; }
  .esp-nav button:has(.esp-s) .esp-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* les pastilles : une chose qui vous attend (devis à signer, réponse de la Maison) */
  .esp-nav button i { position: absolute; top: 6px; left: calc(50% + 7px); margin: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    display: grid; place-items: center; background: var(--or); color: #2A1810; font: 500 11.5px/1 var(--f-body); font-style: normal; box-shadow: 0 0 0 2.5px #FBF8F2; }
  .esp-nav button[aria-selected="true"] i { box-shadow: 0 0 0 2.5px var(--choco); }
  #out2 { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; min-height: 46px; margin-top: 6px; padding: 10px; border-top: 1px solid var(--trait); border-radius: 0 0 18px 18px; font-size: 13.5px; color: var(--gris); }
  #out2 .ki { width: 18px; height: 18px; color: var(--gris); }
  /* la pastille qui suit le défilement : où l'on est, et un geste pour changer de rubrique */
  .esp-jump { position: fixed; z-index: 60; top: calc(var(--header-h) + 10px); left: 50%; display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); padding: 10px 14px 10px 15px;
    border-radius: 999px; background: rgba(42, 24, 16, .93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--or-pale); font: 400 14.5px/1 var(--f-body);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(228, 197, 128, .22); transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .45s var(--ease-out), top .35s var(--ease-out); }
  .esp-jump.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
  body:has(.site-header.is-hidden) .esp-jump { top: 12px; }
  .esp-jump .ki { flex: none; width: 18px; height: 18px; color: var(--or-clair); }
  .esp-jump span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .esp-jump small { display: flex; align-items: center; gap: 5px; margin-left: 3px; padding-left: 11px; border-left: 1px solid rgba(230, 211, 170, .3); font: 500 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--or-clair); }
  .esp-jump small .ki { width: 14px; height: 14px; transform: rotate(-90deg); }
}

/* ---------- Compte client sur téléphone : barre latérale verticale (15 nov. 2026)
   La pastille « Changer » ouvre, depuis n'importe où dans la page, la liste complète des rubriques. ---------- */
.esp-side, .esp-scrim { display: none; }
@media (max-width: 900px) {
  .esp-jump small .ki { transform: none; }
  html.esp-side-open, html.esp-side-open body { overflow: hidden; }
  .esp-scrim { display: block; position: fixed; inset: 0; z-index: 1200; background: rgba(20, 12, 8, .48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .esp-side { display: flex; flex-direction: column; position: fixed; z-index: 1201; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; border-radius: 0 28px 28px 0; color: var(--or-pale);
    background: radial-gradient(120% 50% at 0% 0%, rgba(228, 197, 128, .14), transparent 60%), var(--choco); box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .6);
    transform: translateX(-104%); transition: transform .5s var(--ease-out); visibility: hidden; }
  html.esp-side-open .esp-scrim { opacity: 1; pointer-events: auto; }
  html.esp-side-open .esp-side { transform: none; visibility: visible; }
  .es-head { display: grid; grid-template-columns: 44px 1fr 44px; gap: 12px; align-items: center; padding: 6px 4px 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(230, 211, 170, .16); }
  .es-head .esp-av { width: 44px; height: 44px; }
  .es-head b { display: block; font: 400 21px/1.2 var(--f-display); color: var(--ivoire); }
  .es-head small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--or-clair); }
  .es-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--or-pale); box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .25); }
  .es-x .ki { width: 20px; height: 20px; }
  .es-g { display: block; padding: 18px 12px 6px; font: 500 11.5px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: rgba(230, 211, 170, .72); }
  .esp-side button[data-go], .es-out { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 16px; font: 400 16.5px var(--f-body); color: var(--or-pale); text-align: left; -webkit-tap-highlight-color: transparent; transition: background .25s; }
  .esp-side button[data-go]:active, .es-out:active { background: rgba(230, 211, 170, .08); }
  .esp-side button .ki { flex: none; width: 22px; height: 22px; color: var(--or-clair); }
  .esp-side button[aria-current="page"] { background: rgba(228, 197, 128, .14); color: #FFF8EA; box-shadow: inset 2px 0 0 var(--or-clair); }
  .esp-side button em { margin-left: auto; font: 400 14px var(--f-body); font-style: normal; color: rgba(230, 211, 170, .75); }
  .esp-side button i { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--or); color: #2A1810; font: 500 12px/1 var(--f-body); font-style: normal; }
  .es-out { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(230, 211, 170, .16); border-radius: 0; font-size: 15px; color: rgba(230, 211, 170, .78); }
  .es-out .ki { width: 19px; height: 19px; color: rgba(230, 211, 170, .78) !important; }
}
/* Tablette tenue en hauteur (641 à 900 px) : les 8 rubriques sur une seule ligne, la carte à l'alignement du texte */
@media (min-width: 641px) and (max-width: 900px) {
  .esp-hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 92px; border-radius: 0 0 40px 40px; }
  .esp-hero h1 { font-size: clamp(52px, 7.4vw, 64px); }
  .esp-hero p { max-width: 520px; font-size: 17px; }
  .esp-nav { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: -64px 0 0; padding: 18px 12px 6px; border-radius: 30px; }
  .esp-me { padding: 2px 10px 16px; }
  .esp-nav button { min-height: 84px; font-size: 13px; }
  .esp-side { width: 360px; }
}
/* Lignes de liste (documents à signer, factures…) : sur téléphone, le texte prend toute la largeur et les actions passent dessous */
@media (max-width: 640px) {
  .rows > div { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .rows > div > span:first-child { flex: 1 1 100%; min-width: 0; }
  .rows > div > .kc-actions { flex: 1 1 100%; justify-content: space-between; align-items: center; }
}
/* Tablette : raccourcis sur deux colonnes ; à l'horizontale (901 à 1180 px), la barre latérale s'affine et les blocs passent l'un sous l'autre */
@media (min-width: 641px) and (max-width: 1180px) { .quick-a { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 901px) and (max-width: 1180px) {
  .esp { grid-template-columns: 258px minmax(0, 1fr); }
  .esp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Back-office, 16 nov. 2026 : deux espaces (Boutique en ligne / Gestion), fiche produit experte,
   référencement Google, stock par boutique, collections automatiques, segments, recherche ⌘K.
   ========================================================================== */
/* ---------- Sélecteur d'espace ---------- */
.bo-spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 2px 0 8px; border-radius: 16px; background: rgba(230, 211, 170, .06); box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .12); }
.bo-spaces button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 9px; border-radius: 12px; font: 500 10.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 240, 228, .62); text-align: center; transition: background .35s, color .35s; }
.bo-spaces button .ki { width: 18px; height: 18px; }
.bo-spaces button:hover { color: var(--ivoire); }
.bo-spaces button[aria-selected="true"] { background: linear-gradient(180deg, rgba(221, 185, 106, .22), rgba(221, 185, 106, .1)); color: var(--or-pale); box-shadow: inset 0 0 0 1px rgba(221, 185, 106, .35); }
.bo[data-zone="boutique"] [data-sp="gestion"], .bo[data-zone="gestion"] [data-sp="boutique"] { display: none !important; }
.bo-k { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; margin-bottom: 4px; border-radius: var(--r-m); color: rgba(246, 240, 228, .6); box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .14); font: 400 14.5px var(--f-body); transition: color .3s, box-shadow .3s; }
.bo-k span { flex: 1; text-align: left; }
.bo-k:hover { color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(221, 185, 106, .4); }
.bo-k kbd, .cmdk kbd, .ed-kbd kbd { font: 500 11px/1 var(--f-body); padding: 4px 6px; border-radius: 6px; background: rgba(230, 211, 170, .1); color: inherit; letter-spacing: .04em; }
.bo.rail .bo-spaces { grid-template-columns: 1fr; }
.bo.rail .bo-spaces span, .bo.rail .bo-k span, .bo.rail .bo-k kbd { display: none; }
.bo.rail .bo-k { justify-content: center; padding: 0; }
/* le nom de l'espace en filigrane, au-dessus de chaque écran */
.bo-main .bo-top .cap { display: inline-flex; align-items: center; gap: 8px; }
.bo[data-zone="boutique"] .bo-main { --sp-c: var(--or); }
.bo[data-zone="gestion"] .bo-main { --sp-c: #6B5B45; }
.bo-main > .bo-top:first-child .cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-c); }

/* ---------- Alertes cliquables (aperçu, passerelles) ---------- */
.als { display: grid; gap: 8px; }
.als3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.al { display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); text-align: left; transition: box-shadow .3s, transform .3s var(--ease-out); }
.al:hover { box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-1px); }
.al > b { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(155, 58, 43, .09); color: var(--rouge); font: 400 22px/1 var(--f-display); font-variant-numeric: lining-nums; }
.al.ok > b { background: rgba(63, 107, 79, .1); color: var(--vert); }
.al strong { display: block; font: 400 17px/1.25 var(--f-display); color: var(--encre); }
.al small { font-size: 13.5px; color: var(--gris); }
.al > .ki { width: 16px; height: 16px; color: var(--gris); }
.kc.bridge { background: linear-gradient(160deg, #FBF7EE, var(--carte)); box-shadow: inset 0 0 0 1px var(--trait-or, rgba(184, 137, 62, .3)); }
.kc.warn { box-shadow: inset 0 0 0 1px rgba(155, 58, 43, .3); }
.kpi[type="button"] { cursor: pointer; transition: box-shadow .3s, transform .3s var(--ease-out); }
.kpi[type="button"]:hover { box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-1px); }
.kpi.dark[type="button"]:hover { box-shadow: 0 0 0 1px var(--or); }

/* ---------- Listes : filtres ---------- */
.chips button em { font-style: normal; opacity: .6; margin-left: 2px; font-variant-numeric: lining-nums; }
.cat-head, .cat-row { grid-template-columns: 52px minmax(0, 2.2fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.4fr) 20px; }
.cat-row b.low, .stk b.low, .stk-sum b.low { color: var(--rouge); }

/* ---------- Fiche produit ---------- */
.ed-top { align-items: flex-end; }
.ed-top h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ed-top h1 .pill { font-size: 10.5px; transform: translateY(2px); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--or-txt); transition: gap .3s; }
.crumb .ki { width: 14px; height: 14px; }
.crumb:hover { gap: 10px; }
.ed-nav { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.ed-nav button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.ed-nav button .ki { width: 16px; height: 16px; }
.ed-nav button:hover:not(:disabled) { background: rgba(184, 137, 62, .12); }
.ed-nav button:disabled { opacity: .3; cursor: default; }
.ed-nav > span { min-width: 54px; text-align: center; font: 400 17px var(--f-display); font-variant-numeric: lining-nums; }
.ed-nav small { color: var(--gris); font-size: 13px; }
.seg3 { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
.seg3 button i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 10px; background: rgba(184, 137, 62, .2); font-size: 10px; letter-spacing: 0; }
.ed-private { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--r-m); background: rgba(42, 24, 16, .05); font-size: 14px; color: var(--cacao); }
.ed-private .ki { width: 16px; height: 16px; color: var(--or-txt); }
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.ed:not([data-u="horlogerie"]) [data-kind="montre"], .ed:not(.is-ring) [data-kind="bague"] { display: none; }
.ed[data-u="horlogerie"] [data-kind="pierre"] { display: none; }
.st-opts { display: grid; gap: 8px; margin-top: 14px; }
.st-opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 14px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); cursor: pointer; transition: box-shadow .3s, background .3s; }
.st-opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--or); }
.st-opt b { display: block; font: 400 18px/1.2 var(--f-display); }
.st-opt small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--gris); }
.st-opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--or); background: #FFFCF6; }
.st-line { margin: 12px 0 0; font-size: 14px; color: var(--gris); }
.st-line b { color: var(--encre); font-weight: 500; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.tagrow .pill { cursor: pointer; }
.ed-kbd { display: block; text-align: center; font-size: 12.5px; }
.ed-kbd kbd { background: rgba(42, 24, 16, .07); }
/* aperçu Google */
.gprev { padding: 18px 20px; margin-bottom: 18px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font-family: Arial, Helvetica, sans-serif; }
.gp-site { display: flex; align-items: center; gap: 10px; }
.gp-fav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2A1810; overflow: hidden; }
.gp-fav img { width: 22px; }
.gp-site b { display: block; font: 400 14px/1.2 Arial, sans-serif; color: #202124; }
.gp-site small { display: block; font: 400 12px/1.3 Arial, sans-serif; color: #4d5156; overflow-wrap: anywhere; }
.gp-t { display: block; margin: 8px 0 3px; font: 400 20px/1.3 Arial, sans-serif; color: #1a0dab; overflow-wrap: anywhere; }
.gp-d { margin: 0; font: 400 14px/1.58 Arial, sans-serif; color: #4d5156; overflow-wrap: anywhere; }
.cnt { float: right; font-style: normal; letter-spacing: .04em; text-transform: none; font-weight: 400; color: var(--gris); }
.cnt.ok { color: var(--vert); }
.cnt.warn { color: var(--or-txt); }
.cnt.bad { color: var(--rouge); }
.slug { min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: var(--r-m); background: rgba(42, 24, 16, .04); font-size: 15px; color: var(--gris); overflow-wrap: anywhere; }
.slug b { color: var(--encre); font-weight: 500; }
.seo-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.seo-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--gris); }
.seo-checks .ki { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--rouge); }
.seo-checks li.ok { color: var(--encre); }
.seo-checks li.ok .ki { color: var(--vert); }
/* barre d'enregistrement */
.savebar { position: fixed; z-index: 960; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: var(--r-pill); background: #2A1810; color: var(--or-pale); box-shadow: 0 24px 50px -20px rgba(21, 11, 7, .7); animation: sbIn .5s var(--ease-out); }
.savebar[hidden] { display: none; }
.savebar > span { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.savebar > span .ki { width: 16px; height: 16px; }
.savebar > div { display: flex; gap: 8px; }
.savebar .btn-soft { background: transparent; color: var(--or-pale); box-shadow: inset 0 0 0 1px rgba(230, 211, 170, .35); }
.savebar.shake { animation: sbShake .5s; }
@keyframes sbIn { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes sbShake { 20%, 60% { transform: translateX(calc(-50% - 8px)); } 40%, 80% { transform: translateX(calc(-50% + 8px)); } }
.bo-main:has(.savebar:not([hidden])) { padding-bottom: 130px; }
/* historique / chronologie */
.tl { list-style: none; margin: 10px 0 0; padding: 0 0 0 18px; position: relative; display: grid; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--trait); }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -18px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ivoire); box-shadow: inset 0 0 0 1.5px var(--or); }
.tl li.st::before { background: var(--or); }
.tl li.note::before { box-shadow: inset 0 0 0 1.5px var(--cacao); }
.tl li.notif::before, .tl li.stock::before { box-shadow: inset 0 0 0 1.5px var(--vert); }
.tl b { display: block; font: 400 16.5px/1.3 var(--f-display); }
.tl b em { font-style: normal; color: var(--gris); }
.tl p { margin: 4px 0; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font-size: 14.5px; white-space: pre-wrap; }
.tl small { font-size: 13px; color: var(--gris); }

/* ---------- Stock ---------- */
.seg-shop { grid-template-columns: 1fr 1fr; min-width: 300px; }
.stk { padding-block: 8px; }
.stk-head, .stk-row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(70px, .7fr)) 140px; gap: 14px; align-items: center; }
.stk-head { padding: 10px 0; font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); border-bottom: 1px solid var(--trait); }
.stk-head span:not(:first-child) { text-align: center; }
.stk-row { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.stk-row:last-child { border-bottom: 0; }
.stk-n { display: flex; align-items: center; gap: 14px; min-width: 0; text-align: left; }
.stk-n .th { flex: none; width: 44px; aspect-ratio: 4/5; border-radius: 22px 22px 8px 8px; overflow: hidden; background: var(--choco); display: grid; place-items: center; color: var(--or-clair); }
.stk-n .th img { width: 100%; height: 100%; object-fit: cover; }
.stk-n b { display: block; font: 400 18px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-n > span:last-child { min-width: 0; }
.stk-n small { font-size: 13.5px; color: var(--gris); }
.stk-n:hover b { color: var(--or-txt); }
.stk-c { text-align: center; font: 400 18px var(--f-display); font-variant-numeric: lining-nums; color: var(--cacao); }
.stk-c b { font-weight: 400; color: var(--encre); }
.stk-q { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); justify-self: end; }
.stk-q button { width: 34px; height: 34px; border-radius: 50%; font: 300 20px/1 var(--f-body); color: var(--cacao); transition: background .25s; }
.stk-q button:hover:not(:disabled) { background: rgba(184, 137, 62, .14); }
.stk-q button:disabled { opacity: .3; }
.stk-q b { min-width: 34px; text-align: center; font: 400 19px var(--f-display); font-variant-numeric: lining-nums; }
.stk-sheet, .o-sheet { display: grid; gap: 22px; padding-top: 16px; }
.stk-sum { min-width: 0; }
.stk-sum td, .stk-sum th { padding: 10px 6px; }
.mini { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.mini .btn { justify-self: start; }
.mini .f input, .mini .f select { min-height: 46px; }
.f-row3 { grid-template-columns: 1fr 1fr .7fr; }

/* ---------- Collections ---------- */
.colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.coll { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 16px; border-radius: var(--r-l); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); text-align: left; transition: box-shadow .3s, transform .4s var(--ease-out); }
.coll:hover { box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-2px); }
.coll-th { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; aspect-ratio: 3/1.3; border-radius: 14px; overflow: hidden; background: var(--choco); color: var(--or-clair); place-items: center; }
.coll-th img { width: 100%; height: 100%; object-fit: cover; }
.coll-th > .ki { grid-column: 1 / -1; width: 28px; height: 28px; opacity: .6; }
.coll-b b { display: block; font: 400 21px/1.2 var(--f-display); }
.coll-b small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--gris); }
.coll-f { display: flex; justify-content: space-between; align-items: center; }
.coll-f .ki { width: 16px; height: 16px; color: var(--gris); }
.coll-form { display: grid; gap: 16px; padding-top: 16px; }
.coll-form .seg button { font-size: 10px; letter-spacing: .12em; }
.rules { display: grid; gap: 8px; }
.rule { display: grid; grid-template-columns: 1fr 1fr 1fr 36px; gap: 6px; align-items: center; }
.rule select, .rule input { width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font: 400 14px var(--f-body); color: var(--encre); }
.rule select:focus, .rule input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--or); }
.rule-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--gris); }
.rule-x .ki { width: 14px; height: 14px; }
.rule-x:hover:not(:disabled) { color: var(--rouge); background: rgba(155, 58, 43, .08); }
.rule-x:disabled { opacity: .25; }
.coll-prev { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-m); background: rgba(184, 137, 62, .07); }
.coll-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.coll-mini > span { width: 38px; aspect-ratio: 4/5; border-radius: 19px 19px 7px 7px; overflow: hidden; background: var(--choco); display: grid; place-items: center; color: var(--or-clair); font-size: 12px; }
.coll-mini img { width: 100%; height: 100%; object-fit: cover; }
.coll-form details summary { cursor: pointer; font: 500 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--or-txt); }
.coll-form details[open] { gap: 12px; }

/* ---------- Segments ---------- */
.segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.seg-c { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--r-l); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); text-align: left; transition: box-shadow .3s, transform .4s var(--ease-out); }
.seg-c:hover { box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-2px); }
.seg-c.on { box-shadow: inset 0 0 0 1.5px var(--or); background: #FFFCF6; }
.seg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.seg-i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(184, 137, 62, .12); color: var(--or-txt); }
.seg-i .ki { width: 18px; height: 18px; }
.seg-top b { font: 300 34px/1 var(--f-display); font-variant-numeric: lining-nums; }
.seg-c strong { font: 400 18px/1.25 var(--f-display); font-weight: 400; }
.seg-c small { font-size: 13.5px; line-height: 1.45; color: var(--gris); }
.seg-av { display: flex; margin-top: 8px; min-height: 28px; }
.seg-av i { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #DDB96A, #C4923E); color: #2A1810; font: 500 10.5px var(--f-body); font-style: normal; box-shadow: 0 0 0 2px var(--carte); }
.seg-av i:first-child { margin-left: 0; }

/* ---------- Réservation en panneau ---------- */
.o-pills { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.o-pills .pill { justify-self: start; }
.o-lab { font: 500 10.5px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.o-client { display: grid; gap: 14px; }
.o-bridge { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-b { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font-size: 14px; color: var(--encre); transition: box-shadow .3s; }
.chip-b .ki { width: 15px; height: 15px; color: var(--or-txt); }
.chip-b small { font: 500 9.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); padding-left: 8px; border-left: 1px solid var(--trait); }
button.chip-b:hover { box-shadow: inset 0 0 0 1px var(--or); }
.o-prep, .o-notify { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.o-notify p { margin: 0; font-size: 14px; }
.o-note { display: grid; gap: 10px; }
.o-note .btn { justify-self: start; }

/* ---------- Recherche ⌘K ---------- */
.cmdk { position: fixed; inset: 0; z-index: 990; display: grid; justify-items: center; align-items: start; padding: min(14vh, 120px) 16px 16px; background: rgba(21, 11, 7, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ckIn .25s ease-out; }
.cmdk.out { opacity: 0; transition: opacity .18s; }
.cmdk-box { width: min(640px, 100%); max-height: min(70vh, 620px); display: grid; grid-template-rows: auto 1fr auto; border-radius: 22px; overflow: hidden; background: var(--ivoire); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); animation: ckBox .35s var(--ease-out); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--trait); color: var(--gris); }
.cmdk-in input { flex: 1; min-width: 0; height: 62px; border: 0; background: transparent; font: 400 18px var(--f-body); color: var(--encre); }
.cmdk-in input:focus { outline: none; }
.cmdk-in kbd, .cmdk-foot kbd { background: rgba(42, 24, 16, .07); }
.cmdk-list { overflow: auto; padding: 8px; overscroll-behavior: contain; }
.cmdk-g { display: block; padding: 12px 12px 6px; font: 500 10.5px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--or-txt); }
.cmdk-list button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; text-align: left; }
.cmdk-list button[aria-selected="true"], .cmdk-list button:hover { background: rgba(184, 137, 62, .12); }
.cmdk-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: rgba(42, 24, 16, .06); color: var(--cacao); }
.cmdk-ic img { width: 100%; height: 100%; object-fit: cover; }
.cmdk-ic .ki { width: 17px; height: 17px; }
.cmdk-list b { display: block; font: 400 17px/1.25 var(--f-display); }
.cmdk-list small { display: block; font-size: 13px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-list button > span:last-child { min-width: 0; }
.cmdk-list .empty { padding: 26px 12px; font-size: 19px; }
.cmdk-foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--trait); font-size: 12.5px; color: var(--gris); }
@keyframes ckIn { from { opacity: 0; } }
@keyframes ckBox { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .ed { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .als3 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .ed { grid-template-columns: 1fr; }
  .ed-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ed-side > .f-err, .ed-side > .ed-actions { grid-column: 1 / -1; }
  .cat-head, .cat-row { grid-template-columns: 52px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) 20px; }
  .cat-head span:nth-child(6), .cat-row .cat-s { display: none; }
  .stk-head, .stk-row { grid-template-columns: minmax(0, 2fr) repeat(3, 64px) 128px; gap: 10px; }
}
/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
  .bo-spaces { margin-top: 4px; }
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips-scroll::-webkit-scrollbar { display: none; }
  .chips-scroll button { flex: none; }
  .ed-side { grid-template-columns: 1fr; }
  .ed-top { align-items: flex-start; }
  .ed-top > .kc-actions { width: 100%; justify-content: space-between; }
  .seg3 { max-width: none; }
  .seg3 button { font-size: 10px; letter-spacing: .1em; padding-inline: 4px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .seo-checks { grid-template-columns: 1fr; }
  .gprev { padding: 14px; }
  .gp-t { font-size: 18px; }
  .cat-head { display: none; }
  .cat-row { grid-template-columns: 52px minmax(0, 1fr) 18px; gap: 6px 14px; }
  .cat-row .th { grid-row: span 3; }
  .cat-row .cat-n { grid-column: 2; }
  .cat-row .cat-c { grid-column: 2; display: flex; align-items: baseline; gap: 8px; }
  .cat-row .cat-c[data-l="Statut"] { order: 0; }
  .cat-row .cat-c[data-l="Stock"], .cat-row .cat-s { display: none; }
  .cat-row > .ki { grid-column: 3; grid-row: 1; }
  .stk-head { display: none; }
  .stk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; padding: 16px 0; }
  .stk-n { grid-column: 1 / -1; }
  .stk-c { display: grid; gap: 2px; font-size: 17px; }
  .stk-c::before { content: attr(data-l); font: 500 9.5px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
  .stk-q { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .stk-q::before { content: "En stock"; padding-left: 12px; font: 500 10px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-right: auto; }
  .stk-q button { width: 44px; height: 44px; }
  .seg-shop { min-width: 0; width: 100%; }
  .bo-top > .seg-shop { order: 2; }
  .colls, .segs { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr 1fr 36px; }
  .rule > :nth-child(3) { grid-column: 1 / 3; }
  .rule-x { grid-column: 3; grid-row: 1; }
  .savebar { padding-left: 16px; border-radius: 20px; }
  .savebar > span { font-size: 13px; }
  .cmdk { padding-top: 12px; }
  .cmdk-box { max-height: calc(100dvh - 24px); }
  .cmdk-foot { display: none; }
  .ed-kbd { display: none; }
  .al { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 12px; }
  .al > b { width: 42px; height: 42px; font-size: 20px; }
}
@media (max-width: 420px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-row3 { grid-template-columns: 1fr 1fr; }
  .savebar > span .ki { display: none; }
}
.mini .f-row3 { grid-template-columns: 1fr 1fr; }
.mini .f-row3 > :last-child { grid-column: 1 / -1; }
/* Téléphone : une pièce = une ligne compacte (photo, nom, statut et prix côte à côte) */
@media (max-width: 900px) {
  .cat-row { grid-template-columns: 52px auto minmax(0, 1fr) 18px; gap: 8px 12px; }
  .cat-row .th { grid-row: 1 / span 2; }
  .cat-row .cat-n { grid-column: 2 / 4; grid-row: 1; }
  .cat-row .cat-c { grid-row: 2; }
  .cat-row .cat-c[data-l="Statut"] { grid-column: 2; }
  .cat-row .cat-c[data-l="Prix TTC"] { grid-column: 3; justify-self: end; }
  .cat-row .cat-c[data-l]::before { display: none; }
  .cat-row > .ki { grid-column: 4; grid-row: 1 / span 2; align-self: center; }
  .cat-row b { font-size: 17.5px; }
}
@media (hover: none) {
  .cat-row:hover { background: none; padding-inline: 0; margin-inline: 0; width: 100%; }
  .al:hover, .coll:hover, .seg-c:hover, .kpi[type="button"]:hover { transform: none; }
}
@media (max-width: 600px) {
  .savebar { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px; border-radius: 22px; }
  .savebar > span { width: 100%; justify-content: center; }
  .savebar > div { width: 100%; }
  .savebar > div .btn { flex: 1; min-width: 0; padding: 0 10px !important; letter-spacing: .1em; }
  .ed-top > .kc-actions { flex-wrap: nowrap; align-items: center; }
  .ed-top > .kc-actions .btn { flex: 0 1 auto; width: auto; padding: 0 16px !important; letter-spacing: .12em; white-space: nowrap; }
}
@media (max-width: 900px), (hover: none) { .bo-k kbd { display: none; } }
/* Tablette : le stock reste un tableau lisible d'un coup d'œil */
@media (min-width: 641px) and (max-width: 900px) {
  .stk-head { display: grid; }
  .stk-row { grid-template-columns: minmax(0, 2fr) repeat(3, 70px) 132px; gap: 10px; padding: 12px 0; }
  .stk-n { grid-column: auto; }
  .stk-c { display: block; font-size: 18px; }
  .stk-c::before, .stk-q::before { display: none; }
  .stk-q { grid-column: auto; justify-self: end; justify-content: center; }
  .stk-q button { width: 38px; height: 38px; }
}
@media (min-width: 641px) and (max-width: 900px) { .stk-row, .stk-head { grid-template-columns: minmax(0, 2fr) repeat(3, 84px) 132px; } .stk-head { font-size: 10px; letter-spacing: .06em; } }

/* ==========================================================================
   Pilotage de direction (16 nov. 2026) : cockpit, prévisions & trésorerie, analyses, simulateur
   ========================================================================== */
.demo-n { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--r-m); background: rgba(184, 137, 62, .08); font-size: 13.5px; color: var(--cacao); }
.demo-n .ki { width: 15px; height: 15px; color: var(--or-txt); flex: none; }
.ktiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ktiles.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kt { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px 20px 16px; border-radius: var(--r-l); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); min-height: 128px; overflow: hidden; }
.kt b { font: 300 clamp(28px, 2.3vw, 36px)/1 var(--f-display); font-variant-numeric: lining-nums; color: var(--encre); }
.kt b.ko { color: var(--rouge); }
.kt .spk { position: absolute; right: 14px; bottom: 12px; opacity: .95; }
.dl { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--gris); max-width: calc(100% - 120px); }
.dl .ki { width: 13px; height: 13px; flex: none; }
.dl small { font-weight: 400; color: var(--gris); }
.dl.up { color: var(--vert); }
.dl.dn { color: var(--rouge); }
.anticip { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: inset 0 0 0 1px var(--trait-or, rgba(184, 137, 62, .3)); background: linear-gradient(120deg, #FBF6EA, var(--carte)); }
.anticip > div { display: grid; gap: 6px; align-content: start; padding: 20px 24px; }
.anticip .an-side { border-left: 1px solid var(--trait); }
.anticip b { font: 400 22px/1.25 var(--f-display); color: var(--encre); }
.anticip b.ok { color: var(--vert); display: flex; align-items: center; gap: 8px; } .anticip b.ko { color: var(--rouge); display: flex; align-items: center; gap: 8px; }
.anticip b .ki { width: 18px; height: 18px; }
.anticip p { margin: 0; font-size: 14.5px; color: var(--cacao); }
.anticip .lnk { justify-self: start; margin-top: 6px; }
/* graphiques */
.chart { position: relative; width: 100%; margin-top: 4px; }
.chart svg { display: block; overflow: visible; }
.chart text { font: 400 11px var(--f-body); fill: #8A7860; font-variant-numeric: tabular-nums; }
.chart text.mk, .chart text.q { font-size: 10.5px; letter-spacing: .06em; fill: #8A7860; }
.chart text.q { text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; fill: #A8997F; }
.chart text.pl { font-size: 11px; fill: var(--cacao); }
.chart .hit, .chart [data-i] { cursor: crosshair; }
.ctip { position: absolute; z-index: 5; min-width: 170px; max-width: 260px; display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px -14px rgba(42, 24, 16, .45), inset 0 0 0 1px var(--trait); font-size: 12.5px; pointer-events: none; }
.ctip b { font: 500 12px var(--f-body); letter-spacing: .04em; color: var(--encre); text-transform: capitalize; }
.ctip span, .lg span { display: flex; align-items: center; gap: 8px; color: var(--cacao); }
.ctip em { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 500; color: var(--encre); font-variant-numeric: tabular-nums; }
.ctip i, .lg i { flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.ctip i.d, .lg i.d { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
.ctip i.b, .lg i.b { height: 10px; border-radius: 3px; background: var(--c); opacity: .22; }
.ctip i.t { background: transparent; }
.lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.tview { margin-top: 10px; }
.tview summary { cursor: pointer; display: inline-flex; font: 500 10.5px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--or-txt); }
.tview .tbl { min-width: 480px; margin-top: 10px; }
.tview .tbl td { padding: 8px 12px; font-size: 13.5px; }
.sm { font-size: 13px !important; margin: 8px 0 0; }
.kmini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kmini.k2 { grid-template-columns: 1fr 1fr; margin-bottom: 4px; }
.kmini > div { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.kmini b { font: 300 26px/1 var(--f-display); font-variant-numeric: lining-nums; }
/* hypothèses */
.pil-set .kc-head { margin-bottom: 14px; }
.pil-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pil-grid .f input, .pil-grid .f select { min-height: 46px; }
.pil-grid .f small { font-size: 12.5px; }
.alert-l, .ok-l { display: flex; align-items: center; gap: 10px; margin: -6px 0 6px; font-size: 14.5px; }
.alert-l { color: var(--rouge); } .ok-l { color: var(--vert); }
.alert-l .ki, .ok-l .ki { width: 16px; height: 16px; flex: none; }
.ideas { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-m); background: rgba(184, 137, 62, .07); }
.ideas ul, .keyd { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--cacao); }
.ideas li { padding-left: 16px; position: relative; } .ideas li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--or); }
.keyd { margin-top: 12px; } .keyd li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; } .keyd b { font-weight: 500; text-transform: capitalize; color: var(--encre); }
/* simulateur */
.sim-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; margin-top: 14px; }
.sim-in { display: grid; gap: 18px; align-content: start; }
.sim-s { display: grid; gap: 8px; }
.sim-s span { display: flex; justify-content: space-between; font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.sim-s em { font-style: normal; letter-spacing: 0; font-size: 14px; color: var(--encre); font-variant-numeric: tabular-nums; }
.sim-s input[type=range] { width: 100%; accent-color: var(--or); height: 28px; }
.sim-out { display: grid; gap: 2px; align-content: start; padding: 6px 18px 14px; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); }
.sim-out > div { display: grid; grid-template-columns: 1fr auto 96px; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--trait); }
.sim-out > div span { font-size: 14px; color: var(--cacao); }
.sim-out > div b { font: 400 20px var(--f-display); font-variant-numeric: lining-nums; }
.sim-out em { font-style: normal; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.sim-out em.up { color: var(--vert); } .sim-out em.dn { color: var(--rouge); }
.sim-out .res { border-bottom: 0; } .sim-out .res b { font-size: 24px; } .sim-out .res.ko b { color: var(--rouge); }
/* analyses */
.abc { display: grid; }
.abc-r { display: grid; grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--trait); text-align: left; }
.abc-r:last-child { border-bottom: 0; }
.abc-r:hover .abc-n b { color: var(--or-txt); }
.abc-c { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font: 500 12px var(--f-body); }
.abc-c.cA { background: #2A1810; color: var(--or-pale); } .abc-c.cB { background: rgba(184, 137, 62, .18); color: var(--or-txt); } .abc-c.cC { background: rgba(42, 24, 16, .06); color: var(--gris); }
.abc-n b { display: block; font: 400 16.5px/1.25 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abc-n small { font-size: 12.5px; color: var(--gris); }
.abc-b { height: 10px; border-radius: 5px; background: rgba(42, 24, 16, .05); overflow: hidden; }
.abc-b i { display: block; height: 100%; border-radius: 0 5px 5px 0; }
.abc-v { text-align: right; font: 400 17px var(--f-display); font-variant-numeric: lining-nums; }
.abc-v small { display: block; font: 400 11.5px var(--f-body); color: var(--gris); }
.abc + .lg { margin-top: 12px; }
.mix { display: grid; gap: 6px; margin-bottom: 16px; }
.mix > span { font: 500 10.5px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gris); }
.mix-b { display: flex; gap: 2px; height: 16px; border-radius: 8px; overflow: hidden; }
.mix-b i { display: block; min-width: 2px; }
.mix small { font-size: 13px; color: var(--cacao); }
@media (max-width: 1180px) {
  .pil-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ktiles.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kt { min-height: 118px; padding: 14px; }
  .kt .spk { width: 80px; right: 8px; bottom: 8px; opacity: .7; }
  .dl { max-width: 100%; flex-wrap: wrap; } .dl small { display: none; }
  .anticip { grid-template-columns: 1fr; } .anticip .an-side { border-left: 0; border-top: 1px solid var(--trait); }
  .kmini { grid-template-columns: 1fr 1fr; }
  .pil-grid { grid-template-columns: 1fr 1fr; }
  .sim-g { grid-template-columns: 1fr; }
  .abc-r { grid-template-columns: 28px minmax(0, 1fr) 96px; } .abc-b { grid-column: 2 / 4; grid-row: 2; }
  .sim-out > div { grid-template-columns: 1fr auto; } .sim-out em { grid-column: 2; }
}
@media (max-width: 420px) { .pil-grid { grid-template-columns: 1fr; } .ktiles { grid-template-columns: 1fr 1fr; } .kt b { font-size: 24px; } }

/* ==========================================================================
   Menu latéral, ordinateur (16 nov. 2026) : tout le menu visible d'un regard, sans molette.
   Les hauteurs se calent sur la hauteur de l'écran ; le profil tient sur une ligne.
   ========================================================================== */
@media (min-width: 901px) {
  .bo-side { padding: 16px 12px 12px; gap: 2px; overflow: hidden; }
  .bo-brand { gap: 6px; padding: 2px 0 12px; margin-bottom: 6px; }
  .bo-brand img { width: clamp(60px, 10vh, 100px); }
  .bo-brand span { font-size: 10px; }
  .bo-spaces { margin: 0 0 6px; }
  .bo-spaces button { padding: 8px 4px 7px; gap: 3px; font-size: 10px; }
  .bo-k { min-height: 38px; margin-bottom: 2px; }
  .bo-side nav { gap: 1px; flex: 1; min-height: 0; align-content: start; }
  .bo-side nav button { min-height: clamp(26px, calc((100vh - 372px) / 16), 44px); padding: 0 12px; font-size: 14.5px; gap: 12px; }
  .bo-side nav button .ki { width: 18px; height: 18px; }
  .bo-side nav button[aria-selected="true"]::before { top: 6px; bottom: 6px; left: -12px; }
  .bo-g { padding: clamp(6px, 1.3vh, 14px) 12px 3px; font-size: 10px; }
  .bo-who { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px; padding-top: 10px; }
  .bo-who .bo-me { padding: 0; gap: 10px; min-width: 0; }
  .bo-who .bo-me b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bo-who .bo-me small { font-size: 12.5px; }
  .bo-av { width: 34px; height: 34px; font-size: 12.5px; }
  .bo-who a, .bo-who button { width: 38px; min-height: 38px; padding: 0; justify-content: center; }
  .bo-who a span, .bo-who button span { display: none; }
  .bo.rail .bo-who { grid-template-columns: 1fr; justify-items: center; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .bo-brand span { display: none; }
  .bo-brand img { width: 58px; }
  .bo-brand { padding-bottom: 8px; }
  .bo-spaces button .ki { display: none; }
  .bo-spaces button { padding: 9px 4px; }
  .bo-k { min-height: 34px; }
}
/* Ordinateur : le bandeau « Démonstration » devient un badge flottant discret (il ne repousse plus le menu) */
@media (min-width: 901px) {
  #bo > .demo-flag { position: fixed; z-index: 940; left: auto; right: 18px; bottom: 16px; max-width: 360px; justify-content: flex-start; gap: 4px 10px; padding: 9px 16px; border-radius: 16px; font-size: 12.5px; text-align: left; box-shadow: 0 16px 34px -16px rgba(21, 11, 7, .6); opacity: .94; pointer-events: none; }
  .bo-side { height: 100vh; top: 0; overflow-y: auto; }
  .bo-side nav { flex: 0 0 auto; }
  .bo-who { margin-top: auto; }
  .bo-main:has(.savebar:not([hidden])) ~ * , body:has(.savebar:not([hidden])) #bo > .demo-flag { display: none; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .bo-g { padding: 7px 12px 2px; font-size: 9.5px; letter-spacing: .2em; }
  .bo-side nav button { min-height: clamp(24px, calc((100vh - 352px) / 16), 34px); font-size: 14px; }
  .bo-side nav button .ki { width: 16px; height: 16px; }
  .bo-spaces { margin-bottom: 4px; }
  .bo-k { min-height: 32px; }
  .bo-who { padding-top: 6px; }
}
@media (min-width: 901px) {
  #bo > .demo-flag span { display: none; }
  #bo > .demo-flag { padding: 7px 14px; border-radius: 999px; }
  #bo > .demo-flag b { font-size: 10px; }
}
@media (min-width: 901px) and (max-height: 860px) { .bo-side { padding-top: 10px; padding-bottom: 8px; } .bo-brand { padding-bottom: 6px; margin-bottom: 4px; } }

.kt-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.kt .spk { position: static; flex: none; width: 96px; height: 30px; }
.kt .dl { max-width: none; white-space: nowrap; }
.kt { min-height: 0; }
@media (max-width: 1180px) { .kt .dl small { display: none; } }

.ctip[hidden] { display: none; }

/* ==========================================================================
   Clients (16 nov. 2026) : liste, fiche complète, proches, parrainage, invitation en boutique
   ========================================================================== */
.cl-list { padding-block: 8px; }
.cl-head, .cl-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.4fr) minmax(0, .8fr) 64px 96px minmax(110px, .8fr); gap: 14px; align-items: center; }
.cl-head { padding: 10px 0; font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); border-bottom: 1px solid var(--trait); }
.cl-row { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--trait); text-align: left; transition: background .25s; }
.cl-row:last-child { border-bottom: 0; }
.cl-row:hover { background: rgba(184, 137, 62, .05); }
.cl-n { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cl-n > span:last-child { min-width: 0; }
.cl-n b { display: block; font: 400 18px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-n small, .cl-c small { display: block; font-size: 13px; color: var(--gris); }
.cl-n .pill { padding: 3px 8px; font-size: 10px; }
.cl-c { min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.cl-c.num, .cl-head .num { text-align: right; font-variant-numeric: tabular-nums; }
.cl-row .bo-av { width: 36px; height: 36px; font-size: 12.5px; flex: none; }
.cl-f { display: flex; align-items: center; gap: 8px; }
.fbar { display: inline-block; flex: 1; min-width: 50px; height: 6px; border-radius: 3px; background: rgba(42, 24, 16, .08); overflow: hidden; vertical-align: middle; }
.fbar i { display: block; height: 100%; border-radius: 3px; background: var(--or); }
.fpct { font-size: 12.5px; color: var(--cacao); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.kc-head .fbar { max-width: 140px; }
.cl-form { display: grid; gap: 18px; }
.fs { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; min-width: 0; }
.fs legend { padding: 0 0 10px; font: 400 19px var(--f-display); color: var(--encre); }
.fs + .fs { padding-top: 16px; border-top: 1px solid var(--trait); }
.chk-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-c { position: relative; cursor: pointer; }
.chip-c input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100% !important; height: 100% !important; cursor: pointer; }
.chip-c span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font-size: 14px; color: var(--cacao); text-transform: none; letter-spacing: 0; transition: background .25s, color .25s, box-shadow .25s; }
.chip-c input:checked + span { background: #2A1810; color: var(--or-pale); box-shadow: none; }
.chip-c input:focus-visible + span { box-shadow: 0 0 0 2px var(--ivoire), 0 0 0 3.5px var(--or); }
.dt-row { margin-bottom: 8px; }
.dt-row input { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--r-m); background: #fff; box-shadow: inset 0 0 0 1px var(--trait); font: 400 15px var(--f-body); color: var(--encre); }
.dt-row input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--or); }
.inv-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-l); background: rgba(184, 137, 62, .1); box-shadow: inset 0 0 0 1px rgba(184, 137, 62, .35); }
.inv-bar > .ki { width: 20px; height: 20px; color: var(--or-txt); flex: none; }
.inv-bar > span { flex: 1; min-width: 200px; } .inv-bar b { display: block; font: 400 18px var(--f-display); } .inv-bar small { font-size: 13.5px; color: var(--cacao); }
.inv-done { display: grid; gap: 14px; padding-top: 18px; justify-items: start; }
.inv-done h3 { margin: 0; font: 300 26px/1.15 var(--f-display); }
.inv-done .f { width: 100%; }
.bonus-l { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-m); background: rgba(184, 137, 62, .08); font-size: 13.5px; color: var(--cacao); }
.bonus-l .ki { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--or-txt); }
.bonus-l.ok { background: rgba(63, 107, 79, .09); color: var(--vert); } .bonus-l.ok .ki { color: var(--vert); }
.kc.danger { box-shadow: inset 0 0 0 1px rgba(155, 58, 43, .22); }
.circle { display: grid; }
.pr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.pr:last-child { border-bottom: 0; }
.pr .bo-av, .pr .esp-av { width: 38px; height: 38px; font-size: 12.5px; }
.pr-b b { display: block; font: 400 17px/1.25 var(--f-display); }
.pr-b small { font-size: 13px; color: var(--gris); }
.pr-a { display: flex; align-items: center; gap: 6px; }
.pr-a .pill { cursor: pointer; }
.rule-x.sure { color: var(--rouge); background: rgba(155, 58, 43, .1); }
.pr-f { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--trait); }
.fiche-m { display: grid; gap: 10px; }
.fm-top { display: flex; justify-content: space-between; align-items: baseline; }
.fm-top b { font: 300 34px/1 var(--f-display); }
.fiche-m .fbar { height: 8px; width: 100%; }
.fiche-m p { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14.5px; color: var(--cacao); }
.fiche-m p .ki { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--or-txt); }
.ref-code { font-size: clamp(30px, 4vw, 44px) !important; letter-spacing: .08em; }
@media (max-width: 1180px) { .cl-head, .cl-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr) 60px 90px minmax(100px, .8fr); } .cl-head span:nth-child(3), .cl-row .cl-c[data-l="Boutique"] { display: none; } }
@media (max-width: 900px) {
  .cl-head { display: none; }
  .cl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .cl-row .cl-c[data-l="Contact"], .cl-row .cl-c[data-l="Boutique"], .cl-row .cl-c[data-l="Achats"] { display: none; }
  .cl-row .cl-c[data-l="Encaissé"] { grid-column: 2; grid-row: 1; }
  .cl-row .cl-f { grid-column: 1 / -1; padding-left: 48px; }
  .pr-f { grid-template-columns: 1fr 1fr; }
  .pr { grid-template-columns: 38px minmax(0, 1fr); } .pr-a { grid-column: 2; }
}
@media (max-width: 560px) { .f-row3 { grid-template-columns: 1fr 1fr; } .f-row3 > :first-child { grid-column: 1 / -1; } .pr-f { grid-template-columns: 1fr; } }
