/* =========================================================
   Alliance — Page création
   Thème WoS Battle : blanc, propre, lisible
   ========================================================= */

/* =============================
   CONTAINER
   ============================= */

.page-alliance-create {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* =============================
   HERO HEADER
   ============================= */

.alliance-hero {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  margin-bottom: 26px;
}

/* Titre principal comme sur la page Membres */
.alliance-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: -20px 0 18px 4px;
}

.alliance-hero-text h1 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1e293b;
}

.alliance-hero-text p {
  margin: 4px 0;
  color: #475569;
  font-size: 0.97rem;
}

.alliance-hero-note {
  margin-top: 8px;
  color: #334155;
  font-size: 0.9rem;
}

/* Badge */

.alliance-hero-badge {
  min-width: 220px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 40px 16px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #f1f5f9;
}

.badge-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}

.badge-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

/* =============================
   TWO COLUMNS PANEL
   ============================= */

.alliance-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .alliance-panel {
    grid-template-columns: 1fr;
  }
}

/* =============================
   CARD
   ============================= */

.card {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.45;
}

.card-text-small {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}

.card-list {
  margin: 6px 0 10px;
  padding-left: 20px;
  color: #475569;
  font-size: 0.95rem;
}

/* =============================
   WARNING CARD
   ============================= */

.card-warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
}

.card-warning .card-title {
  color: #9a3412;
}

.card-warning .card-text {
  color: #7c2d12;
}

/* =============================
   ALLIANCE INFOS
   ============================= */

.alliance-infos {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}

.alliance-infos li {
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
}

.alliance-infos span {
  color: #64748b;
}

/* =============================
   LINK BOX
   ============================= */

.alliance-link-box {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  overflow-x: auto;
  color: #1e293b;
}

/* =============================
   MEMBERS LIST
   ============================= */

.alliance-members-list {
  max-height: 340px;
  overflow-y: auto;
  margin: 12px 0;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.alliance-member-item {
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}

.alliance-member-item:last-child {
  border-bottom: none;
}

.alliance-member-body {
  flex: 1;
}

.alliance-member-main {
  display: flex;
  justify-content: space-between;
}

.pseudo {
  font-weight: 600;
  color: #1e293b;
}

.wos-id {
  font-size: 0.8rem;
  color: #64748b;
}

/* Meta (email + serveur) */

.alliance-member-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 2px;
}

.email {
  max-width: 180px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* =============================
   BUTTON
   ============================= */

.btn.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
  transition: 0.15s ease;
}

.btn.btn-primary:hover {
  filter: brightness(1.08);
}

.btn.btn-primary:active {
  filter: brightness(0.95);
}

/* =============================
   INVITATIONS
   ============================= */

.alliance-invites-list {
  list-style: none;
  padding: 0;
}

.alliance-invite-item {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.invite-main {
  display: flex;
  justify-content: space-between;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
}

.invite-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 2px;
}

/* Status pills */

.status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-accepted { background: #dcfce7; color: #166534; }
.status-refused  { background: #fee2e2; color: #b91c1c; }

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 700px) {
  .alliance-hero {
    flex-direction: column;
  }

  .alliance-hero-badge {
    text-align: left;
    width: 100%;
  }
}

/* =========================================================
   Alliance — Améliorations : Bannière + Barre de progression
   Compatible avec ton thème 100% sans casse
   ========================================================= */

/* =============================
   BANNIÈRE DE PROGRESSION
   ============================= */

.alliance-progress-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.alliance-progress-banner .progress-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.progress-note {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 10px;
}

.progress-note.success {
  color: #166534;
  font-weight: 600;
}

/* =============================
   PROGRESS BAR
   ============================= */

.progress-bar {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease-in-out;
}

/* =============================
   INVITATIONS EXISTANTES
   (affiner légèrement le spacing)
   ============================= */

.alliance-invite-item {
  padding: 10px 0;
}

/* =============================
   RESPONSIVE PATCH
   (Intégration propre du nouveau bloc)
   ============================= */

@media (max-width: 700px) {
  .alliance-progress-banner {
    padding: 16px;
  }
}

.invite-status-pill {
  margin-top: 4px;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
}

.invite-status-pill.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.invite-status-pill.status-accepted {
  background: #dcfce7;
  color: #166534;
}
.invite-status-pill.status-refused {
  background: #fee2e2;
  color: #b91c1c;
}

/* =========================================================
   MODALE - WoS Battle
   ========================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55); /* bleu nuit transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 14px;
  width: 95%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  animation: slideUp 0.25s ease;
  text-align: center;
}

.modal-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Boutons WoS Battle */
.modal-actions .btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.modal-actions .btn-secondary {
  flex: 1;
  background: #e2e8f0;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
}

.modal-actions .btn-secondary:hover {
  background: #cbd5e1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
