/* ================================================================
   ARSÕLYA — Décoration
   Un mur de créations encadrées. On en choisit une, puis un
   configurateur court : Forme → Taille → Matière → Votre projet.
   Portée sous body[data-page="decoration"] — aucune ressource externe.
   ================================================================ */

body[data-page="decoration"] {
  --ink: #0b0d10;
  --ink-soft: rgba(11,13,16,.56);
  --ink-faint: rgba(11,13,16,.38);
  --bg: #faf8f5;
  --bg-2: #f2efe9;
  --paper: #fdfcf9;
  --warm: #e4d9c8;
  --line: rgba(11,13,16,.14);
  --line-soft: rgba(11,13,16,.08);
  --frame: #e8e2d5;
  --serif: "Times New Roman", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  height: 100vh; height: 100svh;
}
html:has(body[data-page="decoration"]) { overflow: hidden; height: 100%; }
body[data-page="decoration"] main#MainContent {
  background: var(--bg);
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
}
body[data-page="decoration"] .arsolya-legal-footer { display: none !important; }
/* auth-gate gère l'authentification à l'envoi — pas de bandeau ici */
body[data-page="decoration"] .ars-auth-hint { display: none !important; }

.deco * { box-sizing: border-box; }
.deco {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  flex: 1; min-height: 0; display: flex; flex-direction: column;
}

/* ================================================================
   LE MUR (vue d'accueil) — galerie encadrée, défilement interne
   ================================================================ */
.deco-stage {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--ars-header-height) + clamp(14px, 3vh, 34px)) clamp(18px, 4vw, 40px) clamp(40px, 7vh, 90px);
  text-align: center;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.deco-stage.is-away { opacity: 0; transform: scale(.99); pointer-events: none; }

.deco-kicker {
  font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: 0;
}
.deco-intro {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.005em;
  margin: 10px 0 0;
}
.deco-intro-sub {
  font-size: clamp(12.5px, 1.05vw, 15px); color: var(--ink-soft); line-height: 1.55;
  margin: 10px auto 0; max-width: 430px;
}

/* grille de planches */
.deco-plates {
  margin-top: clamp(26px, 5vh, 56px);
  width: 100%; max-width: 1080px;
  display: grid; gap: clamp(14px, 2.4vw, 30px) clamp(12px, 2vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(clamp(136px, 15vw, 176px), 1fr));
  justify-content: center;
}
.deco-plate {
  border: none; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.deco-plate-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  background: var(--frame);
  padding: clamp(9px, 1vw, 13px);
  border-radius: 2px;
  box-shadow: -12px 16px 34px -18px rgba(30,24,16,.42), 0 3px 10px rgba(30,24,16,.12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.deco-plate-frame::after {   /* biseau intérieur du cadre */
  content: ""; position: absolute; inset: clamp(9px, 1vw, 13px);
  box-shadow: inset 0 0 0 1px rgba(11,13,16,.10), inset 0 1px 6px rgba(11,13,16,.05);
  pointer-events: none;
}
.deco-plate-mat {
  position: absolute; inset: clamp(9px, 1vw, 13px);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.deco-plate-mat svg { width: 62%; height: 62%; color: var(--ink); }
.deco-plate-mat svg * { vector-effect: non-scaling-stroke; }
.deco-plate:hover .deco-plate-frame,
.deco-plate:focus-visible .deco-plate-frame {
  transform: translateY(-8px);
  box-shadow: -16px 26px 48px -20px rgba(30,24,16,.5), 0 10px 24px rgba(30,24,16,.16);
}
.deco-plate:focus-visible { outline: none; }
.deco-plate:focus-visible .deco-plate-frame { outline: 2px solid var(--ink); outline-offset: 3px; }

.deco-plate-name {
  font-family: var(--serif); font-size: clamp(13px, 1.15vw, 16px); line-height: 1.22;
}
.deco-plate-hint {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); opacity: 0; transform: translateY(3px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.deco-plate:hover .deco-plate-hint,
.deco-plate:focus-visible .deco-plate-hint { opacity: 1; transform: none; }

/* planche « bannière » : occupe toute la largeur de la rangée (Autre projet sur mesure) */
.deco-plate--wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; text-align: left;
  gap: clamp(16px, 2.6vw, 34px);
  margin-top: clamp(2px, 1vw, 12px);
  background: var(--frame);
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 2px;
  box-shadow: -12px 16px 34px -18px rgba(30,24,16,.42), 0 3px 10px rgba(30,24,16,.12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.deco-plate--wide .deco-plate-frame {
  width: clamp(86px, 9vw, 116px); aspect-ratio: 1;
  flex: 0 0 auto; padding: 0; box-shadow: none;
}
.deco-plate--wide .deco-plate-frame::after,
.deco-plate--wide .deco-plate-mat { inset: 0; }
.deco-plate--wide:hover, .deco-plate--wide:focus-visible {
  transform: translateY(-5px);
  box-shadow: -16px 26px 48px -20px rgba(30,24,16,.5), 0 10px 24px rgba(30,24,16,.16);
}
.deco-plate--wide:hover .deco-plate-frame,
.deco-plate--wide:focus-visible .deco-plate-frame { transform: none; box-shadow: none; }
.deco-plate-wtext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.deco-plate--wide .deco-plate-name { font-size: clamp(15px, 1.5vw, 19px); }
.deco-plate-wline {
  font-size: clamp(11.5px, 1vw, 13px); line-height: 1.55; color: var(--ink-soft);
  max-width: 60ch;
}
.deco-plate--wide .deco-plate-hint { opacity: 1; transform: none; margin-top: 2px; }
@media (max-width: 520px) {
  .deco-plate--wide { flex-direction: column; text-align: center; align-items: center; gap: 12px; }
  .deco-plate-wline { max-width: none; }
  .deco-plate--wide .deco-plate-wtext { align-items: center; }
}

/* ================================================================
   CONFIGURATEUR (vue détail — après clic sur une planche)
   ================================================================ */
.deco-detail {
  position: fixed; left: 0; right: 0;
  top: var(--ars-header-height); bottom: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden;
  transition: opacity .42s var(--ease), visibility 0s .42s;
}
.deco-detail.is-open { opacity: 1; visibility: visible; transition: opacity .42s var(--ease); }
body[data-page="decoration"]:has(#decoDetail.is-open),
html:has(#decoDetail.is-open) { overflow: hidden; }

/* Retour : bouton flottant */
.deco-back {
  position: absolute; top: 12px; left: clamp(10px, 3vw, 26px); z-index: 6;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(250,248,245,.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  font-size: 17px; color: var(--ink); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.deco-back:hover { background: var(--ink); color: var(--paper); }

/* Progression : rangée fine numérotée */
.deco-dots {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(6px, 1.4vw, 14px); flex-wrap: wrap;
  margin: 0 auto clamp(22px, 4vh, 34px);
}
.deco-dot {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: none; cursor: pointer; padding: 6px 2px;
  color: var(--ink-faint); font-family: var(--sans);
}
.deco-dot[disabled] { cursor: default; }
.deco-dot i {
  font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-faint);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.deco-dot.done i { background: var(--ink-soft); border-color: transparent; color: var(--paper); }
.deco-dot.on i { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.deco-dot span {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink);
}
.deco-dot:not(.on) span { display: none; }
@media (max-width: 560px) { .deco-dot.on span { display: none; } .deco-dot i { width: 22px; height: 22px; } }

/* Colonne d'écran */
.deco-screen {
  max-width: 760px; margin: 0 auto;
  padding: clamp(14px, 2.4vh, 22px) clamp(18px, 4vw, 40px) 110px;
  animation: decoScrIn .42s var(--ease) both;
}
@keyframes decoScrIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.deco-shead { margin-bottom: clamp(20px, 3.6vh, 32px); }
.deco-kick {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: 0 0 10px;
}
.deco-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 4.4vw, 34px); line-height: 1.1; letter-spacing: -.005em;
  color: var(--ink); margin: 0;
}
.deco-sub {
  font-size: 13px; line-height: 1.6; color: var(--ink-soft);
  margin: 10px 0 0; max-width: 46ch;
}
.deco-hint {
  font-size: 11px; color: var(--ink-faint); letter-spacing: .01em;
  margin: 10px 0 0;
}

/* ── Grilles de choix (cartes) ── */
.deco-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.deco-grid--sm { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.deco-grid--wide { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.deco-grid--text { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) {
  .deco-grid { grid-template-columns: repeat(2, 1fr); }
  .deco-grid--sm { grid-template-columns: repeat(3, 1fr); }
  .deco-grid--wide, .deco-grid--text { grid-template-columns: 1fr; }
}

.deco-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 9px; padding: 20px 14px 17px;
  min-height: 122px;
  background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: 3px;
  font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.deco-opt:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(30,24,16,.4); }
.deco-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.deco-opt.on { border-color: var(--ink); background: var(--bg-2); }
.deco-opt.on::after {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 10.6 3.9 8l-1 1 3.6 3.6 7-7-1-1z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 10.6 3.9 8l-1 1 3.6 3.6 7-7-1-1z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.deco-opt-ico { display: block; color: var(--ink); }
.deco-opt-ico svg { width: 34px; height: 34px; }
.deco-opt-ico svg * { vector-effect: non-scaling-stroke; }
.deco-grid--sm .deco-opt { min-height: 104px; padding: 16px 8px 14px; gap: 8px; }
.deco-grid--sm .deco-opt-ico svg { width: 30px; height: 30px; }
.deco-grid--text .deco-opt { min-height: 0; padding: 16px 14px; }
.deco-opt-t { font-family: var(--serif); font-size: 15px; line-height: 1.2; }
.deco-grid--sm .deco-opt-t { font-size: 12.5px; }
.deco-opt-s { font-size: 11px; line-height: 1.4; color: var(--ink-soft); }
.deco-opt--soft { background: transparent; border-style: dashed; }
.deco-opt--soft:hover { background: var(--paper); }
.deco-opt--soft.on { background: var(--bg-2); border-style: solid; }

/* ── Tailles S/M/L (cartes larges) ── */
.deco-sizes { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 520px) { .deco-sizes { grid-template-columns: 1fr 1fr; } }
.deco-size {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 16px 14px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 3px;
  font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.deco-size:hover { border-color: var(--line); transform: translateY(-2px); }
.deco-size:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.deco-size.on { border-color: var(--ink); background: var(--bg-2); }
.deco-size-l { font-family: var(--serif); font-size: 16px; line-height: 1.1; }
.deco-size-n { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .01em; }

/* ── Repères indicatifs (grands projets) ── */
.deco-reperes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.deco-repere {
  flex: 1 1 130px; padding: 11px 13px;
  background: var(--bg-2); border-radius: 3px;
  display: flex; flex-direction: column; gap: 2px;
}
.deco-repere b { font-family: var(--serif); font-weight: 400; font-size: 13px; }
.deco-repere span { font-size: 11px; color: var(--ink-soft); }

.deco-nodim {
  display: flex; flex-direction: column; gap: 3px; width: 100%;
  margin-top: 14px; padding: 14px 16px; text-align: left;
  background: transparent; border: 1px dashed var(--line); border-radius: 3px;
  font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.deco-nodim:hover { border-color: var(--ink); }
.deco-nodim.on { border-style: solid; border-color: var(--ink); background: var(--bg-2); }
.deco-nodim-t { font-size: 13px; }
.deco-nodim-s { font-size: 11.5px; color: var(--ink-soft); }

/* ── Champs & libellés ── */
.deco-field { margin: clamp(18px, 3vh, 26px) 0 0; }
.deco-field:first-child { margin-top: 0; }
.deco-field[hidden] { display: none; }
.deco-lab {
  display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin-bottom: 11px;
}
.deco-lab-x { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; margin-left: 6px; }

/* ── Puces ── */
.deco-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.deco-chip {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 2px;
  padding: 10px 16px; cursor: pointer; line-height: 1.15;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.deco-chip:hover { background: var(--warm); color: var(--ink); }
.deco-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.deco-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Choix « besoin de conseils ? » ── */
.deco-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 520px) { .deco-choice { grid-template-columns: 1fr; } }
.deco-ch {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 14px 15px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 3px;
  font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.deco-ch:hover { border-color: var(--line); }
.deco-ch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.deco-ch.on { border-color: var(--ink); background: var(--bg-2); }
.deco-ch-ico { flex-shrink: 0; color: var(--ink); }
.deco-ch-ico svg { width: 26px; height: 26px; }
.deco-ch-ico svg * { vector-effect: non-scaling-stroke; }
.deco-ch-t { font-size: 12.5px; line-height: 1.3; }

/* ── Dimensions ── */
.deco-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 10px; margin-top: 4px; }
.deco-dim { display: flex; flex-direction: column; gap: 6px; }
.deco-dim > span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.deco-dim-in { position: relative; display: flex; align-items: center; }
.deco-dim-in input {
  width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 2px;
  padding: 12px 40px 12px 13px; outline: none; -moz-appearance: textfield;
}
.deco-dim-in input::-webkit-outer-spin-button,
.deco-dim-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.deco-dim-in input:focus { border-color: var(--ink); }
.deco-dim-in i { position: absolute; right: 12px; font-style: normal; font-size: 11px; color: var(--ink-faint); }

/* ── Inputs texte ── */
.deco-in, .deco-ta {
  width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 2px;
  padding: 12px 14px; outline: none; box-sizing: border-box;
  transition: border-color .22s var(--ease);
}
.deco-in::placeholder, .deco-ta::placeholder { color: rgba(11,13,16,.32); }
.deco-in:focus, .deco-ta:focus { border-color: var(--ink); }
.deco-ta { resize: vertical; min-height: 104px; line-height: 1.6; }
.deco-in.ars-field-locked { background: rgba(11,13,16,.04); cursor: not-allowed; }

/* ── Zone d'upload ── */
.deco-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 24px 18px; border: 1.5px dashed var(--line); border-radius: 4px;
  background: var(--paper); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.deco-drop:hover, .deco-drop.is-over, .deco-drop:focus-visible { border-color: var(--ink); background: var(--bg-2); outline: none; }
.deco-drop-ico svg { width: 28px; height: 28px; color: var(--ink); }
.deco-drop-t { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.deco-drop-s { font-size: 11.5px; color: var(--ink-soft); }
.deco-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.deco-ref { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; border: 1px solid var(--line-soft); }
.deco-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deco-ref-x {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%; border: 0;
  background: rgba(11,13,16,.72); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.deco-ref-msg { font-size: 11.5px; color: var(--ink-soft); margin: 8px 0 0; min-height: 14px; }
.deco-ref-msg.err { color: #8a3f2f; }

/* ── Résumé ── */
.deco-recap {
  border: 1px solid var(--line-soft); border-radius: 3px; background: var(--paper);
  padding: 4px clamp(16px, 3vw, 24px); margin-bottom: 22px;
}
.deco-rr {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.deco-rr:last-child { border-bottom: 0; }
.deco-rr-k {
  flex-shrink: 0; width: 104px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
}
.deco-rr-v {
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink); line-height: 1.5;
  display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.deco-rr-v i {
  font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .2s var(--ease);
}
.deco-rr-v:hover i, .deco-rr-v:focus-visible i { opacity: 1; }
.deco-rr--title .deco-rr-v { cursor: default; }
.deco-rr-v--strong { font-family: var(--serif); font-size: clamp(17px, 3vw, 21px); }
.deco-recap--text .deco-recap-pre {
  margin: 12px 0 4px; padding: 0;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.7; color: var(--ink-soft);
  white-space: pre-wrap; word-break: break-word;
}

.deco-contact { margin-bottom: 6px; }
.deco-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .deco-row2 { grid-template-columns: 1fr; gap: 0; } }

/* ── Actions ── */
.deco-actions { margin-top: clamp(24px, 4vh, 36px); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.deco-actions--send { margin-top: 22px; }
.deco-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
  padding: 15px 28px; cursor: pointer;
  transition: background .38s var(--ease), color .38s var(--ease), opacity .3s var(--ease);
}
.deco-btn:hover:not([disabled]) { background: transparent; color: var(--ink); }
.deco-btn[disabled] { opacity: .32; cursor: default; }
.deco-btn .a { transition: transform .38s var(--ease); }
.deco-btn:hover:not([disabled]) .a { transform: translateX(4px); }
.deco-btn--ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.deco-btn--ghost:hover { background: var(--paper); color: var(--ink); }
.deco-btn--big { padding: 17px 34px; font-size: 12px; width: 100%; justify-content: center; }
@media (min-width: 640px) { .deco-btn--big { width: auto; } }

.deco-msg { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; min-height: 16px; }
.deco-msg.err { color: #8a3f2f; }
.deco-fine { font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); margin: 14px 0 0; }

/* ── Confirmation ── */
.deco-done { text-align: center; padding: clamp(30px, 8vh, 70px) 0 20px; }
.deco-done-mk {
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink);
}
.deco-done-mk svg { width: 24px; height: 24px; }
.deco-done .deco-sub { margin: 12px auto 26px; }

/* ================================================================
   RESPONSIVE — repli défilement normal sur petits écrans
   ================================================================ */
@media (max-width: 680px), (max-height: 640px) {
  body[data-page="decoration"],
  html:has(body[data-page="decoration"]) {
    overflow: auto; height: auto;
  }
  body[data-page="decoration"]:not(:has(#decoDetail.is-open)) { overflow-y: auto; height: auto; }
  body[data-page="decoration"]:not(:has(#decoDetail.is-open)) main#MainContent { display: block; height: auto; }
  body[data-page="decoration"]:not(:has(#decoDetail.is-open)) .deco { flex: none; display: block; }
  body[data-page="decoration"]:not(:has(#decoDetail.is-open)) .deco-stage {
    flex: none; height: auto; min-height: 100svh; overflow: visible;
  }
}
@media (max-width: 680px) {
  .deco-plates { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .deco-plate-name { max-width: 40vw; }
  .deco-screen { padding-top: 44px; padding-bottom: 120px; }
}
@media (max-width: 360px) {
  .deco-plates { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .deco-stage, .deco-detail, .deco-plate-frame, .deco-screen { transition: opacity .2s linear !important; animation: none !important; }
  .deco-plate-frame, .deco-opt, .deco-size { transform: none !important; }
  .deco-opt, .deco-chip, .deco-size, .deco-btn, .deco-ch, .deco-nodim { transition: none !important; }
}
