@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito-latin.woff2") format("woff2"); }
/* Yapuka website v2. Dark, precise, product-first. Geist for text, Geist Mono for specs,
   One accent: orange #ff6b35 (buttons carry dark text, 6:1). */
@font-face { font-family: "Geist"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("../fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-style: normal; font-display: swap; src: url("../fonts/geistmono-latin.woff2") format("woff2"); }

:root {
  --bg: #0a0b0d; --surface: #13151a; --surface-2: #1a1d23; --line: #262a31; --ink: #eef0f3; --muted: #9aa1ab;
  --accent: #ff6b35; --accent-text: #ff6b35; --tech: #ffb08e;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --script: "Parisienne", "Snell Roundhand", cursive;
  --r: 14px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
/* a light band: same system, inverted */
.light { --bg: #f3f2ee; --surface: #ffffff; --surface-2: #e9e8e2; --line: #d8d6cf; --ink: #101215; --muted: #4d535b; --accent-text: #a83d14; --tech: #8a3510; color-scheme: light; background: var(--bg); color: var(--ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #0a0b0d; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; word-spacing: .08em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: #fff; color: #000; z-index: 300; white-space: nowrap; }
.skip:focus { width: auto; height: auto; min-height: 44px; display: inline-flex; align-items: center; clip-path: none; left: 12px; top: 8px; padding: 8px 14px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
/* wordmark: Geist, tight, one orange mark */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; color: #fff; text-decoration: none; letter-spacing: -.045em; white-space: nowrap; }
.logo .mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); display: inline-block; transform: rotate(45deg) scale(.85); }
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-nav .wrap { max-width: 1280px; display: flex; align-items: center; gap: 4px 14px; min-height: 60px; flex-wrap: wrap; }
.site-nav .logo { font-size: 24px; line-height: 1; padding-block: 6px; margin-right: auto; }
.site-nav nav { order: 2; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-nav nav a { display: block; color: #c9cdd3; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 11px; border-radius: 8px; }
.site-nav nav a:hover { color: #fff; background: var(--surface-2); }
.site-nav nav a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.site-nav nav a.nav-cta { background: var(--accent); color: #111; font-weight: 600; }
.site-nav nav a.nav-cta:hover { background: #ff8559; }
.site-nav .lang { order: 3; }
.site-nav .mod-languages ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .mod-languages li, .site-nav .mod-languages li.lang-active { margin: 0; background: none; }
.mod-languages a { display: block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: 500 12.5px var(--mono); letter-spacing: .06em; color: #c9cdd3; text-decoration: none; }
.mod-languages a:hover { color: #fff; background: var(--surface-2); }
.mod-languages [aria-current="true"] { color: #111; background: #fff; border-color: #fff; }
.nav-toggle { display: none; font: 500 14px var(--sans); color: #fff; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; cursor: pointer; order: 1; }
@media (max-width: 1040px) {
  .js .nav-toggle { display: block; }
  .js .site-nav nav { display: none; order: 5; width: 100%; padding-bottom: 10px; }
  .js .nav-toggle[aria-expanded="true"] ~ nav { display: block; }
  .js .site-nav nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav nav a { font-size: 17px; padding: 12px 14px; }
  .site-nav nav { width: 100%; padding-bottom: 8px; }
}

/* ---------- type ---------- */
.eyebrow, .kicker { font: 500 12.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.lede { color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; max-width: 58ch; }
.tech { font: 400 13.5px/1.55 var(--mono); color: var(--tech); border-left: 2px solid var(--accent); padding-left: 12px; max-width: 62ch; }
.note { color: var(--muted); font-size: 15px; margin-top: 24px; max-width: 70ch; }
.block { padding-block: clamp(64px, 9vw, 120px); }
.block.tight { padding-top: 0; }
.head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: clamp(30px, 4.5vw, 56px); }
.head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; font: 600 15.5px var(--sans); text-decoration: none; background: var(--accent); color: #111; padding: 0 22px; border-radius: 10px; border: 1px solid var(--accent); transition: transform .15s, background .15s; }
.btn:hover { background: #ff8559; border-color: #ff8559; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #4a505a; }
.btn.ghost:hover { background: var(--surface-2); border-color: #6a717c; }

/* ---------- hero ---------- */
.hero2 { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 78% 55%, rgba(255, 107, 53, .16), transparent 70%), var(--bg); }
.hero2 .wrap { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr); gap: clamp(28px, 4vw, 56px); align-items: center; min-height: min(calc(100svh - 61px), 860px); padding-block: clamp(36px, 6vh, 72px); }
.hero2 h1 { font-size: clamp(34px, 4vw, 58px); letter-spacing: -.04em; line-height: 1.02; }
.hero2 .lede { margin-top: 20px; }
.hero2 .btns { margin-top: 28px; }
.hero2 .meta { margin-top: 26px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); letter-spacing: .02em; }
.hero2 .eyebrow { margin-bottom: 18px; display: block; }
@media (max-width: 960px) { .hero2 .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 56px; } }

/* device frame: the real screen, crisp */
.device { position: relative; background: #050607; border: 1px solid #333841; border-radius: 16px; padding: 9px; box-shadow: 0 0 0 1px #000, 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(255, 107, 53, .28); }
.device::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -13px; height: 12px; border-radius: 0 0 14px 14px; background: linear-gradient(#2a2e35, #14161a); border: 1px solid #333841; border-top: 0; }
.device .scr { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.device video, .device img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vpause { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 11, 13, .7); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.device:hover .vpause, .vcard:hover .vpause, .vpause:focus-visible { opacity: 1; }
.vpause svg { width: 14px; height: 14px; fill: currentColor; }
.vpause .play { display: none; } .vpause[aria-pressed="true"] .play { display: block; } .vpause[aria-pressed="true"] .pause { display: none; }
@media (hover: none) { .vpause { opacity: .9; } }

/* hero entrance: once, on load */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: enter .7s cubic-bezier(.2, .7, .2, 1) backwards; }
  [data-enter] > *:nth-child(2) { animation-delay: .08s; } [data-enter] > *:nth-child(3) { animation-delay: .16s; }
  [data-enter] > *:nth-child(4) { animation-delay: .24s; } [data-enter] > *:nth-child(5) { animation-delay: .32s; }
  .hero2 .device { animation: enter .9s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
  @keyframes enter { from { opacity: 0; transform: translateY(16px); } }
}

/* ---------- numbers ---------- */
.numbers { border-block: 1px solid var(--line); background: var(--surface); }
.numbers .wrap { padding-block: clamp(40px, 6vw, 72px); }
.numbers h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-bottom: clamp(24px, 4vw, 44px); }
.numgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.num { padding: 4px clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { font: 500 clamp(36px, 4.6vw, 68px)/1 var(--mono); letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.num b small { font-size: .42em; letter-spacing: 0; color: var(--accent-text); margin-left: 4px; }
.num > span { color: var(--muted); font-size: 15.5px; max-width: 26ch; }
.num em { font: 400 12px/1.5 var(--mono); color: var(--tech); font-style: normal; }
.numfoot { margin-top: clamp(24px, 4vw, 40px); font: 400 12.5px var(--mono); color: var(--muted); }
@media (max-width: 860px) { .numgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; } .num:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 420px) { .numgrid { grid-template-columns: 1fr; } .num { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } .num:first-child { border-top: 0; padding-top: 0; } }

/* ---------- cards with a real screen ---------- */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.vcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; align-content: start; transition: transform .2s, border-color .2s; }
.vcard:hover { transform: translateY(-2px); border-color: #3a4049; }
.vcard .scr { aspect-ratio: 16 / 9; background: #000; overflow: hidden; position: relative; }
.vcard .scr video, .vcard .scr img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vcard:hover .scr video, .vcard:hover .scr img { transform: scale(1.02); }
.vcard .body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.vcard h3 { font-size: clamp(21px, 2vw, 26px); }
.vcard p { color: var(--muted); font-size: 16px; }
.vcard .tech { margin-top: 4px; }
.vgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .vgrid.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .vgrid { grid-template-columns: 1fr; } }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .media { order: -1; }
.split .copy { display: grid; gap: 16px; align-content: start; }
.split h2 { font-size: clamp(30px, 4vw, 48px); }
.split + .split { margin-top: clamp(56px, 8vw, 110px); }
.media { min-width: 0; }
.media > img, .media a > img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); }
.light .media > img { box-shadow: 0 30px 60px -34px rgba(20, 22, 26, .35); }
.media .phones { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.media .phones img { max-width: 31%; border-radius: 22px; border: 1px solid var(--line); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > .media { order: 0; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts b { font-weight: 600; }
.facts span { color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 12.5px var(--mono); letter-spacing: .02em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--ink); background: var(--surface); }

.statement { padding-block: clamp(80px, 12vw, 160px); text-align: center; background: radial-gradient(700px 300px at 50% 100%, rgba(255, 107, 53, .14), transparent 70%), var(--bg); }
.statement h2 { font-size: clamp(34px, 6.2vw, 88px); letter-spacing: -.045em; max-width: 16ch; margin-inline: auto; }
.statement p { color: var(--muted); margin: 24px auto 0; max-width: 52ch; font-size: clamp(17px, 1.7vw, 20px); }
.statement .btns { justify-content: center; margin-top: 30px; }

/* ---------- inner-page blocks ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(8px, 2vw, 24px); background: radial-gradient(800px 340px at 85% 0%, rgba(255, 107, 53, .12), transparent 70%); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 76px); letter-spacing: -.045em; max-width: 18ch; }
.screen { margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.screen img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); }
.screen figcaption { color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.screen figcaption b { color: var(--ink); display: block; font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.feature + .feature { margin-top: clamp(40px, 6vw, 72px); }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.feature.flip > .screen { order: 2; }
.feature .text { display: grid; gap: 12px; }
.feature .text h3 { font-size: clamp(22px, 2.6vw, 30px); }
.feature .text p, .feature .text li { color: var(--muted); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: start; }
.mt { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .feature, .feature.flip, .duo { grid-template-columns: 1fr; } .feature.flip > .screen { order: 0; } }

.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.promises li { border-top: 1px solid #4a505a; padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.promises h3 { font-size: 21px; }
.promises p { color: var(--muted); }
.promises q { quotes: "« " " »"; color: var(--ink); }
.promises s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
@media (max-width: 960px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks b { color: var(--ink); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: #3a4049; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 16px; }
.card .tag { justify-self: start; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); border: 1px solid currentColor; border-radius: 999px; padding: 1px 9px; }
.card.soon { border-style: dashed; }
.subhead { font-size: clamp(22px, 3vw, 30px); margin: clamp(40px, 6vw, 64px) 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line); padding-top: 16px; }
.steps li::before { content: "0" counter(s); font: 500 13px var(--mono); color: var(--accent-text); }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 28px; }
.needs div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; align-content: start; }
.needs strong { font: 500 24px var(--mono); letter-spacing: -.03em; }
.needs span { color: var(--muted); font-size: 15.5px; }
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 66ch; }
.soon { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; justify-items: start; }
.soon h2 { font-size: clamp(26px, 3.6vw, 40px); }
.soon p { color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; display: grid; gap: 16px; }
.prose h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 22px; }
.defs { display: grid; gap: 14px; margin: 0; }
.defs div { border-left: 2px solid var(--accent); padding-left: 16px; }
.defs dt { font-weight: 600; }
.defs dd { margin: 2px 0 0; color: var(--muted); }
.credits { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.credits li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font: 500 13px var(--mono); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; display: grid; gap: 6px; border-left: 4px solid var(--line); }
.phase.done { border-left-color: var(--accent); }
.phase.now { border-left-color: #fff; }
.phase h3 { font-size: 21px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.phase h3 small { font: 500 12px var(--mono); color: var(--accent-text); letter-spacing: .08em; text-transform: uppercase; }
.phase p { color: var(--muted); }
.todo { columns: 2 340px; column-gap: 32px; padding-left: 20px; margin: 0; }
.todo li { margin-bottom: 8px; break-inside: avoid; color: var(--muted); }
.todo b { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 14.5px; background: var(--bg); }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot a { color: var(--ink); text-decoration-color: var(--accent); }
.promise-link { font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.site-foot .mod-custom { display: grid; gap: 10px; }
#system-message-container:empty { display: none; }
#system-message-container { max-width: 1200px; margin: 12px auto; padding-inline: 16px; }
.alert { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.com-content-article, .com-content-article__body { margin: 0; padding: 0; max-width: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Language: one outlined button, colour only on hover. Black on light grounds; on this dark header
   the outline takes the header's text colour so it stays visible. */
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 12px; border: 1.5px solid #000; border-radius: 99px; background: transparent; color: #000; font: 600 12.5px var(--mono); letter-spacing: .06em; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.site-nav .lang-btn { border-color: var(--ink); color: var(--ink); }
.lang-btn:hover, .lang-btn:focus-visible, .site-nav .lang-btn:hover, .site-nav .lang-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #000; }

/* download button, next to the language button */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border: 1.5px solid var(--accent); border-radius: 99px; background: var(--accent); color: #000; font: 700 13.5px var(--sans); text-decoration: none; transition: background .15s, transform .15s; }
.dl-btn:hover, .dl-btn:focus-visible { background: transparent; color: var(--ink); }
.dl-btn:active { transform: scale(.97); }
.site-nav .lang { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1040px) { .dl-btn { min-height: 44px; } }

/* Downloads (com_downloader): its brochure page, in the Yapuka system */
.oa-broch { --oa-color-bg: var(--bg); --oa-color-primary: var(--accent); --oa-color-dark: var(--ink); --oa-color-text: var(--muted); --oa-color-grey-blue: var(--muted); --oa-color-white: var(--surface); --oa-color-black: var(--bg); --oa-font-heading: var(--sans); --oa-font-body: var(--sans); background: var(--bg); }
.oa-broch__inner { max-width: 1200px; padding-inline: max(var(--gutter), 16px); }
.oa-broch__title { font-weight: 600; letter-spacing: -.04em; line-height: 1.04; font-size: clamp(32px, 4.6vw, 60px); color: var(--ink); text-transform: none; }
.oa-broch__title .badge { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: transparent !important; color: var(--accent) !important; border: 1px solid var(--accent); border-radius: 99px; padding: 3px 10px; vertical-align: middle; }
.oa-broch__eyebrow { font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.oa-broch__eyebrow::before { background: var(--accent); }
.oa-broch__lead, .oa-broch__lead p, .oa-broch__lead li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.oa-broch__card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; color: var(--ink); }
.oa-broch__card-title { color: var(--ink); font-weight: 600; letter-spacing: -.03em; }
.oa-broch__card p, .oa-broch__note { color: var(--muted); }
.oa-broch__btn { background: var(--accent); color: #000; border-radius: 10px; font-weight: 700; }
.dlguide h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 34px 0 10px; color: var(--ink); }
.dlguide p, .dlguide li { color: var(--muted); }
.dlguide strong { color: var(--ink); }
.dlguide code, .dlguide kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.dlguide pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; }
.dlguide pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }
.dlguide details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; padding: 0 16px; }
.dlguide summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--ink); }
.dlguide details p, .dlguide details pre { margin-bottom: 14px; }

/* Community (com_communaute): public reading, in the Yapuka system */
.cmty { --ink: #eef0f3; --paper: var(--bg); --card: #13151a; --line: #262a31; --muted: #9aa1ab; --soft: #1a1d23; --g1: #ff8a5c; --g2: #ff6b35; --g3: #ff6b35; --focus: #ff6b35; --font: var(--sans); --head: var(--sans);
  --bug-bg: #3a1c19; --bug-fg: #ffb3a8; --idea-bg: #33270c; --idea-fg: #ffd58a; --q-bg: #1b2340; --q-fg: #b8c4ff; --ok-bg: #12301d; --ok-fg: #8fe0a8; --wait-bg: #36200f; --wait-fg: #ffb98a; color-scheme: dark; color: var(--ink); background: var(--bg); }
.cmty h1, .cmty h2, .cmty h3 { letter-spacing: -.03em; font-weight: 600; }
.cmty [role="tablist"], .cmty .tabs { display: none; }
.cmty .btn, .cmty button[type="submit"] { color: #000; }

/* Right navigation rail (material pattern; the pages, community, download, accessibility) */
.rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 60; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; padding: 8px 6px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail li.sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.rail a, .rail button { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.rail svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail a:hover, .rail button:hover, .rail a:focus-visible, .rail button:focus-visible { background: var(--surface-2); }
.rail a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.rail a.hi { color: #000; background: var(--accent); }
.rail a.hi:hover, .rail a.hi:focus-visible { background: #ff8559; }
.rail .rl { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; background: var(--ink); color: var(--bg); font: 600 13px var(--sans); padding: 6px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.rail a:hover .rl, .rail button:hover .rl, .rail a:focus-visible .rl, .rail button:focus-visible .rl { opacity: 1; transform: translateY(-50%); }
body.has-rail main, body.has-rail .site-foot { padding-right: 84px; }
html.desk-on body.is-home .rail { transition: opacity .25s, transform .25s, visibility .25s; }
html.desk-on body.is-home:not(.rail-on) .rail { opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-50%) translateX(20px); }
@media (max-width: 1040px) { .rail { display: none; } body.has-rail main, body.has-rail .site-foot { padding-right: 0; } }
@media (min-width: 1041px) { .site-nav nav { display: none; } .site-nav .nav-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { html.desk-on body.is-home .rail { transition: none; } }
.dlguide code { overflow-wrap: anywhere; }
.oa-broch__inner > *, .oa-broch__intro, .dlguide { min-width: 0; }
.dlguide pre { max-width: 100%; }

/* Dependencies page */
.depsum { margin-bottom: 8px; }
.deps-bar { display: grid; gap: 8px; max-width: 560px; margin-bottom: 20px; }
.deps-bar label { font: 500 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.deps-bar input { font: 500 17px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-height: 48px; }
.deps-bar input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.deps-group h2 small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.tablewrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--surface); }
.deps-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.deps-table th, .deps-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deps-table thead th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.deps-table tbody tr:last-child > * { border-bottom: 0; }
.deps-table tbody th { font-weight: 600; white-space: nowrap; }
.deps-table tbody th small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.deps-table td { color: var(--muted); }
.deps-table tr.top th { color: var(--ink); }
.deps-table td.mono { font-size: 13px; overflow-wrap: anywhere; max-width: 16rem; }
.deps-table a { color: inherit; text-decoration-color: var(--accent); }
@media (max-width: 700px) {
  .deps-table thead { display: none; }
  .deps-table, .deps-table tbody, .deps-table tr, .deps-table th, .deps-table td { display: block; }
  .deps-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .deps-table th, .deps-table td { border: 0; padding: 1px 0; }
  .deps-table tbody th { white-space: normal; }
  .deps-table td.mono { max-width: none; }
}

/* Extensions catalogue */
.extgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.extcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; align-content: start; transition: transform .2s, border-color .2s; scroll-margin-top: 80px; }
.extcard:hover, .extcard:target { transform: translateY(-2px); border-color: var(--accent); }
.extshot { aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.extshot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.extcard:hover .extshot img { transform: scale(1.02); }
.extbody { padding: 18px 20px 22px; display: grid; gap: 10px; }
.exthead { display: flex; align-items: center; gap: 12px; }
.exthead h3 { font-size: 22px; }
.extsum { color: var(--muted); }
.extmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.extmeta dt { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.extmeta dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }

/* Games (com_games): Yapuka tokens, so the portal reads in the same system */
.com-games { --text: var(--ink); --text-muted: var(--muted); --surface-raised: var(--surface); --on-accent: #000; --font-display: var(--sans); --radius-lg: 18px; padding-block: 28px; }
.com-games .games__title, .com-games .game-bar__title { letter-spacing: -.03em; font-weight: 600; }
.games__grid { padding-inline: max(var(--gutter), 16px); }
.com-games .games__head { max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), 16px); }
.game-bar a[href*="component/users"] { pointer-events: none; color: var(--muted); text-decoration: none; }
.play-credits { max-width: 1200px; margin: 0 auto; padding: 8px max(var(--gutter), 16px) 48px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.play-credits p { margin: 0; max-width: 80ch; }

/* Documentation */
.docs-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 6vw, 72px); align-items: start; }
.docnav { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; display: grid; gap: 8px; align-content: start; padding-right: 8px; }
.docsearch-l { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.docsearch { font: 500 16px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-height: 44px; width: 100%; }
.docsearch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.docnav ul { list-style: none; margin: 0; padding: 0; }
.docnav-cats { display: grid; gap: 4px; margin-top: 8px; }
.docnav-ct { display: block; font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.docnav-ct:hover, .docnav-ct.on { background: var(--surface-2); }
.docnav-cat > ul { display: none; padding-left: 10px; border-left: 1px solid var(--line); margin-left: 12px; }
.docnav-cat > ul.open { display: block; }
.docnav-cat li a { display: block; padding: 5px 10px; color: var(--muted); text-decoration: none; font-size: 15px; border-radius: 6px; }
.docnav-cat li a:hover { color: var(--ink); }
.docnav-cat li a[aria-current="page"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.docmain { min-width: 0; max-width: 78ch; }
.docmain h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; margin: 8px 0 22px; }
.crumbs { font: 500 13px var(--mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.docbody { display: grid; gap: 14px; }
.docbody p, .docbody li { color: var(--ink); }
.docbody h2 { font-size: 26px; margin-top: 26px; }
.docbody ul, .docbody ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.docbody code, .docbody kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.docbody pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 6px 0; }
.docbody pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.65; }
.docbody .copybtn { position: absolute; top: 8px; right: 8px; font: 500 12px var(--mono); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; min-height: 28px; }
.docbody .copybtn:hover { border-color: var(--accent); }
.docbody .doctip { border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.docfig { margin: 6px 0; } .docfig img { border-radius: 12px; border: 1px solid var(--line); max-width: 100%; height: auto; }
.docbody table { border-collapse: collapse; width: 100%; font-size: 15px; } .docbody th, .docbody td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docbody svg { max-width: 100%; height: auto; }
.prevnext { display: flex; gap: 12px; justify-content: space-between; margin-top: 34px; flex-wrap: wrap; }
.pn { flex: 1 1 240px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; font-weight: 600; display: grid; gap: 2px; background: var(--surface); transition: border-color .15s, transform .15s; }
.pn:hover { border-color: var(--accent); transform: translateY(-2px); } .pn.next { text-align: right; } .pn small { font: 500 12px var(--mono); color: var(--muted); }
.doccards { margin-top: 18px; } .doccards .card h3 a { color: var(--ink); text-decoration: none; } .doccards .card h3 a::after { content: ""; position: absolute; inset: 0; } .doccards .card { position: relative; }
.docs-find { display: grid; gap: 8px; max-width: 560px; margin-bottom: 26px; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: 1fr; } .docnav { position: static; max-height: none; order: 2; } .docmain { order: 1; } }

/* Download page: the edition card */
.editioncard { display: grid; gap: 14px; margin-top: 10px; }
.ed-name { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.ed-pitch { font-size: 19px; color: var(--muted); }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.howto a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.howto a:hover { border-color: var(--accent); }
.editioncard h2 { font-size: 22px; margin-top: 8px; }
.betatag { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 2px 9px; vertical-align: middle; margin-left: 8px; }

/* news */
.newscards{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr));list-style:none;padding:0}
.news-card{display:flex;flex-direction:column;gap:.4rem}
.news-card time{color:var(--accent,#ff6b35);font-size:.8rem}
.news-card h2{font-size:1.25rem;margin:0}
.news-card h2 a{text-decoration:none;color:inherit}
.news-card h2 a:hover{color:var(--accent,#ff6b35)}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.news-img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:.5rem}
.news-post .wrap{max-width:46rem}
.news .rss{color:var(--accent,#ff6b35)}
/* manifesto */
.manifesto{max-width:60rem;margin:0 auto;padding-block:clamp(2rem,8vw,6rem)}
.manifesto h1{font-size:clamp(2.2rem,8vw,5rem);line-height:1.02;letter-spacing:-.03em;margin:0 0 .4em}
.manifesto .mline{font-size:clamp(1.5rem,5vw,3rem);line-height:1.12;letter-spacing:-.02em;font-weight:600;margin:0;padding:clamp(1.2rem,4vw,2.4rem) 0;border-top:1px solid var(--line,rgba(255,255,255,.14))}
.manifesto .mline small{display:block;font-size:clamp(1rem,2vw,1.2rem);font-weight:400;opacity:.7;letter-spacing:0;margin-top:.5em;line-height:1.4}
.manifesto .mline em{font-style:normal;color:var(--accent,#ff6b35)}
.manifesto .msign{font-family:var(--mono,'Geist Mono',monospace);opacity:.7;margin-top:2rem}

/* community views: the same centred container as the other inner pages */
main > .cmty, main .cmty:not(.cmty .cmty) { box-sizing: border-box; width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), 20px); padding-block: clamp(24px, 4vw, 48px); }

/* download page: full-bleed hero image (decorative, right side), content on the empty left */
.oa-broch { position: relative; isolation: isolate; background: #000; overflow: hidden; }
.oa-broch::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 100%; aspect-ratio: 2576 / 1617; background: #000 url(/images/yapuka/download/telecharger-bg.webp) right top / cover no-repeat; }
.oa-broch__title { font-size: clamp(30px, 3.4vw, 48px); }
.oa-broch__inner { display: grid; grid-template-columns: minmax(0, 27rem); align-content: start; gap: 24px; padding-block: clamp(32px, 6vw, 88px); }
@media (max-width: 899px) {
  .oa-broch { padding-top: 62vw; }
  .oa-broch::before { width: 100%; aspect-ratio: 2576 / 1617; height: auto; max-height: 62vw; background-image: url(/images/yapuka/download/telecharger-bg-900.webp); background-position: center top; background-size: contain; }
  .oa-broch__inner { grid-template-columns: minmax(0, 1fr); padding-block: 8px 40px; }
}

/* legal pages, footer */
.legal h2 { margin-top: 1.6em; }
.legal .legal-list { list-style: none; padding: 0; display: grid; gap: .4rem; }
.legal .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
mark.todo { background: transparent; color: #ffd58a; border: 1px dashed #ffd58a; border-radius: 6px; padding: 0 6px; }
.site-foot .mod-menu + .mod-menu, .site-foot nav + nav { margin-top: -4px; }
.site-foot .foot-credits { font-size: 13.5px; }

.news .wrap { padding-block: clamp(32px, 5vw, 64px); }
.news-list h1 { margin: 0 0 .3em; }

/* download hero: h1 = Yapuka, subtitle = edition, badge = version in the card */
.oa-broch__title { white-space: nowrap; }
.oa-broch__intro > p.oa-broch__lead:first-of-type { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; color: var(--muted); letter-spacing: -.02em; margin-top: -4px; }
.ed-intro { font-size: 17px; color: var(--muted); }

/* footer: brand + 3 columns, thin bar */
.site-foot { padding-block: clamp(40px, 6vw, 72px) 0; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); padding-bottom: 40px; }
.foot-brand p { margin: 12px 0 18px; color: var(--muted); max-width: 22rem; }
.foot-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-col h2 { line-height: 1; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-foot .foot-col ul { display: grid; gap: 10px; }
.site-foot .foot-col a { text-decoration: none; color: var(--ink); }
.site-foot .foot-col a:hover { color: var(--accent); text-decoration: underline; }
.site-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.site-foot .foot-bar { display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 20px 28px; font-size: 13.5px; }
.site-foot .foot-bar p { margin: 0; }
.site-foot .foot-bar a { text-decoration-color: var(--line); }
@media (max-width: 960px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .site-foot .foot-bar { flex-direction: column; } }
.site-foot .wrap:has(> .foot-bar) { display: block; }
.news-hero{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;margin:0 0 1.5rem}
.news-list .lede { margin-bottom: 1.6rem; }

.news-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--surface, #13151a); border: 1px solid var(--line); border-radius: 18px; padding: clamp(14px, 2vw, 22px); margin-bottom: 1.2rem; }
.news-feature .nf-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.news-feature .nf-body { display: grid; gap: 12px; justify-items: start; padding: 4px clamp(4px, 1.5vw, 16px); }
.news-feature time { color: var(--accent); font-size: .85rem; }
.news-feature h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
.news-feature h2 a { color: inherit; text-decoration: none; }
.news-feature h2 a:hover { color: var(--accent); }
.news-feature p { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (max-width: 800px) { .news-feature { grid-template-columns: 1fr; } }
.doc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.doc-hero { display: block; width: 100%; height: auto; max-height: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 1.2rem; }
.exthead h3 a { color: inherit; text-decoration: none; }
.exthead h3 a:hover { color: var(--accent); }
.extmore { margin: 14px 0 0; }
.extpage .exthead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.extpage .exthead h1 { margin: 0; }
.extpage-body { max-width: 46rem; }
.extpage-body h2 { margin-top: 1.8em; }
.exthero { margin: 0 0 1rem; }
.exthero img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.plan-box { background: var(--surface, #13151a); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin: 1.6rem 0; }
.plan-box h2 { margin-top: 0; }
.plan-box h3 { margin-top: 1.3em; font-size: 1.05rem; }
.plan-box ol, .plan-box ul { padding-left: 1.2em; }

/* community: spaces as full-width rows, one per line */
.cmty .spaces { display: flex; flex-direction: column; gap: 12px; }
.cmty .spaces .space { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto 24px; grid-template-areas: "name desc meta chev"; align-items: center; gap: 8px 24px; min-height: 0; padding: 18px 22px; }
.cmty .spaces .space h3 { grid-area: name; font-size: 18px; }
.cmty .spaces .space > p:not(.subs) { grid-area: desc; }
.cmty .spaces .space .subs { display: none; }
.cmty .spaces .space .meta { grid-area: meta; margin-top: 0; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.cmty .spaces .space .meta .doclink { display: none; }
.cmty .spaces .space::after { content: ""; grid-area: chev; width: 10px; height: 10px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg); justify-self: end; }
.cmty .spaces .space:hover::after { border-color: var(--accent); }
.cmty .space .lastact::before { content: "· "; }
@media (max-width: 760px) {
  .cmty .spaces .space { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name chev" "desc chev" "meta chev"; }
  .cmty .spaces .space .meta { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
}
.cmty section.block { padding-block: 0; margin-top: 40px; }

/* accounts: com_users / com_privacy forms in the design system */
[class^="com-users-"], [class*=" com-users-"], .com-privacy-request, .com-privacy-confirm, .com-privacy-remind { max-width: 34rem; margin: 0 auto; padding: clamp(28px, 6vw, 64px) var(--gutter, 16px); }
.com-users-profile, .com-users-profile__edit { max-width: 40rem; }
[class*="com-users-"] form, .com-privacy-request form { display: grid; gap: 18px; }
[class*="com-users-"] fieldset, .com-privacy-request fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 0; display: grid; gap: 16px; min-width: 0; background: var(--surface, #13151a); }
[class*="com-users-"] legend, .com-privacy-request legend { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px; float: none; width: auto; }
[class*="com-users-"] .page-header h1, [class*="com-users-"] h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.control-group { display: grid; gap: 6px; margin: 0; }
.control-label label, .control-group > label, .form-check-label { font-weight: 600; color: var(--ink); }
.control-label .star { color: var(--accent); }
.form-control, .controls input[type=text], .controls input[type=email], .controls input[type=password], .controls select, .controls textarea { width: 100%; box-sizing: border-box; background: #0b0d11; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; min-height: 46px; }
.form-control:focus, .controls select:focus, .controls textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.password-group .input-group { display: flex; gap: 8px; }
.password-group .input-group .form-control { flex: 1; min-width: 0; }
.btn-secondary, .input-password-toggle { background: var(--surface-2, #1a1d23); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; min-height: 46px; cursor: pointer; }
.input-password-toggle .icon-eye::before { content: "👁"; font-style: normal; }
.btn-primary, [class*="com-users-"] button[type=submit], .com-privacy-request button[type=submit] { background: var(--accent); color: #000; border: 0; border-radius: 10px; padding: 0 22px; min-height: 48px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.08); }
.btn:focus-visible, button:focus-visible, .form-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-text, .small.text-muted, .text-muted { color: var(--muted); font-size: 14px; }
.form-check, .controls .form-check { display: flex; align-items: flex-start; gap: 10px; }
.controls input[type=checkbox], .controls input[type=radio] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
fieldset.checkboxes, fieldset.radio { border: 0; padding: 0; background: none; }
.com-users-login__options, .com-users-login__remind, .list-group { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
[class*="com-users-"] a, .com-privacy-request a { color: var(--accent); }
.modal, .modal-backdrop, joomla-dialog { display: none !important; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alert-message, .alert-heading { font-weight: 600; }
.alert.alert-danger, .alert-error { border-color: #ff8a7a; }
.alert.alert-success { border-color: #6fd49a; }
.alert { margin-bottom: 14px; }
.password-strength, .meter { height: 6px; border-radius: 4px; background: var(--line); }
.cmty-bar { max-width: 1200px; margin: 0 auto; padding: 14px max(var(--gutter), 20px) 0; display: flex; justify-content: flex-end; gap: 10px 18px; flex-wrap: wrap; align-items: center; font-size: 14.5px; }
.cmty-bar a, .cmty-bar button { color: var(--ink); }
.cmty-bar a.cmty-cta { background: var(--accent); color: #000; border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; }
.cmty-bar .who { color: var(--muted); }
.cmty-bar button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; }
[class*="com-users-"] button[type=submit], .com-privacy-request button[type=submit] { justify-self: start; margin: 0; }
[class*="com-users-"] .page-header, .com-users-registration .page-header { margin-bottom: 8px; }
a.btn, a.btn-primary, [class*="com-users-"] a.btn { color: #000; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; min-height: 46px; border-radius: 10px; background: var(--accent); font-weight: 700; }
.com-users-profile dl, .com-users-profile__edit dl { margin: 0; display: grid; gap: 4px; } .com-users-profile dt { color: var(--muted); font-size: 14px; } .com-users-profile dd { margin: 0 0 8px; }
.com-users-profile__core, .com-users-profile__custom { margin-bottom: 14px; }
/* community form: Yapuka has no Joomla/PHP versions to report */
.cmty .field:has(#rv), .cmty .field:has(#pf), .cmty .field:has(#cms), .cmty .field:has(#php) { display: none; }
.manifesto .mline small a{color:var(--accent)}

/* news visuals: black and white by default, colour only on hover or keyboard focus (and in the article itself) */
.news-feature .nf-img img, .news-card .news-img { filter: grayscale(1) contrast(1.06); transition: filter .3s ease; }
.news-feature:hover .nf-img img, .news-feature:focus-within .nf-img img, .news-card:hover .news-img, .news-card:focus-within .news-img,
.news-hero { filter: none; }
@media (prefers-reduced-motion: reduce) { .news-feature .nf-img img, .news-card .news-img { transition: none; } }
.news-inline { float: right; width: min(46%, 320px); height: auto; margin: 0 0 12px 20px; border-radius: 12px; }
@media (max-width: 600px) { .news-inline { float: none; width: 100%; margin: 0 0 14px; } }
.docbody img.news-inline { float: right; display: block; width: min(46%, 320px); height: auto; margin: 0 0 12px 20px; }
@media (max-width: 600px) { .docbody img.news-inline { float: none; width: 100%; margin: 0 0 14px; } }

/* extension badges and filters */
.xbadges { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xb { font: 500 12px var(--mono); letter-spacing: .02em; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.xfilters { display: grid; gap: 12px; margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #13151a); }
.xf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xf-l { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; min-width: 9.5rem; }
.xchip, .xreset { font: 600 14px var(--sans, system-ui); border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); padding: 8px 14px; min-height: 40px; cursor: pointer; }
.xchip[aria-pressed="true"] { background: var(--accent); color: #000; border-color: var(--accent); }
.xchip:focus-visible, .xreset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xreset { border-style: dashed; color: var(--muted); }
.xcount { margin-left: auto; color: var(--muted); font-size: 14px; }
.extcard[hidden] { display: none; }

/* full-bleed hero with a decorative drawing on the right (Soutenir, Sponsors), same rules as Télécharger */
.hero-bg { position: relative; isolation: isolate; background: #000; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 100%; aspect-ratio: 2576 / 1617; background: #000 var(--hb) right top / cover no-repeat; }
.hero-bg .hb-inner { max-width: 1200px; display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 28rem); padding-block: clamp(56px, 9vw, 140px) clamp(120px, 20vw, 320px); }
.hero-bg h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.04em; margin: 0; }
@media (max-width: 899px) {
  .hero-bg { padding-top: 62vw; }
  .hero-bg::before { aspect-ratio: 2576 / 1617; max-height: 62vw; background-image: var(--hb9); background-position: center top; background-size: contain; }
  .hero-bg .hb-inner { grid-template-columns: minmax(0, 1fr); padding-block: 8px 24px; }
}

/* inner-page header: the language button and the Télécharger pill are the same objects as on the home desktop */
html body .site-nav .lang-btn, html body .site-foot .lang-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 42px; min-height: 36px; padding: 0 12px; border: 1.5px solid #000; border-radius: 99px; background: #fff; color: #000; font: 800 12.8px "Geist Mono", monospace; letter-spacing: .04em; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
html body .site-nav .lang-btn:hover, html body .site-nav .lang-btn:focus-visible, html body .site-foot .lang-btn:hover, html body .site-foot .lang-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #000; outline: none; }
html body .site-nav .lang-btn:focus-visible, html body .site-foot .lang-btn:focus-visible { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--accent); }
html body .site-nav .dl-btn, html body .site-foot .dl-btn { font: 800 13.6px "Nunito", var(--sans), sans-serif; color: #000; min-height: 36px; padding: 0 16px; border: 1.5px solid var(--accent); }
@media (max-width: 1040px) { html body .site-nav .lang-btn, html body .site-nav .dl-btn { min-height: 44px; } }

/* Oui Blocks right-click menu, in the Yapuka look (the plugin's CSS variables) */
.ouib-ctxmenu { --ouib-ctx-bg: #1e1b33; --ouib-ctx-fg: #f3f1fb; --ouib-ctx-hover: rgba(255,255,255,.12); --ouib-ctx-line: rgba(255,255,255,.14); border-radius: 12px; padding: 6px; min-width: 14rem; font-family: var(--sans, system-ui); font-weight: 500; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.ouib-ctxmenu__item { min-height: 38px; border-radius: 8px; }
.ouib-ctxmenu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent, #ff6b35); }
/* the home wallpaper video must not swallow the right-click (the plugin leaves video elements to the browser) */
.desk .wall video { pointer-events: none; }

/* news sections */
.newscats ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px; }
.newscats a.xchip { display: inline-flex; align-items: center; text-decoration: none; }
.newscats a.xchip.on { background: var(--accent); color: #000; border-color: var(--accent); }
.news-tag { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.release-badge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.release-post .btns { margin-top: 1.6rem; }
@media (max-width: 1100px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 960px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; } }

.site-foot .foot-social { list-style: none; padding: 0; margin: 14px 0 10px -12px; display: flex; flex-wrap: nowrap; gap: 0; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--muted); }
.foot-social a:hover, .foot-social a:focus-visible { color: var(--accent); outline: none; }
.foot-social a:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

/* footer column titles: a 16px line icon (same style as the rail), links aligned with the title text */
.foot-col h2 { display: flex; align-items: center; gap: 8px; }
.foot-col h2 svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-foot .foot-col ul { padding-left: 24px; }
/* Découvrir cards: a photo on top, black and white until hovered or focused (like the news) */
.doccards .card .dc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 12px; filter: grayscale(1) contrast(1.06); transition: filter .3s ease; }
.doccards .card:hover .dc-img, .doccards .card:focus-within .dc-img { filter: none; }
@media (prefers-reduced-motion: reduce) { .doccards .card .dc-img { transition: none; } }

/* pagination: pill buttons, current page in accent (Joomla's pagination layouts) */
.pagination__wrapper { margin: 2rem 0 1rem; }
ul.pagination { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-item { display: block; }
.pagination .page-link, .pagination .page-item > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: 600 14.5px var(--sans, system-ui); text-decoration: none; box-sizing: border-box; transition: background .15s, color .15s, border-color .15s; }
.pagination a.page-link:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pagination .page-item.active > span, .pagination .page-item.active > a { background: var(--accent); border-color: var(--accent); color: #000; }
.pagination .page-item.disabled > span { opacity: .4; border-style: dashed; cursor: default; }
.pagination-wrap { margin-top: 1.5rem; }

/* tutorials: figures and the series box */
.tuto-fig { margin: 1.4rem 0; }
.tuto-fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.tuto-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.tuto-more { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.news-series { background: var(--surface, #13151a); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 2rem 0 1rem; }
.news-series h2 { margin: 0 0 4px; font-size: 1.15rem; }
.news-series ol { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.news-series li.on { color: var(--accent); font-weight: 600; }
.cmty-survey .space { grid-template-columns: minmax(0, 1fr) 24px; }
.editioncard.soon { border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; }
.cmty-survey .space { min-height: 0; padding-block: 16px; }



/* download page: compact hero, three edition columns, how-to row */
.dl-page::before { aspect-ratio: auto; height: min(400px, 36vw); background-size: auto 100%; background-position: right 6% top; }
.dl-page .dl-hero { grid-template-columns: minmax(0, 36rem); gap: 8px; padding-block: clamp(20px, 3vw, 40px) 20px; }
.dl-page .dl-hero .oa-broch__title { font-size: clamp(34px, 4vw, 52px); margin: 0; }
.dl-page .dl-sub { margin: 0; font-size: 20px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dl-page .dl-lead { margin: 4px 0 0; color: var(--muted); max-width: 30rem; }
.editions3 { display: grid; gap: 20px; margin-top: clamp(0px, 2vw, 24px); padding-bottom: 8px; }
.ed-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface, #13151a); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ed-col--soon { border-style: dashed; }
.ed-panel .ed-visual { align-self: stretch; }
.ed-panel .ed-visual img { height: 100%; aspect-ratio: auto; min-height: 260px; }
.ed-panel .dl-how { grid-column: 1 / -1; padding: 20px 22px 24px; border-top: 1px solid var(--line); }
.ed-panel .dl-how h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ed-panel .howgrid { margin-bottom: 8px; }
.ed-tablist { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.ed-tablist[hidden] { display: none; }
.ed-tab { font: 600 15px var(--sans, system-ui); min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.ed-tab:hover { color: var(--ink); border-color: var(--muted); }
.ed-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #000; }
.ed-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-panel[hidden] { display: none; }
.ed-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.ed-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.ed-body p { margin: 0; }
.ed-name { font-size: 1.35rem; letter-spacing: -.02em; margin: 0; }
.ed-body .checks { margin: 4px 0; }
.ed-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ed-link { color: var(--accent); }
.ed-state { color: var(--muted); }
.dl-how { padding-block: 28px 8px; }
.howgrid { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.howgrid li a { display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #13151a); color: var(--ink); text-decoration: none; font-weight: 600; height: 100%; box-sizing: border-box; }
.howgrid li a:hover, .howgrid li a:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.howgrid .howgrid-support a { border-color: var(--accent); }
@media (max-width: 1000px) { .howgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .dl-page { padding-top: 52vw; }
  .dl-page::before { height: auto; max-height: 52vw; aspect-ratio: 2576 / 1617; background-size: contain; background-position: center top; }
  .dl-page .dl-hero { padding-block: 8px 12px; }
  .ed-panel { grid-template-columns: 1fr; }
  .ed-panel .ed-visual img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .ed-tablist { flex-wrap: nowrap; overflow-x: auto; }
  .ed-tab { flex: none; padding: 0 16px; }
}
@media (max-width: 520px) { .howgrid { grid-template-columns: 1fr; } }
.dl-page { display: block; }
.dl-page .editions3, .dl-page .dl-how { max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), 16px); box-sizing: border-box; }
.dl-page .dl-hero { margin-inline: auto; padding-inline: max(var(--gutter), 16px); max-width: 1200px; display: grid; }
.order-box.block, .order-box { padding-block: 0; margin-block: 8px 24px; }

/* compact variant of the full-bleed hero (dependencies page) */
.hero-bg--compact::before { aspect-ratio: auto; height: min(420px, 36vw); background-size: auto 100%; background-position: right 6% top; }
.hero-bg--compact .hb-inner { grid-template-columns: minmax(0, 34rem); padding-block: clamp(36px, 5vw, 72px) clamp(70px, 9vw, 130px); gap: 12px; }
.hero-bg--compact h1 { font-size: clamp(30px, 3.8vw, 48px); }
@media (max-width: 899px) {
  .hero-bg--compact { padding-top: 52vw; }
  .hero-bg--compact::before { height: auto; max-height: 52vw; aspect-ratio: 2576 / 1617; background-size: contain; background-position: center top; }
  .hero-bg--compact .hb-inner { padding-block: 8px 20px; grid-template-columns: minmax(0, 1fr); }
}

/* newsletter band: one idea, calm. Convert Forms' own look is reset here, the form is one inline row. */
.news-band { background: #f6f4ef; color: #14161a; border-block: 1px solid #e4dfd3; padding: clamp(56px, 8vw, 104px) 0; }
.news-band-in { display: block; padding-inline: max(var(--gutter), 16px); }
.newsletter { max-width: 720px; margin: 0 auto; text-align: center; }
.newsletter h2 { font: 650 clamp(28px, 3.6vw, 44px)/1.08 var(--sans, system-ui); letter-spacing: -.03em; color: #14161a; margin: 0; text-wrap: balance; }
.newsletter .nl-sub { margin: 12px auto 0; max-width: 34rem; color: #5b6169; font-size: 17px; line-height: 1.5; }
.newsletter .nl-form { margin-top: 28px; text-align: left; }
.newsletter .convertforms, .newsletter .cf-form-wrap { background: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; border: 0 !important; box-shadow: none !important; }
.newsletter .cf-fields { display: grid !important; flex-wrap: nowrap; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.newsletter .cf-control-group { width: auto !important; flex: none; margin: 0 !important; padding: 0; border: 0; min-width: 0; }
.newsletter .cf-control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.newsletter .cf-control-group[data-type="email"] { grid-column: 1; }
.newsletter .cf-control-group[data-type="submit"] { grid-column: 2; grid-row: 1; }
.newsletter .cf-control-group[data-type="termsofservice"] { grid-column: 1 / -1; }
.newsletter .cf-control-group[data-type="altcha"] { grid-column: 1 / -1; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter input[type="email"] { width: 100% !important; box-sizing: border-box; height: 48px; padding: 0 16px !important; border: 1px solid #cfd2d8 !important; border-radius: 12px !important; background: #fff !important; color: #14161a !important; font: 400 16px var(--sans, system-ui) !important; transition: border-color .15s, box-shadow .15s; }
.newsletter input[type="email"]::placeholder { color: #8a9099; }
.newsletter input[type="email"]:focus-visible { outline: 0; border-color: #ff6b35 !important; box-shadow: 0 0 0 3px rgba(255, 107, 53, .28); }
.newsletter .cf-btn { height: 48px; padding: 0 26px !important; border: 0 !important; border-radius: 12px !important; background: #ff6b35 !important; color: #000 !important; font: 700 16px var(--sans, system-ui) !important; cursor: pointer; transition: transform .12s, filter .15s; white-space: nowrap; }
.newsletter .cf-btn:hover { filter: brightness(1.06); }
.newsletter .cf-btn:active { transform: scale(.98); }
.newsletter .cf-btn:focus-visible { outline: 2px solid #14161a; outline-offset: 2px; }
.newsletter .cf-text-left { text-align: left; }
.newsletter .cf-checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.newsletter .cf-checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #ff6b35; flex: none; }
.newsletter .cf-checkbox-group .cf-label, .newsletter .cf-checkbox-group label { font: 400 13px/1.45 var(--sans, system-ui) !important; color: #5b6169 !important; }
.newsletter .cf-checkbox-group a { color: #14161a !important; text-decoration-color: #ff6b35; }
.newsletter .cf-error-text, .newsletter .cf-error, .newsletter .cf-text-danger { color: #b3261e !important; font-size: 13px; }
.newsletter .cf-response:empty { display: none; }
.newsletter .cf-response { text-align: center; font: 600 22px/1.3 var(--sans, system-ui); color: #14161a; padding: 8px 0; }
.newsletter .cf-response.cf-error, .newsletter .cf-response.cf-text-danger { font-size: 15px; font-weight: 500; color: #b3261e; text-align: left; padding-bottom: 10px; }
@media (max-width: 560px) {
  .news-band { padding-block: 44px; }
  .newsletter .cf-fields { grid-template-columns: 1fr; }
  .newsletter .cf-control-group[data-type="email"] { grid-row: 1; }
  .newsletter .cf-control-group[data-type="submit"] { grid-column: 1; grid-row: 2; }
  .newsletter .cf-control-group[data-type="termsofservice"] { grid-row: 3; }
  .newsletter .cf-fields { gap: 10px; }
  .newsletter .cf-btn { width: 100%; }
}
.newsletter input[type="checkbox"], .newsletter input[type="email"] { color-scheme: light; }
.newsletter .cf-success.cf-success-hideform .cf-fields { display: none !important; }
.newsletter .cf-success .cf-response { background: transparent !important; color: #14161a !important; color: #14161a; text-align: center; padding: 18px 0 6px; font: 600 24px/1.3 var(--sans, system-ui); }

/* download page v3: a true split, the edition visual fills the right column */
.oa-broch.dl2 { padding: 0; background: #000; }
.oa-broch.dl2::before { display: none; }
.dl2 .dl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 61px); max-width: none; padding: 0; margin: 0; gap: 0; }
.dl2 .dl-left { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding: clamp(32px, 6vh, 64px) clamp(28px, 4vw, 64px) clamp(32px, 6vh, 64px) max(var(--gutter, 24px), calc((100vw - 1200px) / 2)); }
.dl2 .oa-broch__eyebrow { margin: 0 0 14px; }
.dl2 .oa-broch__title { font-size: clamp(52px, 6.4vw, 88px); line-height: .98; letter-spacing: -.04em; margin: 0; }
.dl2 .dl-sub { margin: 18px 0 0; min-height: 3.3em; }
.dl2 .dl-ed-name { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.dl2 .dl-ed-pitch { display: block; margin-top: 4px; font-size: 18px; color: var(--muted); }
.dl2 .ed-tablist { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.dl2 .ed-tablist[hidden] { display: none; }
.dl2 .ed-tab { font: 600 15px var(--sans, system-ui); min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .12s; }
.dl2 .ed-tab:hover { color: var(--ink); border-color: var(--muted); }
.dl2 .ed-tab:active { transform: scale(.98); }
.dl2 .ed-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #000; }
.dl2 .ed-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dl2 .ed-free { margin: 14px 0 0; font-size: 15px; color: var(--ink); }
.dl2 .ed-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; padding: 0; border: 0; background: none; border-radius: 0; }
.dl2 .ed-panel[hidden] { display: none; }
.dl2 .ed-panel + .ed-panel { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.dl2.is-tabs .ed-panel + .ed-panel { margin-top: 28px; padding-top: 0; border: 0; }
.dl2 .ed-name { font-size: 22px; margin: 0; }
.dl2.is-tabs .ed-name { display: none; }
.dl2 .ed-panel p { margin: 0; }
.dl2 .ed-panel .checks { margin: 2px 0 6px; display: grid; gap: 10px; max-width: 34rem; font-size: 17px; }
.dl2 .ed-actions { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.dl2 .ed-link { color: var(--accent); }
.dl2 .dl-right { position: relative; background: #000; overflow: hidden; border-left: 1px solid var(--line); }
.dl2 .dl-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.dl2 .dl-right img[data-for="maison"] { opacity: 1; }
.dl2[data-ed="etudiant"] .dl-right img[data-for="maison"], .dl2[data-ed="pro"] .dl-right img[data-for="maison"] { opacity: 0; }
.dl2[data-ed="etudiant"] .dl-right img[data-for="etudiant"], .dl2[data-ed="pro"] .dl-right img[data-for="pro"] { opacity: 1; }
.dl2 .dl-how { padding-block: clamp(40px, 6vw, 72px); max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter, 24px), 16px); box-sizing: border-box; }
.dl2 .dl-how .note { max-width: 44rem; margin-top: 10px; }
@media (max-width: 899px) {
  .dl2 .dl-split { grid-template-columns: 1fr; min-height: 0; }
  .dl2 .dl-right { order: -1; height: 62vw; max-height: 340px; border: 0; }
  .dl2 .dl-left { padding: 28px 16px 36px; }
  .dl2 .oa-broch__title { font-size: 48px; }
  .dl2 .ed-tablist { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .dl2 .ed-tab { flex: none; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .dl2 .dl-right img, .dl2 .ed-tab { transition: none; } }
.dl2 .ed-free a { color: var(--accent); margin-left: 8px; }
@media (max-width: 899px) { .dl2 .ed-free a { display: block; margin: 4px 0 0; } }
.oa-broch.dl2 { display: block; }
.dl2 .dl-right img { object-position: right center; }

/* tabs first, then a fixed stack: the title never moves between editions */
.dl2 .dl-left { justify-content: flex-start; padding-top: clamp(36px, 8vh, 88px); }
.dl2 .ed-tablist { display: inline-flex; flex-wrap: nowrap; gap: 2px; margin: 0 0 30px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.dl2 .ed-tablist[hidden] { display: none; }
.dl2 .ed-tab { min-height: 40px; padding: 0 18px; border: 0; font-size: 14px; }
.dl2 .ed-tab:hover { border: 0; }
.dl2 .dl-sub { height: 4.2em; min-height: 0; margin-top: 18px; overflow: hidden; }
.dl2 .ed-free { margin-top: 4px; min-height: 2.6em; }
@media (max-width: 899px) { .dl2 .dl-left { padding-top: 24px; } .dl2 .ed-tablist { max-width: 100%; overflow-x: auto; } .dl2 .dl-sub { height: 4.4em; } }
.dl2 .dl-left { padding-top: clamp(22px, 4.5vh, 52px); padding-bottom: 24px; }
.dl2 .ed-tablist { margin-bottom: 20px; }
.dl2 .oa-broch__eyebrow { margin-bottom: 8px; }
.dl2 .oa-broch__title { font-size: clamp(48px, 5.4vw, 80px); }
.dl2 .dl-sub { height: 3.4em; margin-top: 12px; }
.dl2 .ed-free { min-height: 0; margin-top: 2px; }
.dl2 .ed-free a { display: block; margin: 2px 0 0; }
.dl2 .ed-panel { margin-top: 18px; gap: 10px; }
.dl2 .ed-panel .checks { gap: 7px; font-size: 16px; margin-bottom: 4px; }
.dl2 .ed-actions { gap: 8px 22px; }
@media (max-width: 899px) { .dl2 .dl-sub { height: 3.8em; } }
.dl2 .dl-sub { height: 86px; overflow: visible; margin-top: 14px; }
.dl2 .ed-free { margin-top: 10px; }
.dl2 .ed-tablist { margin-bottom: 26px; }
@media (max-width: 899px) { .dl2 .dl-sub { height: 86px; } }
@media (max-width: 899px) { .dl2 .dl-right { height: 63vw; max-height: none; } }

/* download: share button + popover, support card */
.dl2 .ed-actions { position: relative; }
.dl2 .ed-soon { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-weight: 600; }
.dl2 .ed-share { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 15px var(--sans, system-ui); cursor: pointer; transition: border-color .15s, transform .12s; }
.dl2 .ed-share[hidden] { display: none; }
.dl2 .ed-share:hover { border-color: var(--accent); }
.dl2 .ed-share:active { transform: scale(.98); }
.dl2 .ed-share:focus-visible, .dl2 .ed-sharepop a:focus-visible, .dl2 .ed-sharepop button:focus-visible, .dl2 .ed-support:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl2 .ed-sharepop { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 6px; padding: 10px; background: #14161a; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.dl2 .ed-sharepop[hidden] { display: none; }
.dl2 .ed-sharepop a, .dl2 .ed-sharepop button { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 14px var(--sans, system-ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.dl2 .ed-sharepop a:hover, .dl2 .ed-sharepop button:hover { background: rgba(255,107,53,.14); color: var(--accent); }
.dl2 .ed-support { display: grid; gap: 2px; width: min(100%, 34rem); margin-top: 6px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); color: var(--muted); text-decoration: none; font-size: 14px; transition: border-color .15s, transform .15s; }
.dl2 .ed-support strong { color: var(--ink); font-size: 15px; }
.dl2 .ed-support:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl2[data-ed="maison"] .ed-free a { display: none; }
@media (max-width: 899px) { .dl2 .ed-sharepop { grid-template-columns: repeat(2, auto); } }
@media (min-width: 900px) {
  .dl2 .dl-sub { height: 76px; margin-top: 10px; }
  .dl2 .ed-free { margin-top: 2px; }
  .dl2 .ed-panel { margin-top: 12px; gap: 8px; }
  .dl2 .ed-panel .checks { gap: 5px; }
  .dl2 .ed-support { margin-top: 2px; padding: 10px 16px; }
}
.dl2 .ed-sharepop { top: auto; bottom: calc(100% + 8px); }

/* share page */
.sharegrid { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sharegrid .btn { cursor: pointer; }
.sharegrid [hidden] { display: none; }
.msgs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 16px; }
.msg { align-content: space-between; gap: 14px; }
.msg blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.msg .btn { justify-self: start; cursor: pointer; }
.share-two { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.qr-box { background: #fff; padding: 14px; border-radius: 16px; line-height: 0; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.kit-shots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kit-item { display: grid; gap: 8px; text-decoration: none; color: var(--muted); font-size: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--surface); transition: border-color .15s, transform .15s; }
.kit-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.kit-item img { width: 100%; height: 130px; object-fit: contain; border-radius: 8px; background: #000; }
.kit-light img { background: #fff; }
.kit-shots .kit-item img { object-fit: cover; }
@media (max-width: 640px) { .share-two { grid-template-columns: 1fr; } .sharegrid .btn { min-height: 44px; } }
.share-page-fix{}
#h-msgs + .lede, #h-kit + .lede { margin-top: 6px; }
.wrap h3 + .kit-grid { margin-top: 10px; }
.kit-grid + h3, .note + h3 { margin-top: 28px; }
.dl2 .ed-support .es-other { display: none; }
.dl2:not([data-ed="maison"]) .ed-support .es-maison { display: none; }
.dl2:not([data-ed="maison"]) .ed-support .es-other { display: block; }
.dl2 .ed-support { margin-top: 18px; }
@media (min-width: 900px) { .dl2 .ed-support { margin-top: 8px; } }
.ic-key { color: var(--accent); flex: none; vertical-align: -4px; margin-right: 8px; }
.dl2 .ed-support strong { display: flex; align-items: center; }
.foot-col .ic-key { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
@media (min-width: 900px) and (max-height: 800px) { .dl2 .ed-tablist { margin-bottom: 16px; } .dl2 .dl-sub { height: 70px; } .dl2 .dl-left { padding-top: 18px; padding-bottom: 14px; } }

/* the « Me prévenir » dialog (download page): the band's form on a light card */
.notify-dlg { border: 0; padding: 0; background: #f6f4ef; color: #14161a; border-radius: 20px; width: min(92vw, 540px); max-height: 92vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.notify-dlg::backdrop { background: rgba(0,0,0,.65); }
.notify-dlg .newsletter { position: relative; padding: 36px 32px 30px; max-width: none; }
.notify-dlg .newsletter h2 { font-size: 28px; }
.notify-dlg .nl-sub { max-width: 30rem; }
.notify-dlg .nd-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #14161a; cursor: pointer; }
.notify-dlg .nd-close:hover { background: rgba(0,0,0,.07); }
.notify-dlg .nd-close:focus-visible { outline: 2px solid #ff6b35; outline-offset: 2px; }
@media (max-width: 560px) { .notify-dlg .newsletter { padding: 40px 18px 22px; } }

/* key-order cards: the icon spans the title and the description */
.dl2 .ed-support { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; row-gap: 0; }
.dl2 .ed-support .ic-key { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
.dl2 .ed-support strong { display: block; }
.card-key { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.card-key .ic-key { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
.card-key h3, .card-key p { grid-column: 2; margin: 0; }
.card-key { align-items: start; align-content: start; } .card-key .ic-key { align-self: start; margin-top: 2px; }
/* ---------- extension kinds (Apps Yapuka / Apps web / Logiciels complets) + « Mon ordinateur a » ---------- */
.k-yapuka { --k: #ff8a5c; } .k-web { --k: #7fb2ff; } .k-logiciel { --k: #c3a6ff; }
.light .k-yapuka { --k: #a83d14; } .light .k-web { --k: #1d5fa8; } .light .k-logiciel { --k: #6a3fc0; }
.xkinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.xkind { text-align: left; display: grid; gap: 4px; align-content: start; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--k); border-radius: 14px; padding: 14px 16px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.xkind:hover { border-color: var(--k); }
.xkind[aria-pressed="true"] { border-color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--surface)); }
.xkind:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xk-t { font-weight: 700; font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.xk-n { font: 500 12px var(--mono); color: var(--k); }
.xk-d { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.xb.xk { color: var(--k); border-color: color-mix(in srgb, var(--k) 55%, transparent); }
.xb.xnet { color: var(--ink); border-style: dashed; }
.xf-hint { color: var(--muted); font-size: 13.5px; }
.xfit { margin: 0; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.extcard.xok .xfit { color: #7fd6a4; background: rgba(46, 160, 98, .12); }
.extcard.xslow .xfit { color: #ffc27a; background: rgba(255, 159, 67, .12); }
.light .extcard.xok .xfit { color: #146c3e; } .light .extcard.xslow .xfit { color: #8a4b00; }
.extcard.xslow .extshot, .extcard.xslow .exthead img { filter: grayscale(.85); opacity: .55; }
.extcard.xslow { border-style: dashed; }
.xneeds { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.xneeds li { display: grid; grid-template-columns: 10.5rem 1fr; gap: 4px 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.xneeds b { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
@media (max-width: 760px) { .xkinds { grid-template-columns: 1fr; } .xkind { padding: 12px 14px; } .xneeds li { grid-template-columns: 1fr; } .xf-l { flex: 0 0 100%; min-width: 0; margin: 0; } }
.xneeds span { color: var(--ink); font-size: 16px; }
