body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* début de header */
header {
    background: green;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header .logo img {
    height: 50px;
}

nav {
    display: flex;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Style pour le lien actif dans le menu */
header nav ul li a.active {
    color: #ff6347; /* Couleur différente pour le lien actif */
    font-weight: bold;
    border-bottom: 2px solid #ff6347; /* Soulignement spécifique pour le lien actif */
}

header .search-profile {
    display: flex;
}

header .search-profile input {
    padding: 5px;
    margin-right: 10px;
}

header .profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

header .profile-menu a {
    text-decoration: none;
}

header .profile-icon i {
    font-size: 1.5em;
    cursor: pointer;
}

header .dropdown-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 0;
    background: white;
    color: #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

header .dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

header .dropdown-menu a:hover {
    background: #f4f4f4;
}

header .profile-menu:hover .dropdown-menu {
    display: block;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: green;
    }

    header nav ul.nav-active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

.banner {
    width: 95%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.slider {
    width: 400%;
    height: 100%;
    display: flex;
    animation: slide 16s infinite;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0% { margin-left: 0%; }
    25% { margin-left: -100%; }
    50% { margin-left: -200%; }
    75% { margin-left: -300%; }
    100% { margin-left: 0%; }
}

section {
    padding: 20px;
    margin: 20px;
}

section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.news-grid, .resources-grid, .info-grid {
    display: flex;
    gap: 20px;
}

.news-grid article, .resources-grid div, .info-grid div {
    background: #f5f5f5;
    padding: 15px;
    flex: 1;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    margin-top: 10px;
    background: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: gray;
}

main {
    padding: 2rem;
}

h2 {
    color: #333;
}

#contact-form {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

form label, form input, form textarea, form button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

form input, form textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

footer {
    background: green;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a, .social-media a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.social-media, .newsletter {
    display: flex;
    align-items: center;
}

.newsletter input {
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: none;
}

@media (max-width: 768px) {
    .news-grid, .resources-grid, .info-grid {
        flex-wrap: wrap;
    }

    footer {
        flex-direction: column;
    }
}
