/* FORMATIONS */

:root {
    --primary-500: #1A125C;
    --primary-400: #31287C;
    --secondary-400: #F6A500;
    --secondary-300: #FFDA8E;
    --tertiary-500: #758BE6;
    --tertiary-400: #B2BDE9;
    --accent: #E94444;
    --error: #CE0000;
    --success: #6CA83E;
    --warning: #F67329;
    --grey-700: #081B2C;
    --grey-600: #3B3949;
    --grey-500: #5A5868;
    --grey-400: #706E7E;
    --grey-300: #8C8B9B;
    --grey-200: #A7A6B6;
    --grey-100: #C1C0D0;
    --grey-50: #EEF2FF;
    --white: #FFF;
    --f1: "Montserrat";
    --gap05: 8px;
    --gap1: 16px;
    --gap15: 24px;
    --gap2: 32px;
    --gap3: 64px;
}

.lm-formations > .ctnr {
    display: flex;
    gap: 30px;
    line-height: 1.5;
    margin-top: 64px;
}

@media (max-width: 1000px) {

    .lm-formations .ctnr {
        flex-direction: column;
    }
}

/* CONTENT & SIDEBAR */

.lm-formations .sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gap15);
    width: 31%;
    position: relative;
}

.lm-formations .sidebar > img,
.lm-formations .access > img {
    z-index: 1;
    position: absolute;
    right: 0;
    top: 0;
}

.lm-formations .sidebar .infos {
    background-color: var(--grey-50);
    padding: var(--gap2) 16px;
    position: relative;
    color: var(--grey-700);
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.lm-formations .sidebar h2 {
    margin-bottom: 24px;
    color: #FFF;
}

.lm-formations .sidebar .info {
    padding: 0 32px;
    position: relative;
}

.lm-formations .sidebar .info img {
    position: absolute;
    left: 0;
    top: 0;
}

.lm-formations .sidebar .infos .title {
    font-weight: 700;
    margin-bottom: 8px;
}

.lm-formations .sidebar .access {
    background-color: var(--primary-400);
    padding: var(--gap15) 16px;
    position: relative;
    color: #FFF;
}

.lm-formations .sidebar .access p,
.lm-formations .sidebar .access a.email {
    padding: 0 32px;
    box-sizing: border-box;
    color: #FFF;
}

.lm-formations .sidebar .access a.email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    text-decoration: none;
}

.lm-formations .sidebar .infos::after,
.lm-formations .sidebar .access::after {
    content:'';
    position: absolute;
    top: 0;
    right: 0;
}

.lm-formations .content {
    color: var(--primary-400);
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 80px;
    width: 69%;
}

@media (max-width: 1000px) {

    .lm-formations .content,
    .lm-formations .sidebar {
        width: 100%;
    }
}

.lm-formations .content .elem-content {
    padding: 0 32px;
}

.lm-formations .content .elem-content h3 {
    padding-top: 32px;
}

.lm-formations .content .elem-content h3:first-child {
    padding-top: 0;
}

.lm-formations table {
    width: 100%;
}

.lm-formations .lm_button {
    align-self: center;
}

/* OBJECTIFS */

.lm-formations .slider.slider-content.slider-type-content_number .site_margin {
    width: 100%;
}

.lm-formations .slider.slider-content.slider-type-content_number .lm-card {
    padding: 0;
}

.lm-formations .slider.slider-content.slider-type-content_number .lm-card .number {
    line-height: 1;
}

.lm-formations .slider.slider-content.slider-type-content_number .lm-card p {
    font-size: 14px;
}

/* BLOC IMAGE + DESCRIPTION */

.img_desc>.ctnr {
    gap: 12px;
    padding-inline: 24px;
}

.single-formations .img_desc .img img {
    width: 80px;
}

.single-formations .img_desc .img {
    text-align: center;
    padding-right: 0;
    min-width: 150px;
}

.single-formations .img_desc>.ctnr>div {
    flex-basis: unset;
}


/* COUT DE LA FORMATION */

.sheet {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.sheet th,
.sheet td {
    border: 1px solid #B2BDE9;
    padding: 10px 15px; 
    vertical-align: middle;
}

.sheet th {
    background-color: var(--grey-50);
    font-weight: 600;
}

/* BLOC PREINSC */

.lm-formations .lm-bloc.img_desc {
    background-color: var(--grey-50);
    border-radius: 10px;
}

/* POPUP FORM */ 


.form-popup {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
}

.form-popup .ctnr {
    margin: auto;
    background: #fff;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%;
    height: auto;
}


.form-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.close-form-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #333;
    transition: color 0.2s ease;
}

.close-form-popup:hover {
    color: #000;
}

.open-form-popup {
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    transition: background 0.2s ease;
}

.open-form-popup:hover {
    background: #005f8c;
}

