/* ==================================================
   HBC ALBI - CSS GLOBAL OPTIMISÉ
   Joomla 6 / Helix Ultimate
   Version organigramme cartes optimisée
================================================== */

:root {
  --hbca-green: #01795d;
  --hbca-green-2: #138c5d;
  --hbca-green-3: #31a187;
  --hbca-dark: #010100;
  --hbca-text: #222;
  --hbca-muted: #555;
  --hbca-light: #f6f8f7;
  --hbca-white: #fff;
  --hbca-radius: 18px;
  --hbca-radius-lg: 28px;
  --hbca-pill: 999px;
  --hbca-shadow: 0 8px 22px rgba(0,0,0,.12);
  --hbca-shadow-soft: 0 8px 24px rgba(0,0,0,.08);
  --hbca-shadow-hover: 0 15px 32px rgba(0,0,0,.20);
  --hbca-transition: .3s ease;
}

/* ==================================================
   BASE
================================================== */

#sp-main-body {
  padding-top: 0 !important;
}

a {
  transition: var(--hbca-transition);
}

.sp-module ul,
.mod-articles ul,
.mod-articles-news ul,
.mod-articles-category {
  list-style: none !important;
  padding-left: 0 !important;
}

.sp-module ul li,
.mod-articles li,
.mod-articles-news li,
.mod-articles-category li {
  list-style: none !important;
  padding-left: 0 !important;
}

.sp-module ul li::before,
.mod-articles li::before,
.mod-articles-news li::before,
.mod-articles-category li::before {
  display: none !important;
  content: none !important;
}

.btn-secondary,
.btn.btn-secondary,
a.btn-secondary {
  display: none !important;
}

/* ==================================================
   HEADER / MENU
================================================== */

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  font-size: 17px !important;
  font-weight: 700 !important;
}

.hbca-menu-title,
.hbca-menu-title a,
.sp-megamenu-parent .hbca-menu-title > a,
.sp-megamenu-parent .hbca-menu-title > span,
.sp-megamenu-parent .sp-dropdown li.parent > span,
.sp-megamenu-parent .sp-dropdown li.deeper > span {
  color: var(--hbca-green) !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
  text-transform: uppercase !important;
}

li.btn-inscription > a,
.btn-inscription a,
a.btn-inscription {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hbca-green-3), var(--hbca-green));
  color: var(--hbca-white) !important;
  border: 2px solid var(--hbca-white);
  border-radius: var(--hbca-radius);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

li.btn-inscription > a:hover,
.btn-inscription a:hover,
a.btn-inscription:hover {
  color: var(--hbca-white) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* ==================================================
   MEGA MENU
================================================== */

.sp-megamenu-parent > li.sp-has-child > .sp-dropdown {
  right: 0 !important;
  border: 0 !important;
  border-radius: var(--hbca-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 14px 35px rgba(0,0,0,.12) !important;
}

.sp-dropdown-inner {
  background: var(--hbca-white) !important;
  padding: 24px 36px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sp-megamenu-parent .sp-dropdown li a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > span {
  display: block !important;
  padding: 7px 0 !important;
  text-decoration: none !important;
}

.sp-megamenu-parent .sp-dropdown li a:hover {
  color: var(--hbca-green) !important;
  padding-left: 8px !important;
}

.sp-megamenu-parent .hbca-menu-title > a,
.sp-megamenu-parent .hbca-menu-title > span,
.sp-megamenu-parent .sp-dropdown li.parent > span,
.sp-megamenu-parent .sp-dropdown li.deeper > span {
  letter-spacing: 1px !important;
  border-bottom: 2px solid var(--hbca-green) !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
}

/* ==================================================
   TITRES DE PAGE
================================================== */

.sp-page-title,
.hbca-page-title {
  background: linear-gradient(135deg, var(--hbca-green), var(--hbca-green-2));
  text-align: center;
  color: var(--hbca-white);
}

.sp-page-title {
  padding: 25px 0 20px;
}

.hbca-page-title {
  padding: 16px 20px 14px;
}

.sp-page-title-heading,
.hbca-page-title h1 {
  color: var(--hbca-white) !important;
  font-size: 52px !important;
  font-weight: 900 !important;
  line-height: 1.1;
  margin: 0 !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,.25);
}

.sp-page-title-heading::after,
.hbca-page-title h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--hbca-white);
  margin: 12px auto 0;
  border-radius: 10px;
}

.sp-page-title-sub-heading,
.hbca-page-title p {
  color: rgba(255,255,255,.95) !important;
  font-size: 20px;
  font-weight: 500;
  margin: 8px 0 0;
}

.hbca-page-title p {
  font-style: italic;
}

#sp-title,
#sp-title .sp-module,
#sp-title .custom {
  display: block !important;
}

#sp-title .hbca-page-title,
#sp-title .sp-module-content {
  margin-bottom: 0 !important;
}

#sp-title .hbca-title-btn,
.hbca-page-title .hbca-title-btn,
a.hbca-title-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 20px !important;
  padding: 18px 46px !important;
  border-radius: var(--hbca-pill) !important;
  background: var(--hbca-white) !important;
  color: var(--hbca-green) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.25) !important;
  border: 3px solid rgba(255,255,255,.9) !important;
}

#sp-title .hbca-title-btn:hover,
.hbca-page-title .hbca-title-btn:hover,
a.hbca-title-btn:hover {
  transform: translateY(-3px) scale(1.04) !important;
  background: #f4f4f4 !important;
  color: var(--hbca-green) !important;
}

/* ==================================================
   COMPOSANTS COMMUNS
================================================== */

.hbca-card,
.view-category .blog-item,
body.view-category .blog-item,
body.view-category .item,
.hbca-team-card,
.hbca-partner-card {
  background: var(--hbca-white);
  border-radius: var(--hbca-radius);
  box-shadow: var(--hbca-shadow);
  overflow: hidden;
  transition: var(--hbca-transition);
}

.hbca-card:hover,
.view-category .blog-item:hover,
body.view-category .blog-item:hover,
body.view-category .item:hover,
.hbca-partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hbca-shadow-hover);
}

.hbca-btn,
.btn-toutes-actus a,
.actu a,
.hbca-partner-modal-content a,
.hbca-partner-modal-link {
  display: inline-block;
  background: var(--hbca-green);
  color: var(--hbca-white) !important;
  padding: 13px 28px;
  border-radius: var(--hbca-pill);
  font-weight: 800;
  text-decoration: none !important;
}

.hbca-btn:hover,
.btn-toutes-actus a:hover,
.actu a:hover,
.hbca-partner-modal-content a:hover,
.hbca-partner-modal-link:hover {
  background: var(--hbca-green-2);
  color: var(--hbca-white) !important;
}

/* ==================================================
   ACCUEIL - ACTUALITÉS MANUELLES
================================================== */

.actus-home {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.actu {
  width: calc(33.333% - 20px);
  background: var(--hbca-white);
  border-radius: var(--hbca-radius);
  overflow: hidden;
  box-shadow: var(--hbca-shadow);
  text-align: center;
  transition: var(--hbca-transition);
}

.actu:hover {
  transform: translateY(-6px);
}

.actu img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.actu h3 {
  padding: 15px;
  font-size: 22px;
}

/* ==================================================
   ACCUEIL - MODULE DERNIÈRES ACTUS
   Scope volontairement limité à .mod-articles-items
================================================== */

.mod-articles-items {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px !important;
  background: var(--hbca-green);
  border-radius: var(--hbca-radius-lg);
}

.mod-articles-items .mod-articles-item {
  height: 100%;
  background: var(--hbca-white);
  border-radius: var(--hbca-radius);
  box-shadow: var(--hbca-shadow);
  overflow: hidden;
  transition: var(--hbca-transition);
}

.mod-articles-items .mod-articles-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--hbca-shadow-hover);
}

.mod-articles-items .mod-articles-item img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  display: block;
  transition: .4s ease;
}

.mod-articles-items .mod-articles-item:hover img {
  transform: scale(1.04);
}

.mod-articles-items .mod-articles-title,
.mod-articles-items .mod-articles-item h3,
.mod-articles-items .mod-articles-item h4 {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 18px 12px !important;
  margin: 0 !important;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.mod-articles-items .mod-articles-item a {
  color: var(--hbca-text) !important;
  text-decoration: none !important;
}

.mod-articles-items .mod-articles-item:hover a,
.mod-articles-items .mod-articles-item:hover .mod-articles-title {
  color: var(--hbca-green) !important;
}

.btn-toutes-actus {
  text-align: center;
}

.btn-toutes-actus a {
  padding: 16px 36px;
  font-size: 20px;
}

/* ==================================================
   PAGE ACTUALITÉS
================================================== */

.view-category .blog-items,
body.view-category .blog-items,
body.view-category .items-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.view-category .hbca-article-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.view-category .hbca-article-card h2 {
  padding: 18px;
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
}

.view-category .hbca-article-card a {
  color: #0b4f2a;
  text-decoration: none;
}

/* ==================================================
   PAGE ORGANIGRAMME
   Modules Joomla natifs "Articles"
   Article = nom / texte = rôle + mail + téléphone / image intro = photo
================================================== */

.hbc-organigramme {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px !important;
    box-sizing: border-box;
}

/* Titres des sections */
.hbc-organigramme > h2 {
  margin: 52px 0 24px;
  color: var(--hbca-green);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.hbc-organigramme > h2:first-child {
  margin-top: 0;
}

/* Nettoyage Joomla / Helix dans la zone organigramme */
.hbc-organigramme .moduletable,
.hbc-organigramme .sp-module,
.hbc-organigramme .sp-module-content {
  margin: 0 !important;
  padding: 0 !important;
}

.hbc-organigramme .sp-module-title,
.hbc-organigramme .module-title,
.hbc-organigramme .moduletable > h3 {
  display: none !important;
}

/* Suppression des puces / points parasites */
.hbc-organigramme ul,
.hbc-organigramme ol,
.hbc-organigramme .mod-articles {
  list-style: none !important;
  list-style-type: none !important;
}

.hbc-organigramme li,
.hbc-organigramme .mod-articles > li {
  list-style: none !important;
  list-style-type: none !important;
}

.hbc-organigramme li::before,
.hbc-organigramme li::after,
.hbc-organigramme li::marker,
.hbc-organigramme ul li::before,
.hbc-organigramme ul li::after,
.hbc-organigramme ul li::marker,
.hbc-organigramme .mod-articles > li::before,
.hbc-organigramme .mod-articles > li::after,
.hbc-organigramme .mod-articles > li::marker {
  display: none !important;
  content: none !important;
}

/* Grille centrée : le fond vert épouse les cartes */
.hbc-organigramme .moduletable,
.hbc-organigramme .sp-module-content {
  text-align: center !important;
}

.hbc-organigramme .mod-articles {
  display: inline-flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 28px !important;

  width: auto !important;
  max-width: 100% !important;

  margin: 0 auto 58px !important;
  padding: 30px !important;

  background: var(--hbca-green) !important;
  border-radius: var(--hbca-radius-lg) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.hbc-organigramme .mod-articles > li {
    flex: 0 1 290px !important;
    max-width: 290px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Carte */
.hbc-organigramme .mod-articles-item {
  height: 100%;
  background: var(--hbca-white) !important;
  border-radius: var(--hbca-radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--hbca-shadow-soft);
  transition: var(--hbca-transition);
}

.hbc-organigramme .mod-articles-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--hbca-shadow-hover);
}

.hbc-organigramme .mod-articles-item-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

/* Cartes non cliquables */
.hbc-organigramme .mod-articles-item a,
.hbc-organigramme .mod-articles-title a,
.hbc-organigramme .article-intro-image a {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}

/* Photo : entière, non rognée */
.hbc-organigramme .article-intro-image {
  order: 1;
  float: none !important;
  width: 100% !important;
  height: 340px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--hbca-dark) !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.hbc-organigramme .article-intro-image a {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.hbc-organigramme .article-intro-image img,
.hbc-organigramme .mod-articles-item .article-intro-image img,
.hbc-organigramme .mod-articles-item figure.article-intro-image img {
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  max-height: 100% !important;

  object-fit: contain !important;
  object-position: center top !important;

  display: block !important;
  margin: 0 auto !important;
  background: var(--hbca-dark) !important;
  border-radius: 0 !important;
}

/* Nom */
.hbc-organigramme .mod-articles-title {
  order: 2;
  display: block !important;

  min-height: auto !important;
  margin: 0 !important;
  padding: 14px 18px 4px !important;

  color: var(--hbca-green) !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-transform: none !important;
}

.hbc-organigramme .mod-articles-title a,
.hbc-organigramme .mod-articles-title a:hover {
  color: var(--hbca-green) !important;
}

/* Infos sous la photo :
   ligne 1 = rôle
   ligne 2 = mail
   ligne 3 = téléphone
*/
.hbc-organigramme .mod-articles-item p {
  order: 3;
  margin: 0 !important;
  padding: 0 18px 18px !important;

  color: var(--hbca-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15 !important;
  text-align: center;
  white-space: normal !important;
}

.hbc-organigramme .mod-articles-item p br {
  display: block;
  content: "";
  margin-top: 2px;
}

.hbc-organigramme .mod-articles-item p:empty {
  display: none !important;
}

/* Compatibilité si un ancien module Legacy reste publié par erreur */
.hbc-organigramme .mod-articles-category {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 0 !important;
  margin: 0 0 42px !important;
  list-style: none !important;
}

.hbc-organigramme .mod-articles-category li {
  background: var(--hbca-white);
  border-radius: var(--hbca-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--hbca-shadow-soft);
  list-style: none !important;
}

/* Sécurité : évite tout débordement horizontal de l'organigramme */
.hbc-organigramme * {
  box-sizing: border-box;
}

/* ==================================================
   PAGE ÉQUIPE
================================================== */

.hbca-team-page {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.hbca-team-hero {
  min-height: 550px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 var(--hbca-radius-lg) var(--hbca-radius-lg);
  overflow: hidden;
  margin-bottom: 0;
}

.hbca-team-hero-overlay {
  min-height: 550px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.10));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px;
  color: var(--hbca-white);
}

.hbca-team-tag {
  display: inline-block;
  width: max-content;
  background: var(--hbca-green);
  color: var(--hbca-white);
  padding: 8px 16px;
  border-radius: var(--hbca-pill);
  font-weight: 900;
  text-transform: uppercase;
}

.hbca-team-hero h1 {
  color: var(--hbca-white);
  font-size: 58px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.hbca-team-hero p {
  color: #e9f5ef;
  font-size: 18px;
  margin-top: 10px;
}

.hbca-team-cards,
.hbca-contact-grid,
.hbca-collectifs-grid {
  display: grid;
  gap: 25px;
}

.hbca-team-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.hbca-contact-grid,
.hbca-collectifs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.hbca-team-card {
  padding: 32px;
  overflow: visible;
}

.hbca-team-card h2 {
  color: var(--hbca-green);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 25px;
}

.hbca-info-line {
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 0;
}

.hbca-info-line:last-child {
  border-bottom: none;
}

.hbca-info-line strong,
.hbca-contact-grid strong {
  display: block;
  color: var(--hbca-green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hbca-info-line span,
.hbca-contact-grid span {
  color: var(--hbca-dark);
  font-size: 20px;
}

.hbca-contact-card {
  margin: 0;
}

.hbca-contact-grid > div {
  padding: 12px 0;
}

.hbca-collectifs-grid {
  width: 100%;
  overflow-x: auto;
}

.hbca-collectif {
  background: var(--hbca-light);
  border-radius: var(--hbca-radius);
  padding: 20px;
}

.hbca-collectif h3 {
  color: var(--hbca-green);
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 18px;
}

.hbca-collectif .scorenco-widget,
.scorenco-widget,
.scorenco-widget iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 500px;
  box-sizing: border-box;
  margin-left: 0 !important;
  transform: none !important;
}

.hbca-team-card .scorenco-widget {
  border-radius: 14px;
  overflow: hidden;
}

/* ==================================================
   PAGE ÉQUIPES - SOMMAIRE
================================================== */

.hbca-equipes-page {
  max-width: 1300px;
  margin: 0 auto;
}

.hbca-equipes-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 35px 0;
}

.hbca-equipes-nav a {
  background: var(--hbca-green);
  color: var(--hbca-white) !important;
  padding: 14px 34px;
  border-radius: var(--hbca-pill);
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.hbca-equipes-nav a:hover {
  background: var(--hbca-green-2);
  transform: translateY(-2px);
}

.hbca-equipes-section {
  margin: 55px 0;
}

.hbca-equipes-section h2 {
  color: var(--hbca-green);
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hbca-equipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hbca-equipe-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  background: var(--hbca-white);
  border-radius: var(--hbca-radius);
  padding: 26px;
  text-decoration: none !important;
  box-shadow: var(--hbca-shadow);
  transition: var(--hbca-transition);
}

.hbca-equipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hbca-shadow-hover);
}

.hbca-equipe-card strong {
  color: var(--hbca-dark);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.hbca-equipe-card span {
  color: var(--hbca-green);
  font-weight: 800;
  margin-top: 18px;
}

/* ==================================================
   PAGE PARTENAIRES - BOUTONS
================================================== */

.hbca-partners-home {
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
}

.hbca-partner-buttons {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hbca-partner-buttons a,
.hbca-partner-main-btn {
  display: inline-block;
  background: var(--hbca-green);
  color: var(--hbca-white) !important;
  padding: 15px 34px;
  border-radius: var(--hbca-pill);
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: .25s ease;
}

.hbca-partner-main-btn {
  margin-top: 4px;
  margin-bottom: 45px;
  font-size: 20px;
}

.hbca-partner-main-btn:hover,
.hbca-partner-buttons a:hover {
  background: var(--hbca-green-2);
  transform: translateY(-3px);
}

/* ==================================================
   PAGES PARTENAIRES PRIVÉS / INSTITUTIONNELS
   Itemid 149 et 150
================================================== */

body.itemid-149 .article-list,
body.itemid-150 .article-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

body.itemid-149 .article-list > .row,
body.itemid-150 .article-list > .row {
  display: contents !important;
}

body.itemid-149 .article-list [class*="col-"],
body.itemid-150 .article-list [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: unset !important;
  padding: 0 !important;
}

body.itemid-149 .article-list article,
body.itemid-150 .article-list article {
  height: 260px !important;
  background: var(--hbca-white) !important;
  border-radius: var(--hbca-radius) !important;
  padding: 20px !important;
  text-align: center !important;
  box-shadow: var(--hbca-shadow) !important;
  overflow: hidden !important;
  transition: var(--hbca-transition) !important;
}

body.itemid-149 .article-list article:hover,
body.itemid-150 .article-list article:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--hbca-shadow-hover) !important;
}

body.itemid-149 .article-list article a,
body.itemid-150 .article-list article a {
  display: grid !important;
  grid-template-rows: 1fr 55px !important;
  height: 100% !important;
  width: 100% !important;
  color: var(--hbca-green) !important;
  text-decoration: none !important;
}

body.itemid-149 .article-list .article-intro-image,
body.itemid-149 .article-list .item-image,
body.itemid-149 .article-list figure,
body.itemid-150 .article-list .article-intro-image,
body.itemid-150 .article-list .item-image,
body.itemid-150 .article-list figure {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  background: var(--hbca-white) !important;
}

body.itemid-149 .article-list article img,
body.itemid-150 .article-list article img {
  max-width: 85% !important;
  max-height: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

body.itemid-149 .article-list article h2,
body.itemid-150 .article-list article h2,
body.itemid-149 .article-list article h3,
body.itemid-150 .article-list article h3 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 55px !important;
  min-height: 55px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: var(--hbca-green) !important;
}

body.itemid-149 .article-list article h2 a,
body.itemid-150 .article-list article h2 a,
body.itemid-149 .article-list article h3 a,
body.itemid-150 .article-list article h3 a {
  color: var(--hbca-green) !important;
  text-decoration: none !important;
}

body.itemid-149 .article-list .article-info,
body.itemid-150 .article-list .article-info,
body.itemid-149 .article-list .icons,
body.itemid-150 .article-list .icons,
body.itemid-149 .article-list .readmore,
body.itemid-150 .article-list .readmore,
body.itemid-149 .article-list .introtext,
body.itemid-150 .article-list .introtext {
  display: none !important;
}

/* ==================================================
   POPUP PARTENAIRE
================================================== */

.hbca-partner-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.hbca-partner-modal.active {
  display: flex;
}

.hbca-partner-modal-box {
  background: var(--hbca-white);
  max-width: 650px;
  width: 100%;
  border-radius: 24px;
  padding: 35px;
  text-align: center !important;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.hbca-partner-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 32px;
  border: 0;
  background: none;
  color: var(--hbca-green);
  cursor: pointer;
}

.hbca-partner-modal-logo {
  display: block !important;
  margin: 0 auto 22px !important;
  max-width: 260px !important;
  max-height: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.hbca-partner-modal-box h2 {
  color: var(--hbca-green);
  font-weight: 900;
  margin-bottom: 18px;
}

.hbca-partner-modal-content {
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  margin: 20px 0;
}

/* ==================================================
   IMAGE VSS
================================================== */

.signalement-box {
  text-align: center;
  margin: 0 auto;
}

.signalement-box img {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ==================================================
   FOOTER
================================================== */

#sp-footer a,
#sp-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#sp-footer a:hover,
#sp-bottom a:hover {
  opacity: .8;
}

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

@media (max-width: 1100px) {
  body.itemid-149 .article-list,
  body.itemid-150 .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .actus-home {
    flex-direction: column;
  }

  .actu {
    width: 100%;
  }

  .mod-articles-items,
  .view-category .blog-items,
  body.view-category .blog-items,
  body.view-category .items-row,
  .hbca-team-cards,
  .hbca-contact-grid,
  .hbca-collectifs-grid,
  .hbca-equipes-grid {
    grid-template-columns: 1fr !important;
  }

  .mod-articles-items .mod-articles-item img {
    height: 250px !important;
  }

  .sp-page-title-heading,
  .hbca-page-title h1 {
    font-size: 34px !important;
  }

  .sp-page-title-sub-heading,
  .hbca-page-title p {
    font-size: 17px;
  }

  .hbca-team-page {
    gap: 22px;
  }

  .hbca-team-card {
    padding: 24px;
  }

  .hbca-team-hero,
  .hbca-team-hero-overlay {
    min-height: 320px;
  }

  .hbca-team-hero-overlay,
  .hbca-partners-hero-overlay {
    padding: 28px;
  }

  .hbca-team-hero h1 {
    font-size: 36px;
  }

  .hbca-partners-hero h1 {
    font-size: 34px;
  }

  .hbca-partners-hero p {
    font-size: 17px;
  }

  .hbca-equipes-nav a {
    width: 100%;
    text-align: center;
  }

  .hbc-organigramme > h2 {
    font-size: 28px;
  }

  .hbc-organigramme .mod-articles {
    gap: 22px !important;
    padding: 16px !important;
  }

  .hbc-organigramme .mod-articles > li {
    flex-basis: 300px !important;
    max-width: 300px !important;
  }

  .hbc-organigramme .article-intro-image {
    height: 320px !important;
  }
}

@media (max-width: 700px) {
  body.itemid-149 .article-list,
  body.itemid-150 .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.itemid-149 .article-list article,
  body.itemid-150 .article-list article {
    height: 240px !important;
  }

  .hbca-partner-modal {
    align-items: flex-start !important;
    padding: 18px 14px !important;
    overflow-y: auto !important;
  }

  .hbca-partner-modal-box {
    max-height: calc(100vh - 36px) !important;
    overflow-y: auto !important;
    padding: 28px 22px !important;
    border-radius: 20px !important;
    margin: 18px auto !important;
  }

  .hbca-partner-modal-logo {
    max-width: 200px !important;
    max-height: 110px !important;
    margin-bottom: 16px !important;
  }

  .hbca-partner-modal-box h2 {
    font-size: 26px !important;
    margin-bottom: 14px !important;
  }

  .hbca-partner-modal-content {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 16px 0 !important;
  }

  .hbca-partner-modal-link {
    width: 100% !important;
    text-align: center !important;
    padding: 13px 18px !important;
  }

  .signalement-box img {
    width: 300px;
  }

  .hbc-organigramme .mod-articles {
    display: flex !important;
    width: 100% !important;
    gap: 20px !important;
    padding: 14px !important;
  }

  .hbc-organigramme .mod-articles > li {
    flex: 0 1 100% !important;
    max-width: 360px !important;
  }

  .hbc-organigramme .article-intro-image {
    height: 340px !important;
  }
}
/* ==================================================
   Labels
================================================== */
.labels-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.labels-list li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .labels-list {
    grid-template-columns: 1fr;
  }
}

