/* ============================================================
   SITE PUBLIC
   ============================================================ */

.public-site {
    min-height: 100vh;
    background: #ffffff;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

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


/* ============================================================
   NAVBAR
   ============================================================ */

.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.public-navbar-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.public-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.public-logo:hover {
    color: #111827;
}

.public-logo-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 19px;
}

.public-nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.public-nav-links a {
    position: relative;
    padding: 28px 0;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.public-nav-links a:hover,
.public-nav-links a.active {
    color: #1d4ed8;
}

.public-nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    border-radius: 2px;
    background: #1d4ed8;
}

.public-login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.public-login-button:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
}


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

.public-hero {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    padding: 90px 0 100px;
}

.public-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.07);
    top: -220px;
    right: -150px;
}

.public-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.06);
    bottom: -180px;
    left: -120px;
}

.public-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.public-hero-text {
    max-width: 650px;
}

.public-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    margin-bottom: 22px;
    border-radius: 30px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.public-hero-text h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
}

.public-hero-text h1 span {
    color: #1d4ed8;
}

.public-hero-text p {
    max-width: 600px;
    margin: 25px 0 30px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.75;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.public-button-primary {
    background: #1d4ed8;
    color: #ffffff;
}

.public-button-primary:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-2px);
}

.public-button-secondary {
    background: #ffffff;
    color: #1d4ed8;
    border: 1px solid #d1d5db;
}

.public-button-secondary:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}


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

.public-hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-hero-card {
    width: min(360px, 80%);
    min-height: 300px;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.10);
}

.public-hero-card-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 38px;
}

.public-hero-card h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 22px;
}

.public-hero-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
}

.public-floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.10);
}

.public-floating-card > i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
}

.public-floating-card strong,
.public-floating-card small {
    display: block;
}

.public-floating-card strong {
    color: #111827;
    font-size: 13px;
}

.public-floating-card small {
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
}

.public-floating-card-top {
    top: 35px;
    right: 0;
}

.public-floating-card-bottom {
    bottom: 35px;
    left: 0;
}


/* ============================================================
   STATISTIQUES
   ============================================================ */

.public-statistics {
    position: relative;
    z-index: 5;
    margin-top: -35px;
}

.public-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.public-stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.public-stat-item:last-child {
    border-right: none;
}

.public-stat-icon {
    margin-bottom: 12px;
    color: #1d4ed8;
    font-size: 22px;
}

.public-stat-number {
    color: #111827;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.public-stat-label {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   SECTIONS
   ============================================================ */

.public-section {
    padding: 90px 0;
}

.public-section-light {
    background: #f8fafc;
}

.public-section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.public-section-heading-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
}

.public-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.public-section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
}

.public-section-heading p {
    margin: 15px auto 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 15px;
}

.public-section-heading-row p {
    margin-left: 0;
    margin-right: 0;
}

.public-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.public-link:hover {
    color: #1e40af;
}


/* ============================================================
   FEATURES
   ============================================================ */

.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.public-feature-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    transition: all 0.25s ease;
}

.public-feature-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.public-feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 21px;
}

.public-feature-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
}

.public-feature-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   ÉCOLES
   ============================================================ */

.public-school-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.public-school-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    transition: all 0.25s ease;
}

.public-school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.public-school-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 48px;
}

.public-school-body {
    padding: 25px;
}

.public-school-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 19px;
}

.public-school-body p {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.public-empty {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 15px;
}

.public-empty i {
    color: #9ca3af;
    font-size: 40px;
}

.public-empty h3 {
    margin: 18px 0 8px;
    color: #374151;
}

.public-empty p {
    margin: 0;
    color: #6b7280;
}


/* ============================================================
   ADMISSIONS
   ============================================================ */

.public-admission {
    padding: 75px 0;
    background: #1d4ed8;
}

.public-admission-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.public-admission .public-section-label {
    color: #bfdbfe;
}

.public-admission h2 {
    max-width: 650px;
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.2;
}

.public-admission p {
    max-width: 650px;
    margin: 15px 0 0;
    color: #dbeafe;
    font-size: 15px;
    line-height: 1.7;
}

.public-button-light {
    background: #ffffff;
    color: #1d4ed8;
    white-space: nowrap;
}

.public-button-light:hover {
    background: #eff6ff;
    color: #1e40af;
    transform: translateY(-2px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.public-footer {
    padding: 65px 0 0;
    background: #111827;
    color: #d1d5db;
}

.public-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.public-footer-logo {
    color: #ffffff;
    margin-bottom: 18px;
}

.public-footer-logo:hover {
    color: #ffffff;
}

.public-footer-grid > div:first-child p {
    max-width: 350px;
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.8;
}

.public-footer h4 {
    margin: 5px 0 20px;
    color: #ffffff;
    font-size: 14px;
}

.public-footer a {
    display: block;
    margin-bottom: 12px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
}

.public-footer a:hover {
    color: #ffffff;
}

.public-footer p {
    margin: 0 0 13px;
    color: #9ca3af;
    font-size: 13px;
}

.public-footer p i {
    width: 20px;
    color: #93c5fd;
}

.public-footer-bottom {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #374151;
    color: #6b7280;
    font-size: 12px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

    .public-navbar-content {
        gap: 18px;
    }

    .public-nav-links {
        gap: 16px;
    }

    .public-nav-links a {
        font-size: 13px;
    }

    .public-hero-content {
        gap: 40px;
    }

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


@media (max-width: 850px) {

    .public-navbar-content {
        min-height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .public-nav-links {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    .public-nav-links a {
        padding: 10px 0;
        white-space: nowrap;
    }

    .public-nav-links a.active::after {
        bottom: 0;
    }

    .public-hero {
        padding: 65px 0 80px;
    }

    .public-hero-content {
        grid-template-columns: 1fr;
    }

    .public-hero-text {
        max-width: none;
        text-align: center;
    }

    .public-hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .public-hero-actions {
        justify-content: center;
    }

    .public-hero-visual {
        min-height: 350px;
    }

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

    .public-stat-item:nth-child(2) {
        border-right: none;
    }

    .public-stat-item:nth-child(-n+2) {
        border-bottom: 1px solid #e5e7eb;
    }

    .public-feature-grid,
    .public-school-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-admission-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 600px) {

    .public-container {
        width: min(100% - 28px, 1200px);
    }

    .public-logo {
        font-size: 17px;
    }

    .public-logo-icon {
        width: 38px;
        height: 38px;
    }

    .public-login-button {
        padding: 9px 12px;
    }

    .public-hero-text h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

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

    .public-hero-visual {
        min-height: 300px;
    }

    .public-hero-card {
        min-height: 250px;
        padding: 30px 25px;
    }

    .public-floating-card {
        display: none;
    }

    .public-statistics {
        margin-top: -20px;
    }

    .public-statistics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .public-stat-item {
        padding: 22px 10px;
    }

    .public-stat-number {
        font-size: 25px;
    }

    .public-section {
        padding: 65px 0;
    }

    .public-section-heading h2 {
        font-size: 29px;
    }

    .public-section-heading-row {
        display: block;
    }

    .public-section-heading-row .public-link {
        margin-top: 20px;
    }

    .public-feature-grid,
    .public-school-grid {
        grid-template-columns: 1fr;
    }

    .public-admission {
        padding: 55px 0;
    }

    .public-admission h2 {
        font-size: 29px;
    }

    .public-admission-actions {
        width: 100%;
    }

    .public-button-light {
        width: 100%;
    }

    .public-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .public-footer-bottom {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
} 

   /* =========================================================
   PAGE FORMATIONS - DESIGN
   ========================================================= */

    .public-page-header {
        position: relative;
        padding: 85px 20px 75px;
        text-align: center;
        background:
            linear-gradient(
                135deg,
                #f8fafc 0%,
                #eef2ff 50%,
                #f8fafc 100%
            );
        border-bottom: 1px solid #e2e8f0;
        overflow: hidden;
    }

    .public-page-header::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.08);
        top: -180px;
        left: -100px;
    }

    .public-page-header::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(59, 130, 246, 0.06);
        bottom: -150px;
        right: -80px;
    }

    .public-page-header .public-container {
        position: relative;
        z-index: 2;
    }

    .public-section-label {
        display: inline-flex;
        align-items: center;
        padding: 7px 14px;
        border-radius: 30px;
        background: #e0e7ff;
        color: #4338ca;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.5px;
    }

    .public-page-header h1 {
        margin: 18px 0 14px;
        color: #0f172a;
        font-size: clamp(34px, 5vw, 48px);
        font-weight: 800;
        line-height: 1.1;
    }

    .public-page-header p {
        max-width: 720px;
        margin: 0 auto;
        color: #64748b;
        font-size: 17px;
        line-height: 1.7;
    }


    /* =========================================================
    ZONE DES FORMATIONS
    ========================================================= */

    .public-section {
        padding: 65px 20px;
        background: #f8fafc;
    }


    /* =========================================================
    FILTRE
    ========================================================= */

    .public-filter-card {
        max-width: 900px;
        margin: 0 auto 45px;
        padding: 25px 30px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    }

    .public-filter-form {
        display: flex;
        align-items: end;
        gap: 20px;
    }

    .public-filter-group {
        width: 100%;
    }

    .public-filter-group label {
        display: block;
        margin-bottom: 9px;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
    }

    .public-filter-select {
        width: 100%;
        height: 48px;
        padding: 0 15px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #ffffff;
        color: #334155;
        font-size: 14px;
        cursor: pointer;
        transition: all .2s ease;
    }

    .public-filter-select:hover {
        border-color: #94a3b8;
    }

    .public-filter-select:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
    }


    /* =========================================================
    GRILLE
    ========================================================= */

    .public-formation-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
    }


    /* =========================================================
    CARTE FORMATION
    ========================================================= */

    .public-formation-card {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 285px;
        padding: 28px;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        background: #ffffff;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(15, 23, 42, .04);
        transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease;
    }

    .public-formation-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(
            90deg,
            #4f46e5,
            #6366f1,
            #8b5cf6
        );
    }

    .public-formation-card:hover {
        transform: translateY(-6px);
        border-color: #c7d2fe;
        box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
    }


    /* =========================================================
    ICÔNE
    ========================================================= */

    .public-formation-icon {
        width: 58px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        border-radius: 14px;
        background: #eef2ff;
        color: #4f46e5;
        font-size: 24px;
    }

    .public-formation-card:hover .public-formation-icon {
        background: #4f46e5;
        color: #ffffff;
    }


    /* =========================================================
    CONTENU
    ========================================================= */

    .public-formation-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .public-formation-code {
        display: inline-flex;
        align-self: flex-start;
        margin-bottom: 9px;
        padding: 5px 10px;
        border-radius: 6px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .8px;
    }

    .public-formation-card h2 {
        min-height: 52px;
        margin: 0 0 18px;
        color: #1e293b;
        font-size: 18px;
        font-weight: 750;
        line-height: 1.45;
    }


    /* =========================================================
    MÉTADONNÉES
    ========================================================= */

    .public-formation-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
    }

    .public-formation-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 10px;
        border-radius: 7px;
        background: #f8fafc;
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

    .public-formation-meta i {
        color: #6366f1;
    }


    /* =========================================================
    BOUTON
    ========================================================= */

    .public-formation-link {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin-top: auto;
        padding: 11px 14px;
        border-radius: 9px;
        background: #f8fafc;
        color: #4f46e5;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all .2s ease;
    }

    .public-formation-link i {
        transition: transform .2s ease;
    }

    .public-formation-link:hover {
        background: #4f46e5;
        color: #ffffff;
        text-decoration: none;
    }

    .public-formation-link:hover i {
        transform: translateX(4px);
    }


    /* =========================================================
    ÉTAT VIDE
    ========================================================= */

    .public-empty-state {
        max-width: 650px;
        margin: 0 auto;
        padding: 70px 30px;
        text-align: center;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        background: #ffffff;
    }

    .public-empty-state-icon {
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        border-radius: 50%;
        background: #eef2ff;
        color: #6366f1;
        font-size: 28px;
    }

    .public-empty-state h2 {
        margin-bottom: 10px;
        color: #1e293b;
    }

    .public-empty-state p {
        margin-bottom: 25px;
        color: #64748b;
    }


    /* =========================================================
    RESPONSIVE
    ========================================================= */

    @media (max-width: 1100px) {

        .public-formation-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

    }


    @media (max-width: 700px) {

        .public-page-header {
            padding: 60px 20px 50px;
        }

        .public-page-header h1 {
            font-size: 34px;
        }

        .public-section {
            padding: 40px 15px;
        }

        .public-filter-card {
            padding: 20px;
            margin-bottom: 30px;
        }

        .public-filter-form {
            display: block;
        }

        .public-formation-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }

        .public-formation-card {
            min-height: auto;
        }

    }
/* ============================================================
   DÉTAIL D'UNE FORMATION
   ============================================================ */

.formation-hero {
    position: relative;
    overflow: hidden;
    padding: 45px 0 55px;
    background: linear-gradient(
        135deg,
        #eef5ff 0%,
        #f8fbff 55%,
        #eef2ff 100%
    );
    border-bottom: 1px solid #e2e8f0;
}

.formation-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    top: -210px;
    border-radius: 50%;
    background: rgba(29, 78, 216, .06);
}

.formation-back-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.formation-back-link:hover {
    color: #3730a3;
}

.formation-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
}

.formation-hero-icon {
    width: 125px;
    height: 125px;
    min-width: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 52px;
    box-shadow: 0 15px 35px rgba(67, 56, 202, .10);
}

.formation-hero-info {
    max-width: 850px;
}

.formation-code {
    display: inline-flex;
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
}

.formation-hero-info h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;
}

.formation-hero-info p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* ============================================================
   STATISTIQUES
   ============================================================ */

.formation-statistics {
    position: relative;
    z-index: 5;
    margin-top: -25px;
}

.formation-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.formation-stat-card {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 125px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.formation-stat-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 21px;
}

.formation-stat-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.formation-stat-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.formation-stat-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.formation-stat-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.formation-stat-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.formation-stat-number {
    display: block;
    color: #1d4ed8;
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
}

.formation-stat-code {
    display: block;
    color: #7c3aed;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}

.formation-stat-card small {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px;
}


/* ============================================================
   SECTIONS
   ============================================================ */

.formation-content-section {
    padding: 30px 0 0;
    background: #f8fafc;
}

.formation-section-alt {
    padding-top: 25px;
}

.formation-content-card {
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .035);
}

.formation-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.formation-section-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
}

.formation-section-icon.green-icon {
    background: #ecfdf5;
    color: #059669;
}

.formation-section-heading h2 {
    margin: 0 0 5px;
    color: #1e293b;
    font-size: 21px;
    font-weight: 800;
}

.formation-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


/* ============================================================
   ÉTABLISSEMENTS
   ============================================================ */

.formation-school-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.formation-school-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all .2s ease;
}

.formation-school-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    transform: translateY(-2px);
}

.formation-school-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px;
}

.formation-school-info {
    flex: 1;
}

.formation-school-info h3 {
    margin: 0 0 7px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 750;
}

.formation-school-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.formation-school-info p i {
    margin-right: 4px;
    color: #2563eb;
}

.formation-school-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    transition: all .2s ease;
}

.formation-school-card:hover .formation-school-arrow {
    background: #2563eb;
    color: #ffffff;
}


/* ============================================================
   CLASSES
   ============================================================ */

.formation-class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.formation-class-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    transition: all .2s ease;
}

.formation-class-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .06);
}

.formation-class-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 19px;
}

.formation-class-info {
    flex: 1;
}

.formation-class-info strong {
    color: #1e293b;
    font-size: 15px;
}

.formation-class-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
}


/* ============================================================
   INFORMATION
   ============================================================ */

.formation-info-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #eff6ff,
        #f8fbff
    );
}

.formation-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 20px;
}

.formation-info-box h2 {
    margin: 0 0 9px;
    color: #1d4ed8;
    font-size: 18px;
}

.formation-info-box p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}


/* ============================================================
   FORMATIONS SIMILAIRES
   ============================================================ */

.formation-related-section {
    padding: 60px 0;
    background: #f8fafc;
}

.formation-related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.formation-related-heading h2 {
    max-width: 650px;
    margin: 0;
    color: #1e293b;
    font-size: 27px;
    font-weight: 800;
}

.formation-related-heading .public-section-label {
    margin-bottom: 8px;
}

.formation-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.formation-related-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
    transition: all .2s ease;
}

.formation-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    border-color: #c7d2fe;
}

.formation-related-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef2ff;
    color: #4f46e5;
}

.formation-related-content {
    flex: 1;
}

.formation-related-code {
    display: inline-block;
    margin-bottom: 5px;
    color: #6366f1;
    font-size: 10px;
    font-weight: 800;
}

.formation-related-content h3 {
    min-height: 43px;
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.45;
}

.formation-related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.formation-related-meta span {
    color: #64748b;
    font-size: 11px;
}

.formation-related-meta i {
    margin-right: 3px;
    color: #6366f1;
}

.formation-related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.formation-related-link:hover {
    color: #3730a3;
}


/* ============================================================
   VIDE
   ============================================================ */

.formation-empty {
    padding: 35px;
    text-align: center;
    color: #94a3b8;
}

.formation-empty i {
    margin-bottom: 12px;
    font-size: 30px;
}

.formation-empty p {
    margin: 0;
    font-size: 14px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.formation-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    padding: 55px 0 40px;
}

.formation-footer p {
    max-width: 350px;
    margin: 15px 0 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
}

.formation-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 10px;
}

.formation-footer-links a {
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
}

.formation-footer-links a:hover {
    color: #ffffff;
}

.formation-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #374151;
    color: #6b7280;
    font-size: 11px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

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

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

}


@media (max-width: 750px) {

    .formation-hero {
        padding: 35px 0 45px;
    }

    .formation-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .formation-hero-icon {
        width: 90px;
        height: 90px;
        min-width: 90px;
        font-size: 35px;
    }

    .formation-statistics {
        margin-top: 0;
        padding-top: 20px;
    }

    .formation-statistics-grid {
        grid-template-columns: 1fr;
    }

    .formation-school-grid,
    .formation-class-grid,
    .formation-related-grid {
        grid-template-columns: 1fr;
    }

    .formation-content-card {
        padding: 22px;
    }

    .formation-section-heading {
        align-items: flex-start;
    }

    .formation-related-heading {
        display: block;
    }

    .formation-related-heading .public-link {
        display: inline-flex;
        margin-top: 15px;
    }

    .formation-footer {
        flex-direction: column;
        padding-top: 40px;
    }

    .formation-footer-links {
        gap: 15px;
    }

}