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

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

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

.m-logo a {
  font-weight: 200;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}



/* =============================== */
/* HAMBURGER (MOBILE ONLY)         */
/* =============================== */
.m-burger {
  margin-left: auto;
  width: 36px;
  height: 28px;
  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: #000;
  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: 100010;
}

.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: #f5eeda;
  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; }




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





/* =============================== */
/* 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: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 200;
    white-space: nowrap;
    transition: color 0.25s ease;
  }

  .m-nav-desktop a:hover {
    color: #000;
	text-decoration: underline;
	text-underline-offset: 6px;      /* plus bas */
    text-decoration-thickness: 2px;
	text-decoration-color: #398717;
  }
}

header a.active {
  text-decoration: underline;
  text-decoration-color: #398717;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  color: #398717; 
}

