/* PRATINIUM v318 — CMS hero precision
   Aligne strictement le bandeau et le contenu, réduit la hauteur et replace le titre. */

/* Même boîte de référence pour le bandeau et le contenu CMS. */
body#cms .page-header,
body.page-cms .page-header,
body[class*="page-cms"] .page-header,
body#cms #content,
body#cms div#content.page-content,
body.page-cms #content,
body.page-cms div#content.page-content,
body[class*="page-cms"] #content {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* Bandeau compact, calé exactement sur la largeur du bloc blanc. */
body#cms .page-header,
body.page-cms .page-header,
body[class*="page-cms"] .page-header {
  min-height: 126px !important;
  height: 126px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border-radius: 30px 30px 0 0 !important;
  overflow: hidden !important;
}

/* Neutralise les anciens décalages du titre et reproduit la position du hero connexion. */
body#cms .page-header h1,
body#cms h1.page-title,
body.page-cms .page-header h1,
body.page-cms h1.page-title,
body[class*="page-cms"] .page-header h1,
body[class*="page-cms"] h1.page-title {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: calc(100% - 230px) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  translate: none !important;
  text-indent: 0 !important;
  text-align: left !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
}

/* Raccord sans interstice ni différence de largeur. */
body#cms #content,
body#cms div#content.page-content,
body.page-cms #content,
body.page-cms div#content.page-content,
body[class*="page-cms"] #content {
  margin-top: 0 !important;
  border-top: 0 !important;
  border-radius: 0 0 30px 30px !important;
}

/* Décor conservé mais adapté à la hauteur réduite. */
body#cms .page-header::before,
body.page-cms .page-header::before,
body[class*="page-cms"] .page-header::before {
  right: 44px !important;
  bottom: -104px !important;
  width: 190px !important;
  height: 190px !important;
}

@media (max-width: 991px) {
  body#cms .page-header,
  body.page-cms .page-header,
  body[class*="page-cms"] .page-header {
    min-height: 118px !important;
    height: 118px !important;
    padding: 0 72px !important;
  }
  body#cms .page-header h1,
  body.page-cms .page-header h1,
  body[class*="page-cms"] .page-header h1 {
    max-width: calc(100% - 150px) !important;
    font-size: 28px !important;
  }
}

@media (max-width: 575px) {
  body#cms .page-header,
  body.page-cms .page-header,
  body[class*="page-cms"] .page-header {
    min-height: 104px !important;
    height: 104px !important;
    padding: 0 28px !important;
  }
  body#cms .page-header h1,
  body.page-cms .page-header h1,
  body[class*="page-cms"] .page-header h1 {
    max-width: 76% !important;
    font-size: 24px !important;
  }
  body#cms .page-header::before,
  body.page-cms .page-header::before,
  body[class*="page-cms"] .page-header::before {
    right: 12px !important;
    bottom: -88px !important;
    width: 150px !important;
    height: 150px !important;
  }
}
