/* Roue de la chance - Linnovlab */

.ll-roue {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(28, 28, 28, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ll-roue.is-open {
  opacity: 1;
}

.ll-roue__modal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 36px;
  background: #111111;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s ease;
  font-family: 'Lato', Arial, sans-serif;
}

.ll-roue.is-open .ll-roue__modal {
  transform: scale(1);
}

.ll-roue__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 3;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  color: #BBBBBB;
  cursor: pointer;
}

/* --- Roue (façon roue de foire : jante noire, clous, spirale) --- */

.ll-roue__wheel-zone {
  position: relative;
  flex: 0 0 360px;
  padding-top: 30px;
}

.ll-roue__wheel-frame {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 10px 28px rgba(0, 0, 0, 0.5);
}

.ll-roue__wheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Support noir en haut, avec la goutte rouge qui pointe vers la roue. */
.ll-roue__pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 30px;
  height: 44px;
  margin-left: -15px;
  background: #2A2A2A;
  border-radius: 4px 4px 0 0;
}

.ll-roue__pointer-drop {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: #E3262E;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.ll-roue__wheel-zone.is-spinning .ll-roue__pointer-drop {
  animation: ll-roue-tick 0.12s infinite alternate;
}

@keyframes ll-roue-tick {
  from { transform: rotate(-45deg); }
  to { transform: rotate(-30deg); }
}

/* --- Texte et formulaire --- */

.ll-roue__panel {
  flex: 1;
  min-width: 0;
}

.ll-roue__title {
  margin: 0 0 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
}

.ll-roue__subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #E6E6E6;
}

.ll-roue__prize {
  margin: 0 0 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #C7FD45;
}

.ll-roue__button {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: #C7FD45;
  color: #111111;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ll-roue__button:hover {
  background: #B4EA2F;
}

.ll-roue__button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ll-roue__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ll-roue__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #444444;
  border-radius: 10px;
  font-size: 15px;
}

.ll-roue__consent {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  /* Toujours sur une seule ligne : la taille du texte s'adapte à l'écran. */
  white-space: nowrap;
  font-size: min(13px, 3vw);
  font-weight: normal;
  line-height: 1.4;
  color: #E6E6E6;
  cursor: pointer;
}

.ll-roue__consent input {
  flex: 0 0 auto;
  margin: 0;
}

.ll-roue__email-hint,
.ll-roue__email-intro {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #E6E6E6;
}

.ll-roue__email-intro {
  margin: -6px 0 14px;
}

.ll-roue__error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #FF8A80;
}

.ll-roue__error:empty {
  display: none;
}

.ll-roue__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #E6E6E6;
}

.ll-roue__confetti {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* --- Mobile : roue au-dessus du texte --- */

@media (max-width: 767px) {
  .ll-roue__modal {
    flex-direction: column;
    gap: 16px;
    padding: 28px 16px 20px;
  }

  .ll-roue__wheel-zone {
    flex-basis: auto;
  }

  .ll-roue__wheel-frame {
    width: 270px;
    height: 270px;
  }

  .ll-roue__panel {
    width: 100%;
    text-align: center;
  }

  .ll-roue__title {
    font-size: 22px;
  }

  .ll-roue__consent {
    justify-content: center;
  }
}

/* --- Icône flottante (au-dessus du bouton WhatsApp) --- */

.ll-roue-launcher {
  position: fixed;
  /* Valeurs de secours si le bouton WhatsApp est absent ; sinon le JS
     recale l'icône juste au-dessus de lui. */
  right: 9px;
  bottom: 64px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 3px solid #111111;
  border-radius: 50%;
  background: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ll-roue-launcher:hover {
  transform: scale(1.08);
}

.ll-roue-launcher.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.ll-roue-launcher__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ll-roue-launcher-spin 8s linear infinite;
}

.ll-roue-launcher:hover .ll-roue-launcher__disc {
  animation-duration: 1.5s;
}

.ll-roue-launcher__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: #E3262E;
}

.ll-roue-launcher__pointer {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #E3262E;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

@keyframes ll-roue-launcher-spin {
  to { transform: rotate(360deg); }
}
