/* ============================================
   COMPARAISON PAGE STYLES
   Secure Exchanges — Charte v9
   Depends on design-system.css (tokens)
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.hero-compare {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: var(--se-white);
    padding: 70px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-compare::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: none;
    pointer-events: none;
}

.hero-compare h1 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--se-white);
}

.hero-compare h1 span {
    color: var(--se-orange);
}

.hero-compare .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-compare .hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-compare .hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    color: var(--se-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-compare .hero-badge i {
    color: var(--se-orange);
}

/* ============================================
   Tabs Navigation
   ============================================ */
.compare-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -35px;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.tab-btn {
    background: var(--se-white);
    border: none;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--se-navy);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
    color: var(--se-white);
    box-shadow: var(--shadow-orange);
}

/* ============================================
   Compare Section
   ============================================ */
.compare-section {
    padding: 0 0 var(--space-2xl);
}

/* ============================================
   Comparison Table (dynamic renderer)
   ============================================ */

/* ---- Outer container ---- */
.ct-outer {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--se-white);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--se-gray-light);
    font-size: 14px;
    vertical-align: middle;
}

/* ---- Header ---- */
.comparison-table thead th {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: var(--se-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 20px 14px 18px;
    vertical-align: top;
}

/* First col header: white, empty, no navy */
.comparison-table thead th:first-child {
    background: var(--se-white);
    border-radius: var(--radius-xl) 0 0 0;
    text-align: left;
    width: 260px;
    min-width: 260px;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius-xl) 0 0;
}

.comparison-table thead th.se-column {
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
    min-width: 180px;
}

/* Header cell inner elements */
.ct-head { text-align: center; }

.ct-rec-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.ct-comp-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ct-comp-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.ct-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
    vertical-align: middle;
}

.ct-comp-price {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.ct-comp-eur {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.ct-comp-note {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    line-height: 1.3;
    margin-bottom: 6px;
}

.ct-comp-tags {
    display: block;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Feature name column — no special header class needed */
.ct-feature-col {
    text-align: left !important;
}

.ct-feature-name {
    text-align: left !important;
    font-weight: 600;
    color: var(--se-navy);
    background: var(--se-offwhite);
    white-space: nowrap;
}

/* ---- Body cells ---- */
.ct-cell {
    text-align: center;
}

.ct-cell.se-column {
    background: var(--se-orange-bg);
}

/* Category header row */
.ct-cat-row td {
    background: var(--se-navy) !important;
    color: var(--se-white);
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 18px;
    border-bottom: none;
}

/* Price row */
.ct-price-row td {
    background: rgba(238, 101, 37, 0.04);
    border-top: 2px solid var(--se-gray-light);
}

.ct-price-label {
    font-weight: 700 !important;
    color: var(--se-orange) !important;
}

.ct-price-label i {
    margin-right: 6px;
    opacity: 0.7;
}

/* Summary row */
.ct-summary-row td {
    border-top: 3px solid var(--se-orange);
    background: rgba(238, 101, 37, 0.06);
    padding-top: 16px;
    padding-bottom: 16px;
}

.ct-summary-label {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--se-navy) !important;
}

.ct-summary-cell {
    font-weight: 700;
}

/* ---- Value renderers ---- */
.ct-yes {
    color: var(--se-success, #22c55e);
    font-size: 1.25rem;
}

.ct-dash {
    color: var(--se-gray-light, #ccc);
    font-size: 1.1rem;
}

.ct-partial {
    color: var(--se-warning, #f59e0b);
    font-size: 1.15rem;
}

.ct-badge {
    display: inline-block;
    background: var(--se-offwhite, #f5f5f5);
    color: var(--se-navy);
    padding: 3px 10px;
    border-radius: var(--radius-sm, 4px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.ct-note {
    display: block;
    font-size: 10px;
    color: var(--se-gray, #888);
    line-height: 1.3;
    margin-top: 2px;
}

.ct-note.ct-bold {
    font-weight: 700;
    color: var(--se-navy);
    font-size: 11px;
}

.ct-note.ct-sub {
    font-style: italic;
    opacity: 0.7;
}

.ct-note.ct-eur {
    opacity: 0.6;
}

.ct-price {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--se-navy);
    line-height: 1.3;
}

/* SE column price highlight */
.se-column .ct-price {
    color: var(--se-orange);
}

/* "Inclus **" in SE column — no background, green text */
.se-column .ct-badge {
    background: none;
    color: var(--se-success, #22c55e);
    font-weight: 700;
    font-size: 13px;
    padding: 0;
}

/* ---- Hover ---- */
.comparison-table tbody tr:hover {
    background: var(--se-orange-bg);
}
.comparison-table tbody tr.ct-cat-row:hover td {
    background: var(--se-navy) !important;
}

/* Last row rounding — only when no callout follows */
.ct-outer:not(:has(.ct-callout)) .comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-xl);
}
.ct-outer:not(:has(.ct-callout)) .comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-xl) 0;
}

/* ---- Pagination nav ---- */
.ct-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 18px;
    background: var(--se-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.ct-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle, 50%);
    border: 2px solid var(--se-navy);
    background: var(--se-white);
    color: var(--se-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ct-nav-btn:hover:not(.ct-nav-disabled) {
    background: var(--se-navy);
    color: var(--se-white);
}

.ct-nav-btn.ct-nav-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.ct-nav-info {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--se-gray, #888);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Right-edge arrow column in table */
.ct-arrow-col {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 0 !important;
    vertical-align: middle !important;
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%) !important;
}

.ct-arrow-cell {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 0 !important;
    background: var(--se-offwhite);
    border-left: 2px solid var(--se-gray-light);
}

.ct-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle, 50%);
    border: none;
    background: rgba(255,255,255,0.2);
    color: var(--se-white);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ct-arrow-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* ---- Callout box ---- */
.ct-callout {
    width: 100%;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: var(--se-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    box-sizing: border-box;
}

.ct-callout p {
    font-family: var(--font-body);
    font-size: 1rem;
    margin: 0 0 8px;
    opacity: 0.9;
}

.ct-callout .ct-callout-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--se-orange);
    opacity: 1;
}

.ct-callout .ct-callout-eur {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 14px;
}

.ct-callout .ct-callout-conclusion {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 1;
}

.ct-callout .ct-callout-conclusion strong {
    color: var(--se-orange);
}

/* ---- Footnotes ---- */
.ct-footnotes {
    max-width: var(--container-max);
    margin: var(--space-md) auto 0;
    padding: 0 18px;
}

.ct-footnotes p {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--se-gray, #888);
    line-height: 1.5;
    margin: 0 0 4px;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--se-white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-circle);
    pointer-events: none;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: var(--space-md);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--se-white);
    color: var(--se-orange);
    padding: 16px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--se-orange);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .comparison-table th,
    .comparison-table td {
        padding: 12px 12px;
        font-size: 13px;
    }
    .ct-comp-price { font-size: 17px; }
}

@media (max-width: 768px) {
    .hero-compare {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .hero-compare h1 {
        font-size: 2.5rem;
    }

    .compare-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 12px;
    }

    .ct-callout {
        padding: var(--space-md);
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .cta-banner p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-compare h1 {
        font-size: 2rem;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 11px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 10px;
        font-size: 12px;
    }

    .ct-comp-price { font-size: 15px; }
    .ct-comp-name { font-size: 13px; }
    .ct-callout .ct-callout-price { font-size: 1.3rem; }
}

/* ============================================
   Mobile Responsive Fixes - Avril 2026
   ============================================ */
@media (max-width: 767.98px) {
    .hero-compare h1 {
        font-size: 1.75rem;
    }

    .hero-compare .hero-subtitle {
        font-size: 1rem;
    }

    .comparison-table thead th:first-child {
        min-width: 150px;
        width: 150px;
    }

    .comparison-table thead th.se-column {
        min-width: 120px;
    }

    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-compare h1 {
        font-size: 1.5rem;
    }

    .comparison-table thead th:first-child {
        min-width: 120px;
        width: 120px;
    }

    .comparison-table thead th.se-column {
        min-width: 100px;
    }

    .ct-arrow-col {
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
