/* Style général */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #1B263B;
    background-color: #F5F5F5;
    display: flex;
}

/* Menu vertical */
nav {
    width: 250px;
    background-color: #1B263B;
    color: white;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2em;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    margin: 1em 0;
    width: 80%;
    text-align: center;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #FF6700;
}

/* Contenu principal */
main {
    margin-left: 250px;
    padding: 2em;
    flex: 1;
}

/* Header spécifique à chaque page */
header {
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
}

header h1 {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5em 1em;
    border-radius: 5px;
}
/* Global */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Assure que la page prend toute la hauteur */
    display: flex;
    flex-direction: column; /* Rend le footer positionnable avec flexbox */
}

/* Main Content */
main {
    flex: 1; /* Occupe tout l'espace disponible entre le header/nav et le footer */
    padding: 2em;
    box-sizing: border-box;
}

/* Footer */
footer {
    background-color: #1B263B; /* Couleur de fond */
    color: white; /* Couleur du texte */
    text-align: center; /* Centre le texte horizontalement */
    padding: 1em 0; /* Espacement intérieur */
    width: 100%; /* S'assure que le footer occupe toute la largeur */
    box-sizing: border-box;
    position: relative; /* Permet de le positionner normalement en bas */
}



/* Responsive */
@media (max-width: 768px) {
    nav {
        width: 200px;
    }
    main {
        margin-left: 200px;
    }
    header {
        height: 40vh;
        font-size: 2em;
    }
}
