/* PRATINIUM v317 — Pages CMS : bandeau raccordé au contenu + décor restauré
   Cible : Mentions légales, GCU/CGV et Confidentialité. */

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;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body#cms .page-header,
body.page-cms .page-header,
body[class*="page-cms"] .page-header {
  position: relative !important;
  isolation: isolate !important;
  min-height: 164px !important;
  height: auto !important;
  padding: 34px 86px 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 30px 30px 0 0 !important;
  background:
    radial-gradient(560px 260px at 88% 28%, rgba(45, 189, 230, .32), transparent 66%),
    linear-gradient(112deg, #0c2242 0%, #12365e 42%, #258eb7 100%) !important;
  box-shadow: none !important;
}

/* Carré décoratif rayé, identique à celui du bandeau de connexion. */
body#cms .page-header::before,
body.page-cms .page-header::before,
body[class*="page-cms"] .page-header::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  right: 44px !important;
  bottom: -80px !important;
  width: 190px !important;
  height: 190px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 42px !important;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, .13) 0 2px,
    transparent 2px 14px
  ) !important;
  transform: rotate(8deg) !important;
  pointer-events: none !important;
}

body#cms .page-header::after,
body.page-cms .page-header::after,
body[class*="page-cms"] .page-header::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  right: -36px !important;
  top: -42px !important;
  width: 240px !important;
  height: 240px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 62%) !important;
  pointer-events: none !important;
}

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 {
  position: relative !important;
  z-index: 2 !important;
  max-width: 820px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
  font-weight: 900 !important;
  text-align: left !important;
  text-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
}

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;
}

@media (max-width: 991px) {
  body#cms .page-header,
  body.page-cms .page-header,
  body[class*="page-cms"] .page-header {
    min-height: 150px !important;
    padding: 34px !important;
    border-radius: 26px 26px 0 0 !important;
  }
  body#cms .page-header h1,
  body.page-cms .page-header h1,
  body[class*="page-cms"] .page-header h1 {
    font-size: 28px !important;
  }
  body#cms #content,
  body.page-cms #content,
  body[class*="page-cms"] #content {
    border-radius: 0 0 26px 26px !important;
  }
}

@media (max-width: 575px) {
  body#cms .page-header,
  body.page-cms .page-header,
  body[class*="page-cms"] .page-header {
    min-height: 128px !important;
    padding: 26px 22px !important;
    border-radius: 22px 22px 0 0 !important;
  }
  body#cms .page-header::before,
  body.page-cms .page-header::before,
  body[class*="page-cms"] .page-header::before {
    right: 14px !important;
    bottom: -72px !important;
    width: 150px !important;
    height: 150px !important;
  }
  body#cms .page-header h1,
  body.page-cms .page-header h1,
  body[class*="page-cms"] .page-header h1 {
    max-width: 78% !important;
    font-size: 24px !important;
  }
  body#cms #content,
  body.page-cms #content,
  body[class*="page-cms"] #content {
    border-radius: 0 0 22px 22px !important;
  }
}
