@media (max-width: 1280px) {

 }
@media (max-width: 1024px) {
  .footer-wave {
    display:none;
  }

  /* SINGLE CARD */
.card-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
  }

  .single-image {
    width: 100%;
  }

  .single-content:has(+ .single-image) {
    width: 100%
  }
 }
@media (max-width: 768px) {
  .container {
    max-width: 92%;
    margin: 0 auto;
  }

  /* MENU AND HEADER */
      .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
      }

      .main-nav.open {
        display: flex;
      }

      .main-menu {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
      }

      .main-menu .menu-item a {
        padding: 1rem;
      }

      .site-header .sub-menu {
        position: static;
        padding: 0.5rem 0 0 1rem;
        margin: 0;
        background: none;
        box-shadow: none;
      }

      .site-header .menu-item-has-children:hover .sub-menu {
        display: none;
      }

      .main-menu .menu-item-has-children .sub-menu {
        display: none;
        padding-left: 1rem;
      }

      .main-menu .menu-item-has-children.open .sub-menu {
        display: block;
      }

      .main-menu .menu-item-has-children > a::after {
        content: " ▼";
        font-size: 0.7rem;
      }

      .main-menu .menu-item-has-children.open > a::after {
        content: " ▲";
      }

      .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
        max-width: 94%;
      }
      .site-header .container > .logo,
      .site-header .container > .burger {
        display: inline-flex;
        align-items: center;
      }
      .site-header .container > .burger {
        display: inline-flex;
        align-items: center;
      }
      .site-header .logo-and-burger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
      }

        .burger {
          display: flex;
          flex-direction: column;
          gap: 5px;
          background: none;
          border: none;
          cursor: pointer;
          padding: 0.5rem;
          z-index: 10;
        }

        .burger span {
          width: 24px;
          height: 3px;
          background: var(--color-text);
          border-radius: 2px;
        }
      .logo img {
        height: 50px;
        padding: 0 8px;
      }

      /* ========= HOVER STATES RESET ========= */
      .site-header .menu-item a:hover,
      .site-header .menu-item.current-menu-item a,
      .site-header .menu-item.current_page_parent a,
      .site-header .menu-item.current_page_ancestor a {
        background: none;
      }

    /* ======== FOOTER ======== */
    .footer-top,
    .footer-nav-list,
    .footer-links {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .footer-nav {
      margin-left: 0;
    }

    .footer-nav-list {
      gap: 2rem;
      padding-left: 0;
      list-style: none;
    }

    .footer-links p {
      margin-left: 0;
    }

    .footer-nav-list .sub-menu {
      position: static;
      text-align: left;
      padding-left: 1rem;
      list-style: none;
    }

    .footer-nav-list .sub-menu li {
      margin-top: 0.5rem;
    }

    .footer-landscape {
      max-width: 100px;
      bottom:98%;
    }

    /*==== HOME SECTION HERO ====*/
    .home-hero {
      padding-top: 2rem;
      margin: 0 auto;
      max-width: 96%;
      overflow: hidden;
    }
    .hero-decor {
      display: none;
    }

    .hero-title {
      font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /*==== HOME SERVICES SECTION ====*/
    .service-card .btn {
      position: static;
      margin: 0 auto;
      transform: none;
    }
    .services-grid {
      margin: 0 auto;
      max-width: 92%;
    }

    /*==== HOME SYSTEMIC SECTION ====*/
    .home-systemic {
      padding-bottom: 10rem;
      margin-top: -200%;
      padding-top: 210%; /* passage sous les cartes service - modulable */
    }
      .home-systemic .wave-top,
      .home-systemic .wave-bottom,
      .home-systemic .mountains-bottom,
      .home-systemic .landscape-transition {
        transform: scale(2.5);
        transform-origin: bottom right;
      }
      .home-systemic .landscape-transition {
        bottom: -2px;
      }

    .systemic-visual, .systemic-decor {
      position: absolute;
      left: -9999px;
      top: auto;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }
    .systemic-inner {
      grid-template-columns: 1fr;
      text-align: left;
      gap: 0;
      padding: 0;
    }
    .systemic-inner .container {
      padding: 0;
    }

    .systemic-text {
      margin: 0 auto;
      max-width: 92%;
    }
    .systemic-text .btn {
      display: block;
      width: max-content;
      margin: 0 auto;
    }

    /*=== MOBILE HOME PROJECTS SECTION ====*/
    .home-projects {
      padding-top: 2rem;
      padding-bottom: 2rem;
      margin: 0 auto;
      max-width: 92%;
    }

    .projects-header {
      display: flex;
      text-align: center;
      margin-bottom: 2rem;
    }

    .projects-header .btn-ghost {
      display: none;
    }
    .mobile-btn {
      display: block;
      width: max-content;
      margin: 2rem auto 0 auto;
    }

    .project-card {
      height: auto;
      padding-bottom: 1rem;
    }

    .projects-grid {
      gap: 1rem;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .project-thumb img {
      max-height: 150px;
    }
    .project-description {
      margin-bottom: 0;
    }


    /*==== HOME SECTION CONTACT CTA ====*/
    .home-contact {
      padding-bottom: 0;
      max-width: 92%;
      margin: 0 auto;
    }

    .contact-box {
      flex-direction: column;
      text-align: center;

    }

    .contact-content {
      flex: 1 1 auto;
      max-width: 100%;
    }

    .contact-cta {
      width: 100%;
      margin-top: 1rem;
    }

    .btn {
      width: 100%;
      text-align: center;
    }

    .contact-decor {
      display: none;
    }

    /* ==== PAGE DIAGNOSTIC TERRITORIAL ==== */
    .page-diagnostic {
      padding-top: 0;
    }

    .diag-services {
      margin-top: 6rem;
    }

    .page-diagnostic .projects {
      padding-top: 0;
    }

    .services-grid {
      grid-template-columns: 1fr;
    }

    .diagnostic-hero .hero-img img {
      height:200px;
      object-fit: cover;
      object-position: center;
    }

    .diag-quote {
      max-width: 80%;
      margin: 0 auto;
    }

    .diag-services .landscape-top,
    .diag-services .mountains-top,
    .diag-services .wave-bottom {
      transform: scale(2.5);
      transform-origin: bottom right;
    }

    .diag-services .wave-bottom {
      bottom: -2px;
    }

/* PAGE FORMATIONS */
.formations-cert {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.formations-hero .hero-img img {
  height:200px;
  object-fit: cover;
  object-position: center;
}

.formation-card {
  border-radius: 3rem;
  padding: 0.5rem;
}
  .formation-card-img {
    border-radius: calc(3rem - 0.5rem) calc(3rem - 0.5rem) 0.25rem 0.25rem;
  }
  .formation-card h5 {
    font-size: 1rem;
  }

/* PAGES TEXTE */
.page-text {
  width: 92%;
  /*max-width: 1vw;*/
}

}
@media (max-width: 480px) { /* xs */ }
