@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800");

header {
    display: flex;
    justify-content: center;
    padding-top: 19px;
    padding-bottom: 19px; 

    font-family: 'Poppins', sans-serif;
    
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    background-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);

    transition: 
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-bottom 0.3s ease;

    .navbar {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .navbar-nav {
        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        list-style: none;
        text-decoration: none;

        ul {
            display: flex;
            height: 100%;
        }

        li a {
            padding: 16px;
            list-style: none;
            text-decoration: none;
            color: var(--primary-text-color);
            position: relative;
        }

        li:not(.dropdown) > a::after {
            content: "";
            position: absolute;
            left: 50%; 
            bottom: -19px;
            width: 0;
            height: 4px;
            background-color: var(--primary-text-color);
            transform: translateX(-50%);
            transition: width 0.3s ease-in-out;
            margin-bottom: -2px;
        }

        li:not(.dropdown) > a:hover::after {
            width: 100%;
        }
    }
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    font-family: 'Poppins', sans-serif;

    background-color: #38424d;
    color: var(--primary-text-color);

    padding: 16px;

    .logo {
        width: 150px;
        height: 150px;
    }

    .informations-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;

        .contact-us-footer {
            display: flex;
            flex-direction: column;

            max-width: 200px;
            height: 300px;
            
            margin-right: 100px;

            .title-contact-footer {
                font-size: 24px;
            }
        
            .contact-footer {
                font-size: 13px;
            }
        }
        
        .social-links {
            display: flex;
            flex-direction: column;

            max-width: 200px;
            height: 300px;

            .title-social-footer {
                font-size: 24px;
            }

            .social-footer {
                font-size: 13px;
            }
        }
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .informations-footer {
        flex-direction: column !important;
        text-align: center !important;
        width: 100% !important;
    }

    .contact-us-footer {
        margin-right: 0px !important;
        width: 100% !important;
        text-align: center !important;
    }
}

.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 180px;
    padding: 6px 0;
    margin: 8px 0 0 0;
    list-style: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 2000;
}

.navbar-nav .dropdown .dropdown-menu li {
        display: block;
        width: 100%;
        box-sizing: border-box;
        background-color: var(--primary-color);
}

.navbar-nav .dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--primary-text-color);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-nav .dropdown .dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.06);
}

.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .dropdown:focus-within .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .navbar-nav .dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        margin: 0;
    }
}

header .mobile-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 12px;
}

header .mobile-menu .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-text-color);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
    header .mobile-menu {
        display: inline-block;
    }

    header .navbar-container {
        display: none;
        width: 100%;
    }

    header .navbar-container.active {
        display: block;
        background: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    header .navbar-container .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    header .navbar-container .navbar-nav li {
        width: 100%;
    }

    header .navbar-container .navbar-nav li a {
        display: block;
        padding: 12px 20px;
    }

    header .navbar-container .dropdown .dropdown-menu {
        position: static;
        display: block;
        padding-left: 12px;
    }

    header .mobile-menu.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    header .mobile-menu.active .bar:nth-child(2) { opacity: 0; }
    header .mobile-menu.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

header .navbar-nav > li:not(.dropdown) > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -19px;
    width: 0;
    height: 4px;
    background-color: var(--primary-text-color);
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
    margin-bottom: -2px;
}

header .navbar-nav > li:not(.dropdown) > a:hover::after {
    width: 100%;
}

header .navbar-nav .dropdown > a::after,
header .navbar-nav .dropdown a::after {
    display: none !important;
}