/* L'Empreinte de Pimousse — « Créer ma boîte » (reprend les couleurs et polices du site) */
[hidden] { display: none !important; }
.bx { max-width: 1240px; margin: 0 auto; padding: 0 16px 60px; }
.bx-hero { padding-bottom: 10px; }
.bx-grille { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .bx-grille { grid-template-columns: 1fr; } }

.bx-scene { position: sticky; top: 90px; background: radial-gradient(ellipse at 50% 35%, #2d1a0d 0%, #170d07 70%); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 900px) { .bx-scene { position: relative; top: 0; } }
.bx-3d { height: min(62vh, 560px); min-height: 300px; touch-action: none; }
.bx-3d canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.bx-3d canvas:active { cursor: grabbing; }
.bx-sans3d { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.bx-plan { height: min(62vh, 560px); min-height: 300px; overflow: auto; padding: 14px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-content: start; }
.bx-planche { margin: 0; }
.bx-planche svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.bx-planche path { fill: rgba(243, 190, 106, .14); stroke: #f3be6a; stroke-width: .9; vector-effect: non-scaling-stroke; }
.bx-planche .bx-plateau { fill: #e6cfa3; opacity: .08; stroke: #663b19; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.bx-planche figcaption { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }

.bx-onglets { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); }
.bx-onglets button, .bx-bascule button { flex: 1; background: transparent; border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 8px 12px; font: 600 13px var(--font-body, system-ui, sans-serif); cursor: pointer; }
.bx-onglets button[aria-pressed="true"], .bx-bascule button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a0f07; }
.bx-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.bx-ecarte { display: flex; white-space: nowrap; align-items: center; gap: 8px; }
.bx-astuce { margin-left: auto; font-size: 11.5px; opacity: .8; }
@media (max-width: 600px) { .bx-astuce { display: none; } }

.bx-reglages { display: flex; flex-direction: column; gap: 14px; }
.bx-carte { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px 18px; margin: 0; min-width: 0; }
.bx-carte legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.08rem; color: var(--text); }
.bx-carte legend + * { clear: both; }
.bx-etape { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.bx-bascule { display: flex; gap: 6px; margin-bottom: 12px; }

.bx-dim { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--text); }
.bx-dim label { color: var(--text-muted); font-size: 13px; }
.bx-num { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 12px; }
.bx input[type="number"] { width: 66px; background: #0d0704; border: 1px solid var(--border-light); color: var(--text); border-radius: 10px; padding: 7px 8px; font: 600 14px var(--font-body, system-ui, sans-serif); text-align: right; }
.bx input[type="number"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.bx input[type="range"] { accent-color: var(--gold); width: 100%; }

.bx-puces { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.bx-puce { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #0d0704; border: 1px solid var(--border); color: var(--text); border-radius: 14px; padding: 10px 12px; font: 600 13.5px var(--font-body, system-ui, sans-serif); cursor: pointer; transition: border-color .15s; }
.bx-puce small { font-weight: 400; font-size: 11.5px; color: var(--text-muted); }
.bx-puce:hover { border-color: var(--border-light); }
.bx-puce[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #23140a; }
.bx-ech { width: 100%; height: 16px; border-radius: 6px; margin-bottom: 6px; }
.bx-ech-peuplier { background: linear-gradient(90deg, #e6cfa3, #dcc08f 40%, #e9d4ab); }
.bx-ech-mdf { background: linear-gradient(90deg, #a9805a, #9e7550 50%, #ad8661); }
.bx-ech-bouleau { background: linear-gradient(90deg, #ead9b8, #e2cfaa); }
.bx-ech-noyer { background: linear-gradient(90deg, #7a5034, #6b4429); }

.bx-compte { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.bx-compte span { width: 96px; }
.bx-compte button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border-light); background: #23140a; color: var(--text); font-size: 18px; cursor: pointer; }
.bx-compte input { width: 52px !important; text-align: center !important; }
.bx-note { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 0; line-height: 1.45; }

.bx-recap { background: linear-gradient(135deg, rgba(38, 22, 12, .95), rgba(20, 12, 7, .95)); border: 1.5px solid rgba(196, 137, 58, .55); border-radius: 20px; padding: 16px 18px; }
.bx-recap dl { margin: 0 0 12px; display: grid; gap: 6px; }
.bx-recap dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.bx-recap dt { color: var(--text-muted); }
.bx-recap dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.bx-prix-ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.bx-prix-ligne .bq-prix { text-align: left; }
.bx-btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0c0a09; font-weight: 800; font-size: 14px; padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer; box-shadow: 0 4px 16px rgba(245, 158, 11, .35); }
.bx-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.bx-btn-sec { background: transparent; border: 1px solid var(--border-light); color: var(--gold-light); border-radius: 999px; padding: 7px 14px; font: 600 12.5px var(--font-body, system-ui, sans-serif); cursor: pointer; }
.bx-alerte { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; font-size: 12.5px; }
.bx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #23140a; border: 1px solid var(--gold); color: var(--text); padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

.bx-modeles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .bx-modeles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bx-modele { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #0d0704; border: 1px solid var(--border); color: var(--text); border-radius: 14px; padding: 10px 6px 9px; font: 600 12px/1.2 var(--font-body, system-ui, sans-serif); text-align: center; cursor: pointer; }
.bx-modele svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.bx-modele:hover { border-color: var(--border-light); }
.bx-modele[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #23140a; }
.bx-sous { font-size: 13px; color: var(--text-muted); margin: 12px 0 8px; }
.bx-champ:first-child .bx-sous { margin-top: 0; }
.bx-texte { display: grid; gap: 6px; font-size: 13px; color: var(--text-muted); }
.bx-texte input { background: #0d0704; border: 1px solid var(--border-light); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 18px; }
.bx-texte input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.bx-planche .bx-trait { fill: none; stroke: #f3be6a; stroke-width: .5; opacity: .7; }
.bx-planche text { fill: #8fb3ff; text-anchor: middle; dominant-baseline: central; }
.bx-planche path[fill-rule] { fill-rule: evenodd; }
.bx-puces .bx-puce[style] { font-size: 15px; }
.bx-grand { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(196, 137, 58, .12); border: 1px solid rgba(196, 137, 58, .45); color: var(--text); font-size: 12.8px; line-height: 1.5; }
.bx-grand b { color: var(--gold-light); }

.bx-rg-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bx-rg-p { background: #0d0704; border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 6px 11px; font: 600 12px var(--font-body, system-ui, sans-serif); cursor: pointer; }
.bx-rg-p:hover { border-color: var(--gold); }
.bx-rg-zone { position: relative; background: #0d0704; border: 1px solid var(--border); border-radius: 14px; padding: 10px 10px 22px; }
.bx-rg-zone svg { width: 100%; max-height: 300px; display: block; touch-action: none; }
.bx-rg-avant { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font: 500 10px var(--h-mono, monospace); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.bx-rg-fond { fill: #23140a; }
.bx-rg-bord { fill: none; stroke: #663b19; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bx-rg-case rect { fill: rgba(230, 207, 163, .10); stroke: none; cursor: pointer; transition: fill .12s; }
.bx-rg-case:hover rect { fill: rgba(243, 190, 106, .18); }
.bx-rg-case.on rect { fill: rgba(243, 190, 106, .35); }
.bx-rg-case text { fill: var(--text-muted); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-family: var(--font-body, system-ui, sans-serif); }
.bx-rg-case.on text { fill: #1a0f07; font-weight: 700; }
.bx-rg-sep { stroke: #e6cfa3; stroke-linecap: square; pointer-events: none; }
.bx-rg-prise { stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; }
.bx-rg-prise.x { cursor: ew-resize; } .bx-rg-prise.z { cursor: ns-resize; }
.bx-rg-actions { display: none; margin-top: 10px; gap: 8px; flex-direction: column; font-size: 13px; color: var(--text-muted); }
.bx-rg-actions.actif { display: flex; }
.bx-rg-ligne { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bx-rg-ligne button, .bx-rg-fus { background: #23140a; border: 1px solid var(--border-light); color: var(--text); border-radius: 10px; padding: 6px 12px; font: 600 13px var(--font-body, system-ui, sans-serif); cursor: pointer; }
.bx-rg-ligne button:hover { border-color: var(--gold); }
.bx-rg-fus { align-self: flex-start; color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: transparent; }
a.bx-modele { text-decoration: none; }
.bx-modele-autre { border-style: dashed; color: var(--gold-light); }
.bx-photo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bx-photo-btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0c0a09; font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 12px; cursor: pointer; }
.bx-photo-suppr { background: transparent; color: var(--gold-light); border: 1px solid var(--border-light); font-family: inherit; }
button.bx-photo-btn { font-family: inherit; border: 0; }
button.bx-photo-suppr { border: 1px solid var(--border-light); }
.bx-photo-ap { flex: 1; min-width: 120px; min-height: 64px; border: 1px dashed var(--border-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; overflow: hidden; }
.bx-photo-ap img { max-width: 100%; max-height: 120px; display: block; }
.bx-carte > legend ~ * { clear: both; }
.bx-champ { clear: both; }
/* 17/11/2026 : bannière « exemple réalisé » sous le choix du modèle */
.bx-exemple { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.bx-exemple a { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid rgba(224,168,78,.35); border-radius: 12px; background: rgba(224,168,78,.08); text-decoration: none; color: #d6c7b6; font-size: 12.5px; line-height: 1.35; }
.bx-exemple a:hover { background: rgba(224,168,78,.16); }
.bx-exemple img { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.bx-exemple b { display: block; color: var(--gold-light, #e0a84e); font-size: 12px; }
