/* Utilisation de la police Roboto */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Sticky header */
header {
    position: -webkit-sticky; /* Compatibilité pour Safari */
    position: sticky;
    top: 0;
    z-index: 1000; /* Assure que le header reste au-dessus du contenu */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ajout d'une légère ombre */
    width: 100%;
    padding: 10px 0;
}

/* Logo dans le header */
.logo-container {
    text-align: center;
    margin: 10px 0;
}

.logo {
    max-width: 100px;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .logo {
        max-width: 200px;
    }
}

/* Styles de la navigation */
nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: #19468D;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    scroll-margin-top: 300px;
}

section h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #742F8A;
}

section h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00A2AE;
}

section p, section ul {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

section ul {
    list-style-type: disc;
    margin-left: 40px;
}

/* Pied de page */
footer {
    background-color: #19468D;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Ajuster la navigation pour mobile */
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    /* Sections plus compactes sur mobile */
    section {
        padding: 20px 10px;
    }

    section h1 {
        font-size: 24px;
    }

    section h2 {
        font-size: 18px;
    }

    section p, section ul {
        font-size: 14px;
    }

    /* Bouton retour en haut plus petit sur mobile */
    #backToTopBtn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Bouton retour en haut */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

#backToTopBtn:hover {
    background-color: #555;
}
