/* =====================================================================
   Game as Service : direction artistique « boîte de jeu PC »
   papier crème, encre noire, couleurs franches, ombres dures
   ===================================================================== */
:root {
  --paper: #f3ead7;
  --paper-2: #ebdfc4;
  --white: #fffdf7;
  --ink: #171310;
  --ink-2: #4a423a;
  --ink-3: #8a7f70;
  --blue: #2a3bff;
  --blue-d: #1b26b3;
  --yellow: #ffcd00;
  --red: #ff3d1f;
  --teal: #00a58c;
  --kraft: #c9a26a;
  --kraft-d: #a8834e;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --bw: 3px;
  --shadow: 6px 6px 0 var(--ink);
  --maxw: 1180px;
  --star: polygon(50.0% 0.0%, 56.6% 8.5%, 65.5% 2.4%, 69.1% 12.6%, 79.4% 9.5%, 79.7% 20.3%, 90.5% 20.6%, 87.4% 30.9%, 97.6% 34.5%, 91.5% 43.4%, 100.0% 50.0%, 91.5% 56.6%, 97.6% 65.5%, 87.4% 69.1%, 90.5% 79.4%, 79.7% 79.7%, 79.4% 90.5%, 69.1% 87.4%, 65.5% 97.6%, 56.6% 91.5%, 50.0% 100.0%, 43.4% 91.5%, 34.5% 97.6%, 30.9% 87.4%, 20.6% 90.5%, 20.3% 79.7%, 9.5% 79.4%, 12.6% 69.1%, 2.4% 65.5%, 8.5% 56.6%, 0.0% 50.0%, 8.5% 43.4%, 2.4% 34.5%, 12.6% 30.9%, 9.5% 20.6%, 20.3% 20.3%, 20.6% 9.5%, 30.9% 12.6%, 34.5% 2.4%, 43.4% 8.5%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 110px 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
h1, h2, h3, p, li { overflow-wrap: break-word; }
em { font-style: normal; }
h1 em, h2 em {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em;
}

/* ---------- labels ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.label::before { content: ""; width: 26px; height: var(--bw); background: currentColor; }
.tag-chip {
  display: inline-block; padding: 4px 10px; border: 2px solid var(--ink); background: var(--white);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- boutons « enfonçables » ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border: var(--bw) solid var(--ink); border-radius: 0;
  font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-buy { background: var(--red); color: var(--white); }
.btn-buy .coin {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-size: 13px;
}
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-lg { padding: 20px 32px; font-size: 20px; }
.btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- barre du haut ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 19px; text-decoration: none; letter-spacing: .01em; }
.logo-mark {
  width: 26px; height: 34px; background: var(--blue); border: 2px solid var(--paper); flex: none;
  box-shadow: 3px 3px 0 var(--yellow); display: grid; place-items: center; font-size: 10px; color: var(--yellow);
}
.logo b { color: var(--yellow); font-weight: 400; }
.logo > span:last-child { white-space: nowrap; }
.nav-links { display: flex; gap: 20px; white-space: nowrap; margin-left: auto; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; opacity: .8; }
.nav-links a:hover { opacity: 1; color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav .btn { border-color: var(--paper); box-shadow: 3px 3px 0 var(--yellow); }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 2px solid currentColor; background: transparent;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--white); color: var(--ink);
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow); display: none; z-index: 5;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; width: 100%; gap: 12px; padding: 10px 14px; border: 0; background: none; text-align: left; font-size: 15px;
  border-bottom: 1px dashed var(--ink-3);
}
.lang-menu button:last-child { border-bottom: 0; }
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: var(--yellow); }
.lang-menu .code { font-family: var(--mono); font-weight: 600; width: 24px; }

/* =========================== HERO / JAQUETTE =========================== */
.hero { padding: 70px 0 120px; overflow: hidden; }
.hero::before { /* étagère de magasin */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px;
  background: repeating-linear-gradient(90deg, rgba(23,19,16,.08) 0 2px, transparent 2px 11px), var(--kraft);
  border-top: var(--bw) solid var(--ink);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; position: relative; }
.hero .wrap > * { min-width: 0; }

.box-stage { perspective: 1600px; display: grid; place-items: center; padding-top: 0; position: relative; z-index: 1; }
.box {
  --w: 340px; --h: 470px; --d: 66px;
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  transform: rotateY(26deg) rotateX(-4deg); transition: transform .6s cubic-bezier(.2,.8,.2,1);
  animation: boxIn 1s cubic-bezier(.2,.8,.2,1) both;
}
.box:hover { transform: rotateY(8deg) rotateX(-2deg); }
@keyframes boxIn { from { transform: rotateY(70deg) rotateX(-4deg) translateY(30px); opacity: 0; } }
.box > div { position: absolute; border: var(--bw) solid var(--ink); }
.box .front { inset: 0; transform: translateZ(calc(var(--d) / 2)); background: var(--blue); overflow: hidden; display: flex; flex-direction: column; }
.box .back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--ink); }
.box .spine {
  top: 0; height: var(--h); width: var(--d); left: calc(50% - var(--d) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: var(--ink); color: var(--yellow);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0;
}
.box .spine .s-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 26px; letter-spacing: .04em; white-space: nowrap; }
.box .spine .s-title b { color: var(--red); font-weight: 400; }
.box .spine .s-mark { width: 34px; height: 34px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 13px; }
.box .spine .s-pc { font-family: var(--mono); font-weight: 600; font-size: 13px; border: 2px solid var(--yellow); padding: 2px 6px; }
.box .top {
  left: 0; width: var(--w); height: var(--d); top: calc(50% - var(--d) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: var(--blue-d);
}

/* jaquette */
.cover-band { background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cover-band .pc { background: var(--white); color: var(--ink); padding: 1px 7px; font-family: var(--display); letter-spacing: 0; font-size: 13px; }
.cover-art { position: relative; flex: 1; overflow: hidden; }
.cover-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-title { position: absolute; left: 0; right: 0; top: 16px; text-align: center; z-index: 1; }
.cover-title .t1 {
  font-family: var(--display); font-size: 44px; line-height: .92; color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); display: block;
}
.cover-title .t2 {
  display: inline-block; margin-top: 10px; background: var(--red); color: var(--white); font-family: var(--display); font-size: 22px;
  padding: 2px 12px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg);
}
.cover-sub { background: var(--yellow); color: var(--ink); border-top: var(--bw) solid var(--ink); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.cover-sub .lvl { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 7.5px; font-weight: 600; line-height: 1.05; text-transform: uppercase; padding: 4px; }
.cover-sub .txt { font-family: var(--display); font-size: 13px; line-height: 1.15; text-transform: uppercase; }
.cover-burst {
  position: absolute; right: 10px; top: 112px; width: 96px; height: 96px; clip-path: var(--star); background: var(--red); z-index: 2;
  display: grid; place-items: center; align-content: center; text-align: center; color: var(--white); font-family: var(--display); font-size: 13px; line-height: 1;
  animation: wobble 3s ease-in-out infinite;
}
.cover-burst span { display: block; font-size: 24px; color: var(--yellow); }
@keyframes wobble { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(4deg) scale(1.06); } }

/* texte du hero */
.hero-copy { padding-bottom: 60px; }
.hero-copy .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(38px, 4.8vw, 66px); margin-bottom: 22px; }
.hero-copy .sub { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; font-family: var(--mono); font-size: 14px; }
.trust li::before { content: "■ "; color: var(--red); }

/* =========================== DOS DE BOÎTE =========================== */
.back-of-box { background: var(--yellow); border-bottom: var(--bw) solid var(--ink); }
.back-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.back-grid > * { min-width: 0; }
.big-h { font-size: clamp(34px, 4.4vw, 58px); margin: 16px 0 18px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; margin: 0; }
.back-of-box h2 em { background: none; color: var(--red); }

.shot { margin: 10px 0 0; background: var(--white); border: var(--bw) solid var(--ink); padding: 12px 12px 46px; box-shadow: var(--shadow); transform: rotate(-1.5deg); position: relative; }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.shot::after { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(2deg); background: rgba(255,253,247,.7); border: 1px solid rgba(23,19,16,.15); }
.terminal { background: #12161f; color: #d8dde6; font-family: var(--mono); font-size: 13px; border: 2px solid var(--ink); }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #1d2330; border-bottom: 2px solid var(--ink); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4252; }
.term-bar span { margin-left: 8px; color: #7c8597; font-size: 11px; }
.term-body { padding: 16px; min-height: 300px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: var(--yellow); } .term-body .c { color: #7c8597; } .term-body .ok { color: #3ee6a8; }
.term-body .y { color: #ffb86b; } .term-body .b { color: #8fa2ff; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--yellow); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.vs-head { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--display); font-size: 14px; text-transform: uppercase; margin-top: 34px; margin-bottom: 8px; }
.vs-head span { padding: 0 14px; }
.vs-head span:first-child { color: var(--ink-2); }
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vs-list li { display: grid; grid-template-columns: 1fr 1fr; border: var(--bw) solid var(--ink); background: var(--white); }
.vs-list .old { padding: 12px 14px; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; border-right: 2px dashed var(--ink); font-size: 14.5px; }
.vs-list .new { padding: 12px 14px; font-weight: 500; font-size: 14.5px; }

.req { margin-top: 34px; border: var(--bw) solid var(--ink); background: var(--white); }
.req h3 { background: var(--ink); color: var(--yellow); font-size: 15px; padding: 10px 14px; text-transform: uppercase; letter-spacing: .04em; }
.req ul { list-style: none; margin: 0; padding: 6px 14px 10px; font-family: var(--mono); font-size: 14px; }
.req li { padding: 8px 0; border-bottom: 1px dashed var(--ink-3); }
.req li:last-child { border-bottom: 0; }
.req li b { display: inline-block; min-width: 110px; text-transform: uppercase; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border: var(--bw) solid var(--ink); background: var(--ink); gap: var(--bw); }
.stats-strip > div { background: var(--white); padding: 22px 18px; }
.stats-strip b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--blue); }
.stats-strip span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.agents-line { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.agents-line > span:first-child { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.agents-line .tag-chip { background: var(--paper); }

/* =========================== NOTICE =========================== */
.manual { background: var(--white); }
.manual-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; border-bottom: var(--bw) solid var(--ink); padding-bottom: 26px; margin-bottom: 50px; }
.manual-head .pg { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; font-weight: 600; }
.manual-head .label { color: var(--red); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--bw) solid var(--ink); }
.steps > * { min-width: 0; }
.step { padding: 26px 24px 30px; border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); background: var(--white); }
.step:nth-child(3n) { border-right: 0; }
.step:nth-last-child(-n+3) { border-bottom: 0; }
.step .n { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step .n b { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1; color: var(--blue); -webkit-text-stroke: 2px var(--ink); }
.step .n .time { font-family: var(--mono); font-weight: 600; background: var(--ink); color: var(--yellow); padding: 4px 10px; font-size: 14px; }
.step h4 { font-size: 22px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.step:last-child { background: var(--yellow); }
.step:last-child .n b { color: var(--red); }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 50px; text-align: center; }
.cta-line small { font-family: var(--mono); font-size: 14px; color: var(--ink-2); flex-basis: 100%; }

/* sommaire */
.toc-wrap { margin-top: 110px; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 18px 0; border-bottom: 2px dashed var(--ink-3); }
.toc .row { display: flex; align-items: baseline; gap: 14px; }
.toc .num { font-family: var(--display); font-size: 26px; color: var(--red); flex: none; width: 52px; }
.toc h3 { font-size: clamp(19px, 2.2vw, 26px); flex: 0 1 auto; }
.toc .dots { flex: 1; border-bottom: 3px dotted var(--ink); transform: translateY(-6px); min-width: 20px; }
.toc .p { font-family: var(--mono); font-weight: 600; flex: none; }
.toc p { margin: 6px 0 0 66px; color: var(--ink-2); font-size: 15.5px; max-width: 780px; }

/* =========================== CONTENU DE LA BOÎTE =========================== */
.inbox { background: var(--kraft) var(--grain); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.inbox::before { /* scotch */
  content: ""; position: absolute; top: -18px; left: 50%; width: 240px; height: 34px; transform: translateX(-50%) rotate(-1deg);
  background: rgba(240,226,190,.8); border-left: 2px dashed rgba(23,19,16,.25); border-right: 2px dashed rgba(23,19,16,.25);
}
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; margin-top: 54px; }
.items > * { min-width: 0; }
.item { background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 24px; position: relative; }
.item .qty { position: absolute; top: -14px; right: 16px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-weight: 600; font-size: 14px; padding: 3px 10px; }
.item .obj { height: 76px; margin-bottom: 18px; display: flex; align-items: center; }
.item h3 { font-size: 20px; margin-bottom: 8px; }
.item p { margin: 0; color: var(--ink-2); font-size: 15px; }
/* objets dessinés en CSS */
.o-manual { width: 58px; height: 72px; background: var(--blue); border: var(--bw) solid var(--ink); position: relative; box-shadow: 4px 4px 0 var(--ink); }
.o-manual::after { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 18px; background: var(--yellow); border: 2px solid var(--ink); }
.o-cards { position: relative; width: 96px; height: 70px; }
.o-cards i { position: absolute; top: 2px; width: 48px; height: 64px; border: var(--bw) solid var(--ink); }
.o-cards i:nth-child(1) { left: 0; transform: rotate(-12deg); background: var(--yellow); }
.o-cards i:nth-child(2) { left: 22px; background: var(--red); }
.o-cards i:nth-child(3) { left: 44px; transform: rotate(12deg); background: var(--white); }
.o-disc { width: 72px; height: 72px; border-radius: 50%; border: var(--bw) solid var(--ink); background: conic-gradient(var(--yellow), var(--red), var(--blue), var(--teal), var(--yellow)); position: relative; }
.o-disc::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--white); border: var(--bw) solid var(--ink); }
.o-map { width: 96px; height: 64px; border: var(--bw) solid var(--ink); background: repeating-linear-gradient(90deg, var(--white) 0 30px, var(--paper-2) 30px 32px); position: relative; }
.o-map::after { content: "✕"; position: absolute; right: 14px; top: 10px; color: var(--red); font-weight: 900; font-size: 22px; }
.o-check { width: 62px; height: 74px; border: var(--bw) solid var(--ink); background: repeating-linear-gradient(var(--white) 0 17px, var(--ink-3) 17px 18px); position: relative; }
.o-check::before { content: "✓\A✓\A✓"; white-space: pre; position: absolute; left: 7px; top: 1px; color: var(--teal); font-weight: 900; font-size: 13px; line-height: 18px; }
.o-refresh { width: 76px; height: 76px; background: var(--yellow); clip-path: var(--star); display: grid; place-items: center; font-family: var(--display); font-size: 28px; }

.compat { margin-top: 80px; text-align: center; }
.compat h3 { font-size: 22px; margin-bottom: 20px; text-transform: uppercase; }
.engines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.engine { padding: 8px 14px; border: 2px solid var(--ink); background: var(--paper); font-family: var(--mono); font-weight: 600; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.engine:nth-child(3n) { background: var(--yellow); } .engine:nth-child(4n) { background: var(--white); }

/* =========================== AVERTISSEMENT =========================== */
.warning-box { border: var(--bw) solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--ink); }
.warning-box > header { display: flex; align-items: center; gap: 16px; background: var(--red); color: var(--white); padding: 16px 22px; border-bottom: var(--bw) solid var(--ink); }
.warning-box > header .tri { flex: none; width: 36px; height: 32px; background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: grid; place-items: end center; color: var(--ink); font-weight: 900; font-size: 17px; padding-bottom: 2px; }
.warning-box > header h2 { font-size: clamp(20px, 2.6vw, 30px); text-transform: uppercase; }
.warning-box .w-title { padding: 26px 28px 0; font-size: clamp(26px, 3.4vw, 40px); }
.warning-body { display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 24px; border-top: var(--bw) solid var(--ink); }
.warning-body > * { min-width: 0; padding: 28px; }
.warning-body > div:first-child { border-right: var(--bw) solid var(--ink); }
.warning-body h3 { font-size: 18px; margin-bottom: 16px; text-transform: uppercase; }
.warning-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.warning-body li { padding-left: 36px; position: relative; }
.warning-body li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--ink); font-weight: 900; font-size: 12px; }
.warning-body .yes li::before { content: "✓"; background: var(--yellow); }
.warning-body .no li::before { content: "✕"; background: var(--red); color: var(--white); }
.warning-body .no { background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255,61,31,.07) 12px 24px); }

/* =========================== CAISSE =========================== */
.checkout { background: var(--blue); color: var(--white); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.checkout::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.13) 1.4px, transparent 1.7px) 0 0 / 14px 14px; }
.checkout .wrap { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; position: relative; }
.checkout .wrap > * { min-width: 0; }
.checkout .label { color: var(--yellow); }
.checkout h2 { font-size: clamp(36px, 4.8vw, 64px); margin: 16px 0 18px; }
.checkout h2 em { background: none; color: var(--yellow); }
.checkout .lead { color: rgba(255,255,255,.88); }
.receipt { background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 14px; padding: 30px 28px 26px; position: relative; filter: drop-shadow(10px 10px 0 var(--ink)); transform: rotate(1.2deg); }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; }
.receipt::before { top: -11px; background: linear-gradient(135deg, transparent 50%, var(--white) 50%) 0 0 / 12px 12px repeat-x, linear-gradient(-135deg, transparent 50%, var(--white) 50%) 0 0 / 12px 12px repeat-x; }
.receipt::after { bottom: -11px; background: linear-gradient(45deg, transparent 50%, var(--white) 50%) 0 0 / 12px 12px repeat-x, linear-gradient(-45deg, transparent 50%, var(--white) 50%) 0 0 / 12px 12px repeat-x; }
.receipt .shop { text-align: center; font-family: var(--display); font-size: 22px; }
.receipt .meta { text-align: center; font-size: 12px; color: var(--ink-2); margin: 4px 0 16px; text-transform: uppercase; letter-spacing: .1em; }
.receipt hr { border: 0; border-top: 2px dashed var(--ink); margin: 14px 0; }
.receipt .line { display: flex; gap: 10px; justify-content: space-between; padding: 4px 0; }
.receipt .line span:last-child { flex: none; color: var(--teal); font-weight: 600; text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.receipt .product { font-weight: 600; font-size: 15px; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.receipt .total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; text-transform: uppercase; }
.receipt .total b { font-family: var(--display); font-weight: 400; font-size: 46px; letter-spacing: -.02em; }
.receipt .note { font-size: 12px; color: var(--ink-2); margin: 2px 0 18px; }
.receipt .btn { width: 100%; }
.barcode { height: 46px; margin: 22px auto 4px; width: 80%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 8px, var(--ink) 8px 9px, transparent 9px 12px, var(--ink) 12px 15px, transparent 15px 16px); }
.barcode-num { text-align: center; font-size: 12px; letter-spacing: .3em; }
.secure { text-align: center; font-size: 12px; color: var(--ink-2); margin-top: 12px; }

.warranty { margin-top: 36px; border: 3px dashed var(--white); padding: 20px 22px 20px 78px; position: relative; max-width: 560px; background: rgba(23,19,16,.22); }
.warranty::before { content: "✂"; position: absolute; top: -17px; left: 18px; font-size: 22px; background: var(--blue); padding: 0 6px; line-height: 1.4; }
.warranty .seal { position: absolute; left: 16px; top: 50%; margin-top: -24px; width: 48px; height: 48px; clip-path: var(--star); background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 15px; transform: rotate(-12deg); }
.warranty h3 { font-size: 16px; text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; }
.warranty p { margin: 0; font-size: 15px; color: rgba(255,255,255,.92); }

/* =========================== DÉPANNAGE =========================== */
.faq-head { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: start; }
.faq-head > * { min-width: 0; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: var(--bw) solid var(--ink); background: var(--white); transition: box-shadow .15s; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; font-weight: 600; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .k { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--white); padding: 3px 7px; align-self: start; margin-top: 3px; }
.faq-list summary .k { background: var(--red); margin-top: 0; align-self: center; }
.faq-list .ans { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 0 18px; padding: 14px 0 18px; border-top: 2px dashed var(--ink-3); color: var(--ink-2); }
.faq-list .ans .k { background: var(--teal); }

/* =========================== FINAL =========================== */
.final { background: var(--ink); color: var(--paper); text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 115%, rgba(255,205,0,.09) 0 6deg, transparent 6deg 12deg); }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(40px, 6.5vw, 92px); margin: 22px 0 18px; }
.final h2 em { background: none; color: var(--yellow); }
.final .lead { color: rgba(243,234,215,.82); margin: 0 auto 40px; }
.final .btn { border-color: var(--paper); box-shadow: 6px 6px 0 var(--yellow); }
.final .tag-chip { background: var(--yellow); color: var(--ink); }

/* =========================== PIED =========================== */
footer { background: var(--paper); border-top: var(--bw) solid var(--ink); padding: 40px 0 120px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
footer nav a { text-decoration: none; } footer nav a:hover { color: var(--red); }
footer .logo-mark { color: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
footer .disc { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); max-width: 820px; margin: 0; }
footer .mini-barcode { width: 120px; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 6px, transparent 6px 9px); }

/* =========================== ÉTIQUETTE COLLANTE =========================== */
.sticky-buy {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 14px;
  background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 10px 10px 10px 18px;
  transform: translateY(170%); transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.sticky-buy.show { transform: none; }
.sticky-buy .txt { font-family: var(--mono); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sticky-buy .txt b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--red); }

/* ---------- apparition ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
.item:nth-child(odd) { rotate: -1.2deg; } .item:nth-child(even) { rotate: 1deg; }
.item { transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1), rotate .2s; }
.item:hover { rotate: 0deg; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  .box, .cover-burst, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================== PAGES SIMPLES =========================== */
.page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 60px 0; }
.card { width: 100%; max-width: 560px; margin: 0 auto; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 0 0 34px; }
.card .card-top { background: var(--blue); color: var(--yellow); border-bottom: var(--bw) solid var(--ink); padding: 12px 24px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.card h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 24px 30px 14px; }
.card p { color: var(--ink-2); margin: 0 30px 24px; }
.card form, .card .card-actions { margin: 0 30px; }
.card .btn { width: 100%; white-space: normal; font-size: 16px; text-align: center; }
.card .big-ic { margin: 30px 30px 0; width: 70px; height: 70px; clip-path: var(--star); background: var(--yellow); display: grid; place-items: center; }
.card .big-ic svg { width: 28px; height: 28px; }
.field { width: 100%; padding: 15px 16px; border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-family: var(--mono); font-size: 16px; margin-bottom: 14px; outline: none; border-radius: 0; }
.field:focus { background: var(--white); box-shadow: 4px 4px 0 var(--blue); }
.notice { margin: 18px 30px 0; padding: 14px 16px; border: var(--bw) solid var(--ink); font-size: 15px; display: none; }
.notice.show { display: block; }
.notice.ok { background: var(--yellow); }
.notice.err { background: #ffd9d2; }
.card .small-link { margin: 24px 30px 0; font-size: 14px; }
.card .small-link a { color: var(--red); font-weight: 600; }

.legal { max-width: 860px; margin: 50px auto 100px; padding: 40px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.legal h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 14px; }
.legal h2 { font-size: 22px; margin-top: 36px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--red); }
.legal .todo { background: var(--yellow); border: 2px solid var(--ink); padding: 8px 12px; font-family: var(--mono); font-size: 14px; color: var(--ink); }

/* formation */
.course { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: 40px 0 100px; align-items: start; }
.course > * { min-width: 0; }
.course-side { position: sticky; top: 84px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; }
.course-side .who-am-i { background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 12px; padding: 10px 14px; word-break: break-all; }
.course-side .prog-row { display: flex; justify-content: space-between; padding: 12px 14px 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; font-weight: 600; }
.progress { height: 14px; border: 2px solid var(--ink); margin: 6px 14px 10px; background: var(--paper); }
.progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--red) 0 6px, var(--yellow) 6px 12px); transition: width .4s; }
.side-mod { border-top: 2px dashed var(--ink-3); padding: 6px 8px 8px; }
.side-mod > b { display: block; font-family: var(--display); font-weight: 400; font-size: 14px; padding: 8px 6px 6px; }
.side-lesson { display: flex; gap: 10px; width: 100%; text-align: left; align-items: center; padding: 7px 8px; background: none; border: 0; font-size: 14.5px; color: var(--ink-2); }
.side-lesson:hover { background: var(--paper); color: var(--ink); }
.side-lesson.active { background: var(--yellow); color: var(--ink); font-weight: 600; }
.side-lesson .st { flex: none; width: 18px; height: 18px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 11px; background: var(--white); }
.side-lesson.done .st { background: var(--teal); color: var(--white); }
.lesson { background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 34px; }
.lesson .label { color: var(--red); }
.lesson h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0 22px; }
.video { aspect-ratio: 16/9; background: var(--ink); border: var(--bw) solid var(--ink); margin-bottom: 26px; }
.video iframe { width: 100%; height: 100%; border: 0; }
.lesson-body { color: var(--ink-2); }
.lesson-body h3 { color: var(--ink); font-size: 20px; margin: 24px 0 8px; }
.lesson-body code { font-family: var(--mono); background: var(--paper); padding: 1px 5px; border: 1px solid var(--ink-3); font-size: .9em; }
.lesson-body pre { background: var(--ink); color: var(--paper); padding: 16px; overflow: auto; font-family: var(--mono); font-size: 14px; white-space: pre-wrap; border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1180px) { .nav-links { display: none; } .nav-right { margin-left: auto; } }
@media (max-width: 1020px) {
  .hero .wrap, .back-grid, .checkout .wrap, .faq-head { grid-template-columns: 1fr; }
  .hero .wrap { align-items: start; }
  .hero-copy { padding-bottom: 0; }
  .box-stage { order: 2; margin-bottom: -30px; }
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .items { grid-template-columns: 1fr 1fr; }
  .course { grid-template-columns: 1fr; }
  .course-side { position: static; max-height: none; }
  .checkout .receipt { max-width: 460px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 76px 0; }
  .hero { padding: 34px 0 80px; }
  .box { --w: 250px; --h: 346px; --d: 50px; }
  .cover-title .t1 { font-size: 32px; }
  .cover-title .t2 { font-size: 16px; }
  .cover-burst { width: 76px; height: 76px; font-size: 10px; top: 92px; }
  .cover-burst span { font-size: 18px; }
  .cover-sub .txt { font-size: 11px; }
  .box .spine .s-title { font-size: 19px; }
  .nav .btn-buy { display: none; }
  .logo { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { border-right: 0; border-bottom: var(--bw) solid var(--ink); }
  .step:last-child { border-bottom: 0; }
  .items { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip b { font-size: 34px; }
  .vs-list li, .vs-head { grid-template-columns: 1fr; }
  .vs-head { display: none; }
  .vs-list .old { border-right: 0; border-bottom: 2px dashed var(--ink); }
  .warning-body { grid-template-columns: 1fr; }
  .warning-body > div:first-child { border-right: 0; border-bottom: var(--bw) solid var(--ink); }
  .warning-box .w-title { padding: 20px 18px 0; }
  .warning-body > * { padding: 22px 18px; }
  .toc .dots, .toc .p { display: none; }
  .toc .num { width: 40px; font-size: 22px; }
  .toc p { margin-left: 54px; }
  .receipt { padding: 26px 18px 22px; transform: none; }
  .btn-lg { padding: 17px 20px; font-size: 16px; white-space: normal; }
  .sticky-buy { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .card h1, .card p, .card form, .card .card-actions, .notice, .card .small-link { margin-left: 18px; margin-right: 18px; }
  .legal { padding: 24px 18px; margin: 24px 12px 80px; }
  .lesson { padding: 22px 16px; }
  .warranty { padding-left: 74px; }
}


/* ---------- fenêtre d'acceptation des CGV ---------- */
.consent { position: fixed; inset: 0; z-index: 100; background: rgba(23,19,16,.72); display: grid; place-items: center; padding: 16px; }
.consent-card { width: 100%; max-width: 520px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.consent-card .card-top { background: var(--blue); color: var(--yellow); border-bottom: var(--bw) solid var(--ink); padding: 12px 20px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; display: flex; justify-content: space-between; }
.consent-card h2 { font-size: clamp(24px, 4vw, 32px); margin: 24px 24px 18px; }
.consent-check { display: flex; gap: 14px; align-items: flex-start; margin: 0 24px; padding: 16px; border: var(--bw) solid var(--ink); background: var(--paper); cursor: pointer; font-size: 15px; line-height: 1.5; }
.consent-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }
.consent-check a { color: var(--red); font-weight: 600; }
.consent-check.shake { animation: shake .4s; border-color: var(--red); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.consent-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin: 22px 24px 24px; }
.consent-actions .btn { white-space: normal; text-align: center; }
.consent-actions .btn[aria-disabled="true"] { opacity: .4; box-shadow: 2px 2px 0 var(--ink); transform: none; cursor: not-allowed; }
@media (max-width: 720px) { .consent-actions .btn { flex: 1 1 100%; } }


/* ---------- bandeau cookies ---------- */
.cookie-bar { position: fixed; left: 22px; bottom: 22px; z-index: 90; max-width: 420px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 16px 18px; }
.cookie-bar p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cookie-bar a { color: var(--red); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; }
@media (max-width: 720px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
