@import url("https://fonts.googleapis.com/css?family=Encode+Sans+Condensed:400,600");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html,
body {
    min-height: 100vh;
    background-color: rgb(245, 245, 245);
    font-family: "Encode Sans Condensed", sans-serif;
}

a,
a:visited,
a:focus,
a:active,
a:link {
    text-decoration: none;
    outline: 0;
}

a {
    color: currentColor;
    transition: 0.2s ease-in-out;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

strong {
    font-weight: 600;
}

:root {
    --height-footer: 120px;
}

main {
    padding-top: 60px;
    min-height: calc(100% - var(--height-footer));
}

.page {
    height: 100vh;
}

/* ************** * NAVBAR * ************** */

header {
    display: flex;
    position: fixed;
    width: 100%;
    height: 60px;
    padding-left: 80px;
    color: #000000;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index: 10;

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    /* box-shadow: 0 1px 2px rgba(0,0,0,0.07), 
              0 2px 4px rgba(0,0,0,0.07), 
              0 4px 8px rgba(0,0,0,0.07), 
              0 8px 16px rgba(0,0,0,0.07),
              0 16px 32px rgba(0,0,0,0.07), 
              0 32px 64px rgba(0,0,0,0.07); */
}

nav {
    display: flex;
    width: 100%;
    height: 100%;
}

nav ul {
    display: flex;
    align-items: center;
    width: 100%;
    margin-right: 20px;
}

nav ul li.btn-1 {
    display: flex;
}

nav ul li.btn-1 a.btn-1 {
    min-width: 110px;
    display: flex;
}

nav ul li.btn-1 a.btn-1:hover {
    min-width: 125px;
}

nav ul li a img {
    display: block;
    width: 120px;
    height: 60px;
    object-fit: cover;
}

nav ul li a {
    font-size: 1.4em;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

nav ul li a.link-nav {
    margin: 0 20px;
}

nav ul li a.link-nav:hover {
    background: linear-gradient(180deg, rgb(247, 110, 26), rgb(192, 41, 59));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.15em;
}

nav ul li a i.fa-user-circle.mobile,
nav ul li a i.fa-shopping-basket {
    font-size: 1em;
    margin: 0 20px;
    padding-top: 2px;
    transition: 0.3s;
    display: none;
}

nav ul li i.fa-user-circle {
    padding-top: 3px;
    margin-right: 10px;
}

nav ul li i.fa-caret-down {
    padding-top: 3px;
    margin-left: 10px;
}

nav ul li i.fa-shopping-basket {
    padding-top: 3px;
}

nav ul li i.fas:hover {
    background: linear-gradient(180deg, rgb(247, 110, 26), rgb(192, 41, 59));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-cart {
    position: relative;
}

.cart-count {
    background: #e63946;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 6px;
    display: none;
}

.cart-desktop {
    display: inline-flex;
    align-items: center;
}

.cart-icon {
    position: relative;
}

.cart-icon .cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
}

.cart-mobile {
    display: none;
}

nav ul form {
    display: flex;
    width: 100%;
    margin: 0 20px;
}

nav ul form input {
    height: 35px;
    width: 100%;
    padding-left: 18px;
    border: none;
    border-bottom: 1.5px solid #000;
    background: none;
    color: #8b8b8b;

    font-size: 1.1em;
    font-family: "Encode Sans Condensed", sans-serif;
}

nav ul form button {
    height: 35px;
    width: 50px;
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1.5px solid #000;
    background: none;
}

nav ul form button i {
    font-size: 1.2em;
    cursor: pointer;
}

/* MENU LOGIN */

.loginchoise {
    position: fixed;
    top: 60px;
    right: 110px;
    height: 0;

    overflow: hidden;
    opacity: 0;
    z-index: 10;

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.07),
        0 8px 16px rgba(0, 0, 0, 0.07),
        0 16px 32px rgba(0, 0, 0, 0.07),
        0 32px 64px rgba(0, 0, 0, 0.07);

    transition: 0.4s ease-in-out;
}

.loginchoise.isOpen {
    height: 230px;
    overflow: visible;
    opacity: 1;
}

.loginchoise .menu-login {
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.loginchoise a {
    color: rgb(0, 0, 0);
    font-size: 1.2em;
    transition: 0.4s ease-in-out;
    padding: 0 20px;
}

.loginchoise a:hover {
    background: linear-gradient(180deg, rgb(247, 110, 26), rgb(192, 41, 59));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BUTTON BURGER */

.btn-burger {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 101;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    border-radius: 0;
    height: 60px;
    width: 30px;
    cursor: pointer;
    pointer-events: auto;
    margin-left: 25px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    transition: 0.6s ease-in-out;
}

.btn-burger.menu-open {
    margin-left: 340px;
}

.icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #000000;
    border-radius: 4px;
    transition: 0.3s;
}

.icon-bar.cross {
    background: #fff;
}

.icon-bar + .icon-bar {
    margin-top: 5px;
}

.icon-bar.cross:nth-of-type(1) {
    transform: translate3d(0, 8px, 0) rotate(45deg);
}

.icon-bar.cross:nth-of-type(2) {
    opacity: 0;
}

.icon-bar.cross:nth-of-type(3) {
    transform: translate3d(0, -8px, 0) rotate(-45deg);
}

/* ONGLET DE NAVIGATION */

.nav-content {
    position: fixed;
    left: 0;

    background: #ececec;
    width: 330px;
    height: 100%;

    z-index: 100;

    -webkit-box-shadow: none;
    box-shadow: none;

    transition: transform 0.6s ease-in-out;
    -webkit-transition: transform 0.6s ease-in-out;
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
}

.nav-content.isOpen {
    transform: translateX(0%);
    -webkit-transform: translateX(0%);
    -webkit-box-shadow: 0px 0px 50px 10px #0000007e;
    box-shadow: 0px 0px 50px 10px #0000007e;
}

.nav-content .profil-user {
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(247, 111, 26), rgb(192, 41, 59));
    width: 100%;
    height: 60px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    color: #ececec;
}

.nav-content .profil-user i {
    padding-right: 10px;
}

.nav-content .link-onglet {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 0 30px;
    padding-top: 80px;
}

.nav-content ul {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-content li#title {
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 20px;
}

.nav-content li#title-2 {
    font-size: 28px;
    font-weight: 600;
    padding: 20px 0;
}

.nav-content li a {
    padding: 9px 20px;
    display: block;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 0.05em;
}

.nav-content li a#last {
    padding-bottom: 50px;
}

.nav-content li a:hover {
    color: #8b8b8b;
    letter-spacing: 0.2em;
}

/* OPACITÉ NOIR */

.bg-opacity {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    background: #000000;
}

.bg-opacity.active {
    visibility: visible;
    opacity: 0.7;
}

@media screen and (max-width: 780px) {
    nav ul li a i.fa-user-circle.mobile,
    nav ul li a i.fa-shopping-basket {
        display: block;
    }

    nav ul li a.link-nav {
        display: none;
    }

    .loginchoise {
        width: 100%;
        left: 70%;
    }

    .cart-desktop {
        display: none;
    }

    .cart-mobile {
        display: inline-block;
        position: relative;
    }
}

@media screen and (max-width: 440px) {
    nav ul {
        justify-content: space-around;
    }

    nav ul form {
        display: none;
    }

    nav ul li a img {
        height: 100px;
    }

    .loginchoise {
        width: 100%;
        left: 0;
    }

    .nav-content {
        width: 100%;
    }

    .btn-burger.menu-open {
        margin-left: 25px;
    }

    .bg-opacity.active {
        visibility: hidden;
    }
}

/* ************** * FOOTER * ************** */

footer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 60px);
    width: 100%;
    color: #000000;
}

footer .footer-grid-1 {
    background-color: #8b8b8b;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #616161;
}

footer .footer-grid-1 a img {
    display: block;
    height: 120px;
    padding: 0 10px;
}

footer .footer-grid-1 ul {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

footer .footer-grid-1 ul li a {
    font-size: 1.5em;
    transition: 0.3s ease-in-out;
    border: none;
    padding: 0 10px;
}

footer .footer-grid-1 ul li a:hover {
    color: #fff;
    text-shadow: 0px 0px 10px #f76e1a;
}

footer .footer-grid-2 {
    background-color: #616161;
}

footer .footer-grid-2 ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}

footer .footer-grid-2 ul li {
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

footer .footer-grid-2 ul li a {
    font-size: 1.1em;

    transition: 0.3s ease-in-out;
}

footer .footer-grid-2 ul li a:after {
    display: block;
    content: "";
    margin-top: 2px;
    border-bottom: solid 1px #8b8b8b;
    transform: scaleX(0);
    transition: transform 300ms ease-in-out;
}

footer .footer-grid-2 ul li a:hover:after {
    transform: scaleX(1);
}

footer .footer-grid-2 ul li a:hover {
    color: #8b8b8b;
}

@media screen and (max-width: 440px) {
    footer .footer-grid-1 a img {
        height: 100px;
    }

    footer .footer-grid-1 ul li a {
        font-size: 1.2em;
    }

    footer .footer-grid-2 ul {
        flex-wrap: wrap;
    }

    footer .footer-grid-2 ul li a {
        font-size: 1em;
        padding: 0 10px;
    }
}
