
:root {
  --cream: #ffffff;
  --cream-2: oklch(97% 0.008 85);
  --ink: oklch(18% 0.025 250);
  --ink-soft: oklch(40% 0.02 250);
  --ink-mute: oklch(58% 0.015 250);
  --rule: oklch(90% 0.008 85);
  --green-v2: oklch(48% 0.13 152);
  --green-soft: oklch(94% 0.04 152);
  --terra: oklch(62% 0.14 40);
  --terra-soft: oklch(95% 0.03 40);
  --indigo: oklch(60% 0.14 280);
  --indigo-soft: oklch(95% 0.03 280);
  --amber: oklch(70% 0.14 75);
  --amber-soft: oklch(95% 0.035 75);
  /* tweakable rhythm vars (density) */
  --photo-h: 172px;
  --opt-gap: 14px;
  --opt-gap-big: 18px;
  --card-pad-y: 22px;
  --card-pad-x: 20px;
  --field-pad: 26px 28px;
  --q-size: clamp(26px, 3.4vw, 38px);
}
html, body { background: #ffffff; }
body { color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }

/* nav */
.site-nav { background: rgba(255,255,255,0.9) !important; border-bottom: 1px solid var(--rule) !important; }
.nav-logo { color: var(--ink) !important; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -0.8px; }
.nav-logo span { color: #326534 !important; }
.nav-links a { color: var(--ink-soft) !important; }
.nav-links a:hover, .nav-links a.active { color: var(--ink) !important; }
.btn-ink {
  background: var(--ink); color: var(--cream); padding: 14px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s, background .2s; border: none; cursor: pointer;
}
.btn-ink:hover { background: oklch(28% 0.04 250); transform: translateY(-1px); }
.btn-ink .arrow { font-family: 'Newsreader', serif; font-style: italic; font-size: 18px; }
.btn-ghost {
  background: transparent; color: var(--ink); padding: 13px 22px; border-radius: 100px; border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, color .2s; cursor: pointer;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-green-v2 {
  background: var(--green-v2); color: white; padding: 14px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s, opacity .2s; border: none; cursor: pointer;
}
.btn-green-v2:hover { opacity: 0.92; transform: translateY(-1px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-mute);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink-mute); }
.eyebrow.green { color: var(--green-v2); }
.eyebrow.green::before { background: var(--green-v2); }
.display { font-family: 'Bricolage Grotesque', sans-serif; font-variation-settings: "wdth" 95; font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }

/* ── HEADER ── */
/* Maquette : 116px avec nav fixe par-dessus (76px) → ~40px visibles. Le body WP
   porte déjà padding-top:68px (site.css) → 40px ici pour la même marge visuelle. */
.sc-head { max-width: 1400px; margin: 0 auto; padding: 40px 32px 0; }
.sc-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-mute); text-decoration: none; margin-bottom: 14px; }
.sc-back:hover { color: var(--ink); }
.sc-head h1 { font-size: clamp(34px, 5vw, 60px); margin: 8px 0 16px; }
.sc-head h1 em { font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; color: var(--green-v2); }
.sc-head p { font-size: 17px; color: var(--ink-soft); max-width: 640px; line-height: 1.65; }

/* ── PROGRESS ── */
.sc-progress { max-width: 1400px; margin: 36px auto 0; padding: 0 32px; }
.sc-progress-track { display: flex; gap: 6px; }
.sc-progress-seg { flex: 1; display: flex; flex-direction: column; gap: 9px; cursor: pointer; }
.sc-progress-bar { height: 4px; border-radius: 100px; background: var(--rule); transition: background .3s; }
.sc-progress-seg.done .sc-progress-bar, .sc-progress-seg.active .sc-progress-bar { background: var(--green-v2); }
.sc-progress-lbl { font-size: 11.5px; font-weight: 600; color: var(--ink-mute); letter-spacing: 0.2px; display: flex; align-items: center; gap: 6px; }
.sc-progress-seg.active .sc-progress-lbl { color: var(--ink); }
.sc-progress-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 11px; }
@media (max-width: 760px) { .sc-progress-lbl span:last-child { display: none; } }

/* ── LAYOUT ── */
.sc-layout {
  max-width: 1400px; margin: 0 auto; padding: 40px 32px 100px;
  display: grid; grid-template-columns: 1fr 376px; gap: 48px; align-items: start;
}

/* ── STAGE / STEP PANELS ── */
.sc-stage { min-height: 460px; position: relative; min-width: 0; }
.sc-layout > * { min-width: 0; }
.sc-step { display: none; animation: scIn .4s ease; padding: 0; }
.sc-step.active { display: block; }
@keyframes scIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.sc-step-kicker { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 13px; color: var(--green-v2); letter-spacing: 0.4px; }
.sc-step-q { font-family: 'Bricolage Grotesque', sans-serif; font-variation-settings: "wdth" 95; font-weight: 800; font-size: var(--q-size); letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 8px; text-wrap: balance; }
.sc-step-q em { font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; color: var(--green-v2); }
.sc-step-help { font-size: 15px; color: var(--ink-soft); line-height: 1.6; max-width: 560px; margin-bottom: 28px; }

/* option cards */
.sc-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--opt-gap); }
.sc-options.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.sc-options.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-opt {
  border: 1.5px solid var(--rule); border-radius: 22px; background: #fff; padding: 28px 24px 26px; cursor: pointer;
  text-align: left; transition: border-color .25s, transform .25s cubic-bezier(.2,.8,.3,1.3), box-shadow .3s; position: relative; font-family: inherit;
  box-shadow: 0 1px 2px oklch(20% 0.02 250 / 0.05), 0 10px 24px oklch(20% 0.02 250 / 0.05);
}
.sc-opt:hover { border-color: transparent; transform: translateY(-6px) scale(1.015); box-shadow: 0 1px 2px oklch(20% 0.02 250 / 0.06), 0 22px 40px oklch(20% 0.02 250 / 0.14); }
/* Hover cohérent : le reset boutons de Hello passe le fond en rose au survol.
   On réaffirme le fond blanc des cartes + le fond du bouton « Précédent ». */
.sc-opt:hover, .sc-opt:focus { background: #fff; }
.sc-opt-big:hover, .sc-opt-big:focus { background: transparent; }
.sc-prev:hover, .sc-prev:focus { background: none; }
.btn-green-v2:hover { background-color: var(--green-v2); }
.sc-opt:active { transform: translateY(-3px) scale(1.005); }
.sc-opt.sel { border-color: transparent; box-shadow: 0 0 0 2px var(--green-v2), 0 16px 34px oklch(48% 0.13 152 / 0.16); }
.sc-opt.sel:hover { transform: translateY(-6px) scale(1.015); }
.sc-opt.sel::after { content: '✓'; position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--green-v2); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 4px 10px oklch(48% 0.13 152 / 0.35), 0 0 0 3px #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sc-opt-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.3,1.3), background .25s, color .25s; box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.6), inset 0 -1px 2px oklch(20% 0.02 250 / 0.06); }
.sc-opt-ic svg { width: 26px; height: 26px; }
/* Correctif intégration WP : le span icône était rendu inline (icône collée en
   haut-gauche). On force le carré centré. */
.sc-opt > .sc-opt-ic {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 52px; height: 52px; flex: 0 0 auto; box-sizing: border-box; padding: 0;
}
.sc-opt > .sc-opt-ic > svg { width: 26px; height: 26px; flex: 0 0 auto; }
.sc-opt:hover .sc-opt-ic { transform: scale(1.08) rotate(-4deg); }
.sc-options.four .sc-opt:nth-child(1) .sc-opt-ic { background: var(--green-soft); color: var(--green-v2); }
.sc-options.four .sc-opt:nth-child(2) .sc-opt-ic { background: var(--indigo-soft); color: var(--indigo); }
.sc-options.four .sc-opt:nth-child(3) .sc-opt-ic { background: var(--terra-soft); color: var(--terra); }
.sc-options.four .sc-opt:nth-child(4) .sc-opt-ic { background: var(--amber-soft); color: var(--amber); }
.sc-opt.sel .sc-opt-ic { background: var(--green-soft); color: var(--green-v2); }
.sc-opt b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sc-opt span { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 6px; line-height: 1.5; }

/* ── REUSABLE GLOW/TILT EFFECT (same as ROI card & recap sidebar) ── */
@property --fx-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.fx-glow {
  position: relative; isolation: isolate;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1);
}
.fx-glow::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: calc(var(--fx-r, 18px) + 1.5px);
  padding: 2px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--fx-angle),
    transparent 0deg, transparent 250deg,
    color-mix(in oklch, var(--green-v2) 40%, transparent) 300deg,
    var(--green-v2) 345deg, var(--green-v2) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-border-run 4s linear infinite;
}
.fx-glow-halo {
  content: ''; position: absolute; inset: -1.5px; border-radius: calc(var(--fx-r, 18px) + 1.5px);
  padding: 2px; pointer-events: none; z-index: 1; filter: blur(6px); opacity: .75;
  background: conic-gradient(from var(--fx-angle),
    transparent 0deg, transparent 315deg,
    var(--green-v2) 345deg, var(--green-v2) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-border-run 4s linear infinite;
}
@keyframes fx-border-run { to { --fx-angle: 360deg; } }
.fx-glow.is-tilting { transition: box-shadow .35s cubic-bezier(.22,1,.36,1); }
.fx-glow:hover { box-shadow: 0 24px 46px oklch(18% 0.04 250 / .16); }
.fx-glow:hover::before, .fx-glow:hover .fx-glow-halo { animation-duration: 2.2s; }
.sc-opt-big.fx-glow { --fx-r: 22px; }
.sc-model.fx-glow { --fx-r: 16px; }
.sc-toggle-card.fx-glow { --fx-r: 18px; }
@media (prefers-reduced-motion: reduce) {
  .fx-glow, .fx-glow.is-tilting { transform: none !important; transition: box-shadow .35s ease; }
  .fx-glow::before, .fx-glow-halo { animation: none; background: linear-gradient(var(--green-v2), var(--green-v2)); }
  .fx-glow-halo { display: none; }
}

/* big solution cards with flagship product photo */
.sc-options.sc-options-big { gap: var(--opt-gap-big); }
.sc-opt-big { padding: 0 0 22px; overflow: visible; display: flex; flex-direction: column; }
.sc-opt-photo { height: var(--photo-h); background: #fff; border-bottom: 1px solid var(--rule); border-radius: 20.5px 20.5px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; transition: background .2s; }
.sc-opt-big.sel .sc-opt-photo { background: #fff; }
.sc-opt-photo img { max-height: 80%; max-width: 62%; object-fit: contain; }
.sc-opt-photo-duo img { max-width: 44%; }
.sc-opt-big b { padding: 0 20px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sc-opt-big > span { padding: 0 20px; }
.sc-opt-phare { display: block; margin: 12px 20px 0; padding-top: 12px; border-top: 1px solid var(--rule); font-family: 'Roboto Mono', monospace; font-size: 10.5px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--green-v2); font-style: normal; }

/* slider control */
/* max-width 620 restauré (retour client 23/07) : sur la maquette, les cartes
   modèles, le champ bases et le champ unités font la largeur des blocs note/
   toggle ; seule la rangée « Format de stockage collectif » est pleine largeur. */
.sc-field { background: var(--cream-2); border: 1px solid var(--rule); border-radius: 20px; padding: var(--field-pad); max-width: 620px; }
.sc-field + .sc-field { margin-top: 16px; }
.sc-field-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.sc-field-top label { font-size: 14px; font-weight: 700; color: var(--ink); }
.sc-field-val { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 34px; color: var(--green-v2); letter-spacing: -0.03em; line-height: 1; }
.sc-field-val small { font-size: 13px; color: var(--ink-mute); font-weight: 600; margin-left: 4px; }
input[type=range].sc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; background: oklch(88% 0.01 250); outline: none; margin: 4px 0; }
input[type=range].sc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-v2); cursor: pointer; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
input[type=range].sc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--green-v2); cursor: pointer; border: 4px solid #fff; }
.sc-range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute); margin-top: 8px; font-family: 'Roboto Mono', monospace; }
.sc-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 100px; overflow: hidden; background: #fff; }
.sc-stepper button { width: 46px; height: 48px; border: none; background: #fff; cursor: pointer; font-size: 22px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.sc-stepper button:hover { background: var(--cream-2); }
.sc-stepper input { width: 96px; height: 48px; border: none; border-left: 1.5px solid var(--rule); border-right: 1.5px solid var(--rule); text-align: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; color: var(--ink); outline: none; padding: 0 6px; -moz-appearance: textfield; box-sizing: border-box; }
.sc-stepper input::-webkit-outer-spin-button, .sc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-note { display: flex; gap: 12px; background: var(--green-soft); border-radius: 14px; padding: 14px 18px; margin-top: 18px; font-size: 13.5px; color: var(--ink); line-height: 1.55; max-width: 620px; }
.sc-note svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green-v2); margin-top: 1px; }
.sc-note b { color: var(--ink); }

/* toggle row */
.sc-toggle-card { display: flex; align-items: center; gap: 18px; border: 1.5px solid var(--rule); border-radius: 18px; padding: 20px 22px; background: #fff; max-width: 620px; cursor: pointer; transition: border-color .2s; }
.sc-toggle-card:hover { border-color: var(--ink-mute); }
.sc-toggle-card.on { border-color: var(--green-v2); box-shadow: 0 0 0 1px var(--green-v2); }
.sc-toggle-card img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--rule); padding: 5px; flex-shrink: 0; }
.sc-toggle-card .tc-txt { flex: 1; }
.sc-toggle-card .tc-txt b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.sc-toggle-card .tc-txt span { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 3px; line-height: 1.45; }
.sc-switch { width: 50px; height: 28px; border-radius: 100px; background: oklch(85% 0.01 250); position: relative; transition: background .2s; flex-shrink: 0; }
.sc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sc-toggle-card.on .sc-switch { background: var(--green-v2); }
.sc-reglement-card.on .sc-switch { background: var(--green-v2); }
.sc-toggle-card.on .sc-switch::after { transform: translateX(22px); }
.sc-reglement-card.on .sc-switch::after { transform: translateX(22px); }
.sc-sub { margin-top: 18px; max-width: 620px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .3s; }
.sc-sub.show { opacity: 1; max-height: 400px; }
.sc-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--cream-2); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 20px; }
.sc-sub-row label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.sc-sub-row label small { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 500; margin-top: 2px; }

/* logo embed (step perso) */
.sc-perso { display: none; margin-top: 22px; }
.sc-perso.show { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.sc-model-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
/* trois choix côte à côte (modèle de pochette, format collectif) — était en style
   inline sur le markup, ce qui rendait toute surcharge responsive impossible */
.sc-model-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.sc-model { border: 1.5px solid var(--rule); border-radius: 16px; background: #fff; padding: 14px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; display: flex; gap: 12px; align-items: center; font-family: inherit; text-align: left; }
.sc-model:hover, .sc-model:focus { background: #fff; border-color: var(--ink-mute); }
.sc-model.sel { border-color: var(--green-v2); box-shadow: 0 0 0 1px var(--green-v2); }
.sc-model.sel:hover { background: #fff; border-color: var(--green-v2); }
.sc-model img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sc-model b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; }
.sc-model span { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.sc-model-note { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 4px; line-height: 1.4; opacity: .85; }
/* studio de personnalisation ARATICE : lanceur + résultat + overlay iframe */
.sc-perso-studio.show { display: block; }
.sc-studio-launch { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 24px; }
.sc-studio-copy { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.sc-studio-copy > svg { width: 32px; height: 32px; color: var(--green-v2); flex-shrink: 0; margin-top: 2px; }
.sc-studio-copy b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.sc-studio-copy span { display: block; font-size: 13px; color: var(--ink-mute); line-height: 1.55; }
.sc-studio-open { font-size: 14px; }
.sc-studio-result { display: flex; gap: 16px; align-items: center; margin-top: 14px; background: var(--green-soft); border: 1px solid var(--green-v2); border-radius: 20px; padding: 16px 20px; }
.sc-studio-result img { width: 86px; height: auto; border-radius: 12px; border: 1px solid var(--rule); background: #fff; flex-shrink: 0; }
.sc-studio-result-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-studio-result-meta b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-studio-result-meta span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.sc-studio-edit { font-size: 12.5px; padding: 8px 16px; margin-top: 8px; align-self: flex-start; }
.sc-studio-overlay { position: fixed; inset: 0; z-index: 10050; background: #0c1118; display: none; }
.sc-studio-overlay.open { display: block; }
.sc-studio-overlay iframe { width: 100%; height: 100%; border: 0; display: block; }

/* règlement step */
.sc-reglement-card { border: 1.5px solid var(--rule); border-radius: 18px; overflow: hidden; max-width: 620px; }
.sc-reglement-card .rc-top { display: flex; align-items: center; gap: 18px; padding: 22px; cursor: pointer; transition: background .2s; }
.sc-reglement-card.on { border-color: var(--green-v2); box-shadow: 0 0 0 1px var(--green-v2); }
.sc-reglement-card .rc-ic { width: 50px; height: 50px; border-radius: 13px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.sc-reglement-card.on .rc-ic { background: var(--green-soft); color: var(--green-v2); }
.sc-reglement-card .rc-ic svg { width: 24px; height: 24px; }
.sc-reglement-card .rc-txt { flex: 1; }
.sc-reglement-card .rc-txt b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.sc-reglement-card .rc-txt span { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 3px; line-height: 1.45; }
.sc-reglement-preview { border-top: 1px solid var(--rule); background: var(--cream-2); padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .35s, padding .35s; }
.sc-reglement-card.on .sc-reglement-preview { max-height: 360px; padding: 22px; }
.sc-reglement-preview h5 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-mute); margin-bottom: 10px; }
.sc-reglement-preview p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; font-family: 'Newsreader', serif; font-style: italic; }
.sc-reglement-preview .rc-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sc-reglement-preview .rc-actions a, .sc-reglement-preview .rc-actions button { font-size: 12.5px; padding: 9px 16px; }

/* nav buttons */
.sc-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 620px; }
.sc-stage .sc-nav { max-width: none; }
.sc-prev { background: none; border: none; color: var(--ink-mute); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; padding: 8px 0; }
.sc-prev:hover { color: var(--ink); }
.sc-prev:disabled { opacity: 0; pointer-events: none; }

/* ── SUMMARY SIDEBAR ── */
.sc-summary {
  position: sticky; top: 92px; border-radius: 24px; background: #fff;
  box-shadow: 0 30px 70px oklch(18% 0.04 250 / 0.13);
  transform-style: preserve-3d; will-change: transform;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1);
}
@property --sum-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.sc-summary::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: 25.5px;
  padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--sum-angle),
    transparent 0deg, transparent 250deg,
    color-mix(in oklch, var(--green-v2) 40%, transparent) 300deg,
    var(--green-v2) 345deg, var(--green-v2) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sum-border-run 4s linear infinite;
}
.sc-summary::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 25.5px;
  padding: 2px; pointer-events: none; z-index: 2; filter: blur(6px); opacity: .75;
  background: conic-gradient(from var(--sum-angle),
    transparent 0deg, transparent 315deg,
    var(--green-v2) 345deg, var(--green-v2) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sum-border-run 4s linear infinite;
}
@keyframes sum-border-run { to { --sum-angle: 360deg; } }
.sc-summary.is-tilting { transition: box-shadow .35s cubic-bezier(.22,1,.36,1); }
.sc-summary:hover { box-shadow: 0 44px 90px oklch(18% 0.04 250 / 0.20); }
.sc-summary:hover::before, .sc-summary:hover::after { animation-duration: 2.2s; }
.sc-summary > * { transform: translateZ(28px); }
@media (prefers-reduced-motion: reduce) {
  .sc-summary, .sc-summary.is-tilting { transform: none !important; transition: box-shadow .35s ease; }
  .sc-summary > * { transform: none; }
  .sc-summary::before, .sc-summary::after { animation: none; background: linear-gradient(var(--green-v2), var(--green-v2)); }
  .sc-summary::after { display: none; }
}
.sc-summary-head { background: var(--ink); padding: 22px 24px; color: #fff; border-radius: 22.5px 22.5px 0 0; }
.sc-summary-head .kk { font-family: 'Bricolage Grotesque', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; color: oklch(72% 0.10 152); text-transform: uppercase; }
.sc-summary-head h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.sc-summary-head h3 em { font-family: 'Newsreader', serif; font-style: italic; font-weight: 500; color: oklch(75% 0.10 152); }
.sc-summary-body { padding: 20px 24px; }
.sc-reco-img { width: 100%; height: 120px; background: var(--cream-2); border-radius: 14px; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; overflow: hidden; }
.sc-reco-img img { max-width: 76%; max-height: 90%; object-fit: contain; }
.sc-reco-img.duo img { max-width: 44%; }
.sc-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sc-line:last-of-type { border-bottom: none; }
.sc-line .sc-line-l { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.sc-line .sc-line-l b { display: block; color: var(--ink); font-weight: 700; font-size: 14px; font-family: 'Bricolage Grotesque', sans-serif; }
.sc-line .sc-line-r { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; text-align: right; }
.sc-line .sc-line-r .free { color: var(--green-v2); font-size: 12px; }
.sc-line.muted .sc-line-l, .sc-line.muted .sc-line-r { color: var(--ink-mute); }
.sc-total { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; align-items: baseline; justify-content: space-between; }
.sc-total .tl { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; }
.sc-total .tr { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; color: var(--ink); letter-spacing: -0.03em; }
.sc-total .tr small { font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.sc-summary-cta { padding: 0 24px 24px; }
.sc-summary-cta .btn-green-v2 { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
.sc-summary-cta .micro { font-size: 11.5px; color: var(--ink-mute); text-align: center; margin-top: 10px; line-height: 1.5; }
.sc-empty { font-size: 13.5px; color: var(--ink-mute); line-height: 1.6; font-style: italic; font-family: 'Newsreader', serif; }

/* ── FINAL RECAP STEP ── */
.sc-recap { display: none; padding: 0; }
.sc-recap.active { display: block; animation: scIn .4s ease; }
.sc-recap-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin: 26px 0 0; }
.sc-recap-card { border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px; }
.sc-recap-card h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-mute); margin-bottom: 14px; }
.sc-recap-spec { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--rule); }
.sc-recap-spec:last-child { border-bottom: none; }
.sc-recap-spec .l { color: var(--ink-soft); }
.sc-recap-spec .r { font-weight: 700; color: var(--ink); text-align: right; }
/* Reset Hello (@layer) : un layer ne tranche que les CONFLITS — les props que
   la maquette ne déclare pas passent quand même. Sur cette table, le reset
   apportait bordures de cellules grises, zébrage nth-child, fond au survol et
   margin-bottom — d'où le rendu « tableur » signalé par le client (23/07).
   On neutralise explicitement pour retrouver la maquette. */
.sc-devis-table td, .sc-devis-table th { border: none; }
.sc-devis-table tbody > tr:nth-child(odd) > td,
.sc-devis-table tbody > tr:nth-child(odd) > th,
.sc-devis-table tbody tr:hover > td,
.sc-devis-table tbody tr:hover > th { background-color: transparent; }
.sc-devis-table { width: 100%; border-collapse: collapse; margin-top: 26px; margin-bottom: 0; font-size: 14px; }
.sc-devis-table th { text-align: left; background: var(--ink); color: #fff; padding: 13px 18px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.3px; }
.sc-devis-table th.num { text-align: right; }
.sc-devis-table th.ctr { text-align: center; }
.sc-devis-table td { padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.sc-devis-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sc-devis-table td.ctr { text-align: center; }
.sc-devis-table td .nm { font-weight: 700; color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; }
.sc-devis-table td .op { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.sc-devis-table tr.free td.num { color: var(--green-v2); font-weight: 700; }
.sc-devis-table .grand td { border-bottom: none; }
.sc-devis-wrap { border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.sc-devis-totals { display: flex; justify-content: flex-end; padding: 18px 24px; background: var(--cream-2); }
.sc-devis-totals .box { min-width: 280px; }
.sc-tl { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--ink-soft); }
.sc-tl.grand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.sc-recap-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.sc-recap-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.sc-extra-card { border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; }
.sc-extra-card.dark { background: var(--ink); border-color: var(--ink); }
.sc-extra-card .ec-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--green-soft); color: var(--green-v2); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sc-extra-card.dark .ec-ic { background: oklch(30% 0.04 250); color: oklch(75% 0.10 152); }
.sc-extra-card .ec-ic svg { width: 22px; height: 22px; }
.sc-extra-card h5 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.sc-extra-card.dark h5 { color: #fff; }
.sc-extra-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.sc-extra-card.dark p { color: oklch(78% 0.02 250); }

.sc-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 100px; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999; display: flex; align-items: center; gap: 9px; }
.sc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .sc-layout { grid-template-columns: 1fr; gap: 28px; }
  .sc-summary { position: static; order: -1; }
  .sc-perso.show { grid-template-columns: 1fr; }
  .sc-studio-result { flex-direction: column; align-items: flex-start; }
  .sc-options { grid-template-columns: 1fr 1fr; }
  .sc-options.four { grid-template-columns: 1fr 1fr; }
  .sc-recap-grid, .sc-recap-extra { grid-template-columns: 1fr; }
}
/* Tablette large : le récapitulatif est encore en colonne latérale, donc la
   colonne de formulaire est étroite et les 4 choix côte à côte tombent à
   113-168px de large (texte en colonne d'un mot). On les répartit en 2×2. */
@media (min-width: 981px) and (max-width: 1200px) {
  .sc-options.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sc-head { padding: 24px 20px 0; }
  .sc-progress, .sc-layout { padding-left: 20px; padding-right: 20px; }
  .sc-options, .sc-options.four, .sc-options.two { grid-template-columns: 1fr; }
  /* Sélecteur de quantité : 191px de large, il se faisait écraser à côté de son
     libellé (et son bouton « + » disparaissait derrière l'overflow:hidden du
     stepper). On empile libellé puis stepper pleine largeur. */
  .sc-field-top:has(.sc-stepper),
  .sc-sub-row:has(.sc-stepper) {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .sc-stepper { display: flex; width: 100%; }
  .sc-stepper button { flex: 0 0 56px; }
  /* flex-basis 0 + min-width 0 : sans ça l'input garde sa largeur intrinsèque
     (taille par défaut d'un champ texte) et pousse le « + » hors du stepper */
  .sc-stepper input { flex: 1 1 0; min-width: 0; width: auto; }
}

/* Mobile ET tablette : en 3 colonnes, chaque carte ne laisse que 64 à 89px au
   texte (image à gauche), qui part en colonne illisible. On passe en carrousel
   à défilement horizontal (snap) avec des cartes en pile : visuel en haut, puis
   titre, prix et descriptif sur toute la largeur. La carte suivante reste
   amorcée à droite pour signaler qu'il y a du contenu à faire défiler. */
@media (max-width: 1080px) {
  .sc-model-row, .sc-model-row.cols-3 {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 8px;
    padding: 8px;      /* laisse vivre le halo .fx-glow (inset -1.5px + blur 6px) */
    margin: 0 -8px;    /* ...sans décaler les cartes par rapport au champ */
    scrollbar-width: none;
  }
  .sc-model-row::-webkit-scrollbar { display: none; }
  .sc-model {
    flex: 0 0 76%;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sc-model img { width: 100%; height: 88px; }
}

/* ════════ TWEAKABLE FEEL ════════ */

/* —— Accent identity: remap the brand accent across options, switches, progress, summary, buttons —— */
html[data-accent="terracotta"] {
  --green-v2: var(--terra);
  --green-soft: var(--terra-soft);
}
html[data-accent="terracotta"] .sc-opt.sel { box-shadow: 0 0 0 1px var(--terra), 0 12px 30px oklch(62% 0.14 40 / 0.12); }
html[data-accent="terracotta"] .sc-summary-head .kk { color: oklch(80% 0.10 40); }
html[data-accent="terracotta"] .sc-summary-head h3 em { color: oklch(82% 0.09 40); }

html[data-accent="encre"] {
  --green-v2: var(--ink);
  --green-soft: oklch(95% 0.006 250);
}
html[data-accent="encre"] .sc-opt.sel { box-shadow: 0 0 0 1px var(--ink), 0 12px 30px oklch(18% 0.025 250 / 0.16); }
html[data-accent="encre"] .sc-summary-head .kk { color: oklch(80% 0.01 250); }
html[data-accent="encre"] .sc-summary-head h3 em { color: oklch(84% 0.01 250); }
html[data-accent="encre"] .sc-step-q em,
html[data-accent="encre"] .sc-head h1 em { color: var(--ink); }

/* —— Ampleur: reshape the breathing room & type rhythm of the whole wizard —— */
html[data-density="genereux"] {
  --photo-h: 212px; --opt-gap: 20px; --opt-gap-big: 26px;
  --card-pad-y: 30px; --card-pad-x: 26px; --field-pad: 34px 36px;
  --q-size: clamp(30px, 4vw, 46px);
}
html[data-density="genereux"] .sc-step-help { font-size: 16px; margin-bottom: 36px; }
html[data-density="genereux"] .sc-opt b, html[data-density="genereux"] .sc-opt-big b { font-size: 19px; }

html[data-density="compact"] {
  --photo-h: 128px; --opt-gap: 10px; --opt-gap-big: 12px;
  --card-pad-y: 15px; --card-pad-x: 16px; --field-pad: 18px 20px;
  --q-size: clamp(22px, 2.7vw, 30px);
}
html[data-density="compact"] .sc-step-help { font-size: 13.5px; margin-bottom: 18px; }
html[data-density="compact"] .sc-opt b, html[data-density="compact"] .sc-opt-big b { font-size: 15.5px; }
html[data-density="compact"] .sc-opt span, html[data-density="compact"] .sc-opt-big > span { font-size: 11.5px; }
html[data-density="compact"] .sc-opt-photo { margin-bottom: 12px; }

/* —— Ton: editorial (serif italics + eyebrow rules) vs. net (sans, utilitarian) —— */
html[data-tone="net"] .sc-step-q em,
html[data-tone="net"] .sc-head h1 em,
html[data-tone="net"] .sc-summary-head h3 em {
  font-family: 'Bricolage Grotesque', sans-serif; font-style: normal; font-weight: 800;
}
html[data-tone="net"] .btn-ink .arrow { font-family: 'Bricolage Grotesque', sans-serif; font-style: normal; font-size: 15px; }
html[data-tone="net"] .sc-reglement-preview p { font-family: 'Bricolage Grotesque', sans-serif; font-style: normal; font-size: 13.5px; }
html[data-tone="net"] .eyebrow::before { display: none; }
html[data-tone="net"] .eyebrow { gap: 0; letter-spacing: 2.2px; }
html[data-tone="net"] .sc-step-kicker { font-family: 'Roboto Mono', monospace; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

/* —— Tweaks panel mount —— */
#tweaks-root { position: fixed; z-index: 9000; }
