* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

#app{
  height: 100vh;
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: flex-start;
  overflow: auto;
}

/* GAUCHE */
#left{
  flex: 1 1 auto;
  min-width: 0;
}

/* IMPORTANT : pas de scale pendant l’édition (évite les décalages de clics)
   Tu pourras ajouter un scale plus tard si tu veux, mais d’abord stabilité. */

/* TABLE (repère unique) */
#roulette{
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 0 !important;
  margin: 0;
  line-height: 0;
}

/* IMAGE responsive */
#img{
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* CALQUES superposés */
#zones-layer,
#highlights-layer{
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#zones-layer{
  pointer-events: auto;
  z-index: 20000;
}

.zone{
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 0 3px #000;
}

/* Highlight de la zone active */
#highlights-layer{
  pointer-events: none;
  z-index: 50000;
}

.hl{
  position: absolute;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  outline: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 18px rgba(255,255,255,0.55);
}

/* PANNEAU DROIT */
#right{
  width: 360px;
  flex: 0 0 360px;
  border-left: 3px solid #000;
  padding-left: 16px;
  background: #f3f3f3;

  position: sticky;
  top: 16px;
  align-self: flex-start;
}

#console-header{
  padding: 10px 0 12px 0;
  border-bottom: 1px solid #ccc;
}

#welcome{
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

#purchased{
  font-size: 13px;
  opacity: 0.9;
}

#tabs{
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

#tabs .tab{
  flex: 1 1 0;
  padding: 10px 8px;
  border: 1px solid #999;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

#tabs .tab.active{
  border: 2px solid #000;
}

#console-actions{
  display: flex;
  gap: 8px;
  margin: 8px 0 12px 0;
}

#console-actions button{
  flex: 1 1 0;
  padding: 10px 8px;
  border: 1px solid #999;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

#out{
  margin: 0;
  border: 1px solid #999;
  padding: 12px;
  border-radius: 10px;
  white-space: pre-wrap;
}

/* Couleurs des cases (numéros) */
.zone.num-red  { outline: 2px solid rgba(255,0,0,.85); background: rgba(255,0,0,.12); }
.zone.num-black{ outline: 2px solid rgba(0,0,0,.70); background: rgba(0,0,0,.10); }
.zone.num-zero { outline: 2px solid rgba(0,180,0,.85); background: rgba(0,180,0,.12); }

/* Couleurs des cases (paris) */
.zone.bet-red   { outline: 2px solid rgba(255,0,0,.85); background: rgba(255,0,0,.18); }
.zone.bet-black { outline: 2px solid rgba(0,0,0,.85); background: rgba(0,0,0,.14); }