/*
Custom CSS - Code Boréal
Ajouter les ajustements spécifiques au site ici.
*/

.md-hero-area {
  background-image: url('../images/code-boreal-hero-bg.webp');
}

.cb-anchor-focus {
  animation: cbAnchorFocus 0.8s ease;
}

@keyframes cbAnchorFocus {
  0% {
    transform: translateY(12px);
    opacity: 0.75;
    filter: blur(3px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}


/* Pendant un scroll d’ancre, on évite que les cartes Mandats s’animent en plein passage */
body.cb-anchor-scrolling #mandats .tp_fade_anim,
body.cb-anchor-scrolling #mandats [data-fade-from],
body.cb-anchor-scrolling #mandats [data-delay] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}
/* =========================================================
   CONTACT PAGE + FORMIDABLE - CODE BORÉAL
   Classes réelles de contact.php
   Version plus sobre : titres moins gros + liste sans bullets
========================================================= */

/* Section formulaire */
#down.tp-contact-us-form-ptb {
  position: relative;
  overflow: hidden;
  padding-top: 95px !important;
  padding-bottom: 160px !important;
  background:
    radial-gradient(circle at 78% 24%, rgba(124, 60, 255, 0.11) 0, rgba(124, 60, 255, 0) 33%),
    radial-gradient(circle at 14% 74%, rgba(55, 114, 255, 0.07) 0, rgba(55, 114, 255, 0) 28%),
    #ffffff;
}

#down.tp-contact-us-form-ptb::before {
  content: "CONTACT";
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(88px, 12vw, 210px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(8, 11, 22, 0.032);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

#down.tp-contact-us-form-ptb .container,
#down.tp-contact-us-form-ptb .tp-contact-us-form-wrapper,
#down.tp-contact-us-form-ptb .row {
  position: relative;
  z-index: 2;
}

/* Wrapper général */
#down .tp-contact-us-form-wrapper.border-none {
  border: 0 !important;
}

/* =========================================================
   Colonne gauche
========================================================= */

#down .tp-contact-location-right-info {
  position: relative;
  padding-left: 28px;
  max-width: 600px;
}

/* Ligne verticale plus discrète */
#down .tp-contact-location-right-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 96px;
  width: 3px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3772ff 0%, #7c3cff 100%);
  box-shadow: 0 18px 40px rgba(124, 60, 255, 0.18);
}

#down .tp-contact-location-right-info .tp-section-content-wrapper {
  margin-bottom: 28px !important;
}


/* Titre gauche moins énorme */
#down .tp-contact-location-right-info .tp-section-title {
  max-width: 570px;
  margin-bottom: 0 !important;

  color: #080b16 !important;
  font-size: clamp(46px, 4.2vw, 68px) !important;
  font-weight: 900 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;
  text-transform: uppercase;
}

#down .tp-contact-location-right-info p {
  max-width: 560px;
  color: #080b16;
  /* font-size: 16px; */
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Cache les <br> entre les items de la liste */
#down .tp-contact-location-right-info br {
  display: none;
}
/* Liste “Ce qui aide” */
#down .tp-contact-location-right-info .studio-section-content-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;

  margin: 0 0 12px !important;
  padding: 0;

  color: #080b16 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;

  border-left: 0 !important;
  background: transparent !important;
}

/* Petit accent au lieu des lignes grises */
#down .tp-contact-location-right-info .studio-section-content-subtitle::before {
  content: "";
  display: block !important;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 999px;
  background: linear-gradient(135deg, #3772ff 0%, #7c3cff 100%);
  box-shadow: 0 0 0 4px rgba(124, 60, 255, 0.08);
}

/* =========================================================
   Colonne droite / bloc formulaire
========================================================= */

#down .tp-contact-us-wrap {
  position: relative;
  padding: 44px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 11, 22, 0.07);
  box-shadow: 0 38px 110px rgba(8, 11, 22, 0.085);
  backdrop-filter: blur(12px);
}

/* Bordure gradient subtile */
#down .tp-contact-us-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(55, 114, 255, 0.28),
    rgba(124, 60, 255, 0.18),
    rgba(8, 11, 22, 0.035)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Titre formulaire moins gros */
#down .tp-contact-us-title {
  position: relative;
  margin-bottom: 34px !important;

  color: #080b16 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
  text-transform: uppercase;
}

#down .tp-contact-us-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3772ff 0%, #7c3cff 100%);
}

/* Wrapper formulaire : pas de carte supplémentaire */
#down .cb-contact-form-card {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* =========================================================
   FORMIDABLE
   Ancien bloc stable : bouton SVG OK
   Ne touche PAS aux champs, colonnes, inputs ou textarea.
========================================================= */

.frm_forms {
  width: 100%;
}

/* Enlever le contour / style global Formidable sans casser les champs */
.frm_forms form,
.frm_forms fieldset,
.frm_forms .frm_form_fields,
.frm_forms .frm_fields_container {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Bouton Formidable style Code Boréal */
.frm_forms .frm_button_submit,
.frm_forms button[type="submit"],
.frm_forms input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-width: 190px !important;
  min-height: 54px !important;
  padding: 0 28px !important;

  border: 2px solid #080b16 !important;
  border-radius: 999px !important;
  background-color: transparent !important;

  color: #080b16 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;

  box-shadow: none !important;
  cursor: pointer !important;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}

/* SVG dans le bouton */
.frm_forms .frm_button_submit svg,
.frm_forms button[type="submit"] svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto !important;
  margin-left: 4px !important;
  vertical-align: -1px !important;
}

.frm_forms .frm_button_submit svg path,
.frm_forms button[type="submit"] svg path {
  fill: currentColor !important;
  transition: fill 0.25s ease !important;
}

/* Hover bouton */
.frm_forms .frm_button_submit:hover,
.frm_forms button[type="submit"]:hover,
.frm_forms input[type="submit"]:hover {
  background-color: #080b16 !important;
  color: #ffffff !important;
  border-color: #080b16 !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(8, 11, 22, 0.18) !important;
}

/* Messages d'erreur */
.frm_forms .frm_error_style {
  border-radius: 16px !important;
  background: rgba(217, 75, 75, 0.08) !important;
  color: #9b2c2c !important;
  border: 1px solid rgba(217, 75, 75, 0.18) !important;
  padding: 15px 18px !important;
  margin-bottom: 24px !important;
}

/* Message succès */
.frm_forms .frm_message {
  border-radius: 18px !important;
  background: rgba(124, 60, 255, 0.08) !important;
  color: #080b16 !important;
  border: 1px solid rgba(124, 60, 255, 0.18) !important;
  padding: 18px 22px !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
  #down.tp-contact-us-form-ptb {
    padding-top: 88px !important;
    padding-bottom: 130px !important;
  }

  #down .tp-contact-us-wrap {
    padding: 38px;
    border-radius: 34px;
  }

  #down .tp-contact-location-right-info .tp-section-title {
    font-size: clamp(44px, 5vw, 60px) !important;
  }
}

@media (max-width: 991px) {
  #down.tp-contact-us-form-ptb {
    padding-top: 78px !important;
    padding-bottom: 110px !important;
  }

  #down .tp-contact-location-right-info {
    margin-bottom: 64px;
  }

  #down .tp-contact-location-right-info::before {
    top: 88px;
    height: 110px;
  }

  #down .tp-contact-us-wrap {
    padding: 34px;
  }
}

@media (max-width: 767px) {
  #down.tp-contact-us-form-ptb {
    padding-top: 70px !important;
    padding-bottom: 90px !important;
  }

  #down.tp-contact-us-form-ptb::before {
    top: 42px;
    font-size: 82px;
  }

  #down .tp-contact-location-right-info {
    padding-left: 20px;
    margin-bottom: 52px;
  }

  #down .tp-contact-location-right-info .tp-section-title {
    font-size: 40px !important;
    letter-spacing: -0.05em !important;
  }

  #down .tp-contact-location-right-info p {
    font-size: 16px;
    line-height: 1.65;
  }

  #down .tp-contact-location-right-info .studio-section-content-subtitle {
    min-width: 0;
    width: 100%;
  }

  #down .tp-contact-us-wrap {
    padding: 28px 20px;
    border-radius: 28px;
  }

  #down .tp-contact-us-title {
    font-size: 22px !important;
  }

  .frm_forms .frm_button_submit,
  .frm_forms button[type="submit"],
  .frm_forms input[type="submit"] {
    width: 100% !important;
  }
}
/* =========================================================
   Formidable - Note diagnostic
========================================================= */

.frm_forms .cb-form-note {
  position: relative;
  margin: 0;
  padding: 18px 22px;

  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(55, 114, 255, 0.045), rgba(124, 60, 255, 0.06)),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(124, 60, 255, 0.12);
}

.frm_forms .cb-form-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3772ff 0%, #7c3cff 100%);
}

.frm_forms .cb-form-note::after {
  display: none !important;
  content: none !important;
}

.frm_forms .cb-form-note strong {
  display: block;
  color: #080b16;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.frm_forms .cb-form-note span {
  display: block;

  color: rgba(8, 11, 22, 0.68);
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================================
   FORMIDABLE - Radios + checkboxes boutons
   Style commun pour les choix en mode boutons
   Ne touche PAS au bouton submit.
========================================================= */

/* Variables Formidable communes */
.with_frm_style .frm_display_format_buttons .frm_radio,
.with_frm_style .frm_display_format_buttons .frm_checkbox,
.with_frm_style .frm_display_format_buttons .frm_radio label,
.with_frm_style .frm_display_format_buttons .frm_checkbox label,
.with_frm_style .frm_display_format_buttons .frm_radio .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox .frm_label_button_container {
  --border-color-active: rgba(8, 11, 22, 0.14) !important;
  --border-color-hover: rgba(8, 11, 22, 0.14) !important;
}

/* Choix sélectionné */
.with_frm_style .frm_display_format_buttons .frm_radio input[type="radio"]:checked + .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox input[type="checkbox"]:checked + .frm_label_button_container {
  background-color: rgba(124, 60, 255, 0.13) !important;
  background-image: none !important;
  border-color: rgba(124, 60, 255, 0.28) !important;
  color: #080b16 !important;
  font-weight: inherit !important;
  box-shadow: inset 0 0 0 1px rgba(124, 60, 255, 0.12) !important;
  text-shadow: none !important;
}

/* Texte du choix sélectionné */
.with_frm_style .frm_display_format_buttons .frm_radio input[type="radio"]:checked + .frm_label_button_container *,
.with_frm_style .frm_display_format_buttons .frm_checkbox input[type="checkbox"]:checked + .frm_label_button_container * {
  color: inherit !important;
  text-shadow: none !important;
}

/* Hover doux */
.with_frm_style .frm_display_format_buttons .frm_radio:hover .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox:hover .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_radio label:hover + .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox label:hover + .frm_label_button_container {
  background-color: rgba(124, 60, 255, 0.055) !important;
  background-image: none !important;
  border-color: rgba(8, 11, 22, 0.14) !important;
  color: #080b16 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Focus clavier */
.with_frm_style .frm_display_format_buttons .frm_radio input[type="radio"]:focus + .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_radio input[type="radio"]:focus-visible + .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox input[type="checkbox"]:focus + .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox input[type="checkbox"]:focus-visible + .frm_label_button_container {
  border-color: rgba(8, 11, 22, 0.14) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Selected + hover : garde l’état sélectionné visible */
.with_frm_style .frm_display_format_buttons .frm_radio:hover input[type="radio"]:checked + .frm_label_button_container,
.with_frm_style .frm_display_format_buttons .frm_checkbox:hover input[type="checkbox"]:checked + .frm_label_button_container {
  background-color: rgba(124, 60, 255, 0.15) !important;
  border-color: rgba(124, 60, 255, 0.30) !important;
  box-shadow: inset 0 0 0 1px rgba(124, 60, 255, 0.14) !important;
}


/* =========================================================
   FORMIDABLE - Focus des champs
   Remplace le bleu par un violet doux Code Boréal
========================================================= */

#down .with_frm_style input[type="text"]:focus,
#down .with_frm_style input[type="email"]:focus,
#down .with_frm_style input[type="tel"]:focus,
#down .with_frm_style input[type="url"]:focus,
#down .with_frm_style input[type="number"]:focus,
#down .with_frm_style textarea:focus,
#down .with_frm_style select:focus {
  border-color: rgba(124, 60, 255, 0.38) !important;
  box-shadow: 0 0 0 3px rgba(124, 60, 255, 0.08) !important;
  outline: none !important;
}



/* =========================================================
   Contact - bloc "Après l’envoi"
========================================================= */

#down .cb-contact-next-steps {
  max-width: 470px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(8, 11, 22, 0.08);
}

#down .cb-contact-next-title {
  margin-bottom: 18px !important;
  color: #080b16 !important;
  /* font-size: 15px !important; */
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

#down .cb-contact-next-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

#down .cb-contact-next-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 999px;
  background: rgba(124, 60, 255, 0.08);
  color: #080b16;

  /* font-size: 12px; */
  font-weight: 800;
  line-height: 1;
}

#down .cb-contact-next-item p {
  margin: 0 !important;
  max-width: 380px;
  color: rgba(8, 11, 22, 0.76) !important;
  /* font-size: 15px !important; */
  line-height: 1.55 !important;
}

@media (max-width: 991px) {
  #down .cb-contact-next-steps {
    margin-top: 36px;
    padding-top: 24px;
  }
}

/* =========================================================
   FORMIDABLE - Submit focus/active fix
   Empêche le bouton de devenir blanc texte blanc au clic
========================================================= */

.frm_forms .frm_button_submit:focus,
.frm_forms .frm_button_submit:active,
.frm_forms button[type="submit"]:focus,
.frm_forms button[type="submit"]:active,
.frm_forms input[type="submit"]:focus,
.frm_forms input[type="submit"]:active {
  background-color: #080b16 !important;
  border-color: #080b16 !important;
  color: #ffffff !important;
  box-shadow: 0 18px 45px rgba(8, 11, 22, 0.18) !important;
  outline: none !important;
}

/* SVG reste visible au clic */
.frm_forms .frm_button_submit:focus svg path,
.frm_forms .frm_button_submit:active svg path,
.frm_forms button[type="submit"]:focus svg path,
.frm_forms button[type="submit"]:active svg path {
  fill: currentColor !important;
}


/* =========================================================
   FORMIDABLE - Erreurs
========================================================= */

.frm_forms .frm_error_style {
  border-radius: 16px !important;
  background: rgba(190, 48, 48, 0.07) !important;
  border: 1px solid rgba(190, 48, 48, 0.16) !important;
  color: #7d2525 !important;
  padding: 16px 18px !important;
  margin-bottom: 24px !important;
  line-height: 1.45 !important;
}

.frm_forms .frm_error {
  color: #9b2c2c !important;
  font-weight: 500 !important;
  margin-top: 7px !important;
}

.frm_forms .frm_blank_field input,
.frm_forms .frm_blank_field textarea,
.frm_forms .frm_blank_field select,
.frm_forms input[aria-invalid="true"],
.frm_forms textarea[aria-invalid="true"],
.frm_forms select[aria-invalid="true"] {
  border-color: rgba(190, 48, 48, 0.36) !important;
  box-shadow: 0 0 0 3px rgba(190, 48, 48, 0.06) !important;
}



 @media only screen and (max-width: 1440px) {
  .pt-145 {
    padding-top: 100px;
  }
  .pb-145 {
    padding-bottom: 100px;
  }
  .pt-150 {
    padding-top: 110px;
  }
  .pb-150 {
    padding-bottom: 110px;
  }
  .pb-180 {
    padding-bottom: 120px;
  }
  .pt-180 {
    padding-top: 120px;
  }
  .pb-125 {
    padding-bottom: 90px;
  }
  .pt-125 {
    padding-top: 90px;
  }
  .pr-100 {
    padding-right: 80px;
  }
  .pl-100 {
    padding-left: 80px;
  }
  .md-hero-plr {
    padding-top: 150px;
    padding-bottom: 150px;
  }
  .pb-160 {
    padding-bottom: 120px;
  }
  .pt-160 {
    padding-top: 120px;
  }
  
 }
  @media only screen and (max-width: 992px) {
    header {
      .tp-header-area {
        padding-left: 20px;
        padding-right: 20px;
      }
    }
    section:not(.md-hero-area):not(.pt-10):not(.pt-15)[class^="pt-1"],
    section:not(.md-hero-area):not(.pt-10):not(.pt-15)[class*=" pt-1"] {
      padding-top: 60px;
    }
    section:not(.md-hero-area):not(.pb-10):not(.pb-15)[class^="pb-1"],
    section:not(.md-hero-area):not(.pb-10):not(.pb-15)[class*=" pb-1"] {
      padding-bottom: 60px;
    }
    .des-text-moving-bottom.moving-text {
      &.pt-145 {
        padding-top: 60px;
      }
    }
    .des-text-moving-area {
      &.pb-145 {
        padding-bottom: 60px;;
      }
    }
  }
 @media only screen and (max-width: 640px) {
  .md-hero-plr {
    padding-bottom: 60px;
  }
  .md-accordion-step-box {
    padding-bottom: 60px;
  }
  .page-template-contact .tp-section-subtitle {
    margin-top: 30px;
  }
  .with_frm_style .frm_form_fields > fieldset {
    padding: 0;
  }
  .frm_style_classic-blue.with_frm_style .form-field {
    margin-bottom: 15px;
  }
}