*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Trame technique discrète + halo en haut de page */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 380px at 80% -120px, var(--glow), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  opacity: .55; -webkit-mask-image: linear-gradient(#000 0, transparent 560px); mask-image: linear-gradient(#000 0, transparent 560px); }
h1,h2,h3,h4,p { margin: 0; } h1,h2,h3 { letter-spacing: -.025em; line-height: 1.15; font-weight: 700; }
a { color: inherit; } button,input,select { font: inherit; color: inherit; }
button { cursor: pointer; } img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icone { width: 1.1em; height: 1.1em; flex: none; }

.barre { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(160%) blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.barre__in { display: flex; align-items: center; gap: 14px; height: var(--nav-h); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: .98rem; line-height: 1.1; }
.marque__logo { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; white-space: nowrap; letter-spacing: -.04em; border-radius: 9px; background: var(--grad); color: var(--accent-ink); font-weight: 800; font-size: .95rem; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 6px 20px var(--glow); }
.marque small { display: block; font-family: var(--mono); font-weight: 500; font-size: .66rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-m); text-decoration: none; color: var(--ink-2); font-weight: 560; font-size: .86rem; transition: .15s; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r-m) var(--r-m) 0 0; }

.theme { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-elev); }
.theme button { display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); transition: .15s; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--bg-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.installer { display: none; border: 1px solid var(--line); background: var(--bg-elev); padding: 6px 12px; border-radius: var(--r-m); font-weight: 600; font-size: .82rem; align-items: center; gap: 7px; }
.installer.pret { display: inline-flex; }

.onglets { display: none; }
@media (max-width: 820px), (hover: none) and (pointer: coarse) and (max-width: 1100px) {
  .nav { display: none; } .theme { margin-left: auto; } .barre__in { height: 52px; }
  .onglets { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg-elev); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 20px rgb(0 0 0 / .08); }
  .onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: .8rem; font-weight: 650; letter-spacing: .02em; color: var(--ink-2); position: relative; }
  .onglets a .icone { width: 26px; height: 26px; }
  .onglets a[aria-current="page"] { color: var(--accent); }
  .onglets a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
  main { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
}
main { min-height: 70vh; }
.page { display: none; } .page.active { display: block; animation: entree .25s ease; }
@keyframes entree { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.pied { padding: 36px 0 90px; color: var(--ink-3); font-family: var(--mono); font-size: .74rem; text-align: center; letter-spacing: .02em; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab-h) + 86px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-m); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-2); max-width: calc(100% - 32px); }
@media (min-width: 821px) { .toast { bottom: 90px; } }
@media (max-width: 820px), (hover: none) and (pointer: coarse) and (max-width: 1100px) { .toast { bottom: calc(var(--tab-h) + 86px + env(safe-area-inset-bottom)); } }
.erreur { margin: 80px auto; max-width: 520px; padding: 22px; text-align: center; background: var(--bad-soft); border: 1px solid var(--bad); border-radius: var(--r-m); color: var(--bad); font-weight: 600; }
