@charset "UTF-8";

/* En-tête commun à l'accueil, à l'almanach et à la galerie. */
.hfs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 84px;
  background: #5c1526;
  color: #f7f2e9;
  border-bottom: 1px solid rgba(0,0,0,.25);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.hfs-header__inner {
  width: 100%;
  max-width: 1240px;
  min-height: 84px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem,4vw,4rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem,2.5vw,2.2rem);
}

/* Le cartouche du logo reste DANS l'en-tête, à toutes les largeurs.

   Il débordait auparavant sous l'en-tête, en `position:absolute`, pour un
   effet de plaque suspendue. Un élément absolu n'occupe aucune place : rien,
   en dessous, ne savait qu'il existait. Le contenu ne passait pas dessous par
   chance — à 1250 px, il restait cinq pixels entre le bas du logo et la
   première ligne de texte. Cinq pixels, c'est un accident qui attend : une
   police qui tombe autrement, un zoom, un intitulé qui passe à la ligne, et
   la collision se produit.

   La plaque reprend donc sa place dans le flux. L'en-tête grandit de ce qu'il
   faut pour la contenir. On perd l'effet de débordement ; on gagne un en-tête
   qui ne peut plus rien recouvrir, sur aucune page, à aucun zoom. */
.hfs-brand {
  align-self: center;
  flex: none;
  color: inherit;
  text-decoration: none;
}

.hfs-brand__panel {
  height: 68px;
  padding: 4px 12px 4px 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f7f2e9;
  border: 1px solid rgba(25,20,22,.15);
  box-shadow: 0 6px 16px rgba(28,8,14,.20);
}

.hfs-brand__mark { display: block; width: 56px; height: 56px; object-fit: contain; }
.hfs-brand__wordmark { display: grid; color: #71172a; font-family: "Newsreader", Georgia, serif; line-height: .84; white-space: nowrap; }
.hfs-brand__wordmark strong { font-size: 18px; font-weight: 600; }
.hfs-brand__wordmark span { margin-top: 4px; font-size: 15px; font-weight: 600; }
.hfs-brand__wordmark small { margin-top: 7px; font-family: "Manrope", Arial, sans-serif; font-size: 5px; font-weight: 700; letter-spacing: 2px; }

.hfs-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(.35rem,.85vw,1rem);
  font-size: .75rem;
  font-weight: 600;
}

.hfs-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: inherit;
  opacity: .88;
  text-decoration: none;
  white-space: nowrap;
}

.hfs-nav a:hover,
.hfs-nav a:focus-visible,
.hfs-nav a[aria-current="page"] { opacity: 1; border-bottom-color: #d99a2b; }

.hfs-nav .hfs-nav__gallery,
.hfs-nav .hfs-nav__private { padding: 0 .68rem; border: 1px solid rgba(247,242,233,.35); opacity: 1; }
.hfs-nav .hfs-nav__private { color: #f0c66e; }

.hfs-menu-toggle,
.hfs-mobile-nav { display: none; }

.hfs-menu-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid rgba(247,242,233,.35);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hfs-menu-toggle span:not(.hfs-sr-only) { display: block; height: 1px; margin: 4px 0; background: currentColor; }
.hfs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hfs-mobile-nav {
  position: fixed;
  z-index: 999;
  inset: 84px 0 0;
  padding: 1.5rem clamp(1.25rem,4vw,4rem) 2rem;
  background: #5c1526;
  color: #f7f2e9;
  overflow-y: auto;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.hfs-mobile-nav a {
  min-height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(247,242,233,.22);
  color: inherit;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  text-decoration: none;
}

.hfs-mobile-nav a:hover,
.hfs-mobile-nav a:focus-visible,
.hfs-mobile-nav a[aria-current="page"],
.hfs-mobile-nav__private { color: #f0c66e; }

@media (max-width: 1180px) {
  .hfs-nav { display: none; }
  .js .hfs-menu-toggle { display: block; }
  .hfs-mobile-nav { display: block; }
  .js .hfs-mobile-nav[hidden] { display: none; }
}

/* En dessous de 1180 px, l'en-tête et sa plaque se resserrent. La plaque est
   déjà dans le flux à toutes les largeurs : il ne s'agit ici que de gagner
   quelques pixels de hauteur sur les petits écrans. */
@media (max-width: 1180px) {
  .hfs-header,
  .hfs-header__inner { min-height: 76px; }
  .hfs-brand__panel { height: 60px; padding: 4px 10px 4px 5px; gap: 6px; }
  .hfs-brand__mark { width: 50px; height: 50px; }
  .hfs-brand__wordmark strong { font-size: 16px; }
  .hfs-brand__wordmark span { font-size: 13px; }
  .hfs-mobile-nav { inset: 76px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hfs-mobile-nav { scroll-behavior: auto; }
}
