/**
 * Fonio Comparateur - Styles Front-End
 * Version: 1.1.0 - UI/UX Amélioré
 */

/* ==========================================================================
   Variables CSS - Palette inspirée des céréales africaines
   ========================================================================== */
:root {
    /* Couleurs principales */
    --fc-primary: #B8860B;          /* Or fonio */
    --fc-primary-dark: #8B6914;
    --fc-primary-light: #DAA520;
    --fc-secondary: #2E7D32;        /* Vert nature */
    --fc-secondary-dark: #1B5E20;
    --fc-secondary-light: #4CAF50;
    --fc-accent: #D2691E;           /* Terre africaine */
    
    /* Textes */
    --fc-text: #2D3436;
    --fc-text-light: #636E72;
    --fc-text-muted: #B2BEC3;
    
    /* Fonds */
    --fc-bg: #FFFFFF;
    --fc-bg-light: #FAFAFA;
    --fc-bg-warm: #FDF8F3;
    --fc-bg-card: #FFFFFF;
    
    /* Bordures */
    --fc-border: #E0E0E0;
    --fc-border-light: #F0F0F0;
    
    /* États */
    --fc-success: #27AE60;
    --fc-warning: #F39C12;
    --fc-error: #E74C3C;
    --fc-info: #3498DB;
    
    /* Effets */
    --fc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --fc-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --fc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --fc-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Rayons */
    --fc-radius: 16px;
    --fc-radius-sm: 10px;
    --fc-radius-xs: 6px;
    
    /* Transitions */
    --fc-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --fc-transition-fast: 0.15s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
.fc-comparateur *,
.fc-comparateur *::before,
.fc-comparateur *::after {
    box-sizing: border-box;
}

.fc-comparateur {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fc-text);
    line-height: 1.6;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ==========================================================================
   Layout principal
   ========================================================================== */
.fc-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.fc-layout--with-sidebar .fc-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fc-border) transparent;
}

.fc-main {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Barre de recherche
   ========================================================================== */
.fc-search-bar {
    margin-bottom: 32px;
}

.fc-search-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--fc-border);
    border-radius: 50px;
    background: var(--fc-bg);
    transition: all var(--fc-transition);
    box-shadow: var(--fc-shadow-sm);
}

.fc-search-input:focus {
    outline: none;
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15), var(--fc-shadow);
}

.fc-search-input::placeholder {
    color: var(--fc-text-muted);
    font-weight: 400;
}

/* ==========================================================================
   Sidebar filtres
   ========================================================================== */
.fc-filters {
    background: var(--fc-bg);
    border: 1px solid var(--fc-border-light);
    border-radius: var(--fc-radius);
    padding: 24px;
    box-shadow: var(--fc-shadow-sm);
}

.fc-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--fc-border-light);
}

.fc-filters__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--fc-text);
}

.fc-filters__reset {
    background: none;
    border: none;
    color: var(--fc-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all var(--fc-transition-fast);
}

.fc-filters__reset:hover {
    background: rgba(184, 134, 11, 0.1);
}

.fc-filter-group {
    margin-bottom: 24px;
}

.fc-filter-group:last-child {
    margin-bottom: 0;
}

.fc-filter-group__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    color: var(--fc-text-light);
}

.fc-filter-group__toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.fc-toggle-icon {
    font-size: 10px;
    transition: transform var(--fc-transition);
    color: var(--fc-text-muted);
}

.fc-filter-group--collapsed .fc-toggle-icon {
    transform: rotate(-90deg);
}

.fc-filter-group--collapsed .fc-filter-group__content {
    display: none;
}

.fc-filter-group__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Checkboxes custom */
.fc-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 8px;
    margin: -6px -8px;
    border-radius: var(--fc-radius-xs);
    transition: background var(--fc-transition-fast);
}

.fc-checkbox:hover {
    background: var(--fc-bg-light);
}

.fc-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fc-primary);
    cursor: pointer;
    border-radius: 4px;
}

.fc-checkbox__label {
    color: var(--fc-text);
    font-weight: 500;
}

/* Range inputs */
.fc-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fc-input--small {
    width: 80px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--fc-border);
    border-radius: var(--fc-radius-xs);
    transition: border-color var(--fc-transition-fast);
}

.fc-input--small:focus {
    outline: none;
    border-color: var(--fc-primary);
}

.fc-range-separator {
    color: var(--fc-text-muted);
    font-weight: 500;
}

.fc-range-unit {
    color: var(--fc-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.fc-filter-hint {
    font-size: 12px;
    color: var(--fc-text-muted);
    margin: 8px 0 0 0;
}

/* Select */
.fc-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--fc-border);
    border-radius: var(--fc-radius-xs);
    background: var(--fc-bg);
    cursor: pointer;
    transition: border-color var(--fc-transition-fast);
}

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

/* ==========================================================================
   Sections
   ========================================================================== */
.fc-section {
    margin-bottom: 48px;
}

.fc-section--featured {
    background: linear-gradient(135deg, var(--fc-bg-warm) 0%, #FFF9E6 100%);
    padding: 32px;
    border-radius: var(--fc-radius);
    margin-bottom: 56px;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

.fc-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.fc-section__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--fc-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-section__icon {
    font-size: 32px;
}

.fc-section__subtitle {
    color: var(--fc-text-light);
    margin: 0 0 24px 0;
    font-size: 15px;
}

.fc-section__count {
    color: var(--fc-text-muted);
    font-size: 14px;
    font-weight: 500;
    background: var(--fc-bg-light);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ==========================================================================
   Grille de cartes
   ========================================================================== */
.fc-grid {
    display: grid;
    gap: 28px;
}

.fc-grid--2cols {
    grid-template-columns: repeat(2, 1fr);
}

.fc-grid--3cols {
    grid-template-columns: repeat(3, 1fr);
}

.fc-grid--4cols {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Carte produit - Design Premium
   ========================================================================== */
.fc-card {
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border-light);
    border-radius: var(--fc-radius);
    padding: 0;
    position: relative;
    transition: all var(--fc-transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--fc-shadow-sm);
}

.fc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fc-shadow-hover);
    border-color: var(--fc-primary);
}

.fc-card--featured {
    border: 2px solid var(--fc-primary);
    background: linear-gradient(to bottom, #FFFBF0 0%, var(--fc-bg-card) 100%);
}

/* Rang */
.fc-card__rank {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-dark) 100%);
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 24px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

/* Badge */
.fc-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--fc-secondary) 0%, var(--fc-secondary-dark) 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* Image */
.fc-card__image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, var(--fc-bg-light) 0%, var(--fc-bg) 100%);
    border-bottom: 1px solid var(--fc-border-light);
}

.fc-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--fc-transition);
}

.fc-card:hover .fc-card__image img {
    transform: scale(1.05);
}

.fc-card__image-placeholder {
    font-size: 56px;
    opacity: 0.3;
}

/* Contenu */
.fc-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 24px;
}

.fc-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--fc-text);
    line-height: 1.3;
}

.fc-card__subtitle {
    font-weight: 500;
    display: block;
    color: var(--fc-text-light);
    font-size: 14px;
    margin-top: 2px;
}

/* Note */
.fc-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.fc-stars {
    display: inline-flex;
    gap: 2px;
}

.fc-star {
    color: var(--fc-primary);
    font-size: 16px;
}

.fc-star--empty {
    color: var(--fc-border);
}

.fc-star--half {
    background: linear-gradient(90deg, var(--fc-primary) 50%, var(--fc-border) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fc-card__rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-text);
}

.fc-card__reviews {
    font-size: 13px;
    color: var(--fc-text-muted);
}

/* Meta */
.fc-card__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--fc-text-light);
    background: var(--fc-bg-light);
    border-radius: var(--fc-radius-xs);
    padding: 12px 14px;
}

.fc-card__meta li {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fc-card__meta li:last-child {
    margin-bottom: 0;
}

.fc-card__meta strong {
    color: var(--fc-text-muted);
    font-weight: 500;
}

.fc-card__price {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border-radius: var(--fc-radius-xs);
    padding: 14px !important;
    margin: 0 0 16px 0 !important;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

.fc-price {
    color: var(--fc-primary-dark);
    font-weight: 800;
    font-size: 22px;
}

.fc-price-kg {
    color: var(--fc-text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Certifications */
.fc-card__certifs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.fc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--fc-bg-light);
    color: var(--fc-text);
    border: 1px solid var(--fc-border-light);
}

.fc-badge--bio-ab,
.fc-badge--bio-eu {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #A5D6A7;
}

.fc-badge--fair-trade {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #90CAF9;
}

.fc-badge--sans-gluten {
    background: #FFF3E0;
    color: #E65100;
    border-color: #FFCC80;
}

.fc-badge--vegan {
    background: #E8F5E9;
    color: #388E3C;
    border-color: #A5D6A7;
}

.fc-badge--origine-france {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #90CAF9;
}

/* Description */
.fc-card__description {
    font-size: 13px;
    color: var(--fc-text-light);
    margin: 0 0 16px 0;
    line-height: 1.6;
    flex: 1;
}

/* Actions */
.fc-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--fc-transition);
    border: none;
    text-align: center;
}

.fc-btn--primary {
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.fc-btn--primary:hover {
    background: linear-gradient(135deg, var(--fc-primary-dark) 0%, #6B4C00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
}

.fc-btn--secondary {
    background: transparent;
    color: var(--fc-primary);
    border: 2px solid var(--fc-primary);
}

.fc-btn--secondary:hover {
    background: var(--fc-primary);
    color: white;
}

.fc-btn--large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Footer */
.fc-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--fc-border-light);
    font-size: 12px;
}

.fc-card__dispo {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.fc-dispo--en-stock {
    color: var(--fc-success);
    background: rgba(39, 174, 96, 0.1);
}

.fc-dispo--stock-limite {
    color: var(--fc-warning);
    background: rgba(243, 156, 18, 0.1);
}

.fc-dispo--rupture {
    color: var(--fc-error);
    background: rgba(231, 76, 60, 0.1);
}

.fc-dispo--precommande {
    color: #9B59B6;
    background: rgba(155, 89, 182, 0.1);
}

.fc-card__verified {
    color: var(--fc-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Produit unique [fonio_produit]
   ========================================================================== */
.fc-comparateur--single {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
}

.fc-single-product .fc-card {
    margin: 0;
}

.fc-single-product--compact .fc-card {
    padding: 16px;
}

.fc-single-product--compact .fc-card__image {
    height: 120px;
}

.fc-single-product--compact .fc-card__description {
    display: none;
}

.fc-single-product--compact .fc-card__meta {
    font-size: 12px;
}

.fc-comparateur--single.fc-centered {
    margin: 32px auto;
}

/* ==========================================================================
   Page Single Produit
   ========================================================================== */
.fc-single-header {
    background: linear-gradient(135deg, var(--fc-bg-warm) 0%, #FFFBF0 100%);
    border-radius: var(--fc-radius);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

.fc-single-header__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.fc-single-header__image {
    background: white;
    border-radius: var(--fc-radius-sm);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--fc-shadow-sm);
}

.fc-single-header__packshot {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.fc-single-header__placeholder {
    font-size: 80px;
    opacity: 0.3;
}

.fc-single-header__info {
    display: flex;
    flex-direction: column;
}

.fc-single-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fc-single-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--fc-bg);
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
}

.fc-single-badge--type {
    background: var(--fc-primary);
    color: white;
    border-color: var(--fc-primary);
}

.fc-single-badge--bio-ab,
.fc-single-badge--bio-eu {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #A5D6A7;
}

.fc-single-badge--fair-trade {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #90CAF9;
}

.fc-single-badge--sans-gluten {
    background: #FFF3E0;
    color: #E65100;
    border-color: #FFCC80;
}

.fc-single-badge--vegan {
    background: #E8F5E9;
    color: #388E3C;
    border-color: #A5D6A7;
}

.fc-single-badge--origine-france {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #90CAF9;
}

.fc-single-header__brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--fc-text-light);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-single-header__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fc-single-header__rating-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-text);
}

.fc-single-header__price-box {
    background: white;
    border-radius: var(--fc-radius-sm);
    padding: 16px 20px;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: var(--fc-shadow-sm);
    border: 1px solid var(--fc-border-light);
}

.fc-single-header__price {
    font-size: 28px;
    font-weight: 800;
    color: var(--fc-primary-dark);
}

.fc-single-header__price-kg {
    font-size: 14px;
    color: var(--fc-text-muted);
    font-weight: 500;
}

.fc-single-header__specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.fc-single-header__specs th,
.fc-single-header__specs td {
    padding: 10px 0;
    border-bottom: 1px solid var(--fc-border-light);
    text-align: left;
}

.fc-single-header__specs th {
    font-weight: 500;
    color: var(--fc-text-muted);
    width: 120px;
}

.fc-single-header__specs td {
    font-weight: 600;
    color: var(--fc-text);
}

.fc-single-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    transition: all var(--fc-transition);
}

.fc-single-header__cta:hover {
    background: linear-gradient(135deg, var(--fc-primary-dark) 0%, #6B4C00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
}

.fc-single-header__description {
    font-size: 15px;
    color: var(--fc-text-light);
    line-height: 1.7;
    margin: 24px 0 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--fc-border-light);
}

.fc-single-divider {
    border: none;
    height: 1px;
    background: var(--fc-border-light);
    margin: 32px 0;
}

.fc-single__no-content {
    text-align: center;
    color: var(--fc-text-muted);
    padding: 40px 20px;
    background: var(--fc-bg-light);
    border-radius: var(--fc-radius-sm);
}

/* CTA de fin */
.fc-single-cta {
    margin-top: 32px;
}

.fc-single-cta__box {
    background: linear-gradient(135deg, var(--fc-bg-warm) 0%, #FFFBF0 100%);
    border-radius: var(--fc-radius);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

.fc-single-cta__image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.fc-single-cta__content {
    flex: 1;
}

.fc-single-cta__title {
    font-size: 17px;
    color: var(--fc-text);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.fc-single-cta__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   États
   ========================================================================== */
.fc-no-results {
    text-align: center;
    padding: 80px 24px;
    background: var(--fc-bg-light);
    border-radius: var(--fc-radius);
}

.fc-no-results p {
    font-size: 18px;
    color: var(--fc-text-light);
    margin-bottom: 24px;
}

.fc-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--fc-text-muted);
}

.fc-error {
    background: #FEF2F2;
    color: #DC2626;
    padding: 16px 20px;
    border-radius: var(--fc-radius-sm);
    border-left: 4px solid #DC2626;
    font-weight: 500;
}

.fc-card[data-hidden="true"] {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .fc-grid--4cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .fc-layout {
        flex-direction: column;
    }

    .fc-layout--with-sidebar .fc-sidebar {
        position: static;
        flex: none;
        width: 100%;
        max-height: none;
    }

    .fc-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }

    .fc-filters__header {
        width: 100%;
    }

    .fc-filter-group {
        flex: 1;
        min-width: 200px;
    }

    .fc-grid--3cols,
    .fc-grid--4cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-single-header__grid {
        grid-template-columns: 200px 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .fc-comparateur {
        padding: 16px;
    }

    .fc-section--featured {
        padding: 24px;
    }

    .fc-section__title {
        font-size: 22px;
    }

    .fc-grid--2cols,
    .fc-grid--3cols,
    .fc-grid--4cols {
        grid-template-columns: 1fr;
    }

    .fc-card__image {
        height: 180px;
    }

    .fc-filters {
        flex-direction: column;
    }

    .fc-filter-group {
        min-width: 100%;
    }

    .fc-single-header {
        padding: 24px;
    }

    .fc-single-header__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fc-single-header__image {
        margin: 0 auto;
        max-width: 200px;
    }

    .fc-single-header__badges {
        justify-content: center;
    }

    .fc-single-header__price-box {
        justify-content: center;
    }

    .fc-single-header__specs {
        text-align: left;
    }

    .fc-single-header__cta {
        width: 100%;
    }

    .fc-single-cta__box {
        flex-direction: column;
        text-align: center;
    }

    .fc-single-cta__buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fc-card__content {
        padding: 16px 20px 20px;
    }

    .fc-card__actions {
        flex-direction: column;
    }

    .fc-btn {
        width: 100%;
    }

    .fc-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .fc-input--small {
        width: 100%;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .fc-sidebar,
    .fc-search-bar,
    .fc-card__actions,
    .fc-single-header__cta,
    .fc-single-cta {
        display: none;
    }

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

    .fc-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .fc-single-header {
        background: white;
        border: 1px solid #ccc;
    }
}
