/* Maison Ludique - éditeur de plaques (CLAUDE, 02/12/2026) */

:root {
    --mlp-accent: #1f6f78;
    --mlp-accent-dark: #17555c;
    --mlp-accent-soft: #e4f1f2;
    --mlp-text: #1f2328;
    --mlp-muted: #6b7280;
    --mlp-line: #e3e5e8;
    --mlp-bg: #f4f5f7;
    --mlp-stage: #e9ebee;
    --mlp-danger: #c62828;
    --mlp-warn: #b45309;
    --mlp-radius: 10px;
    --mlp-rail-w: 236px;
    --mlp-panel-w: 350px;
}

* { box-sizing: border-box; }
html, body.mlp { margin: 0; height: 100%; overflow: hidden; }
body.mlp {
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--mlp-text);
    background: var(--mlp-bg);
    -webkit-tap-highlight-color: transparent;
}
.mlp button { font: inherit; color: inherit; cursor: pointer; }
.mlp button:disabled { cursor: default; opacity: .4; }
.mlp svg { flex: none; }
.mlp [hidden] { display: none !important; }
.mlp :focus-visible { outline: 2px solid var(--mlp-accent); outline-offset: 2px; }

.mlp-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ---------------- barre du haut ---------------- */
.mlp-top {
    position: relative; display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--mlp-line); flex: none; z-index: 5;
}
.mlp-back { display: flex; align-items: center; gap: 6px; color: var(--mlp-text); text-decoration: none; padding: 6px 10px 6px 4px; border-radius: 8px; }
.mlp-back:hover { background: var(--mlp-bg); }
.mlp-back svg { width: 20px; height: 20px; fill: currentColor; }
.mlp-top-title { font-weight: 600; font-size: 16px; }
.mlp-shop { font-weight: 400; color: var(--mlp-muted); font-size: 13px; margin-left: 6px; }
.mlp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mlp-icon-btn { display: flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 9px; border: 0; background: none; border-radius: 8px; }
.mlp-icon-btn:hover:not(:disabled) { background: var(--mlp-bg); }
.mlp-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mlp-icon-btn.mlp-on { background: var(--mlp-accent-soft); color: var(--mlp-accent-dark); }
.mlp-sep { width: 1px; height: 24px; background: var(--mlp-line); margin: 0 6px; }
.mlp-status {
    position: absolute; left: 50%; top: 64px; transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
    background: #23292f; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; max-width: min(90vw, 620px);
    transition: opacity .2s, transform .2s; box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 30;
}
.mlp-status.mlp-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mlp-status .mlp-link { color: #9fe0e6; margin-left: 8px; }

/* ---------------- corps ---------------- */
.mlp-main { flex: 1; display: flex; min-height: 0; }

/* menu des étapes */
.mlp-rail { width: var(--mlp-rail-w); flex: none; background: #fff; border-right: 1px solid var(--mlp-line); overflow-y: auto; padding: 8px 0; }
.mlp-step {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 16px; border: 0; background: none; text-align: left;
    border-left: 3px solid transparent;
}
.mlp-step:hover { background: var(--mlp-bg); }
.mlp-step > svg:first-child { width: 22px; height: 22px; color: var(--mlp-muted); }
.mlp-step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mlp-step-label { font-weight: 600; }
.mlp-step-sub { font-size: 12px; color: var(--mlp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlp-chev { width: 18px; height: 18px; color: #b6bbc2; }
.mlp-step.mlp-active { background: var(--mlp-accent-soft); border-left-color: var(--mlp-accent); }
.mlp-step.mlp-active > svg:first-child, .mlp-step.mlp-active .mlp-chev { color: var(--mlp-accent); }

/* panneau */
.mlp-panel { width: var(--mlp-panel-w); flex: none; background: #fff; border-right: 1px solid var(--mlp-line); display: none; flex-direction: column; min-height: 0; }
.mlp-panel.mlp-open { display: flex; }
.mlp-panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 18px; }
.mlp-panel-title { font-size: 17px; margin: 0; flex: 1; order: 0; }
.mlp-panel-back { order: 1; width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.mlp-panel-back:hover { background: var(--mlp-bg); }
.mlp-panel-back svg { width: 20px; height: 20px; fill: currentColor; }
.mlp-panel-body { flex: 1; overflow-y: auto; padding: 0 18px 24px; overscroll-behavior: contain; }

.mlp-sec { padding: 12px 0; border-bottom: 1px solid var(--mlp-line); }
.mlp-sec:last-child { border-bottom: 0; }
.mlp-sec h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mlp-muted); font-weight: 600; }
.mlp-hint { font-size: 12px; color: var(--mlp-muted); margin: 8px 0 0; }
.mlp-label { font-size: 12px; font-weight: 600; margin: 12px 0 6px; }
.mlp-label:first-child { margin-top: 0; }
.mlp-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mlp-panel-body p { margin: 0 0 10px; }

.mlp-panel-body textarea, .mlp-panel-body input[type=text], .mlp-panel-body input[type=search], .mlp-paste {
    width: 100%; padding: 9px 11px; border: 1px solid #cfd3d8; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; resize: vertical;
}
.mlp-panel-body textarea:focus, .mlp-panel-body input:focus, .mlp-paste:focus { border-color: var(--mlp-accent); outline: 0; box-shadow: 0 0 0 3px var(--mlp-accent-soft); }
.mlp-panel-body input[type=range] { width: 100%; accent-color: var(--mlp-accent); }
.mlp-range-val { font-size: 12px; color: var(--mlp-muted); text-align: right; }

/* boutons */
.mlp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid #cfd3d8; background: #fff; font-weight: 500; }
.mlp-btn:hover:not(:disabled) { border-color: var(--mlp-accent); color: var(--mlp-accent-dark); }
.mlp-btn.mlp-primary { background: var(--mlp-accent); border-color: var(--mlp-accent); color: #fff; }
.mlp-btn.mlp-primary:hover:not(:disabled) { background: var(--mlp-accent-dark); color: #fff; }
.mlp-wide { width: 100%; margin-top: 10px; }
.mlp-wide b { font-size: 18px; line-height: 1; }
.mlp-link { border: 0; background: none; padding: 0; color: var(--mlp-accent); text-decoration: underline; margin-top: 10px; }

.mlp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mlp-chip { padding: 6px 11px; border: 1px solid #cfd3d8; border-radius: 999px; background: #fff; font-size: 13px; }
.mlp-chip:hover { border-color: var(--mlp-accent); }
.mlp-chip.mlp-on { background: var(--mlp-accent); border-color: var(--mlp-accent); color: #fff; }

.mlp-cards { display: grid; gap: 8px; }
.mlp-cards-2 { grid-template-columns: 1fr 1fr; }
.mlp-cards-3 { grid-template-columns: 1fr 1fr 1fr; }
.mlp-card {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--mlp-line); border-radius: var(--mlp-radius);
    background: #fff; text-align: left;
}
.mlp-card:hover { border-color: #aeb4bb; }
.mlp-card.mlp-on { border-color: var(--mlp-accent); background: var(--mlp-accent-soft); }
.mlp-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.mlp-card small { color: var(--mlp-muted); font-size: 12px; }
.mlp-card em { font-style: normal; font-weight: 600; }
.mlp-size-ico { width: 38px; display: block; }
.mlp-size-ico span { display: block; border: 2px solid currentColor; border-radius: 3px; color: var(--mlp-muted); }
.mlp-card.mlp-on .mlp-size-ico span { color: var(--mlp-accent); }
.mlp-card-ico { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 6px; font-size: 12px; }
.mlp-card-ico svg { width: 100%; max-width: 64px; height: 36px; color: var(--mlp-text); }
.mlp-card-ico b { font-weight: 500; }
/* formats et options (03/12/2026) */
.mlp-cards-4 { grid-template-columns: repeat(4, 1fr); }
.mlp-cards-4 .mlp-card-ico svg { height: 26px; }
.mlp-size-svg { width: 40px; flex: none; color: var(--mlp-muted); }
.mlp-size-svg svg { display: block; width: 40px; height: 30px; }
.mlp-card.mlp-on .mlp-size-svg { color: var(--mlp-accent); }
.mlp-sup { display: block; font-style: normal; font-weight: 600; font-size: 11px; color: var(--mlp-accent-dark); margin-top: 2px; }
.mlp-sec .mlp-label + .mlp-cards { margin-bottom: 10px; }
.mlp-card-ico.mlp-on svg { color: var(--mlp-accent-dark); }

/* couleurs (couleur de plaque + couleur de gravure) */
.mlp-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.mlp-colour { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1.5px solid transparent; border-radius: var(--mlp-radius); background: none; text-align: center; }
.mlp-colour:hover { background: var(--mlp-bg); }
.mlp-colour.mlp-on { border-color: var(--mlp-accent); background: var(--mlp-accent-soft); }
.mlp-colour-dot {
    width: 54px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font: 700 20px/1 Georgia, serif; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.mlp-colour-name { font-size: 12px; font-weight: 600; line-height: 1.25; }
.mlp-colour-name small { display: block; font-weight: 400; color: var(--mlp-muted); font-size: 11px; }

/* textes */
.mlp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mlp-list-item { text-align: left; padding: 9px 12px; border: 1px solid var(--mlp-line); border-radius: 8px; background: #fff; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlp-list-item:hover { border-color: var(--mlp-accent); }
.mlp-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 236px; overflow-y: auto; padding: 2px; }
.mlp-font { padding: 8px 6px; border: 1.5px solid var(--mlp-line); border-radius: 8px; background: #fff; font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlp-font small { display: block; font: 10px system-ui, sans-serif; color: var(--mlp-warn); }
.mlp-font:hover { border-color: #aeb4bb; }
.mlp-font.mlp-on { border-color: var(--mlp-accent); background: var(--mlp-accent-soft); }
.mlp-num { display: flex; align-items: center; gap: 6px; }
.mlp-num input[type=text] { width: 80px !important; text-align: center; }
.mlp-num > button:not(.mlp-btn) { width: 38px; height: 38px; border: 1px solid #cfd3d8; border-radius: 8px; background: #fff; font-size: 18px; }
.mlp-num > button:not(.mlp-btn):hover { border-color: var(--mlp-accent); }
.mlp-num .mlp-btn { margin-left: auto; padding: 8px 10px; font-size: 12px; }
.mlp-toggles { display: flex; gap: 4px; align-items: center; }
.mlp-tg { width: 38px; height: 38px; border: 1px solid #cfd3d8; border-radius: 8px; background: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.mlp-tg svg { width: 20px; height: 20px; fill: currentColor; }
.mlp-tg.mlp-on { background: var(--mlp-accent); border-color: var(--mlp-accent); color: #fff; }
.mlp-gap { width: 10px; }

/* interrupteur */
.mlp-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.mlp-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mlp-slider { width: 40px; height: 22px; border-radius: 11px; background: #cfd3d8; position: relative; transition: background .15s; flex: none; }
.mlp-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mlp-switch input:checked + .mlp-slider { background: var(--mlp-accent); }
.mlp-switch input:checked + .mlp-slider::after { transform: translateX(18px); }
.mlp-switch input:focus-visible + .mlp-slider { outline: 2px solid var(--mlp-accent); outline-offset: 2px; }

/* pictos */
.mlp-picto-group { border-bottom: 1px solid var(--mlp-line); padding: 8px 0; }
.mlp-picto-group summary { cursor: pointer; font-weight: 600; padding: 4px 0; list-style-position: outside; }
.mlp-pictos { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; padding-top: 8px; }
.mlp-picto { aspect-ratio: 1; border: 1px solid var(--mlp-line); border-radius: 8px; background: #fff; padding: 8px; display: flex; align-items: center; justify-content: center; }
.mlp-picto:hover { border-color: var(--mlp-accent); background: var(--mlp-accent-soft); }
.mlp-picto img { max-width: 100%; max-height: 100%; display: block; }

/* logo */
.mlp-drop {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; border: 2px dashed #b9bfc6; border-radius: var(--mlp-radius);
    cursor: pointer; text-align: center; color: var(--mlp-muted);
}
.mlp-drop:hover { border-color: var(--mlp-accent); color: var(--mlp-accent-dark); background: var(--mlp-accent-soft); }
.mlp-drop svg { width: 40px; height: 40px; fill: currentColor; }
.mlp-drop b { color: var(--mlp-text); }
.mlp-drop.mlp-busy { opacity: .6; pointer-events: none; }
.mlp-drop.mlp-busy b::after { content: " (envoi…)"; font-weight: 400; }

/* plusieurs plaques */
.mlp-table-wrap { overflow-x: auto; margin: 0 -4px; }
.mlp-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.mlp-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--mlp-muted); padding: 4px; white-space: nowrap; }
.mlp-table td { padding: 3px 4px; vertical-align: top; }
.mlp-table td:first-child { width: 26px; text-align: center; }
.mlp-table td:first-child .mlp-link { margin: 0; font-weight: 600; padding-top: 8px; }
.mlp-table textarea { min-width: 120px; padding: 6px 8px !important; font-size: 13px !important; resize: vertical; }
.mlp-table tr.mlp-on td { background: var(--mlp-accent-soft); }
.mlp-x { width: 28px; height: 28px; border: 0; background: none; color: var(--mlp-muted); font-size: 20px; border-radius: 6px; }
.mlp-x:hover { background: #fde8e8; color: var(--mlp-danger); }

/* ---------------- scène ---------------- */
.mlp-stage { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; background: var(--mlp-stage); }
.mlp-info {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 12px; color: var(--mlp-muted);
    background: rgba(255,255,255,.92); padding: 5px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none;
    max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis;
}
.mlp-info.mlp-on { opacity: 1; }
.mlp-info b { color: var(--mlp-text); }
.mlp-canvas { flex: 1; position: relative; min-height: 0; padding: 30px 16px 8px; }
#mlp-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; outline: 0; }

.mlp-plate-shadow { fill: rgba(0,0,0,.16); filter: blur(0.6px); }
.mlp-hole { fill: var(--mlp-stage); stroke: rgba(0,0,0,.35); stroke-width: .25; }
.mlp-margin { fill: none; stroke: rgba(30,120,200,.75); stroke-width: .3; stroke-dasharray: 1.6 1.2; vector-effect: non-scaling-stroke; }
#mlp-svg .mlp-margin { stroke-width: 1px; stroke-dasharray: 5 4; }
.mlp-preview .mlp-margin, .mlp-preview .mlp-dim-line, .mlp-preview .mlp-dim-text, .mlp-preview .mlp-bad-mark { display: none; }
.mlp-el { cursor: move; }
.mlp-hit { fill: transparent; }
.mlp-el.mlp-bad .mlp-hit { fill: rgba(198,40,40,.12); stroke: var(--mlp-danger); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
.mlp-preview .mlp-el.mlp-bad .mlp-hit { fill: transparent; stroke: none; }
.mlp-loading { opacity: .35; }
.mlp-dim-line { stroke: #8a929b; stroke-width: 1px; vector-effect: non-scaling-stroke; fill: none; }
.mlp-dim-text { fill: #5d6570; font-family: system-ui, sans-serif; }

/* sélection */
.mlp-sel-box { fill: none; stroke: var(--mlp-accent); stroke-dasharray: none; pointer-events: none; }
.mlp-handle { fill: #fff; stroke: var(--mlp-accent); }
.mlp-h-nw, .mlp-h-se { cursor: nwse-resize; }
.mlp-h-ne, .mlp-h-sw { cursor: nesw-resize; }
.mlp-h-w, .mlp-h-e { cursor: ew-resize; }
.mlp-rot-line { stroke: var(--mlp-accent); pointer-events: none; }
.mlp-rot { cursor: grab; }
.mlp-rot circle { fill: #fff; stroke: var(--mlp-accent); }
.mlp-rot-ico { stroke: var(--mlp-accent); pointer-events: none; }
.mlp-snap { stroke: #e0359b; stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; fill: none; pointer-events: none; }
.mlp-snap-c { stroke-dasharray: none; }

/* barre d'actions flottante */
.mlp-toolbar {
    position: absolute; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; background: #fff; border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.05); z-index: 3; white-space: nowrap;
}
.mlp-toolbar button { display: flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px; border: 0; background: none; border-radius: 7px; }
.mlp-toolbar button:hover:not(:disabled) { background: var(--mlp-bg); }
.mlp-toolbar button svg { width: 19px; height: 19px; fill: currentColor; }
.mlp-toolbar button[data-act=edit] { font-weight: 600; color: var(--mlp-accent-dark); }
.mlp-toolbar .mlp-danger { color: var(--mlp-danger); }
.mlp-toolbar .mlp-danger:hover { background: #fde8e8 !important; }

/* alertes sous la plaque */
.mlp-alerts { flex: none; padding: 0 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mlp-alerts:empty { display: none; }
.mlp-alerts > * { background: #fff4f4; color: var(--mlp-danger); border: 1px solid #f3c7c7; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.mlp-alerts ul { margin: 0; padding-left: 18px; }

/* ---------------- barre du bas ---------------- */
.mlp-bottom {
    flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--mlp-line); z-index: 4;
}
.mlp-recap { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; color: var(--mlp-muted); }
.mlp-recap b { color: var(--mlp-text); }
.mlp-recap > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlp-swatch { width: 34px; height: 24px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.mlp-buy { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mlp-price { text-align: right; line-height: 1.15; }
.mlp-price b { font-size: 20px; display: block; }
.mlp-price small { font-size: 11px; color: var(--mlp-muted); }
.mlp-qty { display: flex; align-items: center; border: 1px solid #cfd3d8; border-radius: 8px; overflow: hidden; }
.mlp-qty button { width: 36px; height: 40px; border: 0; background: #fff; font-size: 18px; }
.mlp-qty button:hover { background: var(--mlp-bg); }
.mlp-qty input { width: 48px; height: 40px; border: 0; border-left: 1px solid #e3e5e8; border-right: 1px solid #e3e5e8; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.mlp-qty input::-webkit-inner-spin-button, .mlp-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mlp-cart-btn {
    display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 10px;
    background: var(--mlp-accent); color: #fff !important; font-weight: 600; font-size: 15px;
}
.mlp-cart-btn:hover:not(:disabled) { background: var(--mlp-accent-dark); }
.mlp-cart-btn svg { width: 21px; height: 21px; fill: currentColor; }
.mlp-cart-btn.mlp-busy { opacity: .7; }

/* ---------------- fenêtres ---------------- */
.mlp-modal { position: fixed; inset: 0; background: rgba(20,24,28,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.mlp-modal-box { background: #fff; border-radius: 14px; padding: 22px 24px 18px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.mlp-modal-box h3 { margin: 0 0 12px; font-size: 18px; }
.mlp-modal-box h4 { margin: 16px 0 8px; font-size: 14px; }
.mlp-modal-box ul, .mlp-modal-box ol { padding-left: 20px; margin: 0 0 12px; }
.mlp-modal-box li { margin-bottom: 4px; }
.mlp-modal-box .mlp-warn { color: var(--mlp-warn); }
.mlp-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.mlp-keys { border-collapse: collapse; width: 100%; font-size: 13px; }
.mlp-keys td { padding: 4px 6px; border-bottom: 1px solid var(--mlp-line); }
.mlp-keys td:first-child { white-space: nowrap; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid #cfd3d8; border-bottom-width: 2px; border-radius: 5px; background: #f8f9fa; font: 12px system-ui, sans-serif; text-align: center; }

/* ---------------- écrans moyens ---------------- */
@media (max-width: 1200px) {
    :root { --mlp-rail-w: 72px; --mlp-panel-w: 330px; }
    .mlp-step { flex-direction: column; gap: 3px; padding: 10px 4px; border-left-width: 3px; text-align: center; }
    .mlp-step-label { font-size: 11px; font-weight: 500; line-height: 1.15; }
    .mlp-step-sub, .mlp-chev { display: none; }
}

/* ---------------- mobile ---------------- */
@media (max-width: 900px) {
    .mlp-top { height: 50px; padding: 0 6px; gap: 4px; }
    .mlp-shop, .mlp-btn-label, .mlp-back span { display: none; }
    .mlp-top-title { font-size: 15px; }
    .mlp-main { flex-direction: column; position: relative; }
    .mlp-stage { order: 0; flex: 1; }
    .mlp-canvas { padding: 26px 4px 4px; }
    .mlp-info { font-size: 11px; top: 4px; }
    .mlp-info span { display: none; }
    .mlp-rail {
        order: 2; width: auto; height: 60px; flex: none; display: flex; overflow-x: auto; overflow-y: hidden; padding: 0; border-right: 0; border-top: 1px solid var(--mlp-line);
        scrollbar-width: none;
    }
    .mlp-rail::-webkit-scrollbar { display: none; }
    .mlp-step { flex: 0 0 auto; width: 74px; border-left: 0; border-top: 3px solid transparent; padding: 7px 2px 6px; }
    .mlp-step.mlp-active { border-top-color: var(--mlp-accent); }
    .mlp-panel {
        order: 1; position: relative; width: auto; height: 50%; max-height: none; border-right: 0;
        border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.14); z-index: 6; margin-top: -12px;
    }
    .mlp-stage { min-height: 0; }
    body.mlp-panel-open .mlp-rail { position: relative; z-index: 7; }
    .mlp-panel-head { padding: 10px 10px 4px 16px; }
    .mlp-panel-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #d3d6da; }
    .mlp-panel-body { padding: 0 16px 16px; }
    .mlp-toolbar button span { display: none; }
    .mlp-toolbar button { height: 40px; min-width: 40px; }
    .mlp-bottom { padding: 8px 10px; gap: 8px; }
    .mlp-recap { display: none; }
    .mlp-buy { margin-left: 0; width: 100%; gap: 8px; }
    .mlp-price { text-align: left; margin-right: auto; }
    .mlp-price b { font-size: 18px; }
    .mlp-cart-btn { padding: 0 14px; font-size: 14px; }
    .mlp-qty button { width: 32px; }
    .mlp-qty input { width: 40px; }
}
@media (max-width: 400px) {
    .mlp-cart-btn svg { display: none; }
}
