/* ==========================================================================
   Charte Tokidos × Gencode — Maquette interactive « Le bon PlayCubes »
   ========================================================================== */
:root {
  --navy: #002c3b;
  --navy-2: #003b52;
  --orange: #ff5635;
  --orange-hover: #e84524;
  --orange-ink: #b93116;
  --teal: #108474;
  --teal-ink: #0c6a5d;
  --teal-light: #2bae9e;
  --mint-light: #b8ebe4;
  --mint-dark: #7ccfc4;
  --mint-side-top: #9cdcd3;
  --mint-side-bot: #67bdb1;
  --yellow: #f2c14e;
  --ice: #e0f8fa;
  --surface-page: #edf7f8;
  --white: #ffffff;
  --ink-muted: #456571;
  --border-subtle: rgba(0, 44, 59, 0.12);
  --shadow-soft: 0 12px 32px rgba(0, 44, 59, 0.08);
  --shadow-phone: 0 24px 54px rgba(0, 44, 59, 0.22), 0 4px 12px rgba(0, 44, 59, 0.1);
  --radius-card: 20px;
  --radius-tile: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background:
    radial-gradient(circle at 18% 12%, rgba(224, 248, 250, 0.95) 0%, transparent 45%),
    radial-gradient(circle at 82% 85%, rgba(184, 235, 228, 0.45) 0%, transparent 42%),
    var(--surface-page);
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.pixel-label {
  font-family: "Silkscreen", monospace;
  letter-spacing: 0.04em;
}

/* ---------- Bandeau haut bureau ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.site-header__brand {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-ink);
  white-space: nowrap;
}

.site-header__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.site-header__meta {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ---------- Grille principale bureau (>= 1100px) ---------- */
.workspace {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 24px 8px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 390px minmax(340px, 1.12fr);
  gap: 24px;
  align-items: center;
}

.stage-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.stage-col--phone {
  align-items: center;
}

.stage-label {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.stage-col--phone .stage-label {
  text-align: center;
}

.stage-caption {
  margin: 12px 2px 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ---------- Colonne 01 : Maquette PLV / Stop-rayon ---------- */
.plv-card {
  position: relative;
  background: radial-gradient(circle at 80% 10%, var(--navy-2) 0%, var(--navy) 70%);
  color: var(--white);
  border-radius: 26px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.plv-card__clip {
  width: 56px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 14px;
}

.plv-card__logo {
  width: 118px;
  height: auto;
  margin-bottom: 12px;
}

.plv-card__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  color: var(--mint-light);
}

.plv-card__title {
  margin: 0 0 6px;
  font-family: "Gasoek One", "Outfit", sans-serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.08;
  color: var(--white);
}

.plv-card__sub {
  margin: 0 0 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ice);
  max-width: 26ch;
}

.plv-qr-plate {
  background: var(--white);
  border-radius: 20px;
  padding: 14px 14px 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  border: 3px solid var(--mint-light);
}

.plv-qr-box {
  width: 156px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plv-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plv-qr-fallback {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-all;
  padding: 8px;
}

.plv-qr-url {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-ink);
}

/* Petits cubes décoratifs en bas de la PLV */
.plv-mini-cubes {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mini-cube {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--mint-light) 0 50%, var(--mint-dark) 50% 100%);
  box-shadow: 0 3px 0 rgba(0, 20, 28, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  display: inline-block;
}

.mini-cube__eyes {
  position: absolute;
  top: 7px;
  left: 5px;
  right: 5px;
  height: 4px;
  display: block;
}

.mini-cube__eyes::before,
.mini-cube__eyes::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--navy);
}

.mini-cube__eyes::before { left: 1px; }
.mini-cube__eyes::after { right: 1px; }

/* ---------- Colonne 02 : Cadre téléphone moderne ---------- */
.phone-frame {
  width: 390px;
  max-width: 100%;
  height: clamp(580px, calc(100vh - 134px), 780px);
  background: #0d1d24;
  border-radius: 44px;
  padding: 11px;
  border: 2px solid #26404b;
  box-shadow: var(--shadow-phone);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #09151b;
  border-radius: 999px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.phone-notch__speaker {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: #233842;
}

.phone-notch__lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a4152;
}

.phone-screen {
  flex: 1 1 auto;
  background: var(--white);
  border-radius: 34px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 44, 59, 0.2) transparent;
}

.phone-screen::-webkit-scrollbar {
  width: 5px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: rgba(0, 44, 59, 0.2);
  border-radius: 99px;
}

/* ---------- Colonne 03 : Tableau de bord Tokidos ---------- */
.dash-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 18px 20px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-tab {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #f5fbfc;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.store-tab:hover {
  border-color: var(--teal);
  background: var(--ice);
}

.store-tab.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--teal-ink);
  background: var(--ice);
  padding: 5px 9px;
  border-radius: 999px;
}

.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.kpi-box {
  background: #f4fbfc;
  border: 1px solid rgba(16, 132, 116, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.kpi-box--accent {
  background: var(--ice);
  border-color: rgba(16, 132, 116, 0.28);
}

.kpi-box__label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.kpi-box__val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.dash-section__title {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}

.bars-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bars-list--compact {
  gap: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(145px, 1.45fr) minmax(70px, 1fr) 48px;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  border-radius: 8px;
}

.bar-row__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}

.bar-row__track {
  height: 10px;
  background: #e6f2f4;
  border-radius: 999px;
  overflow: hidden;
}

.bar-row__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), background-color 240ms ease;
}

.bar-row--age .bar-row__fill {
  background: var(--teal-light);
}

.bar-row__pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

/* Flash orange quand une métrique du dashboard évolue en direct */
@keyframes orangeFlash {
  0% {
    background-color: rgba(255, 86, 53, 0.28);
    box-shadow: 0 0 0 2px rgba(255, 86, 53, 0.55);
  }
  100% {
    background-color: transparent;
    box-shadow: 0 0 0 0 rgba(255, 86, 53, 0);
  }
}

.is-flashing {
  animation: orangeFlash 850ms ease-out;
}

.is-flashing .bar-row__fill {
  background: var(--orange);
}

.kpi-box.is-flashing .kpi-box__val {
  color: var(--orange-ink);
}

.dash-footnote {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-align: right;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 6px 24px 8px;
  text-align: center;
  font-size: 0.74rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   APPLICATION INTERNE (dans le téléphone sur desktop, plein écran sur mobile)
   ========================================================================== */
.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f3fbfc 0%, #ffffff 34%);
  position: relative;
}

/* Barre supérieure appli (navy) */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--navy);
  color: var(--white);
  padding: 38px 14px 10px; /* espace discret pour l'encoche desktop */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 44, 59, 0.14);
}

.app-topbar__logo {
  width: 92px;
  height: auto;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lang-btn.is-active {
  background: var(--orange);
  color: var(--navy);
}

/* Badge ?src=plv */
.plv-badge {
  margin: 10px 14px 0;
  padding: 6px 12px;
  background: var(--ice);
  border: 1px solid rgba(16, 132, 116, 0.25);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.plv-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Barre de progression 3 segments */
.app-progress {
  padding: 12px 16px 2px;
}

.app-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.app-progress__label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--teal-ink);
}

.app-progress__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-progress__seg {
  height: 6px;
  border-radius: 999px;
  background: #d7ecee;
  transition: background-color 240ms ease, transform 240ms ease;
}

.app-progress__seg.is-done {
  background: var(--teal);
}

.app-progress__seg.is-current {
  background: var(--orange);
}

/* ==========================================================================
   5 CUBES LED EN CSS 3D (Signature visuelle Tokidos)
   ========================================================================== */
.cubes-stage {
  width: 100%;
  max-width: 310px;
  margin: 10px auto 0;
  padding: 40px 4px 16px; /* le dessus des cubes depasse de la boite en 3D : marge haute pour ne pas mordre la barre */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  perspective: 620px;
  transition: margin 260ms ease, padding 260ms ease;
}

.cubes-stage.is-compact {
  margin: 8px auto 0;
  padding: 34px 4px 12px;
  gap: 8px;
}

.cube-floater {
  --cube-size: 46px;
  --half: 23px;
  animation: cubeFloat 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.58s);
  will-change: transform;
}

.cubes-stage.is-compact .cube-floater {
  --cube-size: 40px;
  --half: 20px;
}

@keyframes cubeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.cube-3d {
  width: var(--cube-size);
  height: var(--cube-size);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-36deg) rotateY(calc(-16deg + var(--yaw, 0deg)));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cube-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 6px;
}

/* Face avant : moitié haute menthe clair, moitié basse menthe foncé + 2 yeux LED */
.cube-face--front {
  background: linear-gradient(180deg, var(--mint-light) 0 50%, var(--mint-dark) 50% 100%);
  transform: translateZ(var(--half));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(0, 44, 59, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 21% 24% 0;
}

.cube-eye {
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
}

.cube-eye::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

/* Face droite visible (légèrement ombrée) */
.cube-face--right {
  background: linear-gradient(180deg, var(--mint-side-top) 0 50%, var(--mint-side-bot) 50% 100%);
  transform: rotateY(90deg) translateZ(var(--half));
}

/* Face gauche visible (pour les cubes à angle opposé) */
.cube-face--left {
  background: linear-gradient(180deg, var(--mint-side-top) 0 50%, var(--mint-side-bot) 50% 100%);
  transform: rotateY(-90deg) translateZ(var(--half));
}

/* Dessus blanc avec matrice de LED 7x7 */
.cube-face--top {
  background: var(--white);
  transform: rotateX(90deg) translateZ(var(--half));
  padding: 10%;
  box-shadow: inset 0 0 0 2px var(--mint-light), inset 0 0 6px rgba(0, 44, 59, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.led-matrix {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 1.5px;
}

.led-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e3ecee;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.led-dot.is-on {
  background: var(--orange);
  box-shadow: 0 0 4px rgba(255, 86, 53, 0.85);
}

/* ---------- Contenu d'écran & transitions ---------- */
.app-screen {
  flex: 1 0 auto;
  padding: 10px 16px 22px;
  display: flex;
  flex-direction: column;
}

.screen-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: screenIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
}

.screen-title--hero {
  font-family: "Gasoek One", "Outfit", sans-serif;
  font-weight: 400;
  font-size: 1.66rem;
  line-height: 1.1;
  text-align: center;
  margin-top: 4px;
}

.screen-sub {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
  line-height: 1.48;
}

.screen-sub--center {
  text-align: center;
}

/* Boutons principaux et secondaires */
.btn-primary {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 0 #c9371b, 0 10px 20px rgba(255, 86, 53, 0.22);
  transition: transform 110ms ease, box-shadow 110ms ease, background-color 150ms ease, opacity 150ms ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #c9371b, 0 12px 22px rgba(255, 86, 53, 0.28);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c9371b, 0 4px 10px rgba(255, 86, 53, 0.2);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 0 3px 0 rgba(0, 44, 59, 0.16);
}

.btn-secondary {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid var(--navy);
  border-radius: 15px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, transform 110ms ease;
}

.btn-secondary:hover {
  background: var(--ice);
}

.btn-secondary:active {
  transform: translateY(2px);
}

.btn-secondary.is-saved {
  border-color: var(--teal);
  background: var(--ice);
  color: var(--teal-ink);
}

.btn-ghost-back {
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 12px 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
}

.btn-ghost-back:hover {
  color: var(--navy);
  background: rgba(0, 44, 59, 0.05);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.trust-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--teal-ink);
  font-size: 0.74rem;
  font-weight: 600;
}

/* ---------- Tuiles interactives façon cube ---------- */
.tiles-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-tile {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  border: 2px solid #cbe4e7;
  background: var(--white);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 3px 0 #cbe4e7;
  transition: transform 110ms ease, box-shadow 110ms ease, border-color 140ms ease, background-color 140ms ease;
}

.choice-tile:hover {
  border-color: var(--teal);
  background: #f5fcfd;
}

.choice-tile:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cbe4e7;
}

.choice-tile.is-selected {
  border-color: var(--orange);
  background: #fff6f4;
  box-shadow: 0 3px 0 var(--orange);
}

.choice-tile--age {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.choice-tile--age .choice-tile__label {
  font-size: 1.08rem;
  font-weight: 700;
}

.choice-tile__badge {
  font-size: 0.66rem;
  color: var(--teal-ink);
  background: var(--ice);
  padding: 4px 8px;
  border-radius: 8px;
}

.choice-tile.is-selected .choice-tile__badge {
  background: var(--orange);
  color: var(--navy);
}

.choice-tile__label {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.choice-tile__hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.choice-tile--skill {
  min-height: 70px;
  padding: 11px 12px;
  justify-content: space-between;
}

.choice-tile--skill .choice-tile__label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.skill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3e7ea;
  align-self: flex-end;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.choice-tile.is-selected .skill-dot {
  background: var(--orange);
  box-shadow: 0 0 6px rgba(255, 86, 53, 0.65);
}

/* Champ prénom facultatif */
.name-field {
  background: #f4fbfc;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-field__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.name-field__input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid #bfdadd;
  border-radius: 11px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.98rem;
}

.name-field__privacy {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.q3-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.limit-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-ink);
  background: var(--ice);
  padding: 3px 9px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.limit-pill.is-warn {
  background: var(--yellow);
  color: var(--navy);
  transform: scale(1.06);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

/* ---------- Écran 4 : Résultat ---------- */
.result-banner {
  text-align: center;
}

.result-heading {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.product-card {
  background: var(--white);
  border: 2px solid var(--mint-light);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 44, 59, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.product-card__media {
  width: 100%;
  background: var(--white);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__media img {
  max-height: 148px;
  width: auto;
  object-fit: contain;
}

.product-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.coffret-pill {
  background: var(--navy);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-soon-pill {
  background: var(--ice);
  color: var(--teal-ink);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-card__name {
  margin: 0;
  font-family: "Gasoek One", "Outfit", sans-serif;
  font-weight: 400;
  font-size: 1.48rem;
  line-height: 1.1;
  color: var(--navy);
}

.product-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.section-subhead {
  margin: 4px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
}

/* Liste des 3 PlayCards */
.playcards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playcard-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 10px;
}

.playcard-item__thumb {
  width: 74px;
  aspect-ratio: 420 / 683;
  background: #f5fbfc;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playcard-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.playcard-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playcard-item__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.playcard-item__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.playcard-item__why {
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-ink);
}

/* Aperçu TokiStudio */
.studio-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-card__eyebrow {
  font-size: 0.64rem;
  color: var(--yellow);
}

.studio-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.studio-card__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ice);
  line-height: 1.4;
}

/* Stocks & CTA enseigne */
.stock-card {
  background: #f5fbfc;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-card__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
}

.stock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--navy);
}

.stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-dot--green { background: #19a974; }
.stock-dot--yellow { background: var(--yellow); }
.stock-dot--neutral { background: var(--teal-light); }

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-restart {
  align-self: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-restart:hover {
  color: var(--navy);
}

/* Toast flottant interne */
.app-toast {
  position: sticky;
  bottom: 12px;
  margin: 0 14px 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 44, 59, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 30;
  animation: screenIn 180ms ease both;
}

/* ==========================================================================
   RESPONSIVE : Tablette (900px..1099px) & Mobile (< 900px)
   ========================================================================== */
@media (max-width: 1099px) and (min-width: 900px) {
  .workspace {
    grid-template-columns: 390px minmax(340px, 1fr);
    align-items: start;
    padding: 18px 20px;
  }

  .stage-col--phone {
    grid-column: 1;
    grid-row: 1;
  }

  .stage-col--dash {
    grid-column: 2;
    grid-row: 1;
  }

  .stage-col--plv {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 520px;
    width: 100%;
    margin: 6px auto 0;
  }
}

@media (max-width: 899px) {
  body {
    background: var(--white);
  }

  .site-header,
  .stage-col--plv,
  .stage-col--dash,
  .stage-col--phone .stage-label,
  .phone-notch {
    display: none;
  }

  .workspace {
    display: block;
    padding: 0;
    max-width: none;
  }

  .stage-col--phone {
    display: block;
  }

  .phone-frame {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 42px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .phone-screen {
    border-radius: 0;
    overflow: visible;
  }

  .app-topbar {
    padding: 12px 16px;
  }

  .site-footer {
    padding: 10px 16px 16px;
    font-size: 0.72rem;
    background: #f5fbfc;
    border-top: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   ACCESSIBILITÉ : prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cube-floater,
  .live-pill__dot {
    animation: none !important;
  }

  .cube-3d,
  .screen-view,
  .app-toast,
  .bar-row__fill,
  .btn-primary,
  .choice-tile,
  .is-flashing {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
