/* LLW Home Categories - Styles */
.llw-home-categories {
    padding: 60px 0;
    /* background: #000000; */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Container personnalisÃƒÂ© pour sortir du container PrestaShop */

/* Apparition vers le haut pour le container principal */
.llw-home-categories .llw-custom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    animation: llwContainerFadeInUp 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    transition: box-shadow 0.3s;
}

.llw-home-categories .llw-custom-container:hover {
}

@keyframes llwContainerFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.llw-cat-title {
    text-align: start;
    margin-bottom: 40px;
    /* font-size: 20px; */
}

.llw-cat-title h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.llw-cat-title h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #cccccc;
    margin: 0;
}

.llw-categ-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.llw-cat-item-wrapper {
    padding: 10px;
    margin-bottom: 20px;
}

/* Animation d'apparition au scroll */

/* Animation d'apparition au scroll améliorée */

.llw-cat-item-wrapper.llw-animate-init {
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.llw-cat-item-wrapper.llw-animate-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.llw-cat-item-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.llw-cat-item-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.llw-cat-item-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.llw-cat-item-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

.llw-cat-item-wrapper:nth-child(5) {
    animation-delay: 0.5s;
}

.llw-cat-item-wrapper:nth-child(6) {
    animation-delay: 0.6s;
}

.llw-cat-item-wrapper:nth-child(7) {
    animation-delay: 0.7s;
}

.llw-cat-item-wrapper:nth-child(8) {
    animation-delay: 0.8s;
}

.llw-cat-item-wrapper:nth-child(9) {
    animation-delay: 0.9s;
}

.llw-cat-item-wrapper:nth-child(10) {
    animation-delay: 1s;
}

@keyframes llwFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =================================
   MODE RECTANGULAIRE (par dÃƒÂ©faut)
   Style inspirÃƒÂ© de Pizze and Cook
   ================================= */

/* Container principal du mode rectangle */
.llw-mode-rectangle .llw-categ-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 20px;
}

.llw-category-item.llw-rectangle {
    position: relative;
    aspect-ratio: 30/23;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.llw-category-item-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.llw-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.llw-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.llw-category-item.llw-rectangle:hover .llw-category-image {
    transform: scale(1.05);
}

.llw-category-name {
    color: white;
    margin: 0;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 5px;
    margin-left: 25px;
    padding-bottom: 3px;
    position: relative;
    z-index: 3;
    display: block;
    width: fit-content;
}

.llw-category-name::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background-color: #222248;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.llw-category-item.llw-rectangle:hover .llw-category-name::after {
    width: 100%;
}

/* =================================
   MODE ROND
   ================================= */

.llw-category-item.llw-round {
    display: block;
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.llw-category-item.llw-round:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.5);
}

/* Image en background avec effet zoom */
.llw-category-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.llw-category-item.llw-round .llw-category-item-bg {
    background-size: cover;
    background-position: center center;
}

.llw-category-item.llw-round:hover .llw-category-item-bg {
    transform: translate(-50%, -50%) scale(1.2);
}

.llw-category-item.llw-round::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    transition: all 0.4s ease;
    z-index: 1;
}

.llw-category-item.llw-round:hover::before {
    background: linear-gradient(to bottom,
            rgba(231, 76, 60, 0.1) 0%,
            rgba(0, 0, 0, 0.75) 100%);
}

/* Overlay texte - MODE ROND */
.llw-category-item.llw-round .llw-cat-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 10px;
}

.llw-category-item.llw-round .llw-cat-overlay h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.85);
    display: inline-block;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.llw-category-item.llw-round:hover .llw-cat-overlay h3 {
    background: rgba(231, 76, 60, 0.95);
    transform: scale(1.05);
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .llw-mode-rectangle .llw-categ-list {
        grid-template-columns: repeat(3, 1fr);
        grid-column-gap: 25px;
    }

    .llw-category-name {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .llw-category-item.llw-round {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 991px) {
    .llw-mode-rectangle .llw-categ-list {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 15px;
    }

    .llw-category-name {
        font-size: 16px;
        letter-spacing: 3px;
        margin-left: 20px;
    }

    .llw-category-item.llw-round {
        width: 150px;
        height: 150px;
    }

    .llw-cat-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .llw-home-categories {
        padding: 40px 0;
    }

    .llw-mode-rectangle .llw-categ-list {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 15px;
        grid-row-gap: 15px;
    }

    .llw-category-name {
        font-size: 14px;
        letter-spacing: 2px;
        margin-left: 15px;
    }

    .llw-category-item.llw-round {
        width: 140px;
        height: 140px;
    }

    .llw-cat-title h2 {
        font-size: 1.8rem;
    }

    .llw-cat-title h3 {
        font-size: 1.1rem;
    }

    .llw-category-item.llw-round .llw-cat-overlay h3 {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* RÃƒÂ©duire les animations sur mobile */
    .llw-category-item.llw-rectangle:hover .llw-category-image {
        transform: scale(1.03);
    }

    .llw-category-item:hover .llw-category-item-bg {
        transform: scale(1.08);
    }
}

@media (max-width: 575px) {
    .llw-mode-rectangle .llw-categ-list {
        grid-template-columns: 1fr;
        grid-row-gap: 12px;
    }

    .llw-category-name {
        font-size: 16px;
        letter-spacing: 3px;
        margin-left: 20px;
    }

    .llw-category-item.llw-round {
        width: 120px;
        height: 120px;
    }

    .llw-category-item.llw-round .llw-cat-overlay h3 {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

.llw-home-categories {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* =================================
   MODE CARD (Nouvelle maquette)
   ================================= */

.llw-category-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 4px #C5C5C5;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-color: #C5C5C5;
}

.llw-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.llw-card-image {
    width: 100%;
    height: 224px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.llw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.llw-category-card:hover .llw-card-image img {
    transform: scale(1.1);
}

.llw-card-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.llw-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: capitalize;
}

.llw-card-button {
    display: inline-block;
    padding: 10px 25px;
    /* background: var(--primaryllw-color, #e74c3c); */
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Responsive pour le mode card */
@media (max-width: 991px) {
    .llw-card-image {
        height: 180px;
    }

    .llw-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .llw-card-image {
        height: 160px;
    }

    .llw-card-content {
        padding: 15px;
    }

    .llw-card-title {
        font-size: 1rem;
    }

    .llw-card-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .llw-card-image {
        height: 140px;
    }
}

/* Performance optimizations */
.llw-category-item,
.llw-category-item-bg,
.llw-cat-overlay,
.llw-card-image img {
    will-change: transform;
}

.llw-category-item:hover,
.llw-category-card:hover {
    will-change: transform, box-shadow;
}


.link_commander {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    color: rgb(255, 50, 0);
    letter-spacing: 2px;
    text-decoration: none;
    margin: 0px;
}

.categorie_section_title {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

@media (min-width: 768px) {

    .categorie_section_title {
        /* display: flex; */
        text-align: center;
    }

}



@media (min-width: 768px) and  (max-width: 1420px) {
    .row.llw-categ-list {
        padding:3%;
    }
}