/*
Theme Name: Twenty Twenty Four Child
Description: Theme enfant de Nils Augé
Author: Nils Augé
Author URI: www.web.quickswing.fr
Template: twentytwentyfour
Version: 0.1.0
*/

/***************IMPORT AND FONT***************/
h1, h2, h3 {
  font-family: "Bitter", system-ui;
  font-style: normal;
  margin: 0 !important;
}

body.page-id-3 h2, body.page-id-251 h2{
 margin-top: 20px !important;
}

h1 {
  font-weight: 600;
}
h2{
  font-weight: 500;
}
h3{
  font-weight: 300;
  font-size: 24px;
}

p a, main ul li a{
  text-decoration: none;
  position: relative;
}

p a:before, main ul li a:before{
  display: block;
  content: '';
  width: 0;
  height: 2px;
  left: 50%; /* Place the line at the center */
  z-index: 0;
  position: absolute;
  bottom: 0; /* Align the line to the bottom of the text */
  background: #29778f;
  transition: width 0.3s ease-in-out, background-position 0.3s ease-in-out, background 0.3s ease-in-out;
  transform: translateX(-50%); /* Shift the line to be centered */
  transform-origin: center; /* Ensure the line grows from the center */
}

a:hover:before, main ul li a:hover:before{
  width: 100%; /* Grows the line to 100% width */
}

/***************HEADER***************/
header{
    padding:0 20px;
}

body:not(.home) header{
    background-color:#FFF;
}

    header > div {
   z-index:999;
}


/***************LOGO***************/
.wp-block-site-logo img {
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(.68,-0.55,.27,1.55), width 0.6s cubic-bezier(.51,-0.52,.53,1.57) !important;
  max-width: unset;
}

body.home .wp-block-site-logo img {
    filter: contrast(0) brightness(200);
}

.wp-block-site-logo:hover img {
    transform: scale(1.08);
}
/***************MENU***************/
    body.home header .wp-block-navigation__responsive-container-open svg{
        fill: #fff;
    }

    body.home header .wp-block-navigation__responsive-container-close svg{
        fill: #000;
    }

.wp-block-navigation__submenu-container li a{
	padding:10px!important;
}

/***************CONTENT***************/
/*Style des boutons*/
.wp-block-button a {
  border: 2px solid var(--wp--preset--color--custom-couleur-q-2);
  background: var(--wp--preset--color--custom-couleur-q-2);
  color: #fff;
}

/*Style des boutons*/
.wp-block-button:hover a{
  border-color:var(--wp--preset--color--custom-couleur-q-2);
background: transparent;
color:var(--wp--preset--color--custom-couleur-q-2);
}

/*Style des boutons Blanc*/
.wp-block-button.whitecta a {
  border: 2px solid #fff;
  background: transparent;
}

/*Style des boutons*/
.wp-block-button.whitecta:hover a{
  border-color:#fff;
background: #fff;
color:var(--wp--preset--color--custom-couleur-q-2);
}

/*.whitecta

/*******IMG HOME******/
.homebrand {
    position: relative;
    background-color: #000;
    height: 100vh; /* Assurez-vous que le conteneur a une hauteur suffisante */
    overflow: hidden; /* Évitez que le canvas dépasse du conteneur */
    width: 100%; /* Assurez-vous que le conteneur a une largeur suffisante */
    box-sizing: border-box; /* Inclut le padding et la bordure dans les dimensions */
}

/* Scroll content */
#sectionscrolldown {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1001; /* S'assurer qu'il est au-dessus des autres éléments */
}

 #sectionscrolldown::after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 80%;
  background: -webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.8) 80%,rgba(0,0,0,.8) 100%);
  background: linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.8) 80%,rgba(0,0,0,.8) 100%);
}

#sectionscrolldown a {
  padding-top: 100px;
}


#sectionscrolldown a span {
  position: absolute;
  top: 35vh;
  left: 50%;
  width: 30px;
  height: 50px;
  margin-left: -15px;
  border: 2px solid #3e4040;
  border-radius: 50px;
  box-sizing: border-box;
  background-color: rgba(62, 64, 66, 0.5);
}

#sectionscrolldown a span::before {
  position: absolute;
  top: 10px;
  left: 50%;
  content: '';
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--wp--preset--color--custom-couleur-q-1);
  border-radius: 100%;
  -webkit-animation: sdb10 2s infinite;
  animation: sdb10 2s infinite;
  box-sizing: border-box;
}
@-webkit-keyframes sdb10 {
  0% {
    -webkit-transform: translate(0, 0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    -webkit-transform: translate(0, 20px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sdb10 {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    transform: translate(0, 20px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/*******Sections pictos*****/
.secpicto {
  margin-top: 20px!important;
}


.secpicto .wp-block-column .wp-block-column {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  padding:20px;
}

.secpicto .wp-block-column .wp-block-column figure{
max-width: 60%;
  margin: auto;
}

.secpicto .wp-block-column .wp-block-column h3{
  margin-top:20px!important;
}




/***************FOOTER***************/
/*Go to the top*/
.c-go-top {
    background-color: var(--wp--preset--color--custom-couleur-q-1)!important;
    bottom: 20px;
    border: 1px solid var(--wp--preset--color--custom-couleur-q-1);
    border-radius: 4px;
    color: #eee !important;
    display: none;
    font-size: 12px;
    opacity: 0.8;
    padding: 10px;
    position: fixed;
    right: 5%;
    text-decoration: none !important;
    z-index: 999;
}

.c-go-top:hover,
.c-go-top:focus,
.c-go-top:active,
.c-go-top:visited {
  color: #fff;
  outline: 0;
  text-decoration: none;
}

/**Formulaire**//* Style global pour le formulaire */
/* Style global pour le formulaire */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

.wpcf7-form p {
  margin: 0 !important;
  height: auto !important;
}

/* Style des labels */
.wpcf7-form p label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
  margin-top: 15px;
}




/* Cibler et rendre l'étoile rouge dans les labels */
.wpcf7-form p label span.required {
    color: red;
}

/* Style des champs de texte et de l'email */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Style lors du focus */
.wpcf7-form-control:focus {
    border-color: var(--wp--preset--color--custom-couleur-q-2);
    box-shadow: 0 0 8px rgba(58, 119, 255, 0.2);
    outline: none;
}

/* Style pour centrer le texte dans le select */
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    margin-bottom: 20px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center; /* Centre le texte dans le select */
    -moz-appearance: none; /* Retirer les styles par défaut sur certains navigateurs */
    -webkit-appearance: none; /* Retirer les styles par défaut sur certains navigateurs */
    appearance: none; /* Retirer les styles par défaut sur certains navigateurs */
}

/* Centrer le texte des options dans le dropdown Select2 */
.select2-container--default .select2-selection--single {
    text-align: center; /* Centre le texte de la sélection */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: center; /* Centre le texte affiché dans le select */
}

.select2-container--default .select2-results__option {
    text-align: center; /* Centre le texte des options dans le dropdown */
    display: flex; /* Utiliser flexbox pour centrer le texte */
    justify-content: center; /* Centre horizontalement */
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--wp--preset--color--custom-couleur-q-2);
  color: white;
}


/* Style pour le textarea */
.wpcf7-form-control.wpcf7-textarea {
    height: 150px;
    resize: none;
}

/* Style du bouton d'envoi */
.wpcf7-form-control.wpcf7-submit {
    background-color: var(--wp--preset--color--custom-couleur-q-2);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    box-sizing: border-box;
}

/* Effet au survol du bouton */
.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--wp--preset--color--custom-couleur-q-1);
}

/* Effet du bouton au clic */
.wpcf7-form-control.wpcf7-submit:active {
    transform: scale(0.98);
}

/* Style pour la zone de réponse du formulaire */
.wpcf7-response-output {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-couleur-q-1);
  text-align: center;
  color: #dc3232;
}

/* Ajouter un effet de transition pour une animation fluide */
.wpcf7-spinner {
    display: none;
}

.has-spinner .wpcf7-spinner {
    display: inline-block;
    margin-left: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 1s ease infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
