:root {
    --principal: #00612D;
    --secondaire: #00612D;
    --fond: #f4f7fb;
    --texte: #1f2d3d;
    --blanc: #ffffff;
}

* {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--texte);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--fond);
    /* make sure the body takes the full height of the viewport and top element is not hidden behind the header */
    min-height: 100vh;
    padding-top: 100px;
    /* Adjust this value based on the height of your header */
}

header {
    background: var(--principal);
    color: var(--blanc);
    padding: 20px 15px;
    /* set header fixed position while scrolling */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
}

nav {
    transition: all 400ms ease-in;
    display: flex;
    gap: 7px;
}

nav a {
    width: fit-content;
    color: var(--blanc);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: all 400ms ease-out;
}

nav a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondaire);
    transition: width 0.3s;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondaire);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.toggle-menu {
    display: none;
    cursor: pointer;
}

.toggle-menu svg {
    transition: all 300ms ease-out;
    fill: var(--blanc);
}

nav a:hover {
    color: var(--secondaire);
}

.logo {
    display: flex;
    align-items: center;
    gap: 7px;
}

.logo>a>img {
    width: 50px;
    height: auto;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .toggle-menu {
        display: block;
        z-index: 1000;
    }

    .toggle-menu svg {
        width: 30px;
        height: 30px;
    }

    .toggle-menu svg:hover {
        fill: var(--texte);
    }

    .toggle-menu svg:focus {
        fill: var(--texte);
    }

    nav {
        transition: all 400ms ease-in;
        opacity: 0;
        padding: 15px;
        display: flex;
        flex-direction: column;
        background: var(--principal);
        position: absolute;
        top: 60px;
        right: 15px;
        width: 200px;
        border-radius: 8px;
        z-index: 999;
    }

    nav.show {
        opacity: 1;
    }

    nav a {
        margin: 10px 0;
    }
}

@media(max-width: 540px) {
    p {
        font-size: medium;
    }
}

@media (max-width: 340px) {
    .ua {
        font-size: small;
    }
}