/* ============================================
   TABLEAU COMPARATIF - DESIGN PREMIUM HARMONISÉ
   ============================================ */

/* ============================================
   SECTION TITRE - DESIGN PRO & MODERNE
   ============================================ */
.comparison-header {
    text-align: center;
    margin-bottom: 45px;
    padding: 0 20px;
}

.comparison-header-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* Badge au-dessus du titre */
.comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(46, 125, 50, 0.05) 100%);
    color: #2E7D32;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.comparison-badge i {
    font-size: 0.7rem;
}

/* Titre principal */
.comparison-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.comparison-title .highlight {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Diviseur décoratif */
.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2E7D32, transparent);
    border-radius: 2px;
}

.divider-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Conteneur principal */
.comparison-wrapper {
    margin: 30px 0;
    padding: 0;
    border-radius: 0;
    position: relative;
    background: transparent;
    overflow: visible;
}

.comparison-wrapper::before {
    display: none;
}

/* Base du tableau */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 15px;
    text-align: center;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Styles de l'en-tête */
.comparison-table thead th {
    background: linear-gradient(180deg, #2d3436 0%, #1a1a2e 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding: 20px 12px;
    position: relative;
    border: none;
}

.comparison-table thead th:first-child {
    border-radius: 15px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 15px 0 0;
}

/* Clone de l'en-tête fixe */
.comparison-table-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
}

.comparison-table-fixed-header.visible {
    display: block;
}

.comparison-table-fixed-header table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    table-layout: fixed;
    border: none;
}

.comparison-table-fixed-header th {
    padding: 18px 12px;
    text-align: center;
    vertical-align: middle;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: none;
}

/* En-tête des avantages */
.comparison-table .advantage-header,
.comparison-table-fixed-header .advantage-header {
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    text-align: left !important;
    font-weight: 700;
    padding: 20px 20px;
    letter-spacing: 1px;
    width: 40%;
    font-size: 0.85rem;
}

/* En-têtes des packages - Couleurs jaune avec opacité */
.comparison-table .package-header,
.comparison-table-fixed-header .package-header {
    width: 15%;
    position: relative;
    transition: all 0.3s ease;
}

/* Sponsor Officiel - Jaune plein 100% */
.comparison-table .package-header:nth-child(2),
.comparison-table-fixed-header .package-header:nth-child(2) {
    background: linear-gradient(180deg, #F5D021 0%, #d4a700 100%) !important;
    color: #1a1a2e;
}

/* Sponsor Or - Jaune 80% */
.comparison-table .package-header:nth-child(3),
.comparison-table-fixed-header .package-header:nth-child(3) {
    background: linear-gradient(180deg, rgba(245, 208, 33, 0.85) 0%, rgba(212, 167, 0, 0.85) 100%) !important;
    color: #1a1a2e;
}

/* Sponsor Argent - Jaune 60% */
.comparison-table .package-header:nth-child(4),
.comparison-table-fixed-header .package-header:nth-child(4) {
    background: linear-gradient(180deg, rgba(245, 208, 33, 0.65) 0%, rgba(212, 167, 0, 0.65) 100%) !important;
    color: #1a1a2e;
}

/* Sponsor Bronze - Jaune 40% */
.comparison-table .package-header:nth-child(5),
.comparison-table-fixed-header .package-header:nth-child(5) {
    background: linear-gradient(180deg, rgba(245, 208, 33, 0.45) 0%, rgba(212, 167, 0, 0.45) 100%) !important;
    color: #1a1a2e;
}

/* Nom et prix du package */
.package-name {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.package-price {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Prix sur fond jaune */
.comparison-table .package-header .package-price,
.comparison-table-fixed-header .package-header .package-price {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
}

/* En-têtes de groupe - Accent jaune */
.group-header td {
    background: linear-gradient(90deg, rgba(245, 208, 33, 0.12) 0%, rgba(245, 208, 33, 0.06) 100%);
    font-weight: 800;
    color: #8b6914;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    padding: 14px 20px;
    text-align: left !important;
    position: relative;
}

.group-header td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #F5D021, #d4a700);
}

/* Lignes des avantages */
.advantage-row {
    transition: all 0.3s ease;
}

.advantage-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.advantage-row:hover {
    background: linear-gradient(90deg, rgba(245, 208, 33, 0.06) 0%, rgba(245, 208, 33, 0.03) 100%);
    transform: scale(1.002);
}

/* Nom de l'avantage - Aligné à gauche */
.advantage-name {
    text-align: left !important;
    text-align-last: left !important;
    font-size: 0.9rem;
    color: #2d3436;
    padding: 15px 15px 15px 28px !important;
    font-weight: 500;
    line-height: 1.5;
    width: 40%;
    position: relative;
    word-wrap: break-word;
}

.advantage-name::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: #d4a700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Icônes de statut */
.advantage-status {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 15%;
    position: relative;
}

.advantage-status:hover {
    transform: scale(1.3);
}

.advantage-status.included {
    color: #2E7D32;
}

.advantage-status.included i {
    filter: drop-shadow(0 0 8px rgba(46, 125, 50, 0.3));
}

/* Non inclus - Couleur plus visible */
.advantage-status.not-included {
    color: #e0e0e0;
}

.advantage-status.not-included i {
    opacity: 1;
}

/* Quantités de badges - Vert pour les check */
.badge-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    box-shadow: 
        0 4px 15px rgba(46, 125, 50, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5); }
}

/* Pied du tableau */
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 15px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 15px 0;
}

/* ============================================
   DESIGN RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .comparison-table,
    .comparison-table-fixed-header table {
        font-size: 0.85rem;
    }
    
    .advantage-name {
        font-size: 0.85rem;
    }
    
    .package-name {
        font-size: 0.7rem;
    }
    
    .package-price {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 992px) {
    .comparison-table,
    .comparison-table-fixed-header table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td,
    .comparison-table-fixed-header th {
        padding: 12px 8px;
    }
    
    .package-name {
        font-size: 0.65rem;
    }
    
    .package-price {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .advantage-name {
        padding: 12px 10px 12px 22px !important;
        font-size: 0.8rem;
    }
    
    .advantage-name::before {
        left: 8px;
    }
    
    .badge-quantity {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .group-header td {
        font-size: 0.7rem;
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .comparison-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .comparison-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
        letter-spacing: 1.5px;
    }
    
    .comparison-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .divider-line {
        width: 40px;
    }
    
    .divider-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .comparison-wrapper {
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .comparison-wrapper::before {
        border-radius: 0;
    }
    
    .comparison-section-title h2 {
        font-size: 1.5rem;
    }
    
    .comparison-section-title p {
        font-size: 0.9rem;
    }
    
    .comparison-table,
    .comparison-table-fixed-header table {
        font-size: 0.75rem;
    }
    
    .comparison-table th,
    .comparison-table td,
    .comparison-table-fixed-header th {
        padding: 10px 6px;
    }
    
    .comparison-table thead th:first-child,
    .comparison-table thead th:last-child {
        border-radius: 0;
    }
    
    .package-name {
        font-size: 0.6rem;
    }
    
    .package-price {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
    
    .advantage-name {
        font-size: 0.75rem;
        padding: 10px 8px 10px 18px !important;
    }
    
    .advantage-name::before {
        left: 5px;
        font-size: 0.9rem;
    }
    
    .badge-quantity {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .group-header td {
        font-size: 0.65rem;
        padding: 10px 12px;
    }
    
    .advantage-status {
        font-size: 1rem;
    }
}
