/*
Theme Name: IFSI - IFAS Pontoise - Beaumont
Author: Bayard-Service
Author URI: https://www.bayard-service.com
Description: A child theme for bsw-aster.
Text Domain: aster
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.0
Version: 1.0.0
Template: bsw-aster
*/

html {
	scroll-padding-top: 100px;
}
/* *****************************
----------------------------
	= LAYOUT
----------------------------
***************************** */

/* ----------------------------
	== HEADER
---------------------------- */
.site-header {}

@media only screen and (min-width: 991px) {
	.site-header {
		position: fixed;
		top: -300px;
		left: 0;
		right: 0;
		z-index: 20;
		transition: all .5s;
	}
}

.site-header-fixe {
	position: relative;
	z-index: 10;
	padding: 0 var(--wp--preset--spacing--window);
} 

/*
    LOGO
*/
.wp-block-site-logo {
	margin: 0 !important;
}

.site-header-fixe .wp-block-site-logo {
	max-width: 75px;
}

/*
    SEARCH
*/
#pop-search a,
#pop-nav a {
	font-family: ifsi-ifas;
	opacity: 1;
}
#pop-nav a {
	padding: 15px;
	font-size: 1.5rem;
}
.wp-block-search__inside-wrapper {
	margin-bottom: var(--wp--preset--spacing--text);
}
.wp-block-search__inside-wrapper > input {
	border-radius: var(--wp--custom--border--radius--large);
}

/*
	MAIN NAVIGATION
*/
.main-nav {
	row-gap: 8px;
}
.main-nav .wp-block-navigation__submenu-container {
	border: none !important;
}
.main-nav .wp-block-navigation__submenu-container li {
	transition: 0.3s;
}
.main-nav .wp-block-navigation__submenu-container li:hover {
	background-color: var(--wp--preset--color--current);
}
.main-nav .current-menu-item a,
.main-nav .current-menu-ancestor a {
	color: var(--wp--preset--color--primary) !important;
	border-bottom: 1px solid var(--wp--preset--color--primary);
}
.main-nav .current-menu-ancestor .wp-block-navigation__submenu-container a,
.main-nav .current-menu-item .wp-block-navigation__submenu-container a {
	color: var(--wp--preset--color--current) !important;
	border-bottom: none;
}
.main-nav .current-menu-ancestor .wp-block-navigation__submenu-container a:hover,
.main-nav .current-menu-item .wp-block-navigation__submenu-container a:hover {
	color: var(--wp--preset--color--primary) !important;
}
.main-nav .current-menu-ancestor .wp-block-navigation__submenu-container .current-menu-item {
	background-color: var(--wp--preset--color--current);
}
.main-nav .current-menu-ancestor .wp-block-navigation__submenu-container .current-menu-item a {
	color: var(--wp--preset--color--primary) !important;
}
.main-nav-mobile {
	padding: 12px 20px 20px 12px !important;
	position: fixed;
	bottom: -20px;
	right: -20px;
	border-radius: 100%;
	z-index: 10;
}

/*
    BLOCK POPIN
*/
.block-popins::before {
    content: "\e91d";
    font-family: ifsi-ifas;
}
.block-popins .pop-nav,
.block-popins .pop-nav button {
    display: none;
}
.block-popins .pop-nav.actif {
	display: block !important;
}
.block-popins .pop-nav > ul {
    gap: 10px;
}
.block-popins .pop-nav li {
    flex-direction: column;
    text-align: center;
}
.block-popins .pop-nav > ul > li::before {
    content: "";
    display: block;
    margin: 20px auto;
    width: 100px;
    height: 1px;
    background: var(--wp--preset--color--white);
}
.block-popins .pop-nav > ul > li > a {
    font-weight: 700 !important;
	font-family: var(--wp--preset--font-family--title) !important;
}
.block-popins .pop-nav ul {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    flex-direction: column !important;
    justify-content: center;
    row-gap: 0 !important;
    column-gap: 10px !important;
    height: auto !important;
    width: auto !important;
    background: none !important;
    border: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.block-popins .pop-nav li li a {
    padding: 0 !important;
    color: var(--wp--preset--color--white) !important;
	font-family: var(--wp--preset--font-family--current);
}
.block-popins .wp-block-navigation .has-child .wp-block-navigation__submenu-container > li > ul {
    display: none !important;
}

@media only screen and (min-width: 1024px) {
	.block-popins {
		left: 50%;
	}
}
/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer {
	margin: 0;
}
.site-footer > div {
	position: relative;
	overflow: hidden;
	display: flex;
  	justify-content: center;
}
.site-footer > div:last-child > div {
	max-width: 85vw;
	width: 100%;
}
.site-footer > div:last-child > div > div .bs-coords > div > div {
	border-top: 1px solid var(--wp--preset--color--primary);
}
.site-footer > div:last-child > div > div .bs-coords > div > .wp-block-group {
	margin-top: 8px;
	padding-top: var(--wp--preset--spacing--text);
}
.site-footer > div:last-child > div > div .bs-coords > div > .wp-block-buttons {
	padding-top: var(--wp--preset--spacing--text);
}
.site-footer .wp-block-query {
	padding: var(--wp--preset--spacing--window) 0 !important;
}
.site-footer .wp-block-bsw-slider-static li {
	padding: var(--wp--preset--spacing--text);
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border--radius--large);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-footer .wp-block-bsw-slider-static li figure {
	max-width: 180px;
	border-radius: 0;
	height: auto;
}
.site-footer .wp-block-bsw-slider-static li figure img {
	width: 100%;
	height: 100%;
}

@media only screen and (min-width: 991px) {
	.site-footer > div:last-child > div > div {
		display: flex;
	}
	.site-footer > div:last-child > div > div .bs-coords {
		gap: 20vw;
	}
	.site-footer > div:last-child > div > div > figure {
		flex: 1;
	}
	.site-footer > div:last-child > div > div > figure img {
		max-width: 300px;
	}
	.site-footer > div:last-child > div > div > div {
		flex: 2;
	}
}

@media only screen and (max-width: 1300px) and (min-width: 991px) {
	.site-footer > div:last-child > div > div .bs-coords {
		gap: 5vw;
	}
}
@media only screen and (max-width: 991px) {
	.site-footer > div:last-child > div {
		max-width: 100%;
		width: 100%;
	}
	.site-footer > div:last-child > div > div {
		max-width: 100%;
		display: flex;
		justify-content: left;
	}
	.site-footer .bs-coords p {
		font-size: 18px;
	}
	.site-footer .bs-coords {
		flex-direction: column;
	}
	.site-footer nav ul {
		flex-direction: column !important;
		align-items: start !important;
	}
	.site-footer .wp-block-group:last-child {
		flex-direction: column;
		align-items: baseline;
	}
}

/* ----------------------------
	== MAIN
---------------------------- */

/*
	BREADCRUMBS
*/
.wp-block-wpseopress-breadcrumbs {
	text-align: left;
}
.wp-block-wpseopress-breadcrumbs .breadcrumb-item.active {
	font-weight: 800;
}
.wp-block-wpseopress-breadcrumbs .breadcrumb-item.active span {
	opacity: 1;
}

@media only screen and (max-width: 991px) {
	.wp-block-wpseopress-breadcrumbs .breadcrumb-item a {
		opacity: 1;
		font-weight: 800;
	}
}
/*
    TITLE
*/
.wp-block-post-title {}

.title-section {
	font-size: clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 1.481), 2.5rem);
}

/*
    CONTENT
*/
body:not(.page-template-page-tablissement):not(.single-formation) .entry-content > * {
	margin: var(--wp--preset--spacing--text) 0 !important;
}
body:not(.home) main {
	margin: 0;
}
.home main {
	overflow: hidden;
}

/*
	LINK
*/
.entry-content p > strong > a {
	box-shadow: inset 0 -1px 0 var(--wp--preset--color--current);
}
.entry-content p > strong > a:hover {
	box-shadow: inset 0 -25px 0 var(--wp--preset--color--current);
}
.entry-content p:not(.has-link-color) > strong > a:hover {
	color: var(--wp--preset--color--white);
}

/* *****************************
----------------------------
	= COMPONENTS
----------------------------
***************************** */

/* ----------------------------
	== SVG
---------------------------- */
#demi-cercle {
    position: absolute;
	right: 0;
	top: -23%;
	max-width: 18vw;
}
#demi-cercle .cls-1 {
    fill: var(--wp--preset--color--current);
}
#cercle-footer {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 20vw;
}
#cercle-formation {
	position: absolute;
	top: 0;
	right: -10vw;
	max-width: 20vw;
	width: 20vw;
}
#cercle-formation .cls-1 {
	fill: var(--wp--preset--color--primary);
}
.svg {
	position: absolute;
	width: 0;
	height: 0;
}

@media only screen and (min-width: 991px) {
	#demi-cercle-mobile {
		display: none;
	}
}
@media only screen and (max-width: 991px) {
	#cercle-footer,
	#cercle-formation,
	#demi-cercle {
		display: none;
	}
	#demi-cercle-mobile {
		position: absolute;
		bottom: 0;
		right: calc(-1*var(--wp--preset--spacing--window));
		width: 45%;
	}
}

/* ----------------------------
	== BUTTONS
---------------------------- */
.is-style-aster-simple-button {
	display: flex !important;
	gap: 8px;
}
.is-style-aster-simple-button::before {
	content: "";
	font-family: ifsi-ifas;
	font-size: 1.3rem;
	line-height: normal;
}
.wp-block-button:not(.is-style-aster-simple-button):not(.is-style-outline) .wp-block-button__link:hover {
	color: var(--wp--preset--color--current);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--current);
	border-color: var(--wp--preset--color--current);
}

/*
	== BORDER-BOTTOM	
*/
.border-bottom {
	border-bottom: 1px solid var(--wp--preset--color--current);
}

/*
	== ACCORDEONS
*/
.wp-block-accordion-heading__toggle-title {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--current);
}
.wp-block-file__button:hover {
	background: var(--wp--preset--color--current);
}

/*
	== BLOC FICHIER
*/
.wp-block-file a:not(.wp-element-button) {
	text-decoration: underline;
}

/*
	== IMG
*/
.wp-block-post-featured-image {
	border-radius: var(--wp--custom--border--radius--large);
}
.entry-content figure:not(.wp-block-table) {
	border-radius: var(--wp--custom--border--radius--large);
}

/* ----------------------------
	== CITATIONS
---------------------------- */
.wp-block-quote::before,
.wp-block-quote::after {
	font-family: ifsi-ifas;
	font-size: 1.7rem;
	font-weight: 500;
}
.wp-block-quote::before {
	top: calc(-1*var(--wp--preset--spacing--text));
	content: "\e906\e906";
}
.wp-block-quote::after {
	bottom: calc(-1*var(--wp--preset--spacing--text));
	right: 0;
	position: absolute;
	content: "\e905\e905";
}
.wp-block-quote p {
	font-family: var(--wp--preset--font-family--title);
}
@media only screen and (max-width: 991px) {
	.wp-block-quote {
		margin: calc(1.3*var(--wp--preset--spacing--current)) 0 var(--wp--preset--spacing--current) !important;
	}
	.wp-block-quote::before {
		top: calc(-1.2*var(--wp--preset--spacing--text));
	}
}

/* *****************************
----------------------------
	= PATERNS - TEMPLATES PART
----------------------------
***************************** */

/* ----------------------------
	== BLOC PICTO
---------------------------- */
.bs-blocpicto {
	border-radius: var(--wp--custom--border--radius--small);
}
.bs-blocpicto [class^="icon-"]::before,
.bs-blocpicto [class*="icon-"]::before {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    font-size: 4rem;
	font-family: ifsi-ifas !important;
}
.bs-blocpicto [class^="icon-"]::after,
.bs-blocpicto [class*="icon-"]::after {
    right: 0;
    text-align: center;
    font-size: 4rem;
}
.bs-blocpicto p {
    margin-block-start: 10px;
    line-height: 1.2;
	font-family: var(--wp--preset--font-family--current) !important;
}

/* ----------------------------
	== ANCRES
---------------------------- */
.bs-menu-formation ul {
	display: flex;
	gap: 3px;
	padding: 0;
	list-style: none;
}
.bs-menu-formation ul li {
	position: relative;
	padding: 20px 30px;
	flex: 1;
	background: color-mix(in srgb, var(--wp--preset--color--primary), transparent 80%) !important;
	display: flex;
	text-align: center;
  	align-items: center;
	justify-content: center;
	transition: all 0.5s;
}
.bs-menu-formation ul li:hover {
	background: color-mix(in srgb, var(--wp--preset--color--primary), transparent 50%) !important;
}
.bs-menu-formation ul li a::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
}
.bs-menu-formation ul li:nth-last-child(5) {
	display: none;
}

@media only screen and (min-width: 991px) {
	.bs-menu-formation ul {
		border-top: 1px solid var(--wp--preset--color--white);
	}
	.bs-menu-formation ul li:first-child {
		border-radius: 0 0 0 120px;
	}
	.bs-menu-formation ul li:last-child {
		border-radius: 0 0 120px 0;
	}
}
@media only screen and (max-width: 991px) {
	.bs-menu-formation ul {
		flex-direction: column;
	}
	.bs-menu-formation ul li:first-child {
		border-radius: 50px 50px 0 0;
	}
	.bs-menu-formation ul li:last-child {
		border-radius: 0px 0px 50px 50px;
	}
}

/* ----------------------------
	== SLIDER 
---------------------------- */
.splide__arrow {
	bottom: calc(-1*var(--wp--preset--spacing--text)) !important;
	top: initial;
	background: none;
}
.home .splide__arrow {
	bottom: calc(-2*var(--wp--preset--spacing--text)) !important;
}
.splide__arrow svg,
.splide__pagination .div-query {
	display: none !important;
}
.splide__arrow--prev::after,
.splide__arrow--next::after {
	font-family: 'ifsi-ifas';
	font-size: 2rem;
	color: var(--wp--preset--color--white);
}
.splide__pagination li {
	line-height: 0;
}
.splide__pagination li .splide__pagination__page {
	background: var(--wp--preset--color--secondary);
}
.splide__pagination li .splide__pagination__page.is-active {
	margin: 0 13px;
	border-radius: 20px;
	width: 50px;
	background: var(--wp--preset--color--current);
}
.splide__arrow--prev {
	left: 0;
}
.splide__arrow--next {
	right: 0;
}
.splide__arrow--prev::after {
	content: "\e90c";
}
.splide__arrow--next::after {
	content: "\e90f";
}
.wp-block-bsw-slider .splide__pagination {
  bottom: -50px;
}

/* ----------------------------
	== CARTE 
---------------------------- */
.bs-map {
	margin-top: calc(-3.2*var(--wp--preset--spacing--window));
	position: relative;
	text-align: center;
}
#tooltip {
	z-index: 999;
	position: absolute;
	display: none;
	padding: 2px 5px;
	border: 1px solid #ddd;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	color: #333;
}

.carte {
	position: absolute;
	z-index: 500;
	display: none;
	opacity: 0;
}
img[usemap] {
		border: none;
		height: auto;
		max-width: 100%;
		width: auto;
}

/* ----------------------------
	== PAGES SOEURS
---------------------------- */
.wp-block-bsw-siblings-posts li.current {
	color: var(--wp--preset--color--current);
}
.wp-block-bsw-siblings-posts li.current a {
	color: var(--wp--preset--color--current);
	border-bottom: 1px solid var(--wp--preset--color--current);
}

/* ----------------------------
	== CAROUSEL
---------------------------- */
.bsw-carousel-post,
.bsw-carousel-post .splide__track {
	max-width: 100%;
}

/* ----------------------------
	== POST LIST GRID
---------------------------- */
.wp-block-query li:has(.div-query:only-child)::before {
	content: "";
	background: var(--wp--preset--color--primary);
	width: 100%;
	aspect-ratio: 3/2;
	border-radius: var(--wp--custom--border--radius--large);
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: ifsi-ifas;
	font-size: 3rem;
}
.wp-block-query .div-query:first-child::before {

}

/* ----------------------------
	== WITH SIDEBAR
---------------------------- */
.wp-block-columns.with-sidebar {}

.page-template-subnav-page .wp-block-columns > .wp-block-column:last-child > div {
  position: sticky;
  top: 200px;
}

@media only screen and (min-width: 900px) {
	.wp-block-columns.with-sidebar {
    	justify-content: left;
  }
  .wp-block-columns.with-sidebar::before {
   		display: none;
  }
}

/* ----------------------------
	== NEXT PREV
---------------------------- */
.next-prev {}

/* *****************************
----------------------------
	= HOME PAGE
----------------------------
***************************** */

/* ----------------------------
	== CONTENU HOME
---------------------------- */
.bs-home {
	position: relative;
	margin: 0;
}
.bs-home .bs-imghome {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(60%,45%);
	overflow: hidden;
	clip-path: url(#masque-cercle);
	-webkit-clip-path: url(#masque-cercle);
	border-radius: 100%;
	z-index: 2;
}
.bs-home .content-home {
	margin: 0 calc(-1*var(--wp--preset--spacing--window));
	padding: var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) calc(3*var(--wp--preset--spacing--window));
	position: relative;
}
.bs-home .content-home .entry-content {
	margin: 0;
}
.bs-home .content-home .wp-block-post-title {
	border-bottom: 1px solid var(--wp--preset--color--white);
}
.bs-chiffre { 
	margin: 0;
	font-size: 3rem;
	border-bottom: 1px solid var(--wp--preset--color--white);
}

/* ----------------------------
	== ACTUS & FORMATIONS
---------------------------- */
.bs-news {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--window) 0;
}
.bs-formations {
	padding: var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) 0;
}
.bs-news figure,
.bs-formations figure,
.wp-block-query figure {
	border-radius: var(--wp--custom--border--radius--large);
	overflow: hidden;
}
.bs-news figure img,
.bs-formations figure img,
.wp-block-query figure img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}
.bs-news .div-query,
.bs-formations .div-query,
.wp-block-query .div-query {
	position: relative;
	margin-top: calc(-1*var(--wp--preset--spacing--current));
	row-gap: 8px;
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--text);
	border-radius: var(--wp--custom--border--radius--large);
	background: var(--wp--preset--color--white);
}
.bs-news .div-query > *,
.bs-formations .div-query > *,
.wp-block-query .div-query > * {
	width: 85%;
	margin: 0 !important;
}
.div-query::after {
	content: "";
	font-family: ifsi-ifas;
	position: absolute;
	right: 20px;
	top: 50%;
	font-size: 3rem;
	line-height: normal;
	transform: translateY(-50%);
}
.bs-news .div-query .wp-block-post-title,
body:not(.page-template-page-tablissement) .div-query .slider_post_title,
body:not(.page-template-page-tablissement) .wp-block-query .wp-block-post-title {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--current);
}
.bs-news .splide__pagination,
.bs-formations .splide__pagination {
	bottom: -1.5em;
}
.div-query .slider_post_title {
	display: block;
	font-weight: 600;
	width: 80%;
	font-size: var(--wp--preset--font-size--large);
}
.bs-news .wp-block-post-excerpt,
.bs-formations .wp-block-post-excerpt {
	margin: 0;
	padding-top: 8px;
}
.div-query .wp-block-post-excerpt__excerpt:empty {
    display: none;
}

.bs-news .wp-block-post-excerpt p,
.bs-news .wp-block-bsw-slider .slider_excerpt p,
.bs-formations .wp-block-post-excerpt p,
.wp-block-query .wp-block-post-excerpt p {
	margin: 0;
	line-height: normal;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 500;
}
.bs-news .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--current);
}
.bs-formations .wp-block-buttons {
	margin-top: 50px;
}

/* ----------------------------
	== PORTAIL PONTOISE / BEAUMONT
---------------------------- */
.portail-search {
	padding: var(--wp--preset--spacing--text) 0 var(--wp--preset--spacing--window);
	min-height: 70dvh;
}
.portail-search > * {
	flex: 1;
}
.portail-search > .wp-block-group {
	padding: 0 var(--wp--preset--spacing--window) 0;
	position: relative;
	align-self: stretch;
	justify-content: space-between;
}
.portail-search .search,
.portail-search .wp-block-buttons {
	gap: 16px;
}
.portail-search .search .pills {
	max-width: 100px;
}
.portail-search > div:first-child {
	max-width: 850px;
}
.portail-search .wp-block-columns {
	align-self: stretch;
}
.portail-search .entry {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: 200px;
	border: 20px solid;
	overflow: hidden;
}
.portail-search .entry a::before,
.portail-search-mobile .entry a::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
}
.portail-search .entry h2:first-child {
	padding:var(--wp--preset--spacing--current) var(--wp--preset--spacing--text) var(--wp--preset--spacing--text);
}
.portail-search .entry h2:last-child {
	padding:var(--wp--preset--spacing--text) var(--wp--preset--spacing--text) var(--wp--preset--spacing--current);
}
.portail-search .scroll-arrow {
	width: 100%;
}
.portail-search .scroll-arrow a {
	font-family: 'ifsi-ifas';
	font-size: 2.5em;
}
.portail-search .entry figure,
.portail-search-mobile .entry figure {
	border-radius: 100%;
	overflow: hidden;
	margin: 0;
}
.portail-search .entry-beaumont {
	border-color: var(--wp--preset--color--primary);
}
.portail-search-mobile .entry {
	padding: 8px;
	gap: 0;
	border: 20px solid;
	overflow: hidden;
	position: relative;
}
.portail-search-mobile .entry > * {
	flex: 1;
}
.portail-search-mobile .entry-pontoise {
	border-radius: 0 200px 200px 0px;
	overflow: hidden;
	margin-left: calc(-1 * (5vw + 20px)) !important;
}
.portail-search-mobile .entry-beaumont {
	border-color: var(--wp--preset--color--primary);
	border-radius: 200px 0px 0px 200px;
	overflow: hidden;
	margin-right: calc(-1 * (5vw + 20px)) !important;
}
.portail-search-mobile .entry h2 {
	padding: var(--wp--preset--spacing--text);
}
.portail-search-mobile .search-mobile {
	margin: 0;
	padding: var(--wp--preset--spacing--window);
}
.portail-search-mobile .wp-block-cover {
	padding: calc(var(--wp--preset--spacing--window)*2) var(--wp--preset--spacing--window);
}
.portail-search-mobile .search-mobile .wp-block-buttons {
	gap: 8px;
}
.portail-search-mobile .search-mobile .wp-block-button {
	width: 100%;
}
.portail-search .wp-block-button a,
.portail-search-mobile .search-mobile .wp-block-button a {
	padding: 16px;
}

@media only screen and (min-width: 1650px) {
	.portail-search .entry {
		min-height: 550px;
	}
}
@media only screen and (max-width: 1650px) and (min-width: 991px) {
	.portail-search .entry h2 {
		font-size: 26px;
	}
}

@media only screen and (min-width: 991px) {
	/* Hover effect */
	.portail-search .entry .wp-block-group {
		position: relative;
		margin: 10px;
	}
	.portail-search .entry:hover .wp-block-group p {
		opacity: 1;
	}
	.portail-search .entry .wp-block-group p {
		opacity: 0;
		margin: 0;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		border-radius: 100%;
		background: color-mix(in srgb, var(--wp--preset--color--primary), transparent 20%);
		transition: all 0.5s;
	}
	.portail-search .entry .wp-block-group p::before {
		content:"";
		font-family: ifsi-ifas;
	}
}

@media only screen and (max-width: 991px) {
	.home main {
		margin: 0;
	}
	.home main > div:first-child {
		margin: 0 calc(-1*var(--wp--preset--spacing--window)) !important;
	}
}

/* ----------------------------
	== PAGE ÉTABLISSEMENT
---------------------------- */
.page-template-page-tablissement main {
	margin: 0;
}
.page-template-page-tablissement main .entry-content {
	position: relative;
	margin-top: var(--wp--preset--spacing--window);
}
.page-template-page-tablissement .bs-imgetablissement {
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-52%,-20%);
	overflow: hidden;
	clip-path: url(#masque-cercle);
	-webkit-clip-path: url(#masque-cercle);
	border-radius: 100%;
	z-index: 2;
	max-width: 60vw;
}

@media only screen and (min-width: 991px) {
	.page-template-page-tablissement main .bs-introetablissement {
		margin: 0 0 0 clamp(10px, 31vw, 525px) !important;
	}
	.page-template-page-tablissement .wp-block-columns:first-child .wp-block-column:last-child {
		padding: 0 100px 0 var(--wp--preset--spacing--text);
	}
}
@media only screen and (max-width: 991px) {
	.page-template-page-tablissement .wp-block-columns:first-child .wp-block-column:last-child {
		flex-basis: 100% !important;
	}
	.page-template-page-tablissement .wp-block-column:first-child  {
		display: none;
	}
	.page-template-page-tablissement .bs-imgetablissement-mobile  {
		margin: 20px 0 -145px -240px !important;
		position: relative;
		z-index: 10;
		overflow: hidden;
		clip-path: url(#masque-cercle);
		-webkit-clip-path: url(#masque-cercle);
	}
}

/*
	== BANNER	
*/
.blog .banner-suite .wp-block-cover__background,
.archive .banner-suite .wp-block-cover__background,
.search .banner-suite .wp-block-cover__background {
	opacity: 1 !important;
}
.banner-suite {
	margin: 0 calc(-1*var(--wp--preset--spacing--window)) !important;
	padding: var(--wp--preset--spacing--window);
}
.banner-suite .wp-block-cover__inner-container {
	padding: var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) calc(2*var(--wp--preset--spacing--window));
	position: absolute;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.banner-formation .bs-nav {
	gap: 0;
	max-width: 75%;
}
.banner-formation .wp-block-cover__inner-container,
.banner-suite.suite .wp-block-cover__inner-container {
	padding: var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) !important;
}
.banner-suite .border-bottom {
	width: fit-content;
	padding-bottom: 8px;
	border-color: var(--wp--preset--color--white);
}
.banner-suite .wp-block-button::before {
	color: var(--wp--preset--color--accent);
}

@media only screen and (min-width: 991px) {
	.banner-formation .border-bottom {
		border: 0;
	}
	.banner-suite figure {
		max-width: 250px;
	}
	.banner-suite,
	.banner-formation {
		overflow: visible;
	}
}
@media only screen and (max-width: 991px) {
	.banner-suite:not(.banner-formation) {
		min-height: 400px !important;
	}
}
/*
	== CHIFFRES CLÉS	
*/
.chiffres {
	position: relative;
	margin: var(--wp--preset--spacing--window) calc(-1*var(--wp--preset--spacing--window)) 0;
	padding: var(--wp--preset--spacing--window) !important;
	z-index: 2;
}
.chiffres .title-chiffres { 
	gap: 0;
}
.chiffres .title-chiffres p { 
	font-size: 2rem;
}
.chiffres .bs-chiffre { 
	font-size: 4rem;
	border-bottom: 1px solid var(--wp--preset--color--current);
}

@media only screen and (max-width: 991px) {
	.chiffres {
		padding: calc(var(--wp--preset--spacing--current)*4) calc(var(--wp--preset--spacing--window)*2) calc(var(--wp--preset--spacing--window)*2) !important;
	}
	.chiffres h2 {
		font-size: 1.8rem;
	}
	.chiffres .bs-chiffre { 
		margin: 0;
	}
	.chiffres li {
		padding-bottom: var(--wp--preset--spacing--text);
	}
	.chiffres .splide__arrow--prev::after, .splide__arrow--next::after {
		color: var(--wp--preset--color--current);
	}
	.chiffres .wp-block-bsw-slider-static .splide__pagination li .splide__pagination__page.is-active {
		background: var(--wp--preset--color--white);
	}
}

/* ----------------------------
	== PAGE FORMATION
---------------------------- */
.single-formation main {
	position: relative;
	margin: 0;
	overflow: hidden;
}
.single-formation .bs-accordeon {
	position: relative;
	margin: var(--wp--preset--spacing--window) calc(-1*var(--wp--preset--spacing--window)) 0 !important;
	padding: var(--wp--preset--spacing--window) !important;
}
.single-formation .bs-accordeon > * {
	margin: 0 !important;
	max-width: 100%;
}
.single-formation .wp-block-bsw-accordion .ui-corner-top:not(:last-child) {
	font-size: clamp(2rem, 5vw, 2.3rem);
	padding-bottom: var(--wp--preset--spacing--text);
	border-bottom: 4px dotted var(--wp--preset--color--white);
}
.single-formation .wp-block-bsw-random-image {
	position: absolute;
	overflow: hidden;
	clip-path: url(#masque-cercle);
	-webkit-clip-path: url(#masque-cercle);
}
.single-formation .wp-block-bsw-random-image img {
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 100%;
}

@media only screen and (min-width: 991px) {
	.single-formation .wp-block-bsw-random-image {
		right: -28%;
		top: 0;
		width: 50%;
		transform: translateY(-80%);
	}
	.single-formation .wp-block-bsw-accordion .ui-corner-top:not(:last-child) {
		font-size: clamp(2rem, 5vw, 2.3rem);
	}
}

@media only screen and (max-width: 991px) {
	.single-formation .bs-accordeon {
		margin-top: calc(var(--wp--preset--spacing--current)*9) !important;
		padding: calc(var(--wp--preset--spacing--current)*3) var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) !important;
	}
	.single-formation .wp-block-bsw-random-image {
		width: 110%;
		right: -5%;
		left: -5%;
		top: 0;
		transform: translateY(-80%);
		margin: 0 var(--wp--preset--spacing--window) !important;
	}
	.single-formation .wp-block-bsw-accordion .ui-corner-top:not(:last-child) {
		font-size: clamp(1.5rem, 5vw, 2rem);
	}
}

/* *****************************
----------------------------
	= CATALOGUE
----------------------------
***************************** */

/* ----------------------------
	== SEARCH
---------------------------- */
.search-formations .wp-block-search,
.search-formations .facetwp-facet {
	margin: var(--wp--preset--spacing--text) auto!important;
	max-width: none;
}
.search-formations .wp-block-search > div {
	display: flex;
	width: 66%;
	background: var(--wp--preset--color--white);
	border-radius: 3px;
	overflow: hidden;
	border: none;
}
.search-formations .facetwp-type-search span {
	display: block;
	width: 66%;
}
.search-formations .facetwp-type-search i::before {
	content: "\e902";
	display: flex;
	align-items: center;
	background: none;
	font-family: 'ifsi-ifas';
	font-style: normal;
}
.search-formations input[type=text] {
	border: none;
}
@media only screen and (max-width: 800px) {
	.search-formations .facetwp-type-search span {
		width: 100%;
	}
}

/*
	FILTERS
*/
.filters {
	padding: 8px;
	border-top: 2px solid var(--wp--preset--color--white);
	border-bottom: 2px solid var(--wp--preset--color--white);
}
.filters .facetwp-facet {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--text);
}
.filters > div {
	margin-block-start: 0!important;
}
.filters > div + div {
	border-top: 3px dotted var(--wp--preset--color--white);
}
.filters .wp-block-group > p {
	margin: var(--wp--preset--spacing--text) 0;
}
.filters .type-formation .facetwp-checkbox,
.filters .public-formation div:not(.facetwp-depth) > .facetwp-checkbox {
	order: 1;
	margin: 0;
	padding: 5px 10px;
	background: none;
	border: 1px solid var(--wp--preset--color--current);
	border-radius: 5px;
}
.filters .type-formation .facetwp-checkbox.checked {
	background: var(--wp--preset--color--current);
	color: var(--wp--preset--color--white);
}
.filters .facetwp-facet-vider_les_filtres {
	justify-content: end;
}
.filters .facetwp-reset {
	border: none;
	background: none;
	font-size: var(--wp--preset--font-size--small);
	font-family: var(--wp--preset--font-family--current);
	color: var(--wp--preset--color--current);
	text-decoration: underline;
}

@media only screen and (max-width: 800px) {
	.filters > div {
		flex-direction: column;
		align-items: flex-start!important;
		gap: 0;
	}
	.filters .wp-block-group > p {
		margin-bottom: 0;
	}
	.filters .facetwp-checkbox {
		margin: 0;
	}
	.filters .facetwp-facet {
		gap: 10px;
	}
	.search-formations .wp-block-search,
	.search-formations .facetwp-facet {
		margin: 10px 0 var(--wp--preset--spacing--text)!important;
	}
}

/*
	RESULTS
*/
.facetwp-template {
	margin-block-start: var(--wp--preset--spacing--text)!important;
	max-width: none!important;
}
.fwpl-layout.results {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--text)!important;
	padding: 0;
	list-style: none;
	font-weight: 600;
}
.fwpl-layout.results > div {
	position: relative;
	width: calc(33% - (var(--wp--preset--spacing--text) * 2 / 3));
	border-radius: 5px;
	overflow: hidden;
	transition: all .5s;
}
.fwpl-layout.results .item-img {
	position: relative;
	z-index: 1;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--border--radius--large);
	background: var(--wp--preset--color--primary);
	width: 100%;
	aspect-ratio: 3/2;
	border-radius: var(--wp--custom--border--radius--large);
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: ifsi-ifas;
	font-size: 3rem;
}
.fwpl-layout.results .item-img::after {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	content: "";
}
.fwpl-layout.results .item-img::before {
	display: block;
	padding-top: 60%; 
	content: "";
}
.fwpl-layout.results .item-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all .5s;
}
.fwpl-layout.results div:hover .item-img img {
	transform: scale(1.05);
}
.fwpl-layout.results .item-title {
	margin-top: calc(-1*var(--wp--preset--spacing--current));
	position: relative;
	z-index: 2;
	padding: var(--wp--preset--spacing--text);
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border--radius--large);
}
.fwpl-layout.results .item-title a {
	width: 85%;
 	display: block;
}
.fwpl-layout.results .item-title::before {
	content: "";
	font-family: ifsi-ifas;
	position: absolute;
	right: 20px;
	top: 50%;
	font-size: 3rem;
	line-height: normal;
	transform: translateY(-50%);
	font-weight: 400;
}
.fwpl-layout.results .item-title a::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
}

@media only screen and (max-width: 800px) {
	.fwpl-layout.results > div {
		width: 100%;
	}
}