.navbar {
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 999;
}

.navbar .logo {
    width: 200px;
    height: 100px;
}

@media (prefers-color-scheme: dark) {
    .navbar .logo {
        filter: none;
    }
}

.navbar ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar h1 {
    color: hsl(224, 20%, 94%);
    margin-left: 50px;
}

.navbar a {
    color: hsl(224, 20%, 94%);
    text-decoration: none;
    margin: 10px;
    font-size: 1.2rem;

}

.navbar a:hover {
    color: hsl(224, 6%, 77%);
}

.navbar .selector {
    margin-left: auto;
    padding-right: 10px;
    align-items: center;
    display: flex;
    color: hsl(224, 20%, 94%);
    cursor: pointer;
}

.navbar .selector:hover {
    color: hsl(224, 6%, 77%);
}

.navbar .dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 10px;
    background-color: transparent;
}

.navbar .dropdown-content {
    display: none;
    position: absolute;
    background-color: hsl(224, 14%, 16%);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 150px;
    border-radius: 10px;
    transform: translateX(-50%);
}

.navbar .dropdown-content div {
    padding-left: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
}

.navbar .dropdown-content div:hover {
    background-color: #99c8ff;
    color: black
}

.phoneNavbar {
    display: none;
}


/* Pour les tablettes (écrans plus petits que 1024px) */
@media (max-width: 1024px) and (min-width: 630px) {
    .navbar {
        display: none;
    }

    .phoneNavbar {
        display: flex;
    }

    .phoneNavbar .logo {
        width: 170px;
        height: 80px;
    }

    .phoneNavbar header {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .phoneNavbar .selector {
        align-items: center;
        display: flex;
        color: hsl(224, 20%, 94%);
        cursor: pointer;
        position: absolute;
        right: 20px;
    }

    .phone-dropdown-content {
        display: none;
        position: absolute;
        background-color: hsl(224, 14%, 16%);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        margin-top: 10px;
        width: 120px;
        border-radius: 10px;
        transform: translateX(-35%);
    }

    .phone-dropdown-content div {
        padding-left: 30px;
        padding-top: 5px;
        padding-bottom: 5px;
        cursor: pointer;
    }

    .phone-dropdown-content div:hover {
        background-color: #99c8ff;
        color: black
    }


    .phoneNavbar ul {
        position: absolute;
        display: flex;
        align-items: center;
        flex-direction: row;
        bottom: 0px;
        justify-content: space-between;
    }

    .wrapper {
        max-width: 320px;
        margin: 2em auto;
    }

    .nav--icons {
        position: fixed;
        bottom: 2em;
        left: 1em;
        right: 1em;
        z-index: 999;
    }

    .nav--icons ul {
        list-style-type: none;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav--icons .icon {
        width: 30px;
        height: 30px;
    }

    .nav--icons ul li a {
        font-family: sans-serif;
        font-size: 15px;
        letter-spacing: 1px;
        text-decoration: none;
        color: #fff;
        line-height: 1;
        vertical-align: middle;
        display: flex;
        align-items: center;
        border-radius: 3em;
        padding: 0.75em 2.25em;
        transition: 0.6s ease-in-out;
    }

    .nav--icons ul li a span {
        display: inline-block;
        overflow: hidden;
        max-width: 0;
        opacity: 0;
        padding-left: 0.5em;
        transform: translate3d(-0.5em, 0, 0);
        transition: opacity 0.6s, max-width 0.6s, transform 0.6s;
        transition-timing-function: ease-in-out;
    }

    .nav--icons ul li a:hover,
    .nav--icons ul li a.is-active {
        color: #000;
        background-color: #fff;
    }

    .nav--icons ul li a:hover span,
    .nav--icons ul li a.is-active span {
        opacity: 1;
        max-width: 80px;
        transform: translate3d(0, 0, 0);
    }
}


/* Pour les téléphones (écrans plus petits que 600px) */
@media (max-width: 629px) {
    .navbar {
        display: none;
    }

    .phoneNavbar {
        display: flex;
    }

    .phoneNavbar .logo {
        width: 170px;
        height: 80px;
    }

    .phoneNavbar header {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .phoneNavbar .selector {
        align-items: center;
        display: flex;
        color: hsl(224, 20%, 94%);
        cursor: pointer;
        position: absolute;
        right: 20px;
    }

    .phone-dropdown-content {
        display: none;
        position: absolute;
        background-color: hsl(224, 14%, 16%);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        margin-top: 10px;
        width: 120px;
        border-radius: 10px;
        transform: translateX(-35%);
    }

    .phone-dropdown-content div {
        padding-left: 30px;
        padding-top: 5px;
        padding-bottom: 5px;
        cursor: pointer;
    }

    .phone-dropdown-content div:hover {
        background-color: #99c8ff;
        color: black
    }

    .phoneNavbar ul {
        position: absolute;
        display: flex;
        align-items: center;
        flex-direction: row;
        bottom: 0px;
        justify-content: space-between;
    }

    .wrapper {
        max-width: 320px;
        margin: 2em auto;
    }

    .nav--icons {
        position: fixed;
        bottom: 2em;
        left: 1em;
        right: 1em;
        z-index: 999;

    }

    .nav--icons ul {
        list-style-type: none;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav--icons .icon {
        width: 24px;
        height: 24px;
    }

    .nav--icons ul li a {
        font-family: sans-serif;
        font-size: 10px;
        letter-spacing: 1px;
        text-decoration: none;
        color: #fff;
        line-height: 1;
        vertical-align: middle;
        display: flex;
        align-items: center;
        border-radius: 3em;
        padding: 0.75em 1.25em;
        transition: 0.6s ease-in-out;
    }

    .nav--icons ul li a span {
        display: inline-block;
        overflow: hidden;
        max-width: 0;
        opacity: 0;
        padding-left: 0.5em;
        transform: translate3d(-0.5em, 0, 0);
        transition: opacity 0.6s, max-width 0.6s, transform 0.6s;
        transition-timing-function: ease-in-out;
    }

    .nav--icons ul li a:hover,
    .nav--icons ul li a.is-active {
        color: #000;
        background-color: #fff;
    }

    .nav--icons ul li a:hover span,
    .nav--icons ul li a.is-active span {
        opacity: 1;
        max-width: 40px;
        transform: translate3d(0, 0, 0);
    }


}