.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: separate;
    border-spacing: 0;
    min-width: 800px;
}

.tableau-forfaits th {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 25px 20px;
    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: 2px solid #f8f9fa;
    transition: all 0.3s ease;
    background: white;
}

.ligne-forfait:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ligne-forfait:last-child {
    border-bottom: none;
}

.tableau-forfaits td {
    padding: 30px 20px;
    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: 18px;
    min-width: 140px;
}

.operateur {
    font-weight: 800;
    color: #2c3e50;
}

.cellule-nom {
    color: #666;
    font-size: 16px;
    min-width: 180px;
    font-weight: 600;
}

.nom-forfait {
    font-size: 16px;
    color: #34495e;
    font-weight: 600;
}

.cellule-prix {
    text-align: center;
    min-width: 120px;
}

.prix {
    font-size: 28px;
    font-weight: 800;
    color: #e74c3c;
    line-height: 1.2;
}

.prix .periode {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    margin-top: 5px;
}

.cellule-donnees,
.cellule-appels,
.cellule-sms,
.cellule-engagement {
    min-width: 160px;
}

.valeur-caracteristique {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.valeur-caracteristique .icone {
    font-size: 20px;
    opacity: 0.8;
    width: 24px;
    text-align: center;
}

/* Style spécifique pour les données */
.cellule-donnees .valeur-caracteristique {
    color: #e74c3c;
    font-weight: 700;
}

.cellule-appels .valeur-caracteristique,
.cellule-sms .valeur-caracteristique {
    color: #27ae60;
    font-weight: 600;
}

.cellule-engagement .valeur-caracteristique {
    color: #f39c12;
    font-weight: 600;
}

.cellule-action {
    text-align: center;
    min-width: 140px;
}

.bouton-souscription {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 15px;
    min-width: 120px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bouton-souscription:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

/* Styles pour le filtrage */
.ligne-forfait.cachee {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .tableau-forfaits th,
    .tableau-forfaits td {
        padding: 25px 15px;
    }
    
    .cellule-donnees,
    .cellule-appels,
    .cellule-sms,
    .cellule-engagement {
        min-width: 140px;
    }
}

@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: 20px 12px;
        font-size: 13px;
    }
    
    .prix {
        font-size: 22px;
    }
    
    .valeur-caracteristique {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        font-size: 13px;
    }
    
    .valeur-caracteristique .icone {
        font-size: 18px;
    }
    
    .bouton-souscription {
        padding: 12px 20px;
        font-size: 13px;
        min-width: 100px;
    }
    
    /* Sur mobile, on garde seulement les colonnes essentielles */
    .col-engagement,
    .cellule-engagement,
    .col-sms,
    .cellule-sms {
        display: none;
    }
}

@media (max-width: 480px) {
    .tableau-forfaits th,
    .tableau-forfaits td {
        padding: 15px 8px;
    }
    
    .cellule-operateur,
    .cellule-nom {
        min-width: 100px;
    }
    
    .prix {
        font-size: 18px;
    }
    
    .bouton-souscription {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 80px;
    }
}

/* Animation pour les lignes */
@keyframes apparitionLigne {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ligne-forfait {
    animation: apparitionLigne 0.6s ease forwards;
}

/* Alternance des couleurs de lignes pour meilleure lisibilité */
.ligne-forfait:nth-child(even) {
    background-color: #fafbfc;
}

.ligne-forfait:nth-child(even):hover {
    background-color: #f1f3f4;
}

/* Espacement amélioré entre les lignes */
.tableau-forfaits tbody tr {
    margin-bottom: 10px;
}

/* Style pour les en-têtes de colonnes */
.col-prix {
    text-align: center;
}

.col-action {
    text-align: center;
}

/* Amélioration de la visibilité des séparations */
.tableau-forfaits td {
    border-bottom: 2px solid #f8f9fa;
}

/* Style spécifique pour mettre en valeur les données importantes */
.cellule-donnees {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-left: 3px solid #e74c3c;
}

.cellule-prix {
    background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
    border-left: 3px solid #f39c12;
}


/* Couleurs spécifiques 1001mobiles */
.cellule-donnees .valeur-caracteristique {
    color: #e74c3c;
    font-weight: 700;
    background: rgba(231, 76, 60, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
}

.bouton-souscription {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    font-family: 'Arial', sans-serif;
}

/* En-tête du tableau */
.tableau-forfaits th {
    background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
}

/* Badge 5G */
.valeur-caracteristique .valeur-donnees::after {
    content: " 5G";
    font-size: 12px;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}