/* === Styles Globaux === */

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1e1e1e;
    color: #e6e6e6;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Le contenu principal prend l'espace disponible */
}

/* === En-tête === */
header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

header p {
    margin: 5px 0 0;
    font-size: 1rem;
    font-weight: 300;
    color: #ccc;
}

/* === Navigation === */
nav {
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 10px 0;
}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #7289da;
    text-decoration: underline;
}

nav a.active {
    font-weight: 600;
    border-bottom: 2px solid #7289da;
}

/* === Pied de page === */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #444;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer p:hover {
    color: #fff;
    font-weight: 600;
}

footer p {
    display: inline;
    margin: 0;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #7289da;
    font-weight: 500;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

footer a {
    display: inline;
    color: #e6e6e6;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

footer a:hover {
    color: #7289da;
    font-weight: 600;
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        margin: 5px;
        font-size: 0.8rem;
    }

    footer {
        flex-direction: column;
        gap: 5px;
    }

    footer a {
        margin: 5px 0;
    }
}
