/* Arkana — site statique (généré par stuff/site/build_site.py). Aucune ressource externe.
   Esprit « case de BD » : encre noire, jaune Arkana, tranches de livres colorées. */

:root {
  --bg: #fff8e8;
  --bg-soft: #f7ecd2;
  --panel: #ffffff;
  --text: #1a140d;
  --text-soft: #5b4f40;
  --ink: #1a140d;
  --line: #1a140d;
  --yellow: #ffc61a;
  --yellow-strong: #f2a900;
  --red: #b8202f;
  --dot: rgba(26, 20, 13, .07);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
  --max: 1160px;
  --header-h: 66px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "Futura", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110b;
    --bg-soft: #21190f;
    --panel: #2a2014;
    --text: #fbf1dc;
    --text-soft: #c9b998;
    --line: #000000;
    --dot: rgba(255, 198, 26, .06);
    --shadow: 5px 5px 0 #000;
    --shadow-sm: 3px 3px 0 #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110b;
  --bg-soft: #21190f;
  --panel: #2a2014;
  --text: #fbf1dc;
  --text-soft: #c9b998;
  --line: #000000;
  --dot: rgba(255, 198, 26, .06);
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--yellow-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
code { font: .88em ui-monospace, Menlo, monospace; background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: #1a140d; padding: 8px 14px; border: 2px solid var(--ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow-strong); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 800 1rem/1 var(--font); text-decoration: none;
  padding: .95em 1.4em; border-radius: 999px;
  border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease; cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--yellow); color: #1a140d; }
.btn-ghost { background: var(--panel); color: var(--text); }
.btn-small { padding: .6em 1em; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1em; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--panel); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 1.45rem/1 var(--font-display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.brand img { border-radius: 9px; border: 2px solid var(--ink); }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { font-weight: 700; font-size: .95rem; text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-link { font-weight: 800; font-size: .85rem; text-decoration: none; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--panel); }
.menu-toggle { display: none; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 22px 18px; background: var(--bg); border-bottom: 3px solid var(--ink); }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--bg-soft); }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 520px) {
  .header-actions .btn span { display: none; }
  .brand span { display: none; }
}

/* ---------- Héros ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; max-width: 100%; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow); color: #1a140d; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow svg { width: 18px; height: 18px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 { text-shadow: 3px 3px 0 var(--yellow); }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 36em; }
.note { font-size: .9rem; color: var(--text-soft); }
.hero-media { position: relative; height: 600px; }
.hero-media .device { position: absolute; width: 270px; }
.hero-media .front { right: 18%; top: 10px; transform: rotate(3deg); z-index: 2; }
.hero-media .back { right: 48%; top: 70px; transform: rotate(-6deg); opacity: .96; }
.burst {
  position: absolute; z-index: 3; right: 0; top: 0; display: grid; place-items: center; width: 120px; height: 120px;
  font: 900 1.6rem/1 var(--font-display); color: #1a140d; background: var(--yellow); transform: rotate(12deg);
  clip-path: polygon(50% 0, 61% 30%, 95% 20%, 72% 47%, 100% 68%, 66% 70%, 70% 100%, 48% 76%, 24% 98%, 30% 68%, 0 64%, 26% 45%, 6% 18%, 38% 30%);
  filter: drop-shadow(3px 3px 0 var(--ink));
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-media { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-media .device { width: 220px; }
}

/* ---------- Appareils ---------- */
.device { border: 3px solid var(--ink); border-radius: 34px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.device.ipad { border-radius: 22px; }
.device img { width: 100%; }
.shot-missing { aspect-ratio: 1206 / 2622; display: grid; place-items: center; color: #999; font-size: .8rem; padding: 12px; text-align: center; }

/* ---------- Tranches (sources) ---------- */
.spines { border-block: 3px solid var(--ink); background: var(--bg-soft); padding: 22px 0; }
.spines .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.spines p { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.spines ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.spines li {
  font: 700 1rem/1 Georgia, "Times New Roman", serif; color: #fff8e8; padding: 11px 18px;
  border: 2px solid var(--ink); border-radius: 5px; box-shadow: var(--shadow-sm);
  background: linear-gradient(90deg, transparent 10px, rgba(255, 214, 120, .7) 10px, rgba(255, 214, 120, .7) 12px, transparent 12px, transparent calc(100% - 12px), rgba(255, 214, 120, .7) calc(100% - 12px), rgba(255, 214, 120, .7) calc(100% - 10px), transparent calc(100% - 10px)), linear-gradient(180deg, var(--spine), color-mix(in srgb, var(--spine) 75%, #000));
  padding-inline: 24px;
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); border-block: 3px solid var(--ink); }
.section-ink { background: #1a140d; color: #fbf1dc; border-block: 3px solid #000; }
.section-ink .panel { background: #2a2014; color: #fbf1dc; border-color: #000; box-shadow: 5px 5px 0 var(--yellow); }
.section-ink .panel p { color: #d6c6a3; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p { font-size: 1.15rem; color: var(--text-soft); }
.section-ink .section-head h2 { color: var(--yellow); }

.panel { position: relative; background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel p { color: var(--text-soft); }
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.tile {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; margin-bottom: 16px;
  color: #fff8e8; border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, var(--spine), color-mix(in srgb, var(--spine) 72%, #000));
}
.tile svg { width: 28px; height: 28px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: 2px; border-radius: 50%; background: var(--yellow); color: #1a140d; border: 2px solid var(--ink); stroke-width: 3; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; margin-bottom: 90px; }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }
.feature-media { display: grid; place-items: center; }
.feature-media .device { width: min(300px, 80%); transform: rotate(-2deg); }
.feature.flip .feature-media .device { transform: rotate(2deg); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip > :first-child { order: 0; }
}

/* ---------- Galerie ---------- */
.gallery { display: flex; gap: 26px; overflow-x: auto; padding: 10px max(22px, calc((100vw - var(--max)) / 2 + 22px)) 30px; scroll-snap-type: x mandatory; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: center; }
.gallery figure.iphone { width: 240px; }
.gallery figure.ipad { width: 420px; }
.gallery button { display: block; padding: 0; border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; background: #000; box-shadow: var(--shadow); cursor: zoom-in; width: 100%; }
.gallery .ipad button { border-radius: 18px; }
.gallery figcaption { text-align: center; font-weight: 700; margin-top: 14px; font-size: .95rem; }
.lightbox { border: 3px solid var(--ink); border-radius: 18px; padding: 0; background: #000; max-width: 94vw; max-height: 94vh; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(10, 6, 2, .82); }
.lightbox img { max-height: 92vh; width: auto; }
.lightbox form { position: absolute; top: 10px; right: 10px; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; }
.steps h3 { color: var(--red); }
:root[data-theme="dark"] .steps h3 { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps h3 { color: var(--yellow); } }

/* ---------- Tarifs ---------- */
.plan { display: flex; flex-direction: column; text-align: center; padding-top: 36px; }
.plan .btn { justify-content: center; margin-top: auto; }
.plan.highlight { background: var(--yellow); color: #1a140d; transform: rotate(-1deg); }
.plan.highlight p, .plan.highlight .period { color: #3d3020; }
.price { font: 900 2.4rem/1.1 var(--font-display); margin: 6px 0 2px; }
.price.pending { font-size: 1.5rem; padding: 10px 0 6px; }
.period { font-size: .9rem; color: var(--text-soft); margin-bottom: 14px; }
.ribbon { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 5px 14px; border: 2px solid var(--ink); border-radius: 6px; white-space: nowrap; }
.legal { text-align: center; font-size: .85rem; color: var(--text-soft); max-width: 760px; margin: 30px auto 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 1.4rem/1 var(--font-display); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-soft); }

/* ---------- Appel final ---------- */
.final { text-align: center; background: var(--yellow); color: #1a140d; border-top: 3px solid var(--ink); }
.final img { margin: 0 auto 26px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 #1a140d; }
.final p { font-size: 1.2rem; max-width: 34em; margin-inline: auto; }
.final .cta-row { justify-content: center; }
.final .btn-primary { background: #1a140d; color: var(--yellow); }
.final .btn-ghost { background: #fff8e8; color: #1a140d; }

/* ---------- Nouveautés ---------- */
.page { padding: clamp(48px, 7vw, 90px) 0; }
.release { margin-bottom: 30px; }
.release h2 { font-size: 1.7rem; }
.release h3 { display: inline-block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); color: #1a140d; margin: 18px 0 10px; }
.release h3.tag-corrigé { background: #d8f0e2; }
.release h3.tag-modifié { background: #dbe4ff; }
.release h3.tag-supprimé { background: #ffd9d9; }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin-bottom: .5em; color: var(--text-soft); }
.release li strong { color: var(--text); }

/* ---------- Pied de page ---------- */
.site-footer { background: #1a140d; color: #d6c6a3; padding: 44px 0; border-top: 3px solid #000; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: var(--yellow); }
.footer-brand { display: grid; gap: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }
.site-footer > .wrap > small { width: 100%; opacity: .75; }

/* ---------- 404 / racine ---------- */
.not-found { min-height: 80vh; display: grid; place-content: center; text-align: center; padding: 40px 22px; }
.not-found img { margin: 0 auto 24px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.not-found .cta-row { justify-content: center; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.plan.highlight.reveal.visible { transform: rotate(-1deg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
