    <style>
/* Style Global */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: url('fond.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    overflow-x: hidden;
}

.overlay {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(8px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(123, 79, 40, 0.95);
    color: white;
    padding: 20px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header img {
    height: 80px;
}

header h1 {
    font-size: 32px;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F9D348;
    color: black;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #f1c40f;
    transform: scale(1.05);
}

.nav-container {
    background: rgba(90, 156, 78, 0.95);
    overflow-x: auto;
    padding: 15px 40px;
    display: flex;
    gap: 15px;
}

nav a {
    background: #7B4F28;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 180px; /* Limite la taille visuelle */
    overflow: hidden;  /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
}

nav a:hover {
    background: #5A9C4E;
    transform: scale(1.05);
}

nav a:visited {
    color: white; /* Empêche les liens de changer de couleur après visite */
}

.category-icon {
    flex-shrink: 0;
}

.search {
    display: flex;
    justify-content: center;
    padding: 30px;
    background: rgba(135, 206, 235, 0.95);
}

.search input {
    padding: 15px;
    border-radius: 30px;
    border: 1px solid #ccc;
    width: 90%;
    max-width: 600px;
    font-size: 16px;
    transition: 0.3s;
}

.search input:focus {
    border-color: #5A9C4E;
    outline: none;
}

/* Grille générique (non utilisée pour sliders) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carte serveur */
.card {
    max-width: 220px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0; /* Important pour sliders */
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 220px;
    height: 110px;
    object-fit: cover;
    max-width: 100%;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.card-content p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #555;
}

.vote-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #F9D348;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.vote-btn:hover {
    background: #f1c40f;
    transform: scale(1.02);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.pagination button {
    background: #7B4F28;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.pagination button:hover {
    background: #5A9C4E;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: rgba(123, 79, 40, 0.95);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

/* TITRE catégorie : margin top + left pour espacement vertical */
h2 {
    margin-left: 20px;
    margin-top: 30px;
    font-weight: 700;
    font-size: 28px;
}

/* Slider horizontal par catégorie */
.server-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-left: 20px; /* aligné avec le titre */
    scroll-behavior: smooth;
    animation: fadeIn 0.5s ease-in-out;
}

/* Cacher scrollbar (chrome et firefox) */
.server-slider::-webkit-scrollbar {
    display: none;
}
.server-slider {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        max-width: 180px;
    }

    .card img {
        width: 180px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .card {
        max-width: 140px;
    }

    .card img {
        width: 140px;
        height: 70px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .btn-group {
        justify-content: center;
    }
}

    </style>