/* RESET */
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0b0e14;
  color: #e6e6e6;
  line-height: 1.6;
}

/* HEADER */
.site-header {
  width: 100%;
}

.site-header img {
  width: 100%;
  height: auto; /* 🔥 important */
  display: block;
}
/* HEADER LANG */
.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
}

/* switch sur l'image */
.lang-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
}

/* style */
.lang-switcher select {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    cursor: pointer;
}


/* accessibilité */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* NAVBAR */
.navibar {

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 16px;
    row-gap: 12px;

    padding: 25px;

    background: linear-gradient(to bottom, #0b0e14, #0e121c);
}

.nav-connect {

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 16px;
}

.nav-user {

    display: flex;
    align-items: center;

    gap: 12px;
}

/* BADGE */
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;

    background: rgba(255,255,255,0.05);
    border: 1px solid #2a3142;
    border-radius: 8px;

    padding: 6px 12px;
    font-size: 13px;
}

/* ICON */
.user-icon {
    font-size: 14px;
    opacity: 0.8;
}

/* EMAIL */
.user-email {
    color: #d4b15f;
}

.btn {
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #d4b15f, #b8923d);
  color: #1a1a1a;
}

.btn-secondary {
  background: #1a1f2b;
  border: 1px solid #2a3142;
  color: #e6e6e6;
}

.btn-danger {
  background: #ff0000;
  border: 1px solid #2a3142;
  color: #e6e6e6;
}

.btn:hover {
  transform: translateY(-2px);
}

/* LAYOUT GLOBAL */
.container {
  display: grid;
  grid-template-columns: minmax(300px, 22%) 1fr minmax(300px, 22%);
  gap: 30px;

  max-width: 1920px;        /* 🔥 AJOUT CRITIQUE */
  width: 100%;

  margin: 20px auto 0 auto;
  padding: 0 20px;
}

/* SIDEBARS */
.sidebar {
  width: 100%;
}

/* CONTENU CENTRAL */
.content {
  background: #08111c;
  border-radius: 10px;
  border: 1px solid #1e2a38;

  width: 100%;
  min-height: 600px; /* 🔥 stabilise la hauteur */

  padding: 20px;
}

.content h2 {
  color: #d4b15f;
}


.features {
  padding: 0;
}

.features li {
  list-style: none;
  padding-left: 20px;
  position: relative;
  margin: 8px 0;
}

.features li::before {
  content: "✓";
  color: #d4b15f;
  position: absolute;
  left: 0;
}

/* BLOCS INTERNES (events, server status etc.) */

.events-global,
.server-status {
  font-size: 14px;
  backdrop-filter: blur(6px);
  background: #0b1220;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #1e2a44;
}

.events-global h3,
.server-status h3 {
  color: #d4b15f;
  margin-bottom: 12px;
}

.events-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ITEM */
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #08111c;
    transition: 0.2s;
}

/* ACTIVE (ligne verte glow) */
.event-item.active {
    background: linear-gradient(90deg, rgba(0,255,136,0.15), transparent);
    box-shadow: 0 0 8px rgba(0,255,136,0.2);
}

/* LEFT */
.event-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DOT BASE */
.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* COLORS (comme ta capture) */
.event-dot.green { background: #00ff88; }
.event-dot.red { background: #ff4d4d; }
.event-dot.blue { background: #3aa0ff; }
.event-dot.default { background: #888; }

/* DATE */
.event-date {
    font-size: 12px;
    color: #8aa0b5;
}

.server-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.online {
    background: #00ff88;
}

.dot.offline {
    background: red;
}

.online-table {
    margin-top: 10px;
    font-size: 13px;
}

/* HEADER */
.table-header {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr 1fr 1fr;
    color: #8aa0b5;
    font-size: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #1e2a38;
}

/* ROW */
.table-row {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr 1fr 1fr;
    align-items: center;
    padding: 6px 0;
}

/* PLAYER NAME */
.player-name {
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name img {
    width: 20px;
    height: 20px;
}

/* HOVER */
.table-row:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.class-icon {
  width: 20px;
  height: 20px;
}
.class-icon img {
  object-fit: contain;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #111;
  padding: 30px;
  border-radius: 10px;
}


/* FOOTER */
footer {
    margin-top: auto;
    padding: 15px;
    text-align: center;
    background: #0b1622;
    border-top: 2px solid #d4af37;
}

/* RESPONSIVE (important) */
@media (max-width: 1100px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .content {
        order: 1;
    }
}