/**
 * STYLES PELLETS COMPLETS
 * À ajouter dans: verague-theme/assets/css/pellets.css
 *
 * À enqueuer dans functions.php:
 * wp_enqueue_style( 'verague-pellets', get_template_directory_uri() . '/assets/css/pellets.css' );
 */

/* ====================================
   VARIABLES & RÉSETS
   ==================================== */
   :root {
    --brand: #FF6B35;
    --dark: #2A2A2A;
    --light: #f8f8f8;
    --border: #e0e0e0;
}


/* ====================================
   ARCHIVE PELLETS - FILTRES
   ==================================== */
.archive-pellets-section .filters-section {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.archive-pellets-section .filter-group {
    margin-bottom: 1rem;
}

.archive-pellets-section .filter-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.archive-pellets-section .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.archive-pellets-section .btn-outline-brand {
    color: var(--brand);
    border-color: var(--brand);
    background: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.archive-pellets-section .btn-outline-brand:hover,
.archive-pellets-section .btn-outline-brand.active {
    background-color: var(--brand);
    color: white;
    border-color: var(--brand);
}


/* ====================================
   CARDS PELLETS - GENERAL
   ==================================== */
.pellets-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pellets-card:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.pellets-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.pellets-card h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.pellets-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: auto;
    line-height: 1.5;
}

.pellets-card .btn {
    margin-top: 1rem;
}


/* ====================================
   CARDS PELLETS - ARCHIVE
   ==================================== */
.pellets-card .placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pellets-specs {
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 3px solid var(--brand);
}

.pellets-specs small {
    display: block;
    color: #555;
    line-height: 1.8;
    font-size: 0.9rem;
}

.pellets-specs small strong {
    color: var(--dark);
}


/* ====================================
   SECTIONS PAR MARQUE
   ==================================== */
.marque-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.marque-section:last-child {
    border-bottom: none;
}

.marque-section h2 {
    color: var(--brand);
    font-size: 2rem;
    font-weight: 800;
    border-bottom: 3px solid var(--brand);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.type-subsection {
    margin-bottom: 3rem;
}

.type-subsection h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}


/* ====================================
   FICHE DÉTAIL (SINGLE)
   ==================================== */
.single-pellets-section {
    background: white;
}

.single-pellets-section h1 {
    color: var(--dark);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.pellets-detail-image {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.pellets-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pellets-taxonomies {
    margin-top: 2rem;
}

.taxonomy-group {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.taxonomy-group strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 600;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.badge-brand {
    background-color: var(--brand);
    color: white;
}

.badge-secondary {
    background-color: #e9ecef;
    color: var(--dark);
}

.badge-light {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid var(--border);
}


/* ====================================
   SPECS HIGHLIGHT
   ==================================== */
.specs-highlight {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 2px solid #FFE0CC;
    border-radius: 12px;
    padding: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #FFE0CC;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.spec-value span {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    display: block;
}


/* ====================================
   DESCRIPTION & CTA
   ==================================== */
.pellets-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.pellets-description p {
    margin-bottom: 1rem;
}

.pellets-description p:last-child {
    margin-bottom: 0;
}

.pellets-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pellets-cta .btn {
    flex: 0 1 auto;
}


/* ====================================
   PELLETS CONNEXES
   ==================================== */
.related-pellets {
    margin-top: 4rem;
    padding-top: 3rem;
}

.related-pellets h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}


/* ====================================
   FRONT-PAGE CARDS (CLASSIQUES/CANALISABLES)
   ==================================== */
.pellets-type-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pellets-type-card:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
    transform: translateY(-4px);
}

.pellets-type-card .card-header {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    padding: 2rem 1.5rem;
    border-bottom: 2px solid #FFE0CC;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pellets-type-card .card-header i {
    font-size: 2.5rem;
    color: var(--brand);
    flex-shrink: 0;
}

.pellets-type-card .card-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.pellets-type-card .card-body {
    padding: 2rem 1.5rem;
    flex: 1;
}

.pellets-type-card .card-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.models-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-tag {
    display: inline-block;
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark);
    border-left: 3px solid var(--brand);
    font-weight: 500;
}

.model-tag span {
    color: var(--brand);
    font-weight: 600;
    margin-left: 0.5rem;
}

.pellets-type-card .card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--light);
}


/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 992px) {
    .pellets-detail-image {
        position: static;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .spec-item {
        padding: 0.75rem;
    }

    .spec-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .archive-pellets-section .filter-group {
        margin-bottom: 1.5rem;
    }

    .pellets-type-card .card-header {
        padding: 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
    }

    .pellets-type-card .card-header i {
        font-size: 2rem;
    }

    .pellets-type-card .card-header h3 {
        font-size: 1.2rem;
    }

    .pellets-type-card .card-body {
        padding: 1.5rem 1rem;
    }

    .pellets-type-card .card-body p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1.5rem;
    }

    .spec-item {
        padding: 0.5rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .spec-value {
        font-size: 1rem;
    }

    .pellets-cta {
        flex-direction: column;
    }

    .pellets-cta .btn {
        width: 100%;
    }

    .single-pellets-section h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .model-tag {
        display: block;
        margin-bottom: 0.5rem;
    }

    .badge {
        display: block;
        margin-bottom: 0.75rem;
    }
}