.ehf-header #masthead {
    box-shadow: 0 -4px 10px rgba(10, 36, 23);
}

.box-shadow {
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
}

.radius-10 {
    border-radius: 10px !important;
}

.alert {
    padding: 16px 20px;
    border-radius: 6px;
    background-color: #e9f7fd;
    color: #31708f;
    border: 1px solid #bce8f1;
    margin: 20px 0;
    font-size: 1rem;
    position: relative;
}

.alert-info::before {
    content: "ℹ️";
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
}

.alert a {
    color: #245269;
    text-decoration: underline;
}

#cta-popup {
    display: block;
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 350px;
    background: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 30px;
    z-index: 9999;
    font-family: Poppins, sans-serif;
}

/*Homepage*/
.ekit-wid-con .elementskit-clients-slider .single-client {
    border-radius: 0.5rem;
    box-shadow: 0 2.32px 4.64px -2.32px rgba(31,33,36,.08),0 6.186px 15.466px -3.093px rgba(31,33,36,.12);
}

.footer-width-fixer > div > div {
    background-color: #F2F2F2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23F2F2F2' stroke-width='0.3' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cuse fill='%23f0f0f0' href='%23s' y='2'/%3E%3Cuse fill='%23f0f0f0' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23ededed' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23ededed' href='%23s'/%3E%3Cuse fill='%23ebebeb' href='%23s' x='2'/%3E%3Cuse fill='%23ebebeb' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23e8e8e8'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23e8e8e8'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23e6e6e6'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23F2F2F2'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23e3e3e3'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23F2F2F2'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23F2F2F2'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='scale(12.15) translate(-917.7 -688.27)'%3E%3Cg fill='%23F2F2F2'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

.single-formation h1 {
    font-size: 38px;
}

.single-formation #page {
    background-color: #f2f2f2;
}

.single-formation #page #content {
    background-color: #fff;
    padding: 20px 30px;
    max-width: 1380px;
    margin: 15px auto 35px;
    border-radius: 0.5rem;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .single-formation #page {
        background-color: #ffffff;
    }

    .single-formation #page #content {
        padding: 15px 20px;
        border: 0 !important;
    }
}

.single-formation .page-content {
    padding-bottom: 40px;
}

.content-flex {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.content-image {
    flex: 1;
    min-width: 0;
}

.content-main {
    flex: 3;
    min-width: 0;
    align-items: center;
}

@media (max-width: 768px) {
    .content-flex {
        flex-direction: column;
        gap: 20px;
    }
    .content-image,
    .content-main {
        flex: unset;
        width: 100%;
        min-width: 0;
    }
    .content-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.formation-container {
    display: flex;
    gap: 40px;
}

.formation-left {
    flex: 1;
}

.formation-right {
    flex: 2;
}

@media (max-width: 768px) {
    .formation-container {
        flex-direction: column;
        gap: 24px;
    }

    .formation-left,
    .formation-right {
        width: 100%;
        flex: unset;
    }

    .formation-left {
        margin-top: 30px;
    }
}

.formation-interest-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 26px;
    background: #273E8A;
    color: #fff !important;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s;
}
.formation-interest-btn:hover {
    background: #16318d;
}


.accordion-item {
    border-bottom: 1px solid #333333;
    margin-bottom: 10px;
}

.accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.accordion-header h3 {
    margin: 0;
    flex-grow: 1;
}

.accordion-header .icon {
    margin-right: 10px;
    color: #F68818;
    width: 30px;
}

.accordion-header h3, .accordion-header .icon {
    font-size: 24px;
}

.accordion-content {
    display: none;
    padding: 10px 0;
}

.accordion-content.open {
    display: block;
}

.accordion-toggle i {
    transition: transform 0.3s;
    color: #666666;
}

.accordion-toggle.rotated i {
    transform: rotate(180deg);
}

.formation-contact {
    background-color: #fafafa !important;
    padding: 30px 25px !important;
    border-radius: 8px !important;
}

.formation-contact .wpforms-container {
    margin: 0 !important;
}

.formation-contact .wpforms-field-label {
    display: block;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
}

.formation-contact h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 18px !important;
    font-weight: 500;
    line-height: normal !important;
}

.wpforms-confirmation-scroll {
    margin-top: 30px !important;
}

/* Base grid for formations */
.formations-main {
    margin-bottom: 30px;
}

.formations-main h1 {
    text-align: center;
    font-size: 2.5em;
    margin-top: 35px;
    margin-bottom: 10px;
    color: #503E8B;
    font-weight: bold;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .formations-main h1 {
        font-size: 1.9em;
    }
}

.formations-main h2 {
    text-align: center;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #F68919;
    font-weight: normal;
    text-transform: uppercase;
}

@media (min-width: 1200px) {
    .formations-main {
        max-width: 1380px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

.formations-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    /* Default for mobile (1 item per line) */
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
}

.formation-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff; /* or your desired color */
    display: flex; /* Aligns content inside the item */
    flex-direction: column;
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
}

.single-formation .formation-item {

}

.formation-image {
    width: 100%;
    background-repeat: no-repeat;
}

.formation-content {
    position: relative;
    padding: 15px;
    background-color: #fff;
    color: #6A5A9C;
    min-height: 165px;
}

.formation-content h3 {
    color: #503E8B;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 5px;
}

.formation-excerpt {
    font-size: 0.85em;
    flex-grow: 1; /* Ensures the excerpt takes up available space */
    line-height: normal;
}

.formation-meta {
    font-size: 0.9em;
    margin-top: 10px;
    position: absolute;
    left: 15px;
    right: 0;
    bottom: 12px;
}

/* Tablet (3 items per line) */
@media (min-width: 768px) {
    .formations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (5 items per line) */
@media (min-width: 1200px) {
    .formations-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

#related-courses {
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    #related-courses {
        max-width: 100%;
    }
}

/*Events*/
.osidf-events-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Mobile (default: 1 column) */
@media (max-width: 768px) {
    .osidf-events-list {
        grid-template-columns: 1fr;
    }
}

.osidf-event-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1),
    0px 0px 2px 0px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.osidf-event-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}
.osidf-event-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.osidf-event-title {
    font-size: 22px !important;
    margin: 0 0 8px;
    min-height: 48px;
}
.osidf-event-date,
.osidf-event-location {
    font-size: 14px;
}

.osidf-event-description {
    margin-top: 10px;
}

.osidf-event-link {
    align-self: flex-start;
    margin-top: 5px;
    padding: 8px 25px;
    border-radius: 8px;
    background: #005f8d;
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

/*Offres d'emploi*/
.offres-header {
    background: url("https://cdn.pixabay.com/photo/2024/11/19/03/43/handshake-9208017_1280.jpg") no-repeat center center;
    background-size: cover;
    height: 300px;
    position: relative;
    border-radius: 12px;
    padding: 45px 35px;
    margin-top: 70px;
}

.offres-header h1, .offres-header h2 {
    text-align: left;
    width: auto;
    display: inline;
}

.offres-header h1 {
    color: #ffffff;
    background-color: rgba(80, 62, 139, 0.60);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.offres-header h2 {
    text-transform: none;
    background-color: rgba(255, 255, 255, 0.60);
    font-weight: 600;
    color: #503E8B;
}

.offres-header .h2 {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .offres-header {
        padding: 25px 15px;
        text-align: center;
    }

    .offres-header h1 {
        font-size: 30px;
    }

    .offres-header h2 {
        font-size: 22px;
    }

    .offres-header .h2 {
        margin-top: 5px;
    }
}

.emploi-search {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
    border: 3px solid #0A1A3D;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 15px;
    width: 70%;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 2;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.emploi-search select {
    border: none;
}

.emploi-search select,
.emploi-search button {
    min-width: 180px;
    padding: 8px 12px;
    font-size: 1em;
    font-weight: bold;
    color: #433675;
}

.emploi-search select:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .emploi-search {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 95%;
        bottom: 50px;
    }

    .emploi-search select,
    .emploi-search button {
        min-width: 0;
        width: 100%;
    }
}

.emploi-search button[type="submit"] {
    min-width: 55px;
    min-height: 50px;
    color: #fff;
    font-size: 25px;
}

.emploi-container {
    margin-top: 80px;
    margin-bottom: 40px;
}

.emplois-header h2 {
    text-align: left !important;
    font-weight: bold;
    text-transform: none;
    color: #A7A0BE;
    margin-bottom: 0px;
}

.emplois-header h3 {
    font-size: 32px;
    text-align: left !important;
    color: #0A1A3D;
    font-weight: bold;
}

.emplois-header {
    text-align: center;
    margin-bottom: 20px;
}

.emploi-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .emploi-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .emplois-header {
        margin-top: 85px;
        padding: 0 15px;
    }

    .emplois-header h3 {
        margin-top: 0;
    }

    .emploi-list {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 15px;
    }

    .emploi-card {
        min-width: 0;
        width: 100%;
    }
}

.emploi-card {
    border: 3px solid #433675;
    border-radius: 14px;
}

.emploi-card-header {
    padding: 20px;
    height: 100px;
    border-radius: 12px 12px 0 0;
    background-size: cover;
    background-position: center;
}

.emploi-card-header img {
    border-radius: 8px;
}

.emploi-card-body {
    padding: 20px;
}

h3.emploi-title {
    font-size: 22px;
    font-weight: 700;
}

.emploi-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.emploi-meta-row .emploi-domaine {
    font-weight: 600;
}

.emploi-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.emploi-button {
    background-color: #FFB98B;
    color: #000 !important;
    font-weight: 600;
    padding: 6px 8px;
    text-transform: uppercase;
    border-radius: 8px;
}

.emploi-departement {
    margin-bottom: 0;
}

/* Add to your theme's CSS */
.pdf-modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7); justify-content: center; align-items: center;
}
.pdf-modal-content {
    background: #fff; padding: 0; border-radius: 8px; max-width: 90vw; max-height: 90vh; width: 800px; position: relative; display: flex; flex-direction: column;
}
.pdf-modal-close {
    position: absolute; top: 10px; right: 15px; font-size: 2rem; cursor: pointer; z-index: 2;
}

#pdfFrame {
    width: 100%; height: 80vh; border: none;
}
@media (max-width: 900px) {
    .pdf-modal-content { width: 97vw; }
    #pdfFrame { height: 60vh; }
}

/*BLOG*/
.elementskit-blog-block-post {
    margin-bottom: 40px !important;
}

.ekit-wid-con .elementskit-blog-block-post .elementskit-entry-thumb {
    border-radius: 10px 0 0 10px !important;
}

.elementskit-blog-block-post .order-2 {
    padding-top: 20px;
}
/*END BLOG*/

/*Home catalogue form*/
.wpforms-form input[type="text"], .wpforms-form input[type="email"], .wpforms-form select, .wpforms-form textarea, .wpforms-form button[type="submit"], .wpforms-form input {
    max-width: 100% !important;
}

.wpforms-form button[type="submit"] {
    width: 100% !important;
    font-weight: normal;
}
/*END Home catalogue form*/

.vkard-google-reviews .google-review-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 10px;
    transition: 0.3s;
    min-height: 250px;
}
.vkard-google-reviews .google-review-card:hover {
    transform: translateY(-4px);
}
.google-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.google-review-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
}
.google-review-stars {
    color: #fbbc05;
    margin-bottom: 8px;
    font-size: 23px;
}
.google-review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4em;
    margin-bottom: 3px;
}
.google-review-name {
    font-weight: bold;
}
.google-review-date {
    font-size: 14px;
    color: #777;
    margin-top: -8px;
}
.owl-prev-icon, .owl-next-icon {
    font-size: 32px;
    color: #555;
    cursor: pointer;
    user-select: none;
}
.owl-nav span:hover {
    color: #000;
}

.vkard-google-summary {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    width: fit-content;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.vkard-google-photo {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.vkard-google-summary-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vkard-google-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.vkard-google-stars {
    color: #fbbc05;
    font-size: 25px;
    margin: 2px 0;
}

.vkard-google-count {
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
}

.vkard-google-button {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 13px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.vkard-google-button:hover {
    background: #999;
    color: #fff;
}

.vkard-google-reviews .owl-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
}

.google-review-more {
    font-size: 14px;
}