/*
    ==========================================================
    PROJECT : SITE-GENERIQUE
    FILE    : css/sidebar-widget-categories.css
    AUTH    : Renaud
    CREATED : 06 février 2026
    UPDATED : 26 février 2026
    ==========================================================
*/

/**
*   @project        SITE-GENERIQUE
*   @description    Style du widget Catégories (liste de liens).
*                   Style Mousel Elec : séparateurs, effet décalage au hover.
*   
*   @file           css/sidebar-widget-categories.css
*
*   @see            includes/sidebar-widget-categories.php
*   @see            css/sidebar-widget.css (base commune)
*   @see            css/color-semantic.css
*/


/* --- BLOCK : Sidebar Categories --- */
.sidebar-categories {
    /* PLACEMENT */
    width: 100%;
}


/* --- ELEMENT : List --- */
.sidebar-categories__list {
    /* PLACEMENT */
    margin: 0;
    padding: 0;

    /* VISUEL */
    list-style: none;
}


/* --- ELEMENT : Item --- */
.sidebar-categories__item {
    /* VISUEL */
    border-bottom: 1px dashed var(--color-separator);
}

.sidebar-categories__item:last-child {
    /* VISUEL */
    border-bottom: none;
}


/* --- ELEMENT : Link --- */
.sidebar-categories__link {
    /* PLACEMENT */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.4rem;

    /* TEXTE */
    font-family: var(--font-family-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-orange-120);
    text-decoration: none;

    /* EFFET */
    transition: all 0.2s ease;
}

.sidebar-categories__link:hover {
    /* PLACEMENT */
    transform: translateX(6px);

    /* TEXTE */
    color: var(--color-orange-090);
}

.sidebar-categories__link:active {
    /* TEXTE */
    color: var(--color-orange-060);
}


/* --- Flèche au hover --- */
.sidebar-categories__link::after {
    /* TEXTE */
    content: '';
    font-weight: bold;

    /* EFFET */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-categories__link:hover::after {
    /* TEXTE */
    content: '→';

    /* EFFET */
    opacity: 0.6;
}