/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style global du body */
body {
    font-family: "Arial", sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* En-tête */
header {
    background-color: #d32f2f;
    text-align: center;
    padding: 40px 20px;
    color: white;
}

header h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header .logo img {
    width: 200px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background-color: #b71c1c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    color: white;
    padding: 18px 25px;
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: white;
    color: #b71c1c;
}

/* Conteneur principal */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Sections */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 2rem;
    color: #b71c1c;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #b71c1c;
    padding-bottom: 10px;
    text-align: center;
}

/* Table */
table {
    width: 80%; /* Limite la largeur du tableau à 80% du conteneur */
    margin: 20px auto; /* Centre le tableau horizontalement */
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

table th,
table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    background-color: #b71c1c;
    color: white;
    font-size: 1.1rem;
}

table td {
    font-size: 1rem;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
    transform: scale(1.02);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Footer */
footer {
    background-color: #b71c1c;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

footer strong {
    font-size: 1.2rem;
}

/* Animation d'effet sur les liens */
nav a:hover {
    transform: scale(1.1);
}

/* Responsivité */
@media (max-width: 768px) {
    nav a {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 5px;
    }

    header {
        padding: 20px 10px;
    }

    table {
        width: 90%; /* Augmente légèrement la largeur du tableau sur petits écrans */
    }
}

@media (max-width: 500px) {
    table th:nth-last-child(-n+5),
    table td:nth-last-child(-n+5) {
        display: none; /* Masque les 5 dernières colonnes des tableaux */
    }

    table {
        font-size: 0.9rem;
    }

    header {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.8rem;
        padding: 8px 3px;
    }

    footer {
        font-size: 0.8rem;
    }
}


