@media (max-width: 768px) {

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

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


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

  .hero-conteneur {
    height: auto;
    min-height: none;
    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 — identique accueil */
  .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;
  }

  /* Sous-titre */
  .s3-sub {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-top: 0;
    text-align: center;
    width: 80%;
    align-self: center;
  }

  /* Titre hero */
  .hero-titre {
    font-size: 2rem !important;
    line-height: 1.1;
    max-width: 100%;
    margin: 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; }

  /* Description */
  .infoshero {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  /* ================================
     CARTES FILTRES — grille 2×2
  ================================ */
  .hero-cartes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
    height: auto;
  }

  .carte {
    width: 100%;
    border-radius: 16px;
    padding: 12px 10px 0;
    min-height: 100px;
  }

  .badge {
    font-size: 0.6rem;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .h3-titre {
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 10px;
  }

  .img-logos {
    width: 110%;
    margin-top: 8px;
  }

  /* ================================
     SECTION PROJETS — 1 colonne
  ================================ */
  .projects-section {
    padding: 24px 16px 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Carte projet — colonne verticale (même style accueil) */
  .project-card {
    padding: 16px;
    border-width: 2px;
    transform: none !important;
  }

  .project-card:hover {
    transform: none !important;
    box-shadow: none;
  }

  /* Dots */
  .dot-blue, .dot-rose {
    width: 11px;
    height: 11px;
  }

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

  /* Layout interne : colonne */
  .card-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    height: auto;
  }

  /* Image 16/13 */
  .card-image-box {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 13;
    border-radius: 10px;
  }

  /* Texte */
  .card-text-box {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
  }

  .tag {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-width: 1px;
  }

  .card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .card-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 12px;
    color: #555;
  }

  .btn-view-project {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    gap: 10px;
    border-width: 1px;
  }

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

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