@media (max-width: 767px) {

  /* =====================
   OVERLAY
===================== */
  #overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    /* juste sous le menu */
  }

  #overlay.visible {
    display: block;
    width: 50%;
    left: 0;
    height: 100vh;
  }

  /* =====================
   TOP BAR & NAV & HAMBURGER
===================== */

  #Top_bar_sticky {
    display: none;
  }

  #Top_bar {
    position: sticky;
    top: 0;
    left: 0;
  }

  #Top_bar.scrolled {
    position: fixed;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  }

  #Top_bar .container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
  }

  #Top_bar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #Top_bar .logo img {
    max-height: 100px;
    width: auto;
  }

  .hamburger {
    position: absolute;
    display: flex;
    z-index: 10003;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  /*3 barres*/
  .hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--light);
    transition: transform 0.3s, opacity 0.3s;
  }

  /*croix*/
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hamburger.open p {
    color: var(--light);
  }

  nav#menu ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    /*prend toute la page*/
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 10002;

    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
  }

  nav#menu ul.open {
    transform: translateX(0);
    /* glisse vers la gauche pour apparaître */
  }

  nav#menu ul li a {
    font-size: 20px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  #Footer .footer_copy .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  #Footer .copyright {
    flex: 1;
  }

  #Footer .social {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* à droite */
    gap: 12px;
  }
}