/* Menu en pilule flottante, translucide. Activé par <body class="nav-float">. Logo aligné sur la colonne du hero (1240 px, marge 24 px ; 16 px sur mobile). */
.nav-float .site-header { inset: 18px 24px auto 24px; max-width: 1280px; margin: 0 auto; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 18px 40px -24px rgba(13, 26, 20, .38), 0 1px 0 rgba(255, 255, 255, .6) inset; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-float .site-header { background: rgba(255, 255, 255, .66); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
}
.nav-float .site-header.scrolled { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .74); box-shadow: 0 18px 44px -22px rgba(13, 26, 20, .42); }
.nav-float .site-header.hidden { transform: translateY(calc(-100% - 28px)); }
.nav-float .site-header .header-row { height: 64px; max-width: none; padding: 0 10px 0 22px; }
.nav-float .site-header .brand img { width: 30px; height: 30px; }
.nav-float .site-header .nav-pill { background: rgba(13, 91, 63, .1); }
.nav-float .site-header .btn-sm { border-radius: 999px; }
.nav-float .mobile-drawer { inset: 92px 16px auto 16px; max-height: calc(100vh - 108px); border-radius: 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 30px 60px -30px rgba(13, 26, 20, .45); }
.nav-float .mobile-drawer nav a:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .nav-float .site-header { inset: 12px 12px auto 12px; }
  .nav-float .site-header .header-row { height: 58px; padding: 0 8px 0 16px; }
  .nav-float .mobile-drawer { inset: 80px 12px auto 12px; max-height: calc(100vh - 96px); }
}
.nav-float .mobile-toggle { border-radius: 999px; }
.nav-float .mobile-toggle:hover, .nav-float .mobile-toggle[aria-expanded="true"] { background: rgba(13, 91, 63, .08); }
.nav-float .mobile-toggle span::before, .nav-float .mobile-toggle span::after { background: var(--ink); }
/* Logo plus présent dans la pilule */
.nav-float .site-header .header-row { height: 72px; padding: 0 12px 0 20px; }
.nav-float .site-header .brand img { width: 42px; height: 42px; }
@media (max-width: 760px) {
  .nav-float .site-header .header-row { height: 64px; padding: 0 10px 0 14px; }
  .nav-float .site-header .brand img { width: 40px; height: 40px; }
  .nav-float .mobile-drawer { inset: 86px 12px auto 12px; }
}
/* Logo agrandi et aligné sur la colonne du hero (bord gauche du texte) */
.nav-float .site-header { left: max(8px, calc(50% - 624px)); right: max(8px, calc(50% - 624px)); max-width: none; margin: 0; box-sizing: border-box; }
.nav-float .site-header > .container { max-width: none; padding: 0; }
.nav-float .site-header .header-row { height: 80px; padding: 0 12px 0 27px; }
.nav-float .site-header .brand img { width: 54px; height: 54px; }
@media (max-width: 1247px) {
  .nav-float .site-header .header-row { padding-left: 15px; }
}
@media (max-width: 760px) {
  .nav-float .site-header { left: 6px; right: 6px; top: 10px; }
  .nav-float .site-header .header-row { height: 64px; padding: 0 8px 0 9px; }
  .nav-float .site-header .brand img { width: 46px; height: 46px; }
  .nav-float .mobile-drawer { inset: 82px 6px auto 6px; }
}
/* 01/12 : pilule plus basse (64 px au lieu de 80, logo 44 px), marge haute réduite */
.nav-float .site-header { top: 14px; }
.nav-float .site-header .header-row { height: 64px; padding: 0 10px 0 27px; }
.nav-float .site-header .brand img { width: 44px; height: 44px; }
@media (max-width: 1247px) {
  .nav-float .site-header .header-row { padding-left: 15px; }
}
@media (max-width: 760px) {
  .nav-float .site-header { top: 8px; }
  .nav-float .site-header .header-row { height: 54px; padding: 0 5px 0 9px; }
  .nav-float .site-header .brand img { width: 40px; height: 40px; }
  .nav-float .mobile-toggle { width: 44px; height: 44px; }
  .nav-float .mobile-drawer { inset: 70px 6px auto 6px; max-height: calc(100vh - 86px); }
}
html:has(body.nav-float) { scroll-padding-top: 92px; }
/* 01/12 : pilule un peu plus vitrée (fond plus transparent, reflet léger en haut), lisibilité gardée */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-float .site-header { background: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .5) 100%); backdrop-filter: blur(16px) saturate(1.7); -webkit-backdrop-filter: blur(16px) saturate(1.7); border-color: rgba(255, 255, 255, .85); box-shadow: 0 18px 40px -24px rgba(13, 26, 20, .38), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25); }
  .nav-float .site-header.scrolled { background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .6) 100%); }
}
