* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f2f2f2;
    color: #333;
}

/* HEADER */
header {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    animation: fadein 2s ease-in-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NAVIGATION */
nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

nav .menu {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    position: relative;
}

nav .menu li {
    position: relative;
}

nav .menu li a {
    text-decoration: none;
    background-color: #007BFF;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

nav .menu li a:hover {
    background-color: #0056b3;
}

/* SOUS-MENU */
nav .submenu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: white;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
}

nav .submenu li {
    display: block;
}

nav .submenu li a {
    background: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    border-radius: 0;
}

nav .submenu li a:hover {
    background: #f4f4f4;
}

/* Afficher le sous-menu au survol */
nav .menu li.dropdown:hover .submenu {
    display: block;
}

/* ARTICLES */
main.articles {
    padding: 30px 20px;
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

article {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

article img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

article h2 a {
    text-decoration: none;
    color: #333;
}

article p {
    color: #555;
}

/* --- About page --- */
.about-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.about-page h1, .about-page h2 {
    color: #4CAF50;
    text-align: center;
}

.about-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.about-page ul {
    list-style: disc inside;
    margin-left: 0;
    padding-left: 0;
    color: #555;
}

.about-page ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.about-intro {
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.about-mission, .about-values {
    padding: 20px;
}

.contact-page {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.contact-page h1 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}

.contact-page p {
    color: #555;
    margin-bottom: 15px;
}

.contact-page a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.contact-page a:hover {
    text-decoration: underline;
}

.cookies-page {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.cookies-page h1 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}

.cookies-page h2 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.cookies-page p {
    color: #555;
    margin-bottom: 15px;
}

.cookies-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cookies-page li {
    margin-bottom: 10px;
}

.cookies-page a {
    color: #007BFF;
    text-decoration: none;
}

.cookies-page a:hover {
    text-decoration: underline;
}

.privacy-page {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.privacy-page h1 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-page h2 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-page p {
    color: #555;
    margin-bottom: 15px;
}

.privacy-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-page li {
    margin-bottom: 10px;
}

.privacy-page a {
    color: #007BFF;
    text-decoration: none;
}

.privacy-page a:hover {
    text-decoration: underline;
}

.terms-page {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.terms-page h1 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}

.terms-page h2 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.terms-page p {
    color: #555;
    margin-bottom: 15px;
}

.terms-page a {
    color: #007BFF;
    text-decoration: none;
}

.terms-page a:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 40px;
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    color: #fff;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {

    /* Header plus petit et non sticky */
    header {
        position: relative;
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.8em;
    }

    /* Navigation en colonne */
    nav {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    nav .menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    nav .menu li {
        width: 100%;
        text-align: center;
    }

    nav .menu li a {
        display: block;
        width: 90%;
        margin: auto;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    /* Sous-menu en mode mobile */
    nav .submenu {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        border-radius: 6px;
        margin-top: 5px;
    }

    nav .submenu li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
