/*
Theme Name: SoHappy Theme Astra Gutenberg
Theme URI: https://www.sohappy-studio.com
Author: Agence So'Happy
Author URI: https://www.sohappy-studio.com
Description: Astra child theme
Template: astra
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Version: 1.0.0
*/
/******************************/
/********** Variables CSS *****/
/******************************/
.entry-content figure img {
	border-top-left-radius: 3vw;
}
:root {
	--main-color: var(--ast-global-color-0, #40CAE5);
	--sub-color: var(--ast-global-color-1, #2A205E);
	--green-color: var(--ast-global-color-2, #4b9b4b);
	--orange-color: var(--ast-global-color-3, #f59300);
    --white : #fff;
	--grey: #C7C6C6;
	--black : #000;
    --transparent: transparent;
    --black-rgb: 0, 0, 0;
    --menu-border-color: #ccc;
    --environment-link-color: #2e7d32;
    --error-color: #dc3232;
    --timeline-accent: var(--wp--preset--color--primary, var(--main-color));
    --timeline-line-color: var(--wp--preset--color--contrast-3, #d5dde2);
    --timeline-text-color: var(--wp--preset--color--contrast, #1d2a33);
    
	--arial : "Arial Narrow", Arial, sans-serif;
	--stack-sans-text: 'Stack Sans Text', var(--arial);
	--quiche-sans:'Quiche Sans', var(--arial);
	--masthead-height : 100px;
}

/* --------------- GENERAL ---------------- */
html {
	font-size: 62.5%;
	margin: 0!important;
	padding: 0;
	width: 100%;
	height: unset;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
	font-size: 1.5rem;
	font-family: var(--stack-sans-text);
	color: var(--main-color);

}
#wpadminbar {
	opacity: .6!important;
}

h1, .entry-content h1, body *:is(.is-h1) {
	font-size: 7rem;
	font-family: var(--quiche-sans);
	font-weight: 500;
	text-wrap: balance;
	line-height: 0.9;
	margin-bottom: .6lh;
}
h1 strong, .entry-content h1 strong, body *:is(.is-h1) strong {
	font-weight: 500;
	color: var(--sub-color);
}
/* Lettres animées : voir section « ANIMATIONS D'APPARITION » en fin de fichier */
h2, .entry-content h2, body *:is(.is-h2) {
	font-size: 4.5rem;
	font-family: var(--quiche-sans);
	font-weight: 400;
	text-wrap: balance;
	line-height: 1;
	margin-bottom: .6lh;
}
h3, .entry-content h3, body *:is(.is-h3) {
	font-size: 3.3rem;
	font-family: var(--quiche-sans);
	font-weight: 400;
	line-height: 1;
	margin-bottom: .6lh;
}
h4, .entry-content h4, body *:is(.is-h4) {
	font-size: 2.8rem;
	font-family: var(--quiche-sans);
	font-weight: 400;
	line-height: 1;
	margin-bottom: .6lh;
}
h5, .entry-content h5, body *:is(.is-h5) {
	font-size: 2rem;
	font-family: var(--quiche-sans);
	font-weight: 400;
	line-height: 1;
	margin-bottom: .6lh;
}
.pretitre, .entry-content .pretitre, body *:is(.pretitre) {
	text-transform: uppercase;
	color: var(--sub-color);
	font-family: var(--stack-sans-text);
	font-size: 2rem;
}
/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--stack-sans-text);
	font-weight: 400;
	line-height: 1.3;
	font-size: 1.6rem;
}
#content ul li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.6;
}
#content ul {
  list-style: none;
  padding-left: 0;
}
#content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--ast-global-color-1);
  top: calc(0.8em - 5px);
}
p, .entry-content p {
	margin-top: 0;
	margin-bottom: .7lh;
}
p a, .entry-content li a, body .is-link {
	--ico-size : 15px;
	position: relative;
	line-height: 1.5;
	border-bottom: var(--orange-color) solid 1px;
	text-decoration: none!important;
	color: inherit;
	text-transform: uppercase;
	font-weight: inherit;
}
p a::after, .entry-content li a::after, body .is-link::after {
	display: inline-block;
	content: "";
	margin-left: 10px;
	mask: url(./assets/svg/picto_arrow.svg) center / contain no-repeat;
	-webkit-mask: url(./assets/svg/picto_arrow.svg) center / contain no-repeat;
	width: var(--ico-size);
	height: var(--ico-size);
	background-color: var(--orange-color);

	transition: inherit;
}
.entry-content p a:hover, .entry-content li a:hover {
	color: var(--sub-color);
	border-bottom-color: var(--sub-color);
}
.entry-content p a:hover::after, body .is-link:hover::after  {
	background-color: var(--sub-color);
}

strong {
	font-weight: 700;
}
em {
    font-style: italic;
}
.color-black {
	color: var(--black);
}
.color-white {
	color: var(--white);
}
body .is-stack {
	font-family: var(--stack-sans-text);
}
body .is-quiche {
	font-family: var(--quiche);
}

/*********BOUTON**********/
.wp-block-button .wp-element-button {
	--ico-size: 20px;
	position: relative;
	display: block;
	padding: 10px calc(var(--ico-size) + 20px) 10px 20px!important;
	color: var(--main-color);
	background-color: var(--transparent);
	border-width: 1px!important;
	border-style: solid;
	border-color :var(--main-color);
	border-radius: 0;
	box-sizing: border-box;
	font-size: 1.8rem!important;
	line-height: 1.2!important;
	font-family: var(--stack-sans-text);
	font-weight: 400!important;
	text-transform: uppercase;
	text-decoration: none!important;

	transition: all .2s ease-out;
}
.wp-block-button .wp-element-button::after {
	position: absolute;
	display: block;
	content: "";
	right: 10px;
	top: 50%;
	mask: url(./assets/svg/picto_arrow.svg) center / contain no-repeat;
	-webkit-mask: url(./assets/svg/picto_arrow.svg) center / contain no-repeat;
	transform: translateY(-50%);
	width: var(--ico-size);
	height: var(--ico-size);
	background-color: var(--sub-color);

	transition: inherit;
}
.wp-block-button .wp-element-button:hover {
	background-color: var(--main-color);
	border: 1px solid var(--main-color);
	color: var(--white);
	border-radius: 0;
}
.wp-block-button .wp-element-button:hover::after {
	background-color: var(--white);
}
body .has-ast-global-color-0-background-color .wp-block-button .wp-element-button {
	color: var(--white);
	border-color: var(--sub-color);
}
body .has-ast-global-color-0-background-color .wp-block-button .wp-element-button:hover {
	color: var(--main-color);
	border-color: var(--white);
	background-color: var(--white);
}
body .has-ast-global-color-0-background-color .wp-block-button .wp-element-button:hover::after {
	background-color: var(--main-color);
}

/****************************/
/**********SPECIFIC**********/
/****************************/
.FlexContainer {
	display: flex!important;
	flex-flow: row wrap;
}
.ContainerFlex {
	display: flex;
	flex-flow: column;
}
.center-row {
	display: flex!important;
	flex-flow: row wrap;
	align-items: center;
}
.align-center-row {
	align-items: center;
}
.justify-center-row {
	justify-content: center;
}
.align-end-row {
	align-items: flex-end!important;
}
.justify-end-row {
	justify-content: end;
}
.justify-between-row {
	justify-content: space-between;
}
.justify-around-row {
	justify-content: space-around;
}
/* enlève la marge interne*/
.no-padding {
	padding: 0!important;
}
/* enlève la marge externe*/
.no-margin {
	margin: 0!important;
}
/* bouton non cliquable */
.no-click {
	pointer-events: none;
	cursor: none;
}
/* sections en fullwidth */
.fullwidth {
	width: 100%!important;
	max-width: 100%!important;
}
.fullheight {
	height: 100%!important;
	max-height: 100%!important;
}
/* Centre le background et remplit la div */
.full-background-fit {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* cache le after et le before */
.no-after:after {
	visibility: hidden!important;
}
.no-before:before {
	visibility: hidden!important;
}
.no-desktop {
	display: none!important;
}
.min-width {
	width: 60%!important;
	margin: auto;
}

.text_image {
	height: 2.5rem;
	padding: 0 10px;
}
.img-zoom, .img-zoom * {
	overflow: hidden;
}
.img-zoom img {
	transition: all .5s ease-out;
}
.img-zoom:hover img {
	transform: scale(1.1);
}

/****************************/
/********** HEADER **********/
/****************************/
#masthead {
	position: fixed!important;
	width: 100%;
	padding: 20px;
	transition: all .2s ease-out;
	box-shadow: 0 0 10px 0px rgba(var(--black-rgb), 0);
}
body:is(.scroll0, .mob_scroll0) #masthead {
	background-color: var(--white);
	box-shadow: 0 0 10px 0px rgba(var(--black-rgb), .2);
}
#masthead .site-header-primary-section-right {
	display: flex;
	flex-direction: column;
	align-items: end;
	justify-content: center;
	gap: 20px;
}
#masthead .site-header-primary-section-right > * {
	padding: 0;
}
#masthead .main-header-menu {
	gap: 15px;
}
#masthead .main-header-menu li a.menu-link {
	--spacing: 15px;
	position: relative;
	padding: 5px var(--spacing);
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--main-color);
	transition: all .2s ease-out;
}
#masthead .main-header-menu li a.menu-link::after {
	position: absolute;
	display: block;
	content: "";

	bottom: 3px;
	left: 50%;
	transform: translate(-50%, 100%);

	height: 2px;
	width: 0px;
	background-color: var(--main-color);
	transition: inherit;
}
#masthead .main-header-menu li a.menu-link:hover::after, #masthead .main-header-menu > li.current-menu-item > a.menu-link::after {
	width: calc(100% - 2 * var(--spacing));
}
#masthead .main-header-menu li[class*="-btn"] a.menu-link {
	padding: 10px 20px;
	border: 1px solid var(--sub-color);
	background-color: var(--white);
	color: var(--main-color);
	text-transform: uppercase;
	font-size: 1.6rem;
}
#masthead .main-header-menu li[class*="-btn"] a.menu-link::after {
	display: none;
}
#masthead .main-header-menu li[class*="-btn"] a.menu-link:hover {
	border-color: var(--sub-color);
	background-color: var(--sub-color);
	color: var(--white);
}
#masthead .main-header-menu li.blue-btn a.menu-link {
	border-color: var(--main-color);
	background-color: var(--main-color);
	color: var(--white);
}
#masthead .main-header-menu li.orange-btn a.menu-link {
	border-color: var(--orange-color);
	background-color: var(--orange-color);
	color: var(--white);
}
#masthead .main-header-menu .sub-menu {
	border: none;
	padding: 10px;
	width: max-content;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#main-header {
    --header-height: 80vh;
    position: relative;
    min-height: var(--header-height);
    overflow: hidden;

    /* Image de fond (WebP 3 Ko mobile / 8 Ko desktop, préchargée dans le <head>) */
    background-image: url(./assets/img/header_background-960.webp);
    background-position: center 100%;
    background-size: cover;
    background-repeat: no-repeat;
}


/* Vidéo = véritable arrière-plan */
#main-header .main-header-video {
    position: absolute;

    top: 0;
    left: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 100%;

    pointer-events: none;

    /* Invisible tant que la vidéo ne joue pas : l'image de fond identique reste affichée */
    opacity: 0;
    transition: opacity .6s ease;
}
#main-header .main-header-video.is-playing {
    opacity: 1;
}
@media (min-width: 961px) {
    #main-header {
        background-image: url(./assets/img/header_background.webp);
    }
}


/* Tout le contenu passe devant */
#main-header > .ast-container {
    position: relative;
    z-index: 2;
}
#main-header.header-page {
	--header-height : 40vh;
}
#main-header.header-sommaire {
	--header-height : calc(100vh - var(--masthead-height));
	background-image: none;
	padding-bottom: 20px;
}
#main-header .header-data-wrapper {
	min-height: var(--header-height);
	padding: calc(var(--masthead-height) + 20px) 0 20px 0;
}
#main-header:is(.header-home, .header-page) .header-data-wrapper {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
#main-header .header-data {
	border-bottom: 1px solid var(--grey);
	position: relative;
	/* padding: 30px; */
}
#main-header.header-sommaire .header-data {
	padding: 40px max(10%, 20px)!important;
	border-bottom: none;
	min-height: calc(var(--header-height) - var(--masthead-height) - 100px);
	border-top-left-radius: max(5vw, 20px);
	background-color: var(--main-color);
}
#main-header.header-home .header-data:first-child {
	/* padding: 30px 30px 140px 30px; */
}
#main-header .header-data:last-child:not(.no-thumb) {
	padding: 0;
}
#main-header:not(.header-sommaire) .header-data:first-child > * {
	max-width: 650px;
	width: 100%;
}
#main-header .header-thumb {
	border-top-left-radius: max(5vw, 20px);
	height: calc(var(--header-height) - 100px);
	width: 100%;
	object-fit: cover;
}
#main-header.header-sommaire .title-section {
	margin-bottom: 30px;
}
#main-header.header-sommaire .title-section > * {
	color: var(--white);
	max-width: 800px;
}
#main-header.header-sommaire .title {
	margin-bottom: .3lh;
}
#main-header .pretitle {
	font-weight: 400;
	font-size: 2.25rem;
	color: var(--main-color);
	text-wrap: balance;
	padding-bottom: 10px;
	text-transform: uppercase;
	border-bottom: 1px solid var(--grey);
}
#main-header .custom-search-form {
	margin-top: 50px;
}
#main-header .picto {
	height: 120px;
	aspect-ratio: 1/1;
	object-fit: contain;
	width: auto !important;
	position: absolute;
	bottom: 10px;
	right: -60px;
	z-index: 2;
}
#main-header.header-sommaire .menu-items {
	--gap : max(3vw, 20px);
	gap: var(--gap);
}
#main-header.header-sommaire .menu-items > * {
	width: calc(100% / var(--cols) - var(--gap));
	align-items: stretch;
}
#main-header.header-sommaire .menu-item, #main-header.header-sommaire .menu-item * {
	text-decoration: none;
	color: var(--white);
	transition: all .2s ease-out;
}
#main-header.header-sommaire .menu-item .item-thumb {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-top-left-radius: max(5vw, 20px);
}
#main-header.header-sommaire .menu-item:hover .item-thumb {
	filter: brightness(.8) contrast(1.5);
}
#main-header.header-sommaire .menu-item {
	font-size : 2.5rem;
	color: var(--sub-color);
}
#main-header.header-sommaire .menu-item:hover {
	color: var(--white);
}
#main-header.header-sommaire .menu-item > div {
	position: relative;
	margin-bottom: 24px;
}
#main-header.header-sommaire .menu-item h2 {
	margin: 0;
	color: inherit;
	font: normal 700 var(--stack-sans-text);
	text-transform: uppercase;
	font-size: inherit;
}
#main-header.header-sommaire .menu-item:hover h2 {
	transform: translateX(10px);
}
#main-header.header-sommaire .menu-item .item-arrow {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 45px;
	height: 45px;
	background-color: var(--main-color);
	box-sizing: content-box;
	padding-right: 10px;
}
#main-header.header-sommaire .menu-item:hover .item-arrow {
	padding-right: 0px;
}
#main-header.header-sommaire .menu-item .item-arrow::after {
	position: absolute;
	display: block;
	content: "";
	top: 0;
	left: 0;
	width: 45px;
	height: 45px;
	background-color: var(--white);
	mask: url(./assets/svg/picto_arrow.svg) center / 70% no-repeat;
	-webkit-mask: url(./assets/svg/picto_arrow.svg) center / 70% no-repeat;
}
/****************************/
/********** MENU *********/
/****************************/
/* Sous-pages Environnement toujours visibles, en dessous */

/* Sous-pages Environnement toujours visibles, en dessous */
#menu-item-174 > .sub-menu {
  position: static !important;
  display: block !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 16px;
  background: var(--transparent);
  min-width: unset;
  opacity: 1 !important;
  visibility: visible !important;
}

#menu-item-174 > .sub-menu li a {
  padding: 6px 14px;
  font-size: 0.88rem;
  display: block;
  border-left: 2px solid var(--menu-border-color);
  color: inherit;
  white-space: normal;
}

#menu-item-174 > .sub-menu li a:hover {
  border-left-color: var(--environment-link-color);
  color: var(--environment-link-color);
}

/* Masque la flèche de toggle sur Environnement */
#menu-item-174 > a .dropdown-menu-toggle {
  display: none !important;
}

/****************************/
/********** CONTENT *********/
/****************************/
/* .slide_up / .slide_down / ... : voir section « ANIMATIONS D'APPARITION » en fin de fichier */
.wp-block-sohappy-linked-group-block {
	text-decoration: none!important;
}
.wp-block-sohappy-linked-group-block > div > figure:first-child {
	max-height: 200px;
	overflow: hidden;
}
.wp-block-sohappy-linked-group-block p.is-h4.no-margin {
	margin-bottom: .4lh!important;
}
.wp-block-sohappy-linked-group-block p {
	transition: all .2s ease-out;
}
.wp-block-sohappy-linked-group-block:hover p {
	color: var(--orange-color)!important;
}
.custom-search-form {
	position: relative;
}
.custom-search-form input {
	border-radius: 10px;
	padding-left: 50px;
}
.custom-search-form button {
	position: absolute;
	background: url(./assets/svg/picto_search.svg) center / 60% no-repeat;
	width: 40px;
	height: 100%;
	padding: 0;

	left: 0;
	top: 0;
}
body .entry-content .counter-contents-wrapper {
	gap: 0!important;
}
body .entry-content .eb-counter-wrapper .eb-counter-number {
	font-size: 8rem;
	font-family: var(--quiche-sans);
	line-height: 1;
}
body .entry-content .eb-counter-wrapper .eb-counter-title {
	font-size: 2.4rem;
}
body .entry-content .no-counter .eb-counter.eb-counter-number {
	display:none;
}

.posts-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat( var(--grid-col, 3), 1fr);
}
.posts-grid .grid-item {
	text-decoration: none!important;
}
.posts-grid .grid-item .grid-item-thumb {
	position: relative;
	width: 100%;
	height: 300px;
}
.posts-grid .grid-item .grid-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-top-left-radius: max(5vw, 20px);
}

.posts-grid .grid-item .grid-item-category {
	position: absolute;
	bottom: 10px;
	left: 0;
	width: max-content;
	max-width: 80%;
	padding: 7px 15px;
	color: var(--sub-color);
	background-color: var(--main-color);
	text-transform: uppercase;
	transition: padding .2s ease-out;
}
.posts-grid .grid-item:hover .grid-item-category {
	padding-left: 20px;
}
.posts-grid .grid-item .grid-item-data {
	margin-top: 20px;
	border-left: 0px solid var(--white);
	padding-right: 10px;
	padding-left: 0;
	transition: padding .2s ease-out;
}
.posts-grid .grid-item:hover .grid-item-data {
	border-left-width: 2px;
	padding-left: 10px;
	padding-right: 0;
}
.posts-grid .grid-item .grid-item-data * {
	color: var(--white);
}
.posts-grid .grid-item .grid-item-date {
	text-transform: uppercase;
	margin-bottom: .3lh;
}

.slick-slider {
	--arrow-size : 40px;
}

.slick-slider .slick-arrow {
	position: absolute;
	display: block;
	height: var(--arrow-size);
	width: auto;
	aspect-ratio: 1/1;
	padding: 0;
	font-size: 0px;
	border-radius: 50px;
	background-color: var(--white);
	border: 1px solid var(--main-color);
	top: 0;
	left: 0;
	right: unset;
	transform: translate(0, calc((25px + 100%) * -1)) rotate(180deg);
	
	transition: all .2s ease-out;
	z-index: 2;
}
.slick-slider .slick-next {
	transform: translate(calc(10px + 100%), calc((25px + 100%) * -1)) rotate(0deg);
}
.slick-slider .slick-arrow::before {
	display: none;
}
.slick-slider .slick-arrow::after {
	position: absolute;
	display: flex;
	content: "→";

	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	justify-content: center;
	align-items: center;

	font-size: 1.6rem;
	color: var(--main-color);

	transition: inherit;

	/* background-color: var(--main-color);
	mask: url(./assets/svg/picto_arrow.svg) center / 70% no-repeat;
	-webkit-mask: url(./assets/svg/picto_arrow.svg) center / 70% no-repeat; */
}
.slick-slider .slick-arrow:hover {
	background-color: var(--main-color);
}
.slick-slider .slick-arrow:hover::after {
	color: var(--white);
}
.slick-slider .slick-track {
	display: flex;
}
.slick-slider .slick-slide {
	padding: 0 10px;
	box-sizing: border-box;
}

/* Slider « prestations » AVANT l'initialisation de Slick (chargé en différé).
   Sans ces règles, les 5 cartes restent sur une ligne et débordent : sur mobile la page
   passait à ~1000 px de large, le navigateur dézoomait toute la page, puis tout se recalait
   à l'arrivée de Slick (CLS ≈ 0,58). On affiche d'emblée le même nombre de cartes que Slick. */
.prestations-slider:not(.slick-initialized) {
	overflow: hidden;
}
.prestations-slider:not(.slick-initialized) > * {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	margin-inline: 10px;
}
.prestations-slider:not(.slick-initialized) > :nth-child(n+5) {
	display: none !important;
}
@media (max-width: 1024px) {
	.prestations-slider:not(.slick-initialized) > :nth-child(n+4) { display: none !important; }
}
@media (max-width: 768px) {
	.prestations-slider:not(.slick-initialized) > :nth-child(n+3) { display: none !important; }
}
@media (max-width: 480px) {
	.prestations-slider:not(.slick-initialized) > :nth-child(n+2) { display: none !important; }
}


.accordeon-item {
	transition: all .2s ease-out;
}
.accordeon-item .accordeon-content {
	height: 0;
	overflow: hidden;
	transition: height .3s ease-out;
}
.accordeon-item.open .accordeon-content {
	height: var(--content-height);
}
.accordeon-item .accordeon-title {
	transition: all .2s ease-out;
	cursor: pointer;
}
.accordeon-item .accordeon-title > *:last-child {
	flex-grow: 2;
	position: relative;
	padding-right: 70px;
}
.accordeon-item .accordeon-title > *:last-child::after {
	position: absolute;
	content: "";
	display: block;
	width: 25px;
	height: 25px;
	background-color: var(--sub-color);
	mask: url('./assets/svg/picto_arrow_down.svg') no-repeat center / cover;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
	transition: all .2s ease-out;
}
.accordeon-item.open .accordeon-title > *:last-child::after {
	transform: translateY(-50%) rotate(180deg);
	mask-image: url('./assets/svg/picto_arrow_down.svg')
}

.liste-num .wp-block-column  {
	border-top-left-radius: 20px;
	background-color: var(--ast-global-color-6);
	padding: 10px;
}

/* CONTACT FORM 7 */
.CForm {
	width: 100%;
	gap: 20px;
}
.CForm .CF-full {
	width: 100%;
}
.CForm .CF-half { width: calc(50% - 10px); }
.CForm .CF-onethird { width: calc(33% - 10px); }
.CForm .CF-twothird { width: calc(66% - 10px); }
.CForm .CF-onequarter {	width: calc(25% - 10px); }
.CForm .CF-threequarter { width: calc(75% - 10px); }

.CForm label {
	color: var(--main-color);
}
.CForm input, .CForm textarea {
	font-size: 1.5rem;
}
.CForm input:focus, .CForm textarea:focus {
	border: 1px solid var(--grey)!important;
}
.CForm .CF-highlight {
	color: var(--orange-color);
	font-weight: 800;
}

.CForm .CF-checkbox .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
}
.CForm .CF-checkbox .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 32%;
	min-width: 250px;
}
.CForm .CF-radio .wpcf7-radio {
	display: block;
}
.CForm .CF-radio .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 99%;
}
.CForm .wpcf7-not-valid {
	border: 1px solid var(--error-color);
}
.CForm .wpcf7-not-valid-tip {
	position: absolute;
	font-size: 1rem;
	bottom: 0;
	transform: translate(0,80%);
}
.CForm .CF-number label > span {
	width: 150px;
	display: block;
}
.CForm .CF-textarea .wpcf7-textarea  {
	resize: vertical;
}

.CForm .CF-hr {
	position: relative;
}
.CForm .CF-hr h3 {
	display: inline-block;
	padding-right: 20px;
	margin: 0;
	background-color: var(--white);
}
.CForm .CF-hr::before {
	position: absolute;
	content: "";
	display: block;

	width: 100%;
	height: 2px;
	background-color: var(--main-color);

	top: 50%;
	left: 0;
	transform: translate(0, -50%);
	z-index: -1;
}
.CForm .wp-block-button .wp-element-button {
	--ico-size: 0px;
}


/* ==========================================================
   LPL – Timeline horizontale avec Slick (3 dates par 3 dates)
   À charger APRÈS slick.css (pas besoin de slick-theme.css)
   ========================================================== */
 
.lpl-timeline {
  --tl-accent: var(--timeline-accent);
  --tl-line: var(--timeline-line-color);
  --tl-text: var(--timeline-text-color);
  --tl-year-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --tl-dot: 14px;
  --tl-axis: calc(var(--tl-year-size) + 1.5rem); /* hauteur de la ligne */
 
  margin-top: 2.5rem;
}
 
/* Neutralise les marges injectées par is-layout-flow */
.lpl-timeline > *,
.lpl-timeline .slick-list,
.lpl-timeline__item > *,
.lpl-timeline__content > * {
  margin-block: 0;
}
 
/* Avant l'init de Slick : on évite l'empilement vertical (FOUC) */
.lpl-timeline:not(.slick-initialized) {
  display: flex;
  overflow: hidden;
}
.lpl-timeline:not(.slick-initialized) > .lpl-timeline__item {
  flex: 0 0 33.333%;
}
@media (max-width: 1024px) {
  .lpl-timeline:not(.slick-initialized) > .lpl-timeline__item { flex-basis: 50%; }
}
@media (max-width: 640px) {
  .lpl-timeline:not(.slick-initialized) > .lpl-timeline__item { flex-basis: 100%; }
}
 
/* Hauteurs égales entre les slides */
.lpl-timeline .slick-track {
  display: flex;
}
.lpl-timeline .slick-slide {
  height: auto;
}
 
/* ---------- Étape ---------- */
.lpl-timeline__item {
  position: relative;
  padding-right: 2rem;
  box-sizing: border-box;
}
 
/* Ligne : du point de l'étape jusqu'au point suivant */
.lpl-timeline__item::before {
  content: "";
  position: absolute;
  top: var(--tl-axis);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tl-line);
  transform: translateY(-50%);
}
.lpl-timeline__item--last::before {
  display: none;
}
 
/* Point */
.lpl-timeline__item::after {
  content: "";
  position: absolute;
  top: var(--tl-axis);
  left: 0;
  width: var(--tl-dot);
  height: var(--tl-dot);
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--tl-accent);
  box-sizing: border-box;
  transform: translateY(-50%);
  transition: background-color .2s ease;
}
.lpl-timeline__item:hover::after,
.lpl-timeline__item--last::after {
  background: var(--tl-accent);
}
 
/* Année */
.lpl-timeline__year {
  font-size: var(--tl-year-size);
  line-height: 1;
  color: var(--tl-accent);
  font-variant-numeric: tabular-nums;
}
.lpl-timeline__year strong {
  font-weight: 700;
}
 
/* Contenu */
.lpl-timeline__content {
  margin-top: 3rem !important;
  color: var(--tl-text);
}
.lpl-timeline__heading {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: .6rem !important;
}
.lpl-timeline__content p {
  font-size: .95rem;
  line-height: 1.55;
}
 
/* ---------- Navigation (flèches + points) ---------- */
.lpl-timeline-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.lpl-timeline-nav__arrows {
  display: flex;
  gap: .5rem;
}
.lpl-timeline-nav .slick-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--timeline-accent);
  background: var(--transparent);
  color: var(--timeline-accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.lpl-timeline-nav .slick-arrow:hover:not(.slick-disabled) {
  background: var(--timeline-accent);
  color: var(--white);
}
.lpl-timeline-nav .slick-disabled {
  opacity: .35;
  cursor: default;
}
 
/* Points : un par groupe de 3 */
.lpl-timeline-nav .slick-dots {
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lpl-timeline-nav__toggle { display: none;}
.lpl-timeline-nav .slick-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: var(--timeline-line-color);
  font-size: 0;
  cursor: pointer;
  transition: background-color .2s, width .2s;
}
.lpl-timeline-nav .slick-active button {
  width: 44px;
  background: var(--timeline-accent);
}
 
.lpl-timeline-nav button:focus-visible {
  outline: 2px solid var(--timeline-accent);
  outline-offset: 3px;
}

.lpl-timeline-nav .slick-prev{
    left: 40%;
}
.lpl-timeline-nav .slick-prev::before{
  content: "";
}
.lpl-timeline-nav .slick-next{
    right: 55%;
}
.lpl-timeline-nav .slick-next::before{
  content: "";
}
/****************************/
/***********FOOTER***********/
/****************************/
#main-footer {
	margin-top: 5%;
}
#main-footer .wp-block-separator {
	flex-grow: 1;
}
#main-footer .get-menu {
	gap: 10px;
}
#main-footer .get-menu.footer-big-menu-fr {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
#main-footer .get-menu.footer-big-menu-fr > li > a.menu-link {
	font-family: var(--quiche-sans);
	font-weight: 400;
	font-size: 3rem;
	color: var(--sub-color);
}
#main-footer .get-menu.footer-big-menu-fr .sub-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
}
#main-footer .get-menu.footer-big-menu-fr .sub-menu > li > a.menu-link {
	color: var(--white);
}

#main-footer li[class*="-btn"] a.menu-link {
	padding: 10px 20px;
	width: 100%;
	text-align: center;
	border: 1px solid var(--sub-color);
	background-color: var(--transparent);
	color: var(--white);
	text-transform: uppercase;
	font-size: 1.6rem;
}
#main-footer li.orange-btn a.menu-link {
	border-color:var(--orange-color);
	background-color: var(--orange-color);
	color: var(--white);
}
#main-footer li[class*="-btn"] a.menu-link:hover {
	border-color:var(--white);
	background-color: var(--white);
	color: var(--main-color);
}


/****************/
/** KEYFRAMES ***/
/****************/


/* ==========================================================
   ANIMATIONS D'APPARITION (remplacent GSAP + ScrollTrigger)
   - Header : animé en CSS dès le premier affichage (pas d'attente du JS → LCP rapide).
   - Contenu : masqué uniquement si le JS est actif (.lpl-js), puis révélé au scroll (.lpl-in).
   ========================================================== */
:root {
	--lpl-ease: cubic-bezier(.25, .46, .45, .94); /* = power2.out */
}
/* Valeurs écrites en dur (pas de var() dans les keyframes) :
   Chrome peut ainsi exécuter les animations sur le GPU (« animations composées »). */
@keyframes lpl-reveal-up    { from { opacity: 0; transform: translate3d(0, 50px, 0); }  to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes lpl-reveal-down  { from { opacity: 0; transform: translate3d(0, -50px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes lpl-reveal-right { from { opacity: 0; transform: translate3d(-50px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes lpl-reveal-left  { from { opacity: 0; transform: translate3d(50px, 0, 0); }  to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes lpl-reveal-letter { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes lpl-slide-in {
	from { transform: translate3d(0, 30px, 0); }
	to   { transform: translate3d(0, 0, 0); }
}
.slide_up    { --lpl-anim: lpl-reveal-up; }
.slide_down  { --lpl-anim: lpl-reveal-down; }
.slide_right { --lpl-anim: lpl-reveal-right; }
.slide_left  { --lpl-anim: lpl-reveal-left; }

/* Header */
#main-header :is(.slide_up, .slide_down, .slide_right, .slide_left) {
	animation: var(--lpl-anim) 1.5s var(--lpl-ease) both;
	animation-delay: calc(var(--i, 0) * .1s);
}
/* Image principale du header : mouvement seul, jamais masquée (élément LCP) */
#main-header .header-thumb-in {
	animation: lpl-slide-in 1s ease-out both;
}

/* Contenu */
.lpl-js :is(.slide_up, .slide_down, .slide_right, .slide_left):not(#main-header *) {
	opacity: 0;
}
.lpl-js :is(.slide_up, .slide_down, .slide_right, .slide_left).lpl-in:not(#main-header *) {
	animation: var(--lpl-anim) 1.5s var(--lpl-ease) both;
	animation-delay: var(--lpl-delay, 0s);
}

/* Lettres des <strong> dans les H1 */
.lpl-js h1 strong:not(.lpl-letters) {
	opacity: 0;
}
/* Texte complet pour lecteurs d'écran (indépendant du CSS d'Astra) */
.lpl-letters > .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
h1 .lpl-word {
	white-space: nowrap;
}
h1 .lpl-letter {
	display: inline-block;
	animation: lpl-reveal-letter 1.5s var(--lpl-ease) both;
	animation-delay: calc(var(--i, 0) * .02s);
}

@media (prefers-reduced-motion: reduce) {
	#main-header :is(.slide_up, .slide_down, .slide_right, .slide_left),
	#main-header .header-thumb-in,
	.lpl-js :is(.slide_up, .slide_down, .slide_right, .slide_left):not(#main-header *),
	h1 .lpl-letter {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.lpl-js h1 strong:not(.lpl-letters) {
		opacity: 1;
	}
}
