/* =========================================================
   LE CODEUR FOU — un ordinateur de 1984 qui ne dort jamais
   Plastique beige · écran à phosphore ambré · listing papier · disquettes
   ========================================================= */
:root {
    --case:     #cfc6ae;   /* plastique beige d'époque */
    --case-hi:  #ddd5c1;
    --case-lo:  #b4aa8f;
    --case-dk:  #8f856b;
    --ink:      #2a251d;
    --ink-2:    #5b5344;
    --crt:      #17150f;   /* verre de l'écran éteint */
    --amber:    #ffb627;   /* phosphore ambré */
    --amber-hi: #ffe2a3;
    --amber-lo: #9a6a18;
    --red:      #e2412b;
    --paper:    #f8f5ea;
    --bar:      #dfe9d6;   /* bandes vertes du listing */
    --hazard:   #ffcf2e;

    /* une couleur de disquette par univers */
    --d-addon:   #c39028;
    --d-game:    #2c6a57;
    --d-website: #2d4877;
    --d-app:     #b0412e;

    --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --f-crt:  "VT323", "Courier New", monospace;
    --ease: cubic-bezier(.2,.7,.2,1);
    --maxw: 1160px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0; color: var(--ink); font-family: var(--f-sans); font-size: 1.04rem; line-height: 1.6;
    font-variation-settings: "wdth" 100;
    background-color: var(--case);
    /* grain du plastique moulé */
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
        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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--case-hi); padding: 10px 14px; border-radius: 6px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- BOUTONS (touches de clavier) ---------- */
.btn, .key {
    font: 700 .95rem/1 var(--f-sans); font-variation-settings: "wdth" 110; color: var(--ink); cursor: pointer;
    background: linear-gradient(#e9e2d0, #d6cdb7); border: 1px solid var(--case-dk); border-radius: 8px;
    padding: .85em 1.3em; box-shadow: 0 4px 0 var(--case-dk), 0 6px 10px rgba(0,0,0,.18);
    transition: transform .08s, box-shadow .08s;
}
.btn:active, .key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--case-dk), 0 2px 4px rgba(0,0,0,.2); }
.btn--big { font-size: 1.1rem; padding: 1em 1.6em; background: linear-gradient(#ff6a50, var(--red)); color: #fff; border-color: #8f2414; box-shadow: 0 4px 0 #8f2414, 0 8px 14px rgba(0,0,0,.2); }
.btn--big:active { box-shadow: 0 1px 0 #8f2414; }

/* ---------- BARRE DU HAUT ---------- */
.top {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 12px 24px;
    background: linear-gradient(var(--case-hi), var(--case)); border-bottom: 2px solid var(--case-lo);
    box-shadow: 0 6px 16px -10px rgba(0,0,0,.35);
}
.top__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.top__logo { display: grid; grid-template-rows: repeat(4, 4px); gap: 2px; width: 26px; }
.top__logo i:nth-child(1) { background: var(--d-addon); } .top__logo i:nth-child(2) { background: var(--d-app); }
.top__logo i:nth-child(3) { background: var(--d-game); } .top__logo i:nth-child(4) { background: var(--d-website); }
.top__nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: .92rem; }
.top__nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-color: var(--red); }

.switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: 600 .85rem var(--f-sans); color: var(--ink); padding: 4px; }
.switch__track { width: 46px; height: 24px; border-radius: 6px; background: var(--case-lo); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); position: relative; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(#f2ecdd, #cfc5ac); box-shadow: 0 2px 2px rgba(0,0,0,.3); transition: left .25s var(--ease); }
.switch.is-on .switch__knob { left: 25px; }
.switch__state { font-family: var(--f-crt); font-size: 1.15rem; width: 2.2em; text-align: left; }

/* ---------- HERO ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: 56px 24px 72px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero__title {
    font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(3.4rem, 8.6vw, 7.6rem); line-height: .84; letter-spacing: -.035em;
    color: var(--case); /* lettres moulées dans le plastique */
    text-shadow: -1px -1px 0 #fff8e6, 2px 2px 0 var(--case-dk), 4px 4px 0 var(--case-dk), 6px 6px 0 #6f664f, 8px 10px 14px rgba(0,0,0,.25);
}
.hero__lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 30ch; margin: 28px 0 18px; font-weight: 500; }
.hero__warn { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; font-weight: 700; font-size: .95rem; box-shadow: 4px 4px 0 var(--ink); }

/* moniteur */
.monitor { position: relative; }
.monitor__bezel {
    background: linear-gradient(160deg, var(--case-hi), var(--case) 55%, var(--case-lo)); border-radius: 26px; padding: 26px 26px 16px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.12), 0 30px 50px -24px rgba(40,30,10,.55), 0 4px 0 var(--case-dk);
}
.crt { background: #0d0c08; border-radius: 22px; padding: 12px; box-shadow: inset 0 0 0 3px var(--case-dk), inset 0 6px 14px rgba(0,0,0,.6); }
.crt__glass {
    position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 30px / 24px; padding: 6% 7%;
    background: radial-gradient(120% 100% at 50% 40%, #2a2414 0%, #17150f 60%, #0b0a07 100%);
    color: var(--amber); font-family: var(--f-crt); font-size: clamp(1.05rem, 1.9vw, 1.55rem); line-height: 1.25;
    text-shadow: 0 0 4px rgba(255,182,39,.75), 0 0 14px rgba(255,140,0,.35);
    display: flex; flex-direction: column;
}
.crt__glass::after { /* lignes de balayage + vignette */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), radial-gradient(130% 110% at 50% 45%, transparent 55%, rgba(0,0,0,.65) 100%);
}
.crt__glass::before { /* reflet sur le verre bombé */
    content: ""; position: absolute; left: 6%; top: 4%; width: 45%; height: 30%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent); z-index: 2;
}
.crt__boot { position: absolute; inset: 0; padding: 6% 7%; background: inherit; z-index: 1; white-space: pre-wrap; }
.crt__boot.is-done { display: none; }
.crt__code { margin: 0; font: inherit; font-size: 1.12em; }
.ln { display: block; padding: 0 .3em; border-radius: 3px; position: relative; }
.ln__n { display: inline-block; width: 1.6em; color: var(--amber-lo); text-shadow: none; }
.ln.is-run { background: rgba(255,182,39,.18); color: var(--amber-hi); }
.ln.is-run::after { content: "◀"; position: absolute; right: .2em; }
.ln.is-skip { animation: skip .5s steps(2) 2; }
@keyframes skip { 50% { opacity: .25; text-decoration: line-through; } }
.crt__code .k { color: #ffd27a; }
.crt__code .f { color: var(--amber-hi); }
.crt__log { list-style: none; margin: auto 0 0; padding: .6em 0 0; border-top: 1px dashed rgba(255,182,39,.35); min-height: 5.2em; font-size: .92em; }
.crt__log li { opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crt__log li:last-child { opacity: 1; }
.crt__log li::before { content: "> "; color: var(--amber-lo); }
.crt__log .warn { color: #ff8a5c; }
.crt__status { display: flex; justify-content: space-between; gap: 10px; margin: .5em 0 0; padding: .2em .5em; background: var(--amber); color: #1a1408; text-shadow: none; font-size: .9em; border-radius: 2px; }

.monitor__panel { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 0 6px; flex-wrap: wrap; }
.plate {
    font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1rem; letter-spacing: .04em; color: var(--case-dk);
    text-shadow: 1px 1px 0 #fff6e0, -1px -1px 0 rgba(0,0,0,.18); margin-right: auto;
}
.led { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.led i { width: 10px; height: 10px; border-radius: 50%; background: #5d5546; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.led--on i { background: #52e07a; box-shadow: 0 0 8px #52e07a, 0 0 2px #fff inset; }
.led--dead i { background: #4d473b; position: relative; }
.led--dead i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 1.5px; background: #2a251d; transform: rotate(-35deg); }
.led--disk i.is-on { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.key { padding: .55em .9em; font-size: .8rem; }
.monitor__foot { width: 46%; height: 30px; margin: 0 auto; background: linear-gradient(var(--case-lo), var(--case)); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); box-shadow: inset 0 6px 8px rgba(0,0,0,.18); }

/* ---------- RUBAN DE CHANTIER ---------- */
.tape { overflow: hidden; position: relative; z-index: 1; background: repeating-linear-gradient(-45deg, var(--hazard) 0 22px, var(--ink) 22px 44px); padding: 8px 0; transform: rotate(-1.2deg); margin: 0 -20px; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.tape__track { display: flex; gap: 40px; width: max-content; animation: tape 40s linear infinite; }
.tape__track span { background: var(--hazard); color: var(--ink); font-weight: 900; font-variation-settings: "wdth" 120; padding: 4px 14px; white-space: nowrap; font-size: .95rem; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.sec { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 24px; }
.sec__head { max-width: 640px; margin-bottom: 36px; }
.sec__head h2 { font-weight: 900; font-variation-settings: "wdth" 118; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.02em; line-height: .98; }
.sec__head p { margin: 16px 0 0; color: var(--ink-2); font-size: 1.08rem; }
.sec--split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.sec--split .sec__head { position: sticky; top: 96px; }
.fine { font-size: .86rem; color: var(--ink-2); margin: 16px 0 0; max-width: 70ch; }

/* papier listing (bandes vertes + trous d'entraînement) */
.paper, .listing {
    position: relative; background: repeating-linear-gradient(var(--paper) 0 2.6em, var(--bar) 2.6em 5.2em);
    padding: 26px 64px; box-shadow: 0 2px 0 var(--case-dk), 0 18px 30px -16px rgba(40,30,10,.45);
}
.paper::before, .paper::after, .listing::before, .listing::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 30px; border-color: #c9c2ae; border-style: dashed; border-width: 0;
    background: radial-gradient(circle at 15px 15px, var(--case) 6px, transparent 6.5px) 0 0 / 30px 30px repeat-y, var(--paper);
}
.paper::before, .listing::before { left: 0; border-right-width: 1px; }
.paper::after, .listing::after { right: 0; border-left-width: 1px; }

/* revue de code */
.review { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; align-items: start; }
.review__code { margin: 0 0 18px; font-family: var(--f-crt); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3; color: var(--ink); }
.rl { display: block; position: relative; }
.rl::before { content: attr(data-n); position: absolute; left: -1.6em; color: #9d977f; font-size: .75em; top: .15em; }
.review__code .k { color: var(--d-website); }
.review__code .f { color: var(--d-app); }
.review__orig { font-size: .9rem; color: var(--ink-2); margin: 0 0 16px; }
.review__orig code { font-family: var(--f-crt); font-size: 1.2rem; color: var(--ink); background: rgba(255,207,46,.5); padding: 0 6px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notes li { position: relative; padding: 14px 16px 14px 18px; background: var(--paper); border-left: 4px solid var(--red); color: #8a2a1a; font-style: italic; font-size: .98rem; box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); }
.notes li:nth-child(odd) { transform: rotate(-.6deg); }
.notes li:nth-child(even) { transform: rotate(.5deg); }
.notes b { font-style: normal; color: var(--red); }

/* compteurs à LED */
.leds {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 14px; overflow: hidden;
    background: #0e0d09; box-shadow: 0 0 0 10px var(--case-lo), 0 0 0 12px var(--case-dk), 0 24px 40px -18px rgba(0,0,0,.5);
}
.seg { background: #18160f; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.seg--wide { grid-column: 1 / -1; }
.seg__v { font-family: var(--f-crt); font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: #ff4b2e; text-shadow: 0 0 6px rgba(255,75,46,.8), 0 0 18px rgba(255,40,20,.35); font-variant-numeric: tabular-nums; }
.seg--wide .seg__v { color: #52e07a; text-shadow: 0 0 6px rgba(82,224,122,.8), 0 0 18px rgba(82,224,122,.3); }
.seg__l { color: #b8ae93; font-size: .86rem; }
.seg--err .seg__v { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* polaroid + étiquette constructeur */
.polaroid { margin: 0; background: #fbfaf5; padding: 14px 14px 22px; transform: rotate(-2.5deg); box-shadow: 0 20px 30px -14px rgba(0,0,0,.45); position: relative; max-width: 480px; }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(255,240,180,.75); transform: rotate(3deg); box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.polaroid figcaption { margin-top: 14px; font-size: .95rem; font-style: italic; color: var(--ink-2); }
.label { background: linear-gradient(135deg, #f4f3ee, #e3e2da); border: 1px solid #a9a698; border-radius: 10px; padding: 22px 26px; box-shadow: 0 1px 0 #fff inset, 0 14px 26px -16px rgba(0,0,0,.4); }
.label__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.label__head strong { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.5rem; margin-right: auto; }
.label__head span { font-family: var(--f-crt); font-size: 1.25rem; color: var(--ink-2); }
.label__specs { margin: 0; }
.label__specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid #c9c7bb; }
.label__specs dt { font-weight: 800; font-size: .9rem; }
.label__specs dd { margin: 0; font-size: .95rem; }
.label__foot { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.label__foot p { margin: 0; font-size: .8rem; color: var(--ink-2); }
.barcode { flex: none; width: 120px; height: 48px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }

/* listing du journal */
.listing { max-width: 860px; }
.listing { font-size: 1rem; }
.listing__lines { list-style: none; margin: 0; padding: 0; font-family: var(--f-crt); font-size: clamp(1.25rem, 2.3vw, 1.55rem); }
.listing__lines li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; align-items: center; line-height: 1.1; padding: calc((2.6rem - 1.1em) / 2) 0; }
.listing__lines time { color: var(--d-website); }
.listing__goto { color: var(--red); }
.listing__goto time { color: var(--red); }

/* ---------- SCÈNE DE CRIME ---------- */
.crime { display: grid; gap: 34px; }
.crime__photo { position: relative; margin: 0; border: 10px solid #fbfaf5; box-shadow: 0 2px 0 var(--case-dk), 0 30px 50px -24px rgba(30,20,5,.6); transform: rotate(.4deg); }
.crime__photo img { width: 100%; height: auto; }
.crime__tape {
    position: absolute; left: -6%; top: 9%; width: 52%; transform: rotate(-14deg); overflow: hidden; pointer-events: none;
    background: var(--hazard); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 6px 0; box-shadow: 0 8px 16px rgba(0,0,0,.35);
}
.crime__tape span { display: block; white-space: nowrap; font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(.7rem, 1.4vw, 1rem); letter-spacing: .02em; color: var(--ink); }
.mark {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 3;
    width: 38px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer;
}
.mark__n {
    display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.05rem; color: var(--ink);
    background: var(--hazard); border: 2px solid var(--ink); border-radius: 7px 7px 3px 3px; box-shadow: 0 4px 0 #a67e0b, 0 8px 14px rgba(0,0,0,.45);
    clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); /* plot de police scientifique */
}
.mark::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--hazard); opacity: 0; animation: ping-mark 2.4s infinite; }
@keyframes ping-mark { 0% { opacity: .9; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
.mark:hover .mark__n, .mark.is-open .mark__n { background: #fff; }
.mark__bubble {
    position: absolute; bottom: calc(100% + 12px); left: 50%; width: min(280px, 70vw); transform: translateX(-50%) translateY(6px); opacity: 0; pointer-events: none;
    background: var(--paper); color: var(--ink); text-align: left; font-size: .9rem; line-height: 1.45; padding: 12px 14px; border-radius: 6px;
    border-left: 5px solid var(--hazard); box-shadow: 0 14px 28px rgba(0,0,0,.4); transition: .2s var(--ease); font-weight: 500;
}
.mark__bubble strong { display: block; font-weight: 900; font-variation-settings: "wdth" 112; margin-bottom: 2px; }
.mark.is-open { z-index: 5; }
.mark.is-open .mark__bubble { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.mark.is-left .mark__bubble { left: 0; transform: translateY(6px); }
.mark.is-left.is-open .mark__bubble { transform: none; }
.mark.is-right .mark__bubble { left: auto; right: 0; transform: translateY(6px); }
.mark.is-right.is-open .mark__bubble { transform: none; }
.mark.is-below .mark__bubble { bottom: auto; top: calc(100% + 12px); }

.pv { background: var(--paper); padding: 26px 30px 24px; box-shadow: 0 2px 0 var(--case-dk), 0 18px 30px -16px rgba(40,30,10,.45); position: relative; }
.pv::after { content: "Classé sans suite"; position: absolute; right: 24px; top: 18px; transform: rotate(-8deg); border: 3px solid var(--red); color: var(--red); padding: 4px 10px; font-weight: 900; font-variation-settings: "wdth" 125; font-size: .95rem; border-radius: 4px; opacity: .85; }
.pv__head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; padding-right: 190px; }
.pv__head strong { font-family: var(--f-crt); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.pv__head span { font-size: .9rem; color: var(--ink-2); }
.pv__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 26px; }
.pv__list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 8px; margin: -8px; border-radius: 6px; transition: background .2s; }
.pv__list li.is-hl { background: rgba(255,207,46,.35); }
.pv__n { width: 28px; height: 28px; display: grid; place-items: center; background: var(--hazard); border: 2px solid var(--ink); border-radius: 5px; font-weight: 900; font-size: .9rem; }
.pv__list strong { font-weight: 900; font-variation-settings: "wdth" 110; }
.pv__list p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.pv__verdict { margin: 24px 0 0; padding-top: 14px; border-top: 1px dashed var(--case-dk); font-size: 1rem; }
.seg--true .seg__v { color: var(--amber); text-shadow: 0 0 6px rgba(255,182,39,.8), 0 0 18px rgba(255,140,0,.3); }

/* ---------- LE MUSÉE : disquettes ---------- */
.shelf { margin-top: 56px; }
.shelf__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 40px; align-items: end; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 3px solid var(--case-dk); }
.shelf__head h3 { font-weight: 900; font-variation-settings: "wdth" 115; font-size: 1.7rem; display: flex; align-items: center; gap: 12px; }
.shelf__head h3::before { content: ""; width: 18px; height: 18px; border-radius: 3px; background: var(--disk); box-shadow: 0 2px 0 rgba(0,0,0,.25); flex: none; }
.shelf__head p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.shelf--addon { --disk: var(--d-addon); }
.shelf--game { --disk: var(--d-game); }
.shelf--website { --disk: var(--d-website); }
.shelf--app { --disk: var(--d-app); }
.disks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.disk {
    position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
    background: linear-gradient(160deg, color-mix(in srgb, var(--disk) 88%, #fff) 0%, var(--disk) 40%, color-mix(in srgb, var(--disk) 80%, #000) 100%);
    border-radius: 6px; padding: 0 14px 14px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); /* coin biseauté */
    box-shadow: 0 2px 0 rgba(0,0,0,.25);
    transition: transform .25s var(--ease), filter .25s;
}
.disk:hover, .disk:focus-visible { transform: translateY(-6px) rotate(-1.5deg); filter: drop-shadow(0 14px 14px rgba(0,0,0,.3)); }
.disk__shutter { align-self: center; width: 58%; height: 54px; margin-bottom: 14px; background: linear-gradient(90deg, #9da3a8, #e3e6e8 45%, #b9bec2); border-radius: 0 0 3px 3px; position: relative; box-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.disk__shutter i { position: absolute; top: 10px; bottom: 10px; left: 58%; width: 18%; background: #3b3a36; border-radius: 2px; }
.disk:hover .disk__shutter { transform: translateX(16%); }
.disk__label {
    flex: 1; display: flex; flex-direction: column; gap: 6px; background: #fbfaf4; border-radius: 3px; padding: 10px 12px 14px;
    background-image: repeating-linear-gradient(transparent 0 23px, #d9e3ee 23px 24px); background-position: 0 70%;
}
.disk__label img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 2px; margin-bottom: 4px; }
.disk__label strong { font-weight: 900; font-variation-settings: "wdth" 112; font-size: 1.12rem; line-height: 1.15; }
.disk__label span { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.disk__tag { position: absolute; left: 14px; top: 16px; font-family: var(--f-crt); font-size: 1.1rem; color: rgba(255,255,255,.85); }
.disk::after { content: ""; position: absolute; right: 14px; top: 20px; width: 12px; height: 14px; background: #1f1d19; border-radius: 2px; } /* languette de protection */

/* ---------- DIAGNOSTIC ---------- */
.diag { display: grid; gap: 4px; }
.diag__item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 1.02rem; }
.diag__item:hover { background: rgba(255,255,255,.35); }
.diag__item input { position: absolute; opacity: 0; pointer-events: none; }
.diag__box { width: 30px; height: 30px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; font-family: var(--f-crt); font-size: 1.6rem; line-height: 1; box-shadow: 2px 2px 0 var(--ink); margin-top: -2px; }
.diag__item input:checked + .diag__box::after { content: "X"; color: var(--red); }
.diag__item input:focus-visible + .diag__box { outline: 3px solid var(--red); outline-offset: 2px; }
.diag__result { margin-top: 18px; background: var(--crt); color: var(--amber); border-radius: 14px; padding: 20px 24px; font-family: var(--f-crt); text-shadow: 0 0 5px rgba(255,182,39,.6); box-shadow: 0 0 0 8px var(--case-lo), 0 0 0 10px var(--case-dk); display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.diag__score { font-size: 3rem; line-height: 1; }
.diag__verdict { margin: 0; font-size: 1.5rem; line-height: 1.2; }

/* ---------- IMPRIMANTE ---------- */
.printer { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.printer__paper {
    position: relative; width: 82%; min-height: 260px; padding: 22px 48px 26px; margin-bottom: -12px; z-index: 1;
    background: repeating-linear-gradient(var(--paper) 0 2.4em, var(--bar) 2.4em 4.8em);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
    box-shadow: 0 -10px 20px -14px rgba(0,0,0,.35);
    -webkit-mask: linear-gradient(transparent, #000 22%); mask: linear-gradient(transparent, #000 22%);
}
.printer__paper p { margin: 0; font-family: var(--f-crt); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.15; color: #26221b; }
.printer__paper p.is-old { opacity: .45; }
.printer__paper p::before { content: "» "; color: var(--red); }
.printer__empty::before { content: none !important; }
.printer__empty { color: #8e8875 !important; }
.printer__body { position: relative; z-index: 2; width: 100%; height: 92px; border-radius: 16px 16px 10px 10px; background: linear-gradient(var(--case-hi), var(--case) 60%, var(--case-lo)); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 var(--case-dk), 0 20px 30px -14px rgba(0,0,0,.45); }
.printer__slot { position: absolute; left: 7%; right: 7%; top: 12px; height: 12px; border-radius: 6px; background: #3a342a; box-shadow: inset 0 3px 4px rgba(0,0,0,.6); }
.printer__led { position: absolute; right: 26px; bottom: 22px; width: 10px; height: 10px; border-radius: 50%; background: #52e07a; box-shadow: 0 0 8px #52e07a; }
.printer.is-printing .printer__led { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: blink .2s steps(1) infinite; }
.printer.is-printing .printer__body { animation: shake .09s linear infinite; }
@keyframes shake { 50% { transform: translateX(1px); } }

/* ---------- POST-IT ---------- */
.notes-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.postit { background: #ffe873; padding: 22px 22px 18px; transform: rotate(var(--r)); box-shadow: 0 18px 22px -16px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.05); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.postit:nth-child(2) { background: #ffbfd0; } .postit:nth-child(3) { background: #c8efa6; }
.postit:nth-child(4) { background: #bfe1f5; } .postit:nth-child(5) { background: #ffd39a; } .postit:nth-child(6) { background: #e6d4ff; }
.postit p { margin: 0; font-size: 1.12rem; line-height: 1.4; font-weight: 500; }
.postit b { margin-top: 14px; font-weight: 900; font-variation-settings: "wdth" 115; }

/* ---------- PIED DE PAGE ---------- */
.foot { margin-top: 110px; background: linear-gradient(var(--case-lo), var(--case-dk)); border-top: 3px solid var(--case-dk); color: #201c15; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 64px; display: grid; gap: 10px; }
.foot__big { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.05; margin: 0 0 10px; max-width: 22ch; }
.foot p { margin: 0; }
.foot b { font-family: var(--f-crt); font-size: 1.35rem; font-weight: 400; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.foot__links a { font-weight: 800; }
.foot__links span { color: #3e372b; font-size: .9rem; }
.foot__egg { margin-top: 18px !important; font-size: .85rem; color: #3e372b; }

/* ---------- VEILLE (code secret) + TOAST ---------- */
.sleep { position: fixed; inset: 0; z-index: 200; background: #08070c; color: #7f86c9; display: grid; place-content: center; text-align: center; gap: 12px; animation: fade .6s; }
.sleep[hidden] { display: none; }
.sleep__z { margin: 0; font-family: var(--f-crt); font-size: clamp(5rem, 18vw, 12rem); line-height: 1; animation: float 2.4s ease-in-out infinite; }
.sleep__msg { margin: 0; font-family: var(--f-crt); font-size: 1.6rem; color: #b9bde8; padding: 0 20px; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-4deg); } }
@keyframes fade { from { opacity: 0; } }
.flash { position: fixed; inset: 0; z-index: 150; background: #fffdf5; pointer-events: none; animation: flash .9s forwards; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 210; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: min(560px, calc(100% - 32px)); background: var(--crt); color: var(--amber); font-family: var(--f-crt); font-size: 1.35rem; line-height: 1.2; padding: 12px 18px; border-radius: 10px; box-shadow: 0 0 0 4px var(--case-dk), 0 16px 30px -10px rgba(0,0,0,.5); text-shadow: 0 0 5px rgba(255,182,39,.6); transition: .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   NOUVEAUX CHAPITRES
   ========================================================= */
.sec__head code { font-family: var(--f-crt); font-size: 1.15em; background: rgba(255,207,46,.5); padding: 0 4px; }

/* ---------- GIT LOG : terminal ---------- */
.term { background: #0d0c08; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 10px var(--case-lo), 0 0 0 12px var(--case-dk), 0 24px 40px -18px rgba(0,0,0,.5); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #24211a; border-bottom: 1px solid #3a352a; }
.term__bar i { width: 12px; height: 12px; border-radius: 50%; background: #5d5546; }
.term__bar i:nth-child(1) { background: var(--red); } .term__bar i:nth-child(2) { background: var(--hazard); } .term__bar i:nth-child(3) { background: #52e07a; }
.term__bar span { margin-left: 10px; font-family: var(--f-crt); font-size: 1.15rem; color: #b8ae93; }
.term__body { padding: 20px 24px 24px; font-family: var(--f-crt); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; color: var(--amber); text-shadow: 0 0 4px rgba(255,182,39,.6); }
.term__cmd { margin: 0 0 10px; color: #f2ecdd; text-shadow: none; }
.term__out { margin: 0; }
.term__cursor { display: inline-block; width: .55em; height: 1em; margin-left: 4px; vertical-align: -2px; background: var(--amber); animation: blink 1s steps(1) infinite; }
.gitlog { list-style: none; margin: 0 0 20px; padding: 0; }
.gitlog li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 3px 0 3px 28px; }
.gitlog li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--amber-lo); }
.gitlog li:first-child::before { top: .7em; }
.gitlog li:last-child::before { bottom: calc(100% - .7em); }
.gitlog__dot { position: absolute; left: 2px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: #0d0c08; border: 2px solid var(--amber); }
.gitlog li:first-child .gitlog__dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.gitlog__hash { font: inherit; color: var(--hazard); }
.gitlog__ref { color: #52e07a; text-shadow: 0 0 4px rgba(82,224,122,.6); }
.gitlog__msg { flex: 1 1 18em; color: var(--amber-hi); }
.gitlog time { color: #8f856b; text-shadow: none; }

/* ---------- GESTIONNAIRE DES TÂCHES ---------- */
.win { background: var(--case-hi); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.win__title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px 7px 14px; background: var(--d-website); color: #fff; font-weight: 800; font-variation-settings: "wdth" 110; font-size: .92rem; }
.win__btns { display: flex; gap: 4px; }
.win__btns i { width: 22px; height: 20px; display: grid; place-items: center; font-style: normal; background: var(--case-hi); color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; font-size: .8rem; line-height: 1; }
.win__cols, .proc { display: grid; grid-template-columns: minmax(0, 1.6fr) 5.5em 5.5em minmax(0, 1.2fr); gap: 10px; align-items: center; }
.win__cols { padding: 8px 14px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--case-dk); background: var(--case); }
.procs { list-style: none; margin: 0; padding: 4px 0; background: #fbfaf4; max-height: 420px; overflow: auto; }
.proc { width: 100%; text-align: left; padding: 8px 14px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink); }
.proc:hover { background: rgba(45,72,119,.08); }
.proc[aria-selected="true"] { background: var(--d-website); color: #fff; }
.proc__n { font-family: var(--f-crt); font-size: 1.2rem; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc__cpu, .proc__mem { font-variant-numeric: tabular-nums; }
.proc__st { font-size: .85rem; }
.proc.is-dead .proc__st { color: var(--red); font-weight: 700; }
.proc[aria-selected="true"] .proc__st { color: #fff; }
.proc.is-shake { animation: shake .08s linear 6; }
.win__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 2px solid var(--case-dk); background: var(--case); font-size: .88rem; }
.win__foot b { font-family: var(--f-crt); font-size: 1.25rem; font-weight: 400; color: var(--red); }
.win__kill { padding: .65em 1.1em; }
.win__kill:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- AVIS DE RECHERCHE ---------- */
.wanted {
    position: relative; max-width: 520px; margin: 0 auto; padding: 30px 34px 30px; text-align: center; color: #3b2a14;
    background: #ecdcb2 radial-gradient(120% 90% at 50% 40%, #f3e7c4 0%, #e3cf9c 70%, #cdb27a 100%);
    box-shadow: 0 24px 34px -18px rgba(40,25,5,.6), inset 0 0 40px rgba(120,80,20,.25); transform: rotate(1.4deg);
}
.wanted::before { content: ""; position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a70, var(--red) 60%, #7a1d10); box-shadow: 0 3px 4px rgba(0,0,0,.4); }
.wanted__top { margin: 14px 0 0; font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(2rem, 5vw, 3.1rem); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.wanted__sub { margin: 6px 0 18px; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; }
.wanted__pic { background: #f8f5ea; border: 3px solid #3b2a14; padding: 18px 26px 10px; margin: 0 auto 18px; max-width: 320px; }
.wanted__photo-note { display: block; margin-top: 6px; font-size: .78rem; font-style: italic; color: var(--ink-2); }
.wanted__specs { margin: 0; text-align: left; }
.wanted__specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(59,42,20,.4); }
.wanted__specs dt { font-weight: 900; font-size: .88rem; text-transform: uppercase; letter-spacing: .03em; }
.wanted__specs dd { margin: 0; font-size: .95rem; }
.wanted__foot { margin: 16px 0 0; font-size: .9rem; font-style: italic; }
.wanted__stamp { position: absolute; right: -14px; top: 44%; transform: rotate(-16deg); border: 4px solid var(--red); color: var(--red); padding: 4px 12px; font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.15rem; text-transform: uppercase; border-radius: 6px; background: rgba(243,231,196,.6); opacity: .9; }

/* ---------- HOROSCOPE ---------- */
.horo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.horo__signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.horo__sign { font: 800 1rem/1 var(--f-sans); font-variation-settings: "wdth" 115; color: var(--ink); cursor: pointer; padding: 16px 12px; border-radius: 10px; background: linear-gradient(#e9e2d0, #d6cdb7); border: 1px solid var(--case-dk); box-shadow: 0 4px 0 var(--case-dk); transition: transform .08s, box-shadow .08s; }
.horo__sign:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--case-dk); }
.horo__sign[aria-selected="true"] { background: linear-gradient(#3a3424, #17150f); color: var(--amber); border-color: #0d0c08; box-shadow: 0 4px 0 #0d0c08; text-shadow: 0 0 6px rgba(255,182,39,.6); }
.horo__card { background: radial-gradient(120% 100% at 50% 0%, #2c2547 0%, #17142a 70%); color: #e6e1ff; border-radius: 16px; padding: 26px 28px; box-shadow: 0 0 0 10px var(--case-lo), 0 0 0 12px var(--case-dk), 0 24px 40px -18px rgba(0,0,0,.5); position: relative; overflow: hidden; }
.horo__card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 34% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 22%, #fff, transparent), radial-gradient(1px 1px at 88% 64%, #fff, transparent), radial-gradient(1px 1px at 56% 38%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 88%, #fff, transparent), radial-gradient(1px 1px at 66% 90%, #fff, transparent); }
.horo__card > * { position: relative; }
.horo__date { margin: 0; font-family: var(--f-crt); font-size: 1.2rem; color: #a59fd6; }
.horo__name { margin: 6px 0 2px; font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(2rem, 4.6vw, 3rem); color: #fff; }
.horo__el { margin: 0 0 16px; color: #ffd27a; font-weight: 700; }
.horo__txt { margin: 0 0 20px; font-size: 1.2rem; line-height: 1.45; min-height: 3.6em; }
.horo__stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.horo__stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #a59fd6; }
.horo__stats dd { margin: 2px 0 0; color: #ffd27a; letter-spacing: .1em; }
.horo__lucky { margin: 14px 0 0; font-size: .95rem; }
.horo__lucky b { font-family: var(--f-crt); font-size: 1.4rem; font-weight: 400; color: #ffd27a; }

/* ---------- DICTIONNAIRE ---------- */
.dico { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; background: var(--paper); padding: 30px 40px; box-shadow: 0 2px 0 var(--case-dk), 0 18px 30px -16px rgba(40,30,10,.45); position: relative; }
.dico::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 50%; width: 1px; background: #d8d1bb; }
.dico__e { padding: 14px 0; border-bottom: 1px solid #e6e0cd; break-inside: avoid; }
.dico dt { font-weight: 900; font-variation-settings: "wdth" 112; font-size: 1.25rem; }
.dico dt i { font-weight: 500; font-size: .85rem; color: var(--red); margin-left: 4px; }
.dico dd { margin: 4px 0 0; color: var(--ink); }
.dico__ex { display: block; margin-top: 4px; font-style: italic; color: var(--ink-2); font-size: .92rem; }

/* ---------- RÉPONDEUR ---------- */
.phone { max-width: 460px; margin: 0 auto; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, var(--case-hi), var(--case) 55%, var(--case-lo)); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 var(--case-dk), 0 30px 50px -24px rgba(40,30,10,.55); }
.phone__lcd { background: #b8c48a; color: #22281a; border-radius: 10px; padding: 12px 16px 14px; box-shadow: inset 0 3px 8px rgba(0,0,0,.35), 0 0 0 3px var(--case-dk); font-family: var(--f-crt); min-height: 150px; }
.phone__lcd-top { display: flex; justify-content: space-between; gap: 10px; font-size: 1.1rem; border-bottom: 1px dashed rgba(34,40,26,.4); padding-bottom: 4px; margin-bottom: 8px; }
.phone__rec { color: #8f2414; animation: blink 1.2s steps(1) infinite; }
.phone__msg { margin: 0; font-size: 1.4rem; line-height: 1.15; }
.phone__pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.phone__key { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; cursor: pointer; color: var(--ink); background: linear-gradient(#f2ecdd, #d6cdb7); border: 1px solid var(--case-dk); border-radius: 10px; box-shadow: 0 4px 0 var(--case-dk); font: inherit; transition: transform .08s, box-shadow .08s; }
.phone__key:active, .phone__key.is-down { transform: translateY(3px); box-shadow: 0 1px 0 var(--case-dk); }
.phone__key b { font-weight: 900; font-variation-settings: "wdth" 120; font-size: 1.5rem; line-height: 1; }
.phone__key span { font-size: .7rem; line-height: 1.2; color: var(--ink-2); text-align: center; }

@media (max-width: 1000px) {
    .horo { grid-template-columns: 1fr; }
    .horo__signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .term__body { padding: 16px; }
    .gitlog li { padding-left: 24px; }
    .win__cols, .proc { grid-template-columns: minmax(0, 1fr) 4em minmax(0, .9fr); }
    .win__cols span:nth-child(3), .proc__mem { display: none; }
    .wanted { padding: 26px 20px; transform: none; }
    .wanted__specs div { grid-template-columns: 1fr; gap: 0; }
    .wanted__stamp { right: 6px; top: 30%; font-size: .95rem; }
    .phone__rec { display: none; }
    .term__body { font-size: 1.08rem; }
    .horo__signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .horo__card { padding: 22px 20px; }
    .dico { grid-template-columns: 1fr; padding: 20px 22px; }
    .dico::before { display: none; }
    .phone { padding: 16px; }
    .phone__key span { font-size: .64rem; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
    .hero__lead { max-width: 36ch; }
    .review, .sec--split { grid-template-columns: 1fr; gap: 28px; }
    .sec--split .sec__head { position: static; }
    .notes-wall { grid-template-columns: repeat(2, 1fr); }
    .disks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pv__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .top__nav { display: none; }
    .switch { margin-left: auto; }
}
@media (max-width: 640px) {
    .top { padding: 10px 16px; }
    .hero, .sec { padding-left: 16px; padding-right: 16px; }
    .sec { padding-top: 72px; }
    .monitor__bezel { padding: 14px 14px 10px; border-radius: 18px; }
    .crt { padding: 7px; border-radius: 16px; }
    .crt__glass { aspect-ratio: 3 / 3.1; font-size: 1.05rem; border-radius: 20px / 16px; }
    .monitor__panel { gap: 10px 14px; }
    .plate { width: 100%; }
    .paper, .listing { padding: 20px 40px; }
    .paper::before, .paper::after, .listing::before, .listing::after { width: 22px; background-size: 22px 26px; background-image: radial-gradient(circle at 11px 13px, var(--case) 4.5px, transparent 5px); }
    .leds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seg__v { font-size: 2rem; overflow-wrap: anywhere; }
    .seg--wide .seg__v { font-size: 1.7rem; }
    .disks { grid-template-columns: 1fr; }
    .pv__list { grid-template-columns: 1fr; }
    .pv { padding: 22px 18px; }
    .pv::after { position: static; display: inline-block; margin-top: 14px; }
    .pv__head { padding-right: 0; }
    .mark { width: 26px; height: 26px; }
    .mark__bubble { display: none; }
    .crime__tape { display: none; }
    .crime { gap: 22px; }
    .mark__n { font-size: .85rem; }
    .crime__photo { border-width: 6px; }
    .seg { padding: 16px 14px; }
    .shelf__head { grid-template-columns: 1fr; }
    .label__specs div { grid-template-columns: 1fr; gap: 0; }
    .notes-wall { grid-template-columns: 1fr; gap: 22px; }
    .printer__paper { width: 92%; padding: 18px 26px; }
    .diag__result { grid-template-columns: 1fr; }
    .listing__lines li { grid-template-columns: 3.6em 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .tape__track { animation: none; }
}

/* =========================================================
   AJOUTS : sélecteur de langue + bilan nutritionnel
   ========================================================= */

/* ---------- barre du haut : le menu reste sur une ligne (les traductions sont plus longues) ---------- */
.top__nav { min-width: 0; overflow-x: auto; scrollbar-width: none; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a { white-space: nowrap; flex: none; }

/* ---------- sélecteur de langue (petit commutateur à 3 positions) ---------- */
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 7px; background: var(--case-lo); box-shadow: inset 0 2px 4px rgba(0,0,0,.28); flex: none; }
.langs a { font: 700 .76rem/1 var(--f-sans); font-variation-settings: "wdth" 110; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; padding: 5px 7px; border-radius: 5px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: linear-gradient(#f2ecdd, #cfc5ac); color: var(--ink); box-shadow: 0 2px 2px rgba(0,0,0,.3); }

/* ---------- bilan nutritionnel : trois cartes ---------- */
.cantine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.food {
    --c: var(--amber); --glow: rgba(255,182,39,.75);
    display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 20px; border-radius: 18px;
    background: linear-gradient(160deg, var(--case-hi), var(--case) 60%, var(--case-lo));
    box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.1), 0 4px 0 var(--case-dk), 0 26px 36px -22px rgba(40,30,10,.55);
}
.food--pizza { --c: #ff8a3c; --glow: rgba(255,138,60,.75); }
.food--coca  { --c: #ff4b2e; --glow: rgba(255,75,46,.8); }
.food__screen {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center;
    background: #18160f; border-radius: 10px; padding: 16px 18px 14px;
    box-shadow: inset 0 0 0 3px var(--case-dk), inset 0 6px 14px rgba(0,0,0,.6);
}
.food__icon { grid-row: span 2; color: var(--c); filter: drop-shadow(0 0 6px var(--glow)); }
.food__icon svg { display: block; }
.food__v { font-family: var(--f-crt); font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1; color: var(--c); text-shadow: 0 0 6px var(--glow), 0 0 18px var(--glow); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.food__l { color: #b8ae93; font-size: .86rem; font-weight: 600; }
.food__facts { list-style: none; margin: 0; padding: 0 6px; }
.food__facts li { padding: 7px 0; border-bottom: 1px dashed var(--case-dk); font-size: .95rem; line-height: 1.35; }
.food__facts b, .gauge__t b { font-family: var(--f-crt); font-size: 1.3em; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge { display: grid; gap: 7px; padding: 0 6px; }
.gauge__l { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.gauge__track { position: relative; height: 16px; border-radius: 4px; background: #18160f; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.5); }
.gauge__fill {
    position: absolute; left: 3px; top: 3px; bottom: 3px; width: 0; max-width: calc(100% - 6px); border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 8px); filter: drop-shadow(0 0 4px var(--glow));
    transition: width .6s var(--ease);
}
.gauge__mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; left: 100%; }
.gauge__t { font-size: .88rem; font-weight: 600; }
.food__joke { margin: auto 6px 0; padding: 12px 14px; background: var(--paper); border-left: 4px solid var(--c); font-style: italic; font-size: .93rem; line-height: 1.45; box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); }

/* ---------- bilan nutritionnel : ticket de caisse + remarques ---------- */
.cantine__bottom { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; margin-top: 56px; }
.receipt {
    --paper-t: #fbfaf4;
    position: relative; max-width: 410px; margin: 10px auto 0; padding: 26px 26px 22px; background: var(--paper-t);
    font-family: var(--f-crt); font-size: 1.2rem; line-height: 1.15; color: #2f2a22;
    transform: rotate(-1.2deg); filter: drop-shadow(0 16px 18px rgba(40,30,10,.3));
}
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; }
.receipt::before { top: -9px; background: conic-gradient(from 135deg at top, var(--paper-t) 90deg, transparent 0) 0 100% / 16px 9px repeat-x; transform: scaleY(-1); }
.receipt::after { bottom: -9px; background: conic-gradient(from -45deg at bottom, var(--paper-t) 90deg, transparent 0) 0 0 / 16px 9px repeat-x; transform: scaleY(-1); }
.receipt__shop { margin: 0; text-align: center; font-family: var(--f-sans); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.receipt__small { margin: 8px 0 0; text-align: center; font-size: 1.05rem; color: #6a6252; }
.receipt__t { width: 100%; border-collapse: collapse; margin: 16px 0 12px; font-variant-numeric: tabular-nums; }
.receipt__t th, .receipt__t td { padding: 2px 0; text-align: left; vertical-align: top; font-weight: 400; }
.receipt__t th:last-child, .receipt__t td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.receipt__t thead th { border-bottom: 2px dashed #2f2a22; padding-bottom: 6px; color: #6a6252; }
.receipt__t .is-item td { padding-top: 8px; text-align: left; padding-left: 0; white-space: normal; }
.receipt__t .is-qty td:first-child { padding-left: 1.2em; color: #6a6252; }
.receipt__t .is-extra td { color: #6a6252; }
.receipt__t .is-extra:first-of-type td, .receipt__t tr.is-qty + tr.is-extra td { padding-top: 10px; }
.receipt__t tfoot th, .receipt__t tfoot td { border-top: 2px dashed #2f2a22; padding-top: 8px; font-size: 1.55rem; }
.receipt__thanks { margin: 14px 0 0; text-align: center; }
.receipt .barcode { display: block; margin: 16px auto 0; width: 170px; height: 42px; }
.cantine__verdict { margin: 0; font-weight: 900; font-variation-settings: "wdth" 112; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
.cantine__verdict::before { content: "TOTAL → "; color: var(--red); font-family: var(--f-crt); font-weight: 400; font-size: 1.15em; }
.cantine__h3 { margin: 30px 0 16px; font-weight: 900; font-variation-settings: "wdth" 118; font-size: 1.3rem; }

@media (max-width: 1000px) {
    .langs { margin-left: auto; }
    .langs + .switch { margin-left: 0; }
    .cantine__bottom { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
    .cantine { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
    .top { gap: 12px; }
    .receipt { padding: 22px 18px 18px; font-size: 1.1rem; }
}
@media (max-width: 420px) {
    .top__brand { font-size: .92rem; gap: 8px; }
    .langs a { padding: 5px 5px; }
    .switch__label { display: none; }
}

/* =========================================================
   AJOUTS : lignes de code · 6 étapes du débogage · phrases cultes
   ========================================================= */

/* ---------- lignes de code : sortie de wc -l ---------- */
.lignes { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.wc { width: 100%; border-collapse: collapse; margin: 0 0 6px; }
.wc td { padding: 3px 0; vertical-align: top; color: var(--amber-hi); }
.wc__n { width: 1%; white-space: nowrap; text-align: right; padding-right: 18px !important; color: var(--amber) !important; font-variant-numeric: tabular-nums; }
.wc .is-fixed td { color: #ff8a5c; text-shadow: 0 0 4px rgba(255,138,92,.6); }
.wc .is-fixed .wc__n { color: #ff8a5c !important; }
.wc__total td { border-top: 1px dashed rgba(255,182,39,.45); padding-top: 8px; color: #52e07a; text-shadow: 0 0 4px rgba(82,224,122,.6); }
.wc__total .wc__n { color: #52e07a !important; }

/* ---------- lignes de code : le listing déroulé dans la vallée du Rhône ---------- */
.route { --c: var(--amber); }
.route__h { font-weight: 900; font-variation-settings: "wdth" 118; font-size: 1.3rem; line-height: 1.2; margin-bottom: 18px; }
.route__map { position: relative; height: 112px; margin: 0 26px 6px; }
.route__line { position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; border-radius: 7px; background: var(--case-lo); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
.route__fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px;
    background: repeating-linear-gradient(var(--paper) 0 3px, var(--bar) 3px 6px); box-shadow: inset 0 0 0 1px #b9b29b;
    transition: width .6s var(--ease);
}
.route__paper { position: absolute; top: 50%; left: 0; width: 22px; height: 28px; margin: -14px 0 0 -11px; background: var(--paper); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); transition: left .6s var(--ease); z-index: 2; }
.route__paper::before { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 12px; background: repeating-linear-gradient(var(--ink-2) 0 2px, transparent 2px 5px); opacity: .55; }
.route__stop { position: absolute; left: var(--p); top: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; padding-top: 16px; }
.route__stop::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--case-hi); border: 3px solid var(--ink); z-index: 1; }
.route__stop b { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.route__stop small { font-family: var(--f-crt); font-size: 1rem; color: var(--ink-2);  white-space: nowrap; }
.route__stop.is-up { top: auto; bottom: 50%; flex-direction: column-reverse; padding: 0 0 16px; }
.route__stop.is-up::before { top: auto; bottom: -6px; }
.route__txt { margin: 10px 0 0; font-weight: 600; }
.route__txt b { font-family: var(--f-crt); font-size: 1.35em; font-weight: 400; color: var(--red); }
.route__joke { margin: 20px 0 0; }

/* ---------- les 6 étapes du débogage (organigramme en boucle) ---------- */
.debug__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.debug__tour { width: 100%; margin: 4px 0 0; font-family: var(--f-crt); font-size: 1.6rem; color: var(--red); }
.debug { list-style: none; margin: 0; padding: 0 64px 0 0; position: relative; display: grid; gap: 26px; counter-reset: none; }
.debug::before { /* la flèche de retour : de l'étape 6 à l'étape 1 */
    content: ""; position: absolute; right: 14px; top: 30px; bottom: 30px; width: 36px;
    border: 3px solid var(--red); border-left: 0; border-radius: 0 14px 14px 0;
}
.debug::after { content: "◀"; position: absolute; right: 44px; top: 19px; color: var(--red); font-size: 1.05rem; line-height: 1; }
.debug__s {
    position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 14px; align-items: center;
    padding: 14px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink);
    transition: background .2s, transform .2s var(--ease);
}
.debug__s:not(:last-child)::after { /* flèche vers l'étape suivante */
    content: "▼"; position: absolute; left: 34px; bottom: -24px; font-size: .9rem; color: var(--ink); line-height: 1;
}
.debug__s:nth-child(2) { border-radius: 26px; } /* étapes « pourquoi ? » : forme de décision */
.debug__n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--case-hi); font-family: var(--f-crt); font-size: 1.6rem; line-height: 1; }
.debug__s strong { display: block; font-weight: 800; font-size: 1.06rem; line-height: 1.3; }
.debug__s span:not(.debug__n) { display: block; margin-top: 3px; font-size: .9rem; font-style: italic; color: var(--ink-2); }
.debug__s.is-cur { background: var(--hazard); transform: translateX(-6px); }
.debug__s.is-cur .debug__n { background: var(--red); }
.debug__s.is-cur::before { content: "▶"; position: absolute; left: -28px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.1rem; animation: blink 1s steps(1) infinite; }
.debug__goto { margin: 18px 64px 0 0; text-align: right; }
.debug__goto span { display: inline-block; font-family: var(--f-crt); font-size: 1.6rem; color: var(--red); background: var(--paper); border: 2px dashed var(--red); padding: 0 12px; border-radius: 4px; }
.debug__goto.is-flash span { animation: gotoflash .5s steps(2) 3; }
@keyframes gotoflash { 50% { background: var(--red); color: #fff; } }

/* ---------- phrases cultes : fiches bristol ---------- */
.jokes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; align-items: start; }
.joke {
    position: relative; padding: 30px 22px 20px; transform: rotate(var(--r));
    background: linear-gradient(transparent 46px, #e4644f 46px, #e4644f 48px, transparent 48px), repeating-linear-gradient(#fdfcf6 0 25px, #cfe0ee 25px 26px);
    background-color: #fdfcf6; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 24px -16px rgba(0,0,0,.45);
    line-height: 26px; transition: transform .2s var(--ease);
}
.joke:hover { transform: rotate(0deg) translateY(-3px); }
.joke__tag { position: absolute; top: -11px; left: 18px; background: var(--ink); color: var(--case-hi); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; line-height: 1.4; }
.joke h3 { font-weight: 900; font-variation-settings: "wdth" 112; font-size: 1.12rem; line-height: 26px; margin: -10px 0 14px; }
.joke p { margin: 0 0 0; font-size: .98rem; }
.joke .is-dlg { font-style: italic; }
.joke .is-aside { font-style: italic; color: var(--ink-2); font-size: .9rem; }
.joke__btn { margin-top: 12px; font: 700 .85rem/1 var(--f-sans); color: var(--red); background: none; border: 2px dashed var(--red); border-radius: 5px; padding: 7px 11px; cursor: pointer; }
.joke__btn:hover { background: rgba(226,65,43,.08); }
.joke__punch { margin-top: 12px !important; font-weight: 800; font-size: 1.04rem !important; color: var(--red); animation: punch .35s var(--ease); }
@keyframes punch { from { opacity: 0; transform: translateY(6px) scale(.97); } }

@media (max-width: 1000px) {
    .lignes { grid-template-columns: 1fr; gap: 36px; }
    .jokes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .jokes { grid-template-columns: 1fr; gap: 28px; }
    .wc__n { padding-right: 12px !important; }
    .route__map { margin: 0 18px 6px; }
    .route__stop b { font-size: .76rem; }
    .route__stop small { font-size: .9rem; }
    .debug { padding-right: 44px; gap: 22px; }
    .debug::before { right: 6px; width: 28px; }
    .debug::after { right: 28px; }
    .debug__goto { margin-right: 44px; }
    .debug__s { padding: 12px 14px; gap: 12px; }
    .debug__s.is-cur { transform: none; }
    .debug__s.is-cur::before { display: none; }
}
