* {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #fff5f9 50%, #ffdce9 100%);
}

a:link,
a:visited {
  color: inherit;
}
/* Séparateurs */

.separator {
  border: none;
  height: 3px;
  width: 70%;
  margin: 3rem 0 2rem 0;
  background: linear-gradient(to right, #ffb6c1, #ff69b4, #ffb6c1);
  border-radius: 2px;
  box-shadow: 0px 2px rgba(0, 0, 0, 0.05);
}

/* Début du Header */

/* Gestion taille et aspect global du header */

.header-form {
  background-color: rgb(255, 255, 255);
  position: relative;
  height: 80px;
  top: 0;
  border-bottom: 1px solid #ffc3d8;
  box-shadow: 2px 2px rgba(0, 0, 0, 0.2);
}

header > * {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 30px 0 30px;
}

/* Gestion du menu de navigation */

.menu a:hover:not(#roue-active) {
  border: 2px solid transparent;
  background-color: #fed6e6d0;
  padding: 0.4rem 0.8rem;
}

#roue-active {
  background: linear-gradient(135deg, #ff5f95, #ff758c);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
}

.menu {
  right: 0;
  text-decoration: none;
}

.menu-text {
  color: #495871;
  font-family: "Poppins";
  font-size: 18px;
  margin: 5px;
  font-weight: 600;
  display: inline-block;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
}

.menu-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Fin du Header */

/* Début Main Page */

.main-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0;
  width: 80%;
  gap: 20px;
  margin-top: 40px;
  color: #2e2e2e;
  font-family: "Poppins", sans-serif;
}

/* --- En-tête de la page Roue --- */
.main-texts {
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.main-texts h1 {
  white-space: nowrap; /* empêche d’aller à la ligne */
  overflow: hidden; /* évite qu’il dépasse */
  text-overflow: ellipsis; /* coupe proprement si trop long */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: clamp(1rem, 4vw + 0.5rem, 4rem);
  font-weight: 800;
  background: linear-gradient(90deg, #f472b6, #ec4899, #db2777);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
}

.main-texts .subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.8rem, 2.5vw, 1.8rem);
  color: #5b6a84;
  font-weight: 600;
  margin-top: 0.3rem;
}

.main-texts :nth-child(3) {
  font-family: "Poppins";
  font-size: clamp(0.8rem, 2.5vw, 1.8rem);
  color: #5b6a84;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Animation des textes */

.main-texts h1,
.main-texts p {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.main-texts .subtitle {
  animation-delay: 0.15s;
}
.main-texts p:last-of-type {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gestion de la roue */

/* 🌈 CONTAINER DE LA ROUE */

#CanvasContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
}

#CanvasContainer.spinning {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* 💫 ROUE (canvas) */

#canvas {
  width: min(90vw, 400px); /* S'adapte max 400px mais rétrécit sur mobile */
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Pointeur au dessus de la roue */

#pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #333;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  z-index: 10;
}

/* Bouton de la roue */

#spin-button {
  padding: 15px 32px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #ff7ba5, #ff4b91);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(255, 85, 140, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

#spin-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 85, 140, 0.55);
}

#spin-button:disabled {
  background: linear-gradient(135deg, #d9a2b8, #d47b9d);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Gestion du Pop-Up */

#prize-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 195, 204, 0.35);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

#prize-modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  border-radius: 25px;
  padding: 2rem 2.5rem;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
  text-align: center;
  max-width: 350px;
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h2 {
  font-family: "Poppins";
  font-size: 28px;
  color: #ff5f95;
  margin-bottom: 10px;
}

.modal-content p {
  font-family: "Inter";
  font-size: 18px;
  color: #444;
  margin-bottom: 20px;
}

.modal-content button {
  background: linear-gradient(135deg, #ff73a5, #ff5f95);
  border: none;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  font-family: "Poppins";
  padding: 10px 25px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

/* Gestion de l'affichage des activités */

#activite-card {
  cursor: pointer;
}

.modal-activite {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  z-index: 2000;
}

.modal-content-activite {
  box-shadow: 0 8px 20px rgba(255, 85, 140, 0.55);
  background: white;
  padding: 25px 35px;
  border-radius: 18px;
  text-align: center;
  max-width: 85%;
  animation: fadeIn 0.25s ease-out;
  font-family: "Poppins", sans-serif;
}

.modal-content-activite ul {
  margin-top: 15px;
  text-align: left;
  line-height: 1.7rem;
}

.close-activite-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #ff7cae;
  border: none;
  border-radius: 9999px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.close-activite-btn:hover {
  background: #ff4b8a;
}

@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Informations */

h2 {
  color: #444;
  text-align: center;
  gap: 0.4em;
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  font-weight: 800;
  margin-bottom: 30px;
  overflow: hidden;
}

.rectangles-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  margin-bottom: 40px;
}

.rectangle-jackpot-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  list-style: none;
}
.rectangle-jackpot {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  width: 100%;
  max-width: 260px;
  background-color: #ffffff;
  border: 1px solid #ffeba1;
  border-radius: 12px;
  border-width: 2px;
  box-shadow: 0 8px 22px rgba(255, 200, 80, 0.35);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rectangle:hover,
.rectangle-jackpot:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 10px 25px rgba(255, 105, 180, 0.28);
}

.rectangle {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  width: 100%;
  max-width: 260px;
  background-color: #ffffff;
  border: 1px solid #ffc3d8;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rectangle-icon {
  width: 40px;
  height: 40;
  color: white;
  background: linear-gradient(135deg, #ff2d73, #ff637dbe);
  border-radius: 9999px;
  padding: 0.6rem 0.6rem;
}

.rectangle-titre {
  font-family: "Poppins", sans-serif;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.3px;
}

.lots-form {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 3rem 0 0 0;
  margin: 0 50px 50px 50px;
  background: linear-gradient(145deg, #fff8fb, #ffeaf3);
}

footer {
  margin-top: 30px;
  position: relative;
  width: 100%;
  height: 60px;
  background-color: white;
  border-top: 1px solid #ffc3d8;
  box-shadow: 0 px 5px rgba(0, 0, 0, 0.2);
}

.footer-text {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(90deg, #f472b6, #ec4899, #db2777);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
  text-align: center;
}

/* Gestion responsive */
@media screen and (max-width: 600px) {
  .lots-form {
    background: none;
    box-shadow: none;
    padding: 0;
  }
}

@media screen and (max-width: 700px) {
  /* Gestion du header  */

  .menu .menu-label {
    display: none;
  }

  .menu a {
    gap: 0.25rem;
  }

  header > a {
    font-size: 18px;
  }
}
