/*
Theme Name: TeeBliz
Description: Le thème de Teebliz
Author: Fazaé
Author URI: https://www.fazae.fr
Version:  1.0
Template: twentytwentyfive
*/

html {
  scroll-behavior: smooth;
}

footer {
  position: relative;
  z-index: 2;
  margin-top: -24px;
}

footer a {
  font-size: 12px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.title-gradient {
  background: linear-gradient(90deg, #5DBFBD 0%, #B46F69 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-gradient-dark {
  background: linear-gradient(90deg, #D7ECED 0%, #5DBFBD 51.92%, #B46F69 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wp-element-button:hover {
  background-color: #5DBFBD;
}

.btn-outline-nous a:hover {
  color: #1c2540 !important;
}

/*MENU*/
header {
  position: fixed;
  width: 100%;
  z-index: 3;
}

.menu-mobile {
  display: none;
}

/* Sous-menu cacher par défaut */
.nav-offres {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Sous-menu ouvert */
.nav-offres.is-open {
  max-height: 500px;
  opacity: 1;
  padding-top: 32px;
}

/*Chevron*/
.js-toggle-offres > a::after {
  content: "";
  display: inline-block;
  width: 14px;   /* ajuste la taille */
  height: 14px;
  margin-left: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='%23fdfdfd' d='M297.4 470.6C309.9 483.1 330.2 483.1 342.7 470.6L534.7 278.6C547.2 266.1 547.2 245.8 534.7 233.3C522.2 220.8 501.9 220.8 489.4 233.3L320 402.7L150.6 233.4C138.1 220.9 117.8 220.9 105.3 233.4C92.8 245.9 92.8 266.2 105.3 278.7L297.3 470.7z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  vertical-align: middle;
}

.js-toggle-offres.is-active > a::after {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/*Item souligner*/
header a {
  text-underline-offset: 6px;
}

.current-menu-item a {
  text-decoration: underline;
  text-decoration-color: #fdfdfd;
}

.js-toggle-offres.is-active a {
  border-bottom: 1px solid #fdfdfd;
}

.js-toggle-offres a:hover {
  text-decoration: none;
}

.js-toggle-offres.current-menu-item a {
  text-decoration: none !important;
}

header .nav-offres a {
  text-underline-offset: 4px;
}

/*HERO SECTION*/
.herosection .wp-block-ub-icon,
.herosection .ub_icon,
.herosection .ub_icon_wrapper {
  width: 100%;
  max-width: 500px;
}

.herosection-small .wp-block-ub-icon,
.herosection-small .ub_icon,
.herosection-small .ub_icon_wrapper {
  width: 100%;
  max-width: 250px;
}

/*ACCORDEON PAGE ACCUEIL*/
.accordeon-confiance {
  width: 100%;
  max-width: 1100px;
}

.accordeon-confiance .no-border {
  border-bottom: 1px solid white !important;
  padding: 24px 0px;
}

.accordeon-confiance .no-border:has(.wp-block-ub-content-toggle-accordion-content-wrap[aria-expanded="false"]) {
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.accordeon-confiance .no-border:has(.wp-block-ub-content-toggle-accordion-content-wrap[aria-expanded="true"]) {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.accordeon-confiance .wp-block-ub-content-toggle-accordion-content-wrap {
  line-height: 16px;
}

.accordeon-confiance .wp-block-ub-content-toggle-accordion-title-wrap {
  font-size: 28px;
  font-weight: 600;
}

.accordeon-confiance .wp-block-ub-content-toggle-accordion .wp-block-ub-content-toggle-accordion-title {
  padding: 0px;
}

/*ACCORDEON FAQ*/
.accordeon-faq {
  width: 100%;
  max-width: 1100px;
}

.accordeon-faq .wp-block-ub-content-toggle-accordion:has(.wp-block-ub-content-toggle-accordion-content-wrap[aria-expanded="false"]) {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.accordeon-faq .wp-block-ub-content-toggle-accordion:has(.wp-block-ub-content-toggle-accordion-content-wrap[aria-expanded="true"]) {
  background-color: #D7ECED40;
  transition: background-color 0.3s ease;
}

.accordeon-faq .wp-block-ub-content-toggle-accordion {
  padding: 24px;
  background-color: #D7ECED40;
  border-radius: 12px;
  border: 1px solid;
  border-color: #D7ECED !important;
}

.accordeon-faq .wp-block-ub-content-toggle-accordion-title {
  font-weight: 600;
  padding: 0px;
}

.accordeon-faq .wp-block-ub-content-toggle-accordion-content-wrap {
  padding: 0px;
}

/*ANIMATION HOVER CARD*/
.animation-card {
  min-height: 200px;
  transition:
    width 0.6s ease;
}

.animation-card.open {
  width: 100%;
}

.animation-card .icon {
  position: absolute;
  top: 24px;
  right: 24px;
  transition: opacity 0.3s ease;
}

.animation-card.open .icon {
  opacity: 0;
}

.animation-card .description {
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    max-height 0.5s ease,
    transform 0.5s ease;
}

.animation-card.open .description {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.animation-card-ia .animation-card {
  min-height: 325px;
}

/*Nos offres*/
#offres .card-article h3 a {
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

#offres .card-article .btn-article {
  padding: 8px 24px;
  border: 1px solid #5dbfbd;
  font-weight: 600;
  border-radius: 50px;
  color: #1a1a2e;
}

#offres .card-article .btn-article:hover {
  background-color: #5DBFBD;
}

/*FORMULAIRE DE CONTACT*/
.input-form {
  position: relative;
  margin-bottom: 40px;
}

.input-form p {
  margin: 0;
  position: relative;
}

.input-form input {
  width: 100%;
  padding: 10px 0;
  font-size: 20px;
  color: #1a1a2e;
  border: none;
  border-bottom: 1.5px solid #1C2540;
  background: transparent;
  outline: none;
  font-family: Poppins;
}

.wpcf7-form br {
  display: none;
}

.input-form label {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 20px;
  font-weight: 500;
  color: #1C2540;
  pointer-events: none;
  transition: 0.3s ease all;
}

.input-form p:focus-within label, .input-form p:has(input.filled) label {
  top: -20px;
  font-size: 16px;
  color: #5DBFBD;
}

.message-form textarea {
  width: calc(100% - 24px);
  min-height: 140px;
  padding: 12px;
  font-size: 16px;
  border: 1.5px solid #1C2540;
  border-radius: 10px;
  resize: vertical;
  outline: none;
  font-family: Poppins;
}

.message-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 500;
  color: #1C2540;
}

.message-form p:has(textarea.filled) label {
  color: #5DBFBD;
}

.wpcf7-form .btn p {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0px;
}

.wpcf7-form-control-wrap {
  width: 100%;
}

span[data-name="hcap-cf7"]~input[type="submit"] {
  margin-top: 0px !important;
}

.wpcf7-submit {
  display: flex;
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid #5DBFBD;
  background: #A1D6D9;
  color: #1C2540;
  font-size: 20px;
  font-weight: 600;
}

.wpcf7-submit:hover {
  background-color: #5DBFBD;
}

.wpcf7-not-valid-tip {
  color: #D44F41;
}

/*FOCUS*/
:where(.wp-site-blocks *:focus) {
  outline-style: none !important;
}

:where(.wp-site-blocks *:focus-visible) {
  outline-width: 2px;
  outline-color: #D44F41;
  outline-style: solid !important;
}

/*Title image*/
img[title] {
  pointer-events: none; 
}

/*RESPONSIVE*/
@media (max-width: 1400px) {
  .bloc-superposition {
    flex-direction: column-reverse;
  }

  .bloc-superposition .content {
    margin-top: 24px;
    position: static !important;
    transform: translate3d(0px, 0px, 0px) !important;
    width: calc(100% - 65px) !important;
  }

  .bloc-superposition img {
    max-height: 250px;
    width: 100% !important;
  }
}

@media (max-width: 1200px) {
  .logo-client {
    bottom: 80px !important;
  }

  .logo-client img {
    height: 60px;
  }
}


@media (max-width: 1024px) {
  .animation-card {
    width: calc(100% - 48px) !important;
    flex: none;
  }

  .animation-card .icon {
    display: none;
  }

  .animation-card .description {
    opacity: 1 !important;
    max-height: 500px !important;
    transform: translateY(0) !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .menu-desktop {
    display: none !important;
  }

  .menu-mobile {
    display: block;
    background-color: var(--wp--preset--color--accent-1, #1c2540);
    border-radius: 24px;
    padding: 24px;
  }

  .menu-mobile > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu-mobile .is-menu-open {
    background-color: #1C2540 !important;
    color: #FDFDFD !important;
    margin: 16px 0 0 16px;
    border-radius: 24px 0 0 24px;
  }

  .menu-mobile span {
    font-size: 16px;
  }

  .accordeon-confiance .wp-block-ub-content-toggle-accordion-title-wrap {
    font-size: 20px;
  }

  .bloc-contact h2,
  .bloc-contact h3 {
    text-align: center;
  }

  .herosection-small .ub_icon_wrapper {
    width: 120px;
  }

  .page-contact h1 {
    color: #fdfdfd;
  }

  .input-form label {
    font-size: 18px;
  }

  .message-form label {
    font-size: 18px;
  }
}

@media (max-height: 850px) {
  .menu-desktop {
    padding: 16px !important;
  }

  .herosection, .herosection-small {
    .logo-client  {
      bottom: 60px;
      img {
        max-height: 60px;
      }
    }
  }

  .herosection, .herosection-small {
    &:has(.logo-client) {
      div:first-child {
        margin-bottom: 20px;
      }
    }
  }
}

@media (max-height: 600px) {
  .herosection, .herosection-small {
    h1 {
      font-size: 32px;
    }

    p {
      font-size: 15px !important;
    }

    a {
      font-size: 16px;
    }

    .logo-client  {
      bottom: 60px;
      p {
        font-size: 16px;
      }
      img {
        max-height: 60px;
      }
    }
  }
}

