        :root {
            /* Palette Principale */
            --couleur-fond-fonce: rgba(46, 59, 49, 0.95);
            --couleur-fond-clair: rgba(58, 72, 63, 0.95);
            --couleur-texte-clair: #f0f0f0;

            /* Marqueur Joueur ( à pied / dans un véhicule ) */
            --couleur-accent-orange: #ff7f00;
            --couleur-accent-vert: #2ecc71;
            
            /* Accentuation principale pour les Stats */
            --couleur-accent-stats: #b9e023;
            --couleur-bordure-stats: rgba(185, 224, 35, 0.4);
            --couleur-ombre-stats: rgba(185, 224, 35, 0.2); 
            
            /* Bordures/Labels */
            --couleur-bordure-tableau: #576d5e;
            --couleur-fond-entete-tableau: #333d29;
            --couleur-label-primaire: #b9e023; 
            --couleur-label-externe: #a9a9a9; 
        }

        /* POLICE DIGITAL-7 */
        @font-face {
            font-family: 'Digital7'; 
            src: url('../fonts/digital-7.ttf') format('truetype'); 
            font-weight: normal;
            font-style: normal;
        }

        body {
            font-family: 'Roboto', sans-serif;
            margin: 0;
            padding: 0;
            background: url('../img/Background.png') center/cover no-repeat;
            background-attachment: fixed;
            color: var(--couleur-texte-clair);
            -webkit-text-size-adjust: 100%;
        }
        
        /* CONTENEUR D'EN-TÊTE */
        #page-header {
            position: relative;
            padding: 35px 0 20px 0;
            margin-bottom: 15px;
            text-align: center;
        }

        /* DÉGRADÉ EN-TÊTE */
        #page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.5) 70%, transparent);
            z-index: -1;
            pointer-events: none;
        }
        
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 10px;
            position: relative;
            z-index: 2;
        }

        /* LOGO & TITRES */
        @keyframes swing {
            0% { transform: rotate(0deg); } 25% { transform: rotate(3deg); }
            75% { transform: rotate(-3deg); } 100% { transform: rotate(0deg); }
        }
        .logo-header {
            display: block;
            margin: 0 auto 30px auto;
            max-width: 180px;
            height: auto;
            animation-name: swing;
            animation-duration: 6s;
            animation-iteration-count: infinite;
            animation-timing-function: ease-in-out;
        }

        h1 {
            color: var(--couleur-texte-clair);
            text-align: center;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px #000;
            font-size: 1.8em;
        }
        @media screen and (max-width: 400px) {
       h1 {
        font-size: 1em; 
          }
       }
        .title-divider {
            display: block;
            width: 100%;
            max-width: 1200px;
            height: 3px;
            background-color: var(--couleur-accent-orange);
            margin: 0 auto 10px auto;
        }
        
        h2 {
            color: var(--couleur-texte-clair);
            border-left: 5px solid var(--couleur-accent-orange); 
            padding-left: 10px;
            margin-top: 0;
            margin-bottom: 5px;
            font-size: 1.2em;
        }
        .section-divider {
            display: block;
            width: 100%;
            height: 0;
            border-top: 1px dotted rgba(87, 109, 94, 0.4);
            background-color: transparent;
            margin: 5px 0 15px 0;
        }


        /* STYLE DES SECTIONS (Alternance) */
        section {
            background: var(--couleur-fond-fonce);
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.5);
            line-height: 1.5;
        }
        .section-clair {
            background: var(--couleur-fond-clair);
        }

        /* Labels d'infos serveur */
        .label {
            font-weight: 700;
            color: var(--couleur-label-primaire);
        }

        /* GRILLE */
        .info-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }
        .info-grid section {
            margin-bottom: 0;
        }
        
        /* INFOS SERVEUR (HUD STYLE) */
        #server-details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; 
            gap: 15px; 
            margin-bottom: 10px;
        }

        .info-item {
            border-bottom: 1px solid var(--couleur-bordure-tableau); 
            padding-bottom: 8px;
        }

        .info-label {
            display: block;
            font-size: 0.8em;
            color: var(--couleur-label-externe); 
            text-transform: uppercase;
            margin-bottom: 3px;
            font-weight: 700;
        }
        
        /* CLASSE - HEURE EN JEU ET AUTRES INFOS */
        .stat-label-external {
            display: block;
            text-align: center;
            font-size: 0.85em;
            font-weight: 700;
            color: var(--couleur-label-externe);
            margin-bottom: 5px;
            text-transform: uppercase;
        }
        /* AJUSTEMENT labels - Infos serveur */
        #server-info .stat-label-external {
            text-align: left;
            margin-bottom: 2px;
            padding-left: 0;
        }

        .info-value {
            font-size: 1em; 
            color: var(--couleur-texte-clair);
            font-weight: 400;
        }
		@media screen and (max-width: 400px) {
       .info-value {
        font-size: 0.6em; 
          }
       }

        #serverName-container {
            grid-column: 1 / 3;
            display: flex;
            justify-content: space-between;
            align-items: center;             
            border-bottom: 1px solid var(--couleur-label-externe);
            padding-bottom: 5px;
            margin-bottom: 10px;
            margin-top: 5px;
        }
        #serverName-value {
            font-size: 1.5em;
            font-weight: 700;
            color: var(--couleur-accent-stats);
            text-shadow: none;
        }
        /* Statut en-tête */
        #serverName-status {
            font-size: 0.85em;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
            display: inline-block;
            transition: all 0.3s ease;
        }
        
        /* Conteneur valeur numérique */
        #dayTime-container-value {
            grid-column: 1 / 3; 
            text-align: center;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 5px;
            padding: 8px;
            margin-top: 0;
            margin-bottom: 10px;
        }
        /* Chiffres de l'heure */
        #dayTime-value {
            display: inline-block;
            font-family: 'Digital7', monospace;
            font-size: 4.5em;
            color: var(--couleur-accent-stats);
            text-shadow: 0 0 8px rgba(185, 224, 35, 0.7);
            line-height: 1;
        }
        /* Unités (h et m) */
        .time-unit {
            font-size: 0.5em; 
            font-weight: 700;
            font-family: 'Roboto', sans-serif; 
            color: var(--couleur-label-externe);
            vertical-align: top;
            position: relative;
            top: 8px; 
            margin-left: 2px;
        }

        #status-container {
            display: none;
        }
        /* FIN INFOS SERVEUR (HUD STYLE) */


        /* TUILES STATISTIQUES */
        .stat-container {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        .stat-group {
            flex: 1;
        }
        .stat-item-tile, .stat-single-tile {
            text-align: center;
            padding: 10px 5px;
            font-size: 1.1em;
            background-color: rgba(0, 0, 0, 0.4);
            border-radius: 10px;
            margin-bottom: 15px; 
            border: 2px solid var(--couleur-bordure-stats);
            box-shadow: 0 0 8px var(--couleur-ombre-stats);
        }
        .stat-single-tile {
            padding: 15px 5px; 
        }
        
        .value {
            display: block; 
            font-weight: normal; 
            font-size: 2.8em; 
            margin: 0; 
            line-height: 1.5; 
            font-family: 'Digital7', monospace, 'Courier New', Courier; 
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            color: var(--couleur-accent-stats); 
        }

        /* TABLEAU JOUEURS */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 0.85em;
        }
        th, td {
            border: 1px solid var(--couleur-bordure-tableau);
            padding: 8px;
            text-align: left;
            color: var(--couleur-texte-clair);
        }
        th {
            background: var(--couleur-fond-entete-tableau);
            color: #fff;
            font-weight: 700;
            text-transform: uppercase;
        }
        tr:nth-child(even) {
            background-color: rgba(0,0,0,0.2);
        }
        tr:nth-child(odd) {
            background-color: rgba(0,0,0,0.1);
        }
        .table-responsive {
            overflow-x: auto;
            overflow-y: visible;
        }

        /* INDICATEUR DE STATUT (Online/Offline) */
        .status-online {
            background-color: rgba(40,167,69,0.7); 
            color: white;
            animation: pulse 2s infinite;
        }
        .status-offline {
            background-color: #e74c3c; 
            color: white;
        }
        @keyframes pulse {
            0% 	{ box-shadow: 0 0 10px rgba(40,167,69,0.7); }
            50% { box-shadow: 0 0 20px rgba(40,167,69,0.9); }
            100% { box-shadow: 0 0 10px rgba(40,167,69,0.7); }
        }

        /* CARTE & MARQUEURS (MAP) */
        #map-section {
            padding: 15px;
        }
        #map-container {
            width: 100%;
            overflow: auto;
            border: 1px solid var(--couleur-bordure-tableau);
            border-radius: 6px;
            cursor: grab;	
        }
        
        #map {
            position: relative;
            width: 2048px;
            height: 2048px;
            margin: 0 auto;
            background-size: cover;
            background-repeat: no-repeat;
            border: 4px solid var(--couleur-fond-entete-tableau);
            border-radius: 6px;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
        }
        
        .farm-marker {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: none;
            background: rgba(44, 62, 80, 0.8); 
            color: #fff;
            font-size: 10px;
            padding: 2px 4px;
            border-radius: 3px;
            opacity: 0.7;
            white-space: nowrap;
            z-index: 5;
        }
        
        .player-marker {
            position: absolute;
            transform: translate(-50%, -100%);
            pointer-events: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 10px;
            white-space: nowrap;
            z-index: 10;
        }
        .player-marker .name {
            margin-bottom: 2px;
            padding: 2px 5px;
            background: rgba(46, 204, 113, 0.9);
            color: #fff;
            border-radius: 3px;
            font-weight: bold;
        }
        .player-marker .dot {
            width: 10px;
            height: 10px;
            border: 2px solid #fff;
            border-radius: 50%;
            background: var(--couleur-accent-vert);
        }
        
        .player-marker.vehicle {
            transform: translate(-50%, -50%);
        }
        .player-marker.vehicle .name {
            background: rgba(255, 127, 0, 0.9);
            color: #fff;
            transform: translateY(-5px);
            margin-bottom: 0;
        }
        .player-marker.vehicle .dot {
            background: var(--couleur-accent-orange);
        }
        .player-marker.vehicle .vehicle-name {
            margin-top: 3px;
            padding: 2px 5px;
            background: rgba(255, 127, 0, 0.7);
            color: #fff;
            border-radius: 3px;
            font-size: 9px;
            transform: translateY(2px);
        }


        /* FOOTER */
        footer {
            background-color: transparent;
            color: var(--couleur-texte-clair);
            text-align: center;
            padding: 15px 10px;
            font-size: 0.75em;
            text-shadow: 1px 1px 2px #000;
        }
        footer a {
            color: #ffd499;
            text-decoration: none;
            font-weight: 700;
        }
        footer a:hover {
            text-decoration: underline;
        }
