.fa-solid, .fas{
    cursor:pointer;
}
.lottie-container {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}
.lottie-inner {
    width: 150px;
    height: 150px;
}

.card-img-top{
    height:225px;
    object-fit: contain;
    background: white;
    border-radius: 0;
}
.category-tree {
    padding-left: 1rem;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #222;
}

.category-tree ul {
    list-style: none;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid #e0e0e0;
}

.category-tree li {
    margin: 0.4rem 0;
    position: relative;
    padding-left: 0.8rem;
}

.category-tree li::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #222;
    border-radius: 50%;
    border: 1px solid #666;
}

.category-tree a {
    color: #222;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.category-tree a:hover {
    color: #000;
    transform: translateX(2px);
    text-decoration: underline;
}
.variant-hover-preview {
    position: absolute;
    z-index: 9999;
    width: 200px;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.variant-hover-trigger:hover {
    z-index: 10;
    cursor: pointer;
}
.popover img {
    max-width: 100%;
}

.category-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 0.5rem;
    margin: 0.75rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.category-card {
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
}

.subcategory-link {
    font-weight: 500;
    font-size: 1rem;
    color: #495057;
}

/* Conteneur pour positionner l'overlay et couper le slide */
.article-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Overlay caché + prêt pour l'anim depuis le bas */
.article-desc-overlay {
    opacity: 0;
    transform: translateY(12%); /* démarre un peu sous la zone visible */
    transition: opacity .25s ease-out, transform .30s ease-out;
    pointer-events: none; /* laisse passer le clic vers la modale */
}

/* Hover sur TOUTE la carte => affiche l'overlay */
.article-card:hover .article-desc-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Harmonisation globale des titres (si souhaitée) */
.category-grid a {
    text-transform: capitalize;
    text-align: left;
    display: block;
    text-decoration:none;
}
