/* Modèle 2 : barre de verre claire, ossature tassée à droite. Le verre est sur ::before (jamais sur
   l'en-tête lui-même : il deviendrait le repère des éléments fixes). */
.entete {
  position: fixed; top: var(--demobar-offset, 0px); left: 0; right: 0; z-index: 50;
  height: var(--entete-h);
  color: var(--encre);
}
.entete::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--eau);
  border-bottom: 1px solid rgb(16 38 27 / .14);
  opacity: 0; transition: opacity .25s var(--courbe);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .entete::before {
    background: rgb(220 235 228 / .84);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
  }
}
.entete[data-etat="defile"]::before, .menu-ouvert .entete::before { opacity: 1; }

.entete__dans {
  height: 100%;
  display: flex; align-items: center;
  padding-inline: max(var(--marge), env(safe-area-inset-left)) max(var(--marge), env(safe-area-inset-right));
}
.logo {
  flex: none; display: flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--encre); text-decoration: none;
}
.logo__signe { width: 28px; height: 28px; flex: none; }
.logo__eau { fill: var(--pin); transition: y .6s var(--courbe), height .6s var(--courbe); }
.logo__mot { height: 20px; width: auto; flex: none; }
.entete__haut {
  flex: none; display: flex; align-items: center; gap: 6px; margin-left: 18px;
  padding-left: 16px; border-left: 2px solid rgb(16 38 27 / .18);
  font: 600 16px/1 var(--titre); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.entete__nav { margin-left: auto; }
.entete__nav ul { display: flex; gap: 28px; }
.entete__nav a, .entete__tel {
  position: relative; display: flex; align-items: center; min-height: 44px;
  font: 500 15.5px/1 var(--texte); text-decoration: none; white-space: nowrap;
}
.entete__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--pin); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--courbe);
}
.entete__nav a[aria-current]::after { transform: none; }
.entete__tel { margin-left: 32px; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .entete__nav a:hover::after { transform: none; }
  .entete__tel:hover { color: var(--pin); }
  .curseur:hover { background: var(--encre); }
}

/* Le curseur à pointe basse : la tête de l'aiguille, en bouton. */
.curseur {
  flex: none; margin-left: 24px;
  display: grid; place-items: center;
  width: 112px; height: 52px; padding-bottom: 8px; transform: translateY(4px);
  background: var(--pin); color: #fff;
  font: 600 16px/1 var(--texte); text-decoration: none;
  border-radius: 4px 4px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 44px, calc(50% + 8px) 44px, 50% 52px, calc(50% - 8px) 44px, 0 44px);
  transition: background-color .2s;
}
.curseur:focus-visible { outline: none; background: var(--encre); box-shadow: inset 0 0 0 3px #fff; }

.bouton-menu {
  display: none; flex: none; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px; margin-left: 12px; padding: 0 4px 0 8px;
  font: 600 16px/1 var(--texte);
}
.bouton-menu__signe { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--courbe); }
.bouton-menu[aria-expanded="true"] .bouton-menu__signe { transform: rotate(90deg); }
.bouton-menu__mot { display: inline-grid; }
.bouton-menu__mot > * { grid-area: 1 / 1; }
.bouton-menu[aria-expanded="false"] .bouton-menu__mot > :last-child,
.bouton-menu[aria-expanded="true"] .bouton-menu__mot > :first-child { visibility: hidden; }

@media (max-width: 1023px) {
  .entete__nav, .entete__tel { display: none; }
  .bouton-menu { display: flex; }
  .curseur { margin-left: auto; }
}
@media (max-width: 767px) {
  .logo { gap: 8px; }
  .logo__signe { width: 24px; height: 24px; }
  .logo__mot { height: 17px; }
  .entete__haut { display: none; }
  .curseur { width: 100px; }
  .bouton-menu { margin-left: 2px; padding: 0 0 0 10px; }
}
@media (max-width: 379px) {
  .logo__mot { display: none; }
  .logo { min-width: 44px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .entete { position: absolute; }
}

/* Menu : une feuille basse de 70 dvh qui sort de derrière la règle. */
.menu-voile {
  position: fixed; inset: 0; z-index: 39; display: none;
  background: rgb(16 38 27 / .42);
}
.menu-ouvert .menu-voile { display: block; }
.menu {
  position: fixed; left: 0; right: 0; bottom: var(--regle-h); z-index: 40;
  height: 70dvh; max-height: calc(100dvh - var(--regle-h) - var(--entete-h) - var(--demobar-offset, 0px));
  display: none; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: 24px max(var(--marge), env(safe-area-inset-right)) 32px max(var(--marge), env(safe-area-inset-left));
  background: var(--encre); color: #fff;
  border-top: 2px solid var(--pin);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(calc(100% + var(--regle-h)));
  transition: transform .35s var(--courbe), display .35s allow-discrete;
}
.menu-ouvert .menu { display: flex; transform: none; }
@starting-style { .menu-ouvert .menu { transform: translateY(calc(100% + var(--regle-h))); } }
.menu-ouvert { overflow: hidden; }
.menu nav a {
  display: flex; align-items: center; gap: 14px; min-height: 60px;
  font: 700 clamp(34px, 10.5vw, 48px)/1 var(--titre); letter-spacing: -.01em; text-decoration: none;
}
.menu nav a::before {
  content: ""; width: 14px; height: 12px; flex: none; background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%); visibility: hidden;
}
.menu nav a[aria-current]::before { visibility: visible; }
.menu :focus-visible { outline-color: #fff; }
.menu__pied { display: grid; gap: 4px; font-size: 16px; color: #D5E5DC; }
.menu__tel {
  display: flex; align-items: center; min-height: 48px; width: max-content;
  font: 600 22px/1 var(--titre); font-variant-numeric: tabular-nums; color: #fff; text-decoration: none;
}
@media (min-width: 1024px) { .menu, .menu-voile { display: none !important; } }
