/**	Paragraph tag	**/
p.tag, p.is-style-tag{color: var(--wp--custom--accent); font-weight: 600; font-size: var(--wp--preset--font-size--normal); border: 1px solid var(--wp--custom--accent);}
p.tag + .wp-block-heading, p.is-style-tag + .wp-block-heading{margin-top: var(--wp--custom--spacer-s-fluid);}

/**	Buttons	**/
.wp-block-button.is-style-arrow-right > .wp-block-button__link::after,
.wp-block-button.arrow-right > .wp-block-button__link::after{content: url('../images/arrow-right.svg'); width: 12px; margin-left: var(--wp--custom--spacer-s); display: inline-block;}

/**	List	**/
@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 4px rgba(66, 135, 239, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(66, 135, 239, 0);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(66, 135, 239, 0);
  }
}


ul.wp-block-list.is-style-inline, ul.wp-block-list.inline,
ul.wp-block-list.is-style-puce, ul.wp-block-list.puce{list-style: none; padding-left: 0; margin-block-start: var(--wp--custom--spacer-fluid);}
ul.wp-block-list.is-style-puce > li, ul.wp-block-list.puce > li{display: flex; gap: var(--wp--custom--spacer-xs); align-items: flex-start; margin-bottom: var(--wp--custom--spacer-s); text-wrap: pretty;}
ul.wp-block-list.is-style-puce.has-l-font-size > li, ul.wp-block-list.puce.has-l-font-size > li{margin-bottom: var(--wp--custom--spacer-m);}
ul.wp-block-list.is-style-inline > li,
ul.wp-block-list.inline > li{display: inline-block; margin-right: var(--wp--custom--spacer-xs); margin-bottom: var(--wp--custom--spacer-xs)}

.has-background ul.wp-block-list.is-style-inline > li,
.has-background ul.wp-block-list.inline > li{padding: var(--wp--custom--spacer-s-fluid) var(--wp--custom--spacer-s-fluid); border: 1px solid; border-radius: var(--wp--custom--radius-s);}
.has-background ul.wp-block-list.is-style-inline > li:before,
.has-background ul.wp-block-list.inline > li:before,
ul.wp-block-list.is-style-puce > li:before,
ul.wp-block-list.puce > li:before{content: url('../images/check.svg'); display: inline-block; vertical-align: middle; margin-right: var(--wp--custom--spacer-s-fluid); line-height: 0; padding: 8px; height: 0.8em; border-radius: 50%; aspect-ratio: 1; background: var(--wp--custom--accent);  box-shadow: 0 0 0 4px rgba(66, 135, 239, 0.3); }
.has-background ul.wp-block-list.is-style-inline > li:hover:before,
.has-background ul.wp-block-list.inline > li:hover:before,
.wp-block-list.is-style-puce > li:hover:before,
ul.wp-block-list.puce > li:hover:before{animation: pulseShadow 2s ease-in-out infinite;}
.has-false-white-color ul.wp-block-list.is-style-inline > li,
.has-false-white-color ul.wp-block-list.inline > li{border-color: var(--wp--custom--false-white);}


/**	Headings	**/
*:has(>.is-style-numbered){counter-reset: heading-counter; /* Réinitialise le compteur pour chaque conteneur */}
.is-style-numbered {
	counter-increment: heading-counter; /* Incrémente le compteur pour chaque titre */
}

.is-style-numbered::before {
  content: counter(heading-counter, decimal-leading-zero); /* Affiche le compteur avec un zéro devant */
  margin-right: var(--wp--custom--spacer-fluid); /* Espace entre le numéro et le texte */
}
.is-style-numbered + p{margin-block-start: var(--wp--custom--spacer-s-fluid); padding-left: calc(var(--wp--preset--font-size--l) + var(--wp--custom--spacer-fluid));}


/**
*	Media & text
**/
.wp-block-media-text.is-vertically-aligned-top {
  grid-template-columns: 100% !important;
}
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 2;
}
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media {
  grid-column: 1;
  grid-row: 1;
}
.wp-block-media-text.is-vertically-aligned-top.has-media-on-the-right {
  display: grid !important;
  column-gap: 0 !important;
  grid-template-columns: 100% !important;
}

.wp-block-media-text.is-vertically-aligned-top.is-style-linked {transition: 0.5s;}
.wp-block-media-text.is-vertically-aligned-top.is-style-linked:hover{transform: scale(1.05);}
.wp-block-media-text.is-vertically-aligned-top.is-style-linked .wp-block-media-text__media{position: relative;}
.wp-block-media-text.is-vertically-aligned-top.is-style-linked .wp-block-media-text__media:after{content: url('../images/arrow-right-blue.svg'); width: 12px; height: 12px; line-height: 0; padding: 13px; bottom: -19px; right: var(--wp--custom--spacer-s-fluid); position: absolute; cursor: pointer; border-radius: 50%; background: var(--wp--custom--false-white);}
.wp-block-media-text.is-vertically-aligned-top.is-style-linked .wp-block-media-text__content{padding-top: var(--wp--custom--spacer-fluid); height: 100%; align-content: end;}
.wp-block-media-text.is-vertically-aligned-top.is-style-linked .wp-block-media-text__content > h3{margin-block-start: 0;}


.wp-block-media-text.big-img, .wp-block-media-text.is-style-big-img{}
@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile.big-img>.wp-block-media-text__media,
    .wp-block-media-text.is-stacked-on-mobile.is-style-big-img>.wp-block-media-text__media {
		margin-left: calc(var(--wp--style--root--padding-left) * -1);
        margin-right: calc(var(--wp--style--root--padding-right) * -1);
	}
}
.wp-block-media-text.is-style-big-img + .wp-block-group.has-background{margin-top: var(--wp--custom--spacer-m-fluid);}
@media (min-width: 601px) {
	/* .wp-block-media-text.big-img, .wp-block-media-text.is-style-big-img{overflow-x:hidden} */
	.wp-block-media-text.big-img > .wp-block-media-text__content, 
	.wp-block-media-text.is-style-big-img > .wp-block-media-text__content{padding-top: 8%; padding-bottom: 8%}
	
	
	.wp-block-media-text.has-media-on-the-right.big-img > .wp-block-media-text__media, 
	.wp-block-media-text.has-media-on-the-right.is-style-big-img > .wp-block-media-text__media{
		/* margin-right: calc(var(--wp--style--root--padding-right) * -1); */
		margin-right: calc((100vw - var(--wp--style--global--content-size)) / -2);
	}
	.wp-block-media-text.has-media-on-the-right.alignwide.big-img > .wp-block-media-text__media, 
	.wp-block-media-text.has-media-on-the-right.alignwide.is-style-big-img > .wp-block-media-text__media{
		margin-right: calc((100vw - var(--wp--style--global--wide-size)) / -2);
	}
	
	.wp-block-media-text.is-style-big-img + .wp-block-group.has-background{margin-top: unset;}
	.wp-block-media-text.is-style-big-img:has(+ .wp-block-group.has-background) .wp-block-media-text__media{height: calc(100% + 4em); align-self: start;}
	
}

/**
*	Columns
**/
@media (min-width: 782px) {
	.wp-block-columns > .wp-block-column.is-style-sticky,
	.wp-block-columns > .wp-block-column.sticky{position: sticky; top: calc(80px + var(--wp--custom--spacer-fluid)); align-self: flex-start; /* <-- this is the fix */}
}


/**
*	Formation
**/
.wp-block-group.is-style-formation, .wp-block-group.formation{
	margin-top: var(--wp--custom--spacer-m-fluid); 
	padding: var(--wp--custom--spacer-m-fluid);
	padding-left: var(--wp--custom--spacer-m-fluid); 
	border-radius: var(--wp--custom--radius-fluid); 
	border: 2px solid var(--wp--custom--theme-700);
}
.wp-block-group.is-style-formation > h3.wp-block-heading + h3.wp-block-heading{ margin-top: 0}
/* .wp-block-group.is-style-formation > h3.wp-block-heading:first-child,
.wp-block-group.formation > h3.wp-block-heading:first-child{
	position: absolute;
	left: 0;
	top: -2px;
	bottom: -2px;
	width: auto;
	background-color: var(--wp--custom--theme-700);
	color: var(--wp--custom--white) !important;
	padding: var(--wp--custom--spacer-xs);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--m);
	text-align: center;
	border-top-right-radius: var(--wp--custom--radius-fluid);
	border-bottom-right-radius: var(--wp--custom--radius-fluid);

  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg); 
  
  display: flex;
  align-items: center;
  justify-content: center;
}
 */
.wp-block-group.is-style-formation ul.wp-block-list,
.wp-block-group.formation ul.wp-block-list{margin-block-start: var(--wp--custom--spacer-s);}

.wp-block-group.is-style-formation .wp-block-column.has-background,
.wp-block-group.formation .wp-block-column.has-background{border-radius: var(--wp--custom--radius-fluid);}

@media(min-width: 782px){
	.wp-block-group.is-style-formation, .wp-block-group.formation{
		padding: var(--wp--custom--spacer-m-fluid);
		padding-left: var(--wp--custom--spacer-xl-fluid); 
	}
}