/* Barre du haut, commune à toutes les pages du site : logo, menu et « Commander », toujours visibles
   (figée en haut de l'écran). Sur téléphone, le menu passe dans le bouton ☰. Voir aussi assets/menu.js. */
html { scroll-padding-top: 88px; }
@media (max-width: 600px) { html { scroll-padding-top: 74px; } }

.barre-site {
  position: sticky; top: 0; z-index: 60;
  background: #1B1D48; color: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.barre-site.defile { border-bottom-color: rgba(230, 207, 150, .2); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); }
.barre-dedans {
  max-width: 1200px; margin: 0 auto; min-height: 80px;
  padding: 12px max(24px, env(safe-area-inset-right, 0px)) 12px max(24px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: min-height .2s ease;
}
.barre-site.defile .barre-dedans { min-height: 64px; }
.barre-site .logo { display: inline-flex; line-height: 0; text-decoration: none; }
.barre-site .jfy-logo { display: block; width: auto; height: 46px; transition: height .2s ease; }
.barre-site.defile .jfy-logo { height: 38px; }

/* Menu de l'ordinateur */
.barre-site .navigation { display: flex; align-items: center; gap: 28px; font-family: "Jost", system-ui, sans-serif; font-size: 15px; letter-spacing: .03em; }
.barre-site .navigation a { text-decoration: none; color: #D9DAEE !important; white-space: nowrap; }
.barre-site .navigation a:hover, .barre-site .navigation a[aria-current="page"] { color: #E6CF96 !important; }
.barre-site .navigation a[aria-current="page"] { box-shadow: 0 2px 0 #E6CF96; padding-bottom: 4px; }
.barre-site .navigation .bouton {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: 999px;
  background: #E6CF96; color: #1B1D48 !important; font-weight: 500; box-shadow: none;
}
.barre-site .navigation a.bouton[aria-current="page"] { color: #1B1D48 !important; box-shadow: 0 0 0 2px #1B1D48, 0 0 0 3px #E6CF96; padding-bottom: 10px; }

/* Menu du téléphone */
.barre-site .menu-mobile { display: none; position: relative; }
.barre-site .menu-mobile summary {
  list-style: none; position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #3A3C6E; background: #1B1D48; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.barre-site .menu-mobile summary::-webkit-details-marker { display: none; }
.barre-site .menu-mobile[open] summary { border-color: #E6CF96; }
.barre-site .menu-mobile[open] summary::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(8, 9, 30, .62); }
.barre-site .menu-mobile .panneau {
  position: absolute; right: 0; top: 58px; z-index: 3; width: min(320px, calc(100vw - 32px));
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  background: #0B0C24; border: 1px solid #3A3C6E; border-radius: 18px; box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .75);
}
.barre-site .menu-mobile .panneau a {
  display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  font-family: "Jost", system-ui, sans-serif; font-size: 19px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; color: #FFFFFF !important;
}
.barre-site .menu-mobile .panneau a + a:not(.panneau-cta) { border-top: 1px solid rgba(255, 255, 255, .08); }
.barre-site .menu-mobile .panneau a:hover, .barre-site .menu-mobile .panneau a[aria-current="page"] { background: #1E2048; color: #E6CF96 !important; }
.barre-site .menu-mobile .panneau a.panneau-cta { margin-top: 8px; justify-content: center; background: #E6CF96; color: #1B1D48 !important; border-radius: 999px; font-weight: 600; }
.barre-site .menu-mobile .panneau a.panneau-cta:hover { background: #F0DDAE; }

@media (max-width: 1020px) {
  .barre-site .navigation { display: none; }
  .barre-site .menu-mobile { display: block; }
}
@media (max-width: 600px) {
  .barre-dedans { min-height: 66px; padding-top: 8px; padding-bottom: 8px; }
  .barre-site.defile .barre-dedans { min-height: 58px; }
  .barre-site .jfy-logo { height: 36px; }
  .barre-site.defile .jfy-logo { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .barre-site, .barre-dedans, .barre-site .jfy-logo { transition: none; } }
