/* Alea — Ginger Ale Pattern
   Palette (same as the plugin): #1A1A18 #7A7A80 #BBBBC4 #DDDDE8 #FFFFFF + lime #DDFF2C */

:root {
  --ink: #1A1A18;
  --mute: #7A7A80;
  --line: #BBBBC4;
  --panel: #DDDDE8;
  --white: #FFFFFF;
  --lime: #DDFF2C;
  --ink-soft: #4B4B52; /* darker grey for small secondary text (readable on white and panel) */
  --radius: 10px;
  --wrap: 1080px;
  color-scheme: light;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-subset.woff") format("woff");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font: 400 15px/1.7 "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

/* Bilingual content: the <html lang> attribute decides what is shown */
html[lang="fr"] .en { display: none !important; }
html:not([lang="fr"]) .fr { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border: 2px solid var(--ink); border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Header (title bar like the plugin) ---------- */
.topbar { background: var(--ink); }
.topbar .wrap { display: flex; justify-content: center; align-items: center; height: 92px; }
.topbar img { height: 62px; width: auto; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); padding: 0 0 8px; }
.nav-inner {
  background: var(--panel); border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px; padding: 8px;
}
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.lang-top { display: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 4px; background: var(--panel); color: var(--ink);
  box-shadow: 0 3px 0 var(--line); border: 1px solid transparent;
  transition: background .12s;
}
.tab:hover { border-color: var(--white); }
.tab[aria-current="true"] { background: var(--ink); color: #E1E1F2; box-shadow: none; }

.lang { display: flex; gap: 2px; background: var(--line); padding: 2px; border-radius: 6px; }
.lang.lang-top { display: none; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--ink); padding: 6px 10px; border-radius: 4px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink);
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn-lime { background: var(--lime); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 4px 0 var(--mute); border-color: var(--ink); }
.btn-ink:hover { box-shadow: 0 3px 0 var(--mute); }
.btn-sm { padding: 8px 14px; font-size: 13px; box-shadow: 0 3px 0 var(--ink); }
.nav .btn-sm { flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: 72px 0 8px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--lime); padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.lead { font-size: 17px; max-width: 64ch; color: var(--ink); }
.soft { color: var(--ink-soft); }
.small { font-size: 13px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 20px; }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 .08em; }
.hero .lead { margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 12px; font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--white); }

.shot { border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--ink); }
.shot img { width: 100%; }

/* ---------- Video ---------- */
.video { margin-top: 56px; }
.video-frame {
  position: relative; width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: var(--ratio, 16 / 9);
  max-height: 78vh; background: var(--ink); border-radius: 14px; overflow: hidden; border: 2px solid var(--ink);
}
.video-frame iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font: inherit; color: var(--white); cursor: pointer; border: 0;
  background: linear-gradient(rgba(26,26,24,.8), rgba(26,26,24,.8)), url("images/alea-main.webp") center / cover;
}
.play { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.video-poster:hover .play { transform: scale(1.05); }
.video-poster[disabled] { cursor: default; }
.video-poster[disabled] .play { background: var(--line); }
.video-label { font-weight: 700; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card .media { background: var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; align-items: start; }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card .media.tabs-img { align-items: center; background: var(--panel); }
.card .media.tabs-img img { height: auto; object-fit: contain; }
.card p { margin: 0; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--lime); border: 2px solid var(--ink); border-radius: 6px; font-weight: 800;
}
.steps strong { display: block; }
.steps span { color: var(--ink-soft); }

.specs { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 20px; }
.specs dt { font-weight: 700; padding: 9px 0; border-top: 1px solid var(--panel); }
.specs dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--panel); color: var(--ink-soft); }
.specs dt:first-of-type, .specs dd:first-of-type { border-top: 0; }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; background: var(--lime); border: 2px solid var(--ink); border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; padding: 8px 28px; }
.faq details { border-top: 1px solid var(--panel); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; padding: 18px 40px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--panel); border-radius: 4px; font-weight: 800; font-size: 18px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--lime); }
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); max-width: 76ch; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer ol, .faq .answer ul { margin: 6px 0 10px; padding-left: 22px; }
kbd, code { font: inherit; font-weight: 700; background: var(--panel); padding: 1px 6px; border-radius: 4px; color: var(--ink); }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; margin-top: 24px; }
.dl { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dl p { margin: 0; color: var(--ink-soft); }
.dl .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.dl.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dl.primary p { color: var(--line); }
.dl.primary .tag { color: var(--lime); }
.dl.primary :focus-visible { outline-color: var(--lime); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Contact ---------- */
.contact-mail { display: inline-block; font-size: clamp(18px, 3vw, 26px); font-weight: 800; word-break: break-all; background: linear-gradient(transparent 62%, var(--lime) 62%); text-decoration: none; }
.contact-mail:hover { text-decoration: none; background: var(--lime); }

/* ---------- Footer (dark bar like the plugin) ---------- */
footer { background: var(--ink); color: var(--line); margin-top: 80px; padding: 36px 0 44px; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: center; }
footer a { color: #E1E1F2; }
footer :focus-visible { outline-color: var(--lime); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer img { height: 40px; width: auto; }

/* ---------- Legal page ---------- */
.legal h2 { margin-top: 8px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { max-width: 78ch; color: var(--ink-soft); }
.legal section { padding-top: 56px; }
.back { display: inline-block; margin-top: 28px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .features, .dl-grid, .two-col { grid-template-columns: 1fr; }
  .shot { box-shadow: 6px 6px 0 var(--ink); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar .wrap { height: 76px; }
  .topbar img { height: 50px; }
  .nav .btn-sm, .nav .lang { display: none; }
  .topbar .wrap { position: relative; }
  .lang.lang-top { display: flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .tab { padding: 9px 10px; font-size: 13px; }
  section { padding-top: 56px; }
  .panel, .dl { padding: 20px; }
  .faq { padding: 4px 18px; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 0; }
  .specs dd { border-top: 0; padding-top: 2px; }
}

@media (max-width: 400px) {
  .tab { padding: 9px 7px; font-size: 12px; }
}
