/*
 * Le Carnet — direction « bande dessinée » du site.
 * Une seule ambiance (papier clair, encre noire, aplats bleu/peau/rouge),
 * volontairement sans mode sombre : c'est l'identité, pas un thème au choix.
 * Mise en page : bandeaux bleus encadrés en tête de page, contenu en
 * « planches » blanches aux contours tracés à main levée (rough.js).
 */
:root {
	--paper: #fbfaf7;
	--paper-2: #f3efe6;
	--ink: #141414;
	--skin: #e9a273;
	--blue: #2a6fd1;
	--red: #e2463a;
	--mute: #5a5752;
	--line: rgba(20, 20, 20, .14);
	--dot: rgba(42, 111, 209, .18);
	--f-title: "Anton", "Impact", "Haettenschweiler", sans-serif;
	--f-hand: "Shantell Sans", "Comic Neue", "Chalkboard SE", system-ui, sans-serif;
	--wrap: 1180px;
	color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-hand); font-variation-settings: "INFM" 30; font-size: 16px; line-height: 1.5; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cn-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.cn-skip:focus { top: 12px; }
.mb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cn-wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
.cn-main { display: block; padding-bottom: 40px; }

/* contours dessinés au trait (rough.js) */
.inked { position: relative; }
.inked > svg.ink { position: absolute; left: -6px; top: -6px; width: calc(100% + 12px); height: calc(100% + 12px); max-width: none; pointer-events: none; overflow: visible; z-index: 3; }
.no-js .inked, .cn-noink .inked { outline: 3px solid var(--ink); }
.halftone { background-image: radial-gradient(var(--dot) 22%, transparent 24%); background-size: 9px 9px; }

/* titres de section */
.cn-title { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: .92; text-wrap: balance; }
.cn-sec { margin-top: 110px; }
.cn-sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cn-sec-head p { color: var(--mute); max-width: 46ch; line-height: 1.5; }
.cn-kick { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* boutons */
.cn-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; text-decoration: none; padding: 12px 18px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 5px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.cn-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 var(--ink); }
.cn-btn.red { background: var(--red); color: var(--paper); }
.cn-btn.ink { background: var(--ink); color: var(--paper); }
.cn-btn.ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.cn-btn.ghost:hover { box-shadow: none; background: rgba(255, 255, 255, .12); }
.cn-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- en-tête ---------- */
.cn-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 3px solid var(--ink); }
.cn-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.cn-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-title); text-transform: uppercase; font-size: 20px; letter-spacing: .01em; }
.cn-logo img { height: 52px; width: auto; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.cn-logo:hover img { transform: rotate(-3deg) scale(1.04); }
.cn-nav { display: flex; align-items: center; gap: 4px; }
.cn-nav > a, .cn-nav summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 999px; cursor: pointer; list-style: none; border: 2.5px solid transparent; }
.cn-nav summary::-webkit-details-marker { display: none; }
.cn-nav > a:hover, .cn-nav summary:hover { border-color: var(--ink); }
.cn-nav > a[aria-current="page"], .cn-nav .is-current > summary { background: var(--ink); color: var(--paper); }
.cn-drop { position: relative; }
.cn-drop[open] > summary { border-color: var(--ink); background: #fff; }
.cn-drop svg { width: 14px; height: 14px; transition: transform .2s; }
.cn-drop[open] svg { transform: rotate(180deg); }
.cn-drop-panel { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); width: min(560px, 92vw); background: #fff; border: 3px solid var(--ink); box-shadow: 7px 8px 0 var(--ink); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cn-drop-panel a { display: grid; gap: 2px; padding: 10px 12px; text-decoration: none; border-radius: 8px; }
.cn-drop-panel a:hover { background: var(--paper-2); }
.cn-drop-panel b { font-size: 15px; }
.cn-drop-panel small { color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.cn-drop-panel a[aria-current="page"] b { color: var(--red); }
.cn-header .cn-btn { padding: 9px 14px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.cn-burger { display: none; }
.cn-mnav { display: none; }

/* ---------- bandeau de page (pages intérieures) ---------- */
.cn-band { position: relative; margin-top: 34px; background: var(--blue); color: var(--paper); display: grid; grid-template-columns: 1.25fr .75fr; min-height: 380px; }
.cn-band-l { position: relative; z-index: 2; padding: 30px 32px 34px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.cn-band h1 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: .92; text-wrap: balance; }
.cn-band .lead { font-size: 18px; line-height: 1.5; max-width: 54ch; font-variation-settings: "INFM" 55; }
.cn-band-r { position: relative; overflow: visible; }
.cn-band .burstclip { position: absolute; inset: 0; overflow: hidden; }
.cn-band .burst { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255, 255, 255, .13) 0 6deg, transparent 6deg 14deg); }
.cn-band-fig { position: absolute; left: 55%; bottom: -10%; height: 118%; width: auto; max-width: 115%; object-fit: contain; object-position: bottom; transform: translateX(-50%); z-index: 4; transform-origin: 50% 100%; animation: cn-pop 1s cubic-bezier(.3, 1.5, .5, 1) both; }
.cn-band-fig.flip { animation-name: cn-pop-flip; }
@keyframes cn-pop-flip { from { transform: translateX(-50%) translateY(-14%) scale(-.45, .45); opacity: 0; } 40% { opacity: 1; } to { transform: translateX(-50%) scale(-1, 1); } }
.cn-aside .card.blue { position: relative; overflow: hidden; padding-top: 128px; }
.card-fig { position: absolute; right: 8px; top: 6px; height: 128px; width: auto; }
.card-fig.flip { transform: scaleX(-1); }
.end-fig.flip { transform: rotate(4deg) scaleX(-1); }
.cn-band-shot { position: absolute; inset: 24px 24px 24px 0; border: 3px solid var(--ink); box-shadow: 7px 8px 0 var(--ink); overflow: hidden; background: var(--ink); transform: rotate(2deg); z-index: 4; }
.cn-band-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@keyframes cn-pop { from { transform: translateX(-50%) translateY(-14%) scale(.45); opacity: 0; } 40% { opacity: 1; } to { transform: translateX(-50%) scale(1); } }
.cn-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; }
.cn-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.cn-crumbs a { text-decoration: none; opacity: .85; }
.cn-crumbs a:hover { opacity: 1; text-decoration: underline; }
.cn-band .cn-chips-static { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-band .cn-chips-static span { border: 2.5px solid var(--paper); padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; transform: rotate(var(--r, -1.5deg)); }
.cn-band .cn-btn { box-shadow: 5px 6px 0 var(--ink); }

/* ---------- couverture (accueil) ---------- */
.cover { position: relative; margin-top: 34px; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 640px; background: var(--blue); color: var(--paper); }
.cover-l { padding: 34px 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; z-index: 2; }
.masthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.issue { background: var(--paper); color: var(--ink); padding: 6px 10px; transform: rotate(-3deg); font-family: var(--f-title); font-size: 18px; letter-spacing: .04em; }
.cover h1 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; margin: 0; }
.cover h1 .h1-kick { display: block; font-family: var(--f-hand); text-transform: none; font-weight: 800; font-size: 17px; letter-spacing: .01em; margin-bottom: 14px; font-variation-settings: "INFM" 60; }
.cover h1 .h1-main { display: block; font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: .92; text-wrap: balance; }
.cover h1 .hl { color: var(--skin); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.cover h1 .w { display: inline-block; }
.cover .blurb { max-width: 36ch; font-size: 18px; line-height: 1.5; font-variation-settings: "INFM" 55; }
.cover .stamps { display: flex; flex-wrap: wrap; gap: 10px; }
.stamp { border: 2.5px solid var(--paper); padding: 6px 12px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; transform: rotate(var(--r, -2deg)); }
.cover-r { position: relative; overflow: visible; }
.burstclip { position: absolute; inset: 0; overflow: hidden; }
.burst { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 58%, rgba(255, 255, 255, .14) 0 6deg, transparent 6deg 14deg); }
.figslot { position: absolute; left: 66%; bottom: -9%; height: 112%; aspect-ratio: 316 / 830; transform: translateX(-50%); z-index: 4; }
.figslot img.fallback { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.js .figslot img.fallback { visibility: hidden; }
.no3d .figslot img.fallback { visibility: visible; }
.bubble { position: absolute; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 26px; padding: 14px 18px; font-size: 17px; line-height: 1.35; font-weight: 600; font-variation-settings: "INFM" 80; box-shadow: 5px 6px 0 var(--ink); }
.bubble::after { content: ""; position: absolute; width: 26px; height: 26px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.cover .bubble { left: 0; top: 16%; width: 210px; z-index: 5; }
.cover .bubble::after { right: -14px; bottom: 26px; transform: skew(-18deg) rotate(-62deg); }

/* figurine flottante (accueil) */
.fig2d { position: fixed; left: 0; top: 0; z-index: 19; pointer-events: none; will-change: transform; }
.fig2d-body { position: absolute; inset: 0; transform-origin: 50% 96%; }
.fig2d-body img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.fig2d-shadow { position: absolute; left: 50%; bottom: -1.5%; width: 95%; height: 4.5%; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(10, 10, 30, .42), transparent); }
.narr { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 70px; height: 170px; z-index: 20; pointer-events: none; }
.narr .figslot { left: 50%; bottom: 0; height: 100%; }
.narr .bubble { right: 108%; bottom: 62%; width: 210px; font-size: 15px; padding: 12px 14px; border-radius: 20px; opacity: 0; transform: scale(.6); transform-origin: 100% 100%; }
.narr .bubble::after { right: -14px; bottom: 16px; transform: skew(-18deg) rotate(-62deg); }

/* ---------- ruban des logos ---------- */
.ribbon { position: relative; margin: 96px calc(50% - 50vw) 0; transform: rotate(-1.6deg); background: #fff; border-block: 3px solid var(--ink); padding: 14px 0; display: flex; align-items: center; overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.ribbon-label { flex: 0 0 auto; z-index: 2; background: var(--red); color: var(--paper); font-family: var(--f-title); text-transform: uppercase; font-size: 18px; padding: 10px 16px; margin-left: max(16px, calc(50vw - 590px)); border: 3px solid var(--ink); transform: rotate(2deg); box-shadow: 4px 4px 0 var(--ink); }
.ribbon-track { display: flex; width: max-content; animation: cn-marquee 38s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon ul { display: flex; align-items: center; gap: 54px; list-style: none; margin: 0; padding: 0 27px; }
.ribbon img { height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(1.2); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
.ribbon li:hover img { filter: none; opacity: 1; transform: scale(1.12) rotate(-2deg); }
/* Logo livré entièrement crème (#FCF9F2), pensé pour fond sombre : invisible sur le ruban blanc, on le passe à l'encre. */
.ribbon img[src$="logo-la-truffe-du-roy.svg"], .ribbon li:hover img[src$="logo-la-truffe-du-roy.svg"] { filter: brightness(0); }
@keyframes cn-marquee { to { transform: translateX(-50%); } }

/* ---------- sommaire (services) ---------- */
.toc { margin-top: 100px; display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.toc > div > p { color: var(--mute); line-height: 1.55; margin-top: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.toc a { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; padding: 16px 18px; color: var(--ink); text-decoration: none; background: #fff; height: 100%; transition: transform .2s; }
.toc a:hover { transform: translate(-3px, -3px) rotate(-.5deg); }
.toc .n { font-family: var(--f-title); font-size: 28px; color: var(--red); grid-row: span 2; }
.toc .t { font-weight: 800; font-size: 17px; }
.toc small { color: var(--mute); font-size: 13.5px; line-height: 1.4; }

/* ---------- références : BD horizontale (accueil) ---------- */
.bd { margin: 110px calc(50% - 50vw) 0; }
.bd-pin { height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 86px 0 34px; overflow: hidden; }
.bd-head { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; font-size: .55em; vertical-align: .55em; background: var(--red); color: var(--paper); border: 3px solid var(--ink); border-radius: 50%; transform: rotate(-8deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 14px var(--f-hand); background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, background .15s; }
.chip small { font-weight: 800; color: var(--red); margin-left: 2px; }
.chip:hover { transform: translate(-1px, -2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] small { color: var(--skin); }
.bd-view { flex: 1; min-height: 0; }
.bd-track { height: 100%; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-flow: column dense; grid-auto-columns: clamp(250px, 24vw, 330px); gap: 20px; padding: 6px max(16px, calc(50vw - 574px)); width: max-content; will-change: transform; }
.bd-progress { width: min(1148px, calc(100% - 32px)); margin: 0 auto; height: 8px; border: 2.5px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.bd-progress i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.bd-more { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 16px; }

/* case de projet (accueil, archive, pages de service) */
.case { background: #fff; min-width: 0; transition: opacity .35s, transform .35s, filter .35s; }
.case.wide { grid-column: span 2; }
.case.dim { opacity: .18; transform: scale(.93); filter: grayscale(1); }
.case[hidden] { display: none; }
.case a { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; color: var(--ink); text-decoration: none; }
.case-shot { position: relative; overflow: hidden; background: var(--ink); min-height: 0; }
.case-grid .case-shot { aspect-ratio: 16 / 10; }
.case-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.case-shot .inkd, .shot .inkd { filter: url(#cn-encre); }
.case-shot .color, .shot .color { clip-path: circle(calc(var(--c, 0) * 75%) at 50% 40%); }
.no-js .case-shot .color, .no-js .shot .color { clip-path: none; }
.case a:hover .case-shot img { transform: scale(1.05); }
.case-cap { padding: 10px 14px 12px; display: grid; gap: 2px; border-top: 3px solid var(--ink); }
.case-cap .kick { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-cap b { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1; }
.case-cap .sub { font-size: 13.5px; line-height: 1.35; color: #3a3833; }
.case.quote { display: flex; align-items: center; gap: 12px; padding: 16px; background-color: var(--skin); }
.case.quote .mini { width: 64px; height: auto; flex: 0 0 auto; }
.case.quote q { quotes: none; font-weight: 700; font-size: 16px; line-height: 1.3; font-variation-settings: "INFM" 90; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cn-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 54px 0 26px; }

/* ---------- produits : cartes holographiques ---------- */
.holos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.holo { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0; aspect-ratio: 4 / 5; max-height: 400px; perspective: 1100px; }
.holo-in { position: relative; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.holo.flipped .holo-in { transform: rotateY(180deg); }
.holo-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); overflow: hidden; }
.holo-front { display: flex; flex-direction: column; gap: 8px; padding: 12px; text-align: left; cursor: pointer; color: var(--ink); background: linear-gradient(160deg, hsl(var(--hue) 85% 92%), #fff 60%); width: 100%; }
.holo-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kind { background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; align-self: flex-start; }
.holo-img { position: relative; flex: 1; min-height: 0; border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--ink); }
.holo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.holo-front b, .holo-back b { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: .95; }
.holo-front .line { font-size: 14px; line-height: 1.35; color: #34312c; min-height: 2.7em; }
.foil, .glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--o); transition: opacity .3s; }
.foil { background: repeating-linear-gradient(115deg, #ff3e9a 0%, #ffd23e 7%, #3effa0 14%, #3ecbff 21%, #b13eff 28%, #ff3e9a 35%); background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: color-dodge; filter: saturate(1.4) brightness(.9); opacity: calc(var(--o) * .55); }
.glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85), transparent 45%); mix-blend-mode: overlay; }
.holo-back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.holo-back .kind { background: var(--skin); color: var(--ink); }
.holo-back ul { list-style: none; margin: 4px 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.holo-back li { border: 2px solid var(--paper); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.holo-back a { color: var(--skin); font-weight: 700; text-underline-offset: 4px; }
.flipback { align-self: flex-start; font: 700 14px var(--f-hand); background: var(--paper); color: var(--ink); border: 2.5px solid var(--paper); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* ---------- open source : stickers ---------- */
.stickers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.sticker { position: relative; background: var(--c); border: 3px solid var(--ink); border-radius: 22px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; transform: rotate(var(--r)); box-shadow: 4px 5px 0 var(--ink); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; }
.sticker::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 0; height: 0; border-radius: 0 0 20px 0; background: linear-gradient(135deg, rgba(0, 0, 0, .25) 0 48%, var(--paper-2) 50% 100%); transition: width .25s, height .25s; }
.sticker:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); box-shadow: 8px 12px 0 var(--ink); }
.sticker:hover::after { width: 34px; height: 34px; }
.s-name { font-family: var(--f-title); text-transform: uppercase; font-size: 24px; line-height: 1; }
.s-desc { font-size: 14px; line-height: 1.4; }
.s-links { display: flex; gap: 12px; margin-top: 4px; }
.s-links a { font-weight: 800; font-size: 13px; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- méthode : strip de 4 cases ---------- */
.strip4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.strip4 li { background: #fff; padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.strip4 li:nth-child(even) { background-color: var(--paper-2); }
.strip4 .n { font-family: var(--f-title); font-size: 44px; line-height: .9; color: var(--blue); -webkit-text-stroke: 1.5px var(--ink); }
.strip4 b { font-size: 18px; }
.strip4 p { color: #3a3833; font-size: 14.5px; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 880px; }
.faq details { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); padding: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-hand); font-weight: 800; font-size: 30px; line-height: 1; color: var(--red); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { padding: 0 18px 18px; color: #34312c; line-height: 1.6; }

/* ---------- planche de contenu rédigé ---------- */
.cn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 70px; }
.cn-layout.solo { grid-template-columns: minmax(0, 860px); justify-content: center; }
.cn-sheet { background: #fff; padding: clamp(22px, 4vw, 48px); }
.cn-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.cn-aside .card { background: #fff; padding: 20px; display: grid; gap: 12px; }
.cn-aside .card b { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1; }
.cn-aside .card p { color: #3a3833; font-size: 14.5px; }
.cn-aside .card.blue { background: var(--blue); color: var(--paper); }
.cn-aside .card.blue p { color: var(--paper); }
.cn-aside nav { display: grid; gap: 4px; }
.cn-aside nav a { text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 1.5px dashed var(--line); }
.cn-aside nav a:hover { color: var(--red); }

.cn-prose { font-size: 17px; line-height: 1.7; color: #24221e; font-variation-settings: "INFM" 15; }
.cn-prose > * + * { margin-top: 1.05em; }
.cn-prose > :first-child { margin-top: 0; }
.cn-prose h2 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--ink); margin-top: 1.8em; padding-top: .2em; }
.cn-prose h2::before { content: ""; display: block; width: 46px; height: 6px; background: var(--red); border: 2px solid var(--ink); margin-bottom: 12px; transform: rotate(-2deg); }
.cn-prose h3 { font-size: 20px; font-weight: 800; margin-top: 1.5em; color: var(--ink); }
.cn-prose a { color: var(--blue); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cn-prose strong { color: var(--ink); }
.cn-prose ul, .cn-prose ol { padding-left: 1.3em; }
.cn-prose li + li { margin-top: .4em; }
.cn-prose ul li::marker { color: var(--red); }
.cn-prose blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--paper-2); border-left: 6px solid var(--ink); font-weight: 600; }
.cn-prose img { border: 3px solid var(--ink); }
.cn-prose code { font-size: .92em; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }
.cn-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cn-prose th, .cn-prose td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; }
/* FAQ et blocs déjà présents dans le contenu (anciennes classes de mise en page sans effet ici) */
.cn-prose .not-prose { margin-top: 2em; display: grid; gap: 14px; }
.cn-prose details { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); padding: 16px 18px; border-radius: 0; }
.cn-prose details summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; color: var(--ink); font-family: var(--f-hand); }
.cn-prose details summary::-webkit-details-marker { display: none; }
.cn-prose details summary > span:last-child, .cn-prose details summary > svg { color: var(--red); flex: 0 0 auto; }
.cn-prose details summary svg { width: 18px; height: 18px; transition: transform .2s; }
.cn-prose details[open] summary svg { transform: rotate(45deg); }
.cn-prose details p { margin-top: 10px; color: #34312c; font-size: 16px; }

/* ---------- fiche projet / produit ---------- */
.shot { position: relative; overflow: hidden; background: var(--ink); }
.shot img { width: 100%; height: auto; display: block; }
.shot .color { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cn-facts { display: grid; gap: 14px; }
.cn-facts dt { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.cn-facts dd { margin: 2px 0 0; font-weight: 700; }
.cn-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 50px; }
.cn-gallery figure { margin: 0; background: #fff; }
.cn-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 3px solid var(--ink); }
.cn-gallery figcaption { padding: 10px 14px; font-size: 14px; font-weight: 600; }
.cn-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 60px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.cn-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; margin-top: 70px; align-items: start; }
.cn-contact .cn-sheet { display: grid; gap: 18px; }
.cn-contact .links { display: grid; gap: 10px; }
.cn-contact .links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.cn-contact .links svg { width: 20px; height: 20px; }
.cn-form { display: grid; gap: 14px; }
.cn-form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.cn-form input, .cn-form textarea { width: 100%; font: 16px var(--f-hand); color: var(--ink); background: var(--paper); border: 3px solid var(--ink); padding: 12px 14px; border-radius: 0; box-shadow: inset 3px 3px 0 rgba(20, 20, 20, .07); }
.cn-form input:focus, .cn-form textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--blue); }
.cn-form .cn-btn { justify-self: start; }
.cn-notice { padding: 14px 16px; border: 3px solid var(--ink); font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }
.cn-notice.ok { background: #c7f2a4; }
.cn-notice.err { background: #ffb3a7; }

/* ---------- fin de page ---------- */
.end { margin-top: 130px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--red); color: var(--paper); padding: 40px 36px; }
.end h2 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .9; }
.end p { margin-top: 14px; max-width: 48ch; line-height: 1.5; font-size: 17px; }
.end .cn-actions { margin-top: 22px; }
.end img { width: 170px; height: auto; transform: rotate(4deg); }

/* ---------- pied de page ---------- */
.cn-footer { position: relative; margin-top: 110px; background: var(--ink); color: var(--paper); overflow: hidden; }
.cn-footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 22%, transparent 24%); background-size: 9px 9px; pointer-events: none; }
.cn-footer-in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding-block: 60px 40px; }
.cn-footer .brand { height: 60px; width: auto; }
.cn-footer p { color: rgba(251, 250, 247, .72); font-size: 15px; margin-top: 10px; }
.cn-footer h2 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 18px; color: var(--skin); margin-bottom: 12px; }
.cn-footer nav, .cn-footer ul { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.cn-footer a { text-decoration: none; color: rgba(251, 250, 247, .85); font-size: 15px; }
.cn-footer a:hover { color: var(--skin); text-decoration: underline; }
.cn-footer .contact { display: grid; gap: 8px; margin-top: 16px; }
.cn-footer .contact a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.cn-footer .contact svg, .cn-social svg { width: 18px; height: 18px; }
.cn-social { display: flex; gap: 10px; margin-top: 16px; }
.cn-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 2.5px solid rgba(251, 250, 247, .5); border-radius: 50%; }
.cn-social a:hover { border-color: var(--skin); color: var(--skin); }
.cn-footer-bottom { position: relative; border-top: 2px dashed rgba(251, 250, 247, .2); padding-block: 18px 190px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(251, 250, 247, .6); }
.cn-desert { position: absolute; inset: auto 0 0; height: 240px; pointer-events: none; }
.cn-desert i { position: absolute; display: block; background: var(--skin); -webkit-mask: var(--m) no-repeat; mask: var(--m) no-repeat; }
.cn-desert .dune { left: 0; right: 0; bottom: 0; height: 100%; -webkit-mask-size: auto 100%; mask-size: auto 100%; -webkit-mask-position: 0 100%; mask-position: 0 100%; opacity: .16; }
.cn-desert .palm { right: 6%; bottom: 46px; width: 130px; height: 160px; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: bottom; mask-position: bottom; opacity: .13; transform: scaleX(-1); transform-origin: 50% 100%; animation: cn-sway 7s ease-in-out infinite alternate; }
.cn-desert .sun { right: 16%; bottom: 70px; width: 64px; height: 64px; border-radius: 50%; -webkit-mask: none; mask: none; opacity: .12; box-shadow: 0 0 0 10px rgba(233, 162, 115, .25); }
@keyframes cn-sway { from { transform: scaleX(-1) rotate(-1.5deg); } to { transform: scaleX(-1) rotate(1.5deg); } }
.cn-footer-bottom { z-index: 1; }

/* ---------- 404 ---------- */
.cn-404 .big { font-family: var(--f-title); font-size: clamp(5rem, 16vw, 11rem); line-height: .8; color: var(--skin); -webkit-text-stroke: 3px var(--ink); }



/* ---------- sommaire : grille de cases BD ---------- */
.kiosk { margin-top: 100px; }
.kiosk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.kcase { --bg: #fff; --fg: var(--ink); --acc: var(--red); min-width: 0; }
.kcase.big { grid-column: span 2; grid-row: span 2; }
.kcase:nth-child(8) { grid-column: span 2; }
.k-blue { --bg: var(--blue); --fg: var(--paper); --acc: var(--skin); }
.k-yellow { --bg: #ffe98a; }
.k-skin { --bg: #f6d2b8; }
.k-green { --bg: #cdeeb2; }
.k-lilac { --bg: #ddd0ff; }
.k-red { --bg: var(--red); --fg: var(--paper); --acc: #ffe98a; }
.k-paper { --bg: #fff; }
.k-ink { --bg: var(--ink); --fg: var(--paper); --acc: var(--skin); }
.kin { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 20px; background-color: var(--bg); color: var(--fg); text-decoration: none; overflow: hidden; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .35s; box-shadow: 0 0 0 var(--ink); }
.k-blue .kin, .k-red .kin, .k-ink .kin { background-image: radial-gradient(rgba(255, 255, 255, .13) 22%, transparent 24%); }
.kcase:nth-child(odd) .kin { transform: rotate(-.6deg); }
.kcase:nth-child(even) .kin { transform: rotate(.7deg); }
.kin:hover, .kin:focus-visible { transform: translate(-4px, -6px) rotate(-1.2deg) scale(1.02); box-shadow: 10px 12px 0 var(--ink); z-index: 2; }
.knum { position: absolute; right: -8px; bottom: -34px; font-family: var(--f-title); font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 2.5px currentColor; opacity: .18; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; pointer-events: none; }
.big .knum { font-size: 300px; bottom: -70px; right: auto; left: -10px; }
.kin:hover .knum { transform: translate(-10px, -16px) rotate(-6deg); opacity: .32; }
.ksfx { align-self: flex-start; font-family: var(--f-title); text-transform: uppercase; font-size: 21px; line-height: 1; padding: 6px 10px 5px; background: var(--acc); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg); transition: transform .35s cubic-bezier(.3, 2, .5, 1); }
.kin:hover .ksfx { transform: rotate(4deg) scale(1.22); }
.kt { position: relative; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: .98; margin-top: 4px; }
.kd { position: relative; font-size: 14.5px; line-height: 1.45; opacity: .88; max-width: 40ch; }
.kgo { position: relative; margin-top: auto; font-weight: 800; font-size: 14px; transform: translateX(-6px); opacity: 0; transition: transform .3s, opacity .3s; }
.kin:hover .kgo, .kin:focus-visible .kgo { transform: none; opacity: 1; }
.big .kin { padding: 30px 30px 26px; }
.big .ksfx { font-size: 30px; }
.big .kt { font-size: clamp(2.2rem, 3.6vw, 3.2rem); max-width: 58%; }
.big .kd { font-size: 16.5px; max-width: 56%; }
.kfig { position: absolute; right: 2%; bottom: -16%; height: 90%; width: auto; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.kin:hover .kfig { transform: translateY(-8%) rotate(-3deg); }
.js .kcase[data-rise] { transform: scale(1.25) rotate(var(--rr, 0deg)); transition: opacity .35s ease var(--d, 0s), transform .55s cubic-bezier(.2, 1.6, .4, 1) var(--d, 0s); }
.js .kcase[data-rise].in { transform: none; }

/* poses de la figurine dans la méthode et la FAQ */
.mfig.wide { width: 86%; margin-right: -4%; }
.flip { transform: scaleX(-1); }
.mail .a img.wide { width: 130px; }

/* ---------- méthode : planche de 4 cases dialoguées ---------- */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mpanel { display: grid; gap: 10px; align-content: start; --bg: #cfe2fb; }
.mpanel.skin { --bg: #f6d2b8; } .mpanel.yellow { --bg: #ffe98a; } .mpanel.green { --bg: #cdeeb2; }
.mpanel:nth-child(odd) .mframe { transform: rotate(-1deg); } .mpanel:nth-child(even) .mframe { transform: rotate(1.2deg); }
.mframe { position: relative; aspect-ratio: 4 / 5; background-color: var(--bg); padding: 16px 14px 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.mpanel:hover .mframe { transform: rotate(0) translateY(-6px); }
.mnum { position: absolute; left: -2px; top: -2px; z-index: 4; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-title); font-size: 26px; border-radius: 0 0 14px 0; }
.msfx { position: absolute; right: 10px; top: 10px; z-index: 3; font-family: var(--f-title); text-transform: uppercase; font-size: 22px; line-height: 1; color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; transform: rotate(8deg); }
.mq, .ma { position: relative; margin: 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.32; font-weight: 700; border: 2.5px solid var(--ink); background: #fff; border-radius: 16px; max-width: 88%; box-shadow: 3px 3px 0 var(--ink); }
.mq { align-self: flex-start; margin-top: 34px; }
.ma { align-self: flex-end; background: var(--ink); color: var(--paper); }
.mq::after, .ma::after { content: ""; position: absolute; bottom: -9px; width: 14px; height: 14px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.mq::after { left: 18px; background: #fff; transform: skew(-14deg) rotate(45deg); }
.ma::after { right: 22px; background: var(--ink); transform: skew(14deg) rotate(45deg); }
.mfig { margin-top: auto; align-self: flex-end; height: 46%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom; margin-right: 4%; }
.mpanel h3 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1; margin-top: 8px; }
.mdesc { color: #3a3833; font-size: 14.5px; line-height: 1.45; }
.js .mpanel[data-rise] .msfx { transform: rotate(8deg) scale(0); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1) calc(var(--d, 0s) + .45s); }
.js .mpanel[data-rise].in .msfx { transform: rotate(8deg) scale(1); }

/* ---------- FAQ : le courrier des lecteurs ---------- */
.mail { display: grid; gap: 18px; max-width: 920px; }
.mail details { position: relative; }
.mail summary { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail .who { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--skin); border: 3px solid var(--ink); font-family: var(--f-title); font-size: 28px; box-shadow: 3px 3px 0 var(--ink); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.mail .q { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 14px 18px; font-weight: 800; font-size: 17px; line-height: 1.35; box-shadow: 4px 5px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.mail .q::before { content: ""; position: absolute; left: -12px; top: 50%; width: 18px; height: 18px; background: #fff; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-50%) skew(10deg) rotate(45deg); }
.mail summary:hover .q { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.mail summary:hover .who { transform: rotate(-12deg) scale(1.08); }
.mail .tog { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); position: relative; transition: transform .25s, background .25s; }
.mail .tog::before, .mail .tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 3px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.mail .tog::after { transform: translate(-50%, -50%) rotate(90deg); }
.mail details[open] .tog { transform: rotate(135deg); background: var(--red); }
.mail details[open] .who { background: var(--blue); color: var(--paper); }
.mail .a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin: 14px 0 6px 68px; }
.mail .a p { position: relative; background: var(--blue); color: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 16px 20px; line-height: 1.6; font-size: 16px; box-shadow: 4px 5px 0 var(--ink); }
.mail .a p::after { content: ""; position: absolute; right: -12px; bottom: 22px; width: 18px; height: 18px; background: var(--blue); border-right: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: skew(10deg) rotate(45deg); }
.mail .a img { height: 120px; width: auto; max-width: 150px; object-fit: contain; object-position: bottom; }
.mail details[open] .a { animation: cn-bubble .45s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 90% 100%; }
@keyframes cn-bubble { from { opacity: 0; transform: scale(.6) translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- entrées (voir initEntrances) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(46px) rotate(var(--rr, 0deg)); transition: opacity .5s ease var(--d, 0s), transform .75s cubic-bezier(.2, 1.4, .4, 1) var(--d, 0s); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .case[data-rise].in.dim { opacity: .18; transform: scale(.93); }
/* cartes 3D : jamais d'opacité animée (Firefox aplatit la 3D pendant ce temps) */
.js .holo[data-rise] { opacity: 1; transform: translateY(70px) rotate(var(--rr, 0deg)); }
.js .holo[data-rise].in { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.cn-nav > a, .cn-nav summary { padding: 8px 9px; font-size: 14px; }
	.cn-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.cn-nav, .cn-header .cn-btn { display: none; }
	.cn-burger { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; background: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 7px 12px; cursor: pointer; list-style: none; }
	.cn-burger::-webkit-details-marker { display: none; }
	.cn-mnav { display: block; }
	.cn-mnav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 14px 16px 22px; max-height: calc(100vh - 70px); overflow: auto; box-shadow: 0 10px 0 rgba(20, 20, 20, .08); }
	.cn-mnav-panel a { display: block; padding: 10px 4px; font-weight: 800; font-size: 18px; text-decoration: none; border-bottom: 1.5px dashed var(--line); }
	.cn-mnav-panel .group { font-family: var(--f-title); text-transform: uppercase; font-size: 15px; color: var(--red); margin: 16px 0 4px; }
	.cn-mnav-panel .sub a { font-size: 16px; font-weight: 700; padding-left: 12px; }
	.cn-mnav-panel .cn-btn { display: inline-flex; margin-top: 18px; border-bottom: 3px solid var(--ink); }
	.cn-layout, .cn-contact { grid-template-columns: 1fr; }
	.cn-aside { position: static; }
}
@media (max-width: 880px) {
	.cover, .cn-band { grid-template-columns: 1fr; }
	.cover-r { min-height: 520px; }
	.figslot { left: 70%; bottom: -8%; height: 94%; }
	.cover .bubble { left: 4%; top: 4%; width: 165px; font-size: 13.5px; }
	.cn-band-r { min-height: 300px; }
	.cn-band-fig { height: 108%; }
	.toc { grid-template-columns: 1fr; }
	.toc ol { grid-template-columns: 1fr; }
	.bd-pin { height: auto; min-height: 0; padding: 0; }
	.bd-view { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.bd-track { height: 520px; grid-auto-columns: 74vw; }
	.case { scroll-snap-align: start; }
	.bd .case.wide { grid-column: span 1; }
	.bd-progress { display: none; }
	.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.holos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.holo-front b, .holo-back b { font-size: 22px; }
	.strip4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kiosk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kcase:nth-child(8) { grid-column: span 2; }
	.cn-gallery { grid-template-columns: 1fr; }
	.end { grid-template-columns: 1fr; }
	.end img { display: none; }
	.narr { width: 52px; height: 128px; }
	.narr .bubble { width: 170px; font-size: 13px; padding: 10px 12px; }
}
@media (max-width: 560px) {
	.case-grid { grid-template-columns: 1fr; }
	.holos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 14px; }
	.holo { flex: 0 0 72vw; max-height: 380px; scroll-snap-align: center; }
	.strip4 { grid-template-columns: 1fr; }
	.kiosk-grid { grid-template-columns: 1fr; }
	.kcase.big, .kcase:nth-child(8) { grid-column: auto; grid-row: auto; }
	.big .kin { min-height: 360px; }
	.kfig { height: 64%; }
	.big .kt, .big .kd { max-width: 100%; }
	.big .kd { max-width: 62%; }
	.method { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 6px 16px 16px; }
	.mpanel { flex: 0 0 78vw; scroll-snap-align: center; }
	.mail .a { margin-left: 0; grid-template-columns: 1fr 64px; }
	.mail .a img { width: 64px; }
	.mail summary { grid-template-columns: 40px 1fr auto; gap: 10px; }
	.mail .who { width: 40px; height: 40px; font-size: 20px; }
	.mail .q { font-size: 15.5px; }
	.cn-footer-in { grid-template-columns: 1fr; }
	.cn-band-l, .cover-l { padding: 24px 20px 26px; }
	.ribbon-label { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.ribbon-track, .cn-band-fig, .cn-desert .palm { animation: none; }
	html { scroll-behavior: auto; }
}
