.search-module {
    color: var(--neutre-100);
    margin-bottom: 32px;
}

@media screen and (min-width:768px) {
    .search-module {
        margin-bottom: 64px;
    }
}

.search-module--container {
    background: var(--ocre-20);
    border-radius: 20px;
    padding: 32px 20px;
}
@media screen and (min-width: 992px) {
    .search-module--container {
        padding: 48px;
    }
}
.th-dark .search-module--container {
    background: var(--ocre-100);
}
.th-light .search-module--container {
    background: var(--ocre-40);
}
.search-module--title {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 24px auto;
    column-gap: 16px;
    row-gap: 8px;
}
.search-module--title h2 {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    grid-column: 2/3;
}
@media screen and (min-width: 768px) {
    .search-module--title h2 {
        font-size: 24px;
    }
}
.search-module--title span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--ocre-100);
    border-radius: 50%;
    flex-shrink: 0;
    grid-column: 1/2;
}
.th-light .search-module--title span,
.th-dark .search-module--title span {
    background: var(--white);
}
.search-module--title span::before {
    content: "";
    width: 15px;
    height: 15px;
    -webkit-mask: url("../../../../../../themes/apo/resources/images/icons/icon-search.svg") no-repeat center;
    mask: url("../../../../../../themes/apo/resources/images/icons/icon-search.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background: var(--white);
}
.th-light .search-module--title span::before,
.th-dark .search-module--title span::before {
    background: var(--neutre-100);
}
.search-module--title p {
    grid-column: 1 / -1;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
@media screen and (min-width: 768px) {
    .search-module--title p {
        font-size: 16px;
        grid-column: 2/3;
    }
}
.search-module--filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media screen and (min-width: 992px) {
    .search-module--filters {
        flex-direction: row;
        align-items: flex-end;
    }
}
.search-module--filters button {
    width: 100%;
    flex: auto;
    cursor: pointer;
}
@media screen and (min-width: 992px) {
    .search-module--filters button {
        width: max-content;
        flex: 0 0 max-content;
        height: 38px;
        align-self: self-end;
    }
}
.search-module--filters button span {
    width: 14px !important;
    height: 14px !important;
}
.search-module .select-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media screen and (min-width: 992px) {
    .search-module .select-container {
        flex: 0 1 287px;
    }
}
.search-module .select-container label {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    font-family: var(--roboto);
}
.search-module .select-container .select-wrapper {
    width: 100%;
    position: relative;
}
.search-module .select-container .select-wrapper::after {
    content: "";
    width: 24px;
    height: 24px;
    background: url("../../../../../../themes/apo/resources/images/icons/chevron-bottom.svg") no-repeat center;
    background-size: contain;
    position: absolute;
    right: 12px;
    top: calc(50% - 12px);
    pointer-events: none;
}
.search-module .select-container select {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--ocre-100);
    border-radius: 10px;
    padding: 12px;
    color: var(--neutre-60);
    font-family: var(--roboto);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
}
.th-dark .search-module .select-container select {
    border-color: var(--white);
}
.th-light .search-module .select-container select {
    border-color: var(--neutre-100);
}

.formation-listing-photo--list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
@media screen and (min-width: 768px) {
    .formation-listing-photo--list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.formation-listing-photo .pagination {
    margin-top: 32px;
    width: 100%;
}

.formation-photo-item {
    color: var(--neutre-100);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}
@media screen and (min-width: 768px) {
    .formation-photo-item {
        width: calc(50% - 16px);
    }
}
@media screen and (min-width: 992px) {
    .formation-photo-item {
        height: 448px;
    }
}
@media screen and (min-width: 1024px) {
    .formation-photo-item {
        width: calc(33.33% - 22px);
    }
}
.formation-photo-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    transition: all 0.6s ease;
}
.formation-photo-item--content,
.formation-photo-item--categories {
    position: absolute;
    left: 16px;
    width: calc(100% - 32px);
    z-index: 2;
}
.formation-photo-item--categories {
    top: 16px;
    display: flex;
    gap: 8px;
    pointer-events: none;
}
.formation-photo-item--categories span {
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    padding: 6px 10px;
    background: var(--white);
    border-radius: 20px;
}
.formation-photo-item--content {
    bottom: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    transition: all 0.6s ease;
}
.formation-photo-item--content span {
    font-family: var(--robotoSlab);
    color: var(--ocre-100);
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: all 0.6s ease;
}
.th-dark .formation-photo-item--content span,
.th-light .formation-photo-item--content span {
    color: var(--neutre-60);
}
.formation-photo-item--content .title {
    font-family: var(--robotoSlab);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    transition: all 0.6s ease;
}
.formation-photo-item--content .informations {
    display: flex;
    align-items: center;
    gap: 16px;
}
.formation-photo-item--content .informations span {
    padding: 4px 0;
    color: var(--neutre-100);
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 4px;
}
.formation-photo-item--content .informations span::before {
    content: "";
    background: var(--ocre-100);
    height: 12px;
    width: 12px;
    transition: all 0.6s ease;
}
.formation-photo-item--content .informations span.study::before {
    -webkit-mask: url("../../../../../../themes/apo/resources/images/icons/icon-study.svg") no-repeat center;
    mask: url("../../../../../../themes/apo/resources/images/icons/icon-study.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.formation-photo-item--content .informations span.location::before {
    -webkit-mask: url("../../../../../../themes/apo/resources/images/icons/icon-location.svg") no-repeat center;
    mask: url("../../../../../../themes/apo/resources/images/icons/icon-location.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.formation-photo-item .formation-link {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28.41%, #000 81.21%), linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    z-index: 1;
    transition: all 0.6s ease;
}
.formation-photo-item:hover img {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}
.formation-photo-item:hover .formation-link {
    opacity: 1;
}
.formation-photo-item:hover .formation-photo-item--content {
    background: var(--ocre-100);
}
.th-dark .formation-photo-item:hover .formation-photo-item--content,
.th-light .formation-photo-item:hover .formation-photo-item--content {
    background: var(--ocre-20);
}
.th-dore .formation-photo-item:hover .formation-photo-item--content span,
.th-dore .formation-photo-item:hover .formation-photo-item--content .title {
    color: var(--white);
}
.th-light .formation-photo-item:hover .formation-photo-item--content span,
.th-dark .formation-photo-item:hover .formation-photo-item--content span,
.th-light .formation-photo-item:hover .formation-photo-item--content .title,
.th-dark .formation-photo-item:hover .formation-photo-item--content .title {
    color: var(--neutre-100);
}
.th-dore .formation-photo-item:hover .formation-photo-item--content span::before {
    background: var(--white);
}

/* LISTING PICTOGRAMME */
.formation-listing--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media screen and (min-width: 768px) {
    .formation-listing--list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
@media screen and (min-width: 1280px) {
    .formation-listing--list {
        gap: 32px;
    }
}

.formation-listing .pagination {
    margin-top: 24px;
    width: 100%;
}
@media screen and (min-width: 992px) {
    .formation-listing .pagination {
        margin-top: 32px;
    }
}

.formation-item {
    color: var(--neutre-100);
    border: 0.5px solid var(--ocre-80);
    border-radius: 20px;
    padding: 8px 8px 16px 8px;
    width: 100%;
    display: none;
    height: 100%;
}
@media screen and (min-width: 768px) {
    .formation-item {
        width: calc(50% - 8px);
        display: block;
    }
}
@media screen and (min-width: 992px) {
    .formation-item {
        width: calc(33.33% - 11px);
    }
}
@media screen and (min-width: 1280px) {
    .formation-item {
        width: calc(25% - 24px);
    }
}
.th-light .formation-item {
    background: var(--ocre-20);
    border-color: var(--neutre-40);
}
.th-dark .formation-item {
    border-color: var(--neutre-40);
}
.formation-item--insert {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: var(--ocre-80);
    margin-bottom: 8px;
}
@media screen and (min-width: 992px) {
    .formation-item--insert {
        gap: 16px;
        margin-bottom: 16px;
    }
}
.th-light .formation-item--insert {
    background: var(--ocre-60);
}
.th-dark .formation-item--insert {
    background: #e7d3ac;
}
.formation-item--cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.formation-item--cat-cat {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}
.formation-item--cat .category {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--white);
    font-family: var(--robotoSlab);
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border: 1px solid var(--white);
}
.th-dark .formation-item--cat .category {
    border-color: var(--neutre-100);
}
.formation-item--cat .add-fav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1px solid var(--neutre-100);
    border-radius: 50%;
    transition: all 0.4s ease;
}
.formation-item--cat .add-fav::after {
    content: "";
    height: 16px;
    width: 16px;
    -webkit-mask: url("../../../../../../themes/apo/resources/images/icons/icon-signet.svg") no-repeat center;
    mask: url("../../../../../../themes/apo/resources/images/icons/icon-signet.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background: var(--neutre-100);
    transition: all 0.4s ease;
}
.formation-item--title {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}
.formation-item--title .picto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.th-light .formation-item--title .picto,
.th-dark .formation-item--title .picto {
    background: var(--neutre-100);
}
.formation-item--title .picto::after {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--ocre-100);
    -webkit-mask: var(--picto-url);
    mask: var(--picto-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.th-light .formation-item--title .picto::after,
.th-dark .formation-item--title .picto::after {
    background: var(--white);
}
.formation-item--title div span {
    font-family: var(--robotoSlab);
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}
.formation-item--title div .title {
    font-family: var(--robotoSlab);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}
@media screen and (min-width: 992px) {
    .formation-item--title div .title {
        font-size: 1.25rem;
        line-height: 28px;
    }
}
.formation-item--tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.formation-item--tags .tags-tag {
    font-family: var(--robotoSlab);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--neutre-100);
}
.formation-item--bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
    gap: 4px;
}
.formation-item--bottom div{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}
.formation-item--bottom .study {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}
.formation-item--bottom .location {
    display: flex;
    gap: 4px;
    align-items: center;
    color: var(--neutre-60);
    font-family: var(--robotoSlab);
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 4px 0;
}
.formation-item--bottom .location::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--ocre-100);
    -webkit-mask: url("../../../../../../themes/apo/resources/images/icons/icon-location.svg") no-repeat center;
    mask: url("../../../../../../themes/apo/resources/images/icons/icon-location.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.formation-item--bottom .btn.primary {
    line-height: 12px;
    margin: 0 0 auto auto;
}
.th-dore .formation-item--bottom .btn.primary {
    --color: var(--ocre-100);
    --bg-color: var(--white);
    --border-color: var(--ocre-100);
    --color-hover: var(--white);
    --bg-color-hover: var(--ocre-100);
    --border-color-hover: var(--ocre-100);
}

.listing-formation--btn {
    margin-top: 16px;
    grid-column: 1/-1;
    justify-items: center;
}

@media screen and (min-width: 768px) {
    .listing-formation--btn {
        display: none;
    }
}
