﻿
/* ========== wwwroot/css/app/carousel.css ========== */
/* 
    CAROUSEL STYLES
    Styles sp�cifiques au composant carousel.
*/

.carousel.slide {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active {
    display: block;
}

/* ========== wwwroot/css/app/category-cards.css ========== */
/* 
    CATEGORY CARDS STYLES
    Styles pour les cartes de cat�gories affich�es dans le carousel.
*/

.category-card .card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f8f9fa 50%,
        #f0f2f5 100%
    );
    border: 2px solid rgba(27, 110, 194, 0.15);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                0 4px 8px rgba(0, 0, 0, 0.04);
}

/* Effet de verre avec motif subtil */
.category-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(27, 110, 194, 0.08) 0%, 
        rgba(27, 110, 194, 0.02) 50%,
        rgba(27, 110, 194, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* Gradient anim� en arri�re-plan */
.category-card .card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(27, 110, 194, 0.1) 0%,
        transparent 70%
    );
    animation: rotateCardBg 15s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

@keyframes rotateCardBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.category-card:hover .card::before,
.category-card:hover .card::after {
    opacity: 1;
}

.category-card:hover .card {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(27, 110, 194, 0.25), 
                0 12px 20px rgba(0, 0, 0, 0.15),
                inset 0 2px 0 rgba(255, 255, 255, 0.5),
                0 0 60px rgba(27, 110, 194, 0.15);
    border-color: var(--premium-shadow);
}

/* Carte s�lectionn�e avec effet dor�e */
.category-card.selected .card {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 235, 59, 0.1) 100%
    );
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.3),
                0 0 60px rgba(255, 215, 0, 0.2),
                inset 0 3px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-8px) scale(1.02);
}

.category-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.5rem;
}

/* ========================================
   IC�NES DE CAT�GORIES - Premium 3D
   ======================================== */

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Effet de brillance qui pulse */
.category-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.category-card:hover .category-icon::before {
    width: 150%;
    height: 150%;
    opacity: 1;
}

/* Effet de pulse continu */
.category-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid currentColor;
    opacity: 0;
    animation: iconPulseCarousel 2.5s ease-in-out infinite;
}

@keyframes iconPulseCarousel {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(12deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                inset 0 3px 0 rgba(255, 255, 255, 0.5),
                0 0 40px currentColor;
}

.category-icon i {
    position: relative;
    z-index: 1;
    font-size: 2.25rem !important;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.category-card:hover .category-icon i {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Titre de la cat�gorie */
.category-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-card:hover .card-title {
    color: var(--premium-primary);
    transform: scale(1.05);
    text-shadow: 0 3px 6px rgba(27, 110, 194, 0.2);
}

.category-card.selected .card-title {
    color: #d4af37;
    text-shadow: 0 3px 6px rgba(212, 175, 55, 0.3);
}

/* Compteur de sous-cat�gories */
.category-card small {
    color: #6c757d;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.category-card:hover small {
    color: var(--premium-primary);
    font-weight: 600;
}

/* ========== wwwroot/css/app/menu-button.css ========== */
/* 
    MENU BUTTON STYLES
    Styles pour le bouton du menu hamburger.
*/

.btn-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, 
        var(--premium-gradient-middle-1) 0%, 
        var(--premium-primary) 35%,
        var(--premium-secondary) 65%,
        var(--premium-gradient-middle-2) 100%
    );
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--premium-shadow),
                0 1px 4px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    min-height: 36px;
}

/* Effet de brillance anim� en arri�re-plan */
.btn-menu::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    animation: rotateBtnBg 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-menu:hover::before {
    opacity: 1;
}

@keyframes rotateBtnBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ligne de brillance qui traverse le bouton */
.btn-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
}

.btn-menu:hover::after {
    left: 200%;
}

.btn-menu:hover {
    background: linear-gradient(135deg, 
        var(--premium-primary) 0%, 
        var(--premium-secondary) 50%,
        var(--premium-gradient-middle-2) 100%
    );
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(27, 110, 194, 0.45),
                0 3px 8px rgba(0, 0, 0, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 0 30px rgba(27, 110, 194, 0.25);
}

.btn-menu:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px var(--premium-shadow),
                0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-menu:focus {
    outline: 3px solid var(--premium-shadow);
    outline-offset: 3px;
}

/* �tat actif avec une couleur diff�rente */
.btn-menu.active {
    background: linear-gradient(135deg, 
        var(--premium-gradient-middle-2) 0%, 
        var(--premium-gradient-middle-1) 50%,
        var(--premium-gradient-start) 100%
    );
    box-shadow: 0 4px 20px rgba(15, 52, 96, 0.5),
                0 2px 8px rgba(0, 0, 0, 0.25),
                inset 0 2px 0 rgba(255, 255, 255, 0.15),
                inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

/* Conteneur des ic�nes hamburger */
.menu-icon-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.menu-icon {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Effet de brillance sur les barres */
.menu-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-menu:hover .menu-icon::after {
    opacity: 1;
    animation: barShine 1.2s ease-in-out infinite;
}

@keyframes barShine {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

.menu-icon:nth-child(1) {
    transform-origin: center left;
}

.menu-icon:nth-child(2) {
    transform-origin: center;
}

.menu-icon:nth-child(3) {
    transform-origin: center left;
}

/* Hover effect sur les barres */
.btn-menu:hover .menu-icon:nth-child(1) {
    transform: scaleX(1.1);
}

.btn-menu:hover .menu-icon:nth-child(2) {
    transform: scaleX(0.9);
}

.btn-menu:hover .menu-icon:nth-child(3) {
    transform: scaleX(1.1);
}

/* Animation du bouton menu au clic - transformation en X */
.btn-menu.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-menu.active .menu-icon:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.btn-menu.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Texte du bouton */
.menu-text {
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-menu:hover .menu-text {
    letter-spacing: 0.6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
                 0 0 15px rgba(255, 255, 255, 0.25);
}

.btn-menu.active .menu-text {
    letter-spacing: 0.7px;
}

/* Effet de pulsation pour attirer l'attention */
@keyframes menuPulse {
    0%, 100% {
        box-shadow: 0 4px 16px var(--premium-shadow),
                    0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 6px 24px var(--premium-glow),
                    0 4px 12px rgba(0, 0, 0, 0.2),
                    0 0 40px var(--premium-shadow);
    }
}

.btn-menu.pulse {
    animation: menuPulse 2s ease-in-out infinite;
}

/* Badge notification (optionnel pour plus tard) */
.btn-menu .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.5);
    animation: badgeBounce 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========== wwwroot/css/app/navigation-buttons.css ========== */
/* 
    NAVIGATION BUTTONS STYLES
    Styles pour les boutons de navigation du carousel et autres boutons similaires.
*/

#carouselCategories + .d-flex button.btn-sm,
.carousel ~ .d-flex button.btn-sm,
button[data-bs-target="#carouselCategories"],
.btn-outline-primary {
    min-width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--premium-primary);
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f8f9fa 50%,
        #f0f2f5 100%
    );
    color: var(--premium-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--premium-shadow),
                0 2px 4px rgba(0, 0, 0, 0.08);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Effet de brillance sur les boutons */
button[data-bs-target="#carouselCategories"]::before,
#carouselCategories + .d-flex button.btn-sm::before,
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    opacity: 0;
}

button[data-bs-target="#carouselCategories"]:hover::before,
#carouselCategories + .d-flex button.btn-sm:hover::before,
.btn-outline-primary:hover::before {
    width: 200%;
    height: 200%;
    opacity: 1;
}

button[data-bs-target="#carouselCategories"]:hover,
.carousel ~ .d-flex button.btn-sm:hover,
.btn-outline-primary:hover {
    background: linear-gradient(135deg, 
        var(--premium-primary) 0%, 
        var(--premium-secondary) 50%,
        var(--premium-gradient-middle-2) 100%
    );
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px var(--premium-shadow),
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

button[data-bs-target="#carouselCategories"]:active,
.btn-outline-primary:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px var(--premium-shadow);
}

button[data-bs-target="#carouselCategories"]:disabled,
button[data-bs-target="#carouselCategories"].disabled,
.btn-outline-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

button[data-bs-target="#carouselCategories"]:focus,
.btn-outline-primary:focus {
    outline: 3px solid var(--premium-glow);
    outline-offset: 2px;
    box-shadow: 0 0 0 0 0.2rem var(--premium-shadow);
}

/* ========== wwwroot/css/app/sidebar.css ========== */
/* 
    SIDEBAR STYLES
    Tous les styles relatifs � la sidebar, son overlay, les �l�ments de navigation, etc.
*/

/* ========================================
   SIDEBAR MODERNE - Design Premium
   ======================================== */

.sidebar {
    position: fixed;
    top: 3.5rem;
    left: -300px;
    width: 300px;
    height: calc(100vh - 3.5rem);
    background: linear-gradient(180deg, 
        var(--premium-gradient-middle-2) 0%, 
        var(--premium-gradient-middle-1) 25%,
        var(--premium-primary) 50%,
        var(--premium-secondary) 75%,
        var(--premium-gradient-middle-2) 100%
    );
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4),
                0 0 100px var(--premium-shadow);
    z-index: 1040;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

/* Effet de verre givr� sur la sidebar */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%231b6ec2" width="100" height="100"/><circle fill="%231861ac" opacity="0.1" cx="50" cy="50" r="40"/></svg>');
    opacity: 0.05;
    pointer-events: none;
}

/* Gradient anim� en arri�re-plan */
.sidebar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotateSidebarBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateSidebarBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sidebar.open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5),
                0 0 150px var(--premium-shadow),
                inset -1px 0 20px rgba(255, 255, 255, 0.1);
}

/* ========================================
   OVERLAY - Effet de Profondeur
   ======================================== */

.sidebar-overlay {
    position: fixed;
    top: 3.5rem;
    left: 0;
    width: 100%;
    height: calc(100% - 3.5rem);
    background: radial-gradient(
        circle at 20% 50%,
        var(--premium-shadow) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    z-index: 1039;
    animation: overlayFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px) saturate(1.2);
    }
}

/* Emp�cher le scroll du body quand le menu est ouvert */
body:has(.sidebar.open) {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* Emp�cher le scroll du body quand les r�sultats de recherche sont affich�s */
body:has(.header-search-overlay) {
    overflow: hidden;
}

/* Support pour iOS Safari */
@supports (-webkit-touch-callout: none) {
    body:has(.sidebar.open) {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100vh;
    }
    
    body:has(.header-search-overlay) {
        overflow: hidden;
    }
}

/* Masquer le header du NavMenu dans la sidebar */
.sidebar .top-row {
    display: none !important;
}

.sidebar .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.sidebar .navbar-brand:hover {
    color: #e3f2fd !important;
    transform: scale(1.02);
}

/* Zone scrollable dans la sidebar - prend toute la hauteur */
.sidebar .nav-scrollable {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    background: transparent;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling sur iOS */
    overscroll-behavior: contain; /* Emp�che le scroll en cascade sur mobile */
}

/* Bouton de fermeture X positionn� � l'ext�rieur du menu � droite */
.btn-close-sidebar {
    position: fixed;
    top: calc(3.5rem + 1.5rem);
    left: 320px; /* 300px (largeur sidebar) + 20px de marge */
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, 
        #ffffff 0%,
        #f8f9fa 100%
    );
    border: 2px solid var(--premium-shadow);
    color: var(--premium-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    z-index: 1041; /* Au-dessus de la sidebar */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideInFromLeft 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: none;
}

/* Afficher le bouton uniquement quand la sidebar est ouverte */
.sidebar.open ~ .btn-close-sidebar {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   MENU ITEMS - Design Moderne et �l�gant
   ======================================== */

.sidebar .nav-item {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin: 0.25rem 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

/* Ligne indicatrice � gauche */
.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0%;
    width: 4px;
    background: linear-gradient(180deg, 
        #ffffff 0%,
        #e3f2fd 50%,
        #ffffff 100%
    );
    border-radius: 0 2px 2px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Effet de brillance qui traverse le lien */
.sidebar .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.sidebar .nav-link:hover::after {
    left: 100%;
}

.sidebar .nav-link:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link:hover::before {
    height: 60%;
}

/* �tat actif avec un style premium */
.sidebar .nav-link.active {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 100%
    ) !important;
    border-color: rgba(255, 255, 255, 0.4);
    color: white !important;
    transform: translateX(8px);
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(255, 255, 255, 0.15),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link.active::before {
    height: 80%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

/* Animation d'entr�e pour les items */
.sidebar.open .nav-item {
    animation: slideInFromLeft 0.5s ease-out forwards;
    opacity: 0;
}

.sidebar.open .nav-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar.open .nav-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar.open .nav-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar.open .nav-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar.open .nav-item:nth-child(5) { animation-delay: 0.3s; }
.sidebar.open .nav-item:nth-child(6) { animation-delay: 0.35s; }
.sidebar.open .nav-item:nth-child(7) { animation-delay: 0.4s; }
.sidebar.open .nav-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   IC�NES DU MENU - Effets Avanc�s
   ======================================== */

.sidebar .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 10px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Effet de pulse sur l'ic�ne */
.sidebar .bi::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .nav-link:hover .bi {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.4),
                0 0 30px rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link:hover .bi::before {
    opacity: 1;
    animation: iconPulse 1.5s ease-in-out infinite;
}

.sidebar .nav-link.active .bi {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 100%
    );
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.5),
                0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Titres des sections - Style Premium */
.sidebar .nav-link-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 0 4px 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link-text::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
}

.sidebar .nav-link-text:hover::before {
    left: 100%;
}

/* Bouton logout dans la sidebar */
.sidebar .btn-logout {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    position: relative;
}

.sidebar .btn-logout:hover {
    background: rgba(220, 53, 69, 0.3);
    color: white !important;
    transform: translateX(4px);
}

/* ========================================
   S�PARATEURS ET SECTIONS
   ======================================== */

.sidebar .menu-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
    margin: 1.5rem 1.5rem;
    opacity: 0.8;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar .menu-separator::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    filter: blur(2px);
}

/* ========================================
   SCROLLBAR PERSONNALIS�E - Design �l�gant
   ======================================== */

.sidebar .nav-scrollable::-webkit-scrollbar {
    width: 8px;
}

.sidebar .nav-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.sidebar .nav-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    );
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.sidebar .nav-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sidebar .nav-scrollable::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

/* Masquer le bouton toggle du NavMenu car on utilise notre propre bouton */
.sidebar .navbar-toggler,
.sidebar .navbar-toggler-label,
.sidebar .navbar-overlay {
    display: none !important;
}

/* ========================================
   MENU CAT�GORIES - Design Premium dans Sidebar
   ======================================== */

/* Conteneur des cat�gories */
.sidebar .list-group {
    background: transparent;
}

/* Items de cat�gories principales */
.sidebar .list-group-item {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 0.55rem 0.75rem !important;
    margin: 0.25rem 0.5rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance sur les cat�gories */
.sidebar .list-group-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.sidebar .list-group-item:hover::before {
    left: 100%;
}

.sidebar .list-group-item:hover {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.12) 100%
    );
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(255, 255, 255, 0.1);
}

/* Cat�gorie active avec un style �l�gant */
.sidebar .list-group-item.active {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 193, 7, 0.25) 50%,
        rgba(255, 235, 59, 0.2) 100%
    ) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    color: #fff !important;
    transform: translateX(6px);
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.3),
                0 0 40px rgba(255, 215, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* IMPORTANT: Les badges/pastilles de couleur des cat�gories et sous-cat�gories */
/* Ces styles garantissent que les pastilles rondes avec ic�nes s'affichent correctement */
.sidebar .category-icon-badge,
.sidebar .sub-category-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Chevron pour sous-cat�gories */
.sidebar .list-group-item .bi-chevron-down,
.sidebar .list-group-item .bi-chevron-right {
    transition: all 0.3s ease;
    opacity: 0.8;
    font-size: 0.75rem;
}

.sidebar .list-group-item:hover .bi-chevron-down,
.sidebar .list-group-item:hover .bi-chevron-right {
    opacity: 1;
    transform: scale(1.2);
}

/* Sous-cat�gories avec un style distinct */
.sidebar .list-group-item.small {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-left: 1.75rem !important;
    margin-right: 0.5rem !important;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem;
    position: relative;
}

/* Ligne de connexion pour les sous-cat�gories */
.sidebar .list-group-item.small::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.sidebar .list-group-item.small:hover {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    transform: translateX(4px) scale(1.01);
}

.sidebar .list-group-item.small.active {
    background: linear-gradient(135deg,
        rgba(100, 200, 255, 0.25) 0%,
        rgba(80, 180, 235, 0.2) 100%
    ) !important;
    border-color: rgba(100, 200, 255, 0.5) !important;
    box-shadow: 0 4px 16px rgba(100, 200, 255, 0.3),
                0 0 25px rgba(100, 200, 255, 0.15);
}

/* Animation d'ouverture des sous-cat�gories */
.sidebar .ms-4 {
    animation: slideDownCategories 0.4s ease-out;
}

@keyframes slideDownCategories {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Conteneur de sous-cat�gories */
.sidebar .categories-submenu,
.sidebar .ms-4 {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-left: 3px solid rgba(255, 215, 0, 0.4);
    border-radius: 0 8px 8px 0;
    margin-left: 1rem;
    padding: 0.5rem 0;
    box-shadow: inset 2px 0 10px rgba(0, 0, 0, 0.2);
}

/* ========== wwwroot/css/app/responsive.css ========== */
/* 
    RESPONSIVE STYLES
    Contient les media queries et les ajustements pour les diff�rentes tailles d'�cran.
*/

/* Responsive design pour les �crans plus petits */
@media (max-width: 767.98px) {
    main {
        margin-left: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .content {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
        width: calc(100% - 2rem);
        max-width: 100%;
        overflow-x: hidden;
    }

    .top-row {
        padding: 1rem !important;
        width: 100%;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    /* Premi�re ligne: Logo Goodies Impact - 100% de largeur */
    .top-row .header-logo-group {
        width: 100% !important;
        flex-basis: 100% !important;
        justify-content: center !important;
        order: 1 !important;
        margin-bottom: 0.25rem;
    }

    /* Deuxi�me ligne: Boutons de navigation - 100% de largeur */
    .top-row .header-actions-group {
        width: 100% !important;
        flex-basis: 100% !important;
        justify-content: center !important;
        order: 2 !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 0.25rem;
    }

    /* Troisi�me ligne: Cat�gories (30%) + Recherche (70%) sur la M�ME ligne */
    .top-row .categories-button-wrapper {
        width: auto !important;
        flex: 0 0 auto !important;
        flex-basis: auto !important;
        max-width: 30% !important;
        order: 3 !important;
        margin: 0 0.5rem 0 0 !important;
        display: inline-flex !important;
    }

    .top-row .header-search-container {
        width: auto !important;
        flex: 1 1 auto !important;
        flex-basis: 0 !important;
        min-width: 0 !important;
        max-width: calc(70% - 0.5rem) !important;
        order: 3 !important;
        margin: 0 !important;
        display: inline-flex !important;
    }

    /* Ajuster le logo pour mobile */
    .brand-title {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    /* Ajuster la barre de recherche */
    .header-search-form {
        width: 100%;
    }
    
    .header-search-input {
        width: 100%;
    }
}

@media (min-width: 992px) {
    main.menu-open {
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE - Optimisations Mobile pour Sidebar
   ======================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }

    .sidebar .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .sidebar .bi {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 0.875rem;
    }

    .sidebar .nav-item {
        margin-bottom: 0.375rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }

    .sidebar .nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    .sidebar .bi {
        width: 2rem;
        height: 2rem;
        margin-right: 0.75rem;
        border-radius: 8px;
    }

    .sidebar .nav-link-text {
        font-size: 0.65rem;
        padding: 1.25rem 1.25rem 0.625rem 1.25rem;
    }
}

/* Animation au touch sur mobile */
@media (hover: none) and (pointer: coarse) {
    .sidebar .nav-link:active {
        transform: translateX(8px) scale(0.98);
    }
}

/* ========================================
   RESPONSIVE - Optimisations Mobile pour Menu Button
   ======================================== */

@media (max-width: 768px) {
    .brand-title {
        font-size: 1.25rem;
    }

    .btn-menu {
        padding: 0.4rem 0.7rem;
        min-height: 34px;
        gap: 0.35rem;
    }

    .menu-icon-wrapper {
        width: 22px;
        height: 16px;
    }

    .menu-icon {
        height: 2.5px;
    }

    .menu-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 1.1rem;
    }

    .btn-menu {
        padding: 0.35rem 0.6rem;
        min-height: 32px;
        border-radius: 0.5rem;
        gap: 0.3rem;
    }

    .menu-icon-wrapper {
        width: 20px;
        height: 14px;
    }

    .menu-icon {
        height: 2px;
    }

    .menu-text {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }

    .btn-menu:hover .menu-text {
        letter-spacing: 0.4px;
    }
}

/* Version compacte sans texte (optionnel) */
.btn-menu.compact {
    padding: 0.5rem;
    min-width: 38px;
}

.btn-menu.compact .menu-text {
    display: none;
}

@media (max-width: 400px) {
    .btn-menu .menu-text {
        display: none;
    }
    
    .btn-menu {
        padding: 0.5rem;
        min-width: 36px;
        justify-content: center;
    }
}

