:root {
  --header-height: 97px;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: #0b1220; color: #e1e8ef; font-family: var(--font-body); line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: #55d8ef; }
a:hover { color: #a6ecf6; }
.page-wrapper { min-height: 100vh; }
.page-main { min-height: 60vh; }
[hidden] { display: none !important; }

.header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(85,216,239,.1); background: rgba(7,16,31,.96); backdrop-filter: blur(16px); }
.header__container { width: min(1180px, calc(100% - 48px)); height: var(--header-height); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header__logo { flex: 0 0 auto; display: grid; gap: .15rem; color: inherit; text-decoration: none; }
.header__title { color: #55d8ef; background: linear-gradient(90deg,#28caeb,#a48ae5); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: "Paytone One", sans-serif; font-size: 1.48rem; line-height: 1.15; letter-spacing: .01em; }
.header__subtitle { color: #b9c6d7; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.header__nav { min-width: 0; }
.header__nav-list { display: flex; align-items: center; gap: clamp(.45rem, 2vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.header__nav-item { display: flex; align-items: center; }
.header__nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem .85rem; border-radius: 4px; color: #c8d3df; font-size: .92rem; line-height: 1; text-decoration: none; }
.header__nav-link:hover, .header__nav-link.active { color: #55d8ef; background: #102a3d; }
.header__nav-link[href="auteur-framework.html"].active, .header__nav-link[href="auteur-framework.html"]:hover { color: #a48ae5; }
.mobile-menu-toggle { display: none; width: 54px; height: 54px; padding: 0 15px; border: 1px solid rgba(166,236,246,.16); border-radius: 8px; color: #fff; background: #111a2b; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 1100; top: 0; right: 0; width: min(86vw, 380px); height: 100dvh; padding: 5.5rem 1.5rem 2rem; transform: translateX(105%); visibility: hidden; background: #0d1828; box-shadow: -24px 0 60px rgba(0,0,0,.35); transition: transform .24s ease, visibility .24s; }
.mobile-menu.active { transform: translateX(0); visibility: visible; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 1rem .75rem; border-bottom: 1px solid rgba(166,236,246,.12); color: #e1e8ef; font-size: 1.1rem; text-decoration: none; }
.mobile-menu nav a.active { color: #55d8ef; }
.mobile-menu-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 48px; height: 48px; border: 1px solid rgba(166,236,246,.16); border-radius: 8px; color: #fff; background: transparent; font-size: 2rem; cursor: pointer; }
.mobile-menu-backdrop { position: fixed; z-index: 1050; inset: 0; visibility: hidden; opacity: 0; background: rgba(3,8,16,.7); transition: opacity .2s, visibility .2s; }
.mobile-menu-backdrop.active { visibility: visible; opacity: 1; }
body.menu-open { overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.15rem; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { color: #fff; background: #087f99; box-shadow: 0 12px 28px rgba(0,127,153,.2); }
.btn--primary:hover { color: #fff; background: #006f88; box-shadow: 0 16px 34px rgba(0,111,136,.26); }
.btn--ghost, .btn--secondary { color: #eef3f7; border-color: rgba(200,211,223,.22); background: rgba(20,32,51,.35); }
.btn--ghost:hover, .btn--secondary:hover { color: #fff; border-color: rgba(85,216,239,.45); background: rgba(20,42,61,.7); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }

:focus-visible { outline: 3px solid rgba(85,216,239,.55); outline-offset: 3px; }

@media (max-width: 840px) {
  :root { --header-height: 82px; }
  .header__container { width: min(100% - 32px, 1180px); }
  .header__nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .header__title { font-size: 1.26rem; }
  .header__subtitle { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
