/* Règle globale pour tous les textes en blanc sur Stellar Nexus */
.sn-factions-banner-section h1,
.sn-factions-banner-section h2,
.sn-factions-banner-section h3,
.sn-factions-banner-section h4,
.sn-factions-banner-section h5,
.sn-factions-banner-section h6,
.sn-factions-banner-section p,
.sn-factions-banner-section span,
.sn-factions-banner-section div,
.banniere-intermediaire h1,
.banniere-intermediaire h2,
.banniere-intermediaire h3,
.banniere-intermediaire h4,
.banniere-intermediaire h5,
.banniere-intermediaire h6,
.banniere-intermediaire p,
.banniere-intermediaire span,
.banniere-intermediaire div,
.sn-progress-social-wrapper h1,
.sn-progress-social-wrapper h2,
.sn-progress-social-wrapper h3,
.sn-progress-social-wrapper h4,
.sn-progress-social-wrapper h5,
.sn-progress-social-wrapper h6,
.sn-progress-social-wrapper p,
.sn-progress-social-wrapper span,
.sn-progress-social-wrapper div,
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main p,
main span,
main div,
section h1,
section h2,
section h3,
section h4,
section h5,
section h6,
section p,
section span,
section div {
  color: #fff !important;
}

/* Règle spécifique pour les marges du texte de l'association */
@media (max-width: 700px) {
  .association-desc {
    max-width: 92vw !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Règle pour le titre de l'association en mode mobile */
  .sn-banner-association h2 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* Couleurs des liens cliquables sur Stellar Nexus */
body a:not(.stellar-nexus-btn):not(.localapp-btn-don):not(.local-app-btn-index) {
  color: var(--color-accent2) !important;
  transition: color 0.2s;
}

body a:not(.stellar-nexus-btn):not(.localapp-btn-don):not(.local-app-btn-index):hover {
  color: var(--color-accent) !important;
}

/* Bannière Stellar Nexus */
.stellar-nexus-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px; /* Ajuste selon la hauteur de ton image */
  z-index: 1;
  pointer-events: none;
  user-select: none;
  border-radius: 0 !important;
}
.stellar-nexus-gradient-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  border-radius: 0 !important;
}
.stellar-nexus-hero {
  position: relative;
  width: 100vw;
  min-height: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #181c2a;
  margin: 0;
  padding: 0;
}
.stellar-nexus-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: rgba(0,0,0,0.18) !important;
  pointer-events: none;
}
.stellar-nexus-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.stellar-nexus-hero video.stellar-nexus-video-fade {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
}
.stellar-nexus-hero video.stellar-nexus-video-fade.visible {
  opacity: 0.7;
}
/* Styles d'origine pour index.html */
.stellar-nexus-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 0;
  text-align: center;
}
/* Variante pour la page dédiée */
.stellar-nexus-overlay--page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
}
.stellar-nexus-hero--page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #181c2a;
  margin: 0;
  padding: 0;
}
.stellar-nexus-hero--page .stellar-nexus-video-fade {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
}
.stellar-nexus-hero--page .stellar-nexus-video-fade.visible {
  opacity: 0.7;
}
.stellar-nexus-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4vh;
}
.stellar-nexus-title {
  color: var(--color-text);
  font-family: var(--font-title);
  font-size: clamp(2.5em, 8vw, 5.5em) !important;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  margin-top: 0;
}
.stellar-nexus-subtitle {
  color: var(--color-text);
  font-family: var(--font-title);
  font-size: clamp(2em, 7vw, 4.5em) !important;
  letter-spacing: 0.12em;
  text-align: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 32px #000c;
}
.stellar-nexus-separator {
  width: clamp(90px, 18vw, 180px);
  height: 2px;
  background: var(--color-separator);
  margin: clamp(16px, 4vw, 32px) auto clamp(16px, 4vw, 32px) auto !important;
  opacity: 1;
  border: none;
  display: block;
}
.stellar-nexus-desc {
  color: var(--color-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(0.7em, 2vw, 2em) !important;
  text-align: center;
  margin-bottom: 32px;
}
.stellar-nexus-btn {
  background: #08d9d6;
  color: #23263a;
  font-family: 'DIN Next LT Pro Light', Arial, sans-serif !important;
  font-size: 1.25em;
  padding: 12px 32px;
  border-radius: 2.2em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  display: block;
  margin: 32px auto 0 auto;
  box-shadow: 0 2px 12px #0004;
  text-align: center;
}
.stellar-nexus-btn:hover {
  background: #fff;
  color: #23263a;
}
.stellar-nexus-title,
.stellar-nexus-subtitle,
.stellar-nexus-desc,
.stellar-nexus-btn {
  font-family: 'Cinzel', serif;
}
#stellar-nexus-bis .stellar-nexus-title {
  font-family: 'DIN Next LT Pro', Arial, sans-serif !important;
}
.sn-separateur-wrapper {
  position: relative !important;
  width: 100vw !important;
  height: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
  box-shadow: none !important;
}
.sn-separateur {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  height: 5px !important;
  min-height: 5px !important;
  max-height: 5px !important;
  object-fit: cover !important;
  margin: 0 !important;
  z-index: 11 !important;
  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
  box-shadow: none !important;
}
.bandeau-noir-separateur {
  width: 100vw;
  min-height: 120px;
  background: #000 !important;
  display: block;
  z-index: 2;
  position: relative;
}
@keyframes bumpFadeIn {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes enveloppeFadePop {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-17deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.12) rotate(-17deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-17deg);
  }
}
@keyframes reseauFadePopIncline {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-17deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.12) rotate(-17deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-17deg);
  }
}
@keyframes reseauFadePopInclineReverse {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(17deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.12) rotate(17deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(17deg);
  }
}
.enveloppe-cadre {
  width: 110px;
  height: 110px;
  position: absolute;
  left: 50vw;
  top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.enveloppe-cadre-visible .enveloppe-anim img {
  animation: reseauFadePopIncline 0.7s cubic-bezier(.4,0,.2,1) 0.18s forwards !important;
  opacity: 0;
}
.enveloppe-anim {
  display: inline-block;
  cursor: pointer;
  pointer-events: auto;
}

.enveloppe-cadre .enveloppe-anim img {
  height: 100px;
  width: 100px;
  display: block;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.33,1,.68,1), box-shadow 0.4s cubic-bezier(.33,1,.68,1);
  animation: none;
}
.enveloppe-anim img {
  height: 120px;
  width: 120px;
  display: block;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.33,1,.68,1), box-shadow 0.4s cubic-bezier(.33,1,.68,1);
  animation: none;
}
.enveloppe-cadre-visible .enveloppe-anim img {
  animation: reseauFadePopIncline 0.7s cubic-bezier(.4,0,.2,1) 0.18s forwards !important;
  opacity: 0;
}
.enveloppe-anim:hover img {
  transform: scale(1.08) rotate(-24deg) !important;
  box-shadow: 0 8px 24px #0008;
  opacity: 1;
}
.enveloppe-cadre-dons {
  width: 150px;
  height: 150px;
  position: absolute;
  left: 35vw;
  top: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.enveloppe-cadre-dons-visible .enveloppe-anim img {
  animation: reseauFadePopIncline 0.7s cubic-bezier(.4,0,.2,1) 0.18s forwards !important;
  opacity: 0;
}
.enveloppe-cadre-dons .enveloppe-anim img {
  height: 140px;
  width: 140px;
  display: block;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.33,1,.68,1), box-shadow 0.4s cubic-bezier(.33,1,.68,1);
  animation: none;
}
.enveloppe-cadre-dons .enveloppe-anim:hover img {
  transform: scale(1.08) rotate(-24deg) !important;
  box-shadow: 0 8px 24px #0008;
  opacity: 1;
}
.enveloppe-cadre-liens {
  width: 130px;
  height: 130px;
  position: absolute;
  left: 65vw;
  top: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.enveloppe-cadre-liens-visible .enveloppe-anim img {
  animation: reseauFadePopInclineReverse 0.7s cubic-bezier(.4,0,.2,1) 0.18s forwards !important;
  opacity: 0;
}
.enveloppe-cadre-liens .enveloppe-anim img {
  height: 120px;
  width: 120px;
  display: block;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.33,1,.68,1), box-shadow 0.4s cubic-bezier(.33,1,.68,1);
  animation: none;
}
.enveloppe-cadre-liens .enveloppe-anim:hover img {
  transform: scale(1.08) rotate(24deg) !important;
  box-shadow: 0 8px 24px #0008;
  opacity: 1;
}

/* Séparateurs avec épaisseur constante et ombre débordante */
.separateur-fixe {
  min-height: 5px !important;
  height: 5px !important;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 -6px 16px 0px rgba(0,0,0,0.85), 0 6px 16px 0px rgba(0,0,0,0.85);
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100vw !important;
  border-radius: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Bannière intermédiaire entre les sections Stellar Nexus */
.banniere-intermediaire {
  width: 100vw;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  position: relative;
  z-index: 5;
  padding: 60px 0 60px 0;
}
.banniere-intermediaire-content {
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banniere-intermediaire-content h2 {
  font-size: 2.5em;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.banniere-intermediaire-content p {
  font-size: 1.2em;
  font-weight: 300;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
} 

/* Styles pour le bandeau Local APP */
 

.reseaux-banner {
  background: transparent !important;
  border-radius: 32px;
  padding: 32px 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  /* plus d'ombre */
} 

.stellar-nexus-hero video {
  z-index: 1 !important;
}
.stellar-nexus-hero::before {
  z-index: 2 !important;
  background: rgba(0,0,0,0.18) !important;
}
.stellar-nexus-overlay {
  z-index: 3 !important;
  position: relative;
}
.stellar-nexus-gradient {
  z-index: 2 !important;
} 

 

/* --- Factions Banner --- */
.sn-factions-banner {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.faction {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}
.card-pack {
  position: relative;
  width: 240px;
  height: 320px;
  margin-bottom: 1rem;
}
.card {
  position: absolute;
  width: 160px;
  height: 240px;
  left: 40px;
  top: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-radius: 10px;
  transition: 
    transform 0.32s cubic-bezier(.4,.2,.2,1),
    box-shadow 0.25s;
  cursor: pointer;
}
.card:nth-child(1) { left: 0; z-index: 1; transform: rotate(-12deg); }
.card:nth-child(2) { left: 40px; z-index: 2; transform: rotate(0deg); }
.card:nth-child(3) { left: 80px; z-index: 3; transform: rotate(12deg); }
.card:hover, .card.active {
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.card:nth-child(1):hover, .card:nth-child(1).active {
  --card-rotate: -12deg;
  transform: translate(-32px, -8px) rotate(-12deg);
}
.card:nth-child(2):hover, .card:nth-child(2).active {
  --card-rotate: 0deg;
  transform: translateY(-38px) rotate(0deg);
}
.card:nth-child(3):hover, .card:nth-child(3).active {
  --card-rotate: 12deg;
  transform: translate(32px, -8px) rotate(12deg);
}
.faction-title {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.2rem;
  text-align: center;
}
.faction-desc {
  font-size: 1rem;
  text-align: center;
  color: #888;
}
.card.card-active {
  z-index: 100 !important;
  transform: scale(1.12) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
  transition: transform 0.25s, box-shadow 0.25s;
}
@media (max-width: 900px) {
  .sn-factions-banner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .faction {
    width: 100%;
    max-width: 320px;
  }
} 

@media (max-width: 1100px) {
  body {
    overflow-y: auto !important;
    position: static !important;
    top: auto !important;
    width: auto !important;
  }
} 

 

@media (max-width: 700px) {
  .stellar-nexus-btn {
    font-size: 0.98em !important;
    padding: 8px 18px !important;
    border-radius: 1.5em !important;
  }
  .stellar-nexus-hero {
    min-height: 340px !important;
    height: 210vh !important;
    max-height: 210vw !important;
  }
} 

@keyframes snBlockFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.stellar-nexus-block.hero-title-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.stellar-nexus-block.hero-title-fade.sn-header-anim-visible {
  opacity: 1;
  transform: none;
}
.stellar-nexus-block.hero-title-fade.scrolled-up {
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  transform: translateY(-60px);
} 

.stellar-nexus-block.hero-title-fade .stellar-nexus-title,
.stellar-nexus-block.hero-title-fade .stellar-nexus-subtitle,
.stellar-nexus-block.hero-title-fade .stellar-nexus-separator,
.stellar-nexus-block.hero-title-fade .stellar-nexus-desc {
  opacity: 0;
  transform: translateY(160px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.4,0,.2,1);
}
.stellar-nexus-block.hero-title-fade.sn-header-anim-visible .stellar-nexus-title,
.stellar-nexus-block.hero-title-fade.sn-header-anim-visible .stellar-nexus-subtitle,
.stellar-nexus-block.hero-title-fade.sn-header-anim-visible .stellar-nexus-separator,
.stellar-nexus-block.hero-title-fade.sn-header-anim-visible .stellar-nexus-desc {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
} 

@media (max-width: 900px) and (orientation: landscape) {
  .stellar-nexus-hero {
    min-height: 600px !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  
  /* Réduction de la taille du texte et bouton Stellar Nexus sur la page Index */
  .stellar-nexus-title {
    font-size: 3.5em !important;
    transform: translateY(-15px) !important;
  }
  
  .stellar-nexus-subtitle {
    font-size: 3.2em !important;
    margin-bottom: 4px !important;
    transform: translateY(-15px) !important;
  }
  
  .stellar-nexus-separator {
    margin: 4px auto 8px auto !important;
    transform: translateY(-15px) !important;
  }
  
  .stellar-nexus-desc {
    font-size: 1.2em !important;
    transform: translateY(-15px) !important;
  }
  
  .stellar-nexus-btn {
    font-size: 1.1em !important;
    padding: 10px 24px !important;
    transform: translateY(-20px) !important;
  }
} 