body {
	background-color: #3e3e3e;
	color: #ebebeb;
    margin-left:auto;
    margin-right:auto;
	margin-top: 0;
	margin-bottom: 0;
	font-family: verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 100%;
}

a {
	color: #e5b124;
	text-decoration: none;
}

a:hover{
	color: #f5f147;
	text-decoration: underline;
}

h1 {
  font-family: 'Orbitron', 'Arial', sans-serif;
  font-size: 1rem; /* pas trop grand */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #f5a623; /* orange Half-Life */
  text-shadow:
    0 0 4px rgba(245, 166, 35, 0.6),
    0 0 12px rgba(245, 166, 35, 0.3);

  border-left: 4px solid #f5a623;
  padding-left: 0.75rem;

  margin: 1rem 0;
}

/* DISCORD TOP WEBSITE */
.discord-button {
  display: inline-flex;
  align-items: center;
  background-color: #5865F2;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.discord-button:hover {
  color: white;
  background-color: #4752C4;
}

.discord-button svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
/* DISCORD TOP WEBSITE END */
/* TOP WEBSITE */
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #303030;
    padding: 12px 24px;
    border-bottom: 3px solid #F4A21B;
    font-family: Verdana, sans-serif;
  }

  .site-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #F4A21B;
    text-decoration: none;
  }

  .site-title:hover {
    text-decoration: underline;
  }
/* TOP WEBSITE END */

/* ===== TABLE HALF-LIFE STATS ===== */
#hl-stats {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.8rem;
  color: #e0e0e0;
  background-color: #2f2f2f;
}

/* Header */
#hl-stats thead th {
  padding: 6px 8px;
  text-align: left;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: #f5a623;
  border-bottom: 2px solid rgba(245, 166, 35, 0.6);
}

/* Lignes */
#hl-stats tbody tr {
  height: 28px; /* lignes plus compactes */
  transition: background 0.15s ease;
}

#hl-stats tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

#hl-stats tbody tr:hover {
  background-color: rgba(245, 166, 35, 0.08);
}

/* Cellules */
#hl-stats td {
  padding: 4px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
#hl-stats td:last-child {
  white-space: nowrap;
}

/* Colonnes numériques */
#hl-stats td:nth-child(3),
#hl-stats td:nth-child(4),
#hl-stats td:nth-child(5),
#hl-stats td:nth-child(6),
#hl-stats td:nth-child(7) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Best weapon image */
#hl-stats td img {
  height: 28px;          /* un peu plus grande */
  width: auto;
  display: inline-block; /* empêche le retour à la ligne */
  vertical-align: middle;
  margin-right: 6px;
  filter: brightness(1.1) contrast(1.1);
}

/* Steam ID */
#hl-stats td.steam-id {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
}
/* ===== TABLE HALF-LIFE STATS END ===== */
/* ===== TIME PLAYED ===== */
.time-played {
    width: 160px;
    font-family: Arial, sans-serif;
}

.time-text {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    color: #fff;
}

.time-bar {
    width: 100%;
    height: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.6);
}

.time-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #e74c3c 0%,
        #f1c40f 50%,
        #2ecc71 100%
    );
    transition: width 0.6s ease-in-out;
}
/* ===== TIME PLAYED END ===== */
/* ===== CARD ===== */
.session-card {
	color: black;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
    background-color: #fff;
    font-family: Arial, sans-serif;
    display: flex;             /* Flex pour aligner contenu et image */
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.session-info {
    flex: 1 1 0;
    min-width: 0;
}
.session-info h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.session-info p {
    margin: 8px 0;
    font-size: 1em;
}
.session-info span.label {
    font-weight: bold;
    color: #555;
    width: 150px;
    display: inline-block;
}
.session-map img {
    max-width: 450px;          /* Largeur max de l'image */
    border-radius: 8px;
    box-shadow: 1px 1px 8px rgba(0,0,0,0.1);
}
/* ===== CARD END ===== */
/* ===== WEAPON LINE ===== */
.weapons-cell {
    white-space: nowrap;          /* interdit le retour à la ligne */
    max-width: 320px;             /* évite que la colonne explose */
    overflow-x: auto;             /* scroll horizontal si trop long */
}

.weapon-line {
    display: inline-flex;         /* reste sur la même ligne */
    align-items: center;
    margin-right: 8px;            /* espace entre les armes */
    font-size: 0.9em;
}

.weapon-line img {
    height: 20px;
    width: auto;
    vertical-align: middle;
}

.weapon-line span,
.weapon-line {
    white-space: nowrap;
}
/* ===== WEAPON LINE END ===== */
/* ===== STATS KILL / DEATHS / SUICIDES ===== */
.stats-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    flex: 1;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Couleurs */
.stat-card.kills {
    border-bottom: 4px solid #2ecc71;
    color: #2ecc71;
}

.stat-card.deaths {
    border-bottom: 4px solid #e74c3c;
    color: #e74c3c;
}

.stat-card.suicides {
    border-bottom: 4px solid #f1c40f;
    color: #f1c40f;
}

.stat-card.kda {
    border-bottom: 4px solid #009ae1;
    color: #009ae1;
}
/* ===== MAP ===== */
.map-description pre {
    background: #111;
    color: #ddd;
    padding: 15px;
    border-radius: 8px;

    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;

    white-space: pre-wrap;   /* 🔑 */
    word-break: break-word; /* 🔑 */
    max-width: 100%;
}
.map-file {
    margin-bottom: 10px;
}

.map-file .label {
    font-weight: bold;
    color: #555;
    display: inline-block;
    margin-bottom: 5px;
}
/* ===== MAP END ===== */
/* ===== Half-Life Menu ===== */
/* ===== Half-Life Menu Bar ===== */
.hl-menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 20px;
    margin-bottom: 10px;

    background: linear-gradient(180deg, #141414, #0a0a0a);
    border: 1px solid #e5b124;
    border-radius: 4px;

    box-shadow:
        inset 0 0 0 1px rgba(229,177,36,0.15),
        0 0 12px rgba(229,177,36,0.15);

    font-family: Arial, sans-serif;
}

/* Left menu */
.hl-menu-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hl-menu-title {
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

/* Right server info */
.hl-menu-right {
    text-align: right;
}

.hl-server-info {
    color: #e5b124;
    font-size: 13px;
    line-height: 1.4;
}

.hl-server-title {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    color: #fff;
}

/* Reuse previous menu item style */
.hl-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    color: #e5b124;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;

    background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
    border: 1px solid #e5b124;
    border-radius: 4px;

    box-shadow:
        inset 0 0 0 1px rgba(229,177,36,0.15),
        0 0 8px rgba(229,177,36,0.15);

    transition: all 0.2s ease;
}

.hl-menu-item:hover {
    color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(229,177,36,0.4),
        0 0 14px rgba(229,177,36,0.6);

    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .hl-menu-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hl-menu-right {
        text-align: left;
    }
}

/* ===== Half-Life Menu END ===== */
/* ===== STATS KILL / DEATHS / SUICIDES END ===== */
footer {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(245, 166, 35, 0.6);
  text-align: center;
  padding: 1rem 0;
}