/* Comparatifs Page Styles */

.comparatifs-hero {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.comparatifs-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.comparatifs-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.comparatifs-content {
    padding: 4rem 0;
    background: var(--light-gray);
}

.comparison-section {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.comparison-intro {
    margin-bottom: 2rem;
}

.comparison-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.comparison-table thead {
    background: var(--secondary-color);
    color: white;
}

.comparison-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: var(--light-gray);
}

.comparison-table tbody tr.winner {
    background: #fff9e6;
}

.comparison-table tbody tr.winner:hover {
    background: #fff3d0;
}

.comparison-table td {
    padding: 1.2rem 1rem;
}

.product-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-cell strong {
    font-size: 1.05rem;
    color: var(--secondary-color);
}

.badge-winner, .badge-runner, .badge-budget {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.badge-winner {
    background: #ffd700;
    color: #333;
}

.badge-runner {
    background: #c0c0c0;
    color: #333;
}

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

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating {
    color: #ffa41c;
    font-weight: 600;
}

.badge-good {
    background: var(--success-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-ok {
    background: var(--warning-color);
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.btn-small {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-small:hover {
    background: #c11e24;
    transform: translateY(-2px);
}

/* Verdict */
.comparison-verdict {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.comparison-verdict h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.comparison-verdict p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Comparison Cards */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-card.winner-card {
    border-color: #ffd700;
    background: linear-gradient(to bottom, #fffef7 0%, white 100%);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #333;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-badge.runner-up {
    background: #c0c0c0;
}

.card-badge.budget {
    background: var(--success-color);
    color: white;
}

.comparison-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 1rem 0;
    text-align: center;
}

.card-price {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-rating {
    text-align: center;
    color: #ffa41c;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.features-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

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

.pros-cons {
    margin: 1.5rem 0;
}

.pros, .cons {
    margin-bottom: 1rem;
}

.pros strong {
    color: var(--success-color);
    display: block;
    margin-bottom: 0.5rem;
}

.cons strong {
    color: #e74c3c;
    display: block;
    margin-bottom: 0.5rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

.pros li, .cons li {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    line-height: 1.5;
}

.comparison-card .btn-primary,
.comparison-card .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Budget Comparison */
.budget-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.budget-tier {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.budget-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.budget-tier.recommended {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(to bottom, #fff5f5 0%, white 100%);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(232,33,39,0.3);
}

.budget-tier h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.tier-content p {
    text-align: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.tier-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tier-content li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-content li:last-child {
    border-bottom: none;
}

.tier-total {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.budget-tier .btn-primary,
.budget-tier .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .comparatifs-hero h1 {
        font-size: 2rem;
    }
    
    .comparatifs-hero p {
        font-size: 1.1rem;
    }
    
    .comparison-section {
        padding: 1.5rem;
    }
    
    .comparison-section h2 {
        font-size: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .budget-comparison {
        grid-template-columns: 1fr;
    }
}
