/* ========================================
   CATALOGUE-V2.CSS
   Styles spécifiques page catalogue
   Compatible avec main-v2.css
   Hero compact et breadcrumb identique à produit-v2
   ======================================== */

/* === BREADCRUMB (identique à produit-v2.css) === */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin: 0;
}

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

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--gs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
}

/* === HERO CATALOGUE (ULTRA COMPACT) === */
.gs-catalog-hero {
    background: linear-gradient(135deg, var(--gs-primary) 0%, var(--gs-primary-dark) 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.gs-catalog-hero h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gs-catalog-hero p {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 25px auto;
    color: white;
    line-height: 1.6;
}

/* Stats modernes - 4 colonnes sur desktop */
.gs-catalog-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.gs-catalog-stat {
    text-align: center;
}

.gs-catalog-stat i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.gs-catalog-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: white;
}

.gs-catalog-stat .stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
    font-weight: 500;
}

/* === NAVIGATION RAPIDE STICKY === */
.gs-quick-nav {
    background: white;
    padding: 20px;
    border-radius: var(--gs-radius);
    margin-bottom: 40px;
    box-shadow: var(--gs-shadow);
    position: sticky;
    top: 20px;
    z-index: 100;
    transition: var(--gs-transition);
}

.gs-quick-nav.sticky {
    box-shadow: var(--gs-shadow-hover);
}

.gs-quick-nav-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gs-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gs-quick-nav-header i {
    color: var(--gs-primary);
}

.gs-quick-nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gs-quick-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gs-bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: var(--gs-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--gs-transition);
}

.gs-quick-nav-link:hover {
    background: var(--gs-primary);
    color: white;
    border-color: var(--gs-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.gs-badge {
    background: var(--gs-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gs-quick-nav-link:hover .gs-badge {
    background: white;
    color: var(--gs-primary);
}

/* === SECTION CATÉGORIE === */
.gs-category-section {
    margin-bottom: 70px;
    scroll-margin-top: 180px;
}

.gs-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gs-primary);
}

.gs-category-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--gs-secondary);
    margin: 0;
}

.gs-category-count {
    background: var(--gs-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === GRILLE CATALOGUE === */
.gs-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* === CARTE PRODUIT CATALOGUE === */
.gs-catalog-card {
    background: white;
    border-radius: var(--gs-radius);
    overflow: hidden;
    box-shadow: var(--gs-shadow);
    transition: var(--gs-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gs-catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gs-shadow-hover);
}

/* Image */
.gs-catalog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gs-bg-light);
}

.gs-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gs-transition);
}

.gs-catalog-card:hover .gs-catalog-card-image img {
    transform: scale(1.05);
}

.gs-catalog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.gs-catalog-card-placeholder i {
    font-size: 3rem;
    color: #ccc;
}

/* Badge */
.gs-catalog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gs-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* Contenu */
.gs-catalog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gs-catalog-card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gs-secondary);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.gs-catalog-card-desc {
    font-size: 0.95rem;
    color: var(--gs-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Features */
.gs-catalog-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.gs-catalog-card-features li {
    font-size: 0.9rem;
    color: var(--gs-text);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.gs-catalog-card-features i {
    color: var(--gs-success);
    font-size: 0.85rem;
    margin-top: 3px;
}

/* Bouton */
.gs-catalog-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gs-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--gs-transition);
    margin-top: auto;
}

.gs-catalog-card-btn:hover {
    background: var(--gs-primary-dark);
    transform: translateX(5px);
    color: white;
    text-decoration: none;
}

.gs-catalog-card-btn i {
    transition: var(--gs-transition);
}

.gs-catalog-card-btn:hover i {
    transform: translateX(3px);
}

/* === BOUTON RETOUR EN HAUT === */
.gs-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    transition: var(--gs-transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.gs-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.gs-back-to-top:hover {
    background: var(--gs-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.gs-back-to-top i {
    font-size: 1.2rem;
}

/* === RESPONSIVE === */

/* Tablettes */
@media (max-width: 992px) {
    .gs-catalog-hero h1 {
        font-size: 2rem;
    }
    
    .gs-catalog-hero p {
        font-size: 1rem;
    }
    
    .gs-catalog-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gs-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .gs-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gs-category-header h2 {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gs-catalog-hero {
        padding: 25px 20px;
    }
    
    .gs-catalog-hero h1 {
        font-size: 1.7rem;
    }
    
    .gs-catalog-hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .gs-catalog-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding-top: 20px;
    }
    
    .gs-catalog-stat i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .gs-catalog-stat .stat-number {
        font-size: 1.8rem;
        margin-bottom: 3px;
    }
    
    .gs-catalog-stat .stat-label {
        font-size: 0.85rem;
    }
    
    .gs-catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gs-quick-nav {
        position: static;
    }
    
    .gs-category-header h2 {
        font-size: 1.6rem;
    }
    
    .gs-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Petits mobiles */
@media (max-width: 576px) {
    .gs-catalog-hero {
        padding: 20px 15px;
    }
    
    .gs-catalog-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .gs-catalog-hero p {
        font-size: 0.9rem;
    }
    
    .gs-catalog-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gs-catalog-stat {
        padding: 10px 0;
    }
    
    .gs-catalog-card-content {
        padding: 20px;
    }
    
    .gs-category-header h2 {
        font-size: 1.4rem;
    }
    
    .gs-quick-nav {
        padding: 15px;
    }
    
    .gs-quick-nav-header {
        font-size: 1rem;
    }
}
