/* ==========================================================================
   ALBIREO - SYSTÈME SOLAIRE INTERACTIF
   ========================================================================== */

.albireo-solar-system {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  user-select: none;
}

.albireo-solar-system svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Soleil central */
.albireo-sun {
  fill: #FFFFFF;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 50px rgba(168, 181, 224, 0.7))
    drop-shadow(0 0 90px rgba(74, 107, 255, 0.4));
}

/* Orbites */
.albireo-orbit {
  fill: none;
  stroke: rgba(168, 181, 224, 0.18);
  stroke-width: 0.6;
}

/* Planètes */
.albireo-planet {
  cursor: pointer;
  transition: filter 0.4s ease, r 0.4s ease;
}

.albireo-planet.is-print     { fill: #F5C58A; filter: drop-shadow(0 0 12px rgba(245, 197, 138, 0.7)); }
.albireo-planet.is-identite  { fill: #6DBAE8; filter: drop-shadow(0 0 12px rgba(109, 186, 232, 0.7)); }
.albireo-planet.is-logo      { fill: #F0A8B0; filter: drop-shadow(0 0 12px rgba(240, 168, 176, 0.7)); }
.albireo-planet.is-strategie { fill: #D080E5; filter: drop-shadow(0 0 12px rgba(208, 128, 229, 0.7)); }
.albireo-planet.is-web       { fill: #A8E060; filter: drop-shadow(0 0 14px rgba(168, 224, 96, 0.85)); }

.albireo-planet-group:hover .albireo-planet,
.albireo-planet-group.is-active .albireo-planet {
  r: 14;
}

.albireo-planet-group.is-active .albireo-planet-ring {
  opacity: 1;
  animation: albireoPulse 2s ease-in-out infinite;
}

.albireo-planet-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes albireoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.6; }
}

.albireo-planet-group {
  transform-box: fill-box;
  transform-origin: center;
}

/* Labels */
.albireo-planet-label {
  font-family: 'Afacad Flux', 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  fill: #F5F0E1;
  cursor: pointer;
  pointer-events: auto;
}

.albireo-planet-group.is-active .albireo-planet-label {
  font-weight: 500;
}

/* Animation orbites tournantes (mode "anim") */
.albireo-solar-system.is-animated .albireo-orbit-group {
  transform-box: fill-box;
  transform-origin: center;
}

.albireo-solar-system.is-animated .albireo-orbit-1 { animation: albireoOrbit 60s linear infinite; }
.albireo-solar-system.is-animated .albireo-orbit-2 { animation: albireoOrbit 80s linear infinite reverse; }
.albireo-solar-system.is-animated .albireo-orbit-3 { animation: albireoOrbit 100s linear infinite; }

@keyframes albireoOrbit {
  to { transform: rotate(360deg); }
}

/* Contrer la rotation pour garder les labels droits */
.albireo-solar-system.is-animated .albireo-planet-group {
  animation-name: albireoCounterOrbit;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.albireo-orbit-1 .albireo-planet-group { animation-duration: 60s; }
.albireo-orbit-2 .albireo-planet-group { animation-duration: 80s; animation-direction: reverse; }
.albireo-orbit-3 .albireo-planet-group { animation-duration: 100s; }

@keyframes albireoCounterOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* ==========================================================================
   CARTE DÉTAIL PRESTATION (sous le système solaire, page Prestations)
   ========================================================================== */

.albireo-prestation-detail {
  background: linear-gradient(180deg, rgba(19, 24, 56, 0.55) 0%, rgba(10, 14, 39, 0.85) 100%);
  border: 1px solid rgba(168, 181, 224, 0.15);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 0 60px rgba(74, 107, 255, 0.15);
  max-width: 720px;
  margin: 0 auto;
}

.albireo-prestation-detail h3 {
  margin-top: 0;
}

.albireo-prestation-pagination {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem 0 1.5rem;
}

.albireo-prestation-pagination button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(168, 181, 224, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.albireo-prestation-pagination button.is-active {
  background: #FFFFFF;
  transform: scale(1.4);
}

.albireo-prestation-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid rgba(168, 181, 224, 0.3);
  color: #FFFFFF;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: border-color 0.3s ease;
}

.albireo-prestation-nav:hover { border-color: rgba(168, 181, 224, 0.7); }
.albireo-prestation-nav.is-prev { left: -22px; }
.albireo-prestation-nav.is-next { right: -22px; }

@media (max-width: 781px) {
  .albireo-prestation-nav { display: none; }
}

/* ==========================================================================
   CONSTELLATION DU CYGNE
   ========================================================================== */

.albireo-constellation {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}

.albireo-constellation svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.albireo-cstar {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.albireo-cstar.is-major {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 16px rgba(168, 181, 224, 0.6));
}

.albireo-cline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.8;
}

.albireo-clabel {
  font-family: 'Afacad Flux', sans-serif;
  font-weight: 300;
  font-size: 11px;
  fill: #F5F0E1;
  letter-spacing: 0.08em;
}

.albireo-clabel.is-title {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Twinkle */
@media (prefers-reduced-motion: no-preference) {
  .albireo-cstar {
    animation: albireoTwinkle 4s ease-in-out infinite;
  }
  .albireo-cstar:nth-child(odd) { animation-delay: -1.5s; }
  .albireo-cstar:nth-child(3n)  { animation-delay: -3s; }

  @keyframes albireoTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
  }
}
