/* ========================================================= */
/* CLYCO - NAVIGATION MOBILE                                 */
/* ========================================================= */


/* BOUTON BURGER */

.menu-toggle {
  display: none;

  width: 48px;
  height: 48px;

  padding: 0;

  align-items: center;
  justify-content: center;

  background: transparent;

  border: 1px solid #ddddda;
  border-radius: 4px;

  color: #202020;

  cursor: pointer;

  position: relative;
}


/* LES 3 TRAITS */

.menu-toggle span {
  position: absolute;

  width: 21px;
  height: 2px;

  background: #202020;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}


/* TRANSFORMATION EN CROIX */

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}


/* MENU MOBILE CRÉÉ PAR JS */

.mobile-menu {
  display: none;
}


/* ========================================================= */
/* TABLETTE / MOBILE                                         */
/* ========================================================= */

@media (max-width: 900px) {

.main-header {
  background: #000000;
}

.main-header-container {
  min-height: 82px;
  gap: 20px;

  background: #000000;
}

.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.menu-toggle span {
  background: #ffffff;
}

.mobile-menu {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu nav a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu nav a:hover {
  color: #ef8b91;
}

  .main-header-container {
    min-height: 82px;

    gap: 20px;
  }

  .main-logo {
    width: 105px;
  }


  /* ON CACHE LE MENU DESKTOP */

  .main-nav,
  .main-header-container > .header-cta {
    display: none;
  }


  /* BURGER */

  .menu-toggle {
    display: inline-flex;

    margin-left: auto;
  }


  /* PANNEAU MOBILE */

  .mobile-menu {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    padding: 28px 24px 32px;

    background: #ffffff;

    border-top: 1px solid #eeeeeb;
    border-bottom: 1px solid #ddddda;

    box-shadow:
      0 18px 35px rgba(0, 0, 0, 0.08);

    z-index: 999;
  }


  .mobile-menu.open {
    display: block;
  }


  /* LIENS */

  .mobile-menu nav {
    display: flex;

    flex-direction: column;
  }


  .mobile-menu nav a {
    padding: 17px 0;

    color: #202020;

    text-decoration: none;

    font-size: 18px;
    font-weight: 700;

    border-bottom: 1px solid #eeeeeb;
  }


  .mobile-menu nav a:hover {
    color: #b51d27;
  }


  /* CTA */

  .mobile-menu .mobile-menu-cta {
    width: 100%;

    min-height: 54px;

    margin-top: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #b51d27;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    border-radius: 4px;
  }

}


/* PETIT TÉLÉPHONE */

@media (max-width: 500px) {

  .main-header-container {
    width: calc(100% - 28px);
  }

  .main-logo {
    width: 92px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    padding-left: 20px;
    padding-right: 20px;
  }

/* ========================================================= */
/* FINITIONS TRÈS PETITS ÉCRANS                              */
/* ========================================================= */

@media (max-width: 500px) {

  .clyco-section-heading h2,
  .clyco-why h2 {
    font-size: 35px;
    line-height: 1.05;
    letter-spacing: -1.5px;
  }

  body {
    overflow-x: hidden;
  }

}

/* ========================================================= */
/* FINITIONS PREMIUM - NAVIGATION MOBILE                     */
/* ========================================================= */

@media (max-width: 900px) {

  .main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #000000;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .main-header-container {
    min-height: 78px;

    display: flex;
    align-items: center;

    background: #000000;
  }

  .main-logo-link {
  height: 78px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.main-logo {
  width: auto;
  height: 68px;
  max-height: 68px;

  display: block;

  object-fit: contain;
}


  /* BURGER PLUS PROPRE */

  .menu-toggle {
    width: 46px;
    height: 46px;

    margin-left: auto;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 8px;

    background:
      rgba(255, 255, 255, 0.04);

    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease;
  }

  .menu-toggle:hover {
    background:
      rgba(255, 255, 255, 0.08);

    border-color:
      rgba(255, 255, 255, 0.3);
  }

  .menu-toggle:active {
    transform: scale(0.96);
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;

    background: #ffffff;

    border-radius: 99px;
  }


  /* MENU DÉROULANT */

  .mobile-menu {
    background: #101010;

    border-top:
      1px solid rgba(255, 255, 255, 0.08);

    border-bottom:
      1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.28);
  }

  .mobile-menu nav a {
    position: relative;

    padding: 18px 0;

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;

    border-bottom:
      1px solid rgba(255, 255, 255, 0.08);

    transition:
      color 0.2s ease,
      padding-left 0.2s ease;
  }

  .mobile-menu nav a:hover {
    color: #ef8b91;

    padding-left: 6px;
  }

  .mobile-menu .mobile-menu-cta {
    margin-top: 26px;

    min-height: 56px;

    border-radius: 7px;

    background: #b51d27;

    box-shadow:
      0 10px 25px rgba(181, 29, 39, 0.25);

    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .mobile-menu .mobile-menu-cta:hover {
    transform: translateY(-1px);

    box-shadow:
      0 14px 30px rgba(181, 29, 39, 0.32);
  }

}

/* ========================================================= */
/* PAGE ACTIVE                                               */
/* ========================================================= */

.main-nav a.active-page {
  color: #b51d27;
}

.main-nav a.active-page::after {
  content: "";

  display: block;

  width: 100%;
  height: 2px;

  margin-top: 6px;

  background: #b51d27;
}


@media (max-width: 900px) {

  .mobile-menu nav a.active-page {
    color: #ef8b91;
  }

  .mobile-menu nav a.active-page::before {
    content: "•";

    margin-right: 10px;

    color: #b51d27;
  }

}

}

/* ========================================================= */
/* MENU MOBILE - SCROLL                                      */
/* ========================================================= */

@media (max-width: 900px) {

  .mobile-menu {
    max-height: calc(100dvh - 78px);

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    padding-bottom:
      calc(32px + env(safe-area-inset-bottom));

    box-sizing: border-box;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

}

/* =========================================================
   CARTES PROFESSIONNELS CLIQUABLES
   ========================================================= */

.pro-solution-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.pro-solution-card-link:visited {
  color: inherit;
}

.pro-solution-cta {
  display: inline-block;
  margin-top: 24px;
  color: #b51d27;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

  .pro-solution-card-link:hover .pro-solution-cta {
    color: #ffffff;
  }

}