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

.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);
}

/* expo */

.expo {
    display: flex;
    margin-top: 150px;
    margin-left: 50px;
    gap: 200px;
}

.imgexpo {
  display: grid;
  grid-template-columns: repeat(2, 300px);
  grid-template-rows: repeat(2, 300px);
  gap: 30px;
  border-radius: 7px;
  overflow: hidden;
  width: 615px;
  height: 615px;
}

.imgexpo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}


.txtexpo {
  width: 30%;
  font-size: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;

}

/* pub */

.pub {
    background: white;
    padding: 50px;
    display: flex;
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    margin-top: 150px;
    position: relative;
}

.pub img {
    display: block;
    width: 100%;
    height: auto;
}

.pub p {
    position: absolute;
    top: 0%;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
}

.broderie {
    width: 300px;
    height: 600px;
    overflow: hidden;
    border-radius: 7px;
    position: relative;
}

.broderie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.broderie a {
    position: absolute;
    top: 80%;                 
    left: 50%;               
    transform: translateX(-50%); 
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    background: rgb(79, 22, 22);
    width: 50%;
    height: 10%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.broderie a:hover {
    transform: translateX(-50%) scale(1.1);
}

.flocage {
    width: 300px;
    height: 600px;
    overflow: hidden;
    border-radius: 7px;
    position: relative;
}

.flocage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.flocage a {
    position: absolute;
    top: 80%;                 
    left: 50%;               
    transform: translateX(-50%); 
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    background: rgb(79, 22, 22);
    width: 50%;
    height: 10%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.flocage a:hover {
    transform: translateX(-50%) scale(1.1);
}

.signaletique {
    width: 300px;
    height: 600px;
    overflow: hidden;
    border-radius: 7px;
    position: relative;
}

.signaletique img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.signaletique a {
    position: absolute;
    top: 80%;                 
    left: 50%;               
    transform: translateX(-50%); 
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    background: rgb(79, 22, 22);
    width: 50%;
    height: 10%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.signaletique a:hover {
    transform: translateX(-50%) scale(1.1);
}

.bricolage {
    width: 300px;
    height: 600px;
    overflow: hidden;
    border-radius: 7px;
    position: relative;
}

.bricolage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bricolage a {
    position: absolute;
    top: 80%;                 
    left: 50%;               
    transform: translateX(-50%); 
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    background: rgb(79, 22, 22);
    width: 50%;
    height: 10%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.bricolage a:hover {
    transform: translateX(-50%) scale(1.1);
}

.vetement {
    width: 300px;
    height: 600px;
    overflow: hidden;
    border-radius: 7px;
    position: relative;
}

.vetement img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vetement a {
    position: absolute;
    top: 80%;                 
    left: 50%;               
    transform: translateX(-50%); 
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    background: rgb(79, 22, 22);
    width: 50%;
    height: 10%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.vetement a:hover {
    transform: translateX(-50%) scale(1.1);
}

/* 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;
    }

    /* expo */

  .expo {
    flex-direction: column; 
    align-items: center;
    gap: 20px;
    margin: 100px auto;
    padding: 0 20px;
    position: relative;
  }

  .imgexpo {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto;
    gap: 10px;
    width: 100%;
    max-width: 600px;
  }

  .imgexpo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 7px;
  }

    .txtexpo {
    position: absolute;
    inset: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    width: 100%;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    }

.txtexpo p {
  margin: 0;
  line-height: 1.4em;
}

}
