/* ============================================================
   INFOCIENS v2 — Catalogue CSS
   ============================================================ */

:root {
    --primary: #46AEC2;
    --secondary: #1A486E;
    --accent: #FFD600;
    --white: #FFFFFF;
    --off-white: #F8FBFD;
    --gray: #6B7B8C;
    --text: #2C3E50;
}

/* ============================================================
   EN-TÊTE CATALOGUE
   ============================================================ */
.catalog-header {
    background: var(--secondary);
    color: var(--white);
    padding: 110px 30px 40px;
}

.breadcrumb-nav {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav .sep { opacity: 0.5; }
.breadcrumb-nav .current { color: var(--accent); font-weight: 600; }

.catalog-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.catalog-count {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   LAYOUT CATALOGUE
   ============================================================ */
.catalog-layout {
    padding: 50px 30px 80px;
    background: var(--off-white);
    min-height: 60vh;
}

.catalog-grid-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================================
   SIDEBAR FILTRES
   ============================================================ */
.catalog-sidebar {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: 12px;
    padding: 26px 22px;
    position: sticky;
    top: 90px;
}

.filter-block {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #EEF2F5;
}

.filter-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.filter-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-title i { color: var(--primary); font-size: 0.85rem; }

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D5DDE3;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    font-family: inherit;
    transition: border 0.2s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 174, 194, 0.15);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
}

.filter-list li { margin-bottom: 4px; }

.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
    color: var(--text);
}

.filter-radio:hover { background: #F4F7F9; }

.filter-radio input[type="radio"] {
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.filter-radio span { flex: 1; }

.filter-count {
    color: var(--gray);
    font-size: 0.78rem;
    margin-left: 4px;
}

.filter-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-sep { color: var(--gray); }

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.filter-submit {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
}

.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.filter-reset:hover { color: var(--primary); }

/* ============================================================
   ZONE PRINCIPALE
   ============================================================ */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-count {
    font-size: 0.9rem;
    color: var(--gray);
}

.toolbar-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--gray);
}

.sort-select {
    padding: 7px 12px;
    border: 1px solid #D5DDE3;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--secondary);
    background: var(--white);
    cursor: pointer;
    font-family: inherit;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================
   GRILLE PRODUITS
   ============================================================ */
.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.catalog-card {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(26, 72, 110, 0.12);
}

.catalog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.catalog-card-thumb {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: var(--secondary);
}

.catalog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.catalog-card:hover .catalog-card-thumb img {
    transform: scale(1.08);
}

.catalog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(70, 174, 194, 0.4);
    font-size: 3rem;
}

.catalog-card-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(70, 174, 194, 0.95);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.catalog-card-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-card-category {
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}

.catalog-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 42px;
}

.catalog-card-desc {
    font-size: 0.84rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #EEF2F5;
}

.catalog-card-price {
    display: flex;
    flex-direction: column;
}

.catalog-card-old-price {
    font-size: 0.72rem;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 500;
}

.catalog-card-current-price {
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--secondary);
}

.catalog-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(70, 174, 194, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.catalog-card:hover .catalog-card-arrow {
    background: var(--primary);
    color: var(--white);
    transform: translateX(3px);
}

/* ============================================================
   ÉTAT VIDE
   ============================================================ */
.catalog-empty {
    background: var(--white);
    border: 1px dashed #D5DDE3;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    color: var(--gray);
}

.catalog-empty i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    display: block;
}

.catalog-empty h2 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.catalog-empty p {
    margin-bottom: 22px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #D5DDE3;
    background: var(--white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.page-link:hover:not(.disabled):not(.page-current) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-current {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F4F7F9;
}

.page-dots {
    padding: 0 8px;
    color: var(--gray);
    font-weight: 600;
}

/* ============================================================
   PAGE DÉTAIL PRODUIT
   ============================================================ */
.product-breadcrumb {
    background: var(--secondary);
    color: var(--white);
    padding: 110px 30px 30px;
}

.product-main {
    padding: 60px 30px 40px;
    background: var(--white);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 90px;
}

.product-main-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #E8EEF3;
    background: var(--off-white);
    aspect-ratio: 4 / 3;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(70, 174, 194, 0.4);
    font-size: 5rem;
    background: linear-gradient(135deg, rgba(70, 174, 194, 0.05), rgba(26, 72, 110, 0.08));
}

.product-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #E8EEF3;
    background: var(--off-white);
    cursor: pointer;
    padding: 0;
    transition: border 0.2s;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   INFOS PRODUIT
   ============================================================ */
.product-info { padding-top: 6px; }

.product-category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(70, 174, 194, 0.12);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.product-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.product-short-desc {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 24px;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--off-white);
    border-radius: 12px;
    border: 1px solid #E8EEF3;
}

.product-price-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-old {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.price-discount {
    background: #198754;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: 10px;
}

.highlight-item i {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 2px;
}

.highlight-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 2px;
}

.highlight-item span {
    font-size: 0.75rem;
    color: var(--gray);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.product-btn-buy {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    background: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.product-btn-buy:hover {
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
}

.product-btn-whatsapp {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.product-btn-whatsapp:hover {
    background: var(--primary);
    color: var(--white);
}

.product-meta {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #EEF2F5;
    font-size: 0.85rem;
    color: var(--gray);
}

.product-meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* ============================================================
   DESCRIPTION DÉTAILLÉE + FEATURES
   ============================================================ */
.product-details {
    padding: 60px 30px;
    background: var(--off-white);
}

.product-details-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
}

.product-description-block,
.product-features-block {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #E8EEF3;
}

.details-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-title i { color: var(--primary); }

.product-description-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
}

.text-muted { color: var(--gray); font-style: italic; }

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 1px solid #F4F7F9;
}

.features-list li:last-child { border-bottom: none; }

.features-list i {
    color: #198754;
    font-size: 0.9rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ============================================================
   PRODUITS SIMILAIRES
   ============================================================ */
.product-related {
    padding: 60px 30px 80px;
    background: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .catalog-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .catalog-sidebar {
        position: static;
    }
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-layout,
    .product-details-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery { position: static; }
}

@media (max-width: 768px) {
    .catalog-header { padding: 90px 20px 30px; }
    .catalog-title { font-size: 1.7rem; }
    .catalog-layout { padding: 30px 20px 60px; }
    .catalog-products-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-main, .product-details, .product-related {
        padding: 40px 20px;
    }
    .product-name { font-size: 1.5rem; }
    .price-current { font-size: 1.5rem; }
    .product-highlights {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        padding: 20px 18px;
    }
    .pagination-nav { gap: 4px; }
    .page-link { min-width: 36px; height: 36px; padding: 0 10px; font-size: 0.85rem; }
}
