/* ── Feedback (« Donne ton avis ») ─────────────────────────────────────────
   Bouton dans le footer + fenêtre injectée par /js/feedback.js */

.footer-feedback {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.18);
  border: 1px solid rgba(129, 120, 255, 0.45);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.footer-feedback:hover {
  background: rgba(79, 70, 229, 0.32);
  border-color: rgba(129, 120, 255, 0.8);
}

.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.fb-modal.is-open { display: flex; }
.fb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.fb-box {
  position: relative;
  z-index: 1;
  width: min(480px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #141a2a, #0f1423);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  font-family: Inter, system-ui, sans-serif;
}
.fb-close {
  all: unset;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #9aa3b2;
  opacity: 0.6;
  cursor: pointer;
}
.fb-close:hover { opacity: 1; }
.fb-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ff3c3c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0 0 6px;
}
.fb-sub {
  text-align: center;
  font-size: 14px;
  color: #9aa3b2;
  margin: 0 0 20px;
}
.fb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #c7ccd8;
  margin: 0 0 8px;
}
.fb-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.fb-type {
  all: unset;
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  font-weight: 600;
  color: #c7ccd8;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.fb-type .fb-ico { display: block; font-size: 20px; margin-bottom: 4px; }
.fb-type:hover { border-color: rgba(129, 120, 255, 0.5); }
.fb-type.is-on {
  background: rgba(79, 70, 229, 0.22);
  border-color: #6d64ff;
  color: #fff;
}
.fb-text {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: #0b0f1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: #e5e7eb;
  font: 14px/1.45 Inter, system-ui, sans-serif;
  outline: none;
}
.fb-text:focus { border-color: #6d64ff; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25); }
.fb-count { text-align: right; font-size: 11px; color: #6b7280; margin-top: 4px; }
.fb-reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #aab1c0;
  cursor: pointer;
  user-select: none;
}
.fb-reply input { accent-color: #6d64ff; width: 16px; height: 16px; margin: 0; }
.fb-box input.fb-contact {
  display: none;
  width: 100%;
  height: auto;
  margin: 8px 0 0;
  line-height: 1.3;
  background: #0b0f1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
  font: 13px Inter, system-ui, sans-serif;
  outline: none;
}
.fb-box input.fb-contact.is-on { display: block; }
.fb-box input.fb-contact:focus { border-color: #6d64ff; outline: none; }
.fb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.fb-note { font-size: 11.5px; color: #6b7280; line-height: 1.4; }
.fb-send {
  all: unset;
  flex-shrink: 0;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.fb-send:hover { background: #5b52f0; }
.fb-send[disabled] { opacity: 0.45; cursor: default; }
.fb-msg { margin-top: 12px; font-size: 13px; text-align: center; min-height: 18px; }
.fb-msg.err { color: #f87171; }
.fb-done { text-align: center; padding: 18px 0 6px; }
.fb-done .fb-big { font-size: 42px; }
.fb-done p { color: #c7ccd8; margin: 10px 0 0; }
.fb-box input.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 480px) {
  .fb-types { grid-template-columns: repeat(2, 1fr); }
  .fb-box { padding: 28px 18px 20px; }
  .fb-foot { flex-direction: column-reverse; align-items: stretch; }
  .fb-send { text-align: center; }
}

/* ── Carte « Donne ton avis » à côté du bloc Discord (accueil) ───────────── */
.join-input-row button.fb-cta {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 0 1 230px;
  min-width: 200px;
  margin-left: 12px;
  padding: 11px 14px 10px;
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(167, 139, 250, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(15, 20, 35, 0.6));
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #e5e7eb;
  font-family: Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.join-input-row button.fb-cta:hover {
  border-color: rgba(167, 139, 250, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.2);
}
.join-input-row button.fb-cta:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}
.fb-cta-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ddd6fe;
}
.fb-cta-head .fb-cta-ico { font-size: 14px; }
.fb-cta-text {
  font-size: 12.5px;
  line-height: 1.35;
  color: #d1d5db;
  min-height: 34px;
}
.fb-cta-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9px;
  background: #7c3aed;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.2s ease;
}
.join-input-row button.fb-cta:hover .fb-cta-btn { background: #6d28d9; }

/* Écrans moyens : carte plus étroite, sans la phrase */
@media (min-width: 769px) and (max-width: 1150px) {
  .join-input-row button.fb-cta {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
    padding: 10px;
  }
  .fb-cta-head,
  .fb-cta-text { display: none; }
  .fb-cta-btn { white-space: nowrap; padding: 9px 12px; }
}
/* Mobile, et 769–849px où la ligne pseudo passe en colonne :
   bandeau compact sous le bloc Discord */
@media (max-width: 849px) {
  .join-input-row button.fb-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    flex-basis: auto;
    margin-left: 0;
    padding: 9px 12px;
  }
  .fb-cta-head { display: flex; }
  .fb-cta-text { display: none; }
  .fb-cta-btn { padding: 5px 10px; }
}

/* ── Bouton « Contester mon ban » dans le bandeau de compte banni ────────── */
.banned-banner .banned-banner-text { flex: 1; }
.banned-banner button.ban-contest-btn {
  all: unset;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(252, 165, 165, 0.55);
  color: #fff;
  font: 700 14px Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.banned-banner button.ban-contest-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #fca5a5;
}
.banned-banner button.ban-contest-btn:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .banned-banner { flex-wrap: wrap; }
  .banned-banner button.ban-contest-btn { width: 100%; justify-content: center; }
}
