/* ==========================================================================
   PRODUCT LIST - Page de liste des produits
   ========================================================================== */

/* Hero section produits */
.products-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.products-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation par catégories */
.category-navigation {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 90;
}

.tab-btn-primary {
    background-color: #1a73e8;
    color: white;
}

/* Filtres et recherche */
.products-filters {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.search-box::placeholder {
    color: #999;
}

/* Compteur de résultats */
.results-info {
    padding: 20px 0;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.results-count strong {
    color: #333;
}

/* Conteneur principal des produits */
.products-container {
    padding: 40px 0;
    background: white;
}

/* Grille des produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Cartes produits */
.product-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Lien image — couvre toute la zone photo */
.product-img-link {
    display: block;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.product-img-link:hover .product-img img,
.product-img-link:hover .placeholder-image {
    transform: scale(1.04);
}

/* Images des produits */
.product-item .product-img {
    height: 100%;
    background-color: var(--medium);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

/* Placeholder pour produits sans image */
.product-item .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
    background-color: #f8f9fa;
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.35s ease;
}

/* Badge de statut sur l'image */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.badge-new {
    background: #28a745;
    color: white;
}

.badge-featured {
    background: #ffc107;
    color: #333;
}

.badge-sale {
    background: #dc3545;
    color: white;
}

/* Contenu des cartes produits */
.product-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.product-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 50px;
    font-weight: 600;
}

/* Titre cliquable */
.product-item-content h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-item-content h3 a:hover {
    color: #0d5bbc;
    text-decoration: underline;
}

/* Référence produit */
.product-ref {
    color: #666;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
    align-self: flex-start;
}

/* Description du produit */
.product-description {
    flex-grow: 1;
    margin-bottom: 15px;
}

.product-description p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Spécifications rapides */
.quick-specs {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.quick-specs strong {
    color: var(--primary);
}

/* Prix du produit */
.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

/* Actions produit */
.product-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Bouton pleine largeur dans les cartes produits */
.product-actions .btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 12px;
}

.btn-primary:hover {
    background-color: #0d5bbc;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.status-development {
    background-color: #6c757d;
    color: white;
}

.status-testing {
    background-color: #28a745;
    color: white;
}

.status-service {
    background-color: #023d78;
    color: white;
}

.status-available {
    background-color: #17a2b8;
    color: white;
}

.status-ce {
    background-color: #ffc107;
    color: #333;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.resource-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.resource-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.pagination-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}


@media (max-width: 992px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        justify-content: space-between;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .product-item {
        min-height: 450px;
    }
    
    .product-img-link {
        height: 200px;
    }

    .product-item-content {
        padding: 20px;
    }
    
    .product-item-content h3 {
        font-size: 1.2rem;
        min-height: 45px;
    }
    
    .tab-navigation {
        gap: 10px;
        padding: 10px 15px;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
        border-radius: 8px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tab-btn-primary {
        order: -1;
        flex: 1 1 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .products-hero p {
        font-size: 1.1rem;
    }
    
    .product-item {
        min-height: 400px;
    }
    
    .product-img-link {
        height: 180px;
    }

    .product-item-content {
        padding: 15px;
    }
    
    .tab-navigation {
        padding: 10px;
    }
    
    .filter-select,
    .search-box {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
}
/* ==========================================================================
   NAVIGATION STICKY PRODUITS - Barre de catégories figée
   À ajouter dans: 05-pages/products/product-list.css
   ========================================================================== */
/* Container pour centrer le contenu */
.tab-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tab-btn-secondary {
    background-color: #f5f7ff;
    color: #0a3a6b;
    border-color: #e0e7ff;
}

.tab-btn-secondary:hover {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    text-decoration: none;
}

.tab-btn-secondary.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* Effet visuel quand la barre devient sticky */
.tab-navigation.sticky-active {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Section hero des produits - ajustement */
.products-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 0; /* Supprimer la marge pour coller à la nav */
}

.products-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenu principal avec espacement */
.products-content {
    padding-top: 40px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablettes */
@media (max-width: 992px) {
    .tab-navigation {
        top: 60px; /* Header plus petit sur tablette */
        padding: 12px 15px;
        gap: 8px;
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .products-hero {
        padding: 50px 0;
    }
    
    .products-hero h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .tab-navigation {
        top: 70px; /* Header mobile */
        padding: 10px 15px;
        gap: 6px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    /* Masquer la scrollbar sur webkit */
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .products-hero {
        padding: 40px 0;
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .products-hero p {
        font-size: 1.1rem;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .tab-navigation {
        padding: 8px 10px;
    }
    
    .tab-btn {
        min-width: 90px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .products-hero h1 {
        font-size: 1.8rem;
    }
}