/* ==================================================================================
   BREADCRUMB POCHOIRS - STYLE APPLE AVEC COMPTEURS
   ================================================================================== */

/* Container principal */
.pochoirs-breadcrumb-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid transparent;
    padding: 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    transition: border-bottom 0.3s ease;
}

.pochoirs-breadcrumb-wrapper.scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.pochoirs-breadcrumb-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Gradients de fade gauche/droite */
.pochoirs-breadcrumb-fade-left,
.pochoirs-breadcrumb-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pochoirs-breadcrumb-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
    opacity: 0;
}

.pochoirs-breadcrumb-fade-right {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
    opacity: 1;
}

/* Zone de scroll */
.pochoirs-breadcrumb-scroll {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 0;
}

.pochoirs-breadcrumb-scroll::-webkit-scrollbar {
    display: none;
}

/* Icône Home */
.pochoirs-breadcrumb-home {
    flex-shrink: 0;
    padding: 6px;
    color: #6e6e73;
    border-radius: 6px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pochoirs-breadcrumb-home svg {
    display: block;
}

/* Hover effects seulement sur desktop */
@media (hover: hover) and (pointer: fine) {
    .pochoirs-breadcrumb-home:hover {
        background: var(--global-palette8, #f5f5f7);
        color: var(--global-palette1, #007aff);
    }
}

/* Liens de catégorie */
.pochoirs-breadcrumb-link {
    flex-shrink: 0;
    padding: 6px 10px;
    color: #6e6e73;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* Hover effects seulement sur desktop */
@media (hover: hover) and (pointer: fine) {
    .pochoirs-breadcrumb-link:hover {
        background: var(--global-palette8, #f5f5f7);
        color: var(--global-palette1, #007aff);
    }
}

/* Badge compteur */
.pochoirs-breadcrumb-count {
    background: #f5f5f7;
    color: #8e8e93;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .pochoirs-breadcrumb-link:hover .pochoirs-breadcrumb-count {
        background: var(--global-palette8, #f5f5f7);
        color: var(--global-palette1, #007aff);
    }
}

/* Élément courant (dernier) */
.pochoirs-breadcrumb-current {
    flex-shrink: 0;
    padding: 6px 10px;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Séparateur chevron */
.pochoirs-breadcrumb-separator {
    flex-shrink: 0;
    color: #d2d2d7;
    margin: 0 -2px;
    display: flex;
    align-items: center;
}

.pochoirs-breadcrumb-separator svg {
    display: block;
}

/* Feedback tactile mobile */
.pochoirs-breadcrumb-home:active,
.pochoirs-breadcrumb-link:active {
    transform: scale(0.95);
}

/* ==================== RESPONSIVE MOBILE ==================== */

@media (max-width: 768px) {
    .pochoirs-breadcrumb-wrapper {
        padding: 6px 0;
    }
    
    .pochoirs-breadcrumb-container {
        padding: 0 16px;
    }
    
    .pochoirs-breadcrumb-fade-left,
    .pochoirs-breadcrumb-fade-right {
        width: 30px;
    }
    
    .pochoirs-breadcrumb-home {
        min-width: 28px;
        min-height: 28px;
        padding: 4px;
    }
    
    .pochoirs-breadcrumb-home svg {
        width: 14px;
        height: 14px;
    }
    
    .pochoirs-breadcrumb-link,
    .pochoirs-breadcrumb-current {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .pochoirs-breadcrumb-count {
        font-size: 10px;
        padding: 1px 5px;
    }
    
    .pochoirs-breadcrumb-separator svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .pochoirs-breadcrumb-container {
        padding: 0 12px;
    }
    
    .pochoirs-breadcrumb-link,
    .pochoirs-breadcrumb-current {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .pochoirs-breadcrumb-count {
        font-size: 9px;
    }
}

/* Animation d'apparition */
@keyframes breadcrumbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pochoirs-breadcrumb-wrapper {
    animation: breadcrumbFadeIn 0.4s ease-out;
}