/* ============================================
   CERTIFICATIONS PAGE — Tab-based layout
   Secure Exchanges — Charte v9
   Inspired by tarifs.css tab system
   ============================================ */

/* ---- HERO ---- */
.cert-hero {
    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;
}

.cert-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.cert-hero-badge i {
    color: var(--se-orange);
}

.cert-hero h1 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cert-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 400;
}

.cert-hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cert-hero-stat {
    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);
}

.cert-hero-stat i {
    color: var(--se-orange);
}

/* ---- TAB NAVIGATION ---- */
.cert-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -35px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.cert-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;
}

.cert-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cert-tab-btn.active {
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
    color: white;
}

.cert-tab-btn i {
    font-size: 1rem;
}

/* ---- TAB CONTENT ---- */
.cert-section {
    padding: 0 0 80px;
}

.cert-tab-content {
    display: none;
}

.cert-tab-content.active {
    display: block;
    animation: certFadeIn 0.5s ease;
}

@keyframes certFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-tab-description {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 40px;
    color: var(--se-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- CERTIFICATION CARDS GRID ---- */
.cert-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.cert-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    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;
    text-align: center;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.cert-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(238, 101, 37, 0.1) 0%, rgba(213, 90, 31, 0.08) 100%);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
}

.cert-card-icon i {
    color: var(--se-orange);
    font-size: 20px;
}

.cert-card-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* When icon has a real logo, remove the orange tint background */
.cert-card-icon--logo {
    background: none;
}

.cert-card-name {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.3rem;
    color: var(--se-navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.cert-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--se-orange);
    margin-bottom: 14px;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--se-gray);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}


/* ---- CRYPTO TAB — light bg cards with centered icons ---- */
.cert-cards-grid.cert-crypto-variant .cert-card {
    text-align: center;
}

.cert-cards-grid.cert-crypto-variant .cert-card-icon {
    margin-left: auto;
    margin-right: auto;
}

/* ---- CTA SECTION ---- */
.cert-cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    text-align: center;
    color: var(--se-white);
    position: relative;
    overflow: hidden;
}

.cert-cta::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;
}

.cert-cta h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.8rem;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    color: var(--se-white);
}

.cert-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cert-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.cert-cta .btn-cta-white {
    background: var(--se-white);
    color: var(--se-navy);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.cert-cta .btn-cta-white:hover {
    box-shadow: var(--shadow-xl);
    color: var(--se-navy-dark);
}

.cert-cta .btn-cta-outline {
    background: transparent;
    color: var(--se-white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
}

.cert-cta .btn-cta-outline:hover {
    background: var(--se-white);
    color: var(--se-navy);
    border-color: var(--se-white);
}

/* ---- RESPONSIVE 1200px ---- */
@media (max-width: 1200px) {
    .cert-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ---- RESPONSIVE 992px ---- */
@media (max-width: 992px) {
    .cert-cards-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .cert-hero h1 {
        font-size: 2.8rem;
    }
}

/* ---- RESPONSIVE 768px ---- */
@media (max-width: 768px) {
    .cert-hero h1 {
        font-size: 2rem;
    }

    .cert-hero-badges {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .cert-cards-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .cert-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cert-cta h2 {
        font-size: 1.75rem;
    }

    .cert-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cert-hero h1 {
        font-size: 1.5rem;
    }

    .cert-hero-stat {
        min-width: auto;
        flex: 1 1 40%;
    }

    .cert-tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .cert-cta h2 {
        font-size: 1.5rem;
    }
}
