/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    color: black;
}

.body {
    color: white;
}

@font-face {
    font-family: "sublimgrav";
    src: url("../assets/font/LHF_Convecta_BASE.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "basic";
    src: url(../assets/font/AppleGaramond-Italic.ttf);
}

/* NAVBAR */
.desktop-only{
    display: block;
}

.mobile-only{
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
    background-color: rgb(79, 22, 22);
}

.logo {
    font-size: 2em;
    font-weight: bold;
    font-family: "sublimgrav";
}

.logo .red {
    color: red;
}

.nav-links ul {
    display: flex;
    align-items: center;
}

.nav-links ul li {
    position: relative; 
    margin: 0 30px;
}

.navbar .menu-burger {
    display: none;
    position: absolute;
    top: 50px;
    right: 50px;
    width: 35px;
}

.navbar a {
    color: white;
}

/* Effet ligne sous les liens */
.nav-links > ul > li::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: red;
    transition: width .3s;
}

.nav-links > ul > li:hover::after {
    width: 100%;
}

/* SOUS-MENU */
.sous {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(79, 22, 22);
    box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
    min-width: 180px;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.sous li {
    opacity: 0;
    transform: translateX(-10px);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sous li a {
    display: block; 
    padding: 10px 20px;
    width: 100%;
}

/* Apparition du sous-menu */
.atelier:hover .sous {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Animation en cascade des items */
.atelier:hover .sous li {
    opacity: 1;
    transform: translateX(0);
}

.sous li:nth-child(1) { transition-delay: 0.05s; }
.sous li:nth-child(2) { transition-delay: 0.10s; }
.sous li:nth-child(3) { transition-delay: 0.15s; }
.sous li:nth-child(4) { transition-delay: 0.20s; }
.sous li:nth-child(5) { transition-delay: 0.25s; }

.sous li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* SOUS-MENU 2 */

.sous2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(79, 22, 22);
    box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
    min-width: 180px;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.sous2 li {
    opacity: 0;
    transform: translateX(-10px);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sous2 li a {
    display: block;
    padding: 10px 20px;
    width: 100%;
}

/* Apparition du sous-menu */
.produits:hover .sous2 {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Animation en cascade des items */
.produits:hover .sous2 li {
    opacity: 1;
    transform: translateX(0);
}

.sous2 li:nth-child(1) { transition-delay: 0.05s; }
.sous2 li:nth-child(2) { transition-delay: 0.10s; }
.sous2 li:nth-child(3) { transition-delay: 0.15s; }
.sous2 li:nth-child(4) { transition-delay: 0.20s; }
.sous2 li:nth-child(5) { transition-delay: 0.25s; }

.sous2 li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* horaires */

.horaires {
    margin: 150px 30vw 50px 30vw;
    font-weight: bold;
    font-size: 1.2rem;
}

.title {
    margin-bottom: 30px;
}

.content {
    border: 1px solid grey;
    border-radius: 7px;
    padding: 20px;
    justify-content: center;
}

/* contact */

.nouscontactez {
    margin: 50px 30vw 50px 30vw;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.title-contact {
    margin-bottom: 50px;
}

.contact-container {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
}

.contact-container img {
    height: 50px;
    width: 50px;
}

.contact-container a {
    align-items: center;
    justify-content: center;
}


/* footer */

footer {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    background: grey;
    padding: 20px;
    text-align: center;
}

footer div {
    margin-bottom: 20px; 
}

.logors {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.logors li {
    list-style: none; 
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 50px;    
    height: 50px;
    background: transparent;
}

.logors img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
    flex-direction: row;
}

.logors img:hover {
    transform: scale(1.1); 
}

@media screen and (max-width: 1070px) {
    /* Navbar */
    .desktop-only{
        display: none;
    }
    .mobile-only{
        display: block;
    }
    .navbar {
        padding: 0;
    }

    .logo {
        display: none;
    }

    .navbar .logo {
        position: absolute;
        top: 50px;
        left: 50px;
    }

    .nav-links {
        position: fixed;          
        top: 0;
        left: 0;
        z-index: 1500;
        width: 100vw;
        height: 100vh;
        background: rgba(79, 22, 22, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;      
        transition: margin-left .35s ease;
        overflow-y: auto;         
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        padding: 80px 20px 40px;   
    } 

    .navbar .menu-burger {
        display: block;
        z-index: 2000;           
        position: absolute;
        top: 20px;
        right: 20px;
        width: 35px;
    }

    .nav-links.mobile-menu {
        margin-left: 0;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(560px, 90%);
    }

    .nav-links ul li {
        margin: 25px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links ul li a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links > ul > li::after {
        display: none !important;
    }

    body.menu-open {
        overflow: hidden;
    }
  }