/* ==== LA ROUE (modes Équipe / Client) ==== */

.page_roue {
  padding-bottom: 40px;
}

/* Onglets de mode */
.roue-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 8px 0;
}
.roue-tab {
  padding: 9px 22px;
  border: 1px solid #d5d9df;
  border-radius: 20px;
  background: #f4f6f8;
  color: #444;
  font-size: 11pt;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.roue-tab .fa {
  margin-right: 6px;
}
.roue-tab:hover {
  background: #e8ecf0;
}
.roue-tab-active,
.roue-tab-active:hover {
  background: var(--main-bg-color);
  border-color: var(--main-bg-color);
  color: #fff;
  font-weight: 600;
}

/* Options (groupes / chance) */
.roue-options {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px auto;
  max-width: 640px;
}
.roue-option {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  justify-content: center;
}
.roue-option label {
  font-weight: 600;
  font-size: 10.5pt;
  white-space: nowrap;
}
.roue-multiselect {
  max-width: 380px;
  min-width: 240px;
  text-align: left;
}
.roue-select {
  padding: 7px 10px;
  border: 1px solid #d5d9df;
  border-radius: 8px;
  font-size: 10.5pt;
  background: #fff;
  cursor: pointer;
}
.roue-nb {
  font-size: 10pt;
  color: #666;
  white-space: nowrap;
}

/* Scène : pointeur + roue + bouton central */
.roue-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}
.roue-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #e15759;
  margin-bottom: -8px;
  z-index: 3;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}
.roue-wheel-wrapper {
  position: relative;
  width: min(66vw, 460px);
  height: min(66vw, 460px);
}
.roue-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), inset 0 0 0 6px #fff;
  will-change: transform;
}
.roue-wheel text {
  pointer-events: none;
  font-family: Arial, sans-serif;
}
.roue-btn-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--main-bg-color);
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: transform 0.1s;
}
.roue-btn-spin:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
}
.roue-btn-spin:disabled {
  opacity: 0.75;
  cursor: default;
}

/* Message liste vide */
.roue-empty {
  text-align: center;
  margin-top: 16px;
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 10px 16px;
  display: table;
  margin-left: auto;
  margin-right: auto;
  font-size: 10.5pt;
}
.roue-empty .fa {
  margin-right: 6px;
}

/* Résultat */
.roue-result {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 22px auto 0 auto;
  padding: 14px 26px;
  max-width: 480px;
  border-radius: 12px;
  background: #eef4fb;
  border: 1px solid #c9dcf2;
  font-size: 14pt;
  animation: roueResultPop 0.35s ease-out;
}
.roue-result-win {
  background: #e9f7ec;
  border-color: #b7e0c0;
}
.roue-result-lose {
  background: #f6f6f6;
  border-color: #ddd;
}
.roue-result-emoji {
  font-size: 24pt;
}
@keyframes roueResultPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .roue-option {
    min-width: 0;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 6px;
  }
  /* .roue-nb garde flex:1 par défaut (hérité, basis 0) : sur une ligne
     partagée avec .roue-option (passé en flex-basis 100% ci-dessus), le
     texte "N participant(s)" (white-space: nowrap) se fait rogner faute de
     place. Il passe sur sa propre ligne, centré. */
  .roue-nb {
    flex: 0 0 100%;
    display: block;
    text-align: center;
    margin-top: 4px;
  }
  .roue-result {
    font-size: 12pt;
    margin-left: 12px;
    margin-right: 12px;
  }
}
