/*
=====================================================
 PAGE THÉORIE 🇧🇪
 Permis Express EU
=====================================================
*/

/* =====================================================
   BASE
===================================================== */

.page-theorie {
    background: #ffffff;
    color: #0f172a;
    overflow: hidden;
}

.page-theorie .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-theorie a {
    text-decoration: none;
}


/* =====================================================
   HERO
===================================================== */

.theorie-hero {
    position: relative;
    padding: 100px 0 90px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.10),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #f8fafc 55%,
            #ffffff 100%
        );
}

.theorie-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.theorie-hero .section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin-bottom: 22px;

    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 999px;

    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.theorie-hero h1 {
    max-width: 850px;
    margin: 0 auto 22px;

    color: #0f172a;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
}

.theorie-hero h1 span {
    color: #2563eb;
}

.theorie-hero p {
    max-width: 680px;
    margin: 0 auto 34px;

    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

.theorie-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* =====================================================
   BOUTONS
===================================================== */

.page-theorie .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 13px 24px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.page-theorie .btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.page-theorie .btn:hover i {
    transform: translateX(3px);
}

.page-theorie .btn-primary {
    background: #2563eb;
    color: #ffffff;

    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.page-theorie .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.page-theorie .btn-outline {
    background: #ffffff;
    color: #2563eb;
    border: 1.5px solid #2563eb;
}

.page-theorie .btn-outline:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}


/* =====================================================
   TITRES DE SECTION
===================================================== */

.page-theorie .section-header {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.page-theorie .section-header .section-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 15px;
    margin-bottom: 16px;

    background: #eff6ff;
    border-radius: 999px;

    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.page-theorie .section-header h2 {
    margin: 0 0 14px;

    color: #0f172a;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-theorie .section-header p {
    max-width: 600px;
    margin: 0 auto;

    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* =====================================================
   CHOIX DU SERVICE
===================================================== */

.theorie-services-choice {
    padding: 90px 0;
    background: #ffffff;
}

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

.theorie-choice-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 330px;
    padding: 28px 24px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    color: #0f172a;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.theorie-choice-card:hover {
    transform: translateY(-7px);

    border-color: #93c5fd;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.09);
}

.choice-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin-bottom: 20px;

    background: #eff6ff;
    border-radius: 14px;

    color: #2563eb;
    font-size: 22px;
}

.choice-card-label {
    display: block;
    margin-bottom: 9px;

    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.theorie-choice-card h3 {
    margin: 0 0 10px;

    color: #0f172a;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 750;
}

.theorie-choice-card p {
    margin: 0;

    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.choice-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 24px;
}

.choice-card-footer strong {
    color: #2563eb;
    font-size: 21px;
    font-weight: 800;
}

.choice-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.choice-card-footer i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.theorie-choice-card:hover .choice-card-footer i {
    transform: translateX(4px);
}


/* =====================================================
   PARCOURS DE CONVERSION
===================================================== */

.theorie-parcours {
    padding: 90px 0;
    background: #f8fafc;
}

.conversion-path {
    max-width: 760px;
    margin: 0 auto;
}

.conversion-step {
    display: flex;
    align-items: flex-start;
    gap: 22px;

    padding: 26px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.conversion-step:hover {
    transform: translateX(5px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.conversion-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    background: #2563eb;
    border-radius: 50%;

    color: #ffffff;
    font-size: 14px;
    font-weight: 800;

    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.conversion-content {
    flex: 1;
}

.conversion-content > span {
    display: block;
    margin-bottom: 7px;

    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.conversion-content h3 {
    margin: 0 0 8px;

    color: #0f172a;
    font-size: 20px;
    font-weight: 750;
}

.conversion-content p {
    margin: 0 0 15px;

    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.conversion-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}

.conversion-content a i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.conversion-content a:hover i {
    transform: translateX(4px);
}

.conversion-line {
    width: 2px;
    height: 32px;
    margin: 0 0 0 51px;

    background: #bfdbfe;
}


/* =====================================================
   SERVICES
===================================================== */

.theorie-service-section {
    padding: 80px 0;
    background: #ffffff;
}

.theorie-service-section--gray {
    background: #f8fafc;
}

.theorie-service-card {
    display: flex;
    align-items: flex-start;
    gap: 35px;

    max-width: 900px;
    margin: 0 auto;
    padding: 42px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;

    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);
}

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    flex-shrink: 0;

    background: #eff6ff;
    border-radius: 18px;

    color: #2563eb;
    font-size: 27px;
}

.service-card-content {
    flex: 1;
}

.service-card-label {
    display: block;
    margin-bottom: 8px;

    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.service-card-content h2 {
    margin: 0 0 12px;

    color: #0f172a;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
}

.service-card-content > p {
    margin: 0 0 24px;

    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.service-card-content ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 25px;

    margin: 0 0 30px;
    padding: 0;

    list-style: none;
}

.service-card-content li {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.service-card-content li i {
    margin-top: 4px;

    color: #22c55e;
    font-size: 12px;
}

.service-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 25px;

    border-top: 1px solid #e2e8f0;
}

.service-card-action strong {
    color: #2563eb;
    font-size: 28px;
    font-weight: 800;
}


/* =====================================================
   ORIENTATION
===================================================== */

.theorie-orientation {
    padding: 90px 0;
    background: #f8fafc;
}

.orientation-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 38px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;

    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);
}

.orientation-form .form-step {
    margin-bottom: 30px;
}

.orientation-form .form-step h3 {
    margin: 0 0 14px;

    color: #0f172a;
    font-size: 17px;
    font-weight: 750;
}

.orientation-form label {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 10px;
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;

    color: #334155;
    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.orientation-form label:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.orientation-form input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
}

.orientation-form .btn {
    width: 100%;
}

.orientation-result {
    margin-top: 25px;
    padding: 22px;

    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;

    text-align: center;
}

.orientation-result p {
    margin: 0 0 15px;

    color: #1e3a8a;
    font-size: 14px;
}


/* =====================================================
   CTA FINAL
===================================================== */

.theorie-final-cta {
    padding: 0 0 90px;
    background: #f8fafc;
}

.final-cta-box {
    position: relative;
    overflow: hidden;

    padding: 65px 40px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,0.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #1e40af,
            #2563eb
        );

    border-radius: 24px;

    text-align: center;
    color: #ffffff;

    box-shadow: 0 18px 45px rgba(30, 64, 175, 0.18);
}

.final-cta-box > span {
    display: block;
    margin-bottom: 12px;

    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.final-cta-box h2 {
    margin: 0 0 13px;

    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
}

.final-cta-box p {
    max-width: 520px;
    margin: 0 auto 28px;

    color: #dbeafe;
    font-size: 16px;
    line-height: 1.65;
}

.page-theorie .btn-white {
    background: #ffffff;
    color: #1e40af;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-theorie .btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}


/* =====================================================
   TABLETTE
===================================================== */

@media (max-width: 1050px) {

    .theorie-choice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .page-theorie .container {
        width: min(100% - 28px, 1180px);
    }

    /* HERO */

    .theorie-hero {
        padding: 65px 0 55px;
    }

    .theorie-hero h1 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .theorie-hero p {
        font-size: 15px;
    }

    .theorie-hero-actions {
        flex-direction: column;
    }

    .theorie-hero-actions .btn {
        width: 100%;
    }


    /* SECTIONS */

    .theorie-services-choice,
    .theorie-parcours,
    .theorie-orientation {
        padding: 65px 0;
    }

    .theorie-service-section {
        padding: 55px 0;
    }

    .page-theorie .section-header {
        margin-bottom: 35px;
    }


    /* CHOIX */

    .theorie-choice-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .theorie-choice-card {
        min-height: auto;
        padding: 23px 20px;
    }

    .choice-card-footer {
        margin-top: 24px;
    }


    /* PARCOURS */

    .conversion-step {
        gap: 15px;
        padding: 20px;
    }

    .conversion-number {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }

    .conversion-content h3 {
        font-size: 17px;
    }

    .conversion-content p {
        font-size: 13px;
    }

    .conversion-line {
        height: 25px;
        margin-left: 41px;
    }


    /* SERVICES */

    .theorie-service-card {
        flex-direction: column;
        gap: 22px;

        padding: 27px 21px;
    }

    .service-card-icon {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .service-card-content h2 {
        font-size: 23px;
    }

    .service-card-content ul {
        grid-template-columns: 1fr;
    }

    .service-card-action {
        align-items: stretch;
        flex-direction: column;
    }

    .service-card-action strong {
        font-size: 25px;
    }

    .service-card-action .btn {
        width: 100%;
    }


    /* ORIENTATION */

    .orientation-box {
        padding: 25px 18px;
    }


    /* CTA */

    .theorie-final-cta {
        padding-bottom: 60px;
    }

    .final-cta-box {
        padding: 45px 22px;
        border-radius: 18px;
    }

    .final-cta-box h2 {
        font-size: 27px;
    }

    .final-cta-box p {
        font-size: 14px;
    }

}


/* =====================================================
   PETITS ÉCRANS
===================================================== */

@media (max-width: 400px) {

    .theorie-hero h1 {
        font-size: 30px;
    }

    .conversion-step {
        padding: 17px;
    }

    .conversion-number {
        width: 40px;
        height: 40px;
    }

    .conversion-content h3 {
        font-size: 16px;
    }

}