/* Collection 39–45 — version fusionnée A + B.
   Deux thèmes : Guerre (sombre, palette de la maquette d'Aline) et Désert (clair, sable).
   Polices : Oswald (titres, libellés de pochoir), Public Sans (texte), Special Elite (machine à écrire des fiches).
   Relecture avoid-ai-design (19/11/2026) : capitales espacées = pochoir de la charte « guerre » (SD4, gardé, réduit) ;
   flou réservé aux couches réelles : bandeau, fil d'Ariane, cartouche sur la carte, flèches sur photo (K3, gardé).
   avoid-ai-design-ignore: SD4 K3 */
:root {
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(16px, 3vw, 48px);
  --bar-h: 64px;
  --crumb-h: 38px;
  --top: calc(var(--bar-h) + var(--crumb-h));
  --paper: #efe7d3;
  --paper-ink: #2b2416;
  --paper-ink2: #5c5140;
  --fr: #4f6fa3; --de: #7d8670; --it: #a68a3c; --uk: #b26a35; --us: #6a8a52;
}
:root, :root[data-theme="guerre"] {
  --bg: #141815; --bg2: #1b201c; --surf: #232924; --surf2: #2b322c;
  --ink: #f2efe6; --ink2: #c3c7bb; --ink3: #8e9588;
  --acc: #c9a24b; --acc-ink: #141815; --stamp: #c0513b;
  --line: rgba(242, 239, 230, .14); --line2: rgba(242, 239, 230, .28);
  --glass: rgba(20, 24, 21, .62);
  --shadow: rgba(0, 0, 0, .6);
  --map-bg: #2b2a1d; --map-filter: brightness(.78) contrast(1.06) saturate(.9);
  --tile-bg: #2a302b;
  color-scheme: dark;
}
:root[data-theme="desert"] {
  --bg: #e6dec9; --bg2: #ddd3ba; --surf: #f3eee2; --surf2: #ebe4d2;
  --ink: #1c1b17; --ink2: #47443a; --ink3: #6b6658;
  --acc: #a8471f; --acc-ink: #fff8ec; --stamp: #9c2f1c;
  --line: rgba(28, 27, 23, .14); --line2: rgba(28, 27, 23, .3);
  --glass: rgba(230, 222, 201, .7);
  --shadow: rgba(60, 44, 18, .38);
  --map-bg: #cbbd97; --map-filter: sepia(.35) brightness(1.42) contrast(.88) saturate(.75);
  --tile-bg: #d5cbb3;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .5s; }
body.app, body.lock { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd { font: 500 10px/1 var(--body); border: 1px solid var(--line2); border-radius: 4px; padding: 3px 5px; color: var(--ink2); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--acc); color: var(--acc-ink); }
main { outline: none; }
.v[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--acc); color: var(--acc-ink); border-radius: 4px; }
.skip:focus { top: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink3)); flex: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 3px; background: var(--acc); color: var(--acc-ink);
  font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; transition: transform .25s var(--ease), filter .25s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.kicker { margin: 0; font: 500 12px/1.3 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }

/* ================= bandeau haut ================= */
.bar { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--pad); transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.bar.solid { background: var(--glass); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; justify-self: start; }
.brand b { font: 700 20px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.brand span { font: 400 15px/1 var(--display); color: var(--acc); letter-spacing: .06em; }
.nav { position: relative; display: flex; gap: 6px; }
.nav a { position: relative; padding: 10px 16px; font: 500 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); transition: color .3s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--acc); pointer-events: none; }
.bar-r { display: flex; align-items: center; gap: 12px; justify-self: end; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line2); font: 500 13px/1 var(--body); color: var(--ink2); transition: color .3s, box-shadow .3s; }
.search-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.theme { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line2); isolation: isolate; }
.theme-o { position: relative; z-index: 1; padding: 7px 12px; font: 500 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); transition: color .35s; text-align: center; }
.theme-k { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 2px; background: var(--acc); transition: transform .5s var(--ease), background-color .5s; }
[data-theme="desert"] .theme-k { transform: translateX(100%); }
[data-theme="guerre"] .theme-o[data-t="guerre"], [data-theme="desert"] .theme-o[data-t="desert"] { color: var(--acc-ink); }
/* sur l'image du hero, bandeau transparent : texte clair dans les deux thèmes */
body.is-home .bar:not(.solid) { --ink: #f2efe6; --ink2: rgba(242, 239, 230, .82); --line2: rgba(242, 239, 230, .45); }
[data-theme="desert"] body.is-home .bar:not(.solid) { --ink: #1c1b17; --ink2: rgba(28, 27, 23, .78); --line2: rgba(28, 27, 23, .4); }

/* ================= fil d'Ariane ================= */
.crumbs { position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 89; height: var(--crumb-h); display: flex; align-items: center; padding: 0 var(--pad);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body.is-home .crumbs { display: none; }
.crumbs ol { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; font: 400 13px/1 var(--body); color: var(--ink3); white-space: nowrap; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line2); }
.crumbs a { color: var(--ink2); padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .3s; }
.crumbs a:hover { color: var(--ink); background-size: 100% 1px; }
.crumbs li:last-child { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; }

/* ================= accueil ================= */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 var(--pad) 12vh; isolation: isolate; }
.hero-media { position: absolute; inset: 0 0 0 30%; z-index: -3; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero-media img.d { display: none; }
[data-theme="desert"] .hero-media img.g { display: none; }
[data-theme="desert"] .hero-media img.d { display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(20, 24, 21, .55) 30%, rgba(20, 24, 21, 0) 62%),
              linear-gradient(0deg, var(--bg) 0%, rgba(20, 24, 21, 0) 28%),
              linear-gradient(180deg, rgba(12, 14, 12, .6) 0%, rgba(12, 14, 12, 0) 18%); }
[data-theme="desert"] .hero::before {
  background: linear-gradient(90deg, rgba(230, 222, 201, .6) 30%, rgba(230, 222, 201, 0) 62%),
              linear-gradient(0deg, var(--bg) 0%, rgba(230, 222, 201, 0) 28%),
              linear-gradient(180deg, rgba(230, 222, 201, .55) 0%, rgba(230, 222, 201, 0) 18%); }
.hero { background: var(--bg); }
.hero-text { max-width: 720px; color: #f2efe6; }
[data-theme="desert"] .hero-text { color: var(--ink); }
.hero h1 { margin: 2.2vh 0 3vh; font: 700 clamp(72px, 11vw, 176px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 .o { font-weight: 300; }
.hero p.lead { margin: 0 0 4vh; max-width: 500px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.ghost { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }

.intro-txt { min-height: 80svh; display: grid; align-content: center; gap: 4vh; padding: 14vh var(--pad); max-width: 1440px; margin: 0 auto; }
.mf { margin: 0; font: 400 clamp(30px, 4.1vw, 66px)/1.14 var(--display); text-transform: uppercase; letter-spacing: .005em; max-width: 1180px; }
.mf .wd { opacity: .16; transition: none; }
.mf em { font-style: normal; color: var(--acc); }
.mf-sub { margin: 0; max-width: 560px; padding-top: 3vh; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink2); }

.modes-sec { padding: 12vh 0 0; }
.modes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 0 var(--pad) 5vh; max-width: 1440px; margin: 0 auto; }
.modes-head h2 { margin: 1.4vh 0 0; font: 600 clamp(40px, 5vw, 84px)/.95 var(--display); text-transform: uppercase; }
.modes-head p { margin: 0; max-width: 420px; color: var(--ink2); }
.modes { display: flex; height: min(78svh, 760px); min-height: 520px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mode { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 44px); isolation: isolate;
  transition: flex-grow .9s var(--ease); color: #f2efe6; }
.mode + .mode { border-left: 1px solid var(--line); }
.mode:hover, .mode:focus-visible { flex-grow: 1.55; }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 14, 12, .92) 0%, rgba(12, 14, 12, .55) 34%, rgba(12, 14, 12, 0) 62%); }
.mode .ill { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.mode h3 { margin: 0 0 10px; font: 600 clamp(44px, 5vw, 88px)/.9 var(--display); text-transform: uppercase; }
.mode p { margin: 0 0 22px; max-width: 380px; font-size: 15px; color: rgba(242, 239, 230, .86); }
.mode .go { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--acc);
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); align-self: flex-start; }
[data-theme="desert"] .mode .go { color: #e6b98a; }
.mode:hover .go { background-size: 100% 1px; }
/* illustration : carte */
.ill-map .bgm { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; filter: var(--map-filter); transform: scale(1.06); transform-origin: 40% 20%; transition: transform 1.4s var(--ease); }
.mode:hover .ill-map .bgm { transform: scale(1); }
.ill-map i { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-6px, -50%); font: 500 12px/1 var(--display); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #f2efe6; white-space: nowrap; }
.ill-map i::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px rgba(201, 162, 75, .3); }
.ill-map i b { font-weight: 500; padding: 5px 8px; background: rgba(20, 24, 21, .8); border-radius: 2px; }
.ill-map .u { position: absolute; width: 70px; transform: translate(-50%, -100%); filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .5)); transition: transform .8s var(--ease); }
.mode:hover .ill-map .u { transform: translate(-50%, -100%) translateY(-4px); }
/* illustration : table */
.ill-table { background: url(assets/ambiance/sable-desert.webp) center/cover; }
.ill-table img { position: absolute; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #f3eee2; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6);
  transition: transform 1s var(--ease); }
.mode:hover .ill-table img { transform: rotate(0deg) translateY(-6px) !important; }
/* illustration : index */
.ill-index { background: #3a3426 url(assets/ambiance/papier-dossier.webp) center/cover; }
.ill-index .fold { position: absolute; width: 66%; aspect-ratio: 3 / 2; transition: transform 1s var(--ease); }
.ill-index .fold img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.ill-index .fold span { position: absolute; left: 7%; right: 54%; top: 30%; font: 400 clamp(11px, 1vw, 15px)/1.2 var(--type); color: var(--paper-ink); }
.mode:hover .ill-index .fold:nth-child(1) { transform: translate(-6%, -4%) rotate(-7deg); }
.mode:hover .ill-index .fold:nth-child(3) { transform: translate(5%, 4%) rotate(5deg); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 6vh var(--pad); font-size: 13px; color: var(--ink3); }
.foot strong { display: block; font: 600 16px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ================= vues plein écran (carte, table, index) ================= */
.v-carte, .v-table, .v-index { position: fixed; left: 0; right: 0; bottom: 0; top: var(--top); }

/* ---------- carte ---------- */
.v-carte { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.map-stage { position: relative; overflow: hidden; background: var(--map-bg); perspective: 1500px; perspective-origin: 50% 40%; cursor: pointer; touch-action: none; }
.map-plane { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; transform-origin: 0 0; transform-style: preserve-3d; will-change: transform; }
.map-plane > img { position: absolute; inset: 0; width: 100%; height: 100%; filter: var(--map-filter); user-select: none; -webkit-user-drag: none; }
.map-plane svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-plane .route { fill: none; stroke: var(--stamp); stroke-width: 3; stroke-dasharray: 10 8; vector-effect: non-scaling-stroke; opacity: .9; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(10, 12, 10, .55) 100%); }
[data-theme="desert"] .map-vignette { background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(120, 96, 50, .35) 100%); }
/* le repère est ancré sur son point (8px du bord), le libellé part à droite, ou à gauche avec .lt */
.pin { position: absolute; transform: translate(-8px, -50%) rotateX(calc(-1 * var(--tilt, 0deg))) scale(var(--is, 1)); transform-origin: 8px 50%; display: flex; align-items: center; gap: 10px;
  padding: 0; white-space: nowrap; z-index: 2; }
.pin.lt { flex-direction: row-reverse; transform: translate(calc(-100% + 8px), -50%) rotateX(calc(-1 * var(--tilt, 0deg))) scale(var(--is, 1)); transform-origin: calc(100% - 8px) 50%; }
.pin b { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(201, 162, 75, .3), 0 2px 6px rgba(0, 0, 0, .5); flex: none; }
.pin b::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--acc); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1 } 100% { transform: scale(2.4); opacity: 0 } }
.pin span { padding: 7px 11px; border-radius: 2px; background: rgba(20, 24, 21, .86); color: #f2efe6; font: 500 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s, color .3s; }
.pin span small { margin-left: 8px; font: 400 12px/1 var(--body); letter-spacing: 0; color: rgba(242, 239, 230, .7); text-transform: none; }
.pin:hover span, .pin.on span { background: var(--acc); color: var(--acc-ink); }
.pin:hover span small, .pin.on span small { color: inherit; }
.map-stage.zoomed .pin:not(.on) { opacity: .0; pointer-events: none; }
.pin { transition: opacity .5s; }
.unit { position: absolute; width: 58px; transform: translate(-50%, -92%) rotateX(calc(-1 * var(--tilt, 0deg))); transform-origin: 50% 92%; z-index: 1; opacity: 0; pointer-events: none; }
.unit img { width: 100%; filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .55)); transition: transform .35s var(--ease); }
.unit.photo img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid #f2efe6; }
.map-stage.zoomed .unit.live { pointer-events: auto; cursor: pointer; }
.unit:hover img { transform: translateY(-6px) scale(1.08); }
.unit-tip { position: absolute; z-index: 5; pointer-events: none; padding: 6px 10px; border-radius: 2px; background: rgba(20, 24, 21, .9); color: #f2efe6; font: 500 13px/1.2 var(--body);
  white-space: nowrap; opacity: 0; transform: translate(-50%, -130%); transition: opacity .2s; }
.unit-tip.on { opacity: 1; }
.map-hint { position: absolute; right: 16px; top: 16px; padding: 9px 14px; border-radius: 2px; background: var(--glass); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--ink); pointer-events: none; white-space: nowrap; transition: opacity .4s; }
.map-stage.zoomed .map-hint { opacity: 0; }
.camp-card { position: absolute; left: var(--pad); bottom: var(--pad); z-index: 6; width: min(460px, calc(100% - 2 * var(--pad))); padding: 24px 26px; border-radius: 3px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 24px 50px -20px var(--shadow), inset 0 0 0 1px var(--line);
  visibility: hidden; cursor: default; }
.camp-card h2 { margin: 10px 0 10px; font: 600 clamp(30px, 3vw, 46px)/.95 var(--display); text-transform: uppercase; }
.camp-card p.ci { margin: 0 0 14px; font-size: 15px; color: var(--ink2); }
.camp-card .row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.camp-card .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line2); font: 500 12px/1 var(--body); color: var(--ink2); white-space: nowrap; }
.camp-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
.camp-list h2 { margin: 0; padding: 22px 22px 14px; font: 500 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); }
.camp-list ol { list-style: none; margin: 0; padding: 0; }
.camp-list button { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: left; padding: 18px 22px; border-top: 1px solid var(--line);
  transition: background .3s; }
.camp-list button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); transform: scaleY(0); transition: transform .45s var(--ease); }
.camp-list button:hover { background: var(--surf); }
.camp-list button[aria-current="true"] { background: var(--surf); }
.camp-list button[aria-current="true"]::before { transform: none; }
.camp-list .t { font: 600 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.camp-list .y { grid-column: 1; font-size: 13px; color: var(--ink2); }
.camp-list .n { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 13px/1 var(--body); color: var(--ink3); }
.camp-list .all { margin: auto 22px 22px; justify-content: center; }

/* ---------- table ---------- */
.filters { position: absolute; inset: 0 0 auto; z-index: 5; height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line2); font: 500 14px/1 var(--body);
  color: var(--ink2); transition: background .3s, color .3s, box-shadow .3s; }
.fchip small { font: 400 12px/1 var(--body); opacity: .75; }
.fchip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fchip[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.f-sep { width: 1px; height: 24px; background: var(--line2); flex: none; }
.count { margin-left: auto; flex: none; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.count b { font: 600 22px/1 var(--display); color: var(--ink); margin-right: 4px; }
.wall-area { position: absolute; inset: 58px 0 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; background: var(--bg); }
.wall-area::before { content: ""; position: absolute; inset: 0; background: url(assets/ambiance/carte-etat-major.webp) center/cover; opacity: .12; filter: var(--map-filter); pointer-events: none; }
[data-theme="desert"] .wall-area::before { background-image: url(assets/ambiance/sable-desert.webp); opacity: .28; filter: saturate(.55); mix-blend-mode: multiply; }
.wall-area.drag { cursor: grabbing; }
.wall { position: absolute; inset: 0; transform-origin: 50% 50%; }
.tile { position: absolute; left: 0; top: 0; will-change: transform; }
.tile .in { width: 100%; height: 100%; position: relative; transition: opacity .55s var(--ease), filter .55s var(--ease), scale .55s var(--ease); }
.tile .ph { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; background: var(--tile-bg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease); }
.tile .lab { position: absolute; left: 0; right: 0; bottom: -2px; transform: translateY(100%); padding: 8px 2px 0; display: flex; justify-content: space-between; gap: 8px;
  font: 500 13px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.tile .lab small { font: 400 11px/1.3 var(--body); text-transform: none; color: var(--ink3); white-space: nowrap; }
.tile:hover .ph { transform: translateY(-6px) scale(1.03); box-shadow: 0 22px 40px -12px var(--shadow); }
.tile:hover img { transform: scale(1.06); }
.tile:hover .lab { opacity: 1; transform: translateY(calc(100% - 6px)); }
.tile.out .in { opacity: .1; filter: grayscale(1); scale: .82; pointer-events: none; }
.wall-area.drag .tile .lab { opacity: 0; }
.hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 2px;
  background: var(--glass); backdrop-filter: blur(8px); color: var(--ink); font-size: 13px; pointer-events: none; opacity: 0; white-space: nowrap; }
.hand { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; animation: hand 1.8s var(--ease) infinite; }
@keyframes hand { 0%, 100% { transform: translateX(-5px) } 50% { transform: translateX(5px) } }

/* ---------- index : chemises ---------- */
.v-index { overflow-y: auto; overscroll-behavior: contain; }
.folders-wrap { max-width: 1440px; margin: 0 auto; padding: 6vh var(--pad) 10vh; }
.folders-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 5vh; }
.folders-head h1 { margin: 1.2vh 0 0; font: 600 clamp(44px, 6vw, 96px)/.92 var(--display); text-transform: uppercase; }
.folders-head p { margin: 0; max-width: 380px; color: var(--ink2); }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.4vw, 36px); }
.folder { position: relative; display: block; aspect-ratio: 1100 / 748; isolation: isolate; }
.folder .peek { position: absolute; left: 12%; right: 16%; top: 6%; height: 70%; z-index: -1; background: var(--paper); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .6s var(--ease); transform: translateY(6%) rotate(-1.5deg); }
.folder .peek::before { content: ""; position: absolute; left: 10%; right: 10%; top: 14%; height: 40%;
  background: repeating-linear-gradient(180deg, rgba(43, 36, 22, .35) 0 1px, transparent 1px 12px); }
.folder:hover .peek { transform: translateY(-14%) rotate(-3deg); }
.folder .cover { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.folder:hover .cover { transform: translateY(4px); }
.folder .cover img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px var(--shadow)); }
.folder .cover.css { inset: 12% 0 0; border-radius: 2px 6px 4px 4px; background: #c8ac7a linear-gradient(160deg, #d6bd8c 0%, #bf9f6a 100%); box-shadow: 0 18px 30px -14px var(--shadow); }
.folder .cover.css::before { content: ""; position: absolute; left: 0; top: -9%; width: 38%; height: 10%; border-radius: 4px 4px 0 0; background: #cdb282; }
/* repères calés sur l'image de la chemise : ficelle au centre, cadre rouge en haut à droite */
.folder .lab { position: absolute; left: 7%; right: 53%; top: 28%; color: var(--paper-ink); }
.folder .lab small { display: block; font: 400 13px/1 var(--type); color: var(--paper-ink2); }
.folder .lab strong { display: block; margin: 8px 0 6px; font: 400 clamp(19px, 1.7vw, 25px)/1.08 var(--type); }
.folder .lab span { font: 400 13px/1.3 var(--type); color: var(--paper-ink2); }
.folder .stamp { position: absolute; left: 62%; width: 30%; top: 22%; height: 16%; display: grid; place-items: center; color: #9c2f1c; font: 400 clamp(13px, 1.2vw, 17px)/1 var(--type);
  letter-spacing: .16em; text-transform: uppercase; opacity: .9; mix-blend-mode: multiply; }
.folder .cover.css + .lab + .stamp { border: 2px solid #9c2f1c; }

/* ---------- index : bureau (liste 20 % / feuille 80 %) ---------- */
.desk { display: grid; grid-template-columns: minmax(230px, 20%) minmax(0, 1fr); height: 100%; }
.tree { overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); padding: 14px 0 40px; overscroll-behavior: contain; }
.tree-back { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 8px 10px; font: 500 14px/1 var(--body);
  color: var(--ink2); border-radius: 2px; transition: color .3s, background .3s; }
.tree-back:hover { color: var(--ink); background: var(--surf); }
.tree details { border-top: 1px solid var(--line); }
.tree summary { list-style: none; display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 12px 16px; cursor: pointer;
  font: 600 15px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .3s; }
.tree details[open] summary::before { transform: rotate(90deg); }
.tree summary small { font: 400 12px/1 var(--body); color: var(--ink3); text-transform: none; letter-spacing: 0; }
.tree ol { list-style: none; margin: 0 0 8px; padding: 0; }
.tree li a { position: relative; display: block; padding: 7px 16px 7px 38px; font-size: 14px; line-height: 1.3; color: var(--ink2); transition: color .25s, background .25s; }
.tree li a::before { content: attr(data-n); position: absolute; left: 16px; top: 8px; font: 400 11px/1.3 var(--body); color: var(--ink3); }
.tree li a:hover { color: var(--ink); background: var(--surf); }
.tree li a[aria-current="true"] { color: var(--ink); background: var(--surf); font-weight: 600; box-shadow: inset 3px 0 0 var(--acc); }
.bench { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--bg2); }
.bench-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); background: var(--bg); z-index: 3; }
.bench-bar .pos { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.navbtn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line2); font: 500 14px/1 var(--body);
  color: var(--ink); transition: background .3s, color .3s, box-shadow .3s; min-width: 0; }
.navbtn:hover { background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.navbtn .tt { font: 400 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink2); max-width: 22vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbtn:hover .tt { color: inherit; }
.bench-scroll { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.bench-scroll::after { content: ""; display: block; height: 40px; }
.a4-slot { position: relative; margin: 28px auto 0; }
.a4 { position: absolute; left: 50%; top: 0; width: 794px; min-height: 1123px; transform-origin: 50% 0; padding: 64px 70px 56px; color: var(--paper-ink);
  background: var(--paper) linear-gradient(rgba(244, 238, 222, .62), rgba(244, 238, 222, .62)), var(--paper) url(assets/ambiance/papier-dossier.webp) center/cover;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .2); }
.a4-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 14px; border-bottom: 1.5px solid var(--paper-ink); font: 400 13px/1.4 var(--type); color: var(--paper-ink2); }
.a4-head b { display: block; font-weight: 400; color: var(--paper-ink); font-size: 15px; }
.a4 .stamp { display: inline-block; padding: 6px 12px; border: 2.5px solid #9c2f1c; color: #9c2f1c; font: 400 15px/1 var(--type); letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-6deg); opacity: .85; mix-blend-mode: multiply; }
.a4 h1 { margin: 26px 0 6px; font: 600 50px/.98 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.a4 .a4-k { margin: 0 0 22px; font: 400 15px/1.4 var(--type); color: var(--paper-ink2); }
.a4 .a4-ph { position: relative; padding: 9px 9px 34px; background: #fbf8f0; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); transform: rotate(-.6deg); margin: 0 0 18px; }
.a4 .a4-ph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }
.a4 .a4-ph figcaption { position: absolute; left: 12px; right: 12px; bottom: 9px; font: 400 13px/1.2 var(--type); color: var(--paper-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a4 .a4-ph::before { content: ""; position: absolute; left: 50%; top: -12px; width: 120px; height: 24px; transform: translateX(-50%) rotate(1.5deg); background: rgba(230, 222, 201, .78); }
.a4-thumbs { display: flex; gap: 8px; margin: 0 0 22px; flex-wrap: wrap; }
.a4-thumbs button { width: 92px; aspect-ratio: 4 / 3; padding: 3px; background: #fbf8f0; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); opacity: .6; transition: opacity .3s, transform .3s var(--ease); }
.a4-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.a4-thumbs button.on, .a4-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.a4 h2 { margin: 24px 0 10px; font: 400 14px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-ink2); }
.a4 dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid rgba(43, 36, 22, .3); }
.a4 dt, .a4 dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(43, 36, 22, .2); font-size: 15px; line-height: 1.4; }
.a4 dt { font: 400 13px/1.5 var(--type); color: var(--paper-ink2); padding-right: 12px; }
.a4 dd.todo { color: #9c2f1c; }
.a4 .a4-txt p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.a4 .a4-note { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--paper-ink); background: rgba(255, 252, 240, .5); font: 400 15px/1.55 var(--type); }
.a4 .a4-foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid rgba(43, 36, 22, .3); display: flex; justify-content: space-between; font: 400 12px/1 var(--type); color: var(--paper-ink2); }
.a4.cover-sheet h1 { font-size: 64px; margin-top: 60px; }
.a4 .a4-list { margin: 10px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 30px; }
.a4 .a4-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dotted rgba(43, 36, 22, .35); font-size: 14px; }
.a4 .a4-list a { display: flex; gap: 10px; }
.a4 .a4-list a:hover { color: #9c2f1c; }
.a4 .a4-list small { font: 400 12px/1.6 var(--type); color: var(--paper-ink2); }
.folder-lip { position: absolute; left: 50%; bottom: 0; z-index: 4; width: min(860px, 92%); height: 46px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, #c9ad7b, #b8975f); border-radius: 6px 6px 0 0; box-shadow: 0 -10px 24px -10px rgba(0, 0, 0, .45); }
.folder-lip::before { content: attr(data-l); position: absolute; left: 24px; top: 14px; font: 400 14px/1 var(--type); color: var(--paper-ink); }

/* ================= fiche (feuille B) ================= */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: var(--top); z-index: 60; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); visibility: hidden; }
.sheet-bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.stage { position: relative; display: flex; flex-direction: column; padding: 22px 0 22px var(--pad); gap: 12px; min-height: 0; }
.stage-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 2px; background: var(--tile-bg); cursor: zoom-in; }
.stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform .6s var(--ease); }
.stage-frame.zoom img { transform: scale(2.2); transition: transform .5s var(--ease), transform-origin .12s linear; }
.stage-frame .reveal { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-arrow { position: absolute; z-index: 3; top: calc(22px + (100% - 140px) / 2); width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--glass);
  backdrop-filter: blur(8px); color: var(--ink); font-size: 20px; box-shadow: inset 0 0 0 1px var(--line2); transition: background .3s, color .3s, transform .3s var(--ease); }
.st-arrow:hover { background: var(--acc); color: var(--acc-ink); transform: scale(1.06); }
.st-arrow.prev { left: calc(var(--pad) + 14px); }
.st-arrow.next { right: 14px; }
.stage-thumbs { display: flex; gap: 8px; min-height: 0; }
.stage-thumbs button { width: 84px; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; opacity: .5; transition: opacity .3s, transform .4s var(--ease); }
.stage-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--acc); }
.stage-thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.stage-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage-cap { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink2); max-width: 820px; }
.panel { position: relative; overflow-y: auto; overscroll-behavior: contain; }
.panel-in { padding: 22px var(--pad) 90px calc(var(--pad) * 1.1); }
.p-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.p-back { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 2px; background: var(--ink); color: var(--bg); font: 500 13px/1 var(--display);
  letter-spacing: .12em; text-transform: uppercase; transition: background .3s, transform .25s var(--ease); }
.p-back:hover { background: var(--acc); color: var(--acc-ink); transform: translateX(-2px); }
.p-back kbd { color: inherit; border-color: currentColor; opacity: .6; }
.p-steps { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin-bottom: 26px; }
.p-steps a { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; transition: background .3s, box-shadow .3s; }
.p-steps a:hover { background: var(--surf); box-shadow: inset 0 0 0 1px var(--line2); }
.p-steps a small { font: 500 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.p-steps a span { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-steps .nx { text-align: right; }
.p-steps .pos { display: grid; place-items: center; padding: 0 8px; font: 600 18px/1 var(--display); color: var(--ink); white-space: nowrap; }
.p-steps .pos small { display: block; font: 400 11px/1.3 var(--body); color: var(--ink3); text-align: center; }
.p-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); margin-bottom: 12px; }
.p-title { margin: 0 0 10px; font: 600 clamp(38px, 4.2vw, 72px)/.94 var(--display); text-transform: uppercase; }
.p-kicker { margin: 0 0 4vh; font: 400 15px/1.45 var(--type); color: var(--acc); }
.p-big { display: flex; gap: 28px; flex-wrap: wrap; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 4vh; }
.p-big div { display: flex; flex-direction: column; gap: 6px; }
.p-big b { font: 600 clamp(38px, 3.6vw, 58px)/.9 var(--display); }
.p-big span { font-size: 12px; line-height: 1.3; color: var(--ink3); max-width: 180px; }
.p-h { font: 500 12px/1 var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--ink3); margin: 5vh 0 12px; }
.labels { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.lbl { background: var(--bg); padding: 14px 16px; }
.lbl:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lbl dt { font: 400 13px/1.2 var(--type); color: var(--ink3); margin-bottom: 6px; }
.lbl dd { margin: 0; font-size: 15px; line-height: 1.4; }
.lbl.todo dd { color: var(--stamp); }
.lbl.todo dt::after { content: " · à compléter"; color: var(--stamp); }
.p-text p { color: var(--ink2); }
.note { position: relative; margin-top: 5vh; padding: 28px 30px; background: var(--paper) url(assets/ambiance/papier-dossier.webp) center/cover; transform: rotate(-.6deg);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6); font: 400 15px/1.6 var(--type); color: var(--paper-ink); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(2deg); background: rgba(230, 222, 201, .75); }
.note h3 { margin: 0 0 8px; font: 500 12px/1 var(--display); text-transform: uppercase; letter-spacing: .18em; color: #7a5a2a; }
.note p { margin: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.related a { display: block; position: relative; }
.related img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; transition: transform .5s var(--ease); }
.related a:hover img { transform: translateY(-4px); }
.related span { display: block; margin-top: 6px; font: 500 12px/1.15 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.related a.cur img { box-shadow: 0 0 0 2px var(--acc); }
.related a.cur span { color: var(--acc); }
.ghost-img { position: fixed; z-index: 70; object-fit: cover; border-radius: 2px; pointer-events: none; }

/* ================= recherche ================= */
.palette { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-items: start; padding: 14vh var(--pad) 0; background: rgba(12, 14, 12, .5);
  backdrop-filter: blur(6px); visibility: hidden; opacity: 0; }
.pal-box { width: min(640px, 100%); background: var(--surf); border-radius: 4px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); }
.pal-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 20px 22px; font: 500 22px/1 var(--display); letter-spacing: .02em; color: var(--ink); outline: none; }
.pal-res { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.pal-res a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 2px; }
.pal-res a img { width: 56px; height: 42px; object-fit: cover; border-radius: 2px; }
.pal-res a b { display: block; font: 500 16px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.pal-res a small { font-size: 12px; color: var(--ink3); }
.pal-res a.sel { background: var(--acc); color: var(--acc-ink); }
.pal-res a.sel small { color: inherit; opacity: .75; }
.pal-res .empty { padding: 18px; font-size: 14px; color: var(--ink3); }
.pal-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); display: flex; gap: 6px; align-items: center; }

.float-prev { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; border-radius: 2px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.float-prev img { width: 100%; height: 100%; object-fit: cover; }
.curtain { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: var(--bg2); transform: scaleY(0); transform-origin: 50% 0; }

/* bascule de thème : fondu en cercle (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ================= tablettes et téléphones ================= */
@media (max-width: 1100px) {
  .search-btn span, .search-btn kbd { display: none; }
  .nav a { padding: 10px 11px; }
  .v-carte { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 92px; --crumb-h: 34px; --pad: 16px; }
  .bar, .bar:not(.solid) { grid-template-columns: 1fr auto; grid-template-rows: 50px 42px; gap: 0 10px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .brand b { font-size: 17px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .nav a { padding: 10px 6px; font-size: 14px; letter-spacing: .1em; }
  .theme-o { padding: 7px 8px; font-size: 11px; letter-spacing: .1em; }
  .crumbs ol { font-size: 12px; }
  .hero { padding-bottom: 9vh; }
  .hero-media { inset: 0 0 30% 0; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .hero::before { background: linear-gradient(0deg, rgba(12, 14, 12, .95) 0%, rgba(12, 14, 12, .75) 50%, rgba(12, 14, 12, .25) 100%); }
  [data-theme="desert"] .hero::before { background: linear-gradient(0deg, rgba(230, 222, 201, .97) 0%, rgba(230, 222, 201, .82) 52%, rgba(230, 222, 201, .25) 100%); }
  .modes { flex-direction: column; height: auto; }
  .mode { min-height: 62svh; }
  .mode + .mode { border-left: 0; border-top: 1px solid var(--line); }
  .v-carte { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .camp-list { flex-direction: row; border-left: 0; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .camp-list h2, .camp-list .all { display: none; }
  .camp-list ol { display: flex; }
  .camp-list button { width: auto; border-top: 0; border-right: 1px solid var(--line); padding: 12px 16px; white-space: nowrap; }
  .camp-list .t { font-size: 17px; }
  .camp-list .n { display: none; }
  .camp-card { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px 18px; }
  .camp-card p.ci { display: none; }
  .filters { gap: 10px; }
  .chips-k, .f-sep { display: none; }
  .count { display: none; }
  .desk { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .tree { max-height: 30svh; border-right: 0; border-bottom: 1px solid var(--line); padding-top: 8px; }
  .navbtn .tt { display: none; }
  .sheet { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; overscroll-behavior: contain; }
  .stage { padding: 12px var(--pad) 0; min-height: auto; }
  .stage-frame { flex: none; height: 34svh; }
  .st-arrow { top: calc(12px + 17svh); width: 44px; height: 44px; margin-top: -22px; }
  .st-arrow.next { right: calc(var(--pad) + 10px); }
  .st-arrow.prev { left: calc(var(--pad) + 10px); }
  .stage-cap { display: none; }
  .panel { overflow: visible; }
  .panel-in { padding: 18px var(--pad) 80px; }
  .labels { grid-template-columns: 1fr; }
  .p-steps a span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hand, .pin b::after { animation: none; }
  .tile .in, .tile .ph, .tile img, .mode, .theme-k { transition: none; }
}
