/* MP-Orthopedie : uniformisation cartes services */
.mp-service-card { display: flex !important; flex-direction: column !important; height: 100% !important; overflow: hidden !important; }
.mp-service-card .wp-block-jetpack-slideshow { margin: 0 !important; border-radius: 12px 12px 0 0 !important; overflow: hidden !important; }
.mp-service-slideshow { --aspect-ratio: calc(1 / 1) !important; }
.mp-service-card .mp-card-body { flex: 1 !important; display: flex !important; flex-direction: column !important; }
.mp-service-card .mp-card-body p:last-child { margin-top: auto !important; }

/* MP-Orthopedie : masquer les titres de page (ACCUEIL etc.) */
.ast-archive-title,
.entry-header,
.page-title,
.ast-single-post-title-wrapper,
.ast-single-post .entry-header,
.ast-page-builder-template .entry-header,
body.page .entry-header,
body.home .entry-header,
body .entry-header.ast-no-thumbnail,
.ast-archive-description,
h1.entry-title,
.page h1.entry-title,
.single h1.entry-title { 
  display: none !important; 
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Masquer les breadcrumbs Astra s'il y en a */
.ast-breadcrumbs, .breadcrumb-container { display: none !important; }
/* MP-Orthopedie : mosaique fiches PDF */
.mp-pdf-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.mp-pdf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 82, 118, 0.12);
}
.mp-pdf-card .mp-pdf-preview {
  background: #F4F6F8;
}
.mp-pdf-card .mp-pdf-preview object {
  border: none;
  display: block;
}
.mp-pdf-card .wp-block-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mp-pdf-card h4 {
  text-align: center !important;
}
/* Responsive pour la mosaique */
@media (max-width: 900px) {
  .mp-pdf-card .mp-pdf-preview { aspect-ratio: 3/4; }
}
/* Agrandir le logo dans le header */
.site-logo-img img,
.custom-logo-link img,
.ast-site-identity .custom-logo-link img { 
  max-height: 120px !important; 
  width: auto !important;
  height: auto !important;
}
@media (max-width: 921px) {
  .site-logo-img img,
  .custom-logo-link img { max-height: 90px !important; }
}
/* MP-Orthopedie : logo grand + texte site a cote */
.site-logo-img img,
.custom-logo-link img,
.ast-site-identity .custom-logo-link img { 
  max-height: 160px !important; 
  width: auto !important;
  height: auto !important;
}
@media (max-width: 921px) {
  .site-logo-img img,
  .custom-logo-link img { max-height: 120px !important; }
}
@media (max-width: 544px) {
  .site-logo-img img,
  .custom-logo-link img { max-height: 90px !important; }
}

/* Affichage du nom MP-Orthopedie a cote du logo */
.ast-site-identity .site-title,
.site-branding .site-title {
  display: block !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1A5276 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}
.ast-site-identity .site-title a,
.site-branding .site-title a {
  color: #1A5276 !important;
  text-decoration: none !important;
}
/* Masquer la tagline si elle apparait */
.ast-site-identity .site-description,
.site-branding .site-description { display: none !important; }

/* Alignement vertical logo + texte */
.ast-site-identity,
.site-branding {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
@media (max-width: 544px) {
  .ast-site-identity .site-title,
  .site-branding .site-title { font-size: 18px !important; }
  .ast-site-identity, .site-branding { gap: 0 !important; }
}
/* MP-Orthopedie : rapprocher logo et texte */
.ast-site-identity .custom-logo-link,
.site-branding .custom-logo-link { 
  margin-right: 0 !important; 
  padding-right: 0 !important; 
}
.ast-site-identity .site-title,
.site-branding .site-title,
.ast-site-title-wrap { 
  margin-left: 0 !important; 
  padding-left: 0 !important; 
}
.ast-site-title-wrap { 
  padding: 0 !important; 
  margin: 0 !important; 
}
/* MP-Orthopedie : mp-tighten-title - coller le texte au logo rond */
.ast-site-identity .site-title,
.site-branding .site-title {
  margin-left: -8px !important;
}
@media (max-width: 544px) {
  .ast-site-identity .site-title,
  .site-branding .site-title { margin-left: -6px !important; }
}
/* MP-Orthopedie : header compact */
.site-header .ast-container,
.main-header-bar .ast-container,
.ast-primary-header-bar { 
  padding-top: 0 !important; 
  padding-bottom: 0 !important; 
}
.main-header-bar,
.site-header .main-header-bar { 
  padding: 0 !important; 
  min-height: 0 !important; 
}
.ast-site-identity,
.site-branding { 
  padding: 0 !important; 
  margin: 0 !important; 
}
.ast-builder-grid-row,
.ast-builder-grid-row-container-inner,
.site-primary-header-wrap,
[data-section="section-primary-header-builder"] { 
  padding-top: 0 !important; 
  padding-bottom: 0 !important; 
  min-height: 0 !important; 
}
.custom-logo-link { 
  padding: 0 !important; 
  margin: 0 !important; 
  display: inline-block !important; 
  line-height: 0 !important; 
}
.custom-logo-link img { 
  margin: 0 !important; 
  padding: 0 !important; 
  vertical-align: middle !important; 
  display: block !important; 
}
/* MP-Orthopedie : titres cartes services responsive */
@media (max-width: 544px) {
  .mp-service-card h3.wp-block-heading {
    font-size: 18px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}
@media (max-width: 921px) and (min-width: 545px) {
  .mp-service-card h3.wp-block-heading {
    font-size: 19px !important;
  }
}