@charset "utf-8";
/* =============================== */
/* HEADER FULL WIDTH               */
/* =============================== */
.m-header {
  background: rgba(0,0,0,0);
  backdrop-filter: none;
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-bottom: 0px solid rgba(255,255,255,0.15);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;

  display: flex;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
}







/* MENU TRANSPARENT PAR DÉFAUT */
.m-header {
  background-color: rgba(0,0,0,0); /* totalement transparent */
  backdrop-filter: blur(2px); /* blur léger pour éviter l'effet d'éclaircissement */
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}

.m-header:hover {
  background-color: rgba(0,0,0,0.15); /* assombrissement réel */
  backdrop-filter: blur(4px); /* blur léger pour éviter l'effet "clair" */
}



/* Effet hover global sur la barre desktop */
@media (min-width: 1200px) {
  .m-header:hover {
    background-color: rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(3px);
  }
}

.m-logo a {
  font-weight: 200;
  font-size: 18px;
  color: rgba(245, 238, 218, 0.55);
  text-decoration: none;
  white-space: nowrap;
}


header a:hover {
    color: #ffffff;
}


/* =============================== */
/* HAMBURGER (MOBILE ONLY)         */
/* =============================== */
.m-burger {
  margin-left: auto;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.m-burger span {
  display: block;
  height: 3px;
  background: rgba(245, 238, 218, 0.65);
  border-radius: 2px;
  transition: transform 0.35s ease;
}

/* Animation horizontale */
.m-burger.active span:nth-child(1) { transform: translateX(6px); }
.m-burger.active span:nth-child(2) { transform: translateX(-6px); }
.m-burger.active span:nth-child(3) { transform: translateX(6px); }

/* =============================== */
/* MENU MOBILE (SLIDE-IN)          */
/* =============================== */
.m-nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  padding-top: 80px;
  transition: right 0.3s ease;
  z-index: 9998;
}

.m-nav-mobile.open { right: 0; }

.m-nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-nav-mobile li { margin: 22px 0; }

.m-nav-mobile a {
  color:  rgba(245, 238, 218, 0.65);
  text-decoration: none;
  font-size: 22px;
  font-weight: 200;
  padding-left: 20px;
  display: block;
  transition: color 0.25s ease;
}

.m-nav-mobile a:hover { color: #ffffff; }

/* =============================== */
/* MENU DESKTOP (ALIGNÉ À DROITE)  */
/* =============================== */
.m-nav-desktop {
  display: none;
}

@media (min-width: 1200px) {

  .m-burger { display: none; }
  .m-nav-mobile { display: none; }

  .m-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    margin-left: auto;
  }

  .m-nav-desktop a {
    color: rgba(245, 238, 218, 0.65);
    text-decoration: none;
    font-size: 18px;
    font-weight: 200;
    white-space: nowrap;
    transition: color 0.25s ease;
  }

  .m-nav-desktop a:hover {
    color: #fff;
  }
}

.m-nav a {
    margin-left: 36px;
}

/* Réduire la largeur du menu hamburger sur tablette */
@media (min-width: 601px) and (max-width: 1199px) {
    .m-nav-mobile {
        width: 35vw;      /* 30–40% est idéal sur iPad */
        max-width: 420px; /* limite élégante */
    }
}