/* customize-proposals.css — styles for the two redesign proposals.
   A = .guided / .g-*   ·   B = .studio / .s-*   */

/* ============ shared bits ============ */
.linkbtn { background: none; border: none; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 4px 2px; }
.linkbtn:hover { text-decoration: underline; }

/* =========================================================
   PROPOSITION A — Parcours guidé
   ========================================================= */
.g-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.g-progress__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.g-progress__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.g-progress__txt { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.g-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 880px) { .g-layout { grid-template-columns: 1fr; } }

.g-steps { display: flex; flex-direction: column; gap: 14px; }
.g-step { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.g-step.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.g-step__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: none; cursor: pointer; text-align: left; }
.g-step__num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--surface-2); color: var(--ink-soft); transition: background .2s, color .2s; }
.g-step.is-open .g-step__num { background: var(--accent); color: var(--accent-ink); }
.g-step.is-done:not(.is-open) .g-step__num { background: #1c8a4d; color: #fff; }
.g-step__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-step__title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.g-step__sub { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-step.is-done:not(.is-open) .g-step__sub { color: var(--ink); }
.g-step__chev { flex: 0 0 auto; font-size: 22px; color: var(--ink-faint); transform: rotate(90deg); transition: transform .25s; }
.g-step__chev.is-open { transform: rotate(-90deg); }
.g-step__body { padding: 4px 20px 22px; }
.g-next { margin-top: 18px; }

/* packs */
.g-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .g-packs { grid-template-columns: 1fr; } }
.g-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.g-pack:hover { border-color: var(--ink-faint); }
.g-pack:active { transform: scale(.99); }
.g-pack.is-active { border-color: var(--accent); background: var(--accent-soft); }
.g-pack__count { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; background: var(--surface-2); color: var(--ink); }
.g-pack.is-active .g-pack__count { background: var(--accent); color: var(--accent-ink); }
.g-pack__name { font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.25; }
.g-pack__price { font-size: 12.5px; color: var(--ink-soft); }
.g-pack__tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; }
.g-pack__tag--popular { background: var(--accent); color: var(--accent-ink); }
.g-pack__tag--best { background: #1c8a4d; color: #fff; }

/* type cards */
.g-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .g-types { grid-template-columns: 1fr; } }
.g-type { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .1s; }
.g-type:hover { border-color: var(--ink-faint); }
.g-type:active { transform: scale(.99); }
.g-type.is-active { border-color: var(--accent); background: var(--accent-soft); }
.g-type__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.g-type.is-active .g-type__ic { background: var(--accent); color: var(--accent-ink); }
.g-type__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.g-type__help { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

/* unit tabs */
.g-unittabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.g-unittab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.g-unittab.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.g-unittab__ok { display: inline-flex; }

/* social card (A) */
.g-social { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); }
.g-social__head { display: flex; align-items: baseline; gap: 8px; }
.g-social__title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.g-social__opt { font-size: 11.5px; color: var(--ink-faint); }
.g-social__sub { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 12px; }
.g-social__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.g-social__ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.g-social__input { flex: 1; }

/* colors (A) */
.g-colorgroup__lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.g-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.g-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(0,0,0,.12); position: relative; transition: transform .1s; }
.g-swatch:hover { transform: scale(1.08); }
.g-swatch.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* sticky aside preview (A) */
.g-aside { position: sticky; top: 18px; }
@media (max-width: 880px) { .g-aside { position: static; } }
.g-preview { padding: 22px; }
.g-preview__kick { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-align: center; }
.g-preview__stage { display: grid; place-items: center; padding: 14px 0 6px; }
.g-preview__unit { text-align: center; font-size: 12px; color: var(--ink-faint); }
.g-preview__hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-top: 6px; text-align: center; }
.g-preview__line { display: flex; justify-content: space-between; align-items: baseline; }
.g-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.g-preview__priv { font-size: 11.5px; color: var(--ink-faint); line-height: 1.4; margin-top: 12px; text-align: center; }

/* =========================================================
   PROPOSITION B — Atelier visuel
   ========================================================= */
/* studio page is a touch wider so the 10-color rows fit on a single line */
.studio .container { max-width: 1260px; }
.s-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: start; }
@media (max-width: 940px) { .s-layout { grid-template-columns: 1fr; } }

/* stage */
.s-stage { position: sticky; top: 18px; }
@media (max-width: 940px) { .s-stage { position: static; } }
.s-stage__card { position: relative; border-radius: var(--r-xl); padding: 22px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.s-stage__top { display: flex; align-items: center; justify-content: space-between; }
.s-livechip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface-2); padding: 6px 12px; border-radius: 999px; }
.s-livedot { width: 7px; height: 7px; border-radius: 50%; background: #1c8a4d; box-shadow: 0 0 0 0 rgba(28,138,77,.5); animation: s-pulse 2s infinite; }
@keyframes s-pulse { 0% { box-shadow: 0 0 0 0 rgba(28,138,77,.45); } 70% { box-shadow: 0 0 0 7px rgba(28,138,77,0); } 100% { box-shadow: 0 0 0 0 rgba(28,138,77,0); } }
.s-unitcount { font-size: 12px; color: var(--ink-soft); }
.s-stage__glow { display: grid; place-items: center; padding: 20px 0 14px; margin-top: 14px; }

/* verre — translucent glass panel behind the 3D preview, boosts contrast */
.s-stage__glow.is-glass { position: relative; border-radius: 22px; overflow: hidden; }
.s-stage__glow.is-glass > * { position: relative; z-index: 1; }
.s-stage__glow.is-glass::before { content: ""; position: absolute; inset: 0; z-index: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); border-radius: inherit; }
.s-stage__glow.is-glass--clair::before {
  background: linear-gradient(165deg, rgba(255,255,255,.55), rgba(235,238,244,.25));
  border-color: rgba(0,0,0,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.s-stage__glow.is-glass--sombre::before {
  background: linear-gradient(165deg, rgba(30,33,40,.30), rgba(30,33,40,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

/* ---- 3D tag stage ---- */
.tagstage { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.tagstage__toggle { position: absolute; top: -4px; right: 0; z-index: 2; display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.tagstage__toggle button { border: none; background: none; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); padding: 4px 11px; border-radius: 999px; transition: background .15s, color .15s; }
.tagstage__toggle button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.tagstage__hint { display: flex; align-items: center; gap: 9px; margin-top: 2px; font-size: 12px; color: var(--ink-faint); }
.tagstage__rv { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--accent); }
.tagstage__rv::before { content: "⟳"; font-size: 13px; }
.s-units { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; }
.s-unitthumb { padding: 4px; border-radius: 11px; border: 1.5px solid transparent; background: rgba(255,255,255,.7); cursor: pointer; line-height: 0; transition: border-color .15s; }
.s-unitthumb.is-active { border-color: var(--accent); }
.s-copyall { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.7); cursor: pointer; font-size: 15px; color: var(--ink-soft); }
.s-copyall:hover { color: var(--ink); }

.s-tray { background: var(--surface-2); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.s-colorrow { display: flex; align-items: flex-start; gap: 14px; }
.s-colorrow__lbl { flex: 0 0 46px; font-size: 12.5px; font-weight: 600; color: var(--ink); padding-top: 6px; }
.s-swatches { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.s-swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(0,0,0,.14); transition: transform .1s; }
.s-swatch:hover { transform: scale(1.1); }
.s-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.s-scanhint { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* form */
.studio { background: var(--surface-2); }
.s-form { display: flex; flex-direction: column; gap: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 26px; }
@media (max-width: 940px) { .s-form { padding: 20px; } }
.s-block__label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 11px; }

.s-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .s-packs { grid-template-columns: 1fr; } }
.s-pack { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.s-pack:hover { border-color: var(--ink-faint); }
.s-pack.is-active { border-color: var(--accent); background: var(--accent-soft); }
.s-pack__name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.s-pack__price { font-size: 12.5px; color: var(--ink-soft); }
.s-pack__tag { position: absolute; top: -9px; left: 12px; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.s-pack__tag--popular { background: var(--accent); color: var(--accent-ink); }
.s-pack__tag--best { background: #1c8a4d; color: #fff; }

/* icon tabs */
.s-tabs { display: flex; gap: 8px; background: var(--surface-2); padding: 5px; border-radius: 14px; }
@media (max-width: 460px) { .s-tabs { flex-direction: column; } }
.s-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border: none; background: none; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: background .15s, color .15s; }
.s-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* social (B) */
.s-social { margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); }
.s-social__head { display: flex; align-items: baseline; gap: 8px; }
.s-social__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.s-social__opt { font-size: 11.5px; color: var(--ink-faint); }
.s-social__sub { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 14px; }
.s-social__rows { display: flex; flex-direction: column; gap: 11px; }
.s-social__row { display: flex; align-items: center; gap: 12px; }
.s-social__chip { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.s-social__field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.s-social__name { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.s-social__input { padding: 9px 12px; }

/* sticky checkout (B) */
.s-checkout { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-top: 1px solid var(--line); margin-top: 30px; }
.s-checkout__in { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.s-checkout__info { flex: 1; min-width: 0; }
.s-checkout__name { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-checkout__total { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.1; }
