/* =========================
   VARIABLES
========================= */
:root {
  --bg-main: #0f1115;
  --bg-secondary: #10151d;
  --bg-card: #141b25;
  --bg-card-hover: #1a2230;

  --text-main: #e6e9ef;
  --text-muted: #9aa4b2;

  --accent-green: #2ecc71;
  --accent-green-dark: #1e9e57;
  --accent-blue: #3fa9f5;

  --border-soft: rgba(255,255,255,0.55);
}

/* =========================
   GLOBAL
========================= */
body {
  background: var(--bg-main);
  background-color: #0f1115;
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================
   HEADER / HERO
========================= */
.hero {
  position: relative;
  height: 400px;
  background: url("../img/banner.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,15,20,0.1),
    rgba(11,15,20,0.9)
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-top {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
}

.form-header {
  margin-right:auto;
  display: flex;
  gap: 0.6rem;
}

.hero-content {
  height: calc(100% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  max-width: 320px;
}

.hero-logo {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================
   SERVER CARD
========================= */
.server-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: all 0.25s ease;
  height: 100%;
  cursor:pointer;
}

.server-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.server-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.server-content {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.server-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.server-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   TAGS
========================= */
.server-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.server-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}

/* =========================
   ACTION BUTTONS
========================= */
.server-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-server {
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.btn-server:hover {
  background: rgba(255,255,255,0.05);
}

.btn-server.green {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-server.blue {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* =========================
   FORM
========================= */
.form-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 2rem;
}

.form-control,
textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.form-control::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
textarea:focus {
  background: var(--bg-card-hover);
  border-color: var(--accent-green);
  box-shadow: none;
  color: var(--text-main);
}

.btn-submit {
  background: linear-gradient(
    135deg,
    var(--accent-green),
    var(--accent-green-dark)
  );
  border: none;
  color: #fff;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  padding-left:35px;
  padding-right:35px;
}


/* =========================
   PREMIUM SLOTS
========================= */
.premium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: 325px;
  border: 2px dashed rgba(255, 215, 100, 0.35);
  border-radius: 16px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(0,0,0,0.15)
  );

  text-align: center;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.premium-slot:hover {
  border-color: #f5c16c;
  background: linear-gradient(
    180deg,
    rgba(245,193,108,0.08),
    rgba(0,0,0,0.25)
  );
  box-shadow: 0 0 0 1px rgba(245,193,108,0.35),
              0 12px 30px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

/* + icon */
.premium-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Texts */
.premium-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.premium-cta {
  font-size: 0.85rem;
  color: #f5c16c;
}

/* =========================
   SERVER FOOTER (STATUS + VOTES)
========================= */
.server-footer {
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT : ONLINE */
.server-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2ecc71;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.8);
}

/* RIGHT : VOTES */
.server-votes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #ff5a5f;
}

.server-votes i {
  font-size: 0.85rem;
}

/* =========================
   MODAL
========================= */
/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;              /* ← AJOUTEZ CETTE LIGNE */
  align-items: center;        /* ← AJOUTEZ CETTE LIGNE */
  justify-content: center;    /* ← AJOUTEZ CETTE LIGNE */
  padding: 1rem;              /* ← AJOUTEZ CETTE LIGNE */
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  z-index: 10001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-contentt {
  padding: 1.2rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  border: none;
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.7);
}

.vote-row {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.8rem;
}

.vote-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.vote-input::placeholder {
  color: var(--text-muted);
}

.vote-input:focus {
  outline: none;
  border-color: var(--accent-green);
  background: var(--bg-card-hover);
}

.vote-row .btn-submit {
  white-space: nowrap;
  padding: 0.75rem 1rem;
}

.vote-success {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  text-align: center;
  font-weight: 600;
}

.vote-already {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  text-align: center;
  font-weight: 600;
}

.footer-hero {
  position: relative;
  background: url("../img/banner.jpg") center / cover no-repeat;
  padding: 2.5rem 0;
  color: #cfd6df;
  font-size: 0.9rem;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11,15,20,0.1),
    rgba(11,15,20,0.9)
  );
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Ligne 1 */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 500;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Ligne 2 */
.footer-desc {
  opacity: 0.85;
}

/* Ligne 3 */
.footer-copy {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* =========================
   PREMIUM FORM
========================= */

.premium-slot {
  cursor:pointer;
}

.premium-slot.active {
  border-style: solid;
}

.premium-form {
  padding: 1rem;
}

.premium-select {
  width: 100%;
  background: #0e1014;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.7rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.premium-select:focus {
  outline: none;
  border-color: #f5c16c;
  background: #171a21;
}

.premium-btn {
padding-left:25px;
padding-right:25px;
}

.premium-sponsored {
  position: relative;
}

.premium-sponsored::after {
  content: "★ PREMIUM";
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f5c16c;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}

/* =========================
   FLASH MESSAGES
========================= */

.flash-message {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: flashFadeIn 0.35s ease;
}

/* Icône */
.flash-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

/* Texte */
.flash-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* SUCCESS */
.flash-success {
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.flash-success .flash-icon {
  background: rgba(46, 204, 113, 0.15);
  color: var(--accent-green);
}

.flash-success .flash-text {
  color: var(--accent-green);
}

/* ERROR */
.flash-error {
  border: 1px solid rgba(231, 76, 60, 0.35);
}

.flash-error .flash-icon {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.flash-error .flash-text {
  color: #e74c3c;
}

/* Animation */
@keyframes flashFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
