﻿
/* ========== wwwroot/css/categories-drag-drop.css ========== */
/* Styles pour le drag & drop des cat�gories */

.category-item {
    cursor: move;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.category-item.drag-over {
    border-top: 3px solid var(--premium-primary) !important;
    margin-top: 3px;
}

.drag-handle {
    cursor: grab;
    color: #6c757d;
    padding: 0 0.5rem;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle:hover {
    color: var(--premium-primary);
}

/* Animation lors du d�placement */
@keyframes dragPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.category-item.dragging {
    animation: dragPulse 0.5s ease-in-out infinite;
}

/* ========== wwwroot/css/categories-horizontal-menu.css ========== */
/* ========================================
   MENU HORIZONTAL DES CAT�GORIES
   ======================================== */

/* Conteneur principal */
.categories-menu-container {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--premium-shadow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 4rem;
    z-index: 1030;
    padding: 0.75rem 1.5rem;
    transition: box-shadow 0.3s ease;
}

.categories-menu-container.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.categories-horizontal-menu {
    display: flex;
  justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   OVERLAY POUR FERMER LES MENUS
   ======================================== */

.categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fond semi-transparent comme ThemeSelector */
    backdrop-filter: blur(2px); /* L�ger flou pour l'effet */
    z-index: 1031; /* Au-dessus du menu container (1030) */
    cursor: default;
    animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   BOUTON DE CAT�GORIE
   ======================================== */

.category-menu-item {
    position: relative;
    flex: 1;
    max-width: 220px;
    min-width: 140px;
}

.category-menu-btn {
    width: 100%;
    height: 100%;
    min-height: 70px;
  padding: 0.625rem 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--premium-shadow);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.category-menu-btn:hover {
    transform: translateY(-3px);
    border-color: var(--premium-shadow);
    box-shadow: 0 6px 16px var(--premium-shadow);
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.category-menu-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

/* ========================================
   IC�NE
   ======================================== */

.category-menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.category-menu-icon i {
    font-size: 1.25rem;
    color: white;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.category-menu-btn:hover .category-menu-icon {
    transform: scale(1.08);
}

.category-menu-btn.active .category-menu-icon {
    transform: scale(1.05);
}

/* ========================================
   TEXTE
   ======================================== */

.category-menu-name {
 font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
    max-width: 100%;
  word-wrap: break-word;
}

.category-menu-btn:hover .category-menu-name {
    color: var(--premium-primary);
}

.category-menu-btn.active .category-menu-name {
    color: #d4af37;
    font-weight: 700;
}

/* ========================================
   SUBMENU
   ======================================== */

.category-submenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid var(--premium-shadow);
    border-radius: 0.625rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1032; /* Au-dessus de l'overlay */
    overflow: hidden;
    pointer-events: none;
}

/* Affichage avec la classe menu-hover uniquement */
.category-menu-item.menu-hover .category-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Fl�che */
.category-submenu::before {
    content: '';
  position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ffffff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

/* ========================================
   SOUS-CAT�GORIES
   ======================================== */

.subcategories-list {
    list-style: none;
    padding: 0.375rem;
    margin: 0;
    max-height: 360px;
  overflow-y: auto;
}

.subcategories-list::-webkit-scrollbar {
    width: 5px;
}

.subcategories-list::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.subcategories-list::-webkit-scrollbar-thumb {
    background: var(--premium-shadow);
    border-radius: 3px;
}

.subcategories-list::-webkit-scrollbar-thumb:hover {
    background: var(--premium-glow);
}

/* ========================================
   ITEM SOUS-CAT�GORIE
======================================== */

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    margin-bottom: 0.25rem;
    position: relative;
}

.subcategory-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
  transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--premium-primary);
    transition: height 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.subcategory-item:hover {
    background: var(--premium-shadow);
    transform: translateX(4px);
}

.subcategory-item:hover::before {
    height: 65%;
}

.subcategory-item.active {
    background: rgba(27, 110, 194, 0.12);
    font-weight: 600;
}

.subcategory-item.active::before {
    height: 65%;
}

/* ========================================
   IC�NE SOUS-CAT�GORIE
   ======================================== */

.subcategory-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.subcategory-icon i {
    font-size: 0.8rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.subcategory-item:hover .subcategory-icon {
    transform: scale(1.08);
}

/* ========================================
TEXTE SOUS-CAT�GORIE
   ======================================== */

.subcategory-name {
  flex: 1;
    font-size: 0.85rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.subcategory-item:hover .subcategory-name {
 color: var(--premium-primary);
    font-weight: 500;
}

.subcategory-item.active .subcategory-name {
    color: var(--premium-primary);
  font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
  .categories-menu-container {
   padding: 0.75rem 1rem;
    }

    .categories-horizontal-menu {
        flex-wrap: wrap;
      gap: 0.625rem;
    }
  
    .category-menu-item {
        flex: 1 1 calc(33.333% - 0.625rem);
    max-width: none;
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .category-menu-item {
        flex: 1 1 calc(50% - 0.625rem);
    }
}

@media (max-width: 768px) {
    .categories-menu-container {
        padding: 0.625rem 0.875rem;
    }

    .categories-horizontal-menu {
     gap: 0.5rem;
    }
 
    .category-menu-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 110px;
    }
    
    .category-menu-btn {
  min-height: 65px;
  padding: 0.5rem 0.625rem;
    }
    
    .category-menu-icon {
        width: 34px;
        height: 34px;
 }
    
    .category-menu-icon i {
    font-size: 1.1rem;
    }
 
    .category-menu-name {
      font-size: 0.8rem;
    }
    
    /* Bottom sheet mobile */
    .category-submenu {
        position: fixed;
        top: auto;
      left: 0;
        right: 0;
bottom: 0;
        max-width: 100%;
        border-radius: 1rem 1rem 0 0;
        max-height: 65vh;
        transform: translateY(100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
 }
  
    .category-submenu::before {
        display: none;
    }
    
    /* Poign�e de glissement */
    .category-submenu::after {
      content: '';
        position: absolute;
     top: 8px;
        left: 50%;
        transform: translateX(-50%);
  width: 36px;
        height: 4px;
     background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
 
    .subcategories-list {
        max-height: calc(65vh - 3.5rem);
        padding: 0.875rem;
    }

    .category-menu-item.menu-open .category-submenu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 576px) {
    .categories-menu-container {
        padding: 0.5rem 0.625rem;
    }

    .category-menu-item {
  flex: 1 1 100%;
     max-width: 100%;
    }
    
    .category-menu-btn {
        min-height: 62px;
        padding: 0.5rem;
    }
    
    .category-menu-icon {
        width: 32px;
        height: 32px;
    }
    
    .category-menu-icon i {
        font-size: 1rem;
    }
    
    .category-menu-name {
     font-size: 0.75rem;
 }
}

/* ========================================
   ACCESSIBILIT�
 ======================================== */

.category-menu-btn:focus,
.subcategory-item:focus {
    outline: 2px solid var(--premium-glow);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   GPU-ACCELERATED BACKGROUNDS
   Fix pour animations non compos�es
   ======================================== */

/* Ic�nes avec background dynamique via pseudo-�l�ment */
.category-menu-icon.icon-with-bg,
.subcategory-icon.icon-with-bg {
    position: relative;
    /* Le background sera appliqu� via ::before pour GPU-acceleration */
}

.category-menu-icon.icon-with-bg::before,
.subcategory-icon.icon-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--icon-bg-color, #6c757d);
    border-radius: inherit;
    z-index: -1;
    /* ? GPU-acceleration avec transform et will-change */
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Effet hover optimis� avec transform au lieu de background-color */
.category-menu-btn:hover .category-menu-icon.icon-with-bg::before,
.subcategory-item:hover .subcategory-icon.icon-with-bg::before {
    opacity: 0.9;
    transform: scale(1.05) translateZ(0);
}

/* Fallback pour les navigateurs ne supportant pas les pseudo-�l�ments dynamiques */
@supports not (background: var(--icon-bg-color)) {
    .category-menu-icon.icon-with-bg,
    .subcategory-icon.icon-with-bg {
        background: #6c757d;
    }
}


/* ========== wwwroot/css/categories-dropdown.css ========== */
/* ===== OVERLAY - Harmonis� avec SearchChatbox et ThemeSelector ===== */
.categories-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    cursor: pointer;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Wrapper - Harmonis� ===== */
.categories-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* ===== Button - Harmonis� avec ThemeSelector et SearchChatbox ===== */
.btn-categories {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--premium-gradient-start, #667eea) 0%, var(--premium-gradient-end, #764ba2) 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 4px 16px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    min-height: 36px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-categories::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulseGlowBtn 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-categories:hover::before {
    opacity: 1;
}

@keyframes pulseGlowBtn {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.btn-categories::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-categories:hover::after {
    left: 200%;
}

.btn-categories:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.25) inset;
}

.btn-categories:active {
    transform: scale(1.02) translateY(-1px);
}

.btn-categories.active {
    background: linear-gradient(135deg, var(--premium-gradient-end, #764ba2) 0%, var(--premium-gradient-start, #667eea) 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.25) inset,
                inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-categories i:first-child {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-categories span:not(.chevron-icon) {
    position: relative;
    z-index: 1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chevron-icon {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.btn-categories.active .chevron-icon {
    transform: rotate(180deg);
}

/* ===== Dropdown Menu - Harmonis� avec glassmorphism ===== */
.categories-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    width: 950px;
    max-width: calc(100vw - 2rem);
    max-height: 70vh;
    z-index: 9999;
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    animation: slideDownPanel 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownPanel {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== List Column - Harmonis� ===== */
.categories-list {
    background: linear-gradient(to bottom, var(--theme-primary-rgba-005, rgba(102, 126, 234, 0.05)) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-right: 1px solid var(--theme-primary-rgba-02, rgba(102, 126, 234, 0.2));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.categories-list-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 1px solid var(--theme-primary-rgba-02, rgba(102, 126, 234, 0.2));
    flex-shrink: 0;
    font-size: 1rem;
    position: relative;
    background: linear-gradient(135deg, var(--theme-primary-rgba-01, rgba(102, 126, 234, 0.1)) 0%, var(--theme-secondary-rgba-01, rgba(118, 75, 162, 0.1)) 100%);
}

.categories-list-header i {
    font-size: 1.2rem;
    color: var(--premium-gradient-start, #667eea);
}

.categories-list-items {
    overflow-y: auto;
    flex: 1;
    padding: 0.75rem;
}

.categories-list-items::-webkit-scrollbar {
    width: 6px;
}

.categories-list-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.categories-list-items::-webkit-scrollbar-thumb {
    background: var(--theme-primary-rgba-03, rgba(102, 126, 234, 0.3));
    border-radius: 3px;
    transition: background 0.3s;
}

.categories-list-items::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary-rgba-05, rgba(102, 126, 234, 0.5));
}

.btn-close-mobile {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.btn-close-mobile:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-50%) scale(1.1) rotate(90deg);
}

/* ===== List Item - Harmonis� ===== */
.categories-list-item-wrapper {
    width: 100%;
}

.categories-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #495057;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    text-align: left;
    user-select: none;
    margin-bottom: 0.25rem;
    position: relative;
}

.categories-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--premium-gradient-start, #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.categories-list-item::after {
    content: '\2192'; /* Unicode pour la fl�che ? */
    position: absolute;
    right: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--premium-gradient-start, #667eea);
    font-weight: bold;
    font-size: 1.2rem;
}

.categories-list-item:hover {
    background: linear-gradient(90deg, var(--theme-primary-rgba-01, rgba(102, 126, 234, 0.1)) 0%, transparent 100%);
    color: var(--premium-gradient-start, #667eea);
    transform: translateX(4px);
    padding-right: 2.5rem;
}

.categories-list-item:hover::before {
    opacity: 1;
}

.categories-list-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.categories-list-item:hover .bi-chevron-right {
    opacity: 0;
}

.categories-list-item.active {
    background: linear-gradient(90deg, var(--theme-primary-rgba-015, rgba(102, 126, 234, 0.15)) 0%, var(--theme-primary-rgba-005, rgba(102, 126, 234, 0.05)) 100%);
    color: var(--premium-gradient-start, #667eea);
    font-weight: 600;
}

.categories-list-item.active::before {
    opacity: 1;
}

.categories-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.categories-list-icon i {
    color: white;
    font-size: 1.1rem;
}

.categories-list-item:hover .categories-list-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.categories-list-item.active .categories-list-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--theme-primary-rgba-04, rgba(102, 126, 234, 0.4));
}

.categories-list-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.categories-list-item i.bi-chevron-right {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.categories-list-item:hover i.bi-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

/* ===== Details Column - Harmonis� ===== */
.categories-details {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.categories-details::-webkit-scrollbar {
    width: 6px;
}

.categories-details::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.categories-details::-webkit-scrollbar-thumb {
    background: var(--theme-primary-rgba-03, rgba(102, 126, 234, 0.3));
    border-radius: 3px;
    transition: background 0.3s;
}

.categories-details::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary-rgba-05, rgba(102, 126, 234, 0.5));
}

.details-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-primary-rgba-02, rgba(102, 126, 234, 0.2));
}

.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-icon i {
    color: white;
    font-size: 1.5rem;
}

.details-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
}

.details-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #495057;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    transform: translateY(-6px);
    border-color: var(--premium-gradient-start, #667eea);
    box-shadow: 0 8px 24px var(--theme-primary-rgba-03, rgba(102, 126, 234, 0.3));
}

.detail-item-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 2.5rem;
}

.detail-item-image i {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item:hover .detail-item-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.detail-item-label {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: 1.3;
    font-weight: 600;
}

.details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #6c757d;
    min-height: 250px;
}

.details-empty i {
    font-size: 3rem;
    opacity: 0.3;
    color: var(--premium-gradient-start, #667eea);
}

.details-empty p {
    margin: 0;
    font-size: 1rem;
}

/* ===== Responsive: Large Desktop ===== */
@media (max-width: 1399.98px) {
    .categories-dropdown-menu {
        width: 900px;
    }
}

/* ===== Responsive: Desktop ===== */
@media (max-width: 1199.98px) {
    .categories-dropdown-menu {
        width: 850px;
        grid-template-columns: 240px 1fr;
    }

    .categories-list-header {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .categories-list-items {
        padding: 0.5rem;
    }

    .categories-list-item {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }

    .categories-list-icon {
        width: 32px;
        height: 32px;
    }
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 991.98px) {
    .btn-categories span:not(.chevron-icon) {
        display: none;
    }

    .btn-categories {
        padding: 0.5rem 0.75rem;
    }

    .categories-dropdown-menu {
        right: 0;
        left: auto;
        width: 85vw;
        max-width: 600px;
        max-height: 75vh;
        grid-template-columns: 180px 1fr;
        border-radius: 16px;
    }

    .categories-list-header {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .categories-list-items {
        padding: 0.5rem;
    }

    .categories-list-item {
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
        gap: 0.6rem;
    }

    .categories-list-icon {
        width: 30px;
        height: 30px;
    }
}

/* ===== Responsive: Mobile - Harmonis� ===== */
@media (max-width: 767.98px) {
    .categories-dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        grid-template-columns: 40% 60%;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
        border-radius: 0;
        animation: fadeIn 0.3s ease;
    }

    .categories-list {
        border-right: 2px solid var(--theme-primary-rgba-02, rgba(102, 126, 234, 0.2));
        max-height: 100vh;
    }

    .categories-list-header {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .categories-list-header > span {
        flex: 1;
        text-align: center;
    }

    .categories-list-header > i:first-child {
        display: none;
    }

    .btn-close-mobile {
        display: flex !important;
        right: 0.5rem;
    }

    .categories-list-items {
        padding: 0;
        max-height: calc(100vh - 60px);
    }

    .categories-list-item {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .categories-list-item::before {
        width: 4px;
        border-radius: 0;
    }

    .categories-list-item::after {
        display: none;
    }

    .categories-list-item:hover,
    .categories-list-item.active {
        background: var(--theme-primary-rgba-01, rgba(102, 126, 234, 0.1));
        transform: none;
        border-left: 4px solid var(--premium-gradient-start, #667eea);
        box-shadow: inset 0 0 8px var(--theme-primary-rgba-01, rgba(102, 126, 234, 0.1));
        padding-right: 0.75rem;
    }

    .categories-list-icon {
        display: none;
    }

    .categories-list-label {
        white-space: normal;
        word-wrap: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .categories-list-item i.bi-chevron-right {
        display: none;
    }

    .categories-details {
        padding: 1rem;
    }

    .details-header {
        display: none;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .detail-item {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .detail-item-image {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .detail-item-label {
        font-size: 0.75rem;
        min-height: 2.6em;
    }
}

/* ===== Tr�s petit mobile ===== */
@media (max-width: 400px) {
    .categories-dropdown-menu {
        grid-template-columns: 35% 65%;
    }

    .categories-list-item {
        padding: 0.85rem 0.5rem;
        font-size: 0.75rem;
    }

    .detail-item-image {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .detail-item-label {
        font-size: 0.7rem;
    }
}

/* ========== wwwroot/css/search-chatbox.css ========== */
/* ===== Bouton flottant - Harmonis� avec ThemeSelector ===== */
.search-chatbox-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--premium-gradient-start, #667eea) 0%, var(--premium-gradient-end, #764ba2) 100%);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    overflow: visible; /* Changed from hidden to visible pour permettre au badge de d�border */
}

.search-chatbox-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulseGlowBtn 2s ease-in-out infinite;
    border-radius: 50%;
    overflow: hidden;
}

@keyframes pulseGlowBtn {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.search-chatbox-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.search-chatbox-button:active {
    transform: scale(0.95);
}

.search-chatbox-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    z-index: 1;
    pointer-events: none; /* Le badge ne doit pas intercepter les clics */
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* ===== Overlay - Harmonis� avec ThemeSelector ===== */
.search-chatbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Fen�tre de recherche avec glassmorphism - Harmonis� ===== */
.search-chatbox-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 420px;
    max-width: calc(100vw - 4rem);
    height: 650px;
    max-height: calc(100vh - 10rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: slideUpPanel 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes slideUpPanel {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Header - Harmonis� avec ThemeSelector ===== */
.search-chatbox-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #1a1a2e;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.search-chatbox-header i:first-child {
    color: var(--premium-gradient-start, #667eea);
    font-size: 1.5rem;
}

.search-chatbox-header h6 {
    font-weight: 700;
    color: #1a1a2e;
}

.search-chatbox-header .btn-light {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--premium-gradient-start, #667eea);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-chatbox-header .btn-light:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

/* ===== Bouton de fermeture - Harmonis� avec ThemeSelector ===== */
.btn-close-chatbox {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    border: none;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-close-chatbox:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

/* ===== Barre de progression - Utilise les couleurs du th�me ===== */
.progress-bar-container {
    height: 4px;
    background: rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--premium-gradient-start, #667eea), var(--premium-accent, #f093fb), var(--premium-gradient-start, #667eea));
    background-size: 200% 100%;
    animation: progressGradient 2s ease infinite;
    transition: width 0.3s ease;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Contenu avec scroll harmonis� ===== */
.search-chatbox-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    scroll-behavior: smooth;
}

.search-chatbox-content::-webkit-scrollbar {
    width: 6px;
}

.search-chatbox-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.search-chatbox-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
    transition: background 0.3s;
}

.search-chatbox-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Messages de chat */
.chat-messages-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--premium-gradient-start, #667eea) 0%, var(--premium-gradient-end, #764ba2) 100%);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--premium-primary, #2563eb) 0%, var(--premium-secondary, #7c3aed) 100%);
    color: white;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, var(--premium-primary, #2563eb) 0%, var(--premium-secondary, #7c3aed) 100%);
    color: white;
    border: none;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

/* R�ponses rapides - Harmonis� avec le th�me */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply-btn {
    background: white;
    border: 2px solid var(--premium-gradient-start, #667eea);
    color: var(--premium-gradient-start, #667eea);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.quick-reply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--premium-gradient-start, #667eea);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    opacity: 0.1;
}

.quick-reply-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quick-reply-btn:hover {
    background: var(--premium-gradient-start, #667eea);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    border-color: var(--premium-gradient-start, #667eea);
}

.quick-reply-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.quick-reply-btn.btn-primary {
    background: linear-gradient(135deg, var(--premium-gradient-start, #667eea) 0%, var(--premium-gradient-end, #764ba2) 100%);
    color: white;
    border: none;
}

.quick-reply-btn.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* Zone de saisie */
.chat-input-zone {
    padding: 12px 0;
}

.chat-input-zone .form-control {
    border-radius: 20px;
    border: 2px solid var(--premium-gradient-start, #667eea);
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.chat-input-zone .form-control:focus {
    border-color: var(--premium-gradient-start, #667eea);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.chat-input-zone .btn {
    border-radius: 20px;
    background: linear-gradient(135deg, var(--premium-gradient-start, #667eea) 0%, var(--premium-gradient-end, #764ba2) 100%);
    border: none;
    transition: all 0.3s ease;
}

.chat-input-zone .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Suggestions de produits - Harmonis� */
.product-suggestion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-suggestion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-suggestion:hover::before {
    opacity: 1;
}

.product-suggestion:hover {
    border-color: var(--premium-gradient-start, #667eea);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Produit recommand� */
.product-suggestion.recommended {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.product-suggestion.recommended:hover {
    border-color: #ffc107;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

/* Badge de recommandation */
.recommendation-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Badge de match */
.match-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.match-badge.excellent {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.match-badge.good {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.product-suggestion-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.product-suggestion:hover .product-suggestion-image {
    transform: scale(1.05);
}

.product-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-suggestion:hover .product-suggestion-image img {
    transform: scale(1.1);
}

/* Tags de produit */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: var(--premium-gradient-start, #667eea);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.product-suggestion-content {
    flex: 1;
    min-width: 0;
}

.product-suggestion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-suggestion-action {
    color: var(--premium-gradient-start, #667eea);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.product-suggestion:hover .product-suggestion-action {
    transform: translateX(4px);
}

/* Notation */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    margin-top: 4px;
}

.product-rating .stars {
    display: flex;
    gap: 1px;
}

.product-rating .bi-star-fill,
.product-rating .bi-star-half {
    font-size: 0.8rem;
}

/* Indicateur de frappe */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--premium-gradient-start, #667eea);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Grille de cat�gories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-card-mini {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.category-card-mini:hover {
    border-color: var(--premium-gradient-start, #667eea);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.category-card-mini i {
    font-size: 1.5rem;
    color: var(--premium-gradient-start, #667eea);
}

.category-card-mini span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Animation d'apparition des r�sultats */
.product-suggestion {
    animation: product-appear 0.4s ease-out backwards;
}

.product-suggestion:nth-child(1) { animation-delay: 0.1s; }
.product-suggestion:nth-child(2) { animation-delay: 0.2s; }
.product-suggestion:nth-child(3) { animation-delay: 0.3s; }
.product-suggestion:nth-child(4) { animation-delay: 0.4s; }
.product-suggestion:nth-child(5) { animation-delay: 0.5s; }

@keyframes product-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Harmonis� avec ThemeSelector */
@media (max-width: 768px) {
    .search-chatbox-button {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .search-chatbox-window {
        bottom: 4.5rem;
        right: 1rem;
        width: calc(100vw - 2rem);
        height: calc(100vh - 8rem);
        max-height: calc(100vh - 8rem);
    }

    .search-chatbox-header {
        padding: 1rem;
    }

    .search-chatbox-content {
        padding: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .product-suggestion {
        padding: 12px;
    }

    .product-suggestion-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .search-chatbox-header h6 {
        font-size: 0.95rem;
    }

    .search-chatbox-header small {
        font-size: 0.7rem;
    }

    .product-suggestion-title {
        font-size: 0.875rem;
    }

    .quick-reply-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

/* ========== wwwroot/css/header-improvements.css ========== */
/* ========================================
AM�LIORATIONS DU HEADER - Design Harmonieux
   ======================================== */

/* Top-row am�lior� avec meilleur espacement */
.top-row {
    padding: 0 2rem !important;
    gap: 1rem !important;
}

/* ========================================
   PANIER WIDGET - Design Premium Visible
   ======================================== */

.panier-widget {
    position: relative;
}

.panier-widget .btn {
    min-width: 60px;
    height: 48px;
    background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 0.75rem;
    color: white !important;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
 inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Effet de brillance */
.panier-widget .btn::before {
    content: '';
position: absolute;
    top: -50%;
    left: -50%;
 width: 200%;
    height: 200%;
    background: radial-gradient(
     circle at center,
     rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    animation: rotatePanierBg 6s linear infinite;
 opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.panier-widget .btn:hover::before {
 opacity: 1;
}

@keyframes rotatePanierBg {
    from {
  transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hover state */
.panier-widget .btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.35) 0%,
  rgba(255, 255, 255, 0.25) 100%
    );
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
     0 0 30px rgba(255, 255, 255, 0.3);
}

/* Ic�ne du panier */
.panier-widget .bi-cart3 {
    font-size: 1.75rem !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.panier-widget .btn:hover .bi-cart3 {
  transform: scale(1.15);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

/* Badge premium avec animation */
.panier-widget .badge {
    position: absolute !important;
    top: -8px !important;
  right: 2px !important;
    transform: none !important;
    min-width: 26px !important;
    height: 26px !important;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border-radius: 50% !important;
  display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border: 3px solid rgba(15, 52, 96, 0.8) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6),
         0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    animation: badgePulse 2s ease-in-out infinite !important;
 z-index: 10 !important;
    pointer-events: none;
}

@keyframes badgePulse {
    0%, 100% {
   transform: scale(1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6),
     0 2px 6px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
  50% {
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.8),
    0 3px 10px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(220, 53, 69, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Tooltip r�sum� panier am�lior� */
.panier-resume-tooltip {
  position: absolute;
  top: calc(100% + 0.75rem);
    right: 0;
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
border: 2px solid var(--premium-shadow);
    border-radius: 1rem;
 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
       0 8px 20px var(--premium-shadow),
 inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1050;
    min-width: 280px;
  animation: slideDownPanier 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

@keyframes slideDownPanier {
    from {
        opacity: 0;
   transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
   transform: translateY(0) scale(1);
}
}

/* Fl�che du tooltip */
.panier-resume-tooltip::before {
    content: '';
  position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
 height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--premium-shadow);
}

.panier-resume-tooltip::after {
    content: '';
 position: absolute;
    top: -8px;
    right: 21px;
    width: 0;
    height: 0;
 border-left: 9px solid transparent;
    border-right: 9px solid transparent;
 border-bottom: 9px solid #ffffff;
}

.panier-resume-tooltip h6 {
    color: #2c3e50;
    font-weight: 700;
 border-bottom: 2px solid var(--premium-shadow);
  padding-bottom: 0.75rem;
}

.panier-resume-tooltip .btn {
    background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-secondary) 100%) !important;
    border: none !important;
  color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--premium-shadow);
}

.panier-resume-tooltip .btn:hover {
 background: linear-gradient(135deg, var(--premium-secondary) 0%, #16537e 100%) !important;
    transform: translateY(-2px);
box-shadow: 0 6px 20px var(--premium-shadow);
}

/* ========================================
   BARRE DE RECHERCHE - Design Premium Centr�e avec CLS Prevention
   ======================================== */

.header-search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 1rem;
    position: relative;
    z-index: 1070;
    min-height: 48px; /* CLS Prevention - Fixed height */
    height: 48px; /* CLS Prevention - Fixed height */
    contain: layout style;
}

.header-search-form {
    position: relative;
    width: 100%;
    z-index: 1075;
    height: 48px; /* CLS Prevention - Explicit height */
}

.header-search-input {
    width: 100%;
    height: 48px !important; /* CLS Prevention - Force fixed height */
    min-height: 48px;
    padding: 0.75rem 3rem 0.75rem 3rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.header-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
}

.header-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px !important; /* CLS Prevention - Fixed width */
    height: 38px !important; /* CLS Prevention - Fixed height */
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Autocomplete dropdown with CLS prevention */
.header-search-autocomplete {
    position: absolute;
    top: 52px; /* CLS Prevention - Fixed position below input */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--premium-shadow);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
                0 8px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1065;
    backdrop-filter: blur(10px);
    animation: slideDownSearch 0.3s ease;
}

@keyframes slideDownSearch {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-search-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-search-autocomplete-item:hover {
    background: var(--premium-shadow);
}

.header-search-autocomplete-item i {
    color: var(--premium-primary);
    font-size: 1.25rem;
}

/* ========================================
   NAV ITEMS - Harmonisation du Design (IC�NES SEULES)
   ======================================== */

/* R�duire l'espace entre les �l�ments de navigation */
.top-row .header-actions-group {
    gap: 0.40rem !important;
}

.top-row .nav-item {
    display: flex;
    align-items: center;
}

.top-row .nav-link {
    min-width: 48px;
    height: 48px;
  padding: 0.75rem !important;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
  overflow: hidden;
}

/* Effet de brillance sur les liens */
.top-row .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
  );
    transition: left 0.6s ease;
}

.top-row .nav-link:hover::before {
    left: 100%;
}

.top-row .nav-link:hover {
color: white !important;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Ic�nes harmonis�es et agrandies - Bootstrap Icons standards */
.top-row .nav-link i.bi {
    font-size: 1.5rem !important;
    transition: all 0.3s ease;
  position: relative;
    z-index: 1;
}

.top-row .nav-link:hover i.bi {
    transform: scale(1.2);
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

/* ========================================
 ACCOUNT MENU - Design Harmonieux avec ic�ne corrig�e
   ======================================== */

.top-row .account-menu-btn {
    min-width: 48px !important;
    height: 48px !important;
    padding: 0.75rem !important;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
  display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.top-row .account-menu-btn::before {
content: '';
    position: absolute;
    top: 0;
    left: -100%;
width: 100%;
    height: 100%;
 background: linear-gradient(90deg,
  transparent 0%,
  rgba(255, 255, 255, 0.3) 50%,
   transparent 100%
    );
 transition: left 0.6s ease;
}

.top-row .account-menu-btn:hover::before {
    left: 100%;
}

.top-row .account-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
 color: white !important;
    transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
   inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.top-row .bi-person-circle {
    font-size: 1.5rem !important;
    transition: all 0.3s ease;
}

.top-row .account-menu-btn:hover .bi-person-circle {
    transform: scale(1.15);
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

/* Masquer le texte sur petits �crans */
.top-row .account-menu-btn span:not(.bi) {
    display: none;
}

@media (min-width: 1400px) {
    .top-row .account-menu-btn {
        padding: 0.75rem 1.25rem !important;
        min-width: auto !important;
    }
 
    .top-row .account-menu-btn span:not(.bi) {
        display: inline;
    }
}

/* Supprimer la fl�che du dropdown */
.top-row .dropdown-toggle::after {
    display: none !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .top-row {
        padding: 0 1.5rem !important;
        gap: 0.75rem !important;
    }
    
    .header-search-container {
        max-width: 400px;
        margin: 0 0.75rem;
        min-height: 44px;
        height: 44px;
    }
    
    .header-search-form {
        height: 44px;
    }
    
    .header-search-input {
        height: 44px !important;
        min-height: 44px;
        padding: 0.625rem 2.5rem 0.625rem 2.5rem;
    }

    .panier-widget .btn,
    .top-row .nav-link,
    .top-row .account-menu-btn {
        height: 44px;
        min-width: 44px;
        padding: 0.625rem !important;
    }

    .panier-widget .bi-cart3 {
        font-size: 1.5rem !important;
    }
    
    .top-row .nav-link i.bi,
    .top-row .bi-person-circle {
        font-size: 1.35rem !important;
    }
    
    .panier-widget .badge {
        min-width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        right: 0px !important;
    }
    
    .header-search-autocomplete {
        top: 48px;
    }
}

@media (max-width: 992px) {
    .top-row {
      padding: 0 1rem !important;
    gap: 0.625rem !important;
    }
    
    .panier-widget .btn,
.top-row .nav-link,
    .top-row .account-menu-btn {
   min-width: 44px;
   padding: 0.625rem !important;
    }
}

@media (max-width: 768px) {
    .top-row {
        padding: 1rem !important;
        gap: 0.5rem !important;
        height: auto !important;
        min-height: auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        overflow-x: hidden !important;
    }

    /* Premi�re ligne: Logo centr� - 100% */
    .top-row .header-logo-group {
        width: 100% !important;
        flex: 0 0 100% !important;
        justify-content: center !important;
        order: 1 !important;
        margin-bottom: 0.5rem;
    }

    .brand-title {
        font-size: 1.5rem !important;
        text-align: center;
    }

    /* Deuxi�me ligne: Tous les boutons de navigation - 100% */
    .top-row .header-actions-group {
        width: 100% !important;
        flex: 0 0 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        order: 2 !important;
        margin-bottom: 0.5rem;
    }

    /* Troisi�me ligne: Cat�gories � gauche - 30% */
    .top-row .categories-button-wrapper {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 30% !important;
        display: flex !important;
        order: 3 !important;
        margin: 0 0.5rem 0 0 !important;
        align-self: center !important;
    }

    /* Troisi�me ligne: Recherche � droite - 70% */
    .top-row .header-search-container {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(70% - 0.5rem) !important;
        min-height: 40px !important;
        height: 40px !important;
        display: flex !important;
        order: 3 !important;
        margin: 0 !important;
        align-self: center !important;
    }
    
    .header-search-form {
        height: 40px !important;
    }

    /* Ajuster la taille des inputs de recherche */
    .header-search-input {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 0.875rem !important;
        padding: 0.5rem 2.5rem 0.5rem 2.5rem !important;
    }

    .header-search-icon {
        font-size: 1rem !important;
    }

    .header-search-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    .header-search-autocomplete {
        top: 44px !important;
    }

    .panier-widget .btn,
    .top-row .nav-link,
    .top-row .account-menu-btn {
        height: 44px;
        min-width: 44px;
        padding: 0.625rem !important;
        border-radius: 0.625rem;
    }

    .panier-widget .bi-cart3 {
        font-size: 1.35rem !important;
    }
    
    .top-row .nav-link i.bi,
    .top-row .bi-person-circle {
        font-size: 1.25rem !important;
    }

    .panier-widget .badge {
        min-width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -2px !important;
    }

    .panier-resume-tooltip {
        min-width: 240px;
        right: -10px;
    }
}

/* ========== wwwroot/css/footer.css ========== */
/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    border-top: 4px solid var(--premium-primary);
    margin-top: auto;
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.footer-links a i {
    color: var(--premium-primary);
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: #fff !important;
    transform: scale(1.1);
}

.footer-contact-item {
    color: var(--premium-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.footer-contact-item:hover i {
    color: #fff !important;
    transform: scale(1.1);
}

.footer-contact-item:hover a {
    color: #fff !important;
    text-decoration: underline !important;
}

.footer-contact-item:hover span,
.footer-contact-item:hover .footer-contact-text {
    color: #fff !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--premium-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--premium-glow);
    border-color: #fff;
}

/* Divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

/* Copyright */
.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-secondary-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-secondary-links a:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.footer-secondary-links a i {
    transition: all 0.3s ease;
}

.footer-secondary-links a:hover i {
    color: var(--premium-primary) !important;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-title {
    font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .col-md-6.text-md-start,
    .col-md-6.text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }

    .footer-secondary-links {
 margin-top: 0.5rem;
    }
}

/* ========== wwwroot/css/cookie-banner.css ========== */
/* ========================================
   COOKIE BANNER STYLES
   ======================================== */

/* Overlay */
.cookie-banner-overlay {
    position: fixed;
  top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
}

/* Modal */
.cookie-banner-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

/* Content */
.cookie-banner-content {
    padding: 2rem;
}

/* Title */
.cookie-banner-title {
    color: #212529;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cookie-banner-title i {
    color: #ffc107;
    font-size: 1.75rem;
}

/* Text */
.cookie-banner-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Buttons */
.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-banner-buttons .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
  display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-buttons .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cookie-banner-buttons .btn-success:hover {
 background: linear-gradient(135deg, #20873a 0%, #1e7e34 100%);
    transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.cookie-banner-buttons .btn-secondary {
    background: #6c757d;
  border: none;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.cookie-banner-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Footer link */
.cookie-banner-footer {
    text-align: center;
    margin-bottom: 0;
}

.cookie-banner-footer a {
  color: var(--premium-primary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.cookie-banner-footer a:hover {
    color: #155a9c;
}

.cookie-banner-footer a i {
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
opacity: 1;
    }
}

@keyframes slideUp {
  from {
     opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .cookie-banner-modal {
   width: 95%;
        border-radius: 12px;
    }

    .cookie-banner-content {
        padding: 1.5rem;
    }

    .cookie-banner-title {
        font-size: 1.25rem;
    }

    .cookie-banner-title i {
        font-size: 1.5rem;
 }

    .cookie-banner-text {
        font-size: 0.95rem;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-banner-buttons .btn {
 padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .cookie-banner-footer {
        font-size: 0.85rem;
    }
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    .cookie-banner-modal {
        background: #2d3748;
    }

    .cookie-banner-title {
        color: #f7fafc;
    }

    .cookie-banner-text {
   color: #e2e8f0;
    }
}

