
/* ---------------------- Marquee ---------------------- */


.marquee2 {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 40%;
}

.marquee2__track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


.marquee2__track .m {
  display: inline-block;
  margin-right: 2rem;
  color: rgb(107, 41, 41);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Mais cette fois, le contenu est doublé et flex règle tout */
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee2__track {
    animation: none;
  }
}

/* ---------------------- NAVBAR ---------------------- */
#nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 133px;
    min-height: 100px;
    background-color: #bac59f;
    color: white;
    z-index: 999999; /* Always above everything */
}

/* Top bar strip */
#bandeau {
    width: 100%;
    height: 33%;
    background-color: #a0aa86;
    display: flex;
    justify-content: center;
    align-items: center;
    color:white;
}

/* Prevents text selection on nav elements */
.el_nav {
    cursor: pointer;
    user-select: none;
}
.letter_shadow{

}
/* Main nav area (logo + menu + icons) */
#in_nav {
    width: 100%;
    height: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
}

/* Left-aligned brand text or logo */
#brand {
    position: absolute;
    left: 5%;
}

/* Icons container on the right side */
#container_logo_nav {
    position: absolute;
    right: 5%;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 20%;
}

.container_icone {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Flag icon group styling */
#flag {
    align-items: center;
    gap: 10px;
}

/* Navbar icons */
.icone_nav {
    width: 2vw;
    min-width: 15px;
    height: auto;
    user-select: none;
    cursor: pointer;
}

/* Cart counter bubble */
#add_card {
    position: absolute;
    right: -10px;
    top: -10px;
    padding: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    font-weight: bold;
    color: red;
    user-select: none;
}



/* ---------------------- NAV DROPDOWNS ---------------------- */

/* Wrapper for all dropdown zones below navbar */
#contianer_nav_info {
    position: absolute;
    top: 133px; /* Responsive dynamic height */
    width: 100%;
    background-color: #bac59f;
}

/* Base style of dropdown sections (collapsed by default) */
.nav_infos {
    width: 100%;
    height: 0;
    overflow: hidden;
    display: flex;
    transition: height 0.5s ease;
}

/* Expanded dropdown */
.to_height_nav {
    height: 300px;
}

/* Specific sections use same background */
#nav_prod, #nav_accompte, #nav_card {
    background-color: #bac59f;
}

/* Left side column (categories, account, etc.) */
.container_nav {
    width: 33%;
    height: 100%;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container_nav div{
    cursor: pointer;
}
/* Right-side sliding panel */
.info_nav_cat {
    position: absolute;
    top: 10%;
    right: 0;
    width: 66.66%;
    height: 90%;
    padding: 10px;
    background-color: #dee3d1;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
    align-items: stretch;

    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 9999;
}

/* Slide-in state */
.to_open_sous_nav {
    transform: translateX(0%);
}

/* Product cards inside dropdown */
.card_nav {
    padding: 12px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card_nav div{
    cursor: pointer;
    transition: transform 0.5s ease;
    user-select: none;
}
.card_nav div:hover{
    transform: scale(1.05);
}


/* ---------------------- RESPONSIVE ---------------------- */

/* Slightly smaller screens */
@media (max-width: 1366px) {
    #nav { height: 90px; }
    #bandeau { height: 40%; }
    #in_nav { height: 60%; }
    #contianer_nav_info{top:90px}
}

/* 1280×1024 tablets */
@media (max-width: 1280px) and (max-height: 1024px) {
    #nav { height: 120px; }
    #contianer_nav_info{top:120px}
}

/* 1280×720 laptops */
@media (max-width: 1280px) and (max-height: 720px) {
    #nav { height: 90px; }
    #contianer_nav_info{top:90px}
}

/* 1176×664 laptops small */
@media (max-width: 1176px) and (max-height: 664px) {
    #nav {
        height: 90px;
        min-height: 90px;
    }
}

@media (max-width: 1152px) {
    #nav {
        height: 100px;
        min-height: 100px;
    }
    #contianer_nav_info{top:100px}
}

/* Tablets & large mobile */
@media (max-width: 800px) {
    #nav {
        height: 80px;
        min-height: 80px;
    }
    #contianer_nav_info{top:80px}
    .nav_resp {
        display: none; /* Likely the desktop menu */
    }
    .icone_nav {
        min-width: 18px;
    }
}

/* Mobile */
@media (max-width: 500px) {
    .icone_nav {
        min-width: 20px;
    }
    #brand {
        left: 2%;
    }
    #container_logo_nav {
        right: 4%;
    }
}