@media (max-width: 768px) {

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

  /* ================================
     HERO
  ================================ */
  .hero {
    height: auto;
    padding: 16px;
    align-items: flex-start;
  }

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

  /* Burger */
  .hero-nav {
    position: relative;
    top: -2.5vh;
    width: 40px;
    height: 35px;
    border-radius: 10px;
    background-image: none;
    background-color: var(--blue-2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    align-self: center;
    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;
  }

  .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;
  }

/* =====================================
   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;
}


.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-brockman);
  text-decoration: none;
  font-weight: 500;
}

.btn-primaire {
  background: var(--pink-1);
  color: var(--pink-2);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--pink-1);
  justify-content: center;
  align-items: center;
  gap: 1vw;
}

.btn-primaire:hover {
    background: white;
    color: var(--pink-2);
    transition: all 0.3s ease-in-out;
    border: 2px solid var(--pink-2);
}

.btn-secondaire {
  border: 2px solid var(--blue-2);
  color: var(--blue-2);
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vw;
}
.btn-secondaire:hover {
    background: var(--blue-2);
    color: white;
    transition: all 0.3s ease-in-out;
}
.icon-arrow {
    display: inline-block;
    width: 0.9vw;
    height: 0.9vw;
    background-color: currentColor;
    -webkit-mask: url("../images/autres/arrow-projet.svg") no-repeat center;
    mask: url("../images/autres/arrow-projet.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

  /* Titre */
  .hero-titre {
    font-size: 1.9rem !important;
    line-height: 1.1;
    max-width: 100%;
    margin: 0;
    height: auto;
    text-align: center;
    width: 100%;
  }

  .hero-highlight {
    font-size: 1.9rem;
    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; }

  /* ================================
     CONTACT — colonne inversée
     formulaire en haut, infos en bas
  ================================ */
  .contact {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 28px;
  }

  /* ================================
     FORMULAIRE — passe en premier
  ================================ */
  .formulaire-infos {
    width: 100%;
    order: 1;
  }

  .nom-prenom,
  .mail-telephone {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  /* Inputs côte à côte — largeurs égales */
  #name, #firstname,
  #email, #phone {
    width: 48%;
    height: 48px;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  #message {
    width: 100%;
    height: 130px;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    resize: none;
  }

  .bouton-envoi {
    margin-top: 12px;
  }

  .formulaire-envoi {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 1rem;
  }

  /* ================================
     INFOS CONTACT — passe en second
  ================================ */
  .entetecontact {
    width: 100%;
    order: 2;
    align-items: flex-start;
    gap: 16px;
  }

  .textecontact {
    font-size: 1rem;
    line-height: 1.5;
  }

  .boutoncontact {
    width: 100%;
    padding: 14px 0;
    justify-content: center;
    border-radius: 50px;
  }

  .boutoncontact button {
    font-size: 1rem;
  }

  .textereseaux {
    font-size: 1.2rem;
    margin-top: 4px;
  }

  .logosreseaux {
    gap: 10px;
  }

  .logo-social {
    width: 28px;
    height: 28px;
  }

  .textereseaux2 {
    font-size: 1rem;
  }

  /* ================================
     FOOTER
  ================================ */
  .page-content {
    height: auto;
  }

  main {
    overflow: visible !important;
  }

  .footer-reveal {
    height: 54vw;
    position: sticky;
    bottom: 0;
    z-index: 1;
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  .footer-content {
    margin-top: -10vw;
  }

  .footer-content p {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .legal {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 4px;
  }

  .giant-txt {
    font-size: 0;
  }

  .giant-txt::after {
    content: 'nolan';
    font-size: 180px;
    font-weight: 900;
    position: absolute;
    bottom: -85px;
    left: -53vw;
  }
}


.footer-reveal .legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-reveal .legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.giant-txt {
    pointer-events: none;
}

/* ================================
   SCROLLBAR PERSONNALISÉE
================================ */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--blue-2) transparent;
}

/* Chrome / Safari / Edge */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--blue-2);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-1);
}

/* ================================
   SÉLECTION DE TEXTE
================================ */
::selection {
    background: var(--pink-2);
    color: var(--white-1);
}

/* Pour Firefox */
::-moz-selection {
    background: var(--pink-2);
    color: var(--white-1);
}

/* ================================
   CURSEUR PERSONNALISÉ
================================ */
*, body {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--blue-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid var(--blue-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.25s ease, height 0.25s ease, border-color 0.2s ease, background 0.2s ease;
    opacity: 0.6;
}

/* Hover sur éléments cliquables : anneau se remplit */
.cursor-ring.is-hovering {
    width: 52px;
    height: 52px;
    background: rgba(0, 56, 253, 0.08);
    border-color: var(--blue-1);
    opacity: 1;
}

/* Hover sur éléments roses (boutons primaires) */
.cursor-ring.is-pink {
    border-color: var(--pink-2);
    background: rgba(226, 48, 139, 0.08);
}

.cursor-dot.is-pink {
    background: var(--pink-2);
}