.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.burger {
    border: 0;
    background: transparent;
}

.formations-hero {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 190px 5% 120px;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.15), #050505),
        radial-gradient(circle at 50% 45%, #13231d 0, #080b09 42%, #050505 70%);
}

.formations-hero::before,
.formations-hero::after {
    content: "";
    position: absolute;
    width: 26vw;
    height: 26vw;
    min-width: 280px;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 44px;
    transform: rotate(20deg);
}

.formations-hero::before {
    left: -12vw;
    top: 24%;
}

.formations-hero::after {
    right: -14vw;
    bottom: 6%;
}

.hero-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    pointer-events: none;
}

.orb-green {
    background: #0f8b6d;
    top: -180px;
    left: 18%;
}

.orb-orange {
    background: #f68b33;
    right: 5%;
    bottom: -250px;
}

.formations-hero-inner {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #c3ccc8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker span {
    width: 28px;
    height: 2px;
    background: #f68b33;
}

.formations-hero h1 {
    margin-bottom: 28px;
    color: #fff;
    font-size: clamp(3.2rem, 7.4vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.96;
}

.formations-hero h1 strong {
    color: #0f8b6d;
    font-weight: 800;
}

.formations-hero-inner > p {
    max-width: 670px;
    margin: 0 auto 42px;
    color: #a9b1ad;
    font-size: 1.08rem;
    line-height: 1.7;
}

.formation-search {
    width: min(680px, 100%);
    margin: 0 auto 46px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.formation-search:focus-within {
    border-color: rgba(15, 139, 109, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.formation-search svg {
    flex: 0 0 auto;
    color: #0f8b6d;
}

.formation-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 0.96rem;
}

.formation-search input::placeholder {
    color: #77807c;
}

.formation-search button,
.empty-state button {
    border: 0;
    border-radius: 50px;
    background: #f68b33;
    color: #fff;
    padding: 15px 24px;
    font-weight: 700;
    cursor: pointer;
}

.hero-proof {
    display: flex;
    justify-content: center;
    gap: 52px;
}

.hero-proof div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.hero-proof strong {
    color: #fff;
    font-size: 1.25rem;
}

.hero-proof span {
    color: #747d79;
    font-size: 0.75rem;
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #69726e;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.scroll-cue span {
    color: #0f8b6d;
    font-size: 1.2rem;
}

.catalogue-section {
    min-height: 100vh;
    padding: 110px 5% 130px;
    background: #f4f5f2;
    color: #141815;
}

.catalogue-heading {
    width: min(1320px, 100%);
    margin: 0 auto 55px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
}

.catalogue-heading h2 {
    margin-top: 10px;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1;
    letter-spacing: -0.065em;
}

.catalogue-heading p {
    max-width: 450px;
    color: #68706b;
    font-size: 0.94rem;
    line-height: 1.7;
}

.catalogue-toolbar {
    width: min(1320px, 100%);
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dce0dc;
    border-radius: 50px;
    background: #fff;
    color: #59615d;
    padding: 10px 15px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.filter-tab span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #edf0ed;
    color: #808783;
    font-size: 0.67rem;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: #0f8b6d;
    background: #0f8b6d;
    color: #fff;
}

.filter-tab.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.result-count {
    flex: 0 0 auto;
    color: #7a827d;
    font-size: 0.78rem;
    font-weight: 700;
}

.formations-list-grid {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.form-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e4e0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(22, 34, 28, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 139, 109, 0.28);
    box-shadow: 0 22px 55px rgba(22, 34, 28, 0.13);
}

.form-card[hidden] {
    display: none;
}

.form-card-visual {
    position: relative;
    height: 158px;
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 20px;
    background-color: #11231c;
    background-position: center;
    background-size: cover;
}

.form-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 6, 0.05), rgba(5, 8, 6, 0.8));
}

.img-immo { background-image: url("https://minemedia.me/imagerachid/AGENTIMMO.PNG"); }
.img-commerce { background-image: url("https://minemedia.me/imagerachid/COMMERCE.PNG"); }
.img-sani { background-image: url("https://minemedia.me/imagerachid/SANI.PNG"); }
.img-esthe { background-image: url("https://minemedia.me/imagerachid/COSMETIQUE.PNG"); }
.img-resto { background-image: url("https://minemedia.me/imagerachid/RESTO.PNG"); }
.alt-1 { background-position: 50% 30%; filter: saturate(0.86); }
.alt-2 { background-position: 42% 55%; filter: hue-rotate(7deg); }
.alt-3 { background-position: 58% 40%; filter: saturate(0.72) brightness(0.9); }
.alt-4 { background-position: 35% 50%; filter: hue-rotate(-8deg) brightness(0.88); }

.formation-code,
.formation-domain {
    position: relative;
    z-index: 1;
}

.formation-code {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.formation-domain {
    max-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    background: rgba(5, 8, 6, 0.48);
    color: #fff;
    padding: 7px 10px;
    font-size: 0.63rem;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(8px);
}

.form-card-body {
    padding: 24px;
}

.form-card-eyebrow {
    margin-bottom: 10px;
    color: #0f8b6d;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-card-body h3 {
    min-height: 58px;
    margin-bottom: 12px;
    color: #121713;
    font-size: 1.25rem;
    line-height: 1.25;
}

.form-card-body > p:not(.form-card-eyebrow) {
    min-height: 88px;
    margin-bottom: 18px;
    color: #69706c;
    font-size: 0.82rem;
    line-height: 1.65;
}

.form-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 61px;
    margin-bottom: 20px;
}

.form-card-meta span {
    height: fit-content;
    border-radius: 50px;
    background: #f1f4f1;
    color: #69716c;
    padding: 6px 9px;
    font-size: 0.65rem;
    font-weight: 700;
}

.form-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-top: 1px solid #e8ebe8;
    background: transparent;
    color: #151a16;
    padding: 18px 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.form-card-btn span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f8b6d;
    color: #fff;
    transition: transform 0.25s ease, background 0.25s ease;
}

.form-card:hover .form-card-btn span {
    transform: translateX(3px);
    background: #f68b33;
}

.empty-state {
    width: min(1320px, 100%);
    margin: 25px auto 0;
    padding: 70px 20px;
    border: 1px dashed #cbd2cd;
    border-radius: 24px;
    text-align: center;
}

.empty-state > span {
    color: #0f8b6d;
    font-size: 3rem;
}

.empty-state h3 {
    margin: 10px 0;
    font-size: 1.4rem;
}

.empty-state p {
    margin-bottom: 22px;
    color: #737b76;
}

.formations-cta {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: end;
    padding: 110px max(5%, calc((100% - 1320px) / 2));
    background:
        radial-gradient(circle at 10% 110%, rgba(15, 139, 109, 0.28), transparent 38%),
        #07100b;
}

.formations-cta h2 {
    margin-top: 12px;
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 5rem);
    letter-spacing: -0.07em;
    line-height: 1;
}

.formations-cta h2 span {
    color: #0f8b6d;
}

.formations-cta p {
    max-width: 440px;
    margin-bottom: 28px;
    color: #a7b0ab;
    line-height: 1.7;
}

.formation-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.formation-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 3, 0.82);
    backdrop-filter: blur(14px);
}

.modal-panel {
    position: relative;
    width: min(940px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: #f7f8f5;
    color: #18201b;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
}

.formation-modal.open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-hero {
    min-height: 210px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 48px;
    border-radius: 27px 27px 0 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(246, 139, 51, 0.25), transparent 38%),
        linear-gradient(135deg, #0d2a20, #07100b);
    color: #fff;
}

.modal-domain {
    display: inline-block;
    margin-bottom: 12px;
    color: #70c7ad;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-hero h2 {
    max-width: 690px;
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.modal-hero p {
    color: #a6b5ad;
    font-size: 0.83rem;
}

.modal-code {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.12);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.modal-facts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid #dfe4df;
    background: #fff;
}

.modal-facts div {
    min-width: 0;
    padding: 18px;
    border-right: 1px solid #e7eae7;
}

.modal-facts div:last-child {
    border-right: 0;
}

.modal-facts span {
    display: block;
    margin-bottom: 5px;
    color: #929994;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.modal-facts strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
    line-height: 1.4;
}

.modal-content {
    padding: 36px 48px 12px;
}

.modal-content section {
    margin-bottom: 32px;
}

.modal-content h3 {
    margin-bottom: 14px;
    color: #0f8b6d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-content p,
.modal-content li {
    color: #5f6862;
    font-size: 0.84rem;
    line-height: 1.7;
}

.modal-columns {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
}

.modal-content ul {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.modal-content li {
    position: relative;
    padding-left: 18px;
}

.modal-content li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f68b33;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.program-item {
    border: 1px solid #e0e5e0;
    border-radius: 13px;
    background: #fff;
    padding: 15px;
    color: #4e5851;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.5;
}

.program-item span {
    display: block;
    margin-bottom: 5px;
    color: #0f8b6d;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-note {
    margin-bottom: 20px;
    border-radius: 14px;
    background: #e9f4ef;
    padding: 18px;
}

.modal-note strong {
    color: #0c7259;
    font-size: 0.74rem;
}

.modal-note p {
    margin-top: 5px;
    color: #547166;
    font-size: 0.76rem;
}

.modal-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 48px;
    border-top: 1px solid #e0e4e0;
    border-radius: 0 0 27px 27px;
    background: rgba(247, 248, 245, 0.94);
    backdrop-filter: blur(14px);
}

.modal-actions a {
    border-radius: 50px;
    padding: 13px 18px;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.modal-pdf {
    border: 1px solid #cfd6d1;
    color: #344039;
}

.modal-contact {
    background: #f68b33;
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

@media screen and (max-width: 1050px) {
    .formations-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-facts div:nth-child(3) {
        border-right: 0;
    }

    .modal-facts div:nth-child(-n+3) {
        border-bottom: 1px solid #e7eae7;
    }
}

@media screen and (max-width: 768px) {
    .formations-hero {
        min-height: auto;
        padding: 145px 5% 95px;
    }

    .formations-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.7rem);
    }

    .formations-hero-inner > p {
        font-size: 0.93rem;
    }

    .formation-search {
        padding-left: 16px;
    }

    .formation-search button {
        width: 45px;
        height: 45px;
        overflow: hidden;
        color: transparent;
        padding: 0;
    }

    .formation-search button::after {
        content: "→";
        display: grid;
        place-items: center;
        color: #fff;
        font-size: 1rem;
    }

    .hero-proof {
        gap: 20px;
    }

    .hero-proof div {
        text-align: center;
    }

    .hero-proof strong {
        font-size: 1rem;
    }

    .scroll-cue {
        display: none;
    }

    .catalogue-section {
        padding: 75px 5% 90px;
    }

    .catalogue-heading,
    .catalogue-toolbar {
        display: block;
    }

    .catalogue-heading p {
        margin-top: 22px;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex: 0 0 auto;
    }

    .result-count {
        margin-top: 14px;
    }

    .formations-list-grid {
        grid-template-columns: 1fr;
    }

    .form-card-body h3,
    .form-card-body > p:not(.form-card-eyebrow),
    .form-card-meta {
        min-height: 0;
    }

    .formations-cta {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 80px 5%;
    }

    .formation-modal {
        padding: 0;
        place-items: end center;
    }

    .modal-panel {
        width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
    }

    .modal-hero {
        min-height: 190px;
        padding: 50px 22px 26px;
        border-radius: 23px 23px 0 0;
    }

    .modal-code {
        display: none;
    }

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

    .modal-facts div,
    .modal-facts div:nth-child(3) {
        border-right: 1px solid #e7eae7;
        border-bottom: 1px solid #e7eae7;
    }

    .modal-facts div:nth-child(even),
    .modal-facts div:last-child {
        border-right: 0;
    }

    .modal-content {
        padding: 28px 22px 8px;
    }

    .modal-columns,
    .program-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .program-list {
        gap: 8px;
    }

    .modal-actions {
        padding: 14px 18px;
        justify-content: stretch;
    }

    .modal-actions a {
        flex: 1;
        display: grid;
        place-items: center;
        text-align: center;
    }
}
