/* base.css — variables, typographie, couleurs (style pop royal Louis 26) */

@font-face {
  font-family: 'Beckman Heavy';
  src: url('../../assets/font/Beckman-Heavy.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beckman Medium';
  src: url('../../assets/font/Beckman-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beckman';
  src: url('../../assets/font/Beckman-Medium.otf') format('opentype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beckman';
  src: url('../../assets/font/Beckman-Heavy.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette pop château : rose chaud, or, prune profond, crème. */
  --pink: #ff4f97;
  --pink-soft: #ff8fbf;
  --gold: #f5c451;
  --gold-deep: #c9982c;
  --plum: #2a0e3a;
  --plum-deep: #1a0626;
  --cream: #fff6e9;
  --ink: #2b1530;

  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 18px;

  --font-display: 'Beckman Heavy', 'Beckman', system-ui, sans-serif;
  --font-serif: 'Beckman', system-ui, sans-serif;
  --font-sans: 'Beckman', system-ui, sans-serif;
  --font-ui: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html,
body {
  background: #000;
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* Écran de démarrage (avant la 1re scène). */
#boot-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  background: radial-gradient(circle at 50% 40%, var(--plum), var(--plum-deep));
  z-index: 1000;
}
#boot-screen .boot-logo {
  display: block;
  width: min(52vw, 168px);
  max-height: 7.5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
  animation: bob 1.4s ease-in-out infinite;
}

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

/* --- Boutons génériques --- */
.btn {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(0.95rem, 3.6vmin, 1.15rem);
  color: var(--ink);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.7em 1.4em;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, filter 0.12s ease, background 0.15s ease;
  line-height: 1.1;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(160deg, var(--pink), #e23a82);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  color: var(--ink);
}
.btn-ghost {
  background: rgba(255, 246, 233, 0.16);
  color: var(--cream);
  box-shadow: none;
  border: 2px solid rgba(255, 246, 233, 0.35);
}
.btn-danger {
  background: linear-gradient(160deg, #ff6b6b, #c0392b);
  color: #fff;
}

/* Cible tactile minimale (Apple HIG). */
.tap-target {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

/* Cible tactile réduite — plume cachée uniquement (ne pas agrandir la zone visible). */
.tap-feather {
  min-width: 14px;
  min-height: 14px;
  touch-action: manipulation;
}

/* Zones sûres (encoche / barre système). */
.safe-top {
  padding-top: env(safe-area-inset-top, 0);
}
.safe-bottom {
  padding-bottom: max(env(safe-area-inset-bottom, 0), 0.5rem);
}
