* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.logo img {
    width: 300px;
}

.site-header {
    border-bottom: 1px solid lightgray;
}

.btn-mobile {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 1rem 0;
}

.btn-accueil,
.btn-rejoindre,
.btn-contact {
    display: inline-block;
    padding: 0.5rem;
    background-color: #4DA68B;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-accueil i.fa-home {
    font-size: 1.2rem;
}

.btn-accueil:hover,
.btn-rejoindre:hover,
.btn-contact:hover {
    background-color: #005f6b;
}



.container {
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}

.main-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 15px;
}

.main-nav>li {
    flex: 0 0 calc(50% - 0.5rem);
    box-sizing: border-box;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background-color: #4DA68B;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
    font-size: 1em;
    text-decoration: none;
}

.dropdown-toggle:focus {
    outline: 2px solid #4DA68B;
    outline-offset: 2px;
}

.dropdown-toggle.is-active {
    background-color: #fff;
    color: #4DA68B;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);

}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 50%;
    position: absolute;
    display: none;
    box-sizing: border-box;
    z-index: 10;
}

.dropdown-menu:not([hidden]) {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: #4DA68B;
    color: white;
    outline: none;
}

/* --- Desktop --- */
@media screen and (min-width: 1023px) {

    html,
    body {
        height: 100%;
        overflow-y: auto;
    }

    .logo img {
        width: 250px;
        transition: width 0.3s ease;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        border-bottom: 1px solid lightgray;
    }

    .container {
        padding-bottom: 15px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin: 0 auto;
        width: 75%;
        margin-top: 0.5rem;
    }

    .btn-mobile {
        width: auto;
        justify-content: flex-end;
        gap: 1rem;
    }

    .btn-rejoindre,
    .btn-contact {
        display: none;
    }

    .btn-accueil {
        display: inline-block;
    }

    .main-nav {
        list-style: none;
        padding: 0 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .main-nav>li {
        flex: 0 0 auto;
        box-sizing: border-box;
        position: relative;
    }

    .main-nav .dropdown:hover>.dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .dropdown-toggle {
        background: #4DA68B;
        border: none;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(77, 166, 139, 0.4);
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
        padding: 0.4rem;
        text-align: center;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        user-select: none;
        display: flex;
        justify-content: center;
        width: 100px;
        height: 60px;
        align-items: center;
        text-decoration: none;
    }

    .dropdown-toggle:hover,
    .dropdown-toggle:focus {
        background-color: #3c8b6e;
        box-shadow: 0 6px 12px rgba(60, 139, 110, 0.6);
        outline: none;
    }

    .dropdown-toggle.is-active {
        background-color: #fff;
        color: #4DA68B;
        box-shadow: 0 6px 15px rgba(77, 166, 139, 0.7);
    }

    .dropdown-menu {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
        background: #fff;
        border: 1px solid #cce5d4;
        box-shadow: 0 8px 15px rgba(77, 166, 139, 0.25);
        position: absolute;
        min-width: 180px;
        width: auto;
        display: none;
        box-sizing: border-box;
        z-index: 1000;
        border-radius: 10px;
    }

    .dropdown-menu:not([hidden]) {
        display: block;
    }

    .dropdown-menu li a {
        display: block;
        padding: 0.75rem 1.25rem;
        text-decoration: none;
        color: #2f2f2f;
        font-weight: 500;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a:focus {
        background-color: #4DA68B;
        color: #fff;
        outline: none;
    }

}