/* =====================================================================
   KUYIR — configurateur de gravure (site marchand + caisse).
   Composant autonome (préfixe gc-), couleurs cuir. Chargé par la page
   « Graver » de la caisse et par le site (via media.php).
   ===================================================================== */
.gc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; }
@media (max-width: 860px) { .gc { grid-template-columns: 1fr; } }
.gc-apercu { position: sticky; top: 12px; }
.gc-scene { position: relative; border-radius: 14px; overflow: hidden; background: #3b2416; box-shadow: 0 10px 30px rgba(43,26,15,.25); }
.gc-photo { display: block; width: 100%; height: auto; }
.gc-zone { position: absolute; display: flex; align-items: center; justify-content: center; padding: 4px; border: 1px dashed rgba(216,184,119,.7); border-radius: 4px; transform-origin: 50% 50%; }
.gc-zone-lib { position: absolute; top: -9px; left: 6px; font: 600 9px/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: #24150c; color: #e2c27f; padding: 1px 5px; border-radius: 3px; }
.gc-texte { white-space: pre-wrap; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; font-family: Georgia, serif; }
.gc-texte.r-laser, .r-laser { color: #2f1c0e; text-shadow: 0 1px 0 rgba(255,255,255,.10), 0 -1px 1px rgba(0,0,0,.45); }
.gc-texte.r-laser-fonce, .r-laser-fonce { color: #170d05; font-weight: 600; text-shadow: 0 1px 0 rgba(255,255,255,.06), 0 -1px 1px rgba(0,0,0,.6); }
.gc-legende { font-size: .78rem; color: #7a6a5c; margin: 8px 0 0; }
.gc-panneau { display: flex; flex-direction: column; gap: 14px; }
.gc-etape { border: 1px solid #e3d5c2; border-radius: 12px; padding: 12px 14px; margin: 0; background: #fffdf9; min-width: 0; }
.gc-etape legend { font-weight: 700; padding: 0 6px; color: #3b2416; }
.gc-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8a5a32; color: #fff; font-size: .75rem; margin-right: 4px; }
.gc-etape select, .gc-etape textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 9px 11px; border: 1px solid #d6c3aa; border-radius: 9px; background: #fff; }
.gc-info { font-size: .82rem; color: #6d5c4d; margin: 6px 0 0; display: block; }
.gc-info input[type="range"] { width: 100%; margin-top: 6px; }
.gc-trop { color: #a3261b; font-weight: 700; }
.gc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-option { position: relative; cursor: pointer; }
.gc-option input { position: absolute; opacity: 0; pointer-events: none; }
.gc-option span { display: flex; flex-direction: column; gap: 2px; min-width: 92px; padding: 8px 11px; border: 1px solid #d6c3aa; border-radius: 10px; background: #fff; }
.gc-option small { font-size: .72rem; color: #7a6a5c; font-family: system-ui, sans-serif; }
.gc-option input:checked + span { border-color: #8a5a32; box-shadow: 0 0 0 2px #8a5a32 inset; background: #faf1e4; }
.gc-option input:focus-visible + span { outline: 2px solid #b8873b; outline-offset: 2px; }
.gc-option.gc-off { opacity: .4; cursor: not-allowed; }
.gc-trad { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #faf1e4; font-size: .85rem; }
.gc-pos { display: grid; grid-template-columns: repeat(3, 42px); gap: 4px; margin-top: 8px; }
.gc-pos label { position: relative; }
.gc-pos input { position: absolute; opacity: 0; }
.gc-pos span { display: grid; place-items: center; height: 36px; border: 1px solid #d6c3aa; border-radius: 8px; background: #fff; cursor: pointer; }
.gc-pos input:checked + span { background: #8a5a32; color: #fff; border-color: #8a5a32; }
.gc-recap { border-radius: 12px; padding: 14px; background: #2b1a0f; color: #f5eee1; }
.gc-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(245,238,225,.12); font-size: .9rem; }
.gc-total { font-weight: 700; font-size: 1.05rem; color: #e2c27f; border-bottom: 0; }
.gc-statut { font-size: .74rem; color: #cbb89c; margin: 6px 0 0; }
.gc-erreurs { color: #ffb4a8; font-size: .85rem; margin-top: 6px; }
