/* ==========================================================================
   LAYOUT — barre de navigation, menu mobile plein écran, barre d'action mobile, pied de page
   ========================================================================== */

/* ---------- Navigation */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(6,8,14,.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 28px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logoimg { height: 40px; width: auto; object-fit: contain; filter: drop-shadow(0 0 16px rgba(25,211,162,.4)); transition: filter .3s, transform .3s; }
.logo:hover .logoimg { filter: drop-shadow(0 0 22px rgba(25,211,162,.6)); transform: scale(1.04); }

.links { display: flex; gap: 24px; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--mut); }
.links a { position: relative; }
.links a:hover { color: var(--txt); }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--acc); transform: scaleX(0); transition: transform .3s; }
.links a:hover::after { transform: scaleX(1); }

@media (max-width: 1080px) { .links { gap: 16px; font-size: 13px; } }
@media (max-width: 940px)  { .links { display: none; } }
@media (max-width: 480px)  { .logoimg { height: 34px; } .nav .wrap { gap: 16px; } }

/* ---------- Burger + menu plein écran */
.burger, .mnav, .mbar { display: none; }
@media (max-width: 940px) {
  .burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); flex: none; }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--txt); transition: transform .3s; }
  body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav .wrap { gap: 10px; }
  .nav .tg-link { margin-left: auto; }

  .mnav { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(6,8,14,.96); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.menu-open .mnav { opacity: 1; pointer-events: auto; }
  .mnav-in { display: flex; flex-direction: column; padding: 96px 6vw 30px; gap: 2px; height: 100%; overflow: auto; }
  .mnav-in > a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 24px; padding: 14px 0; border-bottom: 1px solid rgba(38,52,73,.6); transform: translateY(10px); opacity: 0; transition: transform .4s, opacity .4s; }
  body.menu-open .mnav-in > a { transform: none; opacity: 1; }
  .mnav-in .btn { margin-top: 14px; width: 100%; padding: 16px; }
  .mnav-cta { margin-top: 28px !important; }
}

/* ---------- Barre d'action en bas (mobile) */
@media (max-width: 700px) {
  .mbar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 38;
    padding: 8px; border-radius: 999px; background: rgba(12,17,27,.88); backdrop-filter: blur(14px); border: 1px solid var(--line);
    box-shadow: 0 14px 40px -10px rgba(0,0,0,.7); transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  body.show-bar .mbar { transform: none; }
  body.menu-open .mbar { transform: translateY(140%); }
  .mbar .btn { flex: 1; padding: 13px 18px; font-size: 15px; }
  .mbar-coach { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #2AABEE, #1E88C8); color: #fff; flex: none; }
}

/* ---------- Pied de page */
.foot-logo { text-align: center; padding: 40px 0 10px; }
.foot-logo img { height: 40px; width: auto; margin-inline: auto; opacity: .5; filter: grayscale(.3); }

footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--mut); font-size: 13.5px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: start; }
.legal { display: flex; align-items: flex-start; max-width: 640px; }
.age { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 13px; margin-right: 12px; flex: none; }
.foot-warn { margin-top: 14px; max-width: 640px; font-size: 12.5px; color: #7F8BA0; }
.foot-links { display: grid; gap: 10px; justify-items: start; font-weight: 600; }
.foot-links a { color: var(--mut); transition: color .2s; }
.foot-links a:hover { color: var(--acc); }
.foot-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  footer { padding-bottom: 110px; } /* place pour la barre d'action */
  .foot-links a { display: block; padding: 8px 0; }
}
