/* Nouveau tableau comparatif Balafenn vs IA Généraliste */

.differentiation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gris-clair) 0%, white 100%);
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* En-tête du tableau */
.comparison-header-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #2d4a7c 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.criteria-column {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

.solution-column {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.solution-column.negative {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.solution-column.positive {
    background: linear-gradient(135deg, var(--dore) 0%, #c9a055 100%);
}

.solution-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-titre);
}

.solution-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 4px;
}

/* Lignes du tableau */
.comparison-row-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.comparison-row-new:last-child {
    border-bottom: none;
}

.comparison-row-new:hover {
    background-color: #fafbfc;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Cellule des critères */
.criteria-cell {
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--bleu-nuit);
    font-size: 16px;
    border-right: 1px solid #e9ecef;
}

.criteria-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.criteria-text {
    flex: 1;
}

/* Cellules des valeurs */
.value-cell {
    padding: 25px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.6;
    position: relative;
}

.value-cell.negative {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    color: #d32f2f;
    border-right: 1px solid #ffebee;
}

.value-cell.positive {
    background: linear-gradient(135deg, #f8f5ee 0%, #f0e9dc 100%);
    color: #2e7d32;
}

.value-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-content {
    flex: 1;
}

.value-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-titre);
}

.value-description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* CTA du tableau */
.comparison-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.comparison-cta p {
    font-size: 20px;
    color: var(--bleu-nuit);
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.6;
}

.comparison-cta .button {
    font-size: 18px;
    padding: 18px 40px;
    border-radius: 8px;
}

/* Animations */
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.comparison-row-new:nth-child(2) { animation: slideInFromLeft 0.6s ease-out 0.1s both; }
.comparison-row-new:nth-child(3) { animation: slideInFromLeft 0.6s ease-out 0.2s both; }
.comparison-row-new:nth-child(4) { animation: slideInFromLeft 0.6s ease-out 0.3s both; }
.comparison-row-new:nth-child(5) { animation: slideInFromLeft 0.6s ease-out 0.4s both; }
.comparison-row-new:nth-child(6) { animation: slideInFromLeft 0.6s ease-out 0.5s both; }
.comparison-row-new:nth-child(7) { animation: slideInFromLeft 0.6s ease-out 0.6s both; }

/* Styles responsifs */
@media (max-width: 992px) {
    .comparison-container {
        margin: 0 20px 60px;
    }
}

@media (max-width: 768px) {
    .comparison-container {
        border-radius: 12px;
        margin: 0 10px 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .comparison-header-new {
        grid-template-columns: 1fr;
    }
    
    .comparison-row-new {
        grid-template-columns: 1fr;
        display: block;
    }
    
    .criteria-cell {
        background: var(--bleu-nuit);
        color: white;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .value-cell {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .value-cell:last-child {
        border-bottom: none;
    }
    
    .comparison-cta {
        margin: 20px 10px 0;
        border-radius: 12px;
        padding: 30px 20px;
    }
    
    .comparison-cta p {
        font-size: 18px;
    }
}
