/* Personnalisation coupé-cousu — charte Startner (crème, bleu nuit, or ; Cormorant Garamond + Jost). Tout est préfixé .scc. */
.scc { --scc-ink: #14213D; --scc-muted: #535A74; --scc-gold: #8C6A2E; --scc-gold2: #C8A96B; --scc-gold3: #E2CFA4; --scc-line: rgba(200,169,107,.45);
  margin: 26px 0 10px; color: var(--scc-ink); font-family: Jost, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
.scc *, .scc *::before, .scc *::after { box-sizing: border-box; }
.scc-head { margin-bottom: 14px; }
.scc-eb { display: inline-block; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--scc-gold); border: 1px solid var(--scc-line); border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.75); }
.scc-h { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: 36px; line-height: 1.08; margin: 12px 0 4px; color: var(--scc-ink); }
.scc-h em, .scc-h3 em { font-style: italic; color: var(--scc-gold); }
.scc-lead { color: var(--scc-muted); margin: 0; font-size: 14px; }
.scc-club { margin: 6px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--scc-gold); }
.scc-stage { position: relative; border-radius: 22px; padding: 20px 14px 12px; border: 1px solid transparent;
  background: radial-gradient(ellipse 72% 68% at 50% 36%, #FFFDF9 0%, #F5ECDE 52%, #E4D7C3 100%) padding-box, linear-gradient(140deg,#DCC48F 0%,#FFF7ED 45%,#DCCFEE 100%) border-box;
  box-shadow: 0 24px 46px -30px rgba(140,106,46,.45); }
.scc-duo { display: flex; justify-content: center; align-items: flex-end; gap: 2%; }
.scc-view { margin: 0; min-width: 0; text-align: center; }
.scc-view canvas { display: block; width: 100%; height: auto; cursor: zoom-in; }
.scc-view figcaption { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--scc-gold); font-weight: 600; margin-top: 4px; }
.scc:not(.ready) .scc-duo { min-height: 260px; }
.scc-wait { position: absolute; left: 0; right: 0; top: 45%; text-align: center; color: var(--scc-muted); font-size: 13px; }
.scc-wait[hidden] { display: none; }
.scc-auto { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--scc-gold); }
.scc-auto[hidden] { display: none; }
.scc-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--scc-gold2); animation: sccPulse 1.6s ease-in-out infinite; }
@keyframes sccPulse { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.scc-go { display: flex; justify-content: center; margin-top: 12px; }
.scc-go[hidden], .scc-edit[hidden] { display: none; }
.scc-go .scc-btn { padding: 14px 30px; font-size: 12px; }
.scc-logo { display: flex; justify-content: center; margin-top: 10px; }
.scc-logo svg { width: 120px; height: auto; color: var(--scc-gold); }
.scc-tabs { display: none; }
.scc-pieces { display: grid; gap: 12px; margin-top: 16px; }
.scc-piece { background: linear-gradient(180deg,#fff 0%,#FFFCF6 100%); border: 1px solid rgba(200,169,107,.32); border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 46px -34px rgba(140,106,46,.45); }
.scc-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.scc-ph h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 23px; margin: 0; color: var(--scc-ink); }
.scc-cn { font-size: 12.5px; color: var(--scc-muted); }
.scc-sub { color: var(--scc-muted); font-size: 12.5px; margin: 2px 0 10px; }
.scc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.scc-chip { font: 600 10.5px Jost, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(20,33,61,.25); background: rgba(255,255,255,.8); color: var(--scc-ink); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
span.scc-chip { cursor: default; }
.scc-chip.on { background: linear-gradient(135deg, var(--scc-gold2), var(--scc-gold3)); border-color: transparent; color: #0A1226; }
.scc-sws { display: flex; flex-wrap: wrap; gap: 7px; }
.scc-sw { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(20,33,61,.12); padding: 0; cursor: pointer; box-shadow: inset 0 -3px 6px rgba(0,0,0,.12), inset 0 2px 4px rgba(255,255,255,.35); }
.scc-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--scc-gold2), inset 0 -3px 6px rgba(0,0,0,.12); }
.scc-sw:focus-visible, .scc-chip:focus-visible, .scc-btn:focus-visible, .scc-vt:focus-visible { outline: 2px solid var(--scc-gold); outline-offset: 2px; }
.scc-free { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--scc-muted); cursor: pointer; }
.scc-free input { width: 44px; height: 30px; padding: 0 2px; border: 1px solid rgba(20,33,61,.2); border-radius: 999px; background: #fff; cursor: pointer; }
.scc-free.on input { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--scc-gold2); }
.scc-skin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.scc-skin:empty { display: none; }
.scc-skl { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--scc-gold); margin-right: 4px; }
.scc-sk { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px Jost, Arial, sans-serif; color: var(--scc-ink); background: rgba(255,255,255,.8); border: 1px solid rgba(20,33,61,.2); border-radius: 999px; padding: 5px 11px 5px 6px; cursor: pointer; }
.scc-sk i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(20,33,61,.15); }
.scc-sk.on { border-color: var(--scc-gold2); box-shadow: 0 0 0 1px var(--scc-gold2); }
.scc-recap { margin-top: 16px; background: linear-gradient(180deg,#fff 0%,#FFFCF6 100%); border: 1px solid rgba(200,169,107,.32); border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 46px -34px rgba(140,106,46,.45); }
.scc-h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: 30px; margin: 0 0 6px; }
.scc-recap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scc-recap td { padding: 8px 6px; border-bottom: 1px solid rgba(200,169,107,.32); vertical-align: middle; }
.scc-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; border: 1px solid rgba(20,33,61,.15); }
.scc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.scc-btn { font: 600 11.5px Jost, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(20,33,61,.6); background: rgba(255,255,255,.8); color: var(--scc-ink); padding: 12px 22px; border-radius: 999px; cursor: pointer; }
.scc-btn.gold { background: linear-gradient(135deg, var(--scc-gold2), var(--scc-gold3)); border-color: transparent; color: #0A1226; }
.scc-btn[disabled] { opacity: .6; cursor: wait; }
.scc-form { margin-top: 16px; border-top: 1px solid rgba(200,169,107,.32); padding-top: 14px; }
.scc-form[hidden] { display: none; }
.scc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.scc-form label { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--scc-gold); margin-bottom: 10px; }
.scc-form input, .scc-form textarea { display: block; width: 100%; margin-top: 5px; font: 400 15px Jost, Arial, sans-serif; letter-spacing: 0; text-transform: none; color: var(--scc-ink); background: #fff; border: 1px solid rgba(20,33,61,.22); border-radius: 12px; padding: 10px 12px; }
.scc-form input:focus, .scc-form textarea:focus { outline: none; border-color: var(--scc-gold2); box-shadow: 0 0 0 3px rgba(200,169,107,.25); }
.scc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.scc-note { font-size: 12.5px; color: var(--scc-muted); }
.scc-msg { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; color: var(--scc-muted); }
.scc-msg.ok { color: #2e6b3a; font-weight: 500; }
.scc-msg.err { color: #a33b2a; }
.scc-lb { position: fixed; inset: 0; z-index: 100000; background: radial-gradient(ellipse 70% 70% at 50% 40%, #FFFDF9 0%, #F3E9DA 60%, #DCCFBB 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scc-lb img { max-width: 92vw; max-height: 92vh; height: auto; transition: transform .25s ease; cursor: zoom-in; user-select: none; }
.scc-lb.zoom img { cursor: zoom-out; }
.scc-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: calc(env(safe-area-inset-right, 0px) + 18px); font: 600 12px Jost, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; background: #14213D; color: #F4EADB; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.scc-hint { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: #8C6A2E; }
/* téléphone : l'aperçu reste en haut de l'écran pendant qu'on choisit les coloris */
@media (max-width: 767px) {
  .scc-h { font-size: 30px; }
  .scc:not(.editing) .scc-stage { position: relative; }
  .scc-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4px); z-index: 20; padding: 8px 8px 6px; border-radius: 18px; }
  .scc-tabs { display: flex; justify-content: center; gap: 4px; margin: 0 auto 4px; padding: 3px; width: max-content; border: 1px solid var(--scc-line); border-radius: 999px; background: rgba(255,255,255,.85); }
  .scc-vt { font: 600 11px Jost, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; border: 0; border-radius: 999px; background: transparent; color: var(--scc-ink); padding: 6px 14px; cursor: pointer; }
  .scc-vt.on { background: linear-gradient(135deg, var(--scc-gold2), var(--scc-gold3)); color: #0A1226; }
  .scc-duo { display: block; }
  .scc-view:not(.on) { display: none; }
  .scc-view canvas { width: auto !important; max-width: 100%; height: 36vh; margin: 0 auto; }
  .scc-view figcaption, .scc-logo { display: none; }
  .scc-auto { margin-top: 2px; }
  .scc-sw { width: 34px; height: 34px; }
  .scc-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .scc-pulse { animation: none; } .scc-lb img { transition: none; } }

/* vitrine : toute la zone ouvre la personnalisation */
.scc:not(.editing) .scc-stage { cursor: pointer; }
.scc:not(.editing) .scc-view canvas { cursor: pointer; }
.scc .scc-go { display: flex !important; justify-content: center; width: 100%; margin: 14px 0 0; }
.scc .scc-go[hidden] { display: none !important; }
.scc .scc-auto { margin-top: 10px; }
.scc .scc-logo { margin-top: 12px; }
.scc .scc-btn { margin: 0; float: none; width: auto; }

/* fenêtre de personnalisation */
html.scc-lock, html.scc-lock body { overflow: hidden !important; }
.scc-modal { position: fixed; inset: 0; z-index: 99990; margin: 0; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #FBF2E2 0%, #F4EADB 70%); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.scc-modal.open { display: block; }
.scc-mbox { max-width: 1240px; margin: 0 auto; padding: 22px max(16px, 3vw) 40px; }
.scc-mh { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.scc-mh .scc-h { font-size: 40px; margin-top: 10px; }
.scc-mgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.scc-mleft { position: sticky; top: 16px; }
.scc-modal .scc-pieces { margin-top: 0; }
.scc-modal .scc-go, .scc-modal .scc-auto { display: none !important; }
.scc-modal .scc-stage { cursor: default; }
.scc-modal .scc-view canvas { cursor: zoom-in; }
@media (max-width: 860px) {
  .scc-mbox { padding: 12px 12px 30px; }
  .scc-mh { margin-bottom: 10px; }
  .scc-mh .scc-h { font-size: 28px; margin-top: 6px; }
  .scc-mgrid { display: block; }
  .scc-mleft { position: sticky; top: 0; z-index: 5; margin-bottom: 12px; }
  .scc-modal .scc-stage { position: relative; top: auto; }
  .scc-modal .scc-tabs { display: flex; }
  .scc-modal .scc-duo { display: block; }
  .scc-modal .scc-view:not(.on) { display: none; }
  .scc-modal .scc-view canvas { width: auto !important; max-width: 100%; height: 34vh; margin: 0 auto; }
  .scc-modal .scc-view figcaption, .scc-modal .scc-logo { display: none; }
}

/* ---------- présentation commune avec les modèles sublimés ---------- */
.scc-mhb { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; padding-top: 2px; }
.scc-btn { transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.scc-btn:hover { background: #fff; transform: translateY(-1px); }
.scc-btn.gold:hover { background: linear-gradient(135deg, var(--scc-gold2), var(--scc-gold3)); box-shadow: 0 10px 22px -14px rgba(140,106,46,.8); }
.scc-ghost { border-color: rgba(20,33,61,.22); display: inline-flex; align-items: center; gap: 6px; }
.scc-ghost span { font-size: 1.25em; letter-spacing: 0; line-height: 1; }
.scc-modal.open .scc-mbox { animation: sccIn .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sccIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scc-modal { overscroll-behavior: contain; }
.scc-sw { transition: transform .15s, box-shadow .2s; }
.scc-sw:hover { transform: scale(1.1); }
.scc-chip, .scc-sk { transition: background .25s, border-color .25s, box-shadow .25s; }
/* idées de couleurs */
.scc-igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.scc-idea { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 58px; padding: 9px 6px; border-radius: 14px;
  border: 1px solid rgba(20,33,61,.14); background: rgba(255,255,255,.9); color: var(--scc-ink); font: 500 11.5px Jost, Arial, sans-serif; letter-spacing: .02em; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.scc-idea:hover { border-color: var(--scc-gold2); transform: translateY(-1px); }
.scc-idea.on { border-color: transparent; box-shadow: 0 0 0 2px var(--scc-gold2); background: #fff; }
.scc-idea b { display: flex; padding-left: 2px; }
.scc-idea i { display: inline-block; width: 15px; height: 15px; border-radius: 50%; margin: 0 -2px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.scc-idea:focus-visible { outline: 2px solid var(--scc-gold); outline-offset: 2px; }
.scc:not(.editing) .scc-ideas { display: none; }
@media (max-width: 860px) {
  .scc-mh { flex-wrap: wrap; gap: 8px 12px; }
  .scc-mhb { order: -1; width: 100%; justify-content: space-between; }
  .scc-mhb .scc-btn { padding: 9px 16px; font-size: 10.5px; }
  .scc-igrid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .scc-modal.open .scc-mbox { animation: none; } }

.scc-mclub { margin: 4px 0 0; font-size: 13px; color: var(--scc-muted); max-width: 560px; }
.scc-modal:focus { outline: none; }
@media (max-width: 860px) { .scc-mclub { font-size: 12px; } }
