/*
Theme Name: BeFlex Child
Theme URI: https://www.eoxia.com
Author: the Eoxia team
Description: Child theme of BeFlex
License: AGPLv3
License URI: https://spdx.org/licenses/AGPL-3.0-or-later.html
Version: 4.0.0
Template: beflex
Text Domain: beflex-child
*/


/* ===== Formulaire Artesys ===== */
.wpcf7 .artesys-form {
  --af-teal: #007276;
  --af-teal-dark: #00605e;
  --af-border: #e6e3dd;
  --af-label: #6e6e6e;
  --af-text: #222;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "name    phone"
    "email   email"
    "message message"
    "submit  submit";
  column-gap: 10px;
  row-gap: 12px;
}

/* sécurité si CF7 ajoute encore des <p> / <br> */
.wpcf7 .artesys-form p { display: contents; margin: 0; }
.wpcf7 .artesys-form br { display: none; }

/* placement */
.wpcf7 .artesys-form .af-name    { grid-area: name; }
.wpcf7 .artesys-form .af-phone   { grid-area: phone; }
.wpcf7 .artesys-form .af-email   { grid-area: email; }
.wpcf7 .artesys-form .af-message { grid-area: message; }
.wpcf7 .artesys-form .af-submit  {
  grid-area: submit;
  justify-self: start;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* labels */
.wpcf7 .artesys-form .af-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 0.875rem;   /* 14px */
  font-weight: 400;
  line-height: 1.3;
  color: var(--af-label);
}

.wpcf7 .artesys-form .wpcf7-form-control-wrap { display: block; }

/* champs */
.wpcf7 .artesys-form input:not([type="submit"]),
.wpcf7 .artesys-form textarea {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 0.9375rem;  /* 15px */
  color: var(--af-text);
  transition: border-color .2s, box-shadow .2s;
}

.wpcf7 .artesys-form textarea {
  height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.wpcf7 .artesys-form input:not([type="submit"]):focus,
.wpcf7 .artesys-form textarea:focus {
  outline: none;
  border-color: var(--af-teal);
  box-shadow: 0 0 0 3px rgba(0, 122, 120, .12);
}

/* bouton */
.wpcf7 .artesys-form input[type="submit"] {
  height: 46px;
  margin: 0;
  padding: 0 54px 0 22px;
  background-color: var(--af-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 18px;
  color: #fff;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, background-position .2s;
}

.wpcf7 .artesys-form input[type="submit"]:hover {
  background-color: var(--af-teal-dark);
  background-position: right 18px center;
}

/* messages d'erreur / succès */
.wpcf7 .artesys-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #c0392b;
}

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 0.875rem;
}

.wpcf7 .artesys-form .wpcf7-spinner { margin: 0; }

/* mobile */
@media (max-width: 600px) {
  .wpcf7 .artesys-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "phone"
      "email"
      "message"
      "submit";
  }  
}

/*marge footer */ 

:where(.wp-site-blocks) > * {
    margin-block-start: 0px;
}

/*bouton fleche 1*/

.btn-arrow .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-arrow .wp-block-button__link::after {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s ease;
}

.btn-arrow .wp-block-button__link:hover::after {
  transform: translateX(5px);
}

/*bouton fleche 2*/

.btn-arrow-out .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-arrow-out .wp-block-button__link::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s ease;
}

.btn-arrow-out .wp-block-button__link:hover::after {
  transform: translate(3px, -3px);
}

/*remonter*/
body:is(.home, .front-page) .wp-site-blocks {
  padding-top: 0px !important;

}

/*header*/
body:is(.home, .front-page) .header-sticky {
  background-color: transparent !important;
  transition: 0.5s !important;
  color: #fff;
}

body:is(.home, .front-page) .header-sticky.-sticky {
  background-color: #fff !important;
  color: #007276;
}

.wp-block-navigation__container > .wp-block-navigation-item > a.wp-block-navigation-item__content {
  padding: 1em 0;
}
.wp-block-navigation__container .wp-block-navigation__submenu-container {
  border: 0 !important;
  box-shadow: 0 0 30px 0 rgba(30, 43, 45, 0.1); 
  border-radius: 6px !important;
  overflow: hidden !important;
}
body.home .header-sticky:not(.-sticky) .wp-block-navigation__container > .wp-block-navigation-item > a.wp-block-navigation-item__content {
  color: #fff !important;
}
body.home .header-sticky:not(.-sticky) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon svg {
  stroke: #fff !important; 
}
.wp-block-navigation__responsive-container-open svg {
  transition: all 0.2s ease-out;
}
body.home .header-sticky:not(.-sticky) .wp-block-navigation__responsive-container-open svg {
  fill: #fff !important;
}

/** Home logo transition */
body:not(.home, .front-page) .header-sticky .logo-home-min {
  display: none !important;
}
body:is(.home, .front-page) .header-sticky .header-logo-container {
  position: relative;
}
body:is(.home, .front-page) .header-sticky .logo-home-min, body:is(.home, .front-page) .header-sticky .custom-logo-link {
  position: absolute;
  width: 136px;
  height: auto;
  left: 0;
  top: 0;
  transition: 0.2s !important;
}
body:is(.home, .front-page) .header-sticky:not(.-sticky) .logo-home-min {
  width: 280px;
}
body:is(.home, .front-page) .header-sticky:not(.-sticky) .custom-logo-link {
  opacity: 0;
}
body:is(.home, .front-page) .header-sticky.-sticky .logo-home-min {
  opacity: 0;
}
body:is(.home, .front-page) .header-sticky.-sticky .custom-logo-link {
  opacity: 1;
}


/**body:is(.home, .front-page) .header-sticky .custom-logo-link {
  filter: invert(87%) sepia(88%) saturate(1%) hue-rotate(300deg) brightness(700%) contrast(100%) !important;
  transition: 0.5s !important;
}

body:is(.home, .front-page) .header-sticky.-sticky .custom-logo-link {
  filter: none !important;
}*/

.bloc-icon {
  position: relative;
  z-index: 3;
}



/*bouton programme*/
.excerpt-arrow .wp-block-post-excerpt__more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.excerpt-arrow .wp-block-post-excerpt__more-link::after {
  content: "";
  width: 14px;
  height: 10px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h18M13 1l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h18M13 1l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s ease;
}
.excerpt-arrow .wp-block-post-excerpt__more-link:hover::after {
  transform: translateX(5px);
}
 

/*smoot*/
html {
  scroll-behavior: smooth;
}


h2 {
  font-size: clamp(2rem, 1.516rem + 2.066vw, 3.375rem) !important;
  line-height: 1.05; /* ton 105% Figma, sans unité */
}

/*extrait*/
.excerpt-arrow .wp-block-post-excerpt__excerpt {
  display: none;
}

body.home .section-contact {
  background: var(--wp--preset--color--light-grey) !important;
}

/** Programme data */
.programme-group:has(.programme-data:empty) {
	display: none;
}

/** Fix img in buttons */
.wp-block-button__link > img {
  vertical-align: top;
}

body.single-produit.terminees .btn-programme-contact {
  display: none;
}

/** Fix home header */
.bf-front-carousel__header {
  top: 140px !important;
}