﻿.sidebar {
    /* Place */
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: -70px; /* pos initiale */
    transition: left 0.5s ease-in-out;
    min-width: 50px;
    width: 4.15vw;
    height: 100%;
    /* Aspect */
    background-color: var(--presque-noir);
    z-index: 1000;
    /* Elements */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 25px;
    color: #383838;
}

.sidebar img {
    margin: 5px 0 30px 0;
    width: 22px;
    transition: transform 0.5s ease-in-out;
}
.sidebar img:hover {
    transform: scale(1.08);
}

.nav {
    white-space: nowrap;
    transform: rotate(-90deg);
    margin: 50px 0 50px 0;
    margin-right: 75px; /* pose initiale */
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 1.15em;
    text-decoration: none;
    color: #E1DCE3;
    position: relative;
}
    .nav.active {
        padding: 3px 10px;
        border: 1px solid;
        border-radius: 15px;
        color: var(--presque-noir);
        background-color: var(--white);
        font-style: italic;
    }

@media (min-width: 768px ) {
    .nav:hover {
    transform: rotate(-88deg) scale(1.06);
    }
}

.nav-presentation {
    transition: margin 1s ease-in-out, transform 0.3s ease-in-out;
}

.nav-projets {
    transition: margin 1.2s ease-in-out, transform 0.3s ease-in-out;
}

.nav-galerie {
    transition: margin 1.4s ease-in-out, transform 0.3s ease-in-out;
}

.nav-contact {
    transition: margin 1.6s ease-in-out, transform 0.3s ease-in-out;
}

/* ---------------------------------------------------------- ordinateur ----- */
@media (min-width: 768px) {
    .sidebar-mobile {
        width:0;
        height:0;
        overflow:hidden;
        visibility:hidden;
    }

}

/* ---------------------------------------------------------- téléphone ----- */
@media (max-width: 767px) {
    .sidebar {
        width: 0;
        height: 0;
        margin: 0;
        visibility: hidden;
    }

        .sidebar img {
            margin: 0;
        }

    .nav {
        transform: rotate(0deg);
        margin: 0;
    }

    .sidebar-mobile {
        /* Place */
        margin: 0;
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        min-width: 50px;
        width: 100vw;
        height: 50px;
        /* Aspect */
        background-color: var(--presque-noir);
        z-index: 1000;
        /* Elements */
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        line-height: 25px;
        color: #383838;
    }

        .sidebar-mobile img {
            margin-left: 20px;
            margin-top: 5px;
            width: 22px;
            transition: transform 0.5s ease-in-out;
        }

    .intra-projet {
        justify-content: start;
    }
}
