/* Embed Discord ProxyCloud — carte type “invitation” (section index ou page dédiée) */

/* ——— Section sur l’index ——— */
.section-discord {
  position: relative;
  min-height: 480px;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}
.section-discord .embed-discord-bg {
  position: absolute;
  inset: 0;
  background: #1a1b2e url('../img/embed_discord.png') center center / cover no-repeat;
  z-index: 0;
}
.section-discord .embed-discord-wrap {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-discord .section-title,
.section-discord .section-desc {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.section-discord .section-desc {
  margin-bottom: 2rem;
}

/* ——— Page fullscreen (discord.html) ——— */
.embed-discord-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.embed-discord-page .embed-discord-bg {
  position: fixed;
  inset: 0;
  background: url('../img/embed_discord.png') center center / cover no-repeat;
  z-index: 0;
}
.embed-discord-page .embed-discord-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

/* Wrapper commun */
.embed-discord-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

/* Carte type “frosted glass” */
.embed-discord-card {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(30, 32, 45, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Panneau gauche — identité serveur */
.embed-discord-left {
  width: 160px;
  flex-shrink: 0;
  padding: 1.75rem 1.25rem;
  background: rgba(20, 22, 32, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.embed-discord-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.embed-discord-logo-img {
  max-width: 90px;
  height: auto;
  display: block;
  object-fit: contain;
}
.embed-discord-name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.embed-discord-members {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot--online {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

/* Panneau droit — infos + CTA */
.embed-discord-right {
  flex: 1;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.embed-discord-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.embed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tag-dot--blue { background: #22d3ee; }
.tag-dot--green { background: #34d399; }
.tag-dot--orange { background: #fbbf24; }
.embed-discord-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.embed-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  color: #5865f2;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.embed-discord-btn:hover {
  background: #fff;
  color: #5865f2;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}
.embed-discord-btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .embed-discord-card {
    flex-direction: column;
  }
  .embed-discord-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
  }
  .embed-discord-right {
    padding: 1.25rem 1.5rem;
  }
}
