/* =====================================
   HERO MOBILE
===================================== */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero {
    min-height: 100svh;
    padding: 16px;
    align-items: flex-start;
  }

  .hero-conteneur {
    height: auto;
    min-height: calc(100svh - 32px);
    border-radius: 24px;
    padding: 20px 20px 36px 20px;
    justify-content: flex-start;
    gap: 0;
    background-image: url("../images/autres/fond-nav-responsive.png");
    background-position: center top;
    background-size: 70vw 5vh ;
    background-repeat: no-repeat;
    overflow: visible;
  }

  /* ----- NAV burger ----- */
  .hero-nav {
    position: relative;
    top: -3vh;
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 14px;
    background-image: none;
    background-color: var(--blue-2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    align-self: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    cursor: pointer;
    z-index: 100;
  }

  .hero-nav a {
    display: none;
  }

  .hero-nav::after {
    content: '';
    display: block;
    width: 22px;
    height: 16px;
    background-color: var(--white-1);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect y='0' width='22' height='2.5' rx='1.25'/%3E%3Crect y='6.75' width='22' height='2.5' rx='1.25'/%3E%3Crect y='13.5' width='22' height='2.5' rx='1.25'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect y='0' width='22' height='2.5' rx='1.25'/%3E%3Crect y='6.75' width='22' height='2.5' rx='1.25'/%3E%3Crect y='13.5' width='22' height='2.5' rx='1.25'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: opacity 0.2s ease;
  }

  /* État ouvert : icône X */
  .hero-nav.is-open::after {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cline x1='2' y1='2' x2='20' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='20' y1='2' x2='2' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cline x1='2' y1='2' x2='20' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='20' y1='2' x2='2' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  /* ----- TITRE ----- */
  .hero-titre {
    font-size: 2rem !important;
    line-height: 1.1;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
  }

  .hero-highlight {
    font-size: 2rem;
    padding: 0.08em 0.2em;
    border-width: 2px;
  }

  .dot, .dot-rose {
    width: 11px;
    height: 11px;
  }

  .tl { top: -7px;  left: -7px; }
  .tr { top: -7px;  right: -7px; }
  .bl { bottom: -7px; left: -7px; }
  .br { bottom: -7px; right: -7px; }

  /* ----- CARTES ----- */
  .hero-cartes {
    width: 100%;
    height: 260px;
    position: relative;
    margin-top: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
  }

  .carte {
    width: 110px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  }

  .carte-1 { left: 15%; top: 0%; transform: rotate(-22deg);}
  .carte-2 { left: 45%; top: 0%; transform: rotate(-14deg);}
  .carte-3 { left: 0%; top: 30%; transform: rotate(-6deg);}
  .carte-4 { left: 30%; top: 30%; transform: rotate( 2deg);}
  .carte-5 { left: 60%; top: 30%; transform: rotate( 10deg);}
  .carte-6 { left: 15%; top: 60%; transform: rotate( 18deg);}
  .carte-7 { left: 45%; top: 60%; transform: rotate( 26deg);}

  .carte:hover { transform: inherit; }

  /* ----- DESCRIPTION ----- */
  .infoshero {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.45;
    max-width: 100%;
    margin-top: 0;
    text-align: center;
  }

  /* Ajoute un espace entre les deux phrases sans toucher au HTML */
  .hero-description br {
    display: block;
    content: '';
    margin-top: 12px;
  }

  /* ----- BOUTONS ----- */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
  }

  .btn {
    width: 85%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 20px;
  }

  .icon-arrow {
    width: 14px;
    height: 14px;
  }
}

/* =====================================
   MENU MOBILE OVERLAY
   (actif uniquement en mobile via JS)
===================================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.mobile-menu-overlay.is-open {
  display: block;
  pointer-events: all;
}

/* Fond flouté */
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-backdrop {
  opacity: 1;
}

/* Panneau blanc qui slide depuis le haut */
.mobile-menu-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  background: var(--white-1);
  border-radius: 28px;
  padding: 28px 28px 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(-30px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header du panneau */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu-logo {
  font-family: var(--font-brockman);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--black-1);
  letter-spacing: -0.02em;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-0);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-2);
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--blue-1);
  color: white;
}

/* Liens nav */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--black-1);
  font-family: var(--font-brockman);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  padding: 14px 0;
  border-bottom: 1px solid var(--blue-0);
  transition: color 0.2s ease;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: var(--blue-1);
}

.mobile-menu-link-arrow {
  width: 20px;
  height: 20px;
  opacity: 0.3;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* CTA bas du menu */
.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-cta .btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
}