@media (max-width: 768px) {

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

  /* ================================
     HERO
  ================================ */
  .hero {
    min-height: 0;
    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;
}


  /* Breadcrumb */
  .groupe-boutons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .bouton-blanc {
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 8px;
  }

  .separateur {
    font-size: 1.2rem;
  }

  /* Bloc hero : colonne — texte puis image */
  .infosproj {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 24px;
    margin-top: 0;
  }

  .infoshero {
    width: 100%;
    height: auto;
    gap: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

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

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

  .dot {
    width: 10px;
    height: 10px;
  }

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

  /* Description */
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
  }

  /* Boutons en colonne */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    gap: 10px;
  }

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

  .btn-primaire {
    font-size: 0.95rem;
    border-radius: 50px;
  }

  .btn-secondaire {
    font-size: 0.95rem;
    border-radius: 50px;
  }

  /* Image hero — pleine largeur sous le texte */
  .imagehero {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
  }

  .imghero {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* ================================
     SECTION 2 — DÉTAIL PROJET
  ================================ */
  .section2 {
    height: auto;
    padding: 32px 16px 40px;
    gap: 24px;
  }

  /* Titre section 2 */
  .h2-centre {
    width: 100%;
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.2;
  }

  /* Conteneur principal : colonne */
  .conteneurprojets {
    flex-direction: column;
    height: auto;
    gap: 20px;
    overflow: visible;
    align-items: stretch;
  }

  /* Partie texte : pleine largeur */
  .partietexte {
    width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 14px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .texte-haut h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .s2-tags {
    gap: 6px;
    margin-bottom: 10px;
  }

  .s2-tags span {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
  }

  .texte-haut p {
    font-size: 0.88rem;
    line-height: 1.5;
    height: 235px;
  }

  /* Vignettes : scroll horizontal */
  .s2-vignettes-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .s2-vignettes-wrapper::-webkit-scrollbar { display: none; }

  .s2-vignettes-flux {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    width: max-content;
  }

  .vignette-etape {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    padding: 6px;
  }

  .vignette-etape span {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  /* Image principale : pleine largeur */
  .partieimages {
    width: 100%;
    height: 80vw;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
  }

  /* Navigation : centré sous l'image */
  .slidenavigation {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .s2-nav {
    width: 150px;
    height: 65px;        
    padding-top: 5px;
    padding-left: 10px;
    border-radius: 999px;
    background-color: #FBFBFB;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    margin-top: 10px;
    flex-direction: row;
  }

  .nav-arrow img {
    width: 80px;
    height: 80px;
    transform: rotate(0deg);
  }

  /* ================================
     CTA — identique accueil
  ================================ */
  .cta-section {
    padding: 40px 20px 80px;
    border-radius: 0 0 32px 32px;
    background-color: #F9F7F8;
    position: relative;
    z-index: 2;
  }

  .contact-card {
    padding: 32px 24px 40px;
    border-radius: 28px;
    box-shadow: 0 3px 12px rgba(0, 18, 81, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 500px;
  }

  .s-sub {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
    width: 70%;
  }

  .cta-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 16px 0 20px;
  }

  .pink-box {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .pink-box .dot-rose {
    width: 10px;
    height: 10px;
  }
  .pink-box .dot-rose.tl-proj { top: -6px; left: -6px; }
  .pink-box .dot-rose.tr-proj { top: -6px; right: -6px; }
  .pink-box .dot-rose.bl-proj { bottom: -6px; left: -6px; }
  .pink-box .dot-rose.br-proj { bottom: -6px; right: -6px; }

  .cta-grid {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
  }

  .cta-item {
    font-size: 0.95rem;
    gap: 10px;
  }

  .cta-item img {
    width: 20px;
    height: 20px;
  }

  .btn-outline {
    padding: 14px 32px;
    font-size: 0;
    width: auto;
    display: inline-block;
  }

  .btn-outline::after {
    content: 'Contactez-moi !';
    font-size: 1rem;
    font-family: var(--font-brockman);
    font-weight: 700;
  }

  .curseurnolan {
    position: absolute;
    width: 100px;
    bottom: 85px;
    right: 40px;
  }

  /* ================================
     FOOTER — identique accueil
  ================================ */
  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: 170px;
    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);
}