/* widget.css - styles pour le widget Discord + particules */

/* section */
.section-widget {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.03));
}
.section-widget .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* heading centré */
#widget-heading {
  text-align: center;
  font-weight: 800;
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: var(--text);
}

/* wrapper centré */
.widget-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* frame minimal autour du widget (on retire le look "card") */
.widget-frame {
  position: relative;
  width: 100%;
  max-width: 780px;  /* ajuste pour élargir le widget si besoin */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;      /* plus de "card" visible */
  border: none;                 /* pas de bordure */
  box-shadow: none;             /* pas d'ombre automatique */
  overflow: hidden;             /* important pour que les particules ne grandissent pas la page */
}

/* iframe responsive */
.discord-widget {
  width: 100% !important;
  height: 600px;
  max-height: 80vh;
  border: none;
  border-radius: 8px;
  display: block;
}

/* wrapper centré */
.widget-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative; /* important : référence pour .widget-particles */
  z-index: 2;
}

/* particules container (overlay autour du widget) */
.widget-particles {
  pointer-events: none;
  position: absolute;
  inset: -6% 0;               /* couvre toute la .widget-wrap */
  z-index: 6;
  overflow: visible;      /* autoriser léger débord */
  display: block;
}


/* particule */
.widget-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 8px rgba(255,255,255,0.95), 0 0 18px rgba(255,255,255,0.12);
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
  opacity: 0.85;
  filter: blur(0.6px);
}

/* variantes */
.widget-particle.small { width: 3px; height: 3px; filter: blur(0.4px); opacity: 0.7; }
.widget-particle.med   { width: 6px; height: 6px; }
.widget-particle.large { width: 10px; height: 10px; filter: blur(1.2px); opacity: 1; }

/* responsive */
@media (max-width: 980px) {
  .discord-widget { height: 520px; }
}
@media (max-width: 720px) {
  .discord-widget { height: 420px; }
  #widget-heading { font-size: 1.4rem; }
}
