/* Styles généraux */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #555;
    line-height: 1.6;
}

@keyframes scrollBackground {
    from {
        background-position: center 0;
    }
    to {
        background-position: center 100%;
    }
}

/* Poireau dansant */
.poireau {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 100px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/3/33/Leek.png') no-repeat center;
    background-size: contain;
    animation: dance 1s infinite alternate ease-in-out;
}

@keyframes dance {
    from {
        transform: rotate(-10deg);
    }
    to {
        transform: rotate(10deg);
    }
}

/* En-tête fixé en haut */
header {
    background: #ffffff;
    color: #444;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Ajout de marge pour éviter que le contenu soit caché sous le header */
body {
    padding-top: 100px;
}

header h2 {
    font-size: 1.2em;
    color: #777;
    margin-top: 5px;
    font-weight: normal;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: inline-block;
}

nav ul li a:hover {
    background: rgba(200, 200, 200, 0.2);
    color: #555;
    border-radius: 15px;
}

/* Style pour indiquer la page active */
nav ul li a.active {
    text-decoration: none;
    position: relative;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px 12px;
}

/* Liens HTTPS */
a {
    color: #4b7fb4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #7db5ee;
   /* text-decoration: underline;*/
}

/* Listes avec puces rondes */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

ul li {
    margin-bottom: 5px;
}

/* Contenu principal */
main {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    color: #444;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Pied de page */
footer {
    background: #ffffff;
    color: #666;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

/* Mobile-friendly styles */
@media screen and (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 5px 0;
    }
    main {
        width: 90%;
        padding: 15px;
    }
    header {
        padding: 10px 0;
    }
    body {
        padding-top: 160px;
    }
    ul {
        padding-left: 15px;
    }
}
