/* Écran provisoire de l'étape 1 : le T-shirt et un choix de couleur. Le Studio viendra à l'étape 4. */
:root {
  --fond: #ecebe8;
  --fond-bas: #d9d7d2;
  --texte: #1c1c1e;
  --texte-doux: #5c5b58;
  --barre: rgba(255, 255, 255, 0.82);
  --anneau: #1c1c1e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, var(--fond) 0%, var(--fond-bas) 100%);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  touch-action: none;
}

#scene canvas { display: block; }

#etat {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: var(--texte-doux);
  pointer-events: none;

}


.couleurs {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border-radius: 20px;
  background: var(--barre);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.couleurs__nom {
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 1.2em;
}

.couleurs__liste {
  display: flex;
  gap: 14px;
}

.pastille {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pastille:active { transform: scale(0.94); }

.pastille[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--anneau);
}

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