/* ==========================================================================
   Imports
   ========================================================================== */
@import url('blog.css');
@import url('menus.css');
@import url('dropfiles.css');
@import url('sp-portfolio.css');


/* ==========================================================================
   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;
}


/* ==========================================================================
   Carousel (SP Page Builder)
   ========================================================================== */
.sppb-carousel-inner > .sppb-item { padding: 30px 0; }
.sppb-carousel-indicators li,
.sppb-carousel-indicators .active {
  display: inline-block; width: 20px; height: 20px;
  margin: 0 5px; text-indent: -999px; border-radius: 50%;
  transition: .2s;
}
.sppb-carousel-indicators li {
  border: 2px solid #862436; background-color: #862436; cursor: pointer;
}
.sppb-carousel-indicators .active { background-color: #fff; }


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


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


/* ==========================================================================
   OSMap
   ========================================================================== */
.osmap-items ul li { white-space: normal; margin-right: 20px; }

/* Met en gras "Professions :" */
#osmap-li-uid-menuitem-557 > span.osmap-item-url { font-weight: 700; }

/* Sous-items de "Professions" */
#osmap-li-uid-menuitem-557 ~ li {
  list-style-type: square;
  margin-left: 1.2em; padding-left: 0.4em;
}
#osmap-li-uid-menuitem-557 ~ li::marker {
  font-size: .8em; padding-right: .2em;
}


/* ==========================================================================
   Liste d’articles – catégorie Dernières nouvelles
   ========================================================================== */
body.dernieres-nouvelles .article-list h2 { font-size: clamp(24px, 2.4vw, 38px) !important; }
.article-info > span { font-size: 1rem; }

.article-list .article {
  position: relative; margin-bottom: 50px; padding: 30px;
  border: 1px solid #eee; border-radius: 8px; background: #fafafa;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.article-list .article img {
  background-color: #fff; padding: 8px; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.article-list .article .read-time { display: none; }


/* ==========================================================================
   Menu principal (Helix)
   ========================================================================== */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  display: inline-block; padding: 0 15px; line-height: 24px;
  font-size: 16px; 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: 8px; padding-right: 0; 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; }
}