.formation-document {
    padding: 48px 16px;
    background: #f5f5f3;
    color: #292929;
    font-family: 'Poppins', sans-serif;
}

.formation-document * { font-family: 'Poppins', sans-serif !important; }

.formation-document__page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 72px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.formation-document__header {
    padding-bottom: 28px;
    border-bottom: 1px solid #d9d9d9;
    text-align: center;
}

.formation-document__eyebrow {
    margin-bottom: 10px;
    color: #1b1464;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.formation-document__title {
    position: relative;
    margin: 0 0 36px;
    color: #1b1464;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.formation-document__title::after {
    position: absolute;
    bottom: -14px;
    left: 50%;
    width: 54px;
    height: 3px;
    background: #ff9a12;
    content: '';
    transform: translateX(-50%);
}

.formation-document__subtitle {
    margin: 0;
    font-size: 18px;
}

.formation-document__quote {
    margin: 30px 0 0;
    padding-left: 18px;
    border-left: 3px solid #02a51a;
    color: #555;
    font: italic 18px/1.6 Georgia, 'Times New Roman', serif;
}

.formation-document__introduction {
    display: flex;
    align-items: stretch;
    gap: 42px;
    padding: 36px 0;
    border-bottom: 1px solid #e4e4e4;
}

.formation-document__visual,
.formation-document__introduction-copy {
    width: 50%;
}
.formation-document__visual:only-child,
.formation-document__introduction-copy:only-child { width: 100%; }

.formation-document__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.formation-document__introduction-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formation-section {
    padding: 30px 0;
    border-bottom: 1px solid #e4e4e4;
}

.formation-section:last-of-type {
    border-bottom: 0;
}

.formation-section h2,
.formation-document__introduction h2 {
    margin: 0 0 24px;
    padding-bottom: 14px;
    position: relative;
    color: #1b1464;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.formation-section h2::after,
.formation-document__introduction h2::after {
    background: #ff9a12;
    bottom: 0;
    content: '';
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 38px;
}

.formation-rich-text {
    font-size: 16px;
    line-height: 1.75;
}

.formation-rich-text p {
    text-align: justify;
}

.formation-rich-text p:last-child,
.formation-rich-text ul:last-child {
    margin-bottom: 0;
}

.formation-rich-text ul {
    padding-left: 22px;
}

.formation-rich-text li {
    margin-bottom: 6px;
}

.formation-sessions {
    margin-top: 16px;
    padding-left: 24px;
    border-left: 2px solid #d8d8d8;
}

.formation-session {
    margin-bottom: 26px;
}

.formation-session:last-child {
    margin-bottom: 0;
}

.formation-session h3 {
    margin: 0 0 8px;
    color: #333;
    font-size: 19px;
}

.formation-facts {
    width: 100%;
    margin-top: 6px;
    border-collapse: collapse;
}

.formation-facts th,
.formation-facts td {
    padding: 10px 8px;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
    vertical-align: top;
}

.formation-facts th {
    width: 36%;
    color: #444;
    font-weight: 600;
}

.formation-document__contact {
    margin-top: 34px;
    padding: 28px;
    background: #f3f6f3;
    text-align: center;
}

.formation-document__contact h2 {
    margin-bottom: 8px;
    color: #1b1464;
    font-size: 23px;
}

.formation-section--with-image {
    display: flex;
    align-items: stretch;
    gap: 42px;
}

.formation-section--image-right {
    flex-direction: row-reverse;
}

.formation-section--with-image .formation-section__visual,
.formation-section--with-image .formation-section__copy {
    width: 50%;
}

.formation-section__visual {
    margin: 0;
}

.formation-section__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 560px;
    object-fit: cover;
}

.formation-section--with-image .formation-section__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formation-gallery {
    position: relative;
    overflow: hidden;
    margin: 36px -72px -64px;
    padding: 18px 0;
    border-top: 1px solid #e4e4e4;
}

.formation-gallery__track,
.formation-gallery__group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.formation-gallery__track {
    width: max-content;
    padding: 0 18px;
}

.formation-gallery__group {
    flex-shrink: 0;
}

.formation-gallery__group--duplicate {
    display: none;
}

.formation-gallery__item {
    flex: 0 0 250px;
    width: 250px;
    margin: 0;
}

.formation-gallery__item img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.formation-gallery.is-overflowing .formation-gallery__group--duplicate {
    display: flex;
}

.formation-gallery.is-overflowing .formation-gallery__track {
    animation: formation-gallery-scroll 32s linear infinite;
}

.formation-gallery.is-overflowing:hover .formation-gallery__track,
.formation-gallery.is-overflowing:focus-within .formation-gallery__track {
    animation-play-state: paused;
}

@keyframes formation-gallery-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 7px)); }
}

@media (prefers-reduced-motion: reduce) {
    .formation-gallery.is-overflowing {
        overflow-x: auto;
    }

    .formation-gallery.is-overflowing .formation-gallery__track {
        animation: none;
    }
}

.formation-document__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 8px 0;
    padding: 9px 13px;
    color: #1b1464;
    font-weight: 600;
    text-decoration: none;
}

.formation-document__links i {
    font-size: 19px;
}

@media (max-width: 767px) {
    .formation-document {
        padding: 20px 0;
    }

    .formation-document__page {
        padding: 36px 22px;
        box-shadow: none;
    }

    .formation-document__title {
        font-size: 2rem;
    }

    .formation-document__introduction {
        display: block;
    }

    .formation-document__visual,
    .formation-document__introduction-copy {
        width: 100%;
    }

    .formation-document__visual {
        margin-bottom: 26px;
    }

    .formation-document__visual img {
        min-height: 220px;
        max-height: 340px;
    }

    .formation-section--with-image,
    .formation-section--image-right {
        display: block;
    }

    .formation-section--with-image .formation-section__visual,
    .formation-section--with-image .formation-section__copy {
        width: 100%;
    }

    .formation-section__visual {
        margin-bottom: 26px;
    }

    .formation-section__visual img {
        min-height: 220px;
        max-height: 340px;
    }

    .formation-gallery {
        margin: 30px -22px -36px;
    }

    .formation-gallery__item {
        flex-basis: 210px;
        width: 210px;
    }

    .formation-gallery__item img {
        height: 145px;
    }

    .formation-facts th,
    .formation-facts td {
        display: block;
        width: 100%;
    }

    .formation-facts th {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .formation-facts td {
        padding-top: 3px;
    }
}
