      /* Nouvelle couleur de fond sombre pour le corps du site */
      body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            text-align: center;
            background-color: #1f1f1f; /* Fond très sombre */
            color: #f4f4f4; /* Texte clair sur fond sombre */
        }
        .container {
            max-width: 900px; /* Augmenter la largeur pour la galerie d'images */
            margin: 0 auto;
            background-color: #2c2c2c; /* Fond légèrement plus clair pour le contenu */
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Ombre plus marquée */
            margin-bottom: 30px; /* Espace après le conteneur principal */
        }
        h1 {
            color: #e04e4e; /* Un rouge vif pour le titre, inspiré du logo */
            margin-bottom: 20px;
            text-shadow: 1px 1px 2px #000;
        }
        h2 {
            color: #f4f4f4;
            border-bottom: 2px solid #e04e4e;
            padding-bottom: 5px;
            margin-top: 30px; /* Espace au-dessus des sous-titres */
            margin-bottom: 20px;
        }
        h3 { /* Style pour les titres de rangs (R5, R4, etc.) */
            color: #e04e4e; /* Même rouge que le titre principal pour la cohérence */
            text-align: left;
            margin-left: 20px;
            margin-bottom: 15px;
            border-bottom: 1px solid #444;
            padding-bottom: 5px;
        }
        
        /* AJOUTÉ : Style pour l'image du titre de rang */
        .rank-title-img {
            max-width: 120px; /* Ajustez la taille selon vos images */
            height: auto;
            display: block; /* Pour appliquer les marges correctement */
            
        }

        /* Style pour le logo Alliance */
        .logo-img {
            /*max-width: 250px; Taille du logo Alliance ajustée */
            height: auto;
            margin-bottom: 30px;
        }
        .download-list {
            list-style: none;
            padding: 0;
            text-align: left;
        }
        .download-list li {
            margin-bottom: 12px;
            border-bottom: 1px solid #444; /* Lignes de séparation sombres */
            padding-bottom: 8px;
        }
        .download-list a {
            color: #4da6ff; /* Bleu plus clair pour les liens */
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s;
        }
        .download-list a:hover {
            color: #ffffff; /* Texte du lien en blanc au survol */
        }
        .pdf-tag {
            background-color: #e04e4e;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            margin-left: 10px;
        }
        .error-message {
            color: #e04e4e;
            font-style: italic;
        }
        /* Styles pour le logo discret du jeu */
        .game-logo {
            max-width: 100px; /* Petit logo */
            opacity: 0.5; /* Rendre semi-transparent pour la discrétion */
            vertical-align: middle;
            margin-left: 15px;
        }
        
        /* Styles pour la galerie d'images des bannières existantes */
        .rank-section {
            margin-bottom: 40px;
            background-color: #2c2c2c;
            padding: 0;
            border-radius: 8px;
            box-shadow: none;
            border-bottom: 2px solid #e04e4e;
        }
        .gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }
        .item {
            border: 1px solid #444;
            padding: 10px;
            text-align: center;
            background-color: #3a3a3a;
            border-radius: 5px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
            width: calc(33.333% - 20px);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .item img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto 10px auto;
            border: 1px solid #555;
            background-color: #1a1a1a;
        }
        .item p {
            margin: 5px 0 10px 0;
            font-weight: bold;
            color: #e04e4e;
        	text-transform: capitalize;
        }
        .item .download-options {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: auto;
        }
        .item .download-options a {
            display: block;
            flex-grow: 1;
            min-width: 100px;
            margin: 3px;
            padding: 8px 5px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            font-size: 0.9em;
        }
        .item .download-options a:hover {
            background-color: #0056b3;
            text-decoration: none;
        }
        .item .download-options a.btn-small {
            background-color: #6c757d;
        }
        .item .download-options a.btn-small:hover {
            background-color: #5a6268;
        }

        /* Nouveaux styles pour la section des logos d'alliance */
        .alliance-logos-section {
            margin-top: 40px;
            margin-bottom: 40px;
        }
        .alliance-logo-item {
            border: 1px solid #444;
            padding: 15px;
            text-align: center;
            background-color: #3a3a3a;
            border-radius: 5px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
            width: calc(33.333% - 20px); /* Même grille que les bannières */
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .alliance-logo-item img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto 15px auto;
            background-color: #1a1a1a;
            border: 1px solid #555;
            cursor: pointer;
        }
        .alliance-logo-item p {
            font-weight: bold;
            color: #f4f4f4;
            margin-bottom: 10px;
        }
        .alliance-logo-item .download-button a {
            padding: 8px 15px;
            background-color: #28a745; /* Couleur verte pour le DL */
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            font-size: 0.95em;
        }
        .alliance-logo-item .download-button a:hover {
            background-color: #218838;
        }
        .rank_img_container{        
        	border-bottom : 0;
            padding: 1em;
            text-align: center;
            display: flex;
            justify-content: center;
        }
        .gallery img{
            cursor: pointer;
        }
        

/* PDF Grid Styles */
.pdf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin-top: 20px;
}

.pdf-item {
    background-color: #3a3a3a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
}

.pdf-icon {
    width: 250px;
    height: auto;
    margin: 0 auto 10px;
    border-radius: 25px;
    border: 1px solid #e04e4e;
}

.pdf-item h4 {
    color: #f4f4f4;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.pdf-actions {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
}

.pdf-actions a {
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.pdf-actions .btn-view {
    background-color: #007bff;
}

.pdf-actions .btn-view:hover {
    background-color: #0056b3;
}

.pdf-actions .btn-download {
    background-color: #28a745;
}

.pdf-actions .btn-download:hover {
    background-color: #218838;
}

/* === Media Queries === */
@media (max-width: 900px) {
    .item,
    .pdf-item,
    .alliance-logo-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .logo-img {
        max-width: 100%;
    }

    .item,
    .pdf-item,
    .alliance-logo-item {
        width: 100%;
    }

    
}