/* Styles spécifiques au simulateur */

/* Section simulateur */
.simulator-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-secondary);
}

/* Sélecteur de service */
.service-selector {
    margin-bottom: var(--spacing-2xl);
}

.service-selector h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.service-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left var(--transition-slow);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card.active {
    border-color: var(--hub-blue);
    background: linear-gradient(135deg, var(--hub-blue), var(--hub-light-blue));
    color: white;
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.service-card h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.service-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

/* Panneau de configuration */
.config-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 400px;
    gap: var(--spacing-2xl);
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--card-shadow);
}

.config-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.config-center {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.config-center h3,
.config-left h3,
.config-right h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--hub-orange);
}

.config-group {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.config-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

/* Sliders personnalisés */
.slider-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Styles pour les sliders en mode sombre */
[data-theme="dark"] .slider {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .slider::-webkit-slider-thumb {
    background: #ffffff;
}

[data-theme="dark"] .slider::-webkit-slider-thumb:hover {
    background: #f0f0f0;
}

[data-theme="dark"] .slider::-moz-range-thumb {
    background: #ffffff;
}

[data-theme="dark"] .slider::-moz-range-thumb:hover {
    background: #f0f0f0;
}

.slider-value {
    min-width: 60px;
    width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    background: var(--card-bg);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    -moz-appearance: textfield; /* Firefox */
}

/* Masquer les flèches pour Chrome, Safari, Edge, Opera */
.slider-value::-webkit-outer-spin-button,
.slider-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-value:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

/* Groupe de checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.student-discount {
    background: linear-gradient(135deg, var(--hub-orange), var(--hub-dark-red));
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    margin-top: var(--spacing-lg);
}

.student-discount .checkmark {
    border-color: rgba(255, 255, 255, 0.5);
}

.student-discount input[type="checkbox"]:checked + .checkmark {
    background-color: white;
    border-color: white;
}

.student-discount input[type="checkbox"]:checked + .checkmark::after {
    color: var(--hub-orange);
}

/* Offres prédéfinies */
.predefined-offer {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.predefined-offer:hover {
    border-color: var(--hub-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.predefined-offer.recommended {
    border-color: var(--hub-orange);
    background: linear-gradient(135deg, rgba(255, 72, 0, 0.05), rgba(255, 72, 0, 0.1));
}

.predefined-offer.recommended::before {
    content: '⭐ Recommandé';
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--hub-orange);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.offer-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.offer-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--hub-orange);
}

.offer-specs {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.offer-spec {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.offer-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Offre sur mesure */
.custom-offer {
    border: 2px solid var(--hub-orange);
    background: linear-gradient(135deg, rgba(255, 72, 0, 0.05), rgba(255, 72, 0, 0.1));
    position: relative;
}

.custom-offer::before {
    content: '✨ Personnalisé';
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--hub-orange);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.custom-offer:hover {
    border-color: var(--hub-dark-red);
    background: linear-gradient(135deg, rgba(255, 72, 0, 0.1), rgba(224, 63, 0, 0.15));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.custom-offer .offer-name {
    color: var(--hub-orange);
    font-weight: 700;
}

.custom-offer .offer-price {
    color: var(--hub-dark-red);
    font-weight: 800;
}

.custom-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.offer-price-first {
    color: var(--hub-dark-red);
    font-weight: 800;
    font-size: var(--font-size-lg);
}

.offer-price-after {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Affichage des prix */
.config-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.price-display {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--card-shadow);
}



.price-display h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--text-primary);
}

.price-breakdown {
    margin-bottom: var(--spacing-lg);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-base);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.discount {
    color: var(--success-color);
    font-weight: 600;
}

.price-total {
    background: var(--hub-blue);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-lg) 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.price-annual {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.price-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.price-info small {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

/* Recommandations */
.recommendations {
    background: linear-gradient(135deg, var(--hub-light-blue), var(--hub-blue));
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.recommendations h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.recommendations p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    opacity: 0.9;
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.recommendation-item strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

.recommendation-item.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.recommendation-item.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.recommendation-item.info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.recommendation-item.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Section de comparaison */
.comparison-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.comparison-panel {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--card-shadow);
    overflow: visible;
    position: relative;
    padding-top: 40px;
}

.comparison-empty {
    text-align: center;
    padding: var(--spacing-3xl);
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    display: block;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* Table de comparaison */
.comparison-table {
    overflow-x: auto;
    margin-top: 35px;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Pour une meilleure expérience de défilement sur iOS */
}

.comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    position: relative;
    min-width: 650px; /* Largeur minimale pour éviter une compression excessive */
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 160px; /* Largeur minimale pour éviter le texte trop serré */
}

/* Style spécifique pour les cellules de titre (première colonne) */
.comparison-table .row-label {
    font-size: var(--font-size-md);
    color: var(--text-primary);
    padding-left: var(--spacing-xl);
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--hub-blue);
}

.comparison-table th {
    background: var(--hub-blue);
    color: white;
    font-weight: 700; /* Plus gras pour une meilleure lisibilité */
    font-size: var(--font-size-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px; /* Améliore la lisibilité du texte blanc sur fond bleu */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); /* Ajoute une légère ombre pour améliorer la lisibilité */
}

.comparison-table td {
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
    padding: var(--spacing-lg) var(--spacing-xl); /* Plus d'espace horizontal */
    vertical-align: middle; /* Alignement vertical centré */
}

/* Style pour les cellules de valeur */
.comparison-table .config-value {
    font-weight: 500; /* Un peu plus gras pour une meilleure lisibilité */
    color: var(--text-primary);
}

.comparison-table tr:hover td {
    background-color: rgba(var(--hub-blue-rgb), 0.08); /* Couleur de survol légèrement plus prononcée */
    box-shadow: inset 0 0 0 1px rgba(var(--hub-blue-rgb), 0.1); /* Légère bordure intérieure */
}

/* Style spécial pour la première cellule au survol */
.comparison-table tr:hover td:first-child {
    background-color: rgba(var(--hub-blue-rgb), 0.12); /* Plus prononcé pour la cellule de titre */
    border-left-color: var(--hub-orange); /* Change la couleur de la bordure gauche au survol */
}

/* Style pour la ligne d'en-tête (première ligne du tableau) */
.comparison-table .header-row td {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: var(--font-size-md);
}

.comparison-table .header-row td:first-child {
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--hub-orange);
    color: var(--hub-blue);
}

.comparison-table .price-row td {
    font-weight: 700;
    color: var(--hub-orange);
    font-size: var(--font-size-lg);
    background-color: rgba(var(--hub-orange-rgb), 0.05);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.annual-savings {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--success-color);
    margin-top: 4px;
}

.config-header {
    text-align: center;
    position: relative;
    min-width: 180px; /* Réduit de 200px à 180px pour mieux s'adapter aux petits écrans */
    transition: all 0.3s ease;
    padding-top: 5px;
    padding-bottom: 5px;
}

.config-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* Réduit de 8px à 4px */
    padding: 5px 0; /* Ajout d'un padding vertical réduit */
}

.service-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Réduit de 4px à 2px */
}

.service-icon {
    font-size: 1.3rem; /* Réduit de 1.5rem à 1.3rem */
    margin-bottom: 2px; /* Réduit de 4px à 2px */
}

.service-name {
    font-weight: 700;
    font-size: 0.95rem; /* Légèrement plus petit */
}

.service-info small {
    font-size: 0.8rem; /* Taille réduite pour le nom de l'offre */
    opacity: 0.8; /* Légèrement plus transparent */
    margin-top: -2px; /* Rapproche du nom du service */
}

.config-price {
    font-size: 1.1rem; /* Réduit de 1.2rem à 1.1rem */
    font-weight: 700;
    color: var(--hub-orange);
    margin: 4px 0; /* Réduit de 8px à 4px */
    display: flex;
    flex-direction: row; /* Changé de column à row */
    align-items: center;
    gap: 4px; /* Espacement entre le prix et la période */
}

.price-period {
    font-size: 0.7rem; /* Réduit de 0.75rem à 0.7rem */
    font-weight: normal;
    color: var(--text-secondary);
    margin-top: 0; /* Supprimé la marge */
}

/* Style pour le bouton de suppression */
.remove-config {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 1;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.remove-config:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.best-value {
    background: #2c3e50 !important; /* Fond sombre, indépendamment du thème */
    position: relative;
    overflow: visible !important;
    color: white !important; /* Texte blanc pour tous les éléments */
    border-top: 2px solid var(--hub-orange) !important; /* Bordure orange en haut */
}

.best-value .config-price {
    color: white !important; /* Prix en blanc */
    font-size: 1.1rem;
}

.best-value .price-period {
    color: rgba(255, 255, 255, 0.7) !important; /* Période en blanc semi-transparent */
}

.best-value .config-header-content {
    position: relative;
    z-index: 2;
}

/* Style pour tous les textes dans la colonne best value */
.best-value .service-name,
.best-value .service-info small {
    color: white !important; /* Texte blanc */
}

.best-value .service-name {
    font-weight: 800; /* Un peu plus gras pour se démarquer */
}

.best-value .service-info small {
    opacity: 0.7; /* Semi-transparent pour la hiérarchie visuelle */
}

/* Style pour les cellules du tableau dans la colonne best value */
.comparison-table td.best-value-cell {
    background-color: #2c3e50 !important;
    color: white !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Style pour les valeurs spéciales dans la colonne best value */
.comparison-table td.best-value-cell strong {
    color: white !important;
}

/* Style pour les icônes dans la colonne best value */
.comparison-table td.best-value-cell .annual-savings {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Style pour le survol des cellules dans la colonne best value */
.comparison-table tr:hover td.best-value-cell {
    background-color: #34495e !important; /* Bleu un peu plus clair au survol */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.best-value-ribbon {
    background-color: var(--hub-orange); /* Fond orange */
    color: #fff; /* Texte blanc */
    font-size: 0.8rem;
    padding: 4px 8px;
    margin-bottom: 5px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700; /* Un peu plus gras pour meilleure lisibilité */
    width: calc(100% - 10px);
    text-align: center;
    position: relative;
    z-index: 5;
    border: none; /* Suppression de la bordure */
    letter-spacing: 0.2px;
}

.comparison-tag {
    background: var(--hub-orange);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.comparison-actions button {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

.comparison-actions .btn-secondary {
    background-color: #f5f5f5;
    color: #000; /* Couleur noire fixe pour le texte, indépendamment du thème */
    border: 1px solid var(--border-color);
}

.comparison-actions .btn-secondary:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
}

.comparison-actions .btn-primary {
    background-color: var(--hub-orange);
    color: white;
    position: relative;
    overflow: hidden;
}

.comparison-actions .btn-primary:hover {
    background-color: var(--hub-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.comparison-actions .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.comparison-actions .btn-primary:hover:before {
    left: 100%;
}

/* Responsive pour le simulateur */
@media (max-width: 1200px) {
    .config-panel {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 1024px) {
    .config-panel {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .config-panel {
        padding: var(--spacing-lg);
    }
    
    .slider-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .slider-value {
        min-width: auto;
        width: 100%;
    }
    
    /* Nouvelle mise en page pour le tableau de comparaison sur mobile */
    .comparison-table {
        margin: 0;
        width: 100%;
        overflow-x: visible;
    }
    
    /* Masquer le tableau standard sur mobile */
    .comparison-table table {
        display: none;
    }
    
    /* Créer un conteneur pour les cartes de comparaison */
    .comparison-table:after {
        content: none; /* Supprimer l'indicateur de défilement */
    }
    
    /* Afficher les cartes de comparaison mobile */
    .mobile-comparison-cards {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    /* Style pour chaque carte de configuration */
    .mobile-config-card {
        background: var(--card-bg);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--card-shadow);
        overflow: hidden;
        border: 1px solid var(--border-color);
    }
    
    /* En-tête de la carte */
    .mobile-card-header {
        background: var(--hub-blue);
        color: white;
        padding: var(--spacing-md);
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    /* Contenu de la carte */
    .mobile-card-content {
        padding: var(--spacing-md);
    }
    
    /* Ligne de spécification */
    .mobile-spec-row {
        display: flex;
        justify-content: space-between;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-spec-row:last-child {
        border-bottom: none;
    }
    
    .mobile-spec-label {
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .mobile-spec-value {
        text-align: right;
        color: var(--text-secondary);
    }
    
    /* Style pour la meilleure valeur */
    .mobile-config-card.best-value .mobile-card-header {
        background: #2c3e50 !important;
        border-top: 2px solid var(--hub-orange) !important;
        color: white !important; /* Forcer le texte en blanc pour tous les thèmes */
    }
    
    /* S'assurer que tous les éléments textuels dans l'en-tête sont en blanc */
    .mobile-config-card.best-value .mobile-card-header *:not(button) {
        color: white !important;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Styles spécifiques pour chaque élément avec !important pour surcharger tous les autres styles */
    .mobile-config-card.best-value .mobile-best-value-ribbon {
        color: white !important;
        background-color: var(--hub-orange) !important;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
        font-weight: bold !important;
    }
    
    .mobile-config-card.best-value .service-name {
        color: white !important;
    }
    
    .mobile-config-card.best-value .service-icon {
        color: white !important;
    }
    
    .mobile-config-card.best-value .config-price {
        color: white !important;
    }
    
    .mobile-config-card.best-value small {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .mobile-config-card.best-value .price-period {
        color: rgba(255, 255, 255, 0.8) !important;
        opacity: 0.8;
    }
    
    /* Utiliser une règle avec une spécificité plus élevée pour surcharger d'autres styles potentiels */
    body .mobile-comparison-cards .mobile-config-card.best-value .mobile-best-value-ribbon {
        color: white !important;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Styles pour les lignes de spécifications dans la carte "meilleure valeur" */
    .mobile-config-card.best-value .mobile-card-content .mobile-spec-row .mobile-spec-label,
    .mobile-config-card.best-value .mobile-card-content .mobile-spec-row .mobile-spec-value {
        color: white !important;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Style pour le conteneur de contenu */
    .mobile-config-card.best-value .mobile-card-content {
        background-color: #2c3e50 !important;
        color: white !important;
    }
    
    /* Style pour les lignes de spécifications */
    .mobile-config-card.best-value .mobile-spec-row {
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Style pour la section de prix */
    .mobile-config-card.best-value .mobile-price-row {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }
    
    .mobile-config-card.best-value .mobile-price-row div,
    .mobile-config-card.best-value .mobile-price-row strong {
        color: white !important;
    }
    
    .mobile-config-card.best-value .mobile-price-row .annual-savings {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .mobile-config-card.best-value .mobile-best-value-ribbon {
        background-color: var(--hub-orange);
        color: white !important; /* Forcer le texte en blanc pour tous les thèmes */
        font-size: 0.8rem;
        padding: 4px 8px;
        border-radius: 3px;
        font-weight: 700;
        margin-bottom: var(--spacing-xs);
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); /* Ajouter une ombre pour améliorer la lisibilité */
    }
    
    /* Style pour les prix */
    .mobile-price-row {
        font-weight: 700;
        color: var(--hub-orange);
        font-size: var(--font-size-lg);
        background-color: rgba(var(--hub-orange-rgb), 0.05);
        padding: var(--spacing-sm);
        margin-top: var(--spacing-md);
        border-radius: var(--border-radius-md);
        text-align: center;
    }
    
    /* Bouton de suppression */
    .mobile-remove-config {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 12px;
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .comparison-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }
    
    .comparison-actions button {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations spécifiques */
.config-panel {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les très petits écrans */
@media (max-width: 480px) {
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 120px; /* Encore plus petit pour les très petits écrans */
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm) var(--spacing-xs); /* Padding minimal */
        font-size: 0.9rem; /* Texte plus petit */
    }
    
    .config-header {
        min-width: 150px; /* Réduire encore la largeur minimale */
    }
    
    .service-icon {
        font-size: 1.1rem; /* Icône plus petite */
    }
    
    .service-name {
        font-size: 0.85rem; /* Nom de service plus petit */
    }
    
    .config-price {
        font-size: 0.95rem; /* Prix plus petit */
    }
    
    .best-value-ribbon {
        font-size: 0.7rem; /* Ruban plus petit */
        padding: 3px 6px;
    }
}

.service-card {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* États de transition */
.price-updating {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.recommendation-updating {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

/* Styles pour les très petits écrans */
@media (max-width: 480px) {
    /* Styles pour les cartes mobiles sur très petits écrans */
    .mobile-card-header {
        padding: var(--spacing-sm);
    }
    
    .mobile-card-content {
        padding: var(--spacing-sm);
    }
    
    .mobile-spec-row {
        padding: var(--spacing-xs) 0;
        font-size: 0.9rem;
    }
    
    .mobile-price-row {
        font-size: 0.95rem;
        padding: var(--spacing-xs);
    }
    
    .mobile-best-value-ribbon {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .service-icon {
        font-size: 1.1rem;
    }
    
    .service-name {
        font-size: 0.85rem;
    }
    
    .config-price {
        font-size: 0.95rem;
    }
    
    .annual-savings {
        font-size: 0.75rem;
    }
}

/* Styles spécifiques pour le thème clair */
:root[data-theme="light"] .mobile-config-card.best-value .mobile-best-value-ribbon,
html:not([data-theme="dark"]) .mobile-config-card.best-value .mobile-best-value-ribbon {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Styles spécifiques pour le thème clair - tous les éléments dans l'en-tête */
:root[data-theme="light"] .mobile-config-card.best-value .mobile-card-header *:not(button),
html:not([data-theme="dark"]) .mobile-config-card.best-value .mobile-card-header *:not(button) {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Styles spécifiques pour le thème clair - tous les éléments dans le contenu */
:root[data-theme="light"] .mobile-config-card.best-value .mobile-card-content *,
html:not([data-theme="dark"]) .mobile-config-card.best-value .mobile-card-content * {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Styles spécifiques pour le thème clair - ajustements pour certains éléments */
:root[data-theme="light"] .mobile-config-card.best-value .annual-savings,
html:not([data-theme="dark"]) .mobile-config-card.best-value .annual-savings {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Règle générale pour s'assurer que tous les textes sont en blanc */
:root[data-theme="light"] .mobile-config-card.best-value,
html:not([data-theme="dark"]) .mobile-config-card.best-value {
    color-scheme: dark !important; /* Force le mode sombre pour tous les éléments */
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Styles spécifiques pour le thème sombre */
[data-theme="dark"] .service-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .service-card.active {
    background: linear-gradient(135deg, var(--hub-blue), var(--hub-light-blue)) !important;
    color: white !important;
}

[data-theme="dark"] .config-panel {
    background-color: var(--card-bg) !important;
    box-shadow: var(--card-shadow) !important;
}

[data-theme="dark"] .config-group {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .price-display {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary)) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}

[data-theme="dark"] .comparison-panel {
    background-color: var(--bg-secondary) !important;
    box-shadow: var(--card-shadow) !important;
}

[data-theme="dark"] .comparison-table table {
    background-color: var(--card-bg) !important;
    box-shadow: var(--card-shadow) !important;
}

[data-theme="dark"] .comparison-table tr:hover {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .slider-value {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-accent) !important;
}

[data-theme="dark"] .tooltip::after {
    background-color: var(--bg-accent) !important;
    color: var(--text-light) !important;
}