/* Layout : bandeau d'ouverture sur fond d'alvéoles, puis rangées alternées texte / capture, téléchargement en deux cartes. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eceef5;
  --fg: #121623;
  --muted: #586079;
  --line: #d9dce8;
  --accent: #3466f0;
  --accent-ink: #ffffff;
  --honey: #c98415;
  --code-bg: #121623;
  --code-fg: #e6e9f2;
  --cell: rgba(52, 102, 240, .09);
  --shadow: 0 24px 60px -24px rgba(18, 22, 35, .35);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d14; --surface: #121724; --surface-2: #1a2030; --fg: #e9ecf4; --muted: #9aa3ba;
    --line: #262d40; --accent: #5b8bff; --accent-ink: #0a0d14; --honey: #f0b14a;
    --code-bg: #05070c; --code-fg: #e6e9f2; --cell: rgba(91, 139, 255, .10);
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d14; --surface: #121724; --surface-2: #1a2030; --fg: #e9ecf4; --muted: #9aa3ba;
  --line: #262d40; --accent: #5b8bff; --accent-ink: #0a0d14; --honey: #f0b14a;
  --code-bg: #05070c; --code-fg: #e6e9f2; --cell: rgba(91, 139, 255, .10);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--f-mono); }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }

/* Barre de navigation */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 800 22px/1 var(--f-display); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav ul a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: 600 15px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 760px) { .nav ul { display: none; } .nav .btn { margin-left: auto; } }

/* Ouverture */
.hero { position: relative; overflow: hidden; padding-block: 72px 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; color: var(--cell);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 75%); }
.hero-bg svg { width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font: 500 13px/1.4 var(--f-mono); color: var(--muted); list-style: none; padding: 0; }
.hero .facts li::before { content: "⬡ "; color: var(--honey); }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font: 400 12px/1 var(--f-mono); color: var(--muted); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot .bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.hero .shot { margin-bottom: -2px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Bande « ce qui est dedans » */
.stack { background: var(--surface); border-block: 1px solid var(--line); }
.stack .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 36px; }
.stack div { min-width: 0; }
.stack b { display: block; font: 700 20px/1.2 var(--f-display); }
.stack span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stack .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
section { padding-block: 96px; }
.head { max-width: 680px; margin-bottom: 56px; }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-top: 12px; }
.head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature:nth-of-type(even) .txt { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.feature .txt > p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 26px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 13px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature:nth-of-type(even) .txt { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 96px; }
.more article { background: var(--surface); padding: 28px; min-width: 0; }
.more h3 { font-size: 20px; font-weight: 700; }
.more p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.more button { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px/1 var(--f-body); cursor: pointer; }
@media (max-width: 860px) { .more { grid-template-columns: minmax(0, 1fr); } }

/* Installation */
.install { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 54px; margin-bottom: 18px; background: var(--accent); color: var(--accent-ink);
  font: 800 22px/1 var(--f-display); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps h3 { font-size: 22px; font-weight: 700; }
.steps p { color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Téléchargement */
.dl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card.main { border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 28px; font-weight: 800; }
.card p { color: var(--muted); }
.tag { align-self: flex-start; font: 500 12px/1 var(--f-mono); padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--honey) 16%, transparent); color: var(--honey); letter-spacing: .04em; }
.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; font-size: 14px; margin: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-family: var(--f-mono); font-size: 13px; overflow-wrap: anywhere; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
pre { margin: 0; background: var(--code-bg); color: var(--code-fg); border-radius: 10px; padding: 16px 18px; font-size: 13px; line-height: 1.7; overflow-x: auto; }
pre .c { color: #7d879f; }
.req { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 32px; border: 1px dashed var(--line); border-radius: 16px; }
.req div { min-width: 0; }
.req b { display: block; font: 700 17px/1.3 var(--f-display); }
.req span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .dl { grid-template-columns: minmax(0, 1fr); } .req { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }

/* Agrandissement des captures */
dialog { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); }
dialog::backdrop { background: rgba(5, 7, 12, .82); }
dialog img { display: block; max-width: 100%; max-height: 88vh; border-radius: 10px; }
dialog p { color: #e6e9f2; text-align: center; margin-top: 10px; font-size: 14px; }
dialog button { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(5, 7, 12, .7); color: #fff; font-size: 20px; cursor: pointer; }

/* WordPress : barre d'administration */
.admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 46px); } }
