/**
 * KNICS - Correctif d'integration de l'article CMS 14.
 *
 * Le code exporte dans Elementor contient des regles generiques pour body et
 * iframe. Les selecteurs ci-dessous restent limites a la page concernee et
 * empechent ces regles de modifier le cadre general du theme.
 */
body#cms.cms-id-14 {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

body#cms.cms-id-14 #main-page-content,
body#cms.cms-id-14 #wrapper,
body#cms.cms-id-14 #inner-wrapper,
body#cms.cms-id-14 #content-wrapper,
body#cms.cms-id-14 #main,
body#cms.cms-id-14 #content,
body#cms.cms-id-14 #content > .elementor,
body#cms.cms-id-14 #content > .elementor > .elementor-section,
body#cms.cms-id-14 #content > .elementor > .elementor-section > .elementor-container,
body#cms.cms-id-14 #content > .elementor > .elementor-section > .elementor-container > .elementor-row,
body#cms.cms-id-14 #content > .elementor > .elementor-section .elementor-top-column,
body#cms.cms-id-14 #content > .elementor > .elementor-section .elementor-widget-wrap,
body#cms.cms-id-14 #content > .elementor > .elementor-section .elementor-widget-html,
body#cms.cms-id-14 #content > .elementor > .elementor-section .elementor-widget-container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body#cms.cms-id-14 iframe[title="Knics Article Magazine"] {
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh;
  min-height: 720px;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  border: 0 !important;
  overflow: hidden;
  background: #0b0b0b;
}

/* Recouvre le pixel sub-pixel eventuellement laisse par la hauteur de
   l'iframe et raccorde directement le dernier bloc noir au footer. */
body#cms.cms-id-14 #footer {
  position: relative;
  z-index: 2;
  margin-top: -1px !important;
}

@media (max-width: 900px) {
  body#cms.cms-id-14 iframe[title="Knics Article Magazine"] {
    min-height: 640px;
  }
}
