@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --color-maron: #B57225;
    --color-dark-maron: #512A03;
    --color-text-gray: #3a3939;
    --font-family-jakarta: 'Plus Jakarta Sans', sans-serif;
    --font-family-poppins: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-jakarta);
}

body {
    font-family: 'Poppins', sans-serif;
}

.bg-dark-maron {
    background-color: var(--color-dark-maron);
}

.bg-maron {
    background-color: var(--color-maron);
}

.text-maron{
    color: var(--color-maron);
}

.text-dark-maron{
    color: var(--color-dark-maron);
}

.text-gray{
    color: var(--color-text-gray);
}

.top-head {
    font-size: 0.9rem;
}

.nav-link {
    font-weight: 500;
    color: white;
}

.navbar-nav .nav-link.active {
    color: var(--color-maron);
}

.navbar-nav .nav-link:hover {
    color: var(--color-maron);
    transition: all 500ms ease-in-out;
}

.link-hover-black:hover {
    color: black;
    text-decoration: none;
}

.link-hover-white:hover {
    color: white;
    text-decoration: none;
}

.link-hover-maron:hover {
    color: var(--color-maron);
    text-decoration: none;
}

.dropdown.submenu {
    position: inherit;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu.submenu-content {
    border-radius: 0;
    color: white;
    width: 100%;
    border: 0;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Style dropdown utilisateur */
.nav-user .dropdown-menu {
    min-width: 200px;
    transition: all 0.3s ease-in-out;
}

.nav-user .dropdown-item {
    color: white;
    transition: background 0.2s ease-in-out;
}

.nav-user .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bs-warning);
    /* ou une autre couleur d’accent */
}

.nav-user .dropdown-divider {
    margin: 0.5rem 0;
}

/* === Barre de recherche desktop === */
.nav-search:hover,
.nav-cart:hover,
.nav-whislist:hover{
    cursor: pointer;
}
.search-box {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 10;
}

.search-box.active {
    width: 220px;
    opacity: 1;
}

/* === Barre de recherche mobile === */
.mobile-search {
    transition: all 0.4s ease-in-out;
}

.mobile-search input {
    font-size: 0.9rem;
}

/* Animation slide */
.mobile-search.show {
    display: block !important;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cache la version desktop en dessous de 768px */
@media (max-width: 998.98px) {
    .search-box {
        display: none !important;
    }
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    height: 100vh;
    background: #111;
    color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease-in-out;
    z-index: 1055;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
}

.cart-body::-webkit-scrollbar {
    width: 5px;
}

.cart-body::-webkit-scrollbar-thumb {
    background-color: #555;
}

/* Mobile : le panier apparaît depuis le bas */
@media (max-width: 576px) {
    .cart-drawer {
        width: 100%;
        height: 60vh;
        bottom: -60vh;
        right: 0;
        top: auto;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        transition: bottom 0.4s ease-in-out;
    }

    .cart-drawer.open {
        bottom: 0;
    }
}

.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    /* au-dessus du contenu */
}

.section-slider{
    background: #000;
    height: 100vh;
    width: 100%;
    /* position: absolute; */
    overflow: hidden;
    /* top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
    z-index: -10;

}

@media screen and (max-width: 999px) {
    .top-head {
        font-size: 0.7rem;
    }

    .dropdown-menu.submenu-content {
        left: 0 !important;
        transform: translateX(0) !important;
    }
}


@media screen and (max-width: 522px) {
    .top-head {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Section Categorie */
.categorie-content_description:hover h4{
    color: var(--color-maron);
    transition: all 500ms ease-in-out;
    cursor: pointer;
}

.categorie-content_img img{
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
    transition: all 500ms ease-in-out;
}
.categorie-content_img:hover img{
    transform: scale(1.1) rotate(5deg);
    transition: all 500ms ease-in-out;
}

.categorie-link{
    color: var(--color-dark-maron);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
}

.categorie-link:hover{
    color: var(--color-maron);
    transition: all 500ms ease-in-out;
}

.produit figure {
    transition: all 1s ease-in-out;
}

.produit a{
    text-decoration: none;
    color: var(--color-text-gray);
    transition: all 500ms ease-in-out;
}

.produit figure:hover img{
    transform: scale(1.1);
    transition: all 1s ease-in-out;
}

.produit-modal:hover i{
    color: var(--color-maron)
}

/* === Carte produit === */
.card.produit-item{
    border: solid 1px rgba(81, 42, 3, 0.144);
}

.produit-item {
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.produit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


/* === Icônes (cœur + œil) === */
.produit-modal {
    opacity: 0;
    transform: translateX(40px);
    /* cachées à droite au repos */
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}

/* Animation synchrone avec le hover du produit */
.produit-item:hover .produit-modal {
    opacity: 1;
    transform: translateX(0);
    /* glisse vers sa position normale */
    pointer-events: auto;
}

/* Petit effet rebond au survol des icônes */
.produit-modal i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.produit-modal:hover i {
    transform: scale(1.2);
    color: var(--color-maron);
}

/* === Bouton "Ajouter au panier" === */
.produit-btn button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-in-out;
}

.produit-item:hover .produit-btn button {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.section-newsletter{
    margin: 100px auto;
}

.section-newsletter form{
    width: 100%;
}

@media screen and (min-width: 999px) {
    .section-newsletter form{
        width: 60%;
    }
}

footer .nav-link{
    font-size: 0.9rem;
    color: #3a3939;
}

footer .nav-link:hover{
    color: var(--color-maron);
    transition: all 500ms ease-in
}

.link-copyright, 
.link-icon{
    color: var(--color-maron);
    text-decoration: none;
}

.btn-gotop {
    display: none;
    position: fixed;
    width: 50px;
    height: 50px;
    background: var(--color-dark-maron);
    bottom: 50px;
    right: 50px;
    text-align: center;
    line-height: 50px;
    color: white;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.6s ease;
    animation: beating 2s ease-in-out infinite;
}

.btn-gotop .bi {
    font-weight: bold;
}

.btn-gotop:hover {
    background: var(--color-maron);
    color: white;
}

@media (max-width: 425px) {
    .btn-gotop {
        bottom: 20px;
        right: 20px;
    }
}

@keyframes beating {
    0% { transform: scale(1);}

    50% { transform: scale(1.1); }

    100% {transform: scale(1);}
}

.menu-lateral .list-group{
    --bs-list-group-border-width:0;
}

.menu-lateral .list-group .active{
    background:rgba(81, 42, 3, 0.3);
    color: #000;
}

#zoomWrapper {
    position: relative;
    overflow: hidden;
}

#zoomLens {
    position: absolute;
    border: 1px solid #aaa;
    border-radius: 50%;
    cursor: none;
    width: 100px;
    height: 100px;
    display: none;
    background-repeat: no-repeat;
    background-size: 200%;
    /* intensité du zoom */
    z-index: 10;
}

.catalogue-item{
    transition: all 1s ease-in-out;
}

.catalogue-item:hover img{
    transform: scale(1.1);
    transition: all 1s ease-in-out;
}