/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a; /* Fond sombre */
    color: #e0e0e0; /* Texte clair */
    line-height: 1.6;
}

/* Ligne rouge avec texte défilant */
.top-alert {
    background-color: #ff0000; /* Fond rouge */
    color: #ffffff; /* Texte blanc */
    padding: 0.5px 0; /* Réduire le padding pour une ligne plus fine */
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 1px solid #cc0000; /* Bordure légèrement plus foncée pour la profondeur */
    overflow: hidden; /* Masquer le texte qui dépasse */
    white-space: nowrap; /* Empêcher le texte de passer à la ligne */
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%; /* Commencer le texte hors de l'écran */
    animation: scroll-text 60s linear infinite; /* Animation de défilement (plus lent) */
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%); /* Commencer à droite */
    }
    10% {
        transform: translateX(0); /* Apparaître rapidement en 10% du temps */
    }
    100% {
        transform: translateX(-100%); /* Finir à gauche */
    }
}

/* Container pour centrer le contenu */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Bannières publicitaires */
.ad-banner {
    width: 100%;
    text-align: center;
    background-color: #111; /* Fond sombre */
    padding: 10px 0;
    margin: 20px 0; /* Espace autour des bannières */
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Coins arrondis */
}

/* Navbar */
.navbar {
    background-color: #111; /* Noir profond */
    padding: 20px 0;
    border-bottom: 2px solid #ffd700; /* Bordure jaune */
}

.navbar .logo {
    font-size: 1.8rem;
    color: #ffd700; /* Jaune */
    font-weight: bold;
}

.navbar .logo span {
    color: #e0e0e0; /* Texte clair */
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li a {
    color: #e0e0e0; /* Texte clair */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #ffd700; /* Jaune au survol */
}

/* Cartes */
.card {
    background-color: #222; /* Fond sombre pour les cartes */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center; /* Alignement vertical */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Pour le reflet */
}

.card:hover {
    transform: translateY(-5px); /* Effet de levée au survol */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Ombre portée */
}

.card-image {
    width: 150px; /* Largeur fixe pour l'image */
    height: 150px; /* Hauteur fixe pour l'image */
    object-fit: cover; /* Ajustement de l'image */
    margin-right: 20px; /* Espace entre l'image et le texte */
    border-radius: 10px; /* Coins arrondis */
}

.card-content {
    padding: 20px;
    flex: 1;
}

.card-content h2 {
    color: #ffd700; /* Titre en jaune */
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card-content p {
    color: #b0b0b0; /* Texte gris clair */
    margin-bottom: 15px;
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffd700; /* Bouton jaune */
    color: #1a1a1a; /* Texte sombre */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: #e0b800; /* Jaune plus foncé au survol */
}

/* Footer */
.footer {
    background-color: #111; /* Noir profond */
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #ffd700; /* Bordure jaune */
}

.footer p {
    color: #e0e0e0; /* Texte clair */
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .card {
        flex-direction: column;
        text-align: center;
    }

    .card-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
}