/* Les Filles de Freya · application d'administration
   Charte de la boutique (Marcellus, Assistant, rose poudré) + ergonomie d'app mobile */

:root {
  --rose: #cc8b86;
  --rose-dark: #a9665f;
  --rose-deep: #8e4f49;
  --rose-pale: #f7ecea;
  --rose-mist: #fbf4f2;
  --blue: #b0d0d3;
  --blue-pale: #e9f3f4;
  --gold: #c9a14a;
  --ink: #161312;
  --ink-2: rgba(22, 19, 18, .7);
  --ink-3: rgba(22, 19, 18, .46);
  --ink-4: rgba(22, 19, 18, .28);
  --line: rgba(22, 19, 18, .08);
  --line-2: rgba(22, 19, 18, .14);
  --bg: #f6f2ef;
  --surface: #ffffff;
  --surface-2: #faf7f5;
  --ok: #3d8a5a;
  --ok-pale: #e8f3ec;
  --warn: #c07a2c;
  --warn-pale: #fbf0e2;
  --err: #b4323a;
  --err-pale: #fbeaea;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --sh-1: 0 0 0 1px var(--line);
  --sh-2: 0 0 0 1px var(--line);
  --ring: 0 0 0 3px rgba(204, 139, 134, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --safe-b: 16px;
  --tab-h: 74px;
  --rail-w: 252px;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Assistant', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  letter-spacing: .01em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; min-height: 100svh;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--rose-pale); }

/* ---------- Lancement ---------- */
.splash { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-in { display: grid; justify-items: center; gap: 18px; animation: rise .9s var(--ease) both; }
.splash img { width: 56px; height: 56px; }
.splash b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--rose-dark); letter-spacing: .02em; }
.splash i { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.splash i::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--rose); border-radius: 2px; animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Connexion ---------- */
.login { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 1fr); background: #fbf8f6; }
.lg-art { position: relative; overflow: hidden; background: #2a2220; isolation: isolate; }
.lg-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 7s linear; }
.lg-slides img.on { opacity: 1; transform: scale(1); }
.lg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 19, 18, .38) 0%, rgba(22, 19, 18, 0) 26%, rgba(22, 19, 18, 0) 50%, rgba(22, 19, 18, .72) 100%); }
.lg-brand { position: absolute; z-index: 2; left: 44px; top: 40px; display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--serif); font-size: 19px; letter-spacing: .02em; }
.lg-brand img { width: 30px; height: 30px; }
.lg-quote { position: absolute; z-index: 2; left: 44px; right: 44px; bottom: 44px; color: #fff; max-width: 520px; }
.lg-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.lg-kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.lg-quote p { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; margin-top: 14px; text-wrap: balance; }
.lg-dots { display: flex; gap: 6px; margin-top: 26px; }
.lg-dots i { height: 3px; width: 18px; border-radius: 3px; background: rgba(255, 255, 255, .38); transition: width .5s var(--ease), background .5s; }
.lg-dots i.on { width: 42px; background: #fff; }
.lg-panel { display: flex; align-items: center; justify-content: center; padding: 48px clamp(28px, 6vw, 88px); position: relative; overflow: hidden; }
.lg-panel::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(204, 139, 134, .16), rgba(204, 139, 134, 0) 70%); pointer-events: none; }
.lg-card { position: relative; width: 100%; max-width: 400px; animation: rise .9s var(--ease) both; }
.lg-logo { width: 42px; height: 42px; margin-bottom: 34px; }
.lg-card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.4vw, 46px); line-height: 1.05; margin-top: 12px; letter-spacing: .005em; }
.lg-card h1 em { font-style: normal; color: var(--rose-dark); display: block; }
.lg-lead { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 14px 0 30px; max-width: 340px; }
.login form { display: grid; gap: 14px; }
.fl { position: relative; display: block; }
.fl input {
  width: 100%; height: 62px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 22px 48px 6px 50px; font-size: 16px; outline: none; transition: box-shadow .25s, background .25s;
}
.fl input:focus { box-shadow: inset 0 0 0 1.5px var(--rose-dark), 0 0 0 4px rgba(204, 139, 134, .16); }
.fl span { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); font-size: 15.5px; color: var(--ink-3); pointer-events: none; transition: all .25s var(--ease); }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span { top: 17px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rose-dark); }
.fl > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; transition: color .25s; }
.fl input:focus ~ svg { color: var(--rose-dark); }
.fl-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); }
.fl-eye svg { width: 20px; height: 20px; }
.fl-eye.on { color: var(--rose-dark); }
.login .err { color: var(--err); font-size: 14px; min-height: 20px; padding-left: 4px; }
.lg-submit { position: relative; height: 62px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s, box-shadow .3s; box-shadow: none; }
.lg-submit:active { transform: scale(.985); }
.lg-submit i { position: absolute; right: 8px; top: 8px; bottom: 8px; width: 46px; border-radius: 13px; background: linear-gradient(150deg, #d9a19c, var(--rose-dark)); display: grid; place-items: center; transition: width .45s var(--ease); }
.lg-submit i svg { width: 20px; height: 20px; }
@media (hover: hover) { .lg-submit:hover i { width: 56px; } }
.lg-submit:disabled { opacity: .7; }
.lg-submit.busy span { opacity: .6; }
.lg-submit.busy i svg { animation: spin .9s linear infinite; }
.lg-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.lg-foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; background: var(--bg); }
  .lg-art { height: 46svh; min-height: 300px; }
  .lg-brand { left: 22px; top: calc(env(safe-area-inset-top) + 22px); font-size: 17px; }
  .lg-brand img { width: 26px; height: 26px; }
  .lg-quote { left: 22px; right: 22px; bottom: 54px; }
  .lg-quote p { font-size: 27px; }
  .lg-dots { margin-top: 16px; }
  .lg-panel { margin-top: -30px; border-radius: 30px 30px 0 0; background: #fbf8f6; z-index: 2; padding: 42px 22px calc(28px + env(safe-area-inset-bottom)); align-items: flex-start; box-shadow: none; }
  .lg-logo { display: none; }
  .lg-card h1 { font-size: 34px; }
  .lg-lead { font-size: 15px; margin-bottom: 24px; }
  .lg-foot { margin-top: 26px; }
}

/* ---------- Structure ---------- */
.app { min-height: 100svh; }
.rail { display: none; }
.screen { min-width: 0; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 40px); }
.screen.has-fab { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 110px); }
.body { padding: 4px 16px 0; }
/* Même colonne que l'en-tête : la largeur max s'applique au contenu, pas aux marges */
.body > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.body > * + *, .view > * + * { margin-top: 16px; }
.view-in { animation: tab-in .2s var(--ease) backwards; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* En-tête d'écran : gros titre qui se compacte au défilement */
.top {
  position: sticky; top: 0; z-index: 30; padding: calc(env(safe-area-inset-top) + 18px) 16px 12px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, padding .3s var(--ease); transform: translateZ(0); isolation: isolate;
}
.top.scrolled { border-bottom-color: var(--line); padding-top: calc(env(safe-area-inset-top) + 10px); }
.top-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: flex-end; gap: 12px; }
.top-t { flex: 1; min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-dark); display: flex; align-items: center; gap: 8px; }
.top h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; letter-spacing: .005em; margin-top: 4px; transition: font-size .3s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top.scrolled h1 { font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; }
.top-sub { max-width: 1080px; margin: 12px auto 0; }

/* Barre d'onglets flottante (mobile) : pilule sombre, l'onglet actif s'élargit avec son nom */
.tabbar {
  position: fixed; left: 50%; bottom: var(--safe-b); transform: translateX(-50%); z-index: 50;
  width: calc(100% - 28px); max-width: 440px; display: flex; gap: 4px; padding: 7px;
  border-radius: 999px; background: rgba(26, 21, 20, .9);
  -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.tab {
  position: relative; flex: 1 1 0; min-width: 0; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; color: rgba(255, 255, 255, .58); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  transition: flex-grow .32s var(--ease), background .25s var(--ease), color .2s;
}
.tab svg { width: 23px; height: 23px; flex: 0 0 23px; transition: transform .35s var(--ease); }
.tab .tl { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease), opacity .25s; }
.tab.on { flex-grow: 2.3; background: #fbf4f2; color: var(--ink); }
.tab.on svg { color: var(--rose-deep); }
.tab.on .tl { max-width: 90px; opacity: 1; }
.tab:active svg { transform: scale(.88); }
.tab .dot { position: absolute; top: 9px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(26, 21, 20, .95); }
.tab.on .dot { left: auto; right: 10px; box-shadow: 0 0 0 2px #fbf4f2; background: var(--rose-deep); }

/* Bouton d'action flottant, juste au-dessus de la barre */
.fab-zone { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + var(--tab-h) + 12px); z-index: 45; display: flex; justify-content: center; pointer-events: none; }
.fab {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: linear-gradient(150deg, #d9a19c, var(--rose-dark)); color: #fff;
  font-size: 15px; font-weight: 700; box-shadow: none; animation: fab-in .45s var(--ease) both; transition: transform .2s var(--ease);
}
.fab:active { transform: scale(.96); }
.fab.rose { background: linear-gradient(150deg, #d9a19c, var(--rose-dark)); box-shadow: none; }
.fab svg { width: 18px; height: 18px; }
@keyframes fab-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Éléments ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.rose { background: linear-gradient(150deg, #d9a19c, var(--rose-dark)); color: #fff; }
.btn.soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.soft:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn.ghost { color: var(--ink-2); padding: 0 12px; }
.btn.danger { background: var(--err-pale); color: var(--err); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .35; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, color .2s, box-shadow .2s; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.plain { background: transparent; box-shadow: none; }
.icon-btn.sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--err); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.link { color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--err); }

.card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 4px; }
.card-h h3 { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.card-h .sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 1px; }
.card-b { padding: 16px 20px 20px; }
.section-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 2px 10px; }
.section-t h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.muted { color: var(--ink-3); font-size: 13.5px; }
.hint { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }

.f { display: grid; gap: 7px; }
.f > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.in, select.in, textarea.in {
  width: 100%; min-height: 48px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 16px; outline: none; transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
select.in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23161312' stroke-opacity='.5' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.in:focus { box-shadow: inset 0 0 0 1.5px var(--rose), var(--ring); background: var(--surface); }
.in.sm { min-height: 40px; padding: 8px 12px; font-size: 15px; border-radius: 12px; }
textarea.in { min-height: 96px; resize: vertical; line-height: 1.5; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.switch { position: relative; width: 46px; height: 28px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 20px; transition: background .25s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .3s var(--ease); box-shadow: none; }
.switch input:checked + i { background: var(--rose-dark); }
.switch input:checked + i::after { transform: translateX(18px); }
.sw-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink); cursor: pointer; min-height: 40px; }

/* Puces, rails et contrôles segmentés */
.rail-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.rail-x::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .2s; scroll-snap-align: start; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.add { box-shadow: inset 0 0 0 1px var(--line-2); border: 0; color: var(--ink-3); background: transparent; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chip .dot.off { background: var(--ink-4); }
.chip .n { min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; background: var(--rose-pale); color: var(--rose-deep); padding: 0 6px; }
.chip.on .n { background: rgba(255, 255, 255, .2); color: #fff; }
.chip.mini { min-height: 30px; padding: 0 11px; font-size: 13px; font-weight: 500; }
.chip.mini.on { background: var(--rose-dark); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg button { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .25s var(--ease); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: none; }

/* Pastilles d'état */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-pale); color: var(--ok); }
.pill.warn { background: var(--warn-pale); color: var(--warn); }
.pill.rose { background: var(--rose-pale); color: var(--rose-deep); }
.pill.blue { background: var(--blue-pale); color: #36696d; }
.pill.dark { background: var(--ink); color: #fff; }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.5; }
.note svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.note.info { background: var(--blue-pale); color: #2f6064; }
.note.warn { background: var(--warn-pale); color: #84501a; }
.note.rose { background: var(--rose-pale); color: var(--rose-deep); }

.empty { text-align: center; padding: 48px 24px 52px; color: var(--ink-2); }
.empty .ico { width: 68px; height: 68px; border-radius: 22px; background: var(--rose-pale); color: var(--rose-dark); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .ico svg { width: 28px; height: 28px; }
.empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 14.5px; max-width: 320px; margin: 0 auto; }
.skel { border-radius: var(--r-md); height: 92px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.3s infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.pop { animation: pop-in .35s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Accueil ---------- */
.hello { padding: 2px 2px 4px; }
.hello p { color: var(--ink-2); font-size: 15px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { --kc: var(--rose-dark); --kb: var(--rose-pale); position: relative; text-align: left; background: var(--surface); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px 16px 15px 18px; display: flex; flex-direction: column; min-height: 142px; overflow: hidden; isolation: isolate; transition: transform .15s, box-shadow .2s; }
.kpi::before { content: ''; position: absolute; z-index: -1; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, var(--kb) 0%, transparent 70%); opacity: 0; transition: opacity .3s; }
.kpi:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.kpi:active { transform: scale(.98); }
.kpi.k-blue { --kc: #4a6f8f; --kb: #e4edf5; }
.kpi.k-warn { --kc: var(--warn); --kb: var(--warn-pale); }
.k-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.k-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.k-ico { color: var(--ink-4); display: grid; }
.k-ico svg { width: 18px; height: 18px; }
.kpi b { margin-top: auto; padding-top: 18px; font-family: var(--sans); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.k-sub { margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.kpi.hot::before { opacity: 1; }
.kpi.hot .k-ico, .kpi.hot b { color: var(--kc); }
.kpi.hot .k-sub { color: var(--ink-2); font-weight: 600; }
.k-pulse { position: absolute; top: 19px; right: 44px; width: 7px; height: 7px; border-radius: 50%; background: var(--kc); }
.k-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--kc); animation: k-pulse 2s ease-out infinite; }
@keyframes k-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3.2); opacity: 0; } }

.hero { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--r-lg); overflow: hidden; background: #2a2220 center / cover no-repeat; color: #fff; min-height: 260px; box-shadow: var(--sh-2); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 19, 18, .05) 20%, rgba(22, 19, 18, .78)); }
.hero-in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 20px; gap: 6px; }
.hero .when { align-self: flex-start; margin-bottom: auto; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
.hero h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.12; }
.hero .meta { font-size: 14px; opacity: .88; }
.hero .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; margin-top: 8px; }
.hero .bar i { display: block; height: 100%; background: #fff; border-radius: 4px; }

/* ---------- Listes ---------- */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 12px 14px 12px 12px; transition: transform .15s; }
.row:active { transform: scale(.985); }
.row .r-main { flex: 1; min-width: 0; }
.row .r-t { font-weight: 700; font-size: 15.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-s { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-x { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row .chev { color: var(--ink-4); width: 18px; height: 18px; flex: 0 0 18px; }
.row.past { opacity: .6; }
.ev-img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; background: var(--rose-pale) center / cover no-repeat; position: relative; }
.ev-date { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; background: var(--rose-pale); color: var(--rose-deep); display: grid; place-content: center; text-align: center; line-height: 1; }
.ev-date b { font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.ev-date span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.gauge { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; max-width: 220px; }
.gauge i { display: block; height: 100%; border-radius: 4px; background: var(--rose); }
.gauge.full i { background: var(--rose-deep); }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--rose-pale); color: var(--rose-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.avatar.ok { background: var(--ok-pale); color: var(--ok); }
.group-t { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 22px 4px 2px; }

/* ---------- Agenda ---------- */
.ev-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 4px 0; }
.ev-stats div { padding: 12px 14px; border-left: 1px solid var(--line); }
.ev-stats div:first-child { border-left: 0; }
.ev-stats b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: lining-nums; }
.ev-stats b small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.ev-stats span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.month { display: flex; align-items: baseline; gap: 12px; margin: 30px 2px 4px !important; }
.month h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; text-transform: capitalize; }
.month span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ev-card { display: flex; flex-direction: column; text-align: left; background: var(--surface); border-radius: 24px; box-shadow: var(--sh-1); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.ev-card:active { transform: scale(.985); }
@media (hover: hover) { .ev-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); } .ev-card:hover .ev-cover { background-size: 108%; } }
.ev-cover { position: relative; aspect-ratio: 16 / 10; background: var(--rose-pale) center / 100% no-repeat; background-size: cover; transition: background-size .8s var(--ease); }
.ev-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 19, 18, .22), transparent 38%); pointer-events: none; }
.ev-cover.empty { background: radial-gradient(120% 120% at 20% 0%, #f3d9d5 0%, #e3b7b1 45%, #c88e88 100%); display: grid; place-items: center; }
.ev-cover.empty::after { display: none; }
.ev-mono { font-family: var(--serif); font-size: 74px; color: rgba(255, 255, 255, .78); line-height: 1; }
.ev-badge { position: absolute; z-index: 1; left: 14px; top: 14px; min-width: 54px; padding: 8px 8px 7px; border-radius: 16px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: center; line-height: 1; box-shadow: none; }
.ev-badge b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ev-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-dark); margin-top: 3px; }
.ev-when { position: absolute; z-index: 1; right: 14px; top: 14px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; }
.ev-body { flex: 1; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.ev-price { font-size: 14px; font-weight: 700; margin-left: auto; }
.ev-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.ev-card p { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card p::first-letter { text-transform: uppercase; }
.ev-fill { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ev-fill .gauge { flex: 1; margin: 0; max-width: none; }
.ev-card.past { opacity: .62; }
.ev-card.past .ev-cover { filter: grayscale(.6); }
.ev-card.featured h3 { font-size: 27px; }
@media (min-width: 720px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ev-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
  .ev-card.featured .ev-cover { aspect-ratio: auto; min-height: 300px; }
  .ev-card.featured .ev-body { padding: 28px; justify-content: center; gap: 10px; }
  .ev-card.featured .ev-fill { margin-top: 8px; }
  .ev-card.featured h3 { font-size: 34px; }
  .ev-card.featured p { white-space: normal; }
}
@media (min-width: 1200px) { .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- Atelier v2 : simple et visuel ---------- */
.back-link { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; margin-left: -4px; }
.back-link svg { width: 14px; height: 14px; }
.seg-wide { display: flex; width: 100%; max-width: 520px; overflow-x: auto; scrollbar-width: none; }
.seg-wide::-webkit-scrollbar { display: none; }
.seg-wide button { flex: 1 0 auto; }
.ev-tabs { max-width: 360px; }
.ev-sub2 { margin-top: 10px; }
.ev-sub2:empty { display: none; }
.rail-sep { flex: 0 0 1px; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line-2); }
.jw-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.jw-card { display: flex; flex-direction: column; text-align: left; background: var(--surface); border-radius: 24px; box-shadow: var(--sh-1); overflow: hidden; transition: transform .25s var(--ease); min-width: 0; }
.jw-card:active { transform: scale(.985); }
@media (hover: hover) { .jw-card:hover { transform: translateY(-3px); } .jw-card:hover .jw-img { background-size: 108%; } }
.jw-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2) center / 100% no-repeat; background-size: cover; transition: background-size .8s var(--ease); }
.jw-img .pill { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .94); }
.jw-img .pill.ok { color: var(--ok); }
.jw-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.jw-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jw-top h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
.jw-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.jw-body p { font-size: 14px; color: var(--ink-2); }
.jw-warn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--warn); }
.jw-warn svg { width: 15px; height: 15px; }
.jw-new { min-height: 140px; border-radius: 24px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; transition: all .2s; }
.jw-new span { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.jw-new span svg { width: 22px; height: 22px; }
.jw-new:hover { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose-deep); }

.jd > * + * { margin-top: 16px; }
.jd-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.jd-stage { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #fdfbfa 0%, #f1ecea 60%, #e8e1de 100%); box-shadow: var(--sh-1); }
.jd-stage .jp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jd-side { display: grid; gap: 12px; align-content: start; }
.jd-live { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 14px 16px; }
.jd-live b { display: block; font-size: 15px; }
.jd-live small { display: block; font-size: 13px; color: var(--ink-3); }
.jd-kpi { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.jd-kpi div { padding: 14px 16px; }
.jd-kpi div + div { border-left: 1px solid var(--line); }
.jd-kpi b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.jd-kpi span { font-size: 12.5px; color: var(--ink-3); }
button.note { width: 100%; text-align: left; font: inherit; }
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-row .hint { flex: 1; min-width: 180px; }
.steps-list { padding: 8px 10px 4px; display: grid; }
.step-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 10px; border-radius: 16px; transition: background .2s; }
.step-row + .step-row { border-top: 1px solid var(--line); border-radius: 0; }
.step-row:hover { background: var(--surface-2); }
.step-row .step-num { flex: 0 0 34px; width: 34px; height: 34px; }
.step-row .step-num svg { width: 16px; height: 16px; }
.step-row.add { color: var(--ink-2); }
.step-row.add .step-num { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); }
.step-row.static { cursor: default; }
.step-row.static:hover { background: transparent; }
.step-row.static .step-num { background: var(--surface-2); color: var(--ink-3); }
.sr-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sr-main b { font-size: 15.5px; }
.sr-opts { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sr-opts em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: 4px; }
.sr-opts em + em { margin-left: 0; }
.sw-dot, .im-dot, .tx-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); background: var(--surface-2) center / cover no-repeat; font-style: normal; }
.im-dot { border-radius: 8px; }
.tx-dot { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tx-dot svg { width: 18px; height: 18px; }
.sw-dot.lg, .im-dot.lg, .tx-dot.lg { width: 46px; height: 46px; font-size: 16px; }
.im-dot.lg { border-radius: 14px; }
.sw-dot.xl, .im-dot.xl, .tx-dot.xl { width: 84px; height: 84px; font-size: 28px; font-family: var(--serif); font-weight: 400; }
.im-dot.xl { border-radius: 22px; }
.disp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.disp button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.disp button svg { width: 20px; height: 20px; }
.disp button.on { background: var(--ink); color: #fff; box-shadow: none; }
.opt-list { display: grid; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 18px; background: var(--surface-2); transition: background .2s; }
.opt-row:active { background: var(--rose-mist); }
.opt-row.off { opacity: .5; }
.opt-row.add { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); }
.or-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.or-main b { font-size: 15px; }
.or-main small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-row .chev, .step-row .chev { width: 18px; height: 18px; color: var(--ink-4); flex: 0 0 18px; }
.opt-hero { display: flex; align-items: center; gap: 18px; padding-bottom: 4px; }
.rule-g { display: grid; gap: 6px; margin-top: 8px; }
.rule-g small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.rail-x.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.ed-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.combos { margin-top: 10px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.combos .combo:first-child { border-top: 0; }
.ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ch-card { display: grid; gap: 2px; text-align: left; padding: 10px 10px 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); transition: transform .2s var(--ease); min-width: 0; }
.ch-card:active { transform: scale(.97); }
.ch-ph { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fdfbfa, #efe9e6); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; color: var(--ink-3); }
/* Charm entier et centré, quelle que soit sa forme */
.ch-ph img { position: absolute; inset: 9% 12%; width: 76%; height: 82%; object-fit: contain; object-position: center; }
.ch-ph svg { width: 24px; height: 24px; }
.ch-card b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-card small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-card.new { box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; color: var(--ink-2); }
.ch-card.new .ch-ph { background: transparent; }
.ch-card.off { opacity: .5; }
.ch-price { color: var(--rose-deep); font-weight: 700; }
.ch-price.miss { color: var(--warn); }
.ch-hero { display: grid; justify-items: center; gap: 12px; }
.ch-stage { width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 40%, #fdfbfa, #efe9e6); display: grid; place-items: center; overflow: hidden; }
.ch-stage img { width: auto; max-width: 86%; object-fit: contain; transition: height .2s; }
@media (min-width: 720px) {
  .jw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .jd-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
  .ch-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (min-width: 1200px) { .jw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .disp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prix par nombre de charmes */
.cnt-list { padding: 6px 20px 0; }
.cnt-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cnt-row .cnt-l { flex: 1; min-width: 0; display: grid; }
.cnt-row .cnt-l b { font-size: 15.5px; }
.cnt-row .cnt-l small { font-size: 12.5px; color: var(--ink-3); }
.cnt-row .euro { width: 132px; flex: 0 0 132px; }
.cnt-row .tx-dot.lg { font-family: var(--serif); font-weight: 400; font-size: 20px; background: var(--rose-pale); color: var(--rose-deep); box-shadow: none; }

/* ---------- Stock ---------- */
.mat-tile b { font-size: 16px; text-transform: none; letter-spacing: 0; }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); }
.search svg { width: 19px; height: 19px; color: var(--ink-3); flex: 0 0 19px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; height: 46px; }
.cost-live { font-size: 14px; color: var(--ink-2); margin-top: -6px; }
.cost-live b { color: var(--rose-deep); }
.stock-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.stock-box.low { background: var(--warn-pale); }
.stock-box small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stock-box b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 6px; }
.stock-box b em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.stock-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mv-list { display: grid; }
.mv { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.mv-d { min-width: 64px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mv-d.in { color: var(--ok); }
.mv-d.out { color: var(--rose-deep); }
.mv-t { display: grid; }
.mv-t small { font-size: 12.5px; color: var(--ink-3); }
.margin-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.margin-card > div { padding: 14px; background: var(--surface-2); }
.margin-card > div + div { border-left: 1px solid var(--line); }
.margin-card small { display: block; font-size: 12px; color: var(--ink-3); }
.margin-card b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.margin-card b em { font-style: normal; font-size: 13px; }
.margin-card .good { background: var(--ok-pale); color: var(--ok); }
.margin-card .mid { background: var(--warn-pale); color: var(--warn); }
.margin-card .low, .margin-card .neg { background: var(--err-pale); color: var(--err); }
.margin-card + .hint { margin-top: 8px; }
.fl-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 70px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.fl-q { position: relative; }
.fl-q small { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-3); pointer-events: none; }
.fl-q .in { padding-right: 34px; }
.fl-c { font-size: 13.5px; font-weight: 600; text-align: right; color: var(--ink-2); }
@media (max-width: 719px) {
  .fl-row { grid-template-columns: minmax(0, 1fr) 34px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
  .fl-row select { grid-column: 1 / 2; }
  .fl-row .fl-q { grid-column: 1 / 2; grid-row: 2; }
  .fl-row .fl-c { grid-column: 2 / 3; grid-row: 2; }
  .margin-card b { font-size: 16px; }
}

.contain { background-size: contain !important; background-color: #f6f1ee !important; background-repeat: no-repeat; background-position: center; }
.ev-img.contain { background-origin: content-box; padding: 6px; }
.ch-id { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.ch-id b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.ch-size { display: flex; align-items: center; gap: 16px; }
.ch-size input { flex: 1; }
.ch-stage.sm { width: 84px; height: 84px; flex: 0 0 84px; max-width: none; border-radius: 18px; }
.stock-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--ok-pale); font-size: 14px; }
.stock-line.low { background: var(--warn-pale); }


/* Fiche matière : photo et stock à gauche, informations à droite */
.ms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ms-side { display: grid; gap: 12px; align-content: start; }
.ms-photo { position: relative; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #fdfbfa, #efe8e4); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; padding: 26px 26px 58px; overflow: hidden; }
.ms-photo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .1)); }
.ms-photo.empty { padding-bottom: 26px; }
.ms-ph-ico { color: var(--ink-4); }
.ms-ph-ico svg { width: 34px; height: 34px; }
.ms-photo-btn { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(255, 255, 255, .92); }
.ms-photo.empty .ms-photo-btn { position: static; transform: none; margin-top: 12px; }
.ms-photo.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ms-stock { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ms-stock.low { background: var(--warn-pale); }
.ms-stock-h { display: flex; align-items: center; justify-content: space-between; }
.ms-stock-h small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ms-acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ms-note { font-size: 13px; }
.ms-main { display: grid; gap: 12px; align-content: start; }
.ms-sec { padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.ms-sec h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-dark); }
.ms-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ms-hint { align-self: center; margin: 0; }
.seg-unit { display: flex; width: 100%; }
.seg-unit button { flex: 1; min-height: 40px; padding: 0 6px; font-size: 13.5px; }
.ms .cost-live { margin-top: 0; padding: 10px 12px; border-radius: 12px; background: var(--rose-mist); }
.ms .cost-live:empty { display: none; }

/* Quantité ajustable : − valeur + */
.qstep { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex: 0 0 auto; }
.qs-b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, transform .1s; }
.qs-b svg { width: 15px; height: 15px; }
.qs-b:hover { background: var(--surface); }
.qs-b:active { transform: scale(.9); background: var(--rose-pale); }
.qs-v { min-width: 46px; text-align: center; line-height: 1.05; }
.qs-v b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qs-v small { display: block; font-size: 10.5px; color: var(--ink-3); }
.qstep.big { width: 100%; justify-content: space-between; padding: 5px; background: var(--surface); }
.qstep.big .qs-b { width: 46px; height: 46px; background: var(--surface-2); }
.qstep.big .qs-v b { font-size: 28px; letter-spacing: -.02em; }
.qstep.big .qs-v small { font-size: 12px; }
.mat-row { padding: 8px 10px 8px 8px; gap: 8px; }
.mat-row:active { transform: none; }
.mr-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 4px; border-radius: 14px; }
.mr-open .r-t, .mr-open .r-s { display: block; }
.mat-row.low .qstep { background: var(--warn-pale); box-shadow: inset 0 0 0 1px rgba(192, 122, 44, .25); }
.low-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }
@media (min-width: 720px) {
  .ms { grid-template-columns: 270px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 400px) { .qs-b { width: 28px; height: 28px; } .qs-v { min-width: 38px; } }

/* Installation dans la base */
.install-db .inst-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 20px 0 10px; }
.install-db .inst-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #d9a19c, var(--rose-dark)); transition: width .3s var(--ease); }

/* ---------- Feuilles (bas d'écran) et dialogues ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(22, 19, 18, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s ease both; }
.scrim.closing { animation: fade-out .22s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: min(92svh, calc(100svh - 24px)); background: var(--surface); border-radius: 30px 30px 0 0; display: flex; flex-direction: column; animation: sheet-up .28s var(--ease) both; box-shadow: none; }
.scrim.closing .sheet { animation: sheet-down .22s ease both; }
.sheet.lg { max-width: 760px; }
.sheet.xl { max-width: 1040px; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
.sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 0; flex: 0 0 auto; }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 22px; flex: 0 0 auto; }
.sheet-h h3 { flex: 1; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; }
.sheet-h .x { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.sheet-h .x svg { width: 16px; height: 16px; }
.sheet-b { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 22px 22px; }
.sheet-f { flex: 0 0 auto; display: flex; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-f .btn { flex: 1; }
.scrim.center { align-items: center; padding: 20px; }
.dialog { width: 100%; max-width: 380px; background: var(--surface); border-radius: 26px; padding: 26px 22px 18px; text-align: center; animation: pop .3s var(--ease) both; box-shadow: var(--sh-2); }
.scrim.closing .dialog { animation: fade-out .18s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.dialog .d-ico { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--rose-pale); color: var(--rose-deep); }
.dialog .d-ico.danger { background: var(--err-pale); color: var(--err); }
.dialog .d-ico svg { width: 24px; height: 24px; }
.dialog h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.dialog p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.dialog .in { margin-top: 16px; text-align: left; }
.dialog .d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

/* Fiche dans une feuille */
.sheet-hero { margin: 0 -22px 18px; height: 200px; background: var(--rose-pale) center / cover no-repeat; position: relative; }
.facts { display: grid; border-radius: var(--r-sm); background: var(--surface-2); padding: 4px 16px; }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--ink-3); }
.actions-list { display: grid; gap: 8px; margin-top: 18px; }
.act-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 600; font-size: 15px; transition: background .2s; }
.act-row:active { background: var(--rose-mist); }
.act-row svg { width: 20px; height: 20px; color: var(--ink-2); }
.act-row.danger, .act-row.danger svg { color: var(--err); }

/* ---------- Notifications in-app ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + var(--tab-h) + 14px); z-index: 120; width: calc(100% - 32px); max-width: 460px; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: none; animation: toast-in .4s var(--ease) both; }
.toast.out { animation: toast-out .25s ease both; }
.toast svg { width: 18px; height: 18px; flex: 0 0 18px; }
.toast.ok svg { color: #9fd7b1; }
.toast.err { background: var(--err); }
.toast span { flex: 1; }
.toast button { color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Tirer pour rafraîchir */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; z-index: 60; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-2); display: grid; place-items: center; color: var(--rose-dark); opacity: 0; transform: translateY(-60px); pointer-events: none; }
.ptr svg { width: 20px; height: 20px; }
.ptr.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Profil ---------- */
.me { display: flex; align-items: center; gap: 18px; padding: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar { overflow: hidden; }
.me .avatar.xl, .avatar.xl { width: 76px; height: 76px; flex-basis: 76px; font-size: 30px; }
.me-av { position: relative; flex: 0 0 76px; width: 76px; height: 76px; cursor: pointer; border-radius: 50%; }
.me-av input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.me-av .cam { position: absolute; right: -1px; bottom: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); pointer-events: none; }
.me-av .cam svg { width: 13px; height: 13px; }
.me-av:hover .avatar { filter: brightness(.96); }
.me-t { min-width: 0; display: grid; gap: 2px; }
.me-t b { font-size: 17px; }
.me-acts { display: flex; gap: 14px; margin-top: 6px; }
.me-acts .link { font-size: 13.5px; cursor: pointer; }
.me-btn { width: 42px; height: 42px; border-radius: 50%; padding: 0; }
.me-btn .avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 16px; }
.me .avatar { width: 58px; height: 58px; flex-basis: 58px; font-size: 24px; }
.me b { display: block; font-size: 17px; }
.set { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 20px; border-top: 1px solid var(--line); font-size: 15px; min-height: 58px; }
.set:first-child { border-top: 0; }
.set .s-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.set .s-ico svg { width: 18px; height: 18px; }
.set .s-t { flex: 1; min-width: 0; }
.set .s-t small { display: block; font-size: 13px; color: var(--ink-3); }
.set .chev { width: 18px; height: 18px; color: var(--ink-4); }
.install { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #e7b9b3 0%, var(--rose-dark) 45%, var(--rose-deep) 100%); box-shadow: none; }
.install h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; }
.install p { font-size: 14.5px; opacity: .92; margin: 6px 0 16px; max-width: 420px; }
.install .btn { background: #fff; color: var(--rose-deep); }
.install::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; background: url('/app/icons/rune.svg') center / contain no-repeat; opacity: .14; }
.steps-ios { display: grid; gap: 10px; margin-top: 4px; font-size: 14.5px; }
.steps-ios div { display: flex; gap: 10px; align-items: center; }
.steps-ios i { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }

/* ---------- Atelier (bijoux sur mesure) ---------- */
.publish-bar { display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-pale); }
.status.dirty i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-pale); }
.type-head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; padding: 18px 20px 20px; }
.thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; background: var(--surface-2) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.thumb.lg { width: 96px; height: 96px; flex-basis: 96px; border-radius: 18px; }
.img-field { display: flex; gap: 10px; align-items: center; }
.img-field .in { flex: 1; min-width: 0; }
.up { position: relative; overflow: hidden; }
.up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.step { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.step + .step { margin-top: 12px; }
.step-h { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 14px 14px 10px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--rose-pale); color: var(--rose-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; }
.step-tools { display: flex; gap: 4px; }
.step-cfg { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 0 14px 12px; }
.step-aide { padding: 0 14px 14px; }
.opt { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px; border-top: 1px solid var(--line); align-items: start; }
.opt.off { opacity: .55; }
.opt .vis { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.opt .vis.sw { border-radius: 50%; }
.opt .vis.ct { display: grid; place-items: center; font-family: var(--serif); font-size: 24px; background: var(--surface-2); }
.opt .col { display: grid; gap: 10px; min-width: 0; }
.opt .o-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.opt .wide { grid-column: 2 / -1; display: grid; gap: 10px; }
.rules { display: grid; gap: 8px; }
.rules .rg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rules .rg > span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.rule-hint { font-size: 12.5px; color: var(--ink-3); }
.sw-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sw-tools input[type=color] { width: 44px; height: 40px; border: 0; padding: 3px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
details.more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+ '; }
details.more[open] summary::before { content: '− '; }
.imgfor { display: grid; gap: 8px; margin-top: 8px; }
.imgfor label { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.add-row { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.add-step { width: 100%; min-height: 56px; margin-top: 12px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); font-weight: 600; transition: all .2s; }
.add-step:hover { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose-deep); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.stats div { background: var(--surface); padding: 16px; }
.stats b { display: block; font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.stats span { font-size: 12.5px; color: var(--ink-3); }
.combo { display: grid; grid-template-columns: 28px 1fr 124px 74px 50px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.combo.off .c-lbl { opacity: .45; }
.combo .c-lbl { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--surface-2); font-size: 13.5px; }
.tag i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.euro { position: relative; display: block; }
.euro::after { content: '€'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; pointer-events: none; }
.euro .in { padding-right: 28px; text-align: right; -moz-appearance: textfield; }
.euro .in::-webkit-outer-spin-button, .euro .in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vstate { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.vstate i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vstate.miss { color: var(--warn); }
.bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.bulk .euro { width: 120px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px; }
.filters .in { width: auto; flex: 1 1 160px; }
input[type=checkbox].ck { width: 20px; height: 20px; accent-color: var(--rose-dark); }

.charms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ch { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.ch .ph { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fdfbfa, #efe9e6); position: relative; display: grid; place-items: center; overflow: hidden; }
.ch .ph img { max-height: 78%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14)); }
.ch .ph .up { position: absolute; right: 10px; bottom: 10px; }
.ch .b { padding: 12px; display: grid; gap: 10px; }
.ch.off .ph { opacity: .45; }
input[type=range] { width: 100%; accent-color: var(--rose-dark); }
.cr { display: grid; gap: 10px; padding: 16px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.cr-top { display: flex; align-items: center; gap: 10px; }
.cr-top b { font-size: 15.5px; }
.cr-top .muted { margin-left: auto; }
.cr-det { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-foot { display: flex; align-items: center; gap: 10px; }
.cr-foot .price { font-weight: 700; font-size: 18px; }
.cr-foot select { margin-left: auto; width: auto; }
pre.code { background: #1d1817; color: #f3e6e3; padding: 16px 18px; border-radius: var(--r-sm); font-size: 12px; line-height: 1.55; overflow: auto; max-height: 320px; white-space: pre; }
ol.howto { padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
ol.howto b { color: var(--ink); }
.var-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.var-row .p { font-weight: 700; font-size: 17px; }
.var-row small { display: block; color: var(--ink-3); font-size: 12px; font-family: var(--sans); }

/* Éditeur de composition */
.cm-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 1fr); gap: 22px; }
.cm-stage { position: relative; aspect-ratio: 1; border-radius: var(--r-md); background: radial-gradient(120% 90% at 50% 35%, #fdfbfa 0%, #f1ecea 60%, #e8e1de 100%); overflow: hidden; cursor: crosshair; touch-action: manipulation; }
.cm-stage .cp { pointer-events: none; }
.cm-pts { position: absolute; inset: 0; }
.cm-pt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--rose-dark); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); cursor: pointer; }
.cm-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cm-side { display: grid; gap: 16px; align-content: start; }
.cp { position: absolute; inset: 0; }
.cp-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cp-ch { position: absolute; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14)); }
.cp-slot { position: absolute; aspect-ratio: 1; transform: translate(-50%, 18%); border-radius: 50%; border: 1px dashed rgba(22, 19, 18, .3); background: rgba(255, 255, 255, .6); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); }

/* Formulaires d'événement */
.form { display: grid; gap: 16px; }
.form .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pick { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--surface-2) center / cover no-repeat; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); overflow: hidden; }
.photo-pick.has { box-shadow: none; }
.photo-pick .pp-in { display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.photo-pick.has .pp-in { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); padding: 8px 14px; border-radius: 999px; grid-auto-flow: column; }
.photo-pick svg { width: 22px; height: 22px; }
.photo-pick.has svg { width: 16px; height: 16px; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 720px) {
  .body { padding: 8px 28px 0; }
  .top { padding-left: 28px; padding-right: 28px; }
  .rail-x { margin: 0 -28px; padding: 2px 28px; scroll-padding-inline: 28px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 300px; }
  .hero-in { min-height: 300px; padding: 28px; }
  .hero h3 { font-size: 32px; }
  .list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scrim { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; max-height: min(88svh, 900px); animation: pop .22s var(--ease) both; }
  .scrim.closing .sheet { animation: fade-out .18s ease both; }
  .sheet-grab { display: none; }
  .sheet-h { padding: 22px 22px 10px 26px; }
  .sheet-b { padding: 6px 26px 24px; }
  .sheet-f { padding: 14px 22px; border-radius: 0 0 28px 28px; }
  .sheet-f .btn { flex: 0 0 auto; }
  .sheet-f { justify-content: flex-end; }
  .sheet-hero { margin: 0 -26px 18px; height: 240px; }
}

.desk-only { display: none !important; }
@media (min-width: 1024px) {
  :root { --tab-h: 0px; --safe-b: 24px; }
  .app { display: grid; grid-template-columns: var(--rail-w) 1fr; }
  .rail {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; padding: 28px 18px 18px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 13px; padding: 0 8px 34px; }
  .brand img { width: 40px; height: 40px; padding: 8px; border-radius: 14px; background: var(--rose-mist); box-shadow: inset 0 0 0 1px var(--line); }
  .brand b { font-family: var(--serif); font-weight: 400; font-size: 17.5px; color: var(--ink); line-height: 1.15; display: block; white-space: nowrap; }
  .brand small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-dark); }
  .rail-nav { display: grid; gap: 4px; }
  .rail-nav::before { content: 'Menu'; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); padding: 0 12px 8px; }
  .rail-nav button { position: relative; display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 0 10px; border-radius: 16px; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background .25s var(--ease), color .2s; }
  .rail-nav .ri { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); transition: all .25s var(--ease); }
  .rail-nav .ri svg { width: 19px; height: 19px; }
  .rail-nav button:hover { background: var(--surface-2); color: var(--ink); }
  .rail-nav button.on { background: var(--ink); color: #fff; box-shadow: none; }
  .rail-nav button.on .ri { background: rgba(255, 255, 255, .1); color: #f0c8c3; }
  .rail-nav .dot { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--rose-pale); color: var(--rose-deep); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 7px; }
  .rail-nav button.on .dot { background: var(--rose); color: #fff; }
  .rail { min-width: 0; overflow: hidden; }
  .rail-foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
  .rail-foot > * { min-width: 0; }
  .rail-shop { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(150deg, var(--rose-mist), var(--rose-pale)); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--rose-deep); }
  .rail-shop svg { width: 18px; height: 18px; margin-left: auto; }
  .rail-me { display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
  .rail-me .icon-btn { flex: 0 0 38px; width: 38px; height: 38px; }
  .rail-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px; border-radius: 14px; transition: background .2s; }
  .rail-user:hover, .rail-user.on { background: var(--surface-2); }
  .rail-user .chev { width: 16px; height: 16px; color: var(--ink-4); flex: 0 0 16px; }
  .rail-user .avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }
  .rail-user .u { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
  .rail-user .u b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-user .u span { color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar { display: none; }
  .screen { padding-bottom: 60px; }
  .screen.has-fab { padding-bottom: 60px; }
  .fab-zone { display: none; }
  .toasts { bottom: 24px; left: calc(50% + var(--rail-w) / 2); }
  .top { padding-top: 28px; padding-bottom: 16px; }
  .top.scrolled { padding-top: 14px; }
  .top h1 { font-size: 36px; }
  .top.scrolled h1 { font-size: 24px; }
  .body { padding: 10px 36px 0; }
  .top { padding-left: 36px; padding-right: 36px; }
  .rail-x { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
  .desk-only { display: inline-flex !important; }
}
@media (max-width: 1023px) { .mob-hide { display: none !important; } }

@media (max-width: 719px) {
  .g2, .g3, .g4, .form .split { grid-template-columns: 1fr; }
  .form .split.keep { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .combo { grid-template-columns: 26px 1fr 50px; row-gap: 10px; }
  .combo .c-price { grid-column: 2 / 3; }
  .combo .c-state { grid-column: 3 / 4; justify-self: end; }
  .combo .c-on { grid-row: 1; grid-column: 3; justify-self: end; }
  .opt { grid-template-columns: 48px 1fr auto; padding: 12px; }
  .opt .vis { width: 48px; height: 48px; }
  .opt .wide { grid-column: 1 / -1; }
  .step-cfg { grid-template-columns: 1fr; }
  .type-head { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
  .thumb.lg { width: 72px; height: 72px; flex-basis: 72px; }
  .cm-wrap { grid-template-columns: 1fr; }
  .charms { grid-template-columns: 1fr 1fr; gap: 10px; }
  .var-row { grid-template-columns: 70px 1fr; padding: 12px 16px; }
  .var-row .vstate { grid-column: 2; }
  .imgfor label { grid-template-columns: 1fr; }
  .top h1 { font-size: 30px; }
}

@media (hover: none) { .icon-btn:hover, .btn.soft:hover { box-shadow: inset 0 0 0 1px var(--line); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 719px) {
  .ms-photo { aspect-ratio: auto; width: 100%; height: 260px; padding: 0; }
  .ms-photo img { position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(100% - 84px); max-width: none; max-height: none; object-fit: contain; }
  .ms-photo.empty { height: auto; padding: 26px; }
  .ms-photo.empty img { position: static; }
}
.ms-photo > .ms-photo-btn { position: absolute; left: 50%; right: auto; top: auto; bottom: 12px; transform: translateX(-50%); margin: 0; }
.ms-photo.empty > .ms-photo-btn { position: static; transform: none; margin-top: 12px; }

/* Stock : saisie directe de la quantité */
button.qs-v { border: 0; background: transparent; padding: 3px 4px; border-radius: 10px; cursor: text; color: inherit; font: inherit; transition: background .15s; }
button.qs-v:hover { background: rgba(0, 0, 0, .05); }
.qstep.editing .qs-v { display: none; }
.qs-in { width: 52px; min-height: 34px; padding: 0 4px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rose); text-align: center; font: inherit; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.qs-in::-webkit-outer-spin-button, .qs-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qstep.big .qs-in { width: 120px; min-height: 46px; font-size: 26px; }

/* Sélecteur avec recherche (catégorie) */
.pick { position: relative; }
.combo-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; color: var(--ink); }
.combo-btn svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-3); transform: rotate(90deg); transition: transform .2s; }
.pick.open .combo-btn { box-shadow: inset 0 0 0 1.5px var(--rose), var(--ring); background: var(--surface); }
.pick.open .combo-btn svg { transform: rotate(-90deg); }
.combo-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(22, 19, 18, .35); padding: 8px; display: grid; gap: 6px; animation: comboIn .16s ease-out; }
.combo-pop[hidden] { display: none; }
@keyframes comboIn { from { opacity: 0; transform: translateY(-4px); } }
.combo-q { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 42px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.combo-q svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.combo-q input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 16px; }
.combo-list { max-height: 264px; overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.combo-o { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.combo-o span { flex: 1; min-width: 0; }
.combo-o small { font-size: 12px; color: var(--ink-3); background: var(--surface-2); padding: 1px 8px; border-radius: 99px; }
.combo-o svg { width: 16px; height: 16px; color: var(--rose-dark); flex: 0 0 auto; }
.combo-o:hover { background: var(--surface-2); }
.combo-o.on { background: var(--rose-pale, #f6ebe9); font-weight: 600; }
.combo-new { color: var(--rose-dark); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 2px; }
.combo-empty { padding: 10px 12px; color: var(--ink-3); font-size: 14px; margin: 0; }

/* Fiche matière : champs pleine largeur sur mobile */
@media (max-width: 719px) {
  .ms-two { grid-template-columns: minmax(0, 1fr); }
  .seg-unit { width: 100%; }
  .seg-unit button { flex: 1; }
}
.combo-new:first-child { border-top: 0; margin-top: 0; border-radius: 10px; }

/* Carte stock simplifiée */
.qs-v small { display: none; }
.qstep .qs-v { min-height: 30px; display: grid; place-items: center; }
.qstep.big .qs-v { min-width: 110px; min-height: 46px; }
.qstep.big .qs-v b { font-size: 30px; }
.ms-tip { margin: -2px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.ms-buy { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; color: var(--ink); font: inherit; transition: box-shadow .2s; }
.ms-buy:hover { box-shadow: inset 0 0 0 1px var(--rose); }
.ms-buy > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ms-buy b { font-size: 14.5px; font-weight: 700; }
.ms-buy small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.ms-buy-i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: 0 0 auto; }
.ms-buy-i svg { width: 16px; height: 16px; }
.ms-buy > svg { width: 16px; height: 16px; color: var(--ink-4); flex: 0 0 auto; }

/* Photo de la fiche : marge garantie autour de l'image, toutes tailles */
.ms-photo:not(.empty) { padding: 0; }
.ms-photo:not(.empty) img { position: absolute; top: 28px; left: 28px; width: calc(100% - 56px); height: calc(100% - 92px); max-width: none; max-height: none; object-fit: contain; }

/* Lignes réglables (seuil, stock de départ, nombre de lots) */
.ms-sub { margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.ms-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.ms-line > span { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.qstep.ns { background: var(--surface-2); }
.ns-in { width: 58px; min-height: 34px; border: 0; border-radius: 10px; background: transparent; text-align: center; font: inherit; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); outline: none; -moz-appearance: textfield; }
.ns-in:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rose); }
.ns-in::-webkit-outer-spin-button, .ns-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border-radius: 20px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.buy-sum:empty { display: none; }
.buy-sum > div { background: var(--surface-2); padding: 14px 16px; display: grid; gap: 3px; }
.buy-sum small { font-size: 12px; color: var(--ink-3); }
.buy-sum b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Prix moyen pondéré dans la carte stock */
.ms-val { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-val > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ms-val small { font-size: 11.5px; color: var(--ink-3); }
.ms-val b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-val em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); }

/* Historique discret */
.mv-box { margin-top: 18px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 14px; }
.mv-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mv-box summary::-webkit-details-marker { display: none; }
.mv-box summary span { font-size: 11px; letter-spacing: 0; padding: 1px 7px; border-radius: 99px; background: var(--surface); color: var(--ink-3); }
.mv-box summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.mv-box:not([open]) summary::after { transform: rotate(-45deg); }
.mv-box .mv-list { display: grid; padding-bottom: 6px; }
.mv-box .mv { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 7px 0; border: 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mv-date { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mv-lab { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-lab i { font-style: normal; color: var(--ink-3); font-size: 12px; }
.mv-lab i::before { content: '· '; }
.mv-q { font-weight: 700; font-variant-numeric: tabular-nums; }
.mv-pos { color: var(--ok); }
.mv-neg { color: var(--rose-deep, #a9665f); }

/* Entrée en stock : bandeau quantité reçue */
.buy-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 22px; border-radius: 22px; background: linear-gradient(135deg, var(--rose-pale), #fbf5f3); box-shadow: inset 0 0 0 1px rgba(204, 139, 134, .28); }
.bh-t { display: grid; gap: 4px; min-width: 0; }
.bh-t small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-dark); }
.bh-t b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.qstep.bh-step { width: auto; flex: 0 0 auto; background: var(--surface); box-shadow: 0 0 0 1px rgba(204, 139, 134, .3); gap: 6px; }
.bh-step .qs-b { background: var(--rose-pale); }
.bh-n { display: flex; align-items: baseline; gap: 4px; line-height: 1; padding-right: 6px; }
.bh-n .ns-in { width: 52px; text-align: right; font-size: 26px; min-height: 32px; padding: 0; }
.bh-n small { font-size: 13px; color: var(--ink-3); min-width: 26px; }
@media (max-width: 420px) { .buy-hero { flex-direction: column; align-items: stretch; text-align: center; } .bh-t { justify-items: center; } .qstep.bh-step { width: 100%; justify-content: space-between; } }
.pmp-purge { margin-left: 8px; border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--rose-dark); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.mv-nil { color: var(--ink-4); }

/* Centre de notifications */
.nt-list { display: grid; gap: 18px; }
.nt-g { display: grid; gap: 6px; }
.nt-h { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nt-h em { font-style: normal; letter-spacing: 0; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); }
.nt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 14px; border: 0; border-radius: 16px; background: var(--surface-2); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background .15s; }
.nt:hover { background: color-mix(in srgb, var(--rose-pale) 60%, var(--surface-2)); }
.nt.new { background: var(--rose-pale); }
.nt.new::before { content: ''; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--rose-dark); }
.nt-i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: var(--surface); color: var(--rose-dark); }
.nt-stock .nt-i { color: var(--warn, #c07a2c); }
.nt-i svg { width: 19px; height: 19px; }
.nt-m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nt-m b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-m small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-at { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.nt .chev { width: 16px; height: 16px; color: var(--ink-4); flex: 0 0 auto; }

/* Pastille discrète sur l'icône d'onglet */
.ti { position: relative; display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; }
.ti svg { display: block; }
.pip { position: absolute; top: -2px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #e3a49e; box-shadow: 0 0 0 2.5px rgb(30, 25, 24); }
.tab.on .pip { background: var(--rose-deep); box-shadow: 0 0 0 2.5px #fbf4f2; }

/* ═══ En-tête façon SAFECO : aéré, sans bandeau plein, voile en dégradé au défilement ═══ */
.top { padding: calc(env(safe-area-inset-top) + 30px) 16px 14px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -44px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 66%, color-mix(in srgb, var(--bg) 78%, transparent) 80%, color-mix(in srgb, var(--bg) 30%, transparent) 92%, transparent 100%); opacity: 0; transition: opacity .25s; }
.top { transition: padding .3s var(--ease), background .25s, box-shadow .25s; }
.top::before { display: none; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 1px 0 var(--line); }
.top.scrolled .bell { background: rgba(255, 255, 255, .75); }
.top.scrolled { padding-top: calc(env(safe-area-inset-top) + 14px); }
.top .eyebrow { font-size: 10.5px; letter-spacing: .18em; }
.top h1 { margin-top: 6px; }
@media (min-width: 1024px) { .top { padding-top: 46px; } .top.scrolled { padding-top: 18px; } }

/* Accueil : marque à gauche, cloche à droite */
.top-band { align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; }
.hb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb-mark { width: 26px; height: 26px; flex: 0 0 auto; background: var(--rose-dark); -webkit-mask: url(/app/icons/rune-mask.svg) center / 125% no-repeat; mask: url(/app/icons/rune-mask.svg) center / 125% no-repeat; }
.hb-t { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.hb-t b { font-size: 14.5px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; color: var(--rose-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t small { margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.bell { position: relative; width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.bell svg { width: 22px; height: 22px; display: block; }
.bell:hover { background: #fff; }
.bell:active { transform: scale(.9); color: var(--rose-dark); }
.bell-n { position: absolute; top: 0; right: 0; transform: translate(28%, -28%); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; line-height: 19px;
  background: linear-gradient(150deg, #d9a19c, var(--rose-dark)); color: #fff; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2.5px var(--bg); }

/* Salutation + avatar, comme le titre des autres pages */
.hello { display: flex; align-items: center; gap: 14px; }
.hello > div { flex: 1; min-width: 0; }
.hello h2 { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; }
.hello .me-btn { width: 46px; height: 46px; }
.hello .me-btn .avatar { width: 46px; height: 46px; flex-basis: 46px; }

/* Notifications : liste sobre dans la feuille */
.nl-sub { margin: -6px 0 6px; font-size: 13px; color: var(--ink-3); }
.nl { list-style: none; margin: 0; padding: 0; }
.nl li + li .nl-row { border-top: 1px solid var(--line); }
.nl-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.nl-row:active { opacity: .6; }
.nl-row.is-read { opacity: .55; }
.nl-ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.nl-ic svg { width: 16px; height: 16px; display: block; }
.nl-ic.is-warn { color: var(--warn); background: var(--warn-pale); }
.nl-ic.is-blue { color: #4a6f8f; background: #e9f0f6; }
.nl-ic.is-rose { color: var(--rose-dark); background: var(--rose-pale); }
.nl-ic.is-ok { color: var(--ok); background: #e9f2ec; }
.nl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nl-txt strong { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-txt > span { font-size: 13px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-txt small { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.nl-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--rose-dark); }
.nl-chev { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink-4); }
.nl-hint { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.nl-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 0 18px; text-align: center; }
.nl-empty span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e9f2ec; color: var(--ok); }
.nl-empty span svg { width: 24px; height: 24px; }
.nl-empty b { font-size: 15.5px; }
.nl-empty p { font-size: 13px; color: var(--ink-3); }

/* Ordinateur : menu latéral flottant et tiroir à droite pour les notifications */
@media (min-width: 1024px) {
  .app { grid-template-columns: calc(var(--rail-w) + 14px) 1fr; }
  .rail { top: 14px; height: calc(100svh - 28px); margin: 14px 0 14px 14px; border-right: 0; border-radius: 26px; box-shadow: inset 0 0 0 1px var(--line); padding: 26px 16px 16px; }
}
/* Tablette et ordinateur : tiroir à droite, pleine hauteur */
@media (min-width: 720px) {
  .scrim.side { justify-content: flex-end; align-items: stretch; padding: 14px; }
  .scrim.side .sheet { max-width: 420px; max-height: none; height: 100%; border-radius: 26px; animation: side-in .36s var(--ease) both; }
  .scrim.side.closing .sheet { animation: side-out .22s ease both; }
  .scrim.side .sheet-grab { display: none; }
  .scrim.side .sheet-h { padding-top: 26px; }
}
@keyframes side-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes side-out { to { transform: translateX(40px); opacity: 0; } }

/* En-tête : mêmes marges latérales que le corps à chaque taille d'écran */
@media (min-width: 720px) { .top { padding-left: 28px; padding-right: 28px; } }
@media (min-width: 1024px) { .top { padding-left: 36px; padding-right: 36px; } }

/* Stock : 4 chiffres clés (2 × 2 sur téléphone) */
.ev-stats.st-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 719px) {
  .ev-stats.st-stats { grid-template-columns: 1fr 1fr; }
  .ev-stats.st-stats div:nth-child(3) { border-left: 0; }
  .ev-stats.st-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Agenda sur téléphone : un carrousel horizontal par mois, cartes moins larges */
@media (max-width: 719px) {
  .ev-grid.ev-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-left: -16px; margin-right: -16px; padding: 2px 16px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .ev-grid.ev-rail::-webkit-scrollbar { display: none; }
  .ev-grid.ev-rail > * { flex: 0 0 78%; scroll-snap-align: start; }
  .ev-grid.ev-rail > :only-child { flex-basis: 100%; }
  .ev-grid.ev-rail .ev-card h3 { font-size: 19px; }
}

/* Inscriptions en attente de validation sur les cartes d'événement */
.hero-pend { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--warn); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.hero-pend i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev-pend { margin-left: 8px; flex: 0 0 auto; }

/* Compteurs du menu latéral : chiffre centré verticalement (les chiffres de l'Assistant portent bas) */
@media (min-width: 1024px) {
  .rail-nav .dot { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0 7px 1px; font-variant-numeric: lining-nums tabular-nums; }
}

/* Barre de filtres : onglets texte soulignés + sélecteur d'événement */
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.ftabs { display: flex; gap: 22px; box-shadow: inset 0 -1px 0 var(--line); }
.ftabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0 11px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color .2s; }
.ftabs button:hover { color: var(--ink-2); }
.ftabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--rose-dark); transform: scaleX(0); transition: transform .3s var(--ease); }
.ftabs button.on { color: var(--ink); }
.ftabs button.on::after { transform: scaleX(1); }
.ftabs em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ftabs button.on em { background: var(--ink); color: #fff; }
.ftabs em.hot { background: var(--warn-pale); color: var(--warn); }
.ftabs button.on em.hot { background: var(--warn); color: #fff; }
.fpick { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 38px; padding: 0 12px 0 13px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: box-shadow .2s; }
.fpick:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.fpick > svg:first-child { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.fpick > svg:last-child { width: 14px; height: 14px; color: var(--ink-4); transform: rotate(90deg); flex: 0 0 auto; }
.fpick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpick.on { background: var(--rose-pale); box-shadow: inset 0 0 0 1px rgba(204, 139, 134, .45); color: var(--rose-deep); }
.fpick.on > svg:first-child { color: var(--rose-dark); }
.pick-n { font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--surface-2); min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; }
.pick-ok { color: var(--rose-dark); display: grid; }
.pick-ok svg { width: 18px; height: 18px; }
.pick-row.on strong { color: var(--rose-deep); }
@media (max-width: 719px) { .fbar { align-items: stretch; flex-direction: column; } .ftabs { gap: 20px; } .fpick { align-self: flex-start; } }

/* Centrage vertical des pictos dans les boutons et pastilles */
.btn svg, .icon-btn svg, .chip svg, .link svg, .set svg, .fab svg { display: block; }
.photo-pick.has .pp-in { align-items: center; line-height: 1; gap: 7px; padding: 9px 15px 9px 13px; }
.photo-pick.has .pp-in svg { width: 16px; height: 16px; display: block; }
.photo-pick.has .pp-in span { padding-top: 1px; white-space: nowrap; }

/* Profil : recherche de mise à jour */
.set-cta { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--rose-dark); padding: 6px 12px; border-radius: 99px; background: var(--rose-pale); }
.set.busy .s-ico svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Événements hors ligne */
.ev-when.ev-when-off { background: rgba(22, 19, 18, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ev-card.off .ev-cover { filter: grayscale(.85) brightness(.96); }
.ev-card.off .ev-body h3 { color: var(--ink-2); }
.sw-row.ev-pub { align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.sw-row.ev-pub > span:last-child { display: grid; gap: 2px; }
.sw-row.ev-pub b { font-size: 14.5px; font-weight: 700; }
.sw-row.ev-pub small { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; font-weight: 400; }

/* Champ « Date et horaires » */
.when-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: box-shadow .2s, background .2s; }
.when-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.when-btn.err { box-shadow: inset 0 0 0 1.5px var(--err); }
.wb-ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--rose-pale); color: var(--rose-dark); }
.wb-ico svg { width: 20px; height: 20px; display: block; }
.wb-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wb-t b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-t small { font-size: 13px; color: var(--ink-3); }
.when-btn.empty .wb-t b { color: var(--ink-3); font-weight: 600; }
.when-btn > svg { width: 16px; height: 16px; color: var(--ink-4); flex: 0 0 auto; display: block; }

/* Feuille du sélecteur */
.when-recap { display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--rose-pale); }
.when-recap b { font-size: 15.5px; font-weight: 700; color: var(--rose-deep); }
.when-recap span { font-size: 13px; color: var(--ink-2); }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.cal-h .icon-btn svg { width: 18px; height: 18px; }
.cal-next svg { transform: rotate(180deg); }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-w span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-4); padding: 4px 0 6px; }
.cal-g { row-gap: 4px; }
.cd { position: relative; height: 42px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; isolation: isolate; }
.cd::before { content: ''; position: absolute; z-index: -1; inset: 2px; margin: 0 auto; width: 38px; border-radius: 50%; transition: background .15s; }
.cd:hover::before { background: var(--surface-2); }
.cd.today { color: var(--rose-dark); }
.cd.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cd.in { background: var(--rose-pale); }
.cd.range.start { background: linear-gradient(90deg, transparent 50%, var(--rose-pale) 50%); }
.cd.sel.end { background: linear-gradient(90deg, var(--rose-pale) 50%, transparent 50%); }
.cd.sel { color: #fff; }
.cd.sel::before { background: var(--ink); }
.cd.sel.today::after { background: #fff; }
.tm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tm-cols small { display: block; margin: 0 2px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tm-list { position: relative; max-height: 210px; overflow-y: auto; display: grid; gap: 4px; padding: 6px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; scrollbar-width: thin; }
.tm { min-height: 38px; border: 0; border-radius: 11px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.tm:hover:not(:disabled) { background: var(--surface); }
.tm.on { background: var(--ink); color: #fff; }
.tm:disabled { color: var(--ink-4); opacity: .45; cursor: default; }

/* Lieu : adresse (suggestions) ou lieu libre */
.place .place-seg { margin-bottom: 4px; }
.place[data-mode="addr"] .place-free, .place[data-mode="free"] .place-addr { display: none; }
.place-free { gap: 10px; }
.place-q { min-height: 48px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 14px; }
.place-q:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rose), var(--ring); }
.place-q svg { color: var(--rose-dark); }
.place-hint { margin: 8px 2px 0; }
.combo-o .pl-city { display: block; margin-top: 1px; padding: 0; background: none; font-size: 12.5px; color: var(--ink-3); }

/* Éditeur d'événement : tarif et mode de paiement */
.tarif .tarif-paid { display: none; margin-top: 6px; gap: 14px; }
.tarif[data-paid="1"] .tarif-paid { display: grid; }
.tarif .pay-shopify, .tarif .pay-link { display: none; }
.tarif[data-mode="shopify"] .pay-shopify, .tarif[data-mode="link"] .pay-link { display: grid; }
.pay-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-o { display: grid; gap: 3px; align-content: start; padding: 12px 13px; border: 0; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .2s, background .2s; }
.pay-o b { font-size: 14px; font-weight: 700; }
.pay-o small { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.pay-o:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.pay-o.on { background: var(--rose-pale); box-shadow: inset 0 0 0 1.5px var(--rose-dark); }
.pay-o.on b { color: var(--rose-deep); }
@media (max-width: 520px) { .pay-opts { grid-template-columns: 1fr; } .pay-o { grid-template-columns: auto; } }

/* Éditeur d'événement : nombre de places en face de la date */
.when-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; align-items: start; }
.places-f .in { min-height: 66px; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px; }
.places-f small { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: -2px; }
.when-row .when-btn { min-height: 66px; }
@media (max-width: 380px) { .when-row { grid-template-columns: minmax(0, 1fr) 92px; } }

/* Éditeur d'événement : catégories aux couleurs de leurs pastilles */
.chip.cat-rose.on { background: var(--rose-dark); color: #fff; }
.chip.cat-blue.on { background: #5f9397; color: #fff; }
.chip.cat-warn.on { background: var(--warn); color: #fff; }
.chip.cat-rose:not(.on):hover { box-shadow: inset 0 0 0 1px var(--rose); }
.chip.cat-blue:not(.on):hover { box-shadow: inset 0 0 0 1px #8fbcc0; }
.chip.cat-warn:not(.on):hover { box-shadow: inset 0 0 0 1px var(--warn); }

/* Date et horaires / Places : même hauteur */
.when-row .when-btn, .places-f .in { height: 68px; min-height: 68px; box-sizing: border-box; }
.when-row .when-btn { padding-top: 0; padding-bottom: 0; }

/* Clients */
.cl-opt { display: inline-flex; align-items: center; gap: 5px; }
.cl-opt svg { width: 13px; height: 13px; display: block; }
.cl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.cl-head .avatar.xl { width: 64px; height: 64px; flex: 0 0 64px; font-size: 22px; }
.cl-head > div:last-child { display: grid; gap: 4px; min-width: 0; }
.cl-head .link { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.cl-tel { color: var(--ink-2); text-decoration: none; }
.cl-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sw-row.cl-consent { align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.sw-row.cl-consent > span:last-child { display: grid; gap: 2px; }
.sw-row.cl-consent b { font-size: 14.5px; font-weight: 700; }
.sw-row.cl-consent small { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

/* Clients : tableau pleine largeur */
.fpicks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-reset { font-size: 13px; }
.ct-wrap { background: var(--surface); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ct { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct th { text-align: left; padding: 13px 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.ct th.sort { cursor: pointer; }
.ct th.sort:hover, .ct th.on { color: var(--ink); }
.ct th i { font-style: normal; margin-left: 5px; opacity: .45; }
.ct th.on i { opacity: 1; color: var(--rose-dark); }
.ct td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct tbody tr { cursor: pointer; transition: background .15s; }
.ct tbody tr:hover { background: color-mix(in srgb, var(--rose-pale) 45%, transparent); }
.ct tbody tr:last-child td { border-bottom: 0; }
.ct-name { min-width: 180px; }
td.ct-name { display: flex; align-items: center; gap: 12px; }
td.ct-name .avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 13px; }
td.ct-name b { display: block; font-weight: 700; white-space: nowrap; }
td.ct-name .ct-m { display: none; }
.ct-mail { color: var(--ink-2); word-break: break-all; }
.ct-tel, .ct-last { white-space: nowrap; color: var(--ink-2); }
.ct-n { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
th.ct-n { text-align: center; }
.ct-nil { color: var(--ink-4); font-weight: 400; }
td.ct-act { text-align: right; white-space: nowrap; }
.ct-b { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 2px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; vertical-align: middle; transition: background .15s, color .15s; text-decoration: none; }
.ct-b svg { width: 17px; height: 17px; display: block; }
.ct-b:hover { background: var(--surface-2); color: var(--ink); }
.ct-b.danger:hover { background: var(--err-pale); color: var(--err); }
.ct-b.off { opacity: .25; cursor: default; }
.ct-b.off:hover { background: none; color: var(--ink-3); }
.ct-count { margin: 10px 4px 0; font-size: 12.5px; color: var(--ink-3); }
/* Téléphone et tablette : chaque ligne devient une carte */
@media (max-width: 899px) {
  .ct thead { display: none; }
  .ct, .ct tbody, .ct tr { display: block; }
  .ct-wrap { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .ct tbody { display: grid; gap: 10px; }
  .ct tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .ct td { padding: 0; border: 0; }
  .ct-mail, .ct-tel, .ct-n, .ct-last { display: none; }
  td.ct-name { grid-column: 1; min-width: 0; }
  td.ct-name > span:last-child { min-width: 0; }
  td.ct-name b { overflow: hidden; text-overflow: ellipsis; }
  td.ct-name .ct-m { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  td.ct-opt { grid-column: 2; grid-row: 1; text-align: right; }
  td.ct-opt .ct-nil { display: none; }
  td.ct-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 2px; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
}
.fpicks .fpick { max-width: 220px; }

/* Feuille « Menu » (mobile) */
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-tile { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border: 0; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background .2s, transform .15s; }
.mm-tile:active { transform: scale(.98); }
.mm-tile.on { background: var(--rose-pale); box-shadow: inset 0 0 0 1.5px var(--rose-dark); }
.mm-ico { width: 42px; height: 42px; margin-bottom: 8px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--rose-dark); }
.mm-ico svg { width: 21px; height: 21px; display: block; }
.mm-tile b { font-size: 16px; font-weight: 700; }
.mm-tile small { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.mm-n { position: absolute; top: 14px; right: 14px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--rose-dark); color: #fff; font-size: 11.5px; font-weight: 700; }
.mm-links { margin-top: 16px; }
a.act-row { text-decoration: none; }

/* Pastille « à valider » dans un sélecteur à onglets */
.seg button .seg-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px 1px; border-radius: 99px; background: var(--rose-dark); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.me-edit { margin-left: 6px; font-size: 12.5px; font-weight: 600; vertical-align: 2px; }

/* Profil : préférences des notifications push */
.push-prefs { border-top: 1px solid var(--line); padding: 4px 0 2px; background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.push-prefs-h { padding: 12px 18px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.set.sw-set { cursor: pointer; }
.set.sw-set .switch { margin-left: auto; flex: 0 0 auto; }

/* Stock : sortie rapide (atelier) */
.qout { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.qout .qs-v { min-width: 34px; text-align: right; }
.qout .qs-v b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qo-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--rose-pale); color: var(--rose-deep); cursor: pointer; transition: transform .12s, background .15s; }
.qo-b svg { width: 18px; height: 18px; display: block; }
.qo-b:hover { background: color-mix(in srgb, var(--rose-pale) 70%, var(--rose)); }
.qo-b:active { transform: scale(.9); }
.mat-row.low .qo-b { background: var(--warn-pale); color: var(--warn); }
.qout.big { width: 100%; justify-content: space-between; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.qout.big .qs-v { text-align: left; }
.qout.big .qs-v b { font-size: 30px; letter-spacing: -.02em; }
.qout.big .qo-b { width: auto; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 700; }
.ms-inv .ms-buy-i { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Inventaire */
.cnt-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.cnt-head .ev-img, .cnt-head .mat-tile { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; }
.cnt-head b { display: block; font-size: 15px; }
.cnt-head small { font-size: 12.5px; color: var(--ink-3); }
.cnt-gap { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.cnt-gap .neg, .inv-row .neg { color: var(--err); font-weight: 700; font-style: normal; }
.cnt-gap .pos, .inv-row .pos { color: var(--ok); font-weight: 700; font-style: normal; }
.inv-list { margin-top: 12px; display: grid; gap: 2px; }
.inv-g { padding: 14px 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.inv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background .15s; }
.inv-row.diff { background: color-mix(in srgb, var(--rose-pale) 60%, transparent); }
.inv-n { min-width: 0; display: grid; gap: 1px; }
.inv-n b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-n small { font-size: 12px; color: var(--ink-3); }
.inv-in { width: 92px; flex: 0 0 92px; text-align: center; font-weight: 700; }
.seg-unit.locked button { cursor: not-allowed; }
.seg-unit.locked button:not(.on) { opacity: .45; }
.unit-lock { margin-top: 6px; font-size: 12px; }

/* Rubrique « bientôt disponible » */
.soon-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: linear-gradient(150deg, #f3d9d5, #e9c3be); color: var(--rose-deep); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; line-height: 1.5; }
.rail-nav button.on .soon-pill { background: rgba(255, 255, 255, .16); color: #f0c8c3; }
.soon-band { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, #fbf1ef, #f6e6e3); box-shadow: inset 0 0 0 1px rgba(204, 139, 134, .28); }
.soon-ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--rose-dark); }
.soon-ico svg { width: 19px; height: 19px; display: block; }
.soon-band b { display: block; font-size: 14.5px; color: var(--rose-deep); }
.soon-band small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* Réactivité : pas de délai ni de surbrillance au toucher, retour visuel immédiat */
button, a, label, [data-act], [data-tab] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* Action en cours d'enregistrement : bouton bloqué avec un petit indicateur */
.is-busy { pointer-events: none; opacity: .62; position: relative; }
.btn.is-busy, .fab.is-busy, .act-row.is-busy, .set.is-busy, .ms-buy.is-busy { color: transparent !important; }
.btn.is-busy::after, .fab.is-busy::after, .act-row.is-busy::after, .set.is-busy::after, .ms-buy.is-busy::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid var(--ink-3); border-top-color: transparent; animation: spin .7s linear infinite;
}
.btn.dark.is-busy::after, .fab.is-busy::after { border-color: #fff; border-top-color: transparent; }
.btn.is-busy svg, .fab.is-busy svg, .act-row.is-busy svg, .set.is-busy svg, .ms-buy.is-busy svg, .ms-buy.is-busy .ms-buy-i { visibility: hidden; }

/* Balayage vers la gauche pour supprimer */
.swipe { position: relative; border-radius: var(--r-md); overflow: hidden; isolation: isolate; }
.sw-back { position: absolute; inset: 0; display: flex; justify-content: flex-end; background: var(--err); border-radius: inherit; }
.sw-del { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 92px; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sw-del svg { width: 20px; height: 20px; display: block; }
.sw-front { position: relative; z-index: 1; touch-action: pan-y; transition: transform .28s var(--ease); will-change: transform; }
.sw-front.dragging { transition: none; }
.sw-front > .row { border-radius: inherit; }
.swipe .sw-front > .row { border-radius: var(--r-md); }
.swipe .sw-back { opacity: 0; transition: opacity .15s; }
.swipe.open .sw-back, .swipe:has(.sw-front.dragging) .sw-back { opacity: 1; }

/* Affiche jointe à un événement */
.aff-add { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); cursor: pointer; transition: background .2s; }
.aff-add:hover { background: var(--surface-2); }
.aff-add > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--rose-dark, #b07470); }
.aff-add b { display: block; font-size: 14px; color: var(--ink); }
.aff-add small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.aff-file { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.aff-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #fff; color: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.aff-ic.pdf { color: #c0504a; }
.aff-ic svg { width: 18px; height: 18px; }
.aff-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.aff-name:hover { text-decoration: underline; }
.aff-file .btn { flex: 0 0 auto; }
.aff-file .btn svg { width: 16px; height: 16px; }
#evAff { min-width: 0; max-width: 100%; }
.aff-file, .aff-add { width: 100%; box-sizing: border-box; min-width: 0; }
.aff-file .btn.sm { padding-left: 12px; padding-right: 12px; }

.aff-ic.th { background: #fff center / cover no-repeat; }
.aff-view { margin-top: 18px; }
.aff-view-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.aff-view-h span { font-size: 13px; font-weight: 700; color: var(--ink); }
.aff-view-h small { font-size: 12px; color: var(--ink-3); }
.aff-view a.aff-file { text-decoration: none; color: var(--ink); }
.aff-view a.aff-file > svg { width: 18px; height: 18px; color: var(--ink-3); flex: 0 0 auto; margin-right: 4px; }
.aff-img { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; cursor: zoom-in; }
.aff-img img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.img-zoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(60px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: img-zoom-in .2s ease both; cursor: zoom-out; }
.img-zoom.out { animation: img-zoom-out .2s ease both; }
.img-zoom img { width: auto; height: auto; max-width: min(100%, 960px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; box-shadow: 0 24px 60px -24px rgba(46, 36, 34, .35); }
.img-zoom-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.img-zoom-x svg { width: 18px; height: 18px; }
@keyframes img-zoom-in { from { opacity: 0; } }
@keyframes img-zoom-out { to { opacity: 0; } }

/* Filtres des charms (Atelier) */
.ch-filters { margin-bottom: 14px; }
.chip .chip-n { margin-left: 2px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); font-size: 11.5px; font-weight: 700; }
.chip.on .chip-n { background: rgba(255, 255, 255, .18); color: #fff; }
.ch-out { color: var(--danger, #c0504a); font-weight: 700; }
.ch-search { margin-bottom: 4px; }
.combo-v.ph { color: var(--ink-3); font-weight: 400; }
.combo-none span { color: var(--ink-3); }

/* Stock : filtre fournisseur et chiffres filtrés */
.chip-pick { gap: 6px; }
.chip-pick > svg { width: 14px; height: 14px; }
.chip-pick .chev-d { width: 12px; height: 12px; transform: rotate(90deg); opacity: .6; }
.st-stats.filtered { box-shadow: inset 0 0 0 1.5px var(--rose-soft, #ecc9c5), var(--sh-1); }
.filt-note { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--rose-pale); animation: comboIn .2s ease-out; }
.fn-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 12px; background: var(--surface); color: var(--rose-dark); box-shadow: var(--sh-1); }
.fn-ic svg { width: 16px; height: 16px; }
.fn-t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.fn-t small { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rose-deep); }
.fn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fn-tags em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface); padding: 3px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.fn-x { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 8px 12px; border: 0; border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--sh-1); }
.fn-x svg { width: 14px; height: 14px; }
.fn-x:active { transform: scale(.96); }
.ch-edit { margin: 6px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.ch-edit .link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.ch-edit .link svg { width: 14px; height: 14px; }

/* Finitions : pastille de couleur */
.fin-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fin-dot.lg { width: 18px; height: 18px; margin: 0; }
.fin-dot.multi { background: conic-gradient(#d4af37, #c3c6cc, #e58fb0, #2e8b57, #2f5fb3, #d4af37); }
.nl-ic.fin-ic { background: var(--surface-2); }
.combo-dot:empty { display: none; }
.combo-btn .combo-dot { display: inline-flex; margin-right: -2px; }
.combo-o .fin-dot { margin-right: 2px; }
.ms-pair { gap: 12px; }
.fin-edit { display: grid; gap: 8px; margin-top: 12px; }
.fin-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.fin-row small { color: var(--ink-3); font-size: 12px; }
.fin-sw { position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff; overflow: hidden; }
.fin-sw input { position: absolute; inset: -8px; width: 46px; height: 46px; opacity: 0; cursor: pointer; }
.ch-card b .fin-dot { margin-right: 5px; }
.combo-btn .combo-v { flex: 1; min-width: 0; }
.combo-pop.to-right { left: auto; right: 0; }
.combo-pop { max-width: min(320px, calc(100vw - 32px)); }

/* ---------- Atelier : fiche bijou en parcours d'étapes ---------- */
.jd2 > * + * { margin-top: 14px; }
.pub-band { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 20px; background: linear-gradient(120deg, var(--rose-pale), #fbf3ef); box-shadow: inset 0 0 0 1px rgba(204, 139, 134, .25); }
.pub-band .pb-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 14px; background: var(--surface); color: var(--rose-dark); box-shadow: var(--sh-1); }
.pub-band .pb-ic svg { width: 18px; height: 18px; }
.pub-band > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pub-band b { font-size: 14.5px; }
.pub-band small { font-size: 12.5px; color: var(--ink-2); }
.jd2 .jd-stage { position: relative; }
.jd-eye { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: var(--sh-1); }
.jd-eye svg { width: 15px; height: 15px; }
.jd-name { padding: 16px; display: grid; gap: 12px; }
.jd-photo { display: flex; align-items: center; gap: 12px; }
.jd-photo small { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.jd-sec { display: grid; gap: 2px; padding: 14px 4px 2px; }
.jd-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.jd-sec span { font-size: 13px; color: var(--ink-3); }

.stc { background: var(--surface); border-radius: 24px; box-shadow: var(--sh-1); padding: 14px 16px 16px; display: grid; gap: 12px; }
.stc-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stc-n { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 15px; }
.stc-name { flex: 1; min-width: 60px; border: 0; background: transparent; font-family: var(--serif); font-size: 21px; color: var(--ink); padding: 6px 8px; margin-left: -4px; border-radius: 10px; outline: none; transition: background .2s, box-shadow .2s; }
.stc-name:hover { background: var(--surface-2); }
.stc-name:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rose); }
.stc-title { flex: 1; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.stc-meta { font-size: 12.5px; color: var(--ink-3); }
.stc-kind { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 10px 7px 11px; border-radius: 99px; background: var(--rose-pale); color: var(--rose-deep); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .15s; }
.stc-kind svg { width: 14px; height: 14px; }
.stc-kind .chev-d { width: 11px; height: 11px; transform: rotate(90deg); opacity: .6; }
.stc-kind:active { transform: scale(.96); }
.stc-tools { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.stc-tools .ib { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); transition: background .2s, color .2s; }
.stc-tools .ib svg { width: 15px; height: 15px; }
.stc-tools .ib:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.stc-tools .ib.danger:hover { color: var(--danger, #c0504a); }
.stc-tools .ib:disabled { opacity: .3; }
.stc-aide { width: 100%; border: 0; border-radius: 12px; background: var(--surface-2); padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); outline: none; }
.stc-aide:focus { box-shadow: inset 0 0 0 1.5px var(--rose); background: var(--surface); }
.stc-hint { font-size: 12.5px; color: var(--ink-3); margin-top: -2px; }
.stc-fixed { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.stc-fixed .stc-n { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Vignettes de choix */
.ot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ot-grid.k-text { display: flex; flex-wrap: wrap; gap: 8px; }
.ot { position: relative; display: grid; gap: 6px; align-content: start; }
.ot-main { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; cursor: pointer; transition: box-shadow .2s, transform .2s, background .2s; min-width: 0; width: 100%; }
.ot-main:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.ot-main:active { transform: scale(.97); }
.ot.off .ot-main > i, .ot.off .ot-l { opacity: .4; }
.ot-sw { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 3px var(--surface); }
.ot-im { width: 64px; height: 64px; border-radius: 14px; background: var(--surface) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.ot-im svg { width: 20px; height: 20px; }
.ot-nb { font-style: normal; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--ink); padding-top: 2px; }
.ot-tx { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink); }
.ot-l { font-size: 12.5px; font-weight: 600; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--rose-deep); background: var(--rose-pale); padding: 2px 7px; border-radius: 99px; }
.ot-cp { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--rose-dark); box-shadow: var(--sh-1); }
.ot-cp svg { width: 11px; height: 11px; }
.ot-grid.k-text .ot-main { padding: 10px 16px; border-radius: 99px; }
.ot-price .euro { width: 100%; }
.ot-price .in { width: 100%; text-align: center; font-weight: 700; }
.ot.add { place-items: center; align-content: center; min-height: 100px; padding: 10px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; gap: 6px; transition: all .2s; }
.ot.add span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ot.add span svg { width: 16px; height: 16px; }
.ot.add:hover { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose-deep); }
.ot-grid.k-text .ot.add { min-height: 0; padding: 8px 14px 8px 8px; border-radius: 99px; display: inline-flex; flex-direction: row; }
.ot-grid.k-text .ot.add span { width: 26px; height: 26px; }

.stc-add { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 24px; box-shadow: inset 0 0 0 1.5px var(--line-2); text-align: left; color: var(--ink-2); transition: all .2s; }
.stc-add > span:first-child { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stc-add > span:first-child svg { width: 18px; height: 18px; }
.stc-add b { display: block; font-size: 15px; color: var(--ink); }
.stc-add small { display: block; font-size: 12.5px; color: var(--ink-3); }
.stc-add:hover { box-shadow: inset 0 0 0 1.5px var(--rose); }

/* Choix du type d'étape */
.kind-list { display: grid; gap: 10px; margin-top: 12px; }
.kind-c { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: all .2s; }
.kind-c:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.kind-c.on { box-shadow: inset 0 0 0 1.5px var(--rose); background: var(--surface); }
.kind-c:disabled { opacity: .45; }
.kind-c .kc-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--rose-pale); color: var(--rose-deep); }
.kind-c .kc-ic svg { width: 19px; height: 19px; }
.kind-c > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.kind-c b { font-size: 15px; }
.kind-c small { font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 900px) {
  .jd2 .jd-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ot-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 520px) {
  .stc-h { flex-wrap: wrap; }
  .stc-name { order: 1; flex-basis: calc(100% - 42px); }
  .stc-n { order: 0; }
  .stc-kind { order: 2; }
  .stc-tools { order: 3; margin-left: auto; }
}
.ot-if { display: block; font-size: 11.5px; color: var(--rose-deep); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.ot-if.off { color: var(--ink-3); }
.ot-grid.k-text .ot { flex: 0 0 auto; max-width: 100%; }
.ot-grid.k-text .ot-main { width: auto; display: inline-flex; align-items: center; gap: 8px; }
.ot-tx { white-space: nowrap; }
.ot-grid.k-text .ot-cp { position: static; width: 18px; height: 18px; box-shadow: none; background: var(--rose-pale); }
.ot-grid.k-text .ot-if { text-align: left; padding-left: 14px; }

/* Bijou vierge (composition) dans la fiche d'un choix */
.cpb { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cpb.set { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rose); }
.cpb-prev { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fdfbfa, #efe9e6); color: var(--ink-3); overflow: hidden; }
.cpb-prev img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cpb-prev svg { width: 20px; height: 20px; }
.cpb-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cpb-t b { font-size: 14.5px; }
.cpb-t small { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.cpb .btn { flex: 0 0 auto; gap: 6px; }
.cpb .btn svg { width: 14px; height: 14px; }
/* Bouton « Ajouter » des étapes texte : même hauteur que les choix, discret */
.ot-grid.k-text { align-items: flex-start; }
.ot-grid.k-text .ot.add { align-self: flex-start; min-height: 0; height: 40px; padding: 0 16px 0 12px; gap: 6px; border-radius: 99px; box-shadow: none; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.ot-grid.k-text .ot.add span { width: auto; height: auto; background: none; box-shadow: none; }
.ot-grid.k-text .ot.add span svg { width: 14px; height: 14px; }
.ot-grid.k-text .ot.add:hover { border-color: var(--rose); color: var(--rose-deep); }
.ot-grid.k-text .ot-main { height: 40px; padding: 0 16px; }

/* Suppression rapide d'un choix */
.ot-x { position: absolute; top: -7px; right: -7px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(22, 19, 18, .35); opacity: 0; transform: scale(.8); transition: opacity .18s, transform .18s, color .18s; }
.ot-x svg { width: 12px; height: 12px; }
.ot:hover .ot-x, .ot-x:focus-visible { opacity: 1; transform: none; }
.ot-x:hover { color: var(--danger, #c0504a); }
@media (hover: none) { .ot-x { opacity: 1; transform: none; } }
.ot-grid { padding-top: 6px; padding-right: 6px; }

/* Ajouter une étape / Tes charms : titre et sous-titre empilés */
.stc-add .sa-t { display: grid; gap: 2px; min-width: 0; }
.stc-tt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.stc-tt .stc-meta { font-size: 12.5px; color: var(--ink-3); }
.stc-fixed .stc-h .btn { flex: 0 0 auto; }

/* Visuel : la photo du bijou, modifiable */
.jd-photo-st { background: radial-gradient(120% 90% at 50% 35%, #fdfbfa 0%, #f1ecea 60%, #e8e1de 100%) center / cover no-repeat; }
.jd-photo-st[style*="background-image"] { background-size: cover; background-position: center; }
.jd-noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.jd-noimg svg { width: 28px; height: 28px; }
.jd-chg { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: var(--sh-1); cursor: pointer; }
.jd-chg svg { width: 15px; height: 15px; }
.jd-chg input { display: none; }

/* Prix par défaut à côté des chiffres */
.jd-kpi3 { grid-template-columns: 1fr 1fr; }
.jd-kpi3 .jd-base { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.jd-kpi3 .jd-base .euro { max-width: 220px; }
.jd-kpi3 div + div { border-left: 1px solid var(--line); }
.jd-base { display: grid; gap: 4px; padding: 10px 12px; }
.jd-base > span:first-child { font-size: 12.5px; color: var(--ink-3); }
.jd-base .in { height: 38px; font-weight: 700; }
.jd-prices { padding: 14px 16px 16px; }
.jd-prices .filters { padding: 12px 0 8px !important; }

/* Tableau des prix sur téléphone */
@media (max-width: 719px) {
  .jd-kpi3 { grid-template-columns: 1fr 1fr; }
  .jd-kpi3 .jd-base { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .jd-kpi3 > div:nth-of-type(1) { border-left: 0; }
  .combo { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "ck lbl on" ". price state"; column-gap: 10px; row-gap: 8px; padding: 12px; }
  .combo .ck { grid-area: ck; }
  .combo .c-lbl { grid-area: lbl; }
  .combo .c-on { grid-area: on; justify-self: end; }
  .combo .c-price { grid-area: price; }
  .combo .c-state { grid-area: state; justify-self: end; align-self: center; }
  .combo .tag { height: 26px; font-size: 12.5px; padding: 0 8px; }
  .bulk { padding: 12px; }
  .bulk .euro { width: 100px; }
  .filters .in { flex: 1 1 100%; }
}
.jd-kpi3 > div:nth-of-type(1) { border-left: 0; }

/* Listes déroulantes maison (remplacent les listes natives) */
.sel-pick { position: relative; min-width: 0; }
.sel-native { position: absolute !important; left: 0; bottom: 0; width: 100% !important; height: 1px !important; opacity: 0 !important; pointer-events: none; border: 0 !important; padding: 0 !important; }
.sel-pick .combo-btn { width: 100%; }
.sel-pick .combo-btn:disabled { opacity: .5; }
.sel-pick.err .combo-btn { box-shadow: inset 0 0 0 1.5px var(--danger, #c0504a); }
.sel-pick .combo-pop { max-height: 320px; overflow: auto; }
.sel-pick .combo-o:disabled { opacity: .4; }
/* Filtres du tableau des prix en puces */
.pf-rows { display: grid; gap: 8px; margin: 12px 0 10px; }
.pf-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 10px; }
.pf-l { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.pf-row .chip { gap: 6px; }
.pf-row .fin-dot { margin: 0; }
@media (max-width: 719px) { .pf-row { grid-template-columns: 1fr; gap: 6px; } }

/* Éditeur du bijou vierge : mode places exactes */
.cm-mode { width: 100%; }
.cm-mode button { flex: 1; font-size: 13px; }
.cm-ns { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-ns .chip svg { width: 12px; height: 12px; }
.cm-stage.exact .cm-pt { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff, 0 4px 10px -3px rgba(0, 0, 0, .4); }
.cm-stage.exact { cursor: crosshair; }

.cm-top { display: grid; gap: 10px; margin-bottom: 14px; }
.cm-top .cm-mode { max-width: 460px; }
.cm-top .cm-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cm-top .cm-mode svg { width: 15px; height: 15px; }
.cm-top .cm-ns { align-items: center; }
.cm-top .cm-ns > span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-right: 2px; }
.cm-help { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* Placement des charms (fiche bijou) */
.plc-grid { display: grid; gap: 10px; }
.plc { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .2s; }
.plc:active { transform: scale(.99); }
.plc-img { width: 74px; height: 74px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fdfbfa, #efe9e6); color: var(--ink-3); overflow: hidden; }
.plc-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.plc-img svg { width: 22px; height: 22px; }
.plc-t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.plc-t b { font-size: 15px; }
.plc-t small { font-size: 12.5px; color: var(--ink-3); }
.plc-ns { display: flex; flex-wrap: wrap; gap: 6px; }
.plc-n { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); }
.plc-n.ok { background: #e7f3ec; color: var(--ok); }
.plc .btn { flex: 0 0 auto; }
@media (min-width: 900px) { .plc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plc { flex-wrap: wrap; } .plc .btn { width: 100%; justify-content: center; } }
.cp-ring { position: absolute; display: block; pointer-events: none; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, .3)); }
.cp-ring.cp-back { filter: brightness(.82); }
.cp-ring svg { display: block; width: 100%; height: auto; }

/* Fenêtre d'un choix */
.sheet-h h3 .sh-val { font-family: var(--sans, inherit); font-size: 14px; font-weight: 700; color: var(--rose-deep); background: var(--rose-pale); padding: 4px 10px; border-radius: 99px; margin-left: 8px; vertical-align: middle; letter-spacing: 0; }
.oe { display: grid; gap: 14px; }
.oe-head { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.oe-head.off .oe-vis { opacity: .45; }
.oe-vis { position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 4px var(--surface), 0 10px 22px -12px rgba(22, 19, 18, .35); color: var(--ink-3); }
.oe-vis.oe-im { border-radius: 20px; }
.oe-vis svg { width: 22px; height: 22px; }
label.oe-vis { cursor: pointer; }
.oe-vis input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.oe-edit { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 3px var(--surface); pointer-events: none; }
.oe-edit svg { width: 13px; height: 13px; }
.oe-nb { font-family: var(--serif); font-size: 40px; color: var(--ink); }
.oe-tx { font-family: var(--serif); font-size: 34px; color: var(--ink); }
.oe-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.oe-f { display: grid; gap: 6px; }
.oe-f > span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.oe-f .in { background: var(--surface); font-size: 16px; font-weight: 600; }
.oe-num { display: flex; align-items: center; gap: 10px; }
.oe-num .in { width: 110px; }
.oe-num em { font-style: normal; color: var(--ink-3); font-size: 14px; }
.oe-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.oe-presets > span { font-size: 12px; color: var(--ink-3); margin-right: 4px; }
.oe-presets .chip { gap: 6px; }
.oe-presets .fin-dot { margin: 0; }
.oe-live { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.oe-live > span:last-child { display: grid; gap: 1px; }
.oe-live b { font-size: 14.5px; }
.oe-live small { font-size: 12.5px; color: var(--ink-3); }
.oe-sec { display: grid; gap: 10px; padding-top: 6px; }
.oe-sec > header { display: grid; gap: 2px; }
.oe-sec > header b { font-size: 14.5px; }
.oe-sec > header small { font-size: 12.5px; color: var(--ink-3); }
.oe-rule { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.oe-rule > span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.oe-rule .chip { gap: 6px; }
.oe-rule .fin-dot { margin: 0; }
.oe-del { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 4px; font-size: 13.5px; font-weight: 600; color: var(--danger, #c0504a); }
.oe-del svg { width: 15px; height: 15px; }
@media (max-width: 520px) { .oe-head { flex-direction: column; align-items: stretch; text-align: left; } .oe-head .oe-vis { align-self: center; } .oe-rule { grid-template-columns: 1fr; gap: 6px; } }

/* Atelier > Réglages */
.seg button { position: relative; }
.seg-badge { display: inline-grid; place-items: center; vertical-align: 1px; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 1; }
.rg { display: grid; gap: 16px; }
.rg .card { margin: 0; }
.rg-hero { display: flex; align-items: center; gap: 20px; padding: 20px 22px; }
.rg-hero.warn { background: linear-gradient(120deg, var(--warn-pale), var(--surface) 70%); }
.rg-hero.ok { background: linear-gradient(120deg, var(--ok-pale), var(--surface) 70%); }
.rg-ring { --c: var(--warn); flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 8%, transparent) 0); }
.rg-hero.ok .rg-ring { --c: var(--ok); }
.rg-ring b { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.rg-ring b span { display: inline-block; white-space: nowrap; }
.rg-ring small { display: inline; font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-left: 1px; }
.rg-hero-t h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.rg-hero-t p { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 60ch; }
.rg-how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 20px 20px; margin: 0; }
.rg-how li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--rose-mist); }
.rg-how span { width: 24px; height: 24px; border-radius: 50%; background: var(--rose-dark); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.rg-how b { font-size: 14px; }
.rg-how small { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.rg-list { margin-top: 10px; }
.rg-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(200px, 300px) 96px; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); }
.rg-row.miss { background: color-mix(in srgb, var(--warn-pale) 45%, transparent); }
.rg-price { font-family: var(--serif); font-size: 21px; }
.rg-use { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.rg-use i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; }
.rg-use em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose-pale); color: var(--rose-deep); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.rg-use small { flex-basis: 100%; color: var(--ink-3); font-size: 12px; }
.rg-use b { flex-basis: 100%; font-size: 14px; }
.rg-in .in { width: 100%; }
.rg-ch { width: 44px; height: 44px; border-radius: 12px; background: var(--rose-mist); display: grid; place-items: center; }
.rg-ch img { max-width: 80%; max-height: 80%; object-fit: contain; }
.rg-st { justify-self: end; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rg-st svg { width: 13px; height: 13px; }
.rg-st.ok { background: var(--ok-pale); color: var(--ok); }
.rg-st.miss { background: var(--warn-pale); color: var(--warn); }
.rg-pad { padding: 4px 20px 18px; }
@media (max-width: 760px) {
  .rg-how { grid-template-columns: 1fr; padding: 12px 16px 16px; }
  .rg-hero { padding: 18px; gap: 16px; }
  .rg-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "p u s" "i i i"; gap: 10px 12px; padding: 13px 16px; }
  .rg-row > :nth-child(1) { grid-area: p; } .rg-row > :nth-child(2) { grid-area: u; } .rg-row > :nth-child(3) { grid-area: i; } .rg-row > :nth-child(4) { grid-area: s; }
}

/* Atelier > Créations */
.cr-clean { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cr-clean > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-clean > span > svg { flex: none; width: 20px; height: 20px; color: var(--warn); }
.cr-clean b { display: block; font-size: 14px; }
.cr-clean small { display: block; color: var(--ink-3); font-size: 12.5px; }
.row.cr-off { opacity: .55; }
.pill.off { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-3); }
.disp.cr-disp { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

/* Écran redessiné sur place : aucune animation d'entrée */
.view.calm .pop { animation: none; }
.rg-auto { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 6px 20px 14px; }
.rg-auto small { color: var(--ink-3); font-size: 12.5px; flex: 1; min-width: 200px; }
.rg-auto .btn svg { width: 16px; height: 16px; }
.rg-auto-in { position: relative; flex: 1; min-width: 0; }
.rg-auto-in svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.rg-auto-in .in { width: 100%; padding-left: 40px; }
.rg-auto .btn { flex: none; }
.rg-note { margin: 0 20px 14px; }
@media (max-width: 760px) { .rg-auto { flex-direction: column; align-items: stretch; padding: 6px 16px 14px; } .rg-auto small { min-width: 0; } .rg-note { margin: 0 16px 14px; } }

/* Puces qui défilent dans une fenêtre : coupées par le bord de la fenêtre, alignées sur sa marge */
.sheet-b .rail-x:not(.wrap) { margin: 0 -22px; padding: 2px 22px; scroll-padding-inline: 22px; }
.sheet-b .rail-x:not(.wrap)::after { content: ''; flex: 0 0 14px; }
@media (min-width: 720px) { .sheet-b .rail-x:not(.wrap) { margin: 0 -26px; padding: 2px 26px; scroll-padding-inline: 26px; } }
@media (min-width: 1024px) { .sheet-b .rail-x:not(.wrap) { margin: 0; padding: 2px 0; } .sheet-b .rail-x:not(.wrap)::after { display: none; } }
.rg-row.rg-p { grid-template-columns: 88px minmax(0, 1fr) auto; }
@media (max-width: 760px) { .rg-row.rg-p { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "p u s"; } .rg-row.rg-p > :nth-child(3) { grid-area: s; } }
.rg-cmp { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; }
.rg-cmp span { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .65); font-size: 12.5px; }
.rg-ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 6px; }
.rg-k { font-weight: 800; white-space: nowrap; }
.rg-ul small { font-size: 12px; opacity: .85; }

/* Bijoux vierges */
.plc.todo { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 55%, transparent); }
.plc-miss { color: var(--warn) !important; font-weight: 600; }
.plc-add { border: 1.5px dashed var(--line-2, rgba(22, 19, 18, .16)); background: transparent; box-shadow: none; }
.plc-add .plc-img { display: grid; place-items: center; color: var(--rose-dark); }
.plc-add .plc-img svg { width: 22px; height: 22px; }
.cm-when { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cm-when-t { font-size: 14px; }
.cm-when .hint { margin: -6px 0 0; }
.cm-wst { display: grid; gap: 6px; }
.cm-wst > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.cm-wst.miss > span { color: var(--warn); }
.cm-wst em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.cm-wst .chip .fin-dot { margin-right: 2px; }
/* Picto « bijou vierge réglé » : dans le coin, tout à droite de la vignette */
.ot-grid.k-text .ot-main { position: relative; padding-right: 18px; }
.ot-grid.k-text .ot-cp { position: absolute; right: -6px; top: -7px; width: 20px; height: 20px; background: var(--surface); box-shadow: var(--sh-1); }
/* Prix par défaut : la valeur saisie s'affiche en noir (le gris des libellés ne la touche pas) */
.jd-kpi .jd-base .euro { font-size: 16px; color: var(--ink); }
.jd-base .in { color: var(--ink); -webkit-text-fill-color: var(--ink); font-size: 17px; }
.jd-base .in::placeholder { color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); font-weight: 500; }
.seg-badge.rose { background: var(--rose-dark); }

/* Atelier > Charms : attribution par bijou */
.as-mode { margin-bottom: 14px; }
.as-bar { display: grid; gap: 12px; margin-bottom: 16px; }
.as-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.as-tools > span { flex: 1; min-width: 180px; font-size: 14px; color: var(--ink-2); }
.as-card { position: relative; }
.as-card .as-ck { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2, rgba(22,19,18,.18)); color: transparent; z-index: 1; transition: all .15s; }
.as-card .as-ck svg { width: 14px; height: 14px; }
.as-card.sel { box-shadow: inset 0 0 0 2px var(--rose-dark); }
.as-card.sel .as-ck { background: var(--rose-dark); color: #fff; box-shadow: none; }
.as-card:not(.sel) .ch-ph img { opacity: .55; }

/* Fiche stock : photo principale en grand, la seconde en dessous */
.ms-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-photos .ms-photo:first-child { grid-column: 1 / -1; }
.ms-photos .ms-photo2 { padding: 14px 14px 52px; border-radius: 18px; }
.ms-photos .ms-photo2.empty { padding-bottom: 14px; }
.ms-photos .ms-photo2 .ms-photo-btn { font-size: 12px; padding: 0 10px; min-height: 32px; }
.ms-at { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); font-size: 11.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ms-at input { position: absolute; opacity: 0; pointer-events: none; }
.ms-at i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2, rgba(22,19,18,.2)); color: transparent; }
.ms-at i svg { width: 11px; height: 11px; }
.ms-at:has(input:checked) { color: var(--rose-deep); }
.ms-at:has(input:checked) i { background: var(--rose-dark); color: #fff; box-shadow: none; }
.ms-at:has(input:disabled) { display: none; }
.ms-at.hide, .ms-at-hint.hide { display: none; }
.ms-at-hint { margin: 8px 2px 0; }
.ms-size .sw-row small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }

/* Atelier > Composants */
.as-intro { margin: 0 2px 14px; }
.cp-list { display: grid; gap: 12px; }
.cp-card { padding: 14px 16px; display: grid; gap: 12px; }
.cp-h { display: flex; align-items: center; gap: 12px; }
.cp-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cp-t b { font-size: 15px; }
.cp-t small { color: var(--ink-3); font-size: 12.5px; }
.cp-q { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.cp-q .in { width: 72px; text-align: right; }
.cp-q em { font-style: normal; }
.cp-b { display: grid; gap: 6px; }
.cp-l { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cp-j { align-self: center; font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 0 2px 0 6px; }
.cp-j:first-child { margin-left: 0; }
@media (max-width: 600px) { .cp-h { flex-wrap: wrap; } .cp-q { width: 100%; } }
.cp-row { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: start; padding-top: 6px; }
.cp-row + .cp-row { border-top: 1px solid var(--line); padding-top: 10px; }
.cp-row .cp-j { margin: 6px 0 0; }
@media (max-width: 600px) { .cp-row { grid-template-columns: 1fr; } .cp-row .cp-j { margin: 0; } }

/* Listes maison dans une grille : le texte se coupe au lieu de déborder sur le champ voisin */
.pick { min-width: 0; }
.combo-btn { min-width: 0; overflow: hidden; }
.combo-btn .combo-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-mat { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2) !important; font-size: 12px; }
.plc-mat svg { width: 13px; height: 13px; }
.cm-when .cp-q { justify-content: space-between; }
.at-role { display: grid; gap: 6px; margin-top: 10px; }
.at-role .hint { margin: 0 2px; }
/* Bases : bijoux vierges qui les utilisent */
.bu-list { display: grid; gap: 6px; }
.bu-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 14px; background: var(--surface-2); }
.bu-img { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.bu-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.bu-t { font-size: 14px; font-weight: 600; min-width: 0; }
.cp-none { margin: 0 2px; }
.cp-b .chip svg { width: 12px; height: 12px; margin-right: 2px; }
/* Par bijou : modifications en attente */
.as-save { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; margin-bottom: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-2, 0 10px 30px -12px rgba(22,19,18,.35)); }
.as-save > span { flex: 1; font-size: 14px; }
.as-card.mod { box-shadow: inset 0 0 0 2px var(--warn); }
.as-card.mod.sel .as-ck { background: var(--warn); }
.as-mod { color: var(--warn); font-weight: 700; }

/* Menu : liens groupés en un seul bloc, arrondi en haut du premier et en bas du dernier, trait entre chaque */
.mm-links { gap: 0 !important; }
.mm-links .act-row { border-radius: 0; }
.mm-links .act-row:first-child { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.mm-links .act-row:last-child { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.mm-links .act-row + .act-row { box-shadow: inset 0 1px 0 var(--line); }
.br-cats { margin-bottom: 10px; }

/* Retour à l'Atelier : un vrai bouton, bien visible (même style que « Retour aux événements ») */
.eyebrow .back-link { gap: 8px; margin: 0 0 6px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; transition: background .2s, transform .2s; }
.eyebrow .back-link svg { width: 16px; height: 16px; }
.eyebrow .back-link:hover { background: var(--rose-dark); }
.eyebrow .back-link:active { transform: scale(.97); }
.top.scrolled .eyebrow .back-link { padding: 6px 12px 6px 9px; margin-bottom: 2px; }

/* Loupe : voir une photo en grand */
.ms-zoom { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); color: var(--ink-2); cursor: zoom-in; transition: transform .15s, color .15s; }
.ms-zoom svg { width: 17px; height: 17px; }
.ms-zoom:hover { color: var(--rose-deep); transform: scale(1.06); }
.ms-photo2 .ms-zoom { width: 28px; height: 28px; top: 6px; right: 6px; }
.ms-photo2 .ms-zoom svg { width: 14px; height: 14px; }
.cm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-tools .btn svg { width: 15px; height: 15px; }
.cm-tools .btn.on { background: var(--ink); color: #fff; }
.cm-pts[hidden] { display: none; }

/* Fiches produits : « 1 fabriqué » d'un geste */
.fr-make { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; min-height: 40px; border-radius: 999px; background: var(--rose-dark); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, transform .15s; }
.fr-make svg { width: 15px; height: 15px; }
.fr-make:hover { background: var(--rose-deep); }
.fr-make:active { transform: scale(.96); }
.fr-p { font-weight: 800; }
.fr-p.ok { color: var(--ok); } .fr-p.warn { color: var(--warn); } .fr-p.rose { color: var(--rose-deep); }
.act-row.fr-make-row { background: var(--rose-dark); color: #fff; }
.act-row.fr-make-row svg, .act-row.fr-make-row .muted { color: #fff; opacity: .9; }
@media (max-width: 520px) { .fr-make span { display: none; } .fr-make { padding: 0 12px; } }

/* Bijou vierge : blocs repliables du panneau */
.cm-fold { padding: 0; display: block; gap: 0; } /* repliée : pas d’espace fantôme sous le titre, il reste centré */
.cm-fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.cm-fold > summary::-webkit-details-marker { display: none; }
.cm-fold .cm-sum { flex: 1; min-width: 0; text-align: right; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-fold[open] .cm-sum { visibility: hidden; }
.cm-fold .cm-chev { flex: none; width: 16px; height: 16px; color: var(--ink-3); transform: rotate(90deg); transition: transform .2s; }
.cm-fold[open] .cm-chev { transform: rotate(-90deg); }
.cm-fold-b { display: grid; gap: 10px; padding: 0 14px 14px; }

/* Atelier > Breloques par bijou : la barre d'enregistrement reste toujours visible, en bas de l'écran */
.as-save { position: fixed; top: auto; left: 50%; bottom: calc(var(--safe-b) + var(--tab-h) + 12px); transform: translateX(-50%); z-index: 46; width: calc(100% - 32px); max-width: 560px; margin: 0; box-shadow: 0 18px 40px -14px rgba(22, 19, 18, .45), 0 0 0 1px var(--line); }
.as-save ~ .as-grid { padding-bottom: 84px; }
body:has(.as-save) .fab-zone { display: none; }
@media (min-width: 1024px) { .as-save { left: calc(50% + var(--rail-w) / 2); } }

/* Garde-fous : mise à jour obligatoire et session reprise sur un autre appareil */
.garde { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(246, 241, 238, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); animation: fade .25s ease both; }
.garde-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 28px; padding: 30px 24px 22px; text-align: center; box-shadow: 0 30px 70px -24px rgba(22, 19, 18, .45), 0 0 0 1px var(--line); animation: pop .3s var(--ease) both; }
.garde-ico { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--rose-pale); color: var(--rose-deep); }
.garde-ico svg { width: 28px; height: 28px; }
.garde-card h3 { font-size: 20px; margin: 0 0 8px; }
.garde-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.garde-card .btn { width: 100%; margin-top: 22px; }
.garde-card .link { display: inline-block; margin-top: 12px; font-size: 13.5px; }
.garde-card .garde-v { display: inline-flex; gap: 6px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* Confirmation « 1 fabriqué » : liste des matières retirées */
.dialog.wide { max-width: 440px; }
.mk-head { margin: 14px 0 8px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mk-list { list-style: none; margin: 0; padding: 4px; border-radius: 18px; background: var(--surface-2); text-align: left; max-height: 46vh; overflow: auto; }
.mk-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; }
.mk-list li + li { box-shadow: 0 -1px 0 var(--line); }
.mk-ph { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mk-ph img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.mk-ph i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--rose-deep); text-transform: uppercase; }
.mk-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mk-t b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-t small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mk-t small em { font-style: normal; font-weight: 700; color: var(--ink-2); }
.mk-t small svg { width: 13px; height: 13px; }
.mk-q { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 10px; border-radius: 999px; background: var(--rose-pale); color: var(--rose-deep); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.mk-q small { font-size: 11px; font-weight: 600; opacity: .8; }
.mk-list li.short .mk-t small, .mk-list li.short .mk-t small em { color: var(--err); }
.mk-list li.short .mk-q { background: var(--err-pale); color: var(--err); }
.mk-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--err-pale); color: var(--err); font-size: 13px; text-align: left; line-height: 1.4; }
.mk-warn svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }

/* Composition : ce qui dépasse du cadre (zoom, hauteur) est masqué partout */
:where(*):has(> .cp) { overflow: hidden; }

/* Bijou vierge : points libres, glissables, réglage par charm */
.cm-stage .cm-pt { touch-action: none; cursor: grab; transition: transform .15s var(--ease), box-shadow .15s; }
.cm-stage .cm-pt:hover { transform: scale(1.12); }
.cm-stage.exact .cm-pt.sel { background: var(--rose-dark); transform: scale(1.22); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(169, 102, 95, .35), 0 6px 14px -4px rgba(0, 0, 0, .45); z-index: 2; }
.cm-stage.dragging, .cm-stage.dragging .cm-pt { cursor: grabbing; }
.cm-stage.dragging .cm-pt.sel { transform: scale(1.3); transition: none; }
.cm-ptbox { display: grid; gap: 14px; padding: 16px; margin-bottom: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--rose-dark), 0 14px 30px -18px rgba(22, 19, 18, .4); }
.cm-ptbox-h { display: flex; align-items: center; gap: 10px; }
.cm-ptbox-h b { flex: 1; font-size: 15px; }
.cm-ptn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-dark); color: #fff; font-size: 12px; font-weight: 700; }
.cm-ptbox .f { margin: 0; }
.cm-ptbox-a { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-ptbox-a .danger-t { color: var(--err); }

/* Bouton œil posé sur l'image : cache ou réaffiche les ronds d'un geste */
.cm-eye { position: absolute; bottom: 10px; right: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(22, 19, 18, .45); font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cm-eye svg { width: 16px; height: 16px; }
.cm-eye:hover { color: var(--ink); }
.cm-eye.on { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(22, 19, 18, .6); }

/* Points de placement : un fin viseur (le centre reste visible) et le numéro en étiquette à côté */
.cm-stage.exact .cm-pt, .cm-stage .cm-pt { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: transparent; font-size: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink), 0 2px 6px rgba(0, 0, 0, .35); }
.cm-stage .cm-pt::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; } /* zone de prise plus large que le viseur */
.cm-stage .cm-pt::before { content: attr(data-n); position: absolute; left: 13px; top: -19px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 1.5px #fff, 0 3px 8px -2px rgba(0, 0, 0, .4); pointer-events: none; }
.cm-stage .cm-pt:hover { transform: scale(1.15); }
.cm-stage.exact .cm-pt.sel { background: transparent; transform: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rose-dark), 0 0 0 9px rgba(169, 102, 95, .22); }
.cm-stage .cm-pt.sel::before { background: var(--rose-dark); }
.cm-stage.dragging .cm-pt.sel { transform: none; }
/* Ronds cachés : invisibles mais toujours là pour glisser ou sélectionner un charm ; un léger repère au survol */
.cm-pts.ghost .cm-pt, .cm-pts.ghost .cm-pt.sel { box-shadow: none; background: transparent; transform: none; }
.cm-pts.ghost .cm-pt::before { opacity: 0; }
.cm-pts.ghost .cm-pt:hover { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8), 0 0 0 2.5px rgba(22, 19, 18, .25); }
.cm-stage.dragging .cm-pts.ghost .cm-pt { box-shadow: none; }
/* Réglages du charm sélectionné : sous l'image */
.cm-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.cm-col .cm-ptbox { margin: 0; }
.cm-col #cmPt:empty { display: none; }
@media (min-width: 761px) { .cm-col { position: sticky; top: 0; align-self: start; } }

/* Fiche d'un choix : visibilité et produit du stock côte à côte, en cartes égales */
.oe-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.oe-pair.one { grid-template-columns: 1fr; }
.oe-card { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.oe-card > small { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.oe-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.oe-card-h b { font-size: 14.5px; }
.oe-pair .oe-live { display: grid; flex-direction: initial; align-items: initial; cursor: pointer; }
.oe-pair .oe-live > span:last-child { display: flex; }
.oe-mat .sel-pick { width: 100%; }
.oe-mat .cp-q { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.oe-mat .cp-q .in { width: 90px; }
.oe-mat-ok { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--ok-pale, #e6f2ea); color: var(--ok, #2f7a4b); font-size: 11.5px; font-weight: 700; }
.oe-mat-ok svg { width: 12px; height: 12px; }
.oe > .oe-sec { padding: 14px 16px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 560px) { .oe-pair { grid-template-columns: 1fr; } }
/* Fiche stock à deux photos : l'image occupe tout le cadre (les boutons passent par-dessus, l'œil permet de zoomer) */
.ms-photos .ms-photo:not(.empty) img { top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.ms-photos .ms-photo2:not(.empty) { padding: 0; }
.oe-link { cursor: pointer; }
.oe-link b { font-size: 14.5px; }
