/*
Theme Name: Groupe Scolaire Espérance
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
*/

/* *****************************
----------------------------
	= LAYOUT
----------------------------
***************************** */

:root .ecole-template,
:root .ecole-template-default,
:root .category-ecole {
	--wp--preset--color--primary: var(--wp--preset--color--ecole);
	--wp--preset--gradient--gradient-groupe: var(--wp--preset--gradient--gradient-ecole);
}
:root .college-template,
:root .college-template-default,
:root .category-college {
	--wp--preset--color--primary: var(--wp--preset--color--college);
	--wp--preset--gradient--gradient-groupe: var(--wp--preset--gradient--gradient-college);
}
:root .lycee-template,
:root .lycee-template-default,
:root .category-lycee {
	--wp--preset--color--primary: var(--wp--preset--color--lycee);
	--wp--preset--gradient--gradient-groupe: var(--wp--preset--gradient--gradient-lycee);
}

/* ----------------------------
	== HEADER
---------------------------- */
.site-header .wp-block-button__link {
	font-family: esperance;
}
@media only screen and (min-width: 991px) {
	.home .site-header {
		position: fixed;
		top: -300px;
		left: 0;
		right: 0;
		z-index: 20;
		transition: all .5s;
	}
	.site-header > div:not(.block-popins) {
		padding: 0 var(--wp--preset--spacing--window);
		position: relative;
	}
	.site-header > div > div.wp-block-group {
		width: 100%;
	}
}
@media only screen and (max-width: 991px) {
	.page-template-default .site-header,
	.single .site-header {
        position: sticky;
        top: 0!important;
        z-index: 999;
    }
	.site-header > div {
		padding: 8px;
		justify-content: space-between;
	}
}

/*
    LOGO
*/
.wp-block-site-logo {
	margin: 0 !important;
}
@media only screen and (max-width: 991px) {
	.site-header img {
		max-width: 100px;
	}
}
/*
    SEARCH
*/
.wp-block-search {}

/*
	MAIN NAVIGATION
*/
.main-nav {}

@media only screen and (min-width: 1024px) {
	.block-popins {
		left: 50%;
	}
}

/* ----------------------------
	== BSW MENU RESPONSIVE
---------------------------- */
.bs-small-nav .bs-nav-responsive {
    display: none;
}
header:not(.bs-small-nav) .bs-burger {
    display: none;
}
.bs-burger {
    justify-content: end !important;
}

@media only screen and (max-width: 1024px) {
    .bs-burger,
    .bs-nav-responsive {
        flex-grow: initial !important;
    }
}

/*
	NAVIGATION UNITÉ PÉDAGOGIQUE
*/
.nav-up ul {
	gap: 0;
}	
.nav-up li {
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--neutral) !important;
	padding: 20px !important;
	overflow: hidden;
}	
.nav-up li:first-child.current-menu-item,
.ecole-template-default .nav-up li:first-child {
	background: var(--wp--preset--color--ecole) !important;
}	
.nav-up li:nth-child(2).current-menu-item,
.college-template-default .nav-up li:nth-child(2) {
	background: var(--wp--preset--color--college) !important;
}	
.nav-up li:last-child.current-menu-item,
.lycee-template-default .nav-up li:last-child {
	background: var(--wp--preset--color--lycee) !important;
}	
.nav-up li:first-child a {
	color: var(--wp--preset--color--ecole) !important;
}
.nav-up li:nth-child(2) a {
	color: var(--wp--preset--color--college) !important;
}
.nav-up li:last-child a {
	color: var(--wp--preset--color--lycee) !important;
}
.nav-up li:first-child.current-menu-item a,
.nav-up li:nth-child(2).current-menu-item a,
.nav-up li:last-child.current-menu-item a,
.ecole-template-default .nav-up li:first-child a,
.college-template-default .nav-up li:nth-child(2) a,
.lycee-template-default .nav-up li:last-child a {
	color: var(--wp--preset--color--white) !important;
}
.nav-up li:first-child::before,
.nav-up li:nth-child(2)::before,
.nav-up li:last-child::before {
	content: "";
	position: absolute;
	top: -20px;
	right: 60px;
	width: 70px;
	height: 70px;
	z-index: -1;
	pointer-events: none;
}
.nav-up li:first-child::after,
.nav-up li:nth-child(2)::after,
.nav-up li:last-child::after {
	content: "";
	position: absolute;
	bottom: -20px;
	left: 60px;
	width: 70px;
	height: 70px;
	z-index: -1;
	pointer-events: none;
}
.nav-up li:first-child::before,
.nav-up li:first-child::after {
	background: radial-gradient(circle, rgba(68, 183, 170, 0.2) 0%, rgba(68, 183, 170, 0) 70%);
}
.nav-up li:nth-child(2)::before,
.nav-up li:nth-child(2)::after {
	background: radial-gradient(circle, rgba(245, 160, 6, 0.2) 0%, rgba(245, 160, 6, 0) 70%);
}
.nav-up li:last-child::before,
.nav-up li:last-child::after {
	background: radial-gradient(circle, rgba(234, 102, 47, 0.2) 0%, rgba(234, 102, 47, 0) 70%);
}
@media only screen and (max-width: 991px) {
	.nav-up {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99;
	}
	.nav-up li {
		flex: 1;
		justify-content: center;
		padding: 16px !important;
	}
}

/*
    BLOCK POPIN
*/
.block-popins::before {
	content: "";
	color: var(--wp--preset--color--white);
	font-family: esperance;
}
.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 .pop-nav a:hover {
    color: var(--wp--preset--color--neutral) !important;
}
.block-popins .wp-block-navigation .has-child .wp-block-navigation__submenu-container > li > ul {
    display: none !important;
}

/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer > div {
	padding: 0;
	gap: 0;
}
.site-footer > div > div {
	padding: var(--wp--preset--spacing--text);
	align-self: stretch;
	justify-content: center;
}
.site-footer > div > div:first-child {
	align-content: center;
}
.site-footer > div > div:nth-child(2) {
	padding: var(--wp--preset--spacing--window);
}
.site-footer > div > div > div {
	gap: 0;
}
.site-footer > div > div > div > .wp-block-button a {
	opacity: 1;
}
.site-footer > div > div:last-child a {
	font-size: 17px;
}
.site-footer > div > div:last-child a::before {
	content:">";
	padding-right: 4px;
}
@media only screen and (min-width: 991px) {
	.site-footer > div > div:first-child {
		flex: 1;
	}
	.site-footer > div > div:nth-child(2) {
		flex: 2;
	}
	.site-footer > div > div:last-child {
		flex: 1.5;
	}
}
@media only screen and (max-width: 991px) {
	.site-footer {
		padding-bottom: 50px;
	}
	.site-footer > div {
		flex-wrap: wrap;
	}
	.site-footer > div > div {
		padding: var(--wp--preset--spacing--current) !important;
		width: 100%;
	}
}

/* ----------------------------
	== 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 span {
	opacity: 1;
}

/*
    TITLE
*/
.wp-block-post-title {}

/*
    CONTENT
*/
main {
	margin: 0;
}
.home main {
	margin: 0;
	padding: var(--wp--preset--spacing--window)!important;
}
.home .entry-content {
	margin: 0;
}
body:not(.page-template-summary-page):not(.home):not(.lycee-template-default):not(.lycee-template):not(.college-template-default):not(.college-template):not(.ecole-template-default):not(.ecole-template):not(.post-template-default) .entry-content {
	padding: var(--wp--preset--spacing--text) 0 var(--wp--preset--spacing--window);
}

.page-template-summary-page .entry-content,
body:not(.lycee-template-modele-up) .single-lycee main, 
body:not(.college-template-modele-up) .single-college main, 
body:not(.ecole-template-modele-up) .single-ecole main {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--window) calc(var(--wp--preset--spacing--text)*2) !important;
}
.archive main,
.blog main {
	padding: 0 var(--wp--preset--spacing--window) calc(var(--wp--preset--spacing--text)*2) !important
}
body:not(.home):not([class*="modele-up"]):not(.page) .entry-content {
	margin-bottom: var(--wp--preset--spacing--window);
}

@media only screen and (max-width: 991px) {
	.home main {
		padding: var(--wp--preset--spacing--current)!important;
	}
	.single-post .entry-content {
		padding-bottom: calc(var(--wp--preset--spacing--window)*2);
	}
}

/*
    LIENS 
*/
.entry-content li > a, .entry-content cite > a, .entry-content td > a {
  box-shadow: none !important;
}

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

/* ----------------------------
	== IMG MISE EN AVANT
---------------------------- */
body:not(.home).page-template-default .wp-block-post-featured-image,
body:not(.lycee-template) .single .wp-block-post-featured-image,
.post-template-default .wp-block-post-featured-image,
.single-tribe_events .wp-block-post-featured-image,
.lycee-template-default .wp-block-post-featured-image,
.ecole-template-default .wp-block-post-featured-image,
.college-template-default .wp-block-post-featured-image,
.single-nos-eleves-en-action .wp-block-post-featured-image {
	border-radius: 20px;
	overflow: hidden;
	margin: var(--wp--preset--spacing--window) auto 0 !important;
}

/* ----------------------------
	== IMAGES
---------------------------- */
body:not([class*="modele-up"]) .entry-content figure:not(.wp-block-table) {
	border-radius: var(--wp--custom--border--radius--medium);
	overflow: hidden;
}

/* *****************************
-------------------------------
	= PATERNS - TEMPLATES PART
-------------------------------
***************************** */
.wp-block-template-part {
	margin: 0;
}

/* ----------------------------
	== HERO SUITE
---------------------------- */
.hero-suite {
	margin: 0 calc(-1*var(--wp--preset--spacing--window));
}
.hero-suite .wp-block-cover {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--window);
	position: relative;
}
.hero-suite #fleur-suite {
	margin: 0;
	position: absolute;
	right: 0;
}
@media only screen and (min-width: 1024px) {
	.hero-suite .wp-block-cover {
		min-height: 230px !important;
	}
	.hero-suite #fleur-suite {
		top: 0;
	}
}
@media only screen and (max-width: 1024px) {
	.hero-suite .wp-block-cover {
		min-height: 150px !important;
	}
	.hero-suite #fleur-suite {
		bottom: 0;
	}
}

/* ----------------------------
	== ACTUALITÉS
---------------------------- */
.single .bs-news {
	margin: 0 calc(-1*var(--wp--preset--spacing--window));
}
.bs-news {
	padding: var(--wp--preset--spacing--window) !important;
	position: relative;
}
.bs-news > p {
	font-size: clamp(2rem, 6vw, 3rem);
}
.bs-news #fleur-suite {
	position: absolute;
	bottom: 0;
	left: 0;
}
.bs-news .wp-block-post-template li figure.wp-block-post-featured-image {
	margin: 0 !important;
}
.bs-news .wp-block-bsw-slider {
	padding: calc(-1*var(--wp--preset--spacing--window));
}
.bs-news .wp-block-bsw-slider li {
	position: relative;
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border--radius--medium);
}
.bs-news .wp-block-bsw-slider li figure {
	border-radius: 0 !important;
	margin: 0 !important;
}
.bs-news .wp-block-bsw-slider li a {
	display: block;
	font-weight: 800;
}
.bs-news .wp-block-bsw-slider li .slider_post_title {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--text) 0;
	margin: auto 0;
	font-family: var(--wp--preset--spacing--current);
	font-weight: 800;
	color: var(--wp--preset--color--primary);
}
.bs-news .wp-block-bsw-slider .slider_excerpt {
	padding: 0 var(--wp--preset--spacing--text);
	line-height: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: var(--wp--preset--spacing--text);
}
.bs-news .slider_categories {
	margin: 0;
	position: absolute;
	top: 50%;
	right: var(--wp--preset--spacing--text);
	z-index: 2;
}
.bs-news .slider_categories li {
	background: none;
}
.bs-news .slider_categories a {
	padding: 10px 30px;
	font-weight: 800;
	color: var(--wp--preset--color--white);
	border-radius: calc(var(--wp--custom--border--radius--medium)*2);
}
.bs-news .slider_categories a[href*="lycee"] {
	background: var(--wp--preset--color--lycee);
}
.bs-news .slider_categories a[href*="college"] {
	background: var(--wp--preset--color--college);
}
.bs-news .slider_categories a[href*="ecole"] {
	background: var(--wp--preset--color--ecole);
}
@media only screen and (max-width: 991px) {
	.bs-news {
		padding: var(--wp--preset--spacing--window) 0 !important;
	}
	.bs-news .slider_categories {
		top: 44%;
	}
	.bs-news .wp-block-buttons {
		justify-content: center;
	}
}

/* ----------------------------
	== LIRE AUSSI
---------------------------- */
.bs-readmore {
	margin: 0 calc(-1*var(--wp--preset--spacing--window));
	padding: var(--wp--preset--spacing--window) !important;
	position: relative;
}
.bs-readmore > p {
	font-size: 2rem;
}
.bs-readmore .wp-block-bsw-related-posts-template p {
	margin: 0;
	padding: 8px var(--wp--preset--spacing--text) 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: normal;
	text-align: left;
	color: var(--wp--preset--color--current);
}
.bs-readmore .wp-block-bsw-related-posts-template p:empty {
	display: none;
}
.bs-readmore .wp-block-bsw-related-posts-template li:nth-child(n+4) {
	display: none;
}
.bs-readmore .wp-block-bsw-related-posts-template .see-more {
	margin-block-start: var(--wp--preset--spacing--text);
}
.bs-readmore .wp-block-bsw-related-posts-template .see-more a {
	padding: 10px 20px;
	display: block;
  	width: fit-content;
	background: var(--wp--preset--color--accent);
	border-radius: 100px;
	color: var(--wp--preset--color--white);
	font-weight: 800;
}
.bs-readmore .wp-block-bsw-related-posts-template {
	padding: calc(-1*var(--wp--preset--spacing--window));
}
.bs-readmore .wp-block-bsw-related-posts-template li,
.bs-readmore .wp-block-bsw-related-posts-template-slider li {
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border--radius--medium);
	padding-bottom: var(--wp--preset--spacing--text);
}
.bs-readmore .wp-block-bsw-related-posts-template li h2,
.bs-readmore .wp-block-bsw-related-posts-template-slider li .slider_post_title {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--text) 0;
	margin: auto 0;
	font-family: var(--wp--preset--spacing--current);
	font-weight: 800;
}
.bs-readmore .wp-block-bsw-related-posts-template li h3 {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--text) 0;
	color: var(--wp--preset--color--current);
}
.bs-readmore .wp-block-bsw-related-posts-template-slider {
	padding: calc(-1*var(--wp--preset--spacing--window));
}
.bs-readmore .wp-block-bsw-related-posts-template-slider li {
	background: var(--wp--preset--color--white);
}
.bs-readmore .wp-block-bsw-related-posts-template-slider li a {
	display: block;
	font-weight: 800;
}
.bs-readmore .wp-block-bsw-related-posts-template-slider .slider_excerpt {
	padding: 0 var(--wp--preset--spacing--text);
	line-height: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: var(--wp--preset--spacing--text);
}
.bs-readmore #fleur-suite {
	position: absolute;
	left: 0;
	bottom: 0;
}
@media only screen and (max-width: 900px) {
	.bs-readmore {
		padding: var(--wp--preset--spacing--current) 0 !important;
	}
	.bs-readmore > p {
		font-size: 1.5rem;
	}
}

/* ----------------------------
	== POST LIST GRID CHILDPOST
---------------------------- */
.bs-childpost {
	margin: 0;
	padding: var(--wp--preset--spacing--window) !important;
}

/* ----------------------------
	== POST LIST GRID
---------------------------- */
.wp-block-query > ul.is-layout-grid li,
.wp-block-bsw-event-list li {
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border--radius--medium);
	overflow: hidden;
	gap: 0;
}
.bs-childpost li {
	justify-content: center;
}
.blog .wp-block-query > ul.is-layout-grid li,
body:not(.single) .wp-block-bsw-event-list li,
.archive .wp-block-query > ul.is-layout-grid li  {
	background: var(--wp--preset--color--neutral);
}
.wp-block-query > ul.is-layout-grid li figure,
.wp-block-bsw-event-list li figure {
	border-radius: 0;
}
.wp-block-query > ul.is-layout-grid li h2,
.wp-block-bsw-event-list li h2 {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--text);
}
.wp-block-query > ul.is-layout-grid li .wp-block-post-excerpt {
	margin: 0;
	padding: 0 var(--wp--preset--spacing--text) var(--wp--preset--spacing--text);
}
.wp-block-query > ul.is-layout-grid li .wp-block-group,
.wp-block-bsw-event-list li {
	position: relative;
}
.wp-block-query > ul.is-layout-grid li .taxonomy-category {
	margin: 0;
	position: absolute;
	top: -15px;
	right: var(--wp--preset--spacing--text);
}
.wp-block-query > ul.is-layout-grid li .taxonomy-category a,
.event-tag a {
	padding: 10px 30px;
	font-weight: 800;
	color: var(--wp--preset--color--white);
	border-radius: calc(var(--wp--custom--border--radius--medium)*2);
}
.wp-block-query > ul.is-layout-grid li .taxonomy-category a[href*="lycee"],
.wp-block-bsw-event-list .event-tag li a[href*="lycee"] {
	background: var(--wp--preset--color--lycee);
}
.wp-block-query > ul.is-layout-grid li .taxonomy-category a[href*="college"],
.wp-block-bsw-event-list .event-tag li a[href*="college"] {
	background: var(--wp--preset--color--college);
}
.wp-block-query > ul.is-layout-grid li .taxonomy-category a[href*="ecole"],
.wp-block-bsw-event-list .event-tag li a[href*="ecole"] {
	background: var(--wp--preset--color--ecole);
}
.wp-block-bsw-event-list .event-tag {
	margin: 0;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
}
.wp-block-bsw-event-list .event-tag li  {
	width: auto
}
.wp-block-bsw-event-list li .bsw-event-date {
	margin-top: 0;
	padding: 0 var(--wp--preset--spacing--text);
}

/* ----------------------------
	== WITH SIDEBAR
---------------------------- */
.wp-block-columns.with-sidebar .wp-block-bsw-siblings-posts {
  position: relative;
  z-index: 1;
  background: var(--wp--preset--color--neutral);
  padding: var(--wp--preset--spacing--small);
  border-radius: var(--wp--custom--border--radius--medium);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wp-block-columns.with-sidebar .wp-block-bsw-siblings-posts::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px); 
  z-index: -1;
}

.wp-block-columns.with-sidebar .wp-block-bsw-siblings-posts::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(40%, 40%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 163, 185, 0.13) 0%, rgba(0, 162, 185, 0) 20%);
  z-index: -2;
  pointer-events: none;

}
.wp-block-columns.with-sidebar .wp-block-bsw-siblings-posts li.current {
	font-weight: 800;
}

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

.next-prev.toosmall {
	justify-content: space-between;
	max-width: var(--wp--style--global--wide-size);
	gap: 10px;
	width: 100%;
}
.next-prev .post-navigation-link__title {
  color: var(--wp--preset--color--current);
}
.next-prev .post-navigation-link-previous a::before,
.next-prev .post-navigation-link-next a::before  {
	font-family: esperance;
	color: var(--wp--preset--color--current)
}
.next-prev .post-navigation-link-previous a::before {
	content: "";
}
.next-prev .post-navigation-link-next a::before {
	content: "";
}

@media only screen and (max-width: 900px) {
	.next-prev.toosmall {
		margin: 0;
		position: absolute;
		bottom: 0;
	}
}

/* ----------------------------
	== xxx
---------------------------- */


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

/* ----------------------------
	== HERO HOME
---------------------------- */
.hero-home {
	margin: 0;
	position: relative;
	max-height: 85dvh;
}
.hero-home .main-nav a {
	padding: 15px;
}
.hero-home .logo-home {
	position: absolute;
	top:0;
	z-index: 2;
	width: 100%;
}
.hero-home .logo-home #fleur-suite {
	rotate: 180deg;
}
.hero-home figure {
	margin: 0;
	height: 85dvh;
}
.hero-home nav {
	margin: 0;
}
.hero-home nav .wp-block-page-list {
	gap: 0;
}
.hero-home .main-nav {
	position: absolute;
	top: var(--wp--preset--spacing--current);
	left: var(--wp--preset--spacing--current);
	right: var(--wp--preset--spacing--current);
	z-index: 2;
	margin: 0;
}
.hero-home .main-nav li {
	color: var(--wp--preset--color--white);
}
.hero-home .main-nav li .wp-block-navigation__submenu-container li {
	color: var(--wp--preset--color--primary);
}
.hero-home .main-nav #pop-nav {
	font-family: esperance;
}
.hero-home .nav-up {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
}
.hero-home .nav-up li {
	flex: 1;
	justify-content: center;
	transition: 0.3s ease; 
}
.hero-home .nav-up li a {
	color: var(--wp--preset--color--white) !important;
	font-size: clamp(2rem, 4vw, 1.8rem);
}
.hero-home .nav-up li a::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
}
.hero-home .nav-up li:first-child {
	background: rgba(68, 183, 170, 0.7) !important;
}
.hero-home .nav-up li:first-child:hover {
  	background: rgba(68, 183, 170, 1) !important;
}
.hero-home .nav-up li:nth-child(2) {
	background: rgba(245, 160, 6, 0.7) !important;
}
.hero-home .nav-up li:nth-child(2):hover {
  	background: rgba(245, 160, 6, 1) !important;
}
.hero-home .nav-up li:last-child {
	background: rgba(234, 102, 47, 0.7) !important;
}
.hero-home .nav-up li:last-child:hover {
  	background: rgba(234, 102, 47, 1) !important;
}
.hero-home figure.wp-block-post-featured-image img {
	object-position: top;
}

@media only screen and (max-width: 991px) {
	.hero-home figure {
		margin: 0;
		height: 65dvh;
	}
}

/* ----------------------------
	== ÉDITO
---------------------------- */
.wp-block-post-excerpt__more-link {
	box-shadow: none !important;
	text-decoration: underline;
}
.wp-block-post-excerpt__more-link:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* ----------------------------
	== CHIFFRES CLÉS
---------------------------- */
.bs-chiffrescle [class*=" icon-"] {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}
.bs-chiffrescle [class*=" icon-"]::before {
	font-size: 2rem;
	line-height: normal;
  	margin-bottom: 28px;
}
.bs-chiffrescle .bs-nombres {
	font-size: clamp(2rem, 6vw, 3rem);
	line-height: 0;
}
@media only screen and (max-width: 991px) {
	.bs-chiffrescle {
		margin: var(--wp--preset--spacing--small) calc(-1*var(--wp--preset--spacing--current)) !important;
	}
}


/* ----------------------------
	== ACCES RAPIDES
---------------------------- */
.quick-access {
	margin-top: var(--wp--preset--spacing--window);
	border-radius: var(--wp--custom--border--radius--small);
  	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	gap: 0;
}
.quick-access > div {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.quick-access figure {
	flex: 2;
	border-radius: 0 !important;
}
.quick-access > div > div {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--text);
	flex-grow: 1;
	display: flex;
	align-items: center;
	position: relative;
	justify-content: center;
	overflow: hidden;
}
.quick-access > div > div a::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
}
.quick-access > div > div:first-child::before,
.quick-access > div > div:nth-child(2)::before,
.quick-access > div > div:last-child::before {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -75px;
	width: 300px;
	height: 300px;
	z-index: -1;
	pointer-events: none;
}
.quick-access > div > div:first-child::after,
.quick-access > div > div:nth-child(2)::after,
.quick-access > div > div:last-child::after {
	content: "";
	position: absolute;
	top: -125px;
	right: -125px;
	width: 200px;
	height: 200px;
	z-index: -1;
	pointer-events: none;
}
.quick-access > div > div:first-child::before,
.quick-access > div > div:first-child::after {
	background: radial-gradient(circle, rgba(68, 183, 170, 0.13) 0%, rgba(68, 183, 170, 0) 70%);
}
.quick-access > div > div:nth-child(2)::before,
.quick-access > div > div:nth-child(2)::after {
  background: radial-gradient(circle, rgba(0, 163, 185, 0.13) 0%, rgba(0, 162, 185, 0) 70%);
}
.quick-access > div > div:last-child::before,
.quick-access > div > div:last-child::after {
	background: radial-gradient(circle, rgba(245, 160, 6, 0.13) 0%, rgba(245, 160, 6, 0) 70%);
}
.quick-access > div > div p {
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--title) !important;
}
.quick-access > div > div p::before {
	font-family: esperance;
	font-size: 2.2rem;
	margin-bottom: 8px;
}

@media only screen and (min-width: 991px) {
	.quick-access {
		max-width: 1000px !important;
	}
	.quick-access > div > div {
		border-right: solid 10px;
	}
}
@media only screen and (max-width: 991px) {
	.quick-access {
		flex-direction: column-reverse;
	}
}

/* ----------------------------
	== ÉVÉNEMENT
---------------------------- */
.bs-events {
	padding: var(--wp--preset--spacing--window);
}
.bs-events > p {
	font-size: clamp(2rem, 6vw, 3rem);
}
.bs-events .bsw-event-date {
	color: var(--wp--preset--color--primary);
	font-weight: 800;
}

/* ----------------------------
	== TÉMOIGNAGES & NOS ÉLÈVES EN ACTION
---------------------------- */
.bs-testimony {
	position: relative;
	margin: 0 calc(var(--wp--preset--spacing--window)*-1);
	padding: var(--wp--preset--spacing--current) 0!important;
}
.bs-actions {
	position: relative;
	margin: 0 calc(var(--wp--preset--spacing--window)*-1);
	padding: var(--wp--preset--spacing--window) !important;
}
.bs-testimony::before,
.bs-actions::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	opacity: 0.8;
	background: var(--wp--preset--color--current);
}
.bs-testimony > p,
.bs-actions > p {
	position: relative;
	margin: 0;
	z-index: 2;
}
.bs-testimony .petale,
.bs-actions .petale {
	position: absolute;
	top: 0;
	left: 0;
}
.bs-testimony .wp-block-bsw-slider {
	padding: var(--wp--preset--spacing--window) 0;
}
.bs-testimony .splide__arrow {
	bottom: 0 !important;
	top: initial;
	background: none;
}
.bs-testimony .splide__arrow svg {
	display: none;
}
.bs-testimony .splide__arrow--prev::after,
.bs-testimony .splide__arrow--next::after {
	font-family: esperance;
	font-size: 2rem;
	color: var(--wp--preset--color--white);
}
.bs-testimony .splide__arrow--prev::after {
	content: "\e93c";
}
.bs-testimony .splide__arrow--next::after {
	content: "\e937";
}
.bs-testimony li {
	position: relative;
}
.bs-testimony li p {
	padding-left: var(--wp--preset--spacing--text);
	border-left: 1px solid var(--wp--preset--color--white);
}
.bs-testimony li::before {
	content: "\e93f";
	font-size: 2rem;
	font-family: esperance;
	color: var(--wp--preset--color--vert);
}
.bs-testimony blockquote {
	margin: 0;
	display: flex;
	flex-direction: column-reverse;
}
.bs-testimony blockquote p {
  font-weight: 500;
  line-height: 1.3;
  color: var(--wp--preset--color--primary-70);
}
.bs-testimony .auteur {
	font-style: normal;
	font-weight: 800;
}
.bs-testimony .fonction {
	font-style: normal;
}
.bs-testimony .fonction::before,
.bs-testimony .structure::before {
	content:"-";
	padding-right: 5px;
}

@media only screen and (min-width: 991px) and (max-width: 1900px) {
	.bs-actions .petale img {
		width: 600px;
	}
}
@media only screen and (min-width: 1900px) {
	.bs-actions .petale img {
		width: 32vw;
	}
}
@media only screen and (min-width: 991px) {
	.bs-testimony > p,
	.bs-actions > p {
		position: absolute;
		font-size: clamp(2rem, 5vw, 2.5rem);
		top: var(--wp--preset--spacing--text);
		left: calc(var(--wp--preset--spacing--window) + var(--wp--preset--spacing--current));
	}
	.bs-actions .petale figure {
		width: 100%;
	}
	.bs-testimony li::before {
		position: absolute;
		left: calc(-2*var(--wp--preset--spacing--text));
		top: -15px;
	}
}

@media only screen and (max-width: 991px) {
	.bs-testimony {
		padding: var(--wp--preset--spacing--text) 0 !important;
	}
	.bs-testimony .petale img {
		max-width: 85%;
	}
	.bs-actions .petale {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-58%);
		height: 25vh;
		width: 600px;
	}
	.bs-actions .petale img {
		height: 100%;
	}
	.bs-testimony > p,
	.bs-actions > p {
		font-size: clamp(1.4rem, 5vw, 1.8rem);
		text-align: center;
	}
	.bs-testimony li {
		padding: var(--wp--preset--spacing--current) 0;
	}
}

/* ----------------------------
	== MODELE UP
---------------------------- */
body[class*="modele-up"] main {
	margin: 0;
}

/* 
	== SLIDER
*/
body[class*="modele-up"] .wp-block-bsw-slider-static {
	margin: 0 calc(var(--wp--preset--spacing--window)*-1);
	max-height: 90dvh;
}
body[class*="modele-up"] .wp-block-bsw-slider-static li {
	max-height: 80dvh;
}
body[class*="modele-up"] .wp-block-bsw-slider-static figure {
	margin: 0;
}
body[class*="modele-up"] .wp-block-bsw-slider-static figure img {
	object-fit: cover;
	width: 100%;
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow {
	background: none;
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow--next {
	right: 2em;
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow--prev {
	left: 2em;
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow svg {
	display: none;
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow--prev::after,
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow--next::after {
	font-family: esperance;
	font-size: 5rem;
	color: var(--wp--preset--color--white);
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow--prev::after {
	content: "\e93c";
}
body[class*="modele-up"] .wp-block-bsw-slider-static .splide__arrow--next::after {
	content: "\e937";
}
@media only screen and (max-width: 800px) {
	body[class*="modele-up"] .wp-block-bsw-slider-static {
		margin: 0 calc(var(--wp--preset--spacing--window)*-1);
		min-height: 60dvh;
	}
	body[class*="modele-up"] .wp-block-bsw-slider-static figure,
	body[class*="modele-up"] .wp-block-bsw-slider-static img {
		min-height: 60dvh;
		object-fit: cover;
	}
}

/* 
	== ACTUALITÉS
*/
body[class*="modele-up"] .bs-news {
	margin: 0 calc(var(--wp--preset--spacing--window)*-1);
}

/* 
	== ACCÈS RAPIDES UP
*/
.quick-access-up {
	margin: calc(var(--wp--preset--spacing--window)*-1) auto 0 !important;
	position: relative;
	border-radius: 10px;
	padding: 0 !important;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0 !important;
    padding: 0;
    max-width: 75vw;
    list-style: none;
}
.quick-access-up li {
    flex: 1;
    position: relative;
    text-align: center;
    line-height: 1;
	font-family: var(--wp--preset--font-family--title) !important;
	font-weight: 800;
}
.quick-access-up li + li {
    border-left: 1px solid var(--wp--preset--color--white);
}
.quick-access-up li::before {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 0 10px;
    padding: 50px 0 0;
    text-align: center;
    font-size: 4rem;
	font-weight: 400;
	font-family: esperance !important;
}
.quick-access-up li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    background: var(--wp--preset--color--current);
    opacity: 0;
    transition: all .5s;
}
.quick-access-up li:hover::after {
    opacity: 0.1;
}
.quick-access-up li a {
    display: block;
    padding: 0 50px 50px;
    line-height: 1;
}
.quick-access-up li a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
}
@media only screen and (max-width: 800px) {
	.quick-access-up {
		margin: calc(var(--wp--preset--spacing--current)*-1) auto 0 !important;
	}
    .quick-access-up li {
        width: 100%;
        flex: initial;
    }
    .quick-access-up li::before {
        font-size: 2rem;
    }
    .quick-access-up li + li {
        border-top: 1px solid var(--wp--preset--color--white);
		border-left: none;
    }
    .quick-access-up li a {
        font-size: var(--wp--preset--font-size--small);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* 
	== PAGES FILLES
*/
body[class*="modele-up"] .bs-childpost {
	padding: var(--wp--preset--spacing--window);
}
body[class*="modele-up"] .bs-childpost li {
	background: rgba(251,250,248, 0.5);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body[class*="modele-up"] .bs-childpost li h2 {
	min-height: 100px;
	justify-content: center;
	display: flex;
	align-items: center;
}
body[class*="modele-up"] .bs-childpost li figure {
	height: clamp(130px, 7vw, 15vw);
	border-radius: 0;
}
body[class*="modele-up"] .bs-childpost li h2 a::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
}
body[class*="modele-up"] .bs-childpost li h2::before {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -75px;
	width: 300px;
	height: 300px;
	z-index: -1;
	pointer-events: none;
}
body[class*="modele-up"] .bs-childpost li h2::after {
	content: "";
	position: absolute;
	top: -125px;
	right: -125px;
	width: 200px;
	height: 200px;
	z-index: -1;
	pointer-events: none;
}
body[class*="ecole-template-modele-up"] .bs-childpost li h2::before,
body[class*="ecole-template-modele-up"] .bs-childpost li h2::after  {
	background: radial-gradient(circle, rgba(68, 183, 170, 0.13) 0%, rgba(68, 183, 170, 0) 70%);
}
body[class*="college-template-modele-up"] .bs-childpost li h2::before,
body[class*="college-template-modele-up"] .bs-childpost li h2::after  {
	background: radial-gradient(circle, rgba(245, 160, 6, 0.2) 0%, rgba(245, 160, 6, 0) 70%);
}
body[class*="lycee-template-modele-up"] .bs-childpost li h2::before,
body[class*="lycee-template-modele-up"] .bs-childpost li h2::after  {
	background: radial-gradient(circle, rgba(234, 102, 47, 0.2) 0%, rgba(234, 102, 47, 0) 70%);
}