/* SPDX-License-Identifier: GPL-3.0-or-later - Copyright (C) 2026 Patrick JAILLET */
:root {
  --bg: #0E1014; --card: #161920; --border: #252A35; --text: #E8EAF0; --muted: #8B93A7;
  --a: #FF5A96; --b: #465AFF; --ok: #3DDC97;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif; }
a { color: #9DA8FF; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { position: sticky; top: 0; z-index: 10; background: rgba(14,16,20,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }
.lang { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 4px 14px; font: inherit; cursor: pointer; }
.lang:hover { border-color: #465066; }
.hero { text-align: center; padding: 72px 0 40px; background: radial-gradient(600px 300px at 80% 0%, rgba(70,90,255,.28), transparent), radial-gradient(500px 260px at 10% 10%, rgba(255,90,150,.22), transparent); }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff; background: linear-gradient(135deg, #C2185B, var(--b)); }
.btn:hover { filter: brightness(1.12); }
.btn.sec { background: var(--card); border: 1px solid var(--border); color: var(--text); margin-left: 10px; }
.badges { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.badge { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--muted); }
.shot { display: block; max-width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.55); margin: 36px auto 0; }
section { padding: 56px 0; }
h2 { font-size: 30px; margin: 0 0 24px; letter-spacing: -.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.two figure, .gallery figure { margin: 0; }
.two img, .gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--border); display: block; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
ol.steps { padding-left: 22px; } ol.steps li { margin: 8px 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
table.compare th, table.compare td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare th[scope="row"], table.compare thead th:first-child { text-align: left; font-weight: 400; }
table.compare thead th { font-weight: 700; background: rgba(255,255,255,.03); }
table.compare tr.sec th { text-align: left; color: var(--text); font-weight: 700; background: rgba(255,255,255,.05); }
table.compare td { color: var(--muted); }
table.compare td.yes { color: var(--ok); font-weight: 700; }
table.compare td.no { color: var(--muted); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about { display: grid; gap: 6px; color: var(--muted); }
.about b { color: var(--text); }
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
html[lang="en"] [data-lang="fr"], html[lang="fr"] [data-lang="en"] { display: none !important; }
.two img, .gallery img, #hero { cursor: zoom-in; }
#lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(8,9,12,.92); cursor: zoom-out; padding: 16px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 10px 50px rgba(0,0,0,.6); }

/* Pages de contenu (guide, galerie, reference, recherche) */
.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--card); color: var(--text); border: 2px solid var(--a); border-radius: 8px; padding: 8px 14px; }
.skip:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #9DA8FF; outline-offset: 2px; border-radius: 6px; }
nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--a); }
.menu { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 760px) { header.top .wrap { height: auto; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; } nav { flex-wrap: wrap; gap: 6px 14px; margin-left: 0; } }
.page { padding-top: 36px; padding-bottom: 56px; }
.page h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.5px; }
.page h2 { font-size: 24px; margin: 36px 0 12px; }
.page h3 { font-size: 19px; margin: 26px 0 8px; }
.page p, .page li { max-width: 78ch; }
.page .lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; gap: 12px; } }
.side { position: sticky; top: 76px; align-self: start; font-size: 15px; }
@media (max-width: 860px) { .side { position: static; } }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: 2px 0; }
.side a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.side a:hover { color: var(--text); background: var(--card); }
.side a[aria-current="page"] { color: var(--text); background: var(--card); border: 1px solid var(--border); }
.prose ol, .prose ul { padding-left: 24px; }
.prose li { margin: 6px 0; }
code { font: 0.92em/1.4 Consolas, "Cascadia Mono", Menlo, monospace; background: rgba(255,255,255,.07); border-radius: 5px; padding: 1px 5px; }
pre { background: #0A0C10; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow: auto; max-height: 560px; margin: 12px 0; }
pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.5; white-space: pre; }
dl.gloss dt { font-weight: 700; margin-top: 16px; }
dl.gloss dd { margin: 2px 0 0; color: var(--muted); max-width: 78ch; }
table.ref { border-collapse: collapse; width: 100%; font-size: 15px; }
table.ref th, table.ref td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.ref thead th { background: rgba(255,255,255,.04); }
table.ref td { color: var(--muted); }
table.ref td:first-child { color: var(--text); white-space: nowrap; }
table.ref tr:target td, table.ref tr:target th { background: rgba(70,90,255,.18); }
.tablewrap:focus-visible { outline-offset: -3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chip { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--b); border-color: transparent; color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.thumb { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; height: 100%; }
.thumb a { display: block; color: inherit; text-decoration: none; height: 100%; }
.thumb a:hover { border-color: #465066; }
.thumb img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: #000; }
.thumb .t { padding: 10px 12px 12px; }
.thumb b { display: block; }
.thumb span.c { color: var(--muted); font-size: 13px; }
.thumbs li[hidden] { display: none; }
.hero-img { width: 100%; max-width: 760px; height: auto; border-radius: 14px; border: 1px solid var(--border); display: block; margin: 0 0 18px; }
.search-box { display: flex; gap: 10px; margin: 0 0 18px; max-width: 640px; }
.search-box input { flex: 1; min-width: 0; background: var(--card); color: var(--text); border: 1px solid #465066; border-radius: 12px; padding: 11px 14px; font: inherit; }
.results { list-style: none; padding: 0; margin: 0; }
.results li { padding: 12px 0; border-bottom: 1px solid var(--border); max-width: 78ch; }
.results a { font-weight: 600; }
.results p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.results mark { background: rgba(255,90,150,.28); color: var(--text); border-radius: 3px; }
.kind { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-left: 8px; font-weight: 400; }
.notice { border: 1px solid var(--border); border-left: 4px solid var(--b); background: var(--card); border-radius: 10px; padding: 12px 16px; margin: 16px 0; max-width: 78ch; }
