/* ─── Menu du site (partagé par toutes les pages) ─────────
   Un mot « Menu » en haut à gauche, qui ouvre un plein écran.
   Palette fixe : le menu garde la nuit d'Expérience Audio,
   quel que soit le thème de la page. */
.ea-menu-btn {
  position: fixed;
  top: clamp(1.5rem, 3.6vh, 2.6rem);
  right: clamp(1.6rem, 4vw, 3.2rem);
  z-index: 27;
  background: none; border: none; cursor: pointer;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: .7rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: inherit;
  padding: .3rem .1rem .3rem .34rem;
  opacity: .78;
  transition: opacity .7s ease, color .7s ease;
}
.ea-menu-btn:hover, .ea-menu-btn:focus-visible { opacity: 1; }
html.ea-menu-open .ea-menu-btn { color: #ECE7DC; opacity: .9; }
.ea-menu-x { display: inline-block; margin-left: .55em; font-size: 1.35em; line-height: 0; vertical-align: -.12em; letter-spacing: 0; }

/* Fond de l'en-tête (voir menu.js) : sous le logo texte, FR / EN et Menu,
   au-dessus du contenu qui défile */
.ea-entete-fond {
  position: fixed; top: 0; left: 0; right: 0; z-index: 19;
  height: clamp(4.8rem, 11vh, 6.6rem);
  pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.ea-entete-fond.on { opacity: 1; }
.wordmark, #wordmark, #back-link, #lang-bar, #topright, .top { z-index: 21; }

.ea-menu {
  position: fixed; inset: 0; z-index: 26;
  background: #0C0B09; color: #ECE7DC;
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12vh 8vw 6vh;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 1.12s cubic-bezier(.22,.61,.36,1), visibility 0s linear 1.12s;
}
html.ea-menu-open .ea-menu {
  opacity: 1; visibility: visible;
  transition: opacity 1.12s cubic-bezier(.22,.61,.36,1), visibility 0s;
}
html.ea-menu-open, html.ea-menu-open body { overflow: hidden; }

.ea-menu-cols {
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(3rem, 10vw, 9rem);
  margin: auto 0;
}
.ea-menu-head {
  font-size: .7rem; letter-spacing: .34em; text-transform: uppercase;
  padding-left: .34em; margin: 0 0 2.2rem;
  color: color-mix(in oklab, #ECE7DC 62%, #0C0B09);
}
.ea-menu ul { list-style: none; margin: 0; padding: 0; }
.ea-menu li { margin: 0 0 1.1rem; }
.ea-menu-link {
  display: inline-block;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 300; letter-spacing: -.01em; line-height: 1.15;
  color: color-mix(in oklab, #ECE7DC 78%, #0C0B09);
  text-decoration: none;
  transition: color .7s ease;
}
.ea-menu-link:hover, .ea-menu-link:focus-visible,
.ea-menu-link[aria-current="page"] { color: #ECE7DC; }
.ea-menu a:focus-visible, .ea-menu-btn:focus-visible {
  outline: none; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: .28em;
}
.ea-menu-link[aria-current="page"]::after {
  content: ''; display: inline-block;
  width: .32em; height: .32em; margin-left: .55em;
  border-radius: 50%; background: currentColor;
  vertical-align: middle; opacity: .6;
}
.ea-menu-link.is-soon { color: color-mix(in oklab, #ECE7DC 40%, #0C0B09); }
.ea-menu-link.is-soon { cursor: default; }
.ea-menu-soon {
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  vertical-align: middle; margin-left: .6em;
}
.ea-menu-link[aria-current="location"]::after {
  content: ''; display: inline-block;
  width: .32em; height: .32em; margin-left: .55em;
  border-radius: 50%; background: currentColor;
  vertical-align: middle; opacity: .6;
}
.ea-menu-link[aria-current="location"] { color: #ECE7DC; }
/* Lien qui s'ouvre dans un nouvel onglet */
.ea-menu-ext {
  display: inline-block; margin-left: .35em;
  font-size: .62em; vertical-align: .55em; opacity: .55;
}
.ea-menu-reach { margin-top: 2.4rem; }
.ea-menu-reach a {
  display: block; margin-bottom: .55rem;
  font-size: .86rem; letter-spacing: .02em;
  color: color-mix(in oklab, #ECE7DC 68%, #0C0B09);
  text-decoration: none; transition: color .7s ease;
}
.ea-menu-reach a:hover { color: #ECE7DC; }
/* Barre du bas : accès au HUB, langue, mentions */
.ea-menu-foot {
  width: 100%; max-width: 62rem;
  margin: 7vh 0 0; padding-top: 2.2rem;
  border-top: 1px solid color-mix(in oklab, #ECE7DC 12%, transparent);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem 2.4rem; flex-wrap: wrap;
}
.ea-menu-hub {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .7rem 1.25rem .7rem calc(1.25rem + .22em);
  border: 1px solid #E20612;
  border-radius: 999px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: #ECE7DC; text-decoration: none;
  transition: color .7s ease, background-color .7s ease;
}
/* Survol : le bouton se remplit de rouge, texte ivoire */
.ea-menu-hub:hover, .ea-menu-hub:focus-visible {
  background: #E20612; color: #ECE7DC; text-decoration: none;
}
/* « Se connecter au HUB » : seule touche rouge du menu (contour et flèche, #E20612) ;
   au survol, sur fond rouge, texte et flèche ivoire */
.ea-menu-hub span { color: #E20612; transition: transform .7s cubic-bezier(.22,.61,.36,1), color .7s ease; }
.ea-menu-hub:hover span, .ea-menu-hub:focus-visible span { color: #ECE7DC; }
.ea-menu-hub:hover span { transform: translateX(4px); }
.ea-menu-lang {
  display: flex; align-items: center; gap: .55rem;
  font-size: .7rem; letter-spacing: .24em;
}
.ea-menu-lang span { opacity: .3; }
.ea-menu-lang button {
  background: none; border: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: #ECE7DC;
  padding: .3rem .1rem; opacity: .55;
  transition: opacity .7s ease;
}
.ea-menu-lang button[aria-pressed="true"] { opacity: 1; }
.ea-menu-lang button:hover { opacity: .85; }
.ea-menu-legal { margin: 0; font-size: .7rem; letter-spacing: .08em; }
.ea-menu-legal a {
  color: color-mix(in oklab, #ECE7DC 62%, #0C0B09);
  text-decoration: none; transition: color .7s ease;
}
.ea-menu-legal a:hover { color: #ECE7DC; }
.ea-menu-legal .sep { opacity: .4; padding: 0 .7em; }

/* Entrée échelonnée */
.ea-menu-col, .ea-menu-foot {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
html.ea-menu-open .ea-menu-col,
html.ea-menu-open .ea-menu-foot { opacity: 1; transform: none; }
html.ea-menu-open .ea-menu-col:nth-child(1) { transition-delay: .18s; }
html.ea-menu-open .ea-menu-col:nth-child(2) { transition-delay: .3s; }
html.ea-menu-open .ea-menu-foot { transition-delay: .42s; }

@media (max-width: 640px) {
  /* Pas la place pour le logo texte central des pages entre « Menu » et
     FR/EN : le lien Accueil du menu le remplace */
  .wordmark, #wordmark { display: none !important; }
  .ea-menu-btn { top: 1.3rem; right: 1.2rem; font-size: .7rem; }
  .ea-menu { justify-content: flex-start; padding: 16vh 10vw 5vh; }
  .ea-menu-cols { grid-template-columns: 1fr; gap: 3rem; margin: 0 0 3rem; }
  .ea-menu-head { margin-bottom: 1.4rem; }
  .ea-menu li { margin-bottom: .8rem; }
  .ea-menu-foot { margin-top: auto; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ea-menu-col, .ea-menu-foot { transform: none; }
}
