/* Style général */
body {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Barre de navigation latérale */
.sidebar {
    width: 200px;
    background-color: #333;
    color: #fff;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
}

.sidebar ul li a:hover {
    color: #ddd;
}

/* Contenu principal */
.content {
    margin-left: 240px; /* Espace par rapport à la barre de navigation */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Titres de section avec animation */
.animated-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes pour les 16 cartes */
    gap: 20px;
    justify-items: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

/* Animation au survol */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
