/*
Theme Name: Businext Child
Theme URI: http://businext.thememove.com/
Author: ThemeMove
Author URI: http://thememove.com/
Version: 1.0.0
Template: businext
Text Domain:  businext
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

/* ======================================
   Variables
====================================== */
:root {
  --couleur-jaune-jc: #e5d290;
  --couleur-rouge-jc: #bd211d;
}

/* Compatibilite Businext et WPBakery 9 : force la police Font Awesome 6
 * pour les composants d'icones du theme. */
.tm-icon .icon > .fa,
.vc_tta-icon.fa {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* ======================================
   Utilitaires
====================================== */
.texte-rouge {
  color: var(--couleur-rouge-jc);
}

.texte-justifie {
  text-align: justify !important;
}

.titres-listes .title {
  font-weight: normal !important;
}

/* Curseur sur les elements cliquables */
a[href],
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.menu a,
.tm-button,
.wpcf7-submit {
  cursor: pointer !important;
}

/* ======================================
   Header principal
====================================== */
.fl-header-bar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 80px;
  padding: 0 16px;
  text-align: center;
  background-color: var(--couleur-jaune-jc);
}

.fl-header-text-1 {
  margin-right: 30px;
}

.fl-header-text-2 {
  margin-left: 30px;
}

.fl-header-text-1,
.fl-header-text-2 {
  font-size: 2.2rem;
  white-space: nowrap;
  color: var(--couleur-rouge-jc);
}

.fl-header-logo {
  position: relative;
  z-index: 2;
}

.fl-header-logo img {
  width: 100px;
  margin: auto;
  transform: translateY(52px); /* descend le logo sans modifier la hauteur */
}

/* Etat menu mobile ouvert */
body.mobile-menu #page-header-inner {
  background-color: var(--couleur-jaune-jc);
}

/* Header responsive */
@media (max-width: 1199px) {
  .fl-header-text-1,
  .fl-header-text-2 {
    font-size: 1.8rem;
  }

  .fl-header-text-1 {
    margin-right: 20px;
  }

  .fl-header-text-2 {
    margin-left: 20px;
  }

  .fl-header-logo img {
    width: 86px;
    transform: translateY(28px);
  }
}

@media (max-width: 991px) {
  .fl-header-bar-logo {
    min-height: 68px;
    padding: 0 10px;
  }

  .fl-header-text-1,
  .fl-header-text-2 {
    font-size: 1.2rem;
    white-space: normal;
    line-height: 1.1;
    transform: translateY(4px);
  }

  .fl-header-text-1 {
    margin-right: 10px;
  }

  .fl-header-text-2 {
    margin-left: 10px;
  }

  .fl-header-logo img {
    width: 62px;
    transform: translateY(8px);
  }
}

@media (max-width: 575px) {
  .fl-header-bar-logo {
    min-height: 60px;
    padding: 0 8px;
  }

  .fl-header-text-1,
  .fl-header-text-2 {
    font-size: 0.95rem;
  }

  .fl-header-text-1 {
    margin-right: 6px;
  }

  .fl-header-text-2 {
    margin-left: 6px;
  }

  .fl-header-logo img {
    width: 52px;
    transform: translateY(4px);
  }
}

/* ======================================
   Navigation (menus)
====================================== */
ul.sub-menu.mega-menu {
  margin-top: -1px !important;
}

.mega-menu-content .widgettitle {
  font-size: 16px !important;
  text-transform: none !important;
}

.mega-menu-content .menu-item-title {
  font-size: 13px !important;
  font-weight: normal !important;
  color: grey !important;
}

/* Sous-menus: mettre en valeur l'item correspondant a la page courante */
.header-03 .menu--primary .sub-menu li.current-menu-item > a,
.header-03 .menu--primary .sub-menu li.current-menu-ancestor > a,
.header-03 .menu--primary .sub-menu li.current-menu-parent > a,
.header-03 .mega-menu-content .menu li.current-menu-item > a,
.header-03 .mega-menu-content .menu li.current-menu-ancestor > a,
.header-03 .mega-menu-content .menu li.current-menu-parent > a {
  color: var(--couleur-rouge-jc) !important;
}

.header-03 .menu--primary .sub-menu li.current-menu-item > a .menu-item-title,
.header-03 .menu--primary .sub-menu li.current-menu-ancestor > a .menu-item-title,
.header-03 .menu--primary .sub-menu li.current-menu-parent > a .menu-item-title,
.header-03 .mega-menu-content .menu li.current-menu-item > a .menu-item-title,
.header-03 .mega-menu-content .menu li.current-menu-ancestor > a .menu-item-title,
.header-03 .mega-menu-content .menu li.current-menu-parent > a .menu-item-title {
  color: var(--couleur-rouge-jc) !important;
  font-weight: 600 !important;
}

/* Top Bar search */
.top-bar-07 #menu-menu-top-bar > .jc-top-bar-search {
  display: none;
}

body.jc-search-desktop .top-bar-07 #menu-menu-top-bar > .jc-top-bar-search {
  display: inline-flex;
  align-items: center;
}

.top-bar-07 .jc-top-bar-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.top-bar-07 .jc-top-bar-search button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

body.jc-search-desktop #page-header .header-right #btn-open-popup-search {
  display: none !important;
}

#page-header .header-right #btn-open-popup-search:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Use Businext's search form in a compact panel below the active icon. */
html.jc-compact-search-open,
body.popup-search-opened {
  overflow: auto !important;
}

body.popup-search-opened {
  width: auto;
  height: auto;
}

#page-popup-search {
  box-sizing: border-box;
  top: var(--jc-search-top, 56px);
  left: var(--jc-search-left, 12px);
  width: min(380px, calc(100vw - 24px));
  height: auto;
  padding: 16px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  text-align: left;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

body.popup-search-opened #page-popup-search {
  pointer-events: auto;
}

#page-popup-search .page-popup-search-inner,
body.popup-search-opened #page-popup-search .page-popup-search-inner {
  position: static;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  transform: none;
}

#page-popup-search .popup-search-close {
  top: 4px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 23px;
  line-height: 1;
}

#page-popup-search .popup-search-close i {
  line-height: 1;
}

#page-popup-search .search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}

#page-popup-search .search-form label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

#page-popup-search .search-field,
body.popup-search-opened #page-popup-search .search-field {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #d7d7d7 !important;
  border-radius: 3px;
  background: #fff !important;
  color: #333 !important;
  font: inherit;
  font-size: 14px;
  transform: none;
}

#page-popup-search .search-field::placeholder {
  color: #777 !important;
  font-size: 14px;
  opacity: 1;
}

#page-popup-search .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--couleur-rouge-jc) !important;
  color: #fff !important;
  font-size: 18px;
  cursor: pointer;
}

#page-popup-search .search-submit .search-btn-text,
#page-popup-search .form-description {
  display: none;
}

#page-popup-search .search-field:focus-visible,
#page-popup-search .search-submit:focus-visible,
#page-popup-search .popup-search-close:focus-visible {
  outline: 2px solid var(--couleur-rouge-jc);
  outline-offset: 2px;
}

/* Top bar social */
.top-bar-social-network i {
  display: none;
}

.top-bar-social-network a {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  margin-right: 20px;
}

.top-bar-social-network a[data-hover="Facebook"] {
  background-image: url('/wp-content/uploads/icone_facebook.svg');
}

.top-bar-social-network a[data-hover="Instagram"] {
  background-image: url('/wp-content/uploads/icone_instagram.svg');
}

/* L'unique lien « Réseaux sociaux » du menu de Top Bar. */
@media (min-width: 992px) {
  #menu-menu-top-bar #menu-item-22039 > a .top-bar-social-page-icons {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1;
  }

  #menu-menu-top-bar #menu-item-22039 > a .top-bar-social-page-icons i + i {
    margin-left: 7px;
  }
}


/* Top Bar mobile : mêmes liens, présentés sur une seule ligne. */
@media (max-width: 991px) {
  .page-top-bar.top-bar-07 {
    display: block;
    background: #fff;
    color: var(--couleur-rouge-jc);
  }

  .top-bar-07 .container-fluid { padding: 0 7px; }
  .top-bar-07 .row { margin: 0; }
  .top-bar-07 .col-md-12 { padding: 0; }
  .top-bar-07 .top-bar-wrap {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 6px;
    white-space: nowrap;
  }
  .top-bar-07 .top-bar-left { flex: 0 0 auto; }
  .top-bar-07 .top-bar-info { display: flex; align-items: center; }
  .top-bar-07 .top-bar-info .info-item {
    padding: 0;
    margin: 0;
  }
  .top-bar-07 .top-bar-info .info-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 42px;
  }
  .top-bar-07 .top-bar-info .info-icon {
    margin: 0;
    font-size: 18px;
  }
  .top-bar-07 .top-bar-info .info-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .top-bar-07 .top-bar-right { flex: 1 1 auto; min-width: 0; }
  .top-bar-07 #menu-menu-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    white-space: nowrap;
  }
  .top-bar-07 #menu-menu-top-bar > li {
    display: flex;
    align-items: center;
    margin: 0;
  }
  .top-bar-07 #menu-menu-top-bar > #menu-item-20500::before,
  .top-bar-07 #menu-menu-top-bar > #menu-item-22039::before {
    content: "-";
    flex: 0 0 auto;
    margin: 0 6px;
    color: var(--couleur-rouge-jc);
    opacity: .55;
    font-size: 11px;
    line-height: 1;
  }
  .top-bar-07 #menu-menu-top-bar > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 2px;
    color: var(--couleur-rouge-jc);
    font-size: clamp(11px, 3.3vw, 13px);
    line-height: 1;
    white-space: nowrap;
  }
  .top-bar-07 #menu-item-20500 .top-bar-news-prefix { display: none; }
  .top-bar-07 #menu-item-20500 > a { text-transform: capitalize; }
  .top-bar-07 #menu-menu-top-bar #menu-item-22039 > a .top-bar-social-page-icons {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
  }
  .top-bar-07 #menu-menu-top-bar #menu-item-22039 > a .top-bar-social-page-icons i + i {
    margin-left: 6px;
  }
}

/* ======================================
   Title bar
====================================== */
.page-breadcrumb {
  visibility: hidden;
}

.page-title-bar-heading {
  opacity: 0;
  transform: translateY(100px);
  animation: slideUpTitle 1s ease forwards;
}

@keyframes slideUpTitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo_enseignement_catholique {
  width: 200px;
  margin: auto;
}

/* ======================================
   Layout global des pages
====================================== */
.page .page-content {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.home .page-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page .site-content,
.page .page-content,
#main {
  min-height: 700px;
}

/* ======================================
   Footer
====================================== */
.fl-logo-footer {
  width: 200px;
  margin: auto;
}

/* ======================================
   Articles (single post)
====================================== */
.single-post .entry-content a {
  color: #0066cc !important;
  text-decoration: underline !important;
}

.single-post .entry-content a:visited {
  color: #663399 !important;
}

.single-post .entry-content a:hover {
  color: #004999 !important;
  text-decoration: underline;
}

.single-post .nav-previous a {
  color: var(--couleur-rouge-jc) !important;
}

.single-post .nav-next a {
  color: var(--couleur-rouge-jc) !important;
}

.single-post .wp-block-gallery {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Imported photo runs only: retain the original image and link markup. */
.single-post .entry-content .jc-migrated-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 920px;
  margin: 1.5em auto;
}

.single-post .entry-content .jc-migrated-gallery > a {
  display: flex;
  flex: 0 1 calc((100% - 20px) / 3);
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.single-post .entry-content .jc-migrated-gallery > a > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
}

@media (max-width: 767px) {
  .single-post .entry-content .jc-migrated-gallery > a {
    flex-basis: calc((100% - 10px) / 2);
  }
}

/* ======================================
   Page d'accueil
====================================== */
.fl-page-accueil .tm-blog .post-categories a,
.fl-page-accueil .tm-blog .post-categories .jc-category-label {
  color: var(--couleur-rouge-jc);
}

.fl-page-accueil .post-item-wrap {
  border: 3px solid white !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  padding: 16px !important;
  min-height: 485px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

.fl-page-accueil .post-item-wrap:hover {
  border: 3px solid var(--couleur-jaune-jc) !important;
}

.fl-page-accueil .post-item-wrap .post-date {
  display: none !important;
}

/* ======================================
   Page d'actualites generales
====================================== */
.fl-actualites-generales .post-title a {
  color: var(--couleur-rouge-jc) !important;
}

.fl-actualites-generales .post-title a:hover {
  color: var(--couleur-rouge-jc) !important;
}

.fl-actualites-generales .post-item-wrap {
  border: 1px solid lightgrey !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  padding: 16px !important;
  min-height: 485px !important;
  max-height: 486px !important;
}

.fl-actualites-generales .post-item-wrap .post-date {
  display: none !important;
}

/* ======================================
   Page nous contacter
====================================== */
.fl-nous-contacter .vc_tta-icon {
  font-size: 1.3em !important;
  position: relative !important;
  top: -4px !important;
}

.fl-nous-contacter-formulaire {
  width: 50% !important;
  margin: auto !important;
}

.fl-nous-contacter-formulaire input[type="text"],
.fl-nous-contacter-formulaire input[type="email"],
.fl-nous-contacter-formulaire textarea {
  color: grey !important;
}

.fl-nous-contacter-formulaire input[type="text"],
.fl-nous-contacter-formulaire input[type="email"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 40px !important;
}

.fl-nous-contacter-formulaire .wpcf7-submit {
  background-color: var(--couleur-jaune-jc) !important;
  border-color: var(--couleur-jaune-jc) !important;
  color: var(--couleur-rouge-jc) !important;
  padding: 0 !important;
  height: 40px !important;
  width: 100px !important;
  margin: auto !important;
  line-height: normal !important;
}

.fl-nous-contacter-formulaire .wpcf7-submit:hover {
  background-color: white !important;
}

/* ======================================
   Page inscription college
====================================== */
.fl-page-inscription-college .fl-bouton-fichier .button-text {
  margin-left: 10px !important;
}

/* ======================================
   Page tarifs
====================================== */
.fl-page-tarifs .fl-card-scolarite .menu-list .menu-item:first-child {
  font-weight: bold !important;
  color: grey !important;
  text-align: center;
}

.fl-page-tarifs .fl-card-autre .heading {
  font-size: 1.2rem !important;
}

.fl-page-tarifs .fl-card-internat .menu-list .menu-item:first-child {
  font-weight: bold !important;
  color: grey !important;
  text-align: center;
}

.fl-page-tarifs .fl-card-internat .heading {
  font-size: 1.2rem !important;
}

.fl-page-tarifs .vc_tta-icon {
  position: relative !important;
  top: -3px !important;
}




.fl-pastorale-generale .fl-raw-image {
  height: 400px !important;
}

/* ======================================
   Icônes langues college
====================================== */
.icone_langues_college_1 .icon {
  background-color: white !important;
}

.icone_langues_college_1 .icon span {
  color: #e5d290 !important;
  font-size: 100px !important;
}

/* ======================================
   Page orientation college
====================================== */
.page_orientation_college .content-body {
  text-align: center !important;
}

.page_orientation_college .text {
  text-align: left !important;
}

.page_orientation_college .photo img {
  max-width: 150px !important;
  margin: auto !important;
}

/* ======================================
   Page Title Bar (global)
====================================== */
.page #page-title-bar .page-title-bar-inner {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  aspect-ratio: var(--ptb-auto-ratio, 2000 / 650) !important;
  background-size: 100% auto !important; /* pleine largeur, image non tronquee */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
}

.page #page-title-bar .page-title-bar-inner > .container {
  width: 100%;
}

/* Exemple d'override page par page:
.page-id-45 #page-title-bar .page-title-bar-inner {
  --ptb-auto-ratio: 1920 / 900;
}
*/


/* ======================================
   Harmonisation Blog: Ecole + College
   Meme style que la page d'accueil
====================================== */
.page-id-327 .tm-blog .post-categories a,
.page-id-383 .tm-blog .post-categories a,
.page-id-327 .tm-blog .post-categories .jc-category-label,
.page-id-383 .tm-blog .post-categories .jc-category-label {
  color: var(--couleur-rouge-jc) !important;
}

.page-id-327 .tm-blog .post-title a,
.page-id-383 .tm-blog .post-title a {
  color: inherit !important;
}

.page-id-327 .tm-blog .post-title a:hover,
.page-id-383 .tm-blog .post-title a:hover {
  color: var(--couleur-rouge-jc) !important;
}

.page-id-327 .tm-blog .post-item-wrap,
.page-id-383 .tm-blog .post-item-wrap {
  border: 3px solid white !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  padding: 16px !important;
  min-height: 485px !important;
  max-height: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

.page-id-327 .tm-blog .post-item-wrap:hover,
.page-id-383 .tm-blog .post-item-wrap:hover {
  border: 3px solid var(--couleur-jaune-jc) !important;
}

.page-id-327 .tm-blog .post-item-wrap .post-date,
.page-id-383 .tm-blog .post-item-wrap .post-date {
  display: none !important;
}
/* ======================================
   Lazy YouTube Player (load on click)
====================================== */
.lazy-yt {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.lazy-yt-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.lazy-yt-play {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
}

.lazy-yt iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ======================================
   Lazy YouTube Poster overlay
====================================== */
.lazy-yt {
  background-size: cover;
  background-position: center;
}

.lazy-yt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.lazy-yt .lazy-yt-inner {
  position: relative;
  z-index: 1;
}

.lazy-yt[data-loaded="1"]::after {
  display: none;
}

/* Onglets de la page Nous soutenir : couleurs uniquement. */
.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-tab > .vc_tta-panel-title > a {
  background-color: #f4f4f4 !important;
  color: var(--couleur-rouge-jc) !important;
}

.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-tab.vc_active > .vc_tta-panel-title > a {
  background-color: var(--couleur-rouge-jc) !important;
  color: #fff !important;
}

.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-tab:not(.vc_active):hover > .vc_tta-panel-title > a {
  background-color: #ebebeb !important;
  color: var(--couleur-rouge-jc) !important;
}

.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-panel > .vc_tta-panel-heading {
  background-color: #f4f4f4 !important;
  color: var(--couleur-rouge-jc) !important;
}

.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-panel.vc_active > .vc_tta-panel-heading {
  background-color: var(--couleur-rouge-jc) !important;
  color: #fff !important;
}

.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-panel:not(.vc_active) > .vc_tta-panel-heading:hover {
  background-color: #ebebeb !important;
  color: var(--couleur-rouge-jc) !important;
}

.wpb-js-composer .vc_tta.vc_general.vc_tta-style-businext-01.onglets-soutien .vc_tta-panel > .vc_tta-panel-heading a {
  color: inherit !important;
}


/* ======================================
   Page réseaux sociaux
====================================== */

.logo-reseau img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.fl-actualites-generales .post-item-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.fl-actualites-generales .post-item-wrap > .post-info {
  min-height: 0;
  overflow: hidden;
}

.fl-page-accueil .post-item-wrap{outline:1px solid lightgrey;outline-offset:-1px}.fl-page-accueil .post-item-wrap:hover{outline-color:var(--couleur-jaune-jc)}

.single-post .entry-header > .entry-title {
	  color: var(--couleur-rouge-jc);

}

.single-post .entry-banner p.entry-title {
  font-weight: 700;
}

.single-post .entry-content > .jc-article-title {
  color: var(--couleur-rouge-jc);
}

.single-post .jc-article-return {
  font-size: 14px;
  line-height: 1.4;
}

.single-post .jc-article-return--top {
  position: relative;
  top: -60px;
  margin-bottom: 8px;
}

.single-post .jc-article-return--bottom {
  margin-top: 16px;
}

.single-post .jc-article-return a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--couleur-rouge-jc);
  text-decoration: none;
}

.single-post .jc-article-return a:hover,
.single-post .jc-article-return a:focus-visible {
  text-decoration: underline;
}

/* The bottom link sits inside .entry-content, whose generic links are blue. */
.single-post .entry-content .jc-article-return a {
  color: var(--couleur-rouge-jc) !important;
  text-decoration: none !important;
}

.single-post .entry-content .jc-article-return a:hover,
.single-post .entry-content .jc-article-return a:focus-visible {
  color: var(--couleur-rouge-jc) !important;
  text-decoration: underline !important;
}

/* Compact 404 page, using the normal site header and footer. */
body.error404 #page-content.jc-404-page {
  padding: 40px 0 92px;
  background: #fff;
}

@media (min-width: 1025px) {
  body.error404 #page-content.jc-404-page {
    padding-bottom: 160px;
  }
}

body.error404 .jc-404-content {
  box-sizing: border-box;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

body.error404 .jc-404-content h1 {
  margin: 0 0 14px;
  color: var(--couleur-rouge-jc);
  font-size: 28px;
  line-height: 1.3;
}

body.error404 .jc-404-content p {
  margin: 0 0 22px;
}

body.error404 .jc-404-home {
  display: inline-block;
  margin-bottom: 0;
  padding: 10px 18px;
  border-radius: 3px;
  background: var(--couleur-rouge-jc);
  color: #fff;
  text-decoration: none;
}

body.error404 .jc-404-home:hover,
body.error404 .jc-404-home:focus-visible {
  color: #fff;
  background: #9e1b1f;
}

body.error404 .jc-404-home:focus-visible {
  outline: 2px solid var(--couleur-rouge-jc);
  outline-offset: 3px;
}

/* Category archives: retain Businext's post loop and WordPress pagination. */
body.category .no-results.not-found {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px 90px;
  text-align: center;
}

body.category .no-results.not-found .page-title {
  margin: 0 0 14px;
  color: var(--couleur-rouge-jc);
}

body.category .no-results.not-found p {
  margin: 0;
}

body.category .no-results.not-found .search-form {
  display: none;
}

body.category #page-title-bar {
  background: #fff !important;
}

body.category #page-title-bar .page-title-bar-overlay,
body.category #page-breadcrumb {
  display: none;
}

body.category #page-title-bar .page-title-bar-inner {
  padding: 36px 0 12px;
  background: #fff;
}

body.category #page-title-bar .heading {
  color: var(--couleur-rouge-jc);
  font-size: 28px;
  line-height: 1.3;
}

body.category #page-content {
  padding: 24px 0 56px;
}

body.category .page-main-content {
  float: none;
  width: 100%;
}

body.category .page-sidebar {
  display: none;
}

body.category .tm-blog.style-list .tm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 30px;
}

body.category .tm-blog.style-list .post-item {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid lightgrey;
  border-radius: 10px;
}

body.category .tm-blog.style-list .post-feature {
  height: 208px;
  margin: 0 0 16px;
  overflow: hidden;
}

body.category .tm-blog.style-list .post-feature a,
body.category .tm-blog.style-list .post-feature img {
  display: block;
  width: 100%;
  height: 100%;
}

body.category .tm-blog.style-list .post-feature img {
  object-fit: cover;
}

body.category .tm-blog.style-list .post-author-meta,
body.category .tm-blog.style-list .post-date,
body.category .tm-blog.style-list .post-read-more {
  display: none;
}

body.category .tm-blog.style-list .post-categories a,
body.category .tm-blog.style-list .post-title a {
  color: var(--couleur-rouge-jc);
}

body.category .tm-blog.style-list .post-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

body.category .tm-blog.style-list .post-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  line-height: 1.5;
}

body.category .tm-blog.style-list .post-excerpt p {
  margin: 0;
}

@media (max-width: 1024px) {
  body.category .tm-blog.style-list .tm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.category .tm-blog.style-list .tm-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* Search results only: compact list using Businext's native query and pagination. */
body.search #page-content.jc-search-page {
  padding: 36px 0 50px;
}

body.search .jc-search-page .page-main-content {
  float: none;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

body.search .jc-search-page-title {
  margin: 0 0 18px;
  color: var(--couleur-rouge-jc);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

body.search .jc-search-page .jc-search-empty {
  padding: 0 0 80px;
}

body.search .jc-search-page .jc-search-empty p {
  margin: 0;
}

body.search .jc-search-page .search-page-search-form {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

body.search .jc-search-page .search-form {
  display: flex;
  gap: 8px;
}

body.search .jc-search-page .search-form label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

body.search .jc-search-page .search-field {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 14px;
}

body.search .jc-search-page .page-main-content .search-form .search-submit {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--couleur-rouge-jc);
  color: #fff;
  font-size: 18px;
  transform: none;
}

body.search .jc-search-page .page-main-content .search-form .search-submit .search-btn-text {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.search .jc-search-page .search-field:focus-visible,
body.search .jc-search-page .search-submit:focus-visible {
  outline: 2px solid var(--couleur-rouge-jc);
  outline-offset: 2px;
}

body.search .jc-search-page .tm-blog.style-list .post-item {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #e7e7e7;
}

body.search .jc-search-page .tm-blog.style-list .post-feature,
body.search .jc-search-page .tm-blog.style-list .post-meta,
body.search .jc-search-page .tm-blog.style-list .post-date,
body.search .jc-search-page .tm-blog.style-list .post-read-more {
  display: none;
}

body.search .jc-search-page .tm-blog.style-list .post-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

body.search .jc-search-page .tm-blog.style-list .post-title a {
  color: #333;
  cursor: pointer;
  transition: color 180ms ease;
}

body.search .jc-search-page .tm-blog.style-list .post-title a:hover,
body.search .jc-search-page .tm-blog.style-list .post-title a:focus-visible {
  color: #BE2026;
}

body.search .jc-search-page .tm-blog.style-list .post-title a:focus-visible {
  outline: 2px solid #BE2026;
  outline-offset: 2px;
}

body.search .jc-search-page .tm-blog.style-list .post-excerpt {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.45;
}

body.search .jc-search-page .tm-blog.style-list .post-excerpt p {
  margin: 0;
}

body.search .jc-search-page .page-pagination {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

body.search .jc-search-page .page-pagination li a,
body.search .jc-search-page .page-pagination li span {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-width: 1px;
  line-height: 32px;
}

@media (max-width: 767px) {
  body.search #page-content.jc-search-page {
    padding: 24px 0 36px;
  }

  body.search .jc-search-page .jc-search-empty {
    padding-bottom: 64px;
  }

  body.search .jc-search-page-title {
    font-size: 21px;
  }
}
