/* =========================================================
   pro-liste-cat – liste des catégories produits
   ========================================================= */

.pro-liste-cat {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

@media (max-width: 1023px) {
    .pro-liste-cat {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .pro-liste-cat {
        grid-template-columns: 1fr;
    }
}

/* --- Carte --------------------------------------------- */
.pro-cat-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: box-shadow .2s ease, transform .2s ease;
}

.pro-cat-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    transform: translateY(-4px);
}

.pro-cat-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* --- Image --------------------------------------------- */
.pro-cat-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.pro-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.pro-cat-item:hover .pro-cat-image img {
    transform: scale(1.06);
}

.pro-cat-no-image {
    width: 100%;
    height: 100%;
    background: #e8e8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='%23bbb' viewBox='0 0 24 24'%3E%3Cpath d='M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z'/%3E%3C/svg%3E") center / 48px no-repeat;
}

/* --- Titre --------------------------------------------- */
.pro-cat-caption {
    padding: .9em 1.1em;
    background: #fff;
    flex: 1;
    display: flex;
    align-items: center;
}

.pro-cat-name {
    margin: 0;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
}

/* =========================================================
   style="liste" -- 2 colonnes, pure liste texte
   ========================================================= */

.pro-liste-cat--liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .pro-liste-cat--liste {
        grid-template-columns: 1fr;
    }
}

/* --- item ------------------------------------------ */
.pro-cat-item--liste {
    min-width: 0;
    border-top: 1px solid #e9ecef;
    padding: 14px 0 14px 14px;
    position: relative;
    transition: padding-left .2s ease;
}

.pro-cat-item--liste::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: #f2a900;
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.pro-cat-item--liste:hover {
    padding-left: 18px;
}

.pro-cat-item--liste:hover::before {
    transform: scaleY(1);
}

/* --- lien nom -------------------------------------- */
.pro-cat-link--liste {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5em;
    text-decoration: none;
    color: #0b4388;
}

.pro-cat-name--liste {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    font-family:"Open sans";
}

.pro-cat-arrow--liste {
    flex-shrink: 0;
    color: #f2a900;
    opacity: 0;
    transform: translateX(-6px);
    transition: transform .2s ease, opacity .2s ease;
}

.pro-cat-item--liste:hover .pro-cat-name--liste {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(11, 67, 136, .3);
}

.pro-cat-item--liste:hover .pro-cat-arrow--liste {
    opacity: 1;
    transform: translateX(0);
}

/* --- description ----------------------------------- */
.pro-cat-desc--liste {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #9ca3af;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
