
:root {
    --primary-color: #00853f;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
    --hover-color: #006e33;
    /* footer */
    --footer-bg: #1a1a1a;
    --footer-text: #e0e0e0;
    
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* TODO header */

nav {
    background: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 70px; /* Ajout d'un espace entre le logo et les liens */
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
   
    margin-left: 10px; /* Pousser les liens à droite */
    
}

nav ul li {
    position: relative;
    margin: 2px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0,1rem;
    padding: 0.1rem 0.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

nav ul li a i {
    font-size: 1.1rem;
}

/* Menu hamburger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.4s;
}



/* TODO footer  */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-contact p,
.footer-legal a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-contact p i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.twitter { background-color: #1da1f2; }
.social-icon.instagram { background-color: #c32aa3; }
.social-icon.linkedin { background-color: #0077b5; }

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
}


/*TODO  ---------- > MAX 1024 */
@media (max-width: 1024px) {
    
    /* TODO Header 1024 */
    
    nav {
        padding: 1rem;
        gap: 0; /* Réinitialiser l'espace pour le mode mobile */
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        justify-content: center;
        padding: 1rem;
    }

    nav ul li a::after {
        display: none;
    }

    /* TODO footer 1024 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* TODO  ---------- > MAX 768 */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: center;
    }
}