/* ============================================
   TARIFS PAGE — Styles
   Uses tokens from design-system.css
   ============================================ */

/* --- Tier-specific variables --- */
/* These leverage the design-system tier tokens */

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-pricing {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: white;
    padding: 70px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-pricing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: none;
    pointer-events: none;
}

.hero-pricing h1 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 400;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.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-size: 13px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--se-orange);
}

.hero-badge.canada {
    background: rgba(213, 43, 30, 0.15);
    border: 1px solid rgba(213, 43, 30, 0.3);
}

.hero-badge.canada i {
    color: #D52B1E;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -35px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.tab-btn {
    background: white;
    border: none;
    padding: 16px 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--se-navy);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.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: white;
}

.tab-btn i {
    font-size: 1rem;
}

/* ============================================
   PRICING CARDS SECTION
   ============================================ */
.pricing-section {
    padding: 0 0 80px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-description {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 40px;
    color: var(--se-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.pricing-card.eco::before {
    background: linear-gradient(135deg, var(--se-orange-light) 0%, var(--se-orange) 100%);
}

.pricing-card.advanced::before {
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
}

.pricing-card.pro::before {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   CARD TIER LABELS
   ============================================ */
.card-tier {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.card-tier.eco {
    color: var(--tier-eco);
}

.card-tier.advanced {
    color: var(--tier-advanced);
}

.card-tier.pro {
    color: var(--tier-pro);
}

/* ============================================
   CARD PRICING
   ============================================ */
.card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 3.2rem;
    color: var(--se-navy);
    line-height: 1;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--se-navy);
}

.price-period {
    font-size: 0.95rem;
    color: var(--se-gray);
    font-weight: 500;
}

.card-subtitle {
    color: var(--se-gray);
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--se-gray-border);
}

/* ============================================
   INCLUDES BADGES
   ============================================ */

/* Highlight "Inclut..." text - color matches the REFERENCED plan */
.includes-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Orange-light badge for "Inclut ECO" */
.includes-badge.eco-ref {
    background: linear-gradient(135deg, rgba(244, 125, 69, 0.1) 0%, rgba(238, 101, 37, 0.1) 100%);
    color: var(--tier-eco);
    border: 1px solid rgba(244, 125, 69, 0.25);
}

/* Orange badge for "Inclut AVANCE" */
.includes-badge.advanced-ref {
    background: linear-gradient(135deg, rgba(238, 101, 37, 0.1) 0%, rgba(213, 90, 31, 0.1) 100%);
    color: var(--tier-advanced);
    border: 1px solid rgba(238, 101, 37, 0.25);
}

.includes-badge i {
    font-size: 10px;
}

/* ============================================
   FEATURES LIST
   ============================================ */
.features-list {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--se-navy);
}

.features-list li i {
    color: var(--se-orange);
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ============================================
   SELECT BUTTONS
   ============================================ */
.btn-select {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    text-align: center;
    margin-top: auto;
}

.btn-select.eco {
    background: linear-gradient(135deg, var(--se-orange-light) 0%, var(--se-orange) 100%);
    color: white;
}

.btn-select.advanced {
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
    color: white;
}

.btn-select.pro {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: white;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   INLINE-STYLE REPLACEMENTS
   ============================================ */

/* Active nav link highlight */
.dropbtn.active-link {
    color: var(--se-orange);
}

/* NuGet inline link */
.nuget-link {
    color: var(--se-orange);
}

/* ============================================
   SESAR SECTION
   ============================================ */
.sesar-card {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: white;
    max-width: 850px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.sesar-card .sesar-info h3 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 0.08em;
    color: #fff !important;
}

.sesar-info p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.sesar-features {
    list-style: none;
}

.sesar-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.sesar-features li i {
    color: var(--se-orange);
}

.sesar-pricing {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sesar-pricing .price-amount {
    color: white;
}

.sesar-pricing .price-currency,
.sesar-pricing .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.btn-sesar {
    display: inline-block;
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
    color: white;
    padding: 14px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    transition: all var(--transition-base);
}

.btn-sesar:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange-lg);
    color: white;
}

.sesar-tier {
    color: var(--se-orange);
}

.sesar-price-centered {
    justify-content: center;
}

.sesar-subtitle {
    opacity: 0.8;
    margin: 12px 0;
    font-size: 14px;
}

/* ============================================
   TRIAL BANNER
   ============================================ */
.trial-banner {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    padding: 50px 0;
    text-align: center;
    color: white;
}

.trial-banner h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.trial-banner p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 25px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.btn-trial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--se-orange);
    padding: 16px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-trial:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--se-orange);
}

/* ============================================
   FOOTER (page-specific overrides)
   ============================================ */
.site-footer {
    background: var(--se-navy);
    color: white;
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: normal;
    margin-bottom: 18px;
    color: var(--se-orange);
    letter-spacing: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: white;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-canada {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-canada i {
    color: #D52B1E;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .header-unified {
        padding: 15px 25px;
        gap: 25px;
    }

    .header-menu {
        gap: 25px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .header-unified {
        flex-wrap: wrap;
    }

    .header-menu {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        gap: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header-actions {
        order: 2;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .sesar-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-pricing h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .canada-banner {
        font-size: 12px;
        padding: 8px 15px;
    }

    .header-unified {
        padding: 15px 20px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-essai-gratuit {
        padding: 10px 20px;
        font-size: 12px;
    }

    .hero-pricing {
        padding: 50px 0 90px;
    }

    .hero-pricing h1 {
        font-size: 2.2rem;
    }

    .pricing-tabs {
        padding: 0 10px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 11px;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .sesar-card {
        padding: 30px;
    }
}

/* Mobile Responsive Fixes - Avril 2026 */
@media (max-width: 767.98px) {
    .hero-pricing h1 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-pricing h1 {
        font-size: 1.5rem;
    }

    .pricing-grid {
        max-width: 100%;
    }
}
