.comparateur-forfaits {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.filtres {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filtres input,
.filtres select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.filtres input:focus,
.filtres select:focus {
    outline: none;
    border-color: #3498db;
}

/* Style pour le tableau vertical */
.tableau-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tableau-forfaits {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.tableau-forfaits th {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.tableau-forfaits th:last-child {
    border-right: none;
}

.ligne-forfait {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.ligne-forfait:hover {
    background-color: #f8f9fa;
}

.ligne-forfait:last-child {
    border-bottom: none;
}

.tableau-forfaits td {
    padding: 20px 15px;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.tableau-forfaits td:last-child {
    border-right: none;
}

/* Styles spécifiques pour chaque colonne */
.cellule-operateur {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    min-width: 120px;
}

.cellule-nom {
    color: #666;
    font-size: 14px;
    min-width: 150px;
}

.cellule-prix {
    text-align: center;
    min-width: 100px;
}

.prix {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1.2;
}

.prix .periode {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-top: 2px;
}

.cellule-donnees,
.cellule-appels,
.cellule-sms,
.cellule-engagement {
    min-width: 140px;
}

.valeur-caracteristique {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.valeur-caracteristique .icone {
    font-size: 16px;
    opacity: 0.7;
}

.cellule-action {
    text-align: center;
    min-width: 120px;
}

.bouton-souscription {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.bouton-souscription:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    color: white;
    text-decoration: none;
}

/* Styles pour le filtrage */
.ligne-forfait.cachee {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .tableau-container {
        border-radius: 8px;
        margin: 0 -10px;
    }
    
    .filtres {
        flex-direction: column;
        align-items: stretch;
        margin: 0 10px 20px 10px;
    }
    
    .filtres input,
    .filtres select {
        min-width: auto;
        width: 100%;
    }
    
    .tableau-forfaits th,
    .tableau-forfaits td {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .prix {
        font-size: 18px;
    }
    
    .valeur-caracteristique {
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }
    
    .bouton-souscription {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .col-engagement,
    .cellule-engagement {
        display: none;
    }
}

/* Animation pour les lignes */
@keyframes apparitionLigne {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ligne-forfait {
    animation: apparitionLigne 0.5s ease forwards;
}

/* Alternance des couleurs de lignes */
.ligne-forfait:nth-child(even) {
    background-color: #fafafa;
}

.ligne-forfait:nth-child(even):hover {
    background-color: #f0f0f0;
}