:root{
    --couleur-txt:#f200ff;
}

nav{
    width: 100%;
   background: linear-gradient(
    180deg,
    #fafafa 0%,
    rgba(250, 250, 250, 0.85) 25%,
    rgba(250, 250, 250, 0.5) 55%,
    rgba(250, 250, 250, 0.15) 85%,
    rgba(250, 250, 250, 0) 100%

);


    margin: 0;
    padding: 30px;
    padding-bottom: 90px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position:fixed;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.8s ease-in-out;
    transform: translateY(0);
    z-index: 1000;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

nav h1{
    text-transform: uppercase;
    font-size: 24px;
    padding: 0;
    margin: 0;
    font-weight: 600;
    color: black;
}

#grp-btn-nav{
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

#grp-btn-nav a{
    font-size: 22px;
    color: black;
}

/* --- Menu tel : caché par défaut (desktop) --- */
#menu-tel {
    display: none;
}

/* --- Overlay menu mobile --- */
#overlay-menu {
    position: fixed;
    inset: 0;
    background-color: #fafafa;
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding-top: 100px;
}

#overlay-menu.overlay-open {
    opacity: 1;
    pointer-events: all;
}

#overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--couleur-txt);
    padding: 0;
}

#overlay-nav {
    display: flex;
    flex-direction: column;
    row-gap: 120px;
    position: static;
    background: none;
    padding: 0;
    width: 100%;
    padding: 30px;
}

#overlay-nav a {
    color: var(--couleur-txt);
    font-size: clamp(28px, 17.63px + 1.481vw, 38px);
    font-weight: 500;
}

#overlay-nav h4{
    color: var(--couleur-txt);
}

#menu-overlay-tel, #contacts-overlay-tel{
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

/* --- Mobile : afficher menu-tel, cacher les autres liens --- */
@media (max-width: 768px) {
    #menu-tel {
        display: inline;
        text-transform: uppercase;
    }

    #grp-btn-nav a:not(#menu-tel) {
        display: none;
    }
}