/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ==========================================================================
   Imports
   ========================================================================== */
@import url('blog.css');
@import url('menus.css');
/* Importer le CSS markdown Bootstrap */
@import url('markdown-bootstrap.css');

/* ==========================================================================
   Titre menu OS Map
   ========================================================================== */

#osmap-menu-uid-menu-principal { display: none; }

/*a.osmap-link[href*="https://cnfs.ca/agees-test/tests?view=html&id=1"] {
  display: none !important;
}*/

/* ==========================================================================
   Page 404
   ========================================================================== */
.error-page { position: relative; z-index: 0; }
.error-page::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.error-page > * { position: relative; z-index: 2; }
.error-code { color: #fff !important; }
html.error-page .error-message {
  font-size: 2.5rem; margin-bottom: 3rem; color: #fff;
}

/* ==========================================================================
   Typographie
   ========================================================================== */
h1, h1 span,
h2, h2 span,
h3, h3 span,
h4, h4 span,
h5, h5 span,
h6, h6 span {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
}
body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.5;
  font-weight: 400;
}
h1 { font-size: clamp(32px, 3.6vw, 64px) !important; }
h2 { font-size: clamp(28px, 3vw, 54px)!important; }
h3 { font-size: clamp(24px, 2.4vw, 36px)!important; }
h4 { font-size: clamp(20px, 2vw, 30px)!important; }
h5 { font-size: clamp(18px, 1.8vw, 24px)!important; }
h6 { font-size: clamp(16px, 1.6vw, 20px)!important; }


/* ==========================================================================
   Scroll Up
   ========================================================================== */
/*.sp-scroll-up { background: #862436; margin: 0 15px 50px 0; }
.sp-scroll-up a:link { color: #fff; }*/

/* ==========================================================================
   Menu principal (Helix)
   ========================================================================== */

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
	box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);
	padding: 20px;
	margin-top: 30px;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  display: inline-block; padding: 0 15px; line-height: 24px;
  font-size: 18px; margin: 0; font-weight: 500 !important; color: #fff;
}

/* Icône de recherche (dernier item du menu) */
.sp-megamenu-parent > li:last-child > a {
  font-size: 0 !important; display: flex; justify-content: center; align-items: center;
  width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%;
  transition: all .3s ease; padding-left: 0px; padding-right: 0px; margin: 0 15px 0 20px;
}
.sp-megamenu-parent > li:last-child > a::before {
  content: "\f002"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  font-size: 16px; color: #fff; transition: color .3s ease;
}
.sp-megamenu-parent > li:last-child > a:hover {
  background-color: #f0b462; border-color: #f0b462;
}
.sp-megamenu-parent > li:last-child > a:hover::before { color: #000; }


/* ==========================================================================
   Boutons
   ========================================================================== */
.btn-primary,
.sppb-btn-primary {
  border-color: #862535; background-color: #862535; color: #fff;
  font-weight: 700; font-size: 18px; padding: 5px 10px; border-radius: 5px;
}


/* ==========================================================================
   Burger / Offcanvas
   ========================================================================== */
.com-finder > * + *,
.com-finder__results > * + * { margin-top: 0; }

.burger-icon { width: 40px; cursor: pointer; }
.burger-icon > span {
  display: block; height: 4px; background-color: #fff;
  margin: 8px 0; transition: background-color .3s ease-in, opacity .3s ease-in, transform .3s ease-in;
}

/* Transformations + contenus offcanvas */
.offcanvas-active .burger-icon > span:nth-child(1),
#modal-menu-toggler.active .burger-icon > span:nth-child(1) {
  transform: translate(0, 18px) rotate(-45deg);
}
.offcanvas-menu { background-color: #ffffff00; color: #2d2d2d; }
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span,
.offcanvas-menu .offcanvas-inner .sp-contact-info > li > a,
.offcanvas-menu .offcanvas-inner .social-icons > li > a { opacity: 1 !important; }
.offcanvas-menu .offcanvas-inner .sp-contact-info,
.offcanvas-menu .offcanvas-inner .social-icons { font-size: 18px; }

.sp-contact-info li,
.sp-contact-info li:hover {
  display: inline-block; margin: 0 10px 0 0; font-size: 100%; white-space: nowrap;
  color: #fff;
}
.sp-contact-info li:hover { color: #F0B462; }
.offcanvas-menu .offcanvas-inner .sp-contact-info > li > a:hover,
.offcanvas-menu .offcanvas-inner .social-icons > li > a:hover {
  color: #F0B462; font-weight: 700;
}


/* ==========================================================================
   RS Social
   ========================================================================== */
.rssocial-icons .rssocial-link,
.rssocial-icons-sharing .rssocial-link { padding: 0; }
.rssocial-icons {
  display: flex; justify-content: flex-start; flex-wrap: nowrap; gap: 25px;
  padding: 0; margin: 0;
}
ul.social-icons li, .footer-social li { list-style: none; }

#rssocial-ul-125 { display: flex; justify-content: center; align-items: center; }
#rssocial-125 #rssocial-mail-icon.rssocial-link { margin-bottom: 15px; }


/* ==========================================================================
   Footer & barre sociale header
   ========================================================================== */
#sp-footer .container-inner { padding: 30px 0; border-top: 2px solid #F0B462; }
#sp-menu ul.social-icons a { color: #fff; }
#sp-menu ul.social-icons a:hover { color: #000; }


/* ==========================================================================
   SP Page Builder: hauteur min sections
   ========================================================================== */
.sp-page-builder .page-content [id^="section-id-"] { min-height: 100px !important; }


/* ==========================================================================
   Surlignage de texte (fond)
   ========================================================================== */
.cnfs-bg-text span {
  background: #f0b462; display: inline-block; margin-top: -1px; padding: 0 20px;
}
h1.cnfs-bg-text span {
  box-shadow: 20px 1px 0 2px #f0b462, 0 1px 0 2px #f0b462;
}


/* ==========================================================================
   Header (mobile)
   ========================================================================== */
#sp-header {
  height: 105px; width: 100%; position: relative; z-index: 99;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.1);
  animation: spFadeIn .5s;
}
@media (max-width: 991px) {
  #sp-header { padding-top: 26px !important; }
}