
/* ==========================================================================
   Macteck Divi Child — 100 Site Cleanup
   Version: 3.1.0-alpha2-site-cleanup

   But :
   - nettoyer le rendu WordPress/Divi par défaut;
   - mieux présenter un site neuf ou incomplet;
   - éviter l’effet “blog démo WordPress”;
   - ne jamais modifier le logo Macteck.
   ========================================================================== */

/* Page content base */
body.macteck-theme #page-container,
body.macteck-divi-child-futuristic #page-container {
  overflow-x: clip;
}

/* Divi default header cleanup */
body.macteck-theme #main-header,
body.macteck-divi-child-futuristic #main-header {
  min-height: 82px;
}

body.macteck-theme #main-header .container,
body.macteck-divi-child-futuristic #main-header .container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
}

body.macteck-theme #et-top-navigation,
body.macteck-divi-child-futuristic #et-top-navigation {
  font-weight: 650;
}

body.macteck-theme #top-menu > li > a,
body.macteck-divi-child-futuristic #top-menu > li > a {
  padding-bottom: 30px;
}

/* Divi default logo placeholder should not look like the finished Macteck logo. */
body.macteck-theme #logo[src*="logo"],
body.macteck-divi-child-futuristic #logo[src*="logo"] {
  max-height: 54px;
}

/* Never distort/recolor any configured logo. */
body.macteck-theme #logo,
body.macteck-theme .et_pb_menu__logo img,
body.macteck-divi-child-futuristic #logo,
body.macteck-divi-child-futuristic .et_pb_menu__logo img {
  filter: none !important;
  transform: none !important;
  mix-blend-mode: normal !important;
}

/* Generic page layout */
body.macteck-theme #main-content,
body.macteck-divi-child-futuristic #main-content {
  background:
    radial-gradient(820px 360px at 85% 0%, rgba(23, 158, 217, .08), transparent 62%),
    radial-gradient(620px 300px at 0% 55%, rgba(240, 79, 35, .045), transparent 60%),
    var(--mck-foundation-bg, #f5f8fb);
}

body.macteck-theme .container,
body.macteck-divi-child-futuristic .container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
}

/* Blog/default WordPress content cleanup */
body.macteck-theme.mck-blog-context #main-content .container,
body.macteck-divi-child-futuristic.mck-blog-context #main-content .container {
  padding-top: clamp(70px, 7vw, 112px);
  padding-bottom: clamp(70px, 7vw, 112px);
}

body.macteck-theme #left-area,
body.macteck-divi-child-futuristic #left-area {
  padding-bottom: 0;
}

body.macteck-theme article.post,
body.macteck-divi-child-futuristic article.post {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--mck-foundation-border, rgba(18,24,32,.10));
  border-radius: 26px;
  background: color-mix(in srgb, var(--mck-foundation-surface, #ffffff) 94%, transparent);
  box-shadow: var(--mck-foundation-shadow-soft, 0 14px 34px rgba(18,24,32,.075));
}

body.macteck-theme article.post .entry-title,
body.macteck-divi-child-futuristic article.post .entry-title {
  margin-bottom: 12px;
  color: var(--mck-foundation-text, #121820);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

body.macteck-theme article.post .post-meta,
body.macteck-divi-child-futuristic article.post .post-meta {
  color: var(--mck-foundation-muted, #56616f);
}

/* Sidebar cleanup */
body.macteck-theme #sidebar,
body.macteck-divi-child-futuristic #sidebar {
  padding: 28px;
  border: 1px solid var(--mck-foundation-border, rgba(18,24,32,.10));
  border-radius: 24px;
  background: color-mix(in srgb, var(--mck-foundation-surface, #ffffff) 90%, transparent);
  box-shadow: var(--mck-foundation-shadow-soft, 0 14px 34px rgba(18,24,32,.075));
}

body.macteck-theme #sidebar .widgettitle,
body.macteck-divi-child-futuristic #sidebar .widgettitle {
  margin-bottom: 14px;
  color: var(--mck-foundation-text, #121820);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: -.045em;
  opacity: 1;
}

body.macteck-theme #sidebar .widget,
body.macteck-divi-child-futuristic #sidebar .widget {
  margin-bottom: 34px;
}

body.macteck-theme #sidebar a,
body.macteck-divi-child-futuristic #sidebar a {
  font-weight: 700;
}

/* Search widget cleanup */
body.macteck-theme .widget_search input#s,
body.macteck-divi-child-futuristic .widget_search input#s,
body.macteck-theme .et_pb_widget.widget_search input#s,
body.macteck-divi-child-futuristic .et_pb_widget.widget_search input#s {
  min-height: 42px;
  border-radius: 12px 0 0 12px;
}

body.macteck-theme .widget_search #searchsubmit,
body.macteck-divi-child-futuristic .widget_search #searchsubmit {
  min-height: 42px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, var(--mck-foundation-blue-strong, #0b7cff), var(--mck-foundation-blue, #179ed9));
  color: #fff;
  border: 0;
  font-weight: 750;
}

/* Default footer widgets cleanup */
body.macteck-theme #main-footer .container,
body.macteck-divi-child-futuristic #main-footer .container {
  width: min(1180px, calc(100% - 40px));
}

body.macteck-theme #footer-widgets,
body.macteck-divi-child-futuristic #footer-widgets {
  padding: clamp(52px, 6vw, 86px) 0 34px;
}

body.macteck-theme #footer-widgets .footer-widget,
body.macteck-divi-child-futuristic #footer-widgets .footer-widget {
  color: #b9c7d8;
}

body.macteck-theme #footer-widgets .title,
body.macteck-divi-child-futuristic #footer-widgets .title {
  color: #f3f7fb;
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

body.macteck-theme #footer-bottom,
body.macteck-divi-child-futuristic #footer-bottom {
  background: rgba(0, 0, 0, .24);
}

body.macteck-theme #footer-info,
body.macteck-divi-child-futuristic #footer-info {
  color: #7f8fa3;
}

/* Empty/default page presentation */
body.macteck-theme.mck-page-context .entry-content:empty::before,
body.macteck-divi-child-futuristic.mck-page-context .entry-content:empty::before {
  content: "Page prête pour une mise en page Macteck.";
  display: block;
  padding: 40px;
  border: 1px dashed var(--mck-foundation-border, rgba(18,24,32,.10));
  border-radius: 22px;
  color: var(--mck-foundation-muted, #56616f);
  background: color-mix(in srgb, var(--mck-foundation-surface, #ffffff) 88%, transparent);
}

/* Divi default page without builder */
body.macteck-theme:not(.et_pb_pagebuilder_layout) .entry-content,
body.macteck-divi-child-futuristic:not(.et_pb_pagebuilder_layout) .entry-content {
  color: var(--mck-foundation-muted, #56616f);
}

/* Better default content width on non-builder pages */
body.macteck-theme:not(.et_pb_pagebuilder_layout) #left-area,
body.macteck-divi-child-futuristic:not(.et_pb_pagebuilder_layout) #left-area {
  width: min(760px, 100%);
}

/* If sidebar exists, keep it clean. */
body.macteck-theme.et_right_sidebar #left-area,
body.macteck-divi-child-futuristic.et_right_sidebar #left-area {
  width: min(760px, 65%);
}

body.macteck-theme.et_right_sidebar #sidebar,
body.macteck-divi-child-futuristic.et_right_sidebar #sidebar {
  width: min(340px, 30%);
}

/* Mobile cleanup */
@media (max-width: 980px) {
  body.macteck-theme #main-header,
  body.macteck-divi-child-futuristic #main-header {
    min-height: 74px;
  }

  body.macteck-theme #main-header .container,
  body.macteck-divi-child-futuristic #main-header .container,
  body.macteck-theme .container,
  body.macteck-divi-child-futuristic .container {
    width: min(100% - 28px, 1180px);
  }

  body.macteck-theme.et_right_sidebar #left-area,
  body.macteck-divi-child-futuristic.et_right_sidebar #left-area,
  body.macteck-theme.et_right_sidebar #sidebar,
  body.macteck-divi-child-futuristic.et_right_sidebar #sidebar,
  body.macteck-theme:not(.et_pb_pagebuilder_layout) #left-area,
  body.macteck-divi-child-futuristic:not(.et_pb_pagebuilder_layout) #left-area {
    width: 100%;
  }

  body.macteck-theme #sidebar,
  body.macteck-divi-child-futuristic #sidebar {
    margin-top: 28px;
  }
}
