.cif-category-item .cif-subcat-list li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}
/* Footer de la carte pour les boutons */
.cif-category-item .card-footer-cif {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    z-index: 2;
    background: transparent;
    display: flex;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e5e5e5;
}
.cif-category-item .card .cif-btns {
    margin: 0;
    display: flex;
    gap: 0;
    width: 100%;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    z-index: 2;
    background: none;
    position: static;
}
.cif-category-item .card {
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(22,59,101,0.08);
    overflow: hidden;
    background: #fff;
}
.cif-category-item .card h3 {
    color: #163B65;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
}
.cif-category-item .card .cif-prod-count {
    color: #D9A21B;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    text-align: left;
}
/* Sous-catégories : alignement, sans fond ni padding excessif, typographie fidèle à la maquette */
/* Sous-catégories : occuper toute la largeur, sans espace latéral, fond jusqu'aux bords */
.cif-category-item .card .cif-subcat-list {
    margin-bottom: 0.7rem;
    padding: 0;
    list-style: none;
    width: 100%;
}
.cif-category-item .card .cif-subcat-list li {
    background: #f6f6ef;
    color: #222;
    border-radius: 0;
    font-size: 1.15rem;
    text-align: left;
    margin-bottom: 2px;
    padding: 0.5rem 1.2rem;
    font-weight: 400;
    border: none;
    box-shadow: none;
    letter-spacing: 0.01em;
    width: 100%;
    display: block;
}
.cif-category-item .card .cif-subcat-list li:last-child {
    margin-bottom: 0;
}
.cif-category-item .card .cif-subcat-list li strong {
    font-weight: 700;
}
/* Boutons sans padding, collés au bas de la carte, sans espace */
.cif-category-item .card .cif-btns {
    margin: 0;
    display: flex;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    z-index: 2;
}
.cif-category-item .card .cif-btns .btn {
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 0.7rem 0;
    width: 100%;
    border: none;
    box-shadow: none;
    margin: 0;
}
.cif-category-item .card .cif-btns .btn-cif-souscat {
    background: #163B65;
    color: #fff;
    border-radius: 0 0 0 32px;
}
.cif-category-item .card .cif-btns .btn-cif-produits {
    background: #D9A21B;
    color: #fff;
    border-radius: 0 0 32px 0;
}
.cif-category-item .card .cif-btns .btn-cif-produits.full {
    border-radius: 0 0 32px 32px;
}
.cif-category-item .card {
    position: relative;
    padding-bottom: 3.2rem;
}
/* Image prend toute la hauteur de la zone image */
.cif-category-item .card-img-col {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f8f8f8;
    height: 100%;
    border-radius: 0 32px 32px 0;
    overflow: hidden;
    min-height: 250px;
}
.cif-category-item .card-img-col img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 0 32px 32px 0;
    transition: transform .3s;
    display: block;
}
.cif-category-item .card-img-col img:hover {
    transform: scale(1.08);
}
@media (max-width: 767px) {
    .cif-category-item .card {
        border-radius: 18px;
    }
    .cif-category-item .card-img-col img {
        border-radius: 0 0 18px 18px;
        height: 120px;
    }
    .cif-category-item .card-img-col {
        border-radius: 0 0 18px 18px;
    }
}
