/* ========================================
   TECHMINDS AFRICA — Formation Detail Page
   ======================================== */

/* ===== HERO FORMATION ===== */
.hero--formation {
    padding: 120px 0 80px;
}

.hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.hero__breadcrumb a:hover {
    color: #fff;
}

.hero__breadcrumb span {
    color: #fff;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    margin-bottom: 16px;
}

.hero__badge--blue {
    background: #2563eb;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    font-weight: 600;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.btn--whatsapp {
    background: #22c55e;
    color: #fff;
    padding: 12px 28px;
}

.btn--whatsapp:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}


/* ===== INFO CARDS ===== */
.formation-info {
    background: #fff;
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.info-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.info-card__icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.info-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-card__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}


/* ===== PRICING ===== */
.formation-pricing {
    background: #f3f4f6;
}

.text-center {
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card--featured {
    border-color: #2563eb;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.15);
}

.pricing-card--featured:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

.pricing-card__popular {
    background: #2563eb;
    color: #fff;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 8px;
    letter-spacing: 0.03em;
}

.pricing-card__header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.pricing-card__desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.pricing-card__body {
    padding: 24px 28px 28px;
}

.pricing-card__prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.pricing-card__amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.pricing-card__currency {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
}

.pricing-card__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.pricing-card__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.pricing-card--featured .pricing-card__btn {
    background: #2563eb;
    color: #fff;
}

.pricing-card--featured .pricing-card__btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}


/* ===== PROGRAMME ===== */
.formation-programme {
    background: #fff;
}

.programme-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.programme-module {
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.programme-module.open {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: #2563eb;
}

.programme-module__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}

.programme-module__header:hover {
    background: #f3f4f6;
}

.programme-module__info {
    flex: 1;
}

.programme-module__number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.programme-module__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.programme-module__chevron {
    color: #4b5563;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.programme-module.open .programme-module__chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.programme-module__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.programme-module.open .programme-module__content {
    max-height: 400px;
    padding: 0 24px 20px;
}

.programme-module__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.programme-module__content li {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.programme-module__content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    opacity: 0.6;
}


/* ===== PAYMENT ===== */
.formation-payment {
    background: #f9fafb;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.payment-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.payment-card__icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.payment-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.payment-card__text {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.6;
}


/* ===== INSCRIPTION ===== */
.formation-inscription {
    background: #fff;
}

.inscription-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.inscription-info {
    position: sticky;
    top: 100px;
}

.inscription-format {
    background: #f0f4ff;
    border: 2px solid #2563eb;
    border-radius: 14px;
    padding: 20px;
    margin: 24px 0;
}

.inscription-format__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.inscription-format__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.inscription-format__change {
    font-size: 0.8125rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

.inscription-format__change:hover {
    color: #1d4ed8;
}

.inscription-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.inscription-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #374151;
}

.inscription-contact {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.inscription-contact p {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.inscription-form {
    background: #f9fafb;
    border-radius: 16px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.inscription-form iframe {
    border-radius: 12px;
    display: block;
}


/* ===== CTA FORMATION ===== */
.cta__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    text-align: center;
    line-height: 1.7;
}

.cta__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-section .btn--outline {
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero--formation {
        padding: 100px 0 56px;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .info-card {
        padding: 20px 16px;
    }

    .info-card__value {
        font-size: 0.875rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card__prices {
        padding: 16px;
    }

    .pricing-card__amount {
        font-size: 1.25rem;
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .payment-card {
        padding: 20px 16px;
    }

    .inscription-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .inscription-info {
        position: static;
    }

    .inscription-form iframe {
        height: 600px;
    }

    .programme-module__header {
        padding: 16px 20px;
    }

    .programme-module__title {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
