/* ============================================================
   Nect'Art — performance + responsive hotfixes
   2026-06-15
   Loaded last. Scope volontairement serré.
   ============================================================ */

/* Global guardrails */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.na-hdr__ham { position: relative; z-index: 10001; }
.na-hdr__ham span { display:block !important; background:#0D0D0D !important; opacity:1 !important; }
.na-hdr__nav.is-open,
.na-hdr__nav.na-nav-open { z-index: 10000 !important; }

@media (max-width: 767px) {
  /* Keep the header actions visible on every mobile page */
  .na-hdr {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 20px !important;
    overflow: visible !important;
  }
  .na-hdr__logo img { max-width: 158px !important; height: 48px !important; object-fit: contain !important; }
  .na-hdr__ham {
    display: flex !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 5px !important;
    margin-left: auto !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: transparent !important;
    border: 0 !important;
  }
  .na-hdr__ham span {
    width: 24px !important;
    height: 2px !important;
    border-radius: 2px !important;
  }

  /* HOME — prevent CTA collision with the hero collage */
  body.home .na-hero,
  body.home.blog .na-hero {
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }
  body.home .na-hero__cta,
  body.home.blog .na-hero__cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 8.85rem !important;
    height: 2.5rem !important;
    top: 36.9rem !important;
    left: 17.25rem !important;
    right: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    z-index: 20 !important;
  }
  body.home .na-hero__cta .na-btn,
  body.home.blog .na-hero__cta .na-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 2.5rem !important;
    padding: 0 .55rem !important;
    font-size: .72rem !important;
    line-height: .85rem !important;
    white-space: normal !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  body.home .na-hero__cta .na-btn--sec,
  body.home.blog .na-hero__cta .na-btn--sec {
    display: none !important;
  }

  /* PROJECTS — current collaboration block: give text + CTA room */
  body.page-template-page-projects .na-proj-tadi,
  body[class*="page-projects"] .na-proj-tadi,
  body[class*="page-projets"] .na-proj-tadi {
    padding: 26px 0 32px !important;
    margin-top: 28px !important;
    overflow: visible !important;
  }
  body.page-template-page-projects .na-proj-tadi .na-w,
  body[class*="page-projects"] .na-proj-tadi .na-w,
  body[class*="page-projets"] .na-proj-tadi .na-w {
    padding: 0 20px !important;
  }
  body.page-template-page-projects .na-proj-tadi__t,
  body[class*="page-projects"] .na-proj-tadi__t,
  body[class*="page-projets"] .na-proj-tadi__t {
    font-size: 20px !important;
    line-height: 26px !important;
    margin: 8px 0 8px !important;
  }
  body.page-template-page-projects .na-proj-tadi .na-pg-body,
  body[class*="page-projects"] .na-proj-tadi .na-pg-body,
  body[class*="page-projets"] .na-proj-tadi .na-pg-body {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 19px !important;
  }
  body.page-template-page-projects .na-proj-tadi + .na-w,
  body[class*="page-projects"] .na-proj-tadi + .na-w,
  body[class*="page-projets"] .na-proj-tadi + .na-w {
    padding-top: 16px !important;
    padding-bottom: 36px !important;
  }
  body.page-template-page-projects .na-proj-tadi + .na-w .na-btn,
  body[class*="page-projects"] .na-proj-tadi + .na-w .na-btn,
  body[class*="page-projets"] .na-proj-tadi + .na-w .na-btn {
    margin: 0 !important;
    width: auto !important;
    min-width: 156px !important;
  }

  /* PROCESS — avoid two-column scope table collisions */
  body.page-template-page-process .na-proc__dbl-lbl,
  body[class*="page-process"] .na-proc__dbl-lbl {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 6px !important;
  }
  body.page-template-page-process .na-proc__table,
  body[class*="page-process"] .na-proc__table {
    width: 100% !important;
    overflow: visible !important;
  }
  body.page-template-page-process .na-proc__trow,
  body[class*="page-process"] .na-proc__trow {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 15px 0 !important;
    min-width: 0 !important;
  }
  body.page-template-page-process .na-proc__tlbl,
  body.page-template-page-process .na-proc__tval,
  body[class*="page-process"] .na-proc__tlbl,
  body[class*="page-process"] .na-proc__tval {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
  }
  body.page-template-page-process .na-proc__cta-btns,
  body[class*="page-process"] .na-proc__cta-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  body.page-template-page-process .na-proc__cta-btns .na-btn,
  body[class*="page-process"] .na-proc__cta-btns .na-btn {
    width: auto !important;
    min-width: 168px !important;
  }

  /* Buttons: never overflow viewport */
  .na-btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
