 /* Étoiles animées en arrière-plan */
 .stars {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 0;
   pointer-events: none;
 }

 .star {
   position: absolute;
   background: white;
   border-radius: 50%;
   animation: twinkle 3s ease-in-out infinite;
 }

 @keyframes twinkle {

   0%,
   100% {
     opacity: 0.3;
   }

   50% {
     opacity: 1;
   }
 }

 .team-section {
   padding: 2rem;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
 }

 .team-title {
   font-size: clamp(2rem, 5vw, 3.5rem);
   font-weight: 700;
   text-align: center;
   margin-bottom: 0.5rem;
   background: linear-gradient(135deg, #D4AF37 0%, #f4d03f 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   letter-spacing: 2px;
 }

 .team-subtitle {
   text-align: center;
   color: rgba(255, 255, 255, 0.6);
   margin-bottom: 3rem;
   font-size: 1.1rem;
 }

 .solar-system {
   position: relative;
   width: min(90vw, 800px);
   height: min(90vw, 800px);
   margin: 0 auto;
   z-index: 10;
   /* 🔥 Passe au-dessus du décor */
 }

 /* Soleil central */
 .sun {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 140px;
   height: 140px;
   background: linear-gradient(135deg, #D4AF37, #f4d03f);
   border-radius: 50%;
   cursor: pointer;
   transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
   box-shadow: 0 0 40px rgba(212, 175, 55, 0.6),
     0 0 80px rgba(212, 175, 55, 0.3);
   z-index: 15;
   border: none;
   padding: 0;
 }

 .sun::before {
   content: '👑';
   position: absolute;
   top: -5px;
   left: 48px;
   font-size: 2rem;
   animation: float 2s ease-in-out infinite;
 }

 @keyframes float {

   0%,
   100% {
     transform: translateY(0px);
   }

   50% {
     transform: translateY(-10px);
   }
 }

 .sun:hover {
   transform: translate(-50%, -50%) scale(1.1);
   box-shadow: 0 0 60px rgba(212, 175, 55, 0.8),
     0 0 100px rgba(212, 175, 55, 0.4);
 }

 .sun-content {
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 1rem;
 }

 .sun img {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   border: 3px solid white;
   margin-bottom: 0.5rem;
   object-fit: cover;
 }

 .sun-name {
   font-size: 0.85rem;
   font-weight: 600;
   color: #090a0f;
   text-align: center;
 }

 .sun-role {
   font-size: 0.65rem;
   color: rgba(0, 0, 0, 0.7);
   text-align: center;
 }

 /* Orbites */
 .orbit {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   border-radius: 50%;
   /* on retire la bordure directe pour ne pas bloquer les clics */
   border: none;
   animation: rotate 60s linear infinite;
   pointer-events: none;
 }

 .orbit::before {
   content: "";
   position: absolute;
   inset: 0;
   border: 1px solid rgba(212, 175, 55, 0.15);
   border-radius: 50%;
   pointer-events: none;
   /* ✅ le cercle est décoratif et non cliquable */
 }

 .orbit-1 {
   width: 280px;
   height: 280px;
   animation-duration: 40s;
 }

 .orbit-2 {
   width: 420px;
   height: 420px;
   animation-duration: 60s;
   animation-direction: reverse;
 }

 .orbit-3 {
   width: 560px;
   height: 560px;
   animation-duration: 80s;
 }

 @keyframes rotate {
   from {
     transform: translate(-50%, -50%) rotate(0deg);
   }

   to {
     transform: translate(-50%, -50%) rotate(360deg);
   }
 }

 /* Planètes */
 .planet {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 80px;
   height: 80px;
   margin: -40px 0 0 -40px;
   background: none;
   border: none;
   cursor: pointer;
   transition: all 0.3s ease;
   padding: 0;
   pointer-events: auto;
   z-index: 15;
 }

 .planet-content {
   width: 100%;
   height: 100%;
   background: rgba(15, 20, 30, 0.9);
   border: 2px solid rgba(212, 175, 55, 0.3);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
   backdrop-filter: blur(10px);
 }

 .planet:hover .planet-content {
   transform: scale(1.2);
   border-color: #D4AF37;
   box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
 }

 .planet img {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   border: 2px solid rgba(212, 175, 55, 0.5);
   object-fit: cover;
 }

 /* Positionnement des planètes sur les orbites */
 .orbit-1 .planet:nth-child(1) {
   transform: rotate(0deg) translateX(140px) rotate(0deg);
 }

 .orbit-1 .planet:nth-child(2) {
   transform: rotate(180deg) translateX(140px) rotate(-180deg);
 }

 .orbit-2 .planet:nth-child(1) {
   transform: rotate(60deg) translateX(210px) rotate(-60deg);
 }

 .orbit-2 .planet:nth-child(2) {
   transform: rotate(180deg) translateX(210px) rotate(-180deg);
 }

 .orbit-2 .planet:nth-child(3) {
   transform: rotate(300deg) translateX(210px) rotate(-300deg);
 }

 .orbit-3 .planet:nth-child(1) {
   transform: rotate(90deg) translateX(280px) rotate(-90deg);
 }

 /* Planètes en attente */
 .pending-planets {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
 }

 .planet.pending .planet-content {
   opacity: 0.4;
   filter: grayscale(100%);
   border-style: dashed;
 }

 .planet.pending:hover .planet-content {
   opacity: 0.6;
   transform: scale(1.1);
 }

 /* Modal */
 .modal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.9);
   z-index: 1000;
   align-items: center;
   justify-content: center;
   animation: fadeIn 0.3s ease;
 }

 .modal.active {
   display: flex;
 }

 @keyframes fadeIn {
   from {
     opacity: 0;
   }

   to {
     opacity: 1;
   }
 }

 .modal-content {
   background: linear-gradient(145deg, rgba(15, 20, 30, 0.95), rgba(212, 175, 55, 0.1));
   border: 2px solid #D4AF37;
   border-radius: 20px;
   padding: 3rem;
   max-width: 500px;
   width: 90%;
   text-align: center;
   position: relative;
   animation: slideUp 0.4s ease;
   box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
   backdrop-filter: blur(20px);
 }

 @keyframes slideUp {
   from {
     transform: translateY(50px);
     opacity: 0;
   }

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

 .close-modal {
   position: absolute;
   top: 1rem;
   right: 1rem;
   font-size: 2rem;
   color: rgba(255, 255, 255, 0.6);
   cursor: pointer;
   background: none;
   border: none;
   transition: all 0.3s ease;
   width: 40px;
   height: 40px;
 }

 .close-modal:hover {
   color: #D4AF37;
   transform: rotate(90deg);
 }

 .modal-content img {
   width: 120px;
   height: 120px;
   border-radius: 50%;
   border: 3px solid #D4AF37;
   margin: 0 auto 1.5rem;
   object-fit: cover;
   box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
 }

 .modal-name {
   font-size: 1.8rem;
   font-weight: 600;
   color: white;
   margin-bottom: 0.5rem;
 }

 .modal-role {
   font-size: 1rem;
   color: #D4AF37;
   margin-bottom: 1rem;
   font-weight: 500;
 }

 .modal-humor {
   font-size: 0.9rem;
   color: rgba(255, 255, 255, 0.6);
   font-style: italic;
   margin-bottom: 2rem;
 }

 .team-links {
   display: flex;
   justify-content: center;
   gap: 1rem;
 }

 .team-links a {
   width: 50px;
   height: 50px;
   color: rgba(255, 255, 255, 0.6);
   font-size: 1.5rem;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.05);
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   transition: all 0.3s ease;
 }

 .team-links a:hover {
   color: #D4AF37;
   background: rgba(212, 175, 55, 0.2);
   transform: scale(1.2);
 }

 @media (max-width: 768px) {
  .solar-system {
    width: 100%;
    height: 80vw; /* réduit la hauteur visible sur mobile */
  }

  .sun {
    width: 90px;
    height: 90px;
  }

  .sun img {
    width: 40px;
    height: 40px;
  }

  /* Orbites compactées */
  .orbit-1 {
    width: 160px;
    height: 160px;
  }

  .orbit-2 {
    width: 230px;
    height: 230px;
  }

  .orbit-3 {
    width: 300px;
    height: 300px;
  }

  /* Position des planètes recalculée */
  .orbit-1 .planet:nth-child(1) { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  .orbit-1 .planet:nth-child(2) { transform: rotate(180deg) translateX(80px) rotate(-180deg); }

  .orbit-2 .planet:nth-child(1) { transform: rotate(60deg) translateX(115px) rotate(-60deg); }
  .orbit-2 .planet:nth-child(2) { transform: rotate(180deg) translateX(115px) rotate(-180deg); }
  .orbit-2 .planet:nth-child(3) { transform: rotate(300deg) translateX(115px) rotate(-300deg); }

  .orbit-3 .planet:nth-child(1) { transform: rotate(90deg) translateX(150px) rotate(-90deg); }

  /* Planètes plus petites */
  .planet {
    width: 60px;
    height: 60px;
  }

  .planet img {
    width: 38px;
    height: 38px;
  }

  /* Modal plus lisible sur petit écran */
  .modal-content {
    width: 95%;
    padding: 2rem;
    max-width: 400px;
  }

  .modal-content img {
    width: 100px;
    height: 100px;
  }

  .modal-name {
    font-size: 1.4rem;
  }

  .modal-role {
    font-size: 0.9rem;
  }

  .modal-humor {
    font-size: 0.8rem;
  }
}
