body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #101820;
    color: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #1e2a38;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* HEADER DE LA FICHE SERVEUR */
.pro-server-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.server-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.server-title-badges h2 {
    font-size: 2rem;
    margin: 0;
    color: #00a99f;
}

.badges {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
}

.badge-new { background-color: #4caf50; }
.badge-popular { background-color: #ff9800; }
.badge-fav { background-color: #e91e63; }

/* GRILLE D'INFOS */
.pro-server-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    background: #2c3e50;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 200px;
    overflow-y: auto;
}

.info-card strong {
    color: #00a99f;
    margin-bottom: 0.5rem;
}

/* Affichage des mods */
.mods-card {
    grid-column: 1 / -1; /* Fait en sorte que cette carte occupe toute la largeur */
}

.mod-count {
    font-size: 0.9em;
    color: #aaa;
    margin-left: 5px;
}

.mod-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mod-item {
    background-color: #2a3642;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #3e4f66;
    display: inline-block;
}

.mod-item:hover {
    background-color: #3e4f66;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mod-id {
    color: #aaa;
}

/* Optionnel : scroll interne stylisé (moderne) */
.info-card::-webkit-scrollbar {
    width: 6px;
}
.info-card::-webkit-scrollbar-thumb {
    background-color: #00a99f;
    border-radius: 4px;
}
.info-card::-webkit-scrollbar-track {
    background: transparent;
}

/* Responsive spécial pour info-card texte long */
@media screen and (max-width: 768px) {
    .info-card {
        max-height: 150px;
    }
}

/* DESCRIPTION */
.improved-description {
    margin-top: 2rem;
    background-color: #263544;
    padding: 1.5rem;
    border-radius: 10px;
    line-height: 1.6;
}

.improved-description h3 {
    margin-bottom: 1rem;
    color: #00a99f;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* ACTIONS */
.pro-server-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pro-btn-primary {
    background-color: #00a99f;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.pro-btn-primary:hover {
    background-color: #007f75;
}

/* VIDÉO */
.pro-video-container {
    background-color: #2e3d4f;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pro-video-header h3 {
    color: #00a99f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.pro-youtube-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.pro-youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pro-video-fallback {
    text-align: center;
    margin-top: 1rem;
}

.pro-video-fallback p {
    color: #f0f0f0;
    margin-bottom: 1rem;
}

.pro-btn-secondary {
    background-color: #607d8b;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pro-btn-secondary:hover {
    background-color: #4f6875;
}

/* INFO DATE DE RESET */
.pro-server-info-card {
    margin-top: 2rem;
    background-color: #2c3e50;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pro-server-info-card h3 {
    color: #00a99f;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.pro-server-info-card p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f0f0f0;
}

/* CHART */
canvas#voteChart {
    background: #263544;
    border-radius: 8px;
    padding: 1rem;
}

/* COMPTEUR VOTE */
#countdown {
    margin-top: 2rem;
    text-align: center;
}

#countdown h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #00a99f;
    text-transform: uppercase;
}

#timer {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    /* Pour les éléments avec un contenu qui déborde sur petit écran */
    .container {
        overflow-x: hidden; /* Masquer tout débordement horizontal */
    }

    .pro-server-header, .pro-server-details-grid, .pro-server-actions {
        flex-wrap: wrap; /* Autoriser les éléments à s'empiler sur les petits écrans */
    }

    .pro-btn-primary, .pro-btn-secondary {
        width: 100%; /* Rendre les boutons pleins sur petits écrans */
        padding: 1rem 0; /* Espacement confortable */
    }

    /* Éviter que les images ou logos débordent */
    .server-logo {
        max-width: 100%; /* Assurer que les logos s'adaptent à l'écran */
        height: auto;
    }

    /* Responsivité des cartes info pour éviter qu'elles ne débordent */
    .info-card {
        width: 100%;
        max-width: 100%; /* Assurer que les cartes s'adaptent à l'écran */
        margin: 0 auto; /* Centrer les cartes */
    }

    /* Adapter la grille des détails du serveur */
    .pro-server-details-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ajuster les colonnes */
    }

    /* Ajustement des actions du serveur */
    .pro-server-actions {
        flex-direction: column;
        gap: 1rem; /* Espacement adapté entre les boutons */
    }

    /* Éléments vidéo et autres sections */
    .pro-video-container, .pro-server-info-card {
        width: 100%;
        margin: 0 auto; /* Centrer les sections */
    }

    /* Revoir le design du compteur et autres informations */
    #countdown, .pro-server-info-card, .pro-server-header h2 {
        text-align: center;
    }

    canvas#voteChart {
        width: 100%;
        height: auto;
    }
}

