/* Custom overrides extracted from inline <style> in layout.
   Keep this file small and page-scoped when possible. */

/* S'assurer que les icônes utilisent bien la police FontAwesome du CDN */
.fa {
  font-family: "FontAwesome" !important;
}

/* Supprimer la petite icône/flèche cassée devant le menu Services */
nav.navbar.bootsnav ul.nav > li.dropdown > a::after {
  content: none !important;
}

/* Fallback: certains posts importés n'ont pas de <img> dans .thumb */
.blog-area .single-item .thumb > a:empty {
  display: block;
  min-height: 260px;
  background: url("/theme/WhatsApp-Image-2025-04-03-at-17.01.141_004.webp") center center / cover no-repeat;
}

/* Les emojis WordPress (ex: icône téléchargement) doivent rester inline */
img.emoji,
img.wp-smiley {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Conseil-fonctionnel: puces \f058 utilisent une police FA5 absente */
.works-about-items ul li::after,
.services-details-area .content ul li::after {
  font-family: "FontAwesome" !important;
  font-weight: normal !important;
}

/* Sidebar services: flèche active utilisait "Font Awesome 5 Pro" */
.services-details-area .sidebar-item.link li a.active::after {
  font-family: "FontAwesome" !important;
  font-weight: normal !important;
}

/* Conseil-sectoriel: remettre en forme le contenu Elementor importé */
.services-details-area .content .elementor-widget-text-editor {
  font-size: 16px;
  line-height: 1.8;
  color: #232323;
}

.services-details-area .content .elementor-widget-text-editor p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.services-details-area .content .elementor-widget-text-editor img {
  max-width: 100%;
  height: auto;
}

.services-details-area .content .elementor-widget-text-editor img.alignleft {
  float: left;
  width: 290px;
  max-width: 45%;
  margin: 0 20px 14px 0;
}

.services-details-area .content .elementor-widget-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
}

@media (max-width: 768px) {
  .services-details-area .content .elementor-widget-text-editor img.alignleft {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 0 0 12px 0;
  }
}

/* Mise en forme demandée pour la page conseil-sectoriel */
.page-conseil-sectoriel .services-details-area .content .elementor-widget-text-editor {
  font-size: 14px;
  line-height: 1.75;
}

.page-conseil-sectoriel .services-details-area .content .elementor-widget-text-editor p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.page-conseil-sectoriel .services-details-area .content .elementor-widget-text-editor img.alignleft {
  width: 170px;
  max-width: 170px;
  float: none;
  margin: 0 0 16px 0;
  display: block;
}

.page-conseil-sectoriel .services-details-area .content .elementor-widget-image img {
  width: 48%;
  max-width: 430px;
  margin: 14px 1%;
  display: inline-block;
  vertical-align: top;
}

.page-conseil-sectoriel .services-details-area .content .elementor-widget-image {
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .page-conseil-sectoriel .services-details-area .content .elementor-widget-image img {
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    display: block;
  }
}

/* Formation: affichage 3 cartes alignées comme la référence */
.page-formation .services-details-area .content [data-id="5c21dc8"] > .e-con-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.page-formation .services-details-area .content [data-id="5c21dc8"] .e-con.e-child {
  flex: 0 0 220px;
  max-width: 220px;
}

.page-formation .services-details-area .content [data-id="5c21dc8"] .elementor-widget-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.page-formation .services-details-area .content [data-id="5c21dc8"] .elementor-widget-button {
  margin-top: 10px;
  text-align: left;
}

.page-formation .services-details-area .content [data-id="5c21dc8"] .elementor-button {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 0;
  background: #5b2a86;
  color: #fff;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .page-formation .services-details-area .content [data-id="5c21dc8"] .e-con.e-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Services: hauteur homogène des cartes */
.page-services .services-area .services-carousel .item {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-services .services-area .services-items.services-carousel {
  max-width: 1140px;
  margin: 0 auto;
}

/* Assurer l'affichage même si Owl ne s'initialise pas */
.page-services .services-area .services-items.services-carousel.owl-carousel {
  display: block !important;
}

.page-services .services-area .services-carousel .owl-stage-outer {
  overflow: hidden;
}

.page-services .services-area .services-carousel .owl-nav {
  display: none !important;
}

.page-services .services-area .services-carousel .owl-dots {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  text-align: center !important;
  margin-top: 18px !important;
  width: 100%;
  display: block !important;
}

/* Ressources — article (single post) aligné sur le thème Tanda / WordPress */
.post-single-logo {
  max-height: 72px;
  width: auto;
  margin-bottom: 8px;
}

.post-single-tagline {
  font-size: 15px;
  margin-bottom: 18px;
}

.post-single-title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #232323;
  margin: 0 0 28px;
}

.post-single-thumb {
  position: relative;
  margin-bottom: 24px;
}

.post-single-thumb img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.post-date-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f8e1e8;
  color: #6b2d45;
  font-size: 13px;
  font-weight: 600;
}

.post-date-badge--solo {
  margin-top: 0;
}

.post-single-body {
  font-size: 16px;
  line-height: 1.85;
  color: #232323;
}

.post-single-body p {
  margin-bottom: 18px;
}

.post-single-body .has-text-align-right {
  text-align: right;
}

.post-single-body .has-text-align-right a {
  font-weight: 700;
  color: #4628a7;
}

/* Blocs Gutenberg (catalogues, etc.) */
.post-single-body .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.25rem 0 1.5rem;
  justify-content: flex-start;
}

.post-single-body .wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.post-single-body .wp-block-button__link,
.post-single-body .wp-block-file__button {
  display: inline-block;
  color: #fff !important;
  background-color: #32373c !important;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none !important;
  padding: 0.65em 1.35em;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.post-single-body .wp-block-button__link:hover,
.post-single-body .wp-block-file__button:hover {
  background-color: #1e1e1e !important;
  color: #fff !important;
}

.post-single-body ul.wp-block-list {
  margin: 0.5rem 0 1.25rem 1.15rem;
  padding-left: 0;
  list-style: disc;
}

.post-single-body ul.wp-block-list li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.post-pagi-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 36px;
}

.post-pagi-area > a {
  flex: 1 1 45%;
  max-width: 48%;
  color: #4628a7;
}

.post-pagi-area > a h5 {
  color: #1a2a3a;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.post-pagi-placeholder {
  flex: 1 1 45%;
  max-width: 48%;
}

.post-sidebar-search-wp .wp-block-search__inside-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-sidebar-search-wp .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #e2e2e2;
  padding: 10px 12px;
  border-radius: 4px;
}

.post-sidebar-search-wp .wp-block-search__button {
  background: #4628a7;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.sidebar .wp-block-heading {
  font-size: 18px;
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 3px solid #4628a7;
  color: #1a2a3a;
}

.sidebar .wp-block-latest-posts__list li,
.sidebar .wp-block-archives-list li {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.sidebar .wp-block-categories-list .post_count {
  float: right;
  background: #f3f3f3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.sidebar .tagcloud .tag-cloud-link {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  font-size: 13px;
  color: #4628a7;
}

@media (max-width: 767px) {
  .post-pagi-area > a,
  .post-pagi-placeholder {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Détail formation (contenu long + inscription) */
.formation-show-main {
  background: #fff;
  padding: 28px 32px 36px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.formation-show-thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
}

.formation-show-excerpt {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.formation-lead-tags {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.formation-detail-body {
  font-size: 15px;
  line-height: 1.8;
  color: #232323;
}

.formation-detail-body p {
  margin-bottom: 16px;
}

.formation-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a2a3a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4628a7;
}

.formation-module-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d4a;
  margin: 22px 0 10px;
  line-height: 1.35;
}

.formation-detail-body .formation-section-title:first-child {
  margin-top: 0;
}

.formation-list,
.formation-modules {
  margin: 0 0 18px 1.1rem;
  padding-left: 0;
  list-style: disc;
}

.formation-list li,
.formation-modules li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.formation-practical {
  margin: 24px 0 18px;
  padding: 16px 18px;
  background: #f8f6fc;
  border-radius: 6px;
  border-left: 4px solid #4628a7;
}

.formation-practical p {
  margin-bottom: 8px;
}

.formation-practical p:last-child {
  margin-bottom: 0;
}

.formation-footer-note {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-top: 8px;
}

.formation-enroll-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

.formation-enroll-btn {
  font-weight: 700;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.formation-enroll-hint {
  margin-top: 10px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .formation-show-main {
    padding: 18px 16px 24px;
  }
}
