/* CA Dossier — styles du site.
   Variables en tête ; ensuite : base, en-tête, accueil (scène, chapitres, preuves), étude, index, contenus des blocs,
   repli sans JavaScript, mouvement réduit, téléphone. */

:root {
	--bg: #ECEAE5;
	--fg: #111111;
	--mute: #6A6862;
	--soft: #3D3B37;
	--line: #1111111F;
	--card: #F7F6F2;
	--accent: #5B3A6B;
	--pad: 28px;
	--left: 60px;
	--ease: cubic-bezier(.19, 1, .22, 1);
	--font: "Bricolage", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-variation-settings: "wdth" 100, "opsz" 14; font-size: 16px; line-height: 1.5; overflow-x: clip; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible + .hd { outline: 2px solid var(--fg); outline-offset: 3px; }
#contenu:focus { outline: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); transition: top .2s; }
.skip:focus { top: 12px; }
.k { font-size: 13px; color: var(--mute); letter-spacing: .01em; }
.h2 { font-variation-settings: "wdth" 80, "opsz" 96; font-weight: 450; font-size: min(7vw, 96px); letter-spacing: -.04em; line-height: .92; margin: 0; }
.btn { min-height: 44px; padding: 0 18px; border: 1px solid #1111112E; border-radius: 999px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s, color .25s; }
.btn:hover { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------------- en-tête */
.top { position: absolute; left: var(--pad); right: var(--pad); top: 22px; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; transition: color .5s; }
.top__nav { grid-column: 3; justify-self: end; display: flex; gap: 24px; }
.top--over { position: fixed; }
.top--over::before { content: ""; position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); top: -22px; height: 120px; background: linear-gradient(#ECEAE5F2 35%, #ECEAE500); z-index: -1; pointer-events: none; }
.top a { min-height: 44px; display: inline-flex; align-items: center; }
.top__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.top__hint { font-size: 14px; color: var(--mute); transition: opacity .3s; }
.past-pin .top__hint { opacity: 0; }
@media (max-width: 1200px) { .top__hint { display: none; } }
body:not(.home) .top { position: relative; left: auto; right: auto; top: auto; padding: 22px var(--pad) 0; }

/* ---------------------------------------------------------------- scène */
.pin { position: relative; height: calc(100vh + var(--steps, 22) * 42vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.gsrc { position: absolute; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.gsrc > * { width: 2px; height: 2px; }
.shade { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(90deg, #ECEAE5FA 0, #ECEAE5EB calc(var(--left) + min(560px, 44vw)), #ECEAE500 calc(var(--left) + min(560px, 44vw) + 240px)), linear-gradient(270deg, #ECEAE5D9 0%, #ECEAE500 20%); }
.prog { position: absolute; left: var(--pad); top: 120px; bottom: 120px; width: 2px; background: #11111122; z-index: 5; }
.prog i { position: absolute; inset: 0; background: var(--fg); transform-origin: 50% 0; transform: scaleY(0); }
.big { font-variation-settings: "wdth" 80, "opsz" 96; font-weight: 450; letter-spacing: -.04em; line-height: .9; margin: 0; }
.big .ch { display: inline-block; opacity: 0; transform: translateY(.25em); filter: blur(10px); transition: opacity .3s ease, transform .4s cubic-bezier(.23, 1, .32, 1), filter .4s ease; transition-delay: calc(var(--i) * 6ms); }
.on .big .ch { opacity: 1; transform: none; filter: blur(0); transition: opacity .7s ease, transform 1s var(--ease), filter .8s ease; transition-delay: calc(var(--i) * 24ms + 200ms); }
.ch.sp { white-space: pre; }
.wd { display: inline-block; white-space: nowrap; }
.ln { display: block; }
.w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .25s, transform .3s, filter .3s; }
.st.on .w { opacity: 1; transform: none; filter: blur(0); transition: opacity .6s ease, transform .8s var(--ease), filter .6s ease; transition-delay: calc(var(--i) * 18ms + 250ms); }

.intro { position: absolute; left: var(--left); top: 26vh; z-index: 4; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.intro.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.intro .big { font-size: min(10vw, 150px); }
.intro .lead { margin: 28px 0 0; max-width: 34ch; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.intro__role { margin: 18px 0 0; max-width: 52ch; }

/* chapitres */
.cht { position: absolute; left: var(--left); top: 96px; width: min(560px, 44vw); z-index: 4; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.cht.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.cht .big { font-size: min(6.2vw, 86px); margin: 10px 0 8px; max-width: 11ch; }
.cht .ro { margin: 0 0 22px; }
.sts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.st { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.st .n { font-size: 13px; color: var(--mute); padding-top: 3px; }
.st .l { font-size: 17px; font-weight: 500; opacity: .62; transition: opacity .4s; }
.st.on .l { opacity: 1; }
.st.past .l { opacity: .78; }
.st .tx { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.st.on .tx { grid-template-rows: 1fr; }
.st .tx > p { overflow: hidden; margin: 0; font-size: 24px; line-height: 1.24; letter-spacing: -.015em; font-variation-settings: "wdth" 92, "opsz" 32; max-width: 25ch; }
.st.on .tx > p { padding-top: 10px; }

/* carte de preuve */
.pf { position: absolute; left: calc(min(560px, 44vw) + 80px); top: 0; width: min(640px, 44vw); max-height: calc(100svh - 230px); overflow: hidden; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: 0 30px 80px #0000001F; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .4s, transform .6s var(--ease); pointer-events: none; }
.pf:focus-within { opacity: 1; transform: none; }
.pf.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s .15s, transform .9s var(--ease) .15s; }
.pf .k { margin: 0; }
.row { display: flex; gap: 10px; width: 100%; max-width: calc(min(320px, 36svh) * var(--R)); aspect-ratio: var(--R); margin: 0 auto; }
.row figure { margin: 0; flex: var(--r) 1 0; min-width: 0; height: 100%; }
.row img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #ddd; }
.read { justify-self: start; align-self: start; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 15px; display: inline-flex; gap: 10px; align-items: center; transition: transform .3s; }
.read:hover { transform: translateX(4px); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chain li { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); font-size: 24px; letter-spacing: -.02em; margin-left: calc(var(--d) * 28px); opacity: 0; transform: translateX(-20px); transition: opacity .5s, transform .7s var(--ease); transition-delay: calc(var(--d) * 120ms + 300ms); }
.chain li span { font-size: 13px; color: var(--mute); }
.on .chain li, .study-doc .chain li, .no-motion .chain li { opacity: 1; transform: none; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.flow .nd { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); }
.flow .nd b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.flow .nd span { display: block; font-size: 14px; color: var(--mute); }
.flow .br { display: grid; gap: 14px; }
.flow .ar { width: 64px; height: 120px; }
.flow .ar path { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) .3s; }
.on .flow .ar path, .study-doc .flow .ar path { stroke-dashoffset: 0; }
.flow .gate { border-color: var(--fg); }
.flow .gate em { font-style: normal; display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 12px; }

/* volet avant / après */
.wipe { --x: 50%; position: relative; overflow: hidden; border-radius: 14px; background: #ddd; touch-action: pan-y; }
.wipe img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.wipe .b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.wipe .hd { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px #0000001F; }
.wipe .hd::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 6px 24px #0000002E; }
.wipe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.wipe .lb { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: #111111B3; color: #fff; font-size: 13px; pointer-events: none; }
.wipe .lb.l { left: 14px; }
.wipe .lb.r { right: 14px; }
.wipe.sweep:not(.touched) { animation: ca-sweep 2.4s cubic-bezier(.65, 0, .35, 1) .4s 1 both; }
@keyframes ca-sweep { 0% { --x: 50%; } 35% { --x: 18%; } 70% { --x: 80%; } 100% { --x: 50%; } }
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

/* navigation des chapitres */
.nvs { position: absolute; left: var(--left); right: var(--pad); bottom: 24px; z-index: 5; display: flex; gap: 8px; }
.nv { flex: 1; display: grid; gap: 8px; padding: 10px 0 0; min-height: 44px; text-align: left; }
.nv .lab { font-size: 13px; opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.nv.on .lab, .nv:hover .lab { opacity: 1; }
.nv .tk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.nv .tk i { height: 2px; background: #11111126; transition: background-color .4s; }
.nv .tk i.f { background: var(--fg); }

/* ---------------------------------------------------------------- sections de l'accueil */
.sec { max-width: 1384px; margin: 0 auto; padding: 120px var(--pad); }
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.rv.in, html:not(.js) .rv { opacity: 1; transform: none; }
.meth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 64px; border-top: 1px solid var(--line); padding-top: 28px; }
.meth > div:nth-child(2) { transition-delay: .1s; }
.meth > div:nth-child(3) { transition-delay: .2s; }
.meth h3 { margin: 0 0 12px; font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.meth p { margin: 0; color: var(--soft); max-width: 38ch; }
.meth .n { display: block; font-size: 13px; color: var(--mute); margin-bottom: 28px; }
.sec__more { margin: 56px 0 0; }
.end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 120px; }
.end__mail { margin: 0; font-size: min(8vw, 120px); letter-spacing: -.04em; line-height: .9; font-variation-settings: "wdth" 75, "opsz" 96; }
.end__meta { text-align: right; }
.end__meta p { margin: 0 0 4px; }
.end__meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #11111155; }
.foot { max-width: 1384px; margin: 0 auto; padding: 0 var(--pad) 60px; }
.foot .end { margin-top: 80px; }
.foot--min { padding-bottom: 40px; }

/* ---------------------------------------------------------------- étude */
.study { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow: auto; overscroll-behavior: contain; transform: translateY(102%); visibility: hidden; transition: transform .9s cubic-bezier(.77, 0, .175, 1), visibility 0s .9s; }
.study.open { transform: none; visibility: visible; transition: transform .9s cubic-bezier(.77, 0, .175, 1); }
.study__bar, .single__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--pad); background: #ECEAE5E6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.study__in, .single__in { max-width: 1080px; margin: 0 auto; padding: 60px var(--pad) 120px; }
.study.loading .study__in { opacity: .3; transition: opacity .2s; }
html.st-open { overflow: hidden; }
.study-doc__title { font-variation-settings: "wdth" 80, "opsz" 96; font-weight: 450; letter-spacing: -.04em; line-height: .9; font-size: min(9vw, 128px); margin: 12px 0 22px; }
.study-doc__log { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -.025em; max-width: 28ch; font-variation-settings: "wdth" 90, "opsz" 32; }
.study-doc__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 44px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.study-doc__meta dt { font-size: 13px; color: var(--mute); }
.study-doc__meta dd { margin: 2px 0 0; font-size: 15px; }
.trio { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--fg); }
.trio li { padding: 20px 22px 24px 0; border-right: 1px solid var(--line); }
.trio li + li { padding-left: 22px; }
.trio li:last-child { border-right: 0; }
.trio p { margin: 10px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.study-doc__film { margin: 64px 0 0; display: grid; gap: 10px; justify-items: start; }
.study-doc__film video { display: block; width: 100%; max-height: 78vh; border-radius: 14px; background: #111; }
.study-doc__film.ca-fmt-vertical video, .study-doc__film.ca-fmt-portrait video { width: auto; max-width: 100%; aspect-ratio: 9 / 16; height: min(78vh, 720px); }
.nxt { margin-top: 100px; display: grid; gap: 6px; padding-top: 28px; border-top: 2px solid var(--fg); }
.nxt__t { font-size: min(6vw, 72px); letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 80, "opsz" 96; transition: transform .4s var(--ease); }
.nxt:hover .nxt__t { transform: translateX(12px); }

/* contenus de l'étude (blocs) : titres à gauche, texte à droite, médias en pleine largeur */
.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 48px; margin-top: 30px; }
.prose > * { grid-column: 1 / -1; }
.prose > h2, .prose > h3 { grid-column: 1; margin: 80px 0 0; font-size: 30px; line-height: 1.05; font-weight: 450; letter-spacing: -.03em; font-variation-settings: "wdth" 85, "opsz" 72; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { grid-column: 2; margin: 80px 0 0; font-size: 17px; line-height: 1.55; color: #2A2926; max-width: 60ch; }
.prose > p + p, .prose > p + ul, .prose > ul + p { margin-top: 14px; }
.prose > h2 + p, .prose > h3 + p { margin-top: 82px; }
.prose > figure, .prose > .wp-block-gallery, .prose > .wp-block-video, .prose > .wp-block-image { margin: 36px 0 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose figcaption, .prose .wp-element-caption { font-size: 13px; color: var(--mute); margin-top: 10px; text-align: left; }
.prose .is-style-fiche { margin: 56px 0 0; }
.prose .is-style-fiche h2 { margin: 0 0 18px; font-size: 13px; font-weight: 500; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; }
.prose .wp-block-column h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.prose .wp-block-column p, .prose .wp-block-column ul { margin: 0; font-size: 16px; line-height: 1.45; }
.prose .wp-block-column ul { padding-left: 18px; }
.prose .is-style-note { margin: 90px 0 0; padding: 26px 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.prose .is-style-note h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.prose .is-style-note p { margin: 0; font-size: 18px; line-height: 1.45; max-width: 62ch; }
.prose .wp-block-gallery { display: grid !important; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.prose .wp-block-gallery > .wp-block-image { margin: 0 !important; width: auto !important; }
.prose .wp-block-gallery img { width: 100% !important; height: auto !important; aspect-ratio: .8; object-fit: cover; border-radius: 12px; display: block; }
.prose .wp-block-gallery.is-style-planche { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prose .wp-block-gallery.is-style-pellicule { grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); }
.prose .wp-block-gallery.is-style-pellicule img { aspect-ratio: .5625; }
.prose .wp-block-gallery.is-style-ecrans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prose .wp-block-gallery.is-style-ecrans img { aspect-ratio: auto; object-fit: contain; background: #111; }
.prose .wp-block-gallery > figcaption, .prose .wp-block-gallery .blocks-gallery-caption { grid-column: 1 / -1; text-align: left; margin: 0; }
.prose .wp-block-video video { display: block; width: auto; max-width: 100%; max-height: 80vh; border-radius: 14px; background: #111; }
.prose .is-style-moniteur { padding: 0; }
.prose blockquote { border-left: 2px solid var(--fg); padding-left: 18px; }
.prose .wipe { margin-top: 36px; }

/* ---------------------------------------------------------------- page de projet, index, 404 */
.single__bar { position: sticky; }
.index { max-width: 1384px; margin: 0 auto; padding: 80px var(--pad) 40px; }
.index__tracks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.index__tracks a { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 14px; }
.index__tracks a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.index__list { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--fg); }
.index__list a { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.index__list a:hover { background: #1111110A; }
.index__media { width: 96px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E2E0DA; display: flex; align-items: center; justify-content: center; }
.index__media img { width: 100%; height: 100%; object-fit: cover; }
.index__ph { font-size: 11px; padding: 6px; text-align: center; color: var(--mute); }
.index__t { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.index__l { color: var(--soft); }
.lost, .page-plain { max-width: 1080px; margin: 0 auto; padding: 120px var(--pad); }
.lost p { max-width: 50ch; }

/* ---------------------------------------------------------------- sans WebGL, sans JavaScript */
.nogl canvas.gl { display: none; }
.nogl .stage { background: var(--bg); }
html:not(.js) .pin { height: auto; }
html:not(.js) .stage { position: relative; height: auto; min-height: 0; overflow: visible; padding: 120px 0 40px; }
html:not(.js) canvas.gl, html:not(.js) .shade, html:not(.js) .prog, html:not(.js) .nvs { display: none; }
html:not(.js) .intro, html:not(.js) .cht { position: relative; left: auto; top: auto; width: auto; opacity: 1; visibility: visible; max-width: 1384px; margin: 0 auto; padding: 0 var(--pad) 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 60px; }
html:not(.js) .intro { display: block; }
html:not(.js) .cht > :not(.pf) { grid-column: 1; }
html:not(.js) .cht .pf { position: relative; left: auto; width: auto; grid-column: 2; grid-row: 1 / span 4; align-self: start; opacity: 1; transform: none; max-height: none; pointer-events: auto; }
html:not(.js) .big .ch, html:not(.js) .w { opacity: 1; transform: none; filter: none; }
html:not(.js) .st .tx { grid-template-rows: 1fr; }
html:not(.js) .st .tx > p { padding-top: 10px; }
html:not(.js) .st .l { opacity: 1; }
html:not(.js) .chain li { opacity: 1; transform: none; }
html:not(.js) .flow .ar path { stroke-dashoffset: 0; }
html:not(.js) .study { display: none; }

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
	.big .ch, .w { transform: none !important; filter: none !important; }
}

/* ---------------------------------------------------------------- tablette et téléphone */
@media (max-width: 1100px) {
	.cht { width: min(520px, 46vw); }
	.pf { left: calc(min(520px, 46vw) + 40px); width: calc(100vw - min(520px, 46vw) - 140px); }
}
@media (max-width: 760px) {
	:root { --pad: 20px; --left: 20px; }
	.top { display: flex; justify-content: space-between; }
	.top__hint { display: none; }
	.top__nav { gap: 14px; }
	.prog { display: none; }
	.shade { background: linear-gradient(#ECEAE559, #ECEAE5F2 38%); }
	.intro { left: 20px; right: 20px; top: auto; bottom: 110px; }
	.intro .big { font-size: 17vw; }
	.intro .lead { font-size: 18px; }
	.cht { left: 20px; right: 20px; width: auto; top: 78px; bottom: 0; }
	.cht .big { font-size: 12vw; }
	.cht .ro { display: none; }
	.st { padding: 8px 0; }
	.st .tx > p { font-size: 18px; }
	.cht[data-s="2"] .st:not(.on) { display: none; }
	.pf { left: -8px; right: -8px; width: auto; top: auto; bottom: 70px; padding: 14px; max-height: 52%; }
	.row { max-width: calc(26svh * var(--R)); }
	.chain li { font-size: 17px; padding: 10px 12px; margin-left: calc(var(--d) * 12px); }
	.flow { grid-template-columns: 1fr; }
	.flow .ar { display: none; }
	.flow .nd { padding: 10px; }
	.flow .nd b { font-size: 15px; }
	.nvs { left: 20px; right: 20px; bottom: 14px; }
	.nv .lab { display: none; }
	.meth { grid-template-columns: 1fr; }
	.end__meta { text-align: left; }
	.study__in, .single__in { padding: 36px 20px 90px; }
	.study-doc__log { font-size: 22px; }
	.study-doc__meta, .trio, .prose, .prose .wp-block-columns { grid-template-columns: 1fr; }
	.prose > h2, .prose > h3, .prose > p, .prose > ul, .prose > ol, .prose > blockquote { grid-column: 1; }
	.prose > p, .prose > ul, .prose > h2 + p, .prose > h3 + p, .prose > h2 + ul { margin-top: 14px; }
	.prose > h2, .prose > h3 { margin-top: 56px; }
	.trio li, .trio li + li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
	.prose .wp-block-gallery.is-style-planche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.index__list a { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
	.index__media { width: 64px; }
	.index__l, .index__k { grid-column: 2; }
	html:not(.js) .cht { grid-template-columns: 1fr; }
	html:not(.js) .cht .pf { grid-column: 1; grid-row: auto; margin-top: 20px; }
}

/* volet des contenus existants (bloc « ca-wipe » des études) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ca-wipe { --w: 50%; margin: 36px 0 0; position: relative; }
.ca-wipe__frame { position: relative; aspect-ratio: 1600 / 976; overflow: hidden; border-radius: 14px; background: #ddd; }
.ca-wipe__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ca-wipe__after { clip-path: inset(0 0 0 var(--w)); }
.ca-wipe__line { position: absolute; top: 0; bottom: 0; left: var(--w); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ca-wipe__line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 6px 24px #0000002E; }
.ca-wipe__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: #111111B3; color: #fff; font-size: 13px; pointer-events: none; }
.ca-wipe__tag--b { left: 14px; }
.ca-wipe__tag--a { right: 14px; }
.ca-wipe__ctrl { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1600 / 976; }
.ca-wipe__ctrl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ca-wipe__ctrl:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 14px; }


/* ---------------------------------------------------------------- ajouts de la mise en ligne */
.sm-only { display: none; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 28px; margin-top: 60px; border-top: 1px solid var(--line); }
.foot--min .foot__legal { margin-top: 0; }
.foot__legal .k { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.foot__links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #11111140; }
.foot__links a:hover, .foot__links a[aria-current="page"] { text-decoration-color: currentColor; }
.page-plain .prose > p:first-child { grid-column: 1 / -1; margin-top: 48px; font-size: 26px; line-height: 1.3; letter-spacing: -.015em; max-width: 34ch; color: var(--fg); font-variation-settings: "wdth" 92, "opsz" 32; }
.page-plain .prose > h2:first-child { margin-top: 48px; }
.page-plain .prose .todo, .prose .todo { padding: 10px 14px; border-radius: 10px; background: #F3E7C7; color: #4A3A10; }
.page-plain .prose li { margin-bottom: 6px; }
@media (max-width: 900px) {
	.stage .prog { display: none; }
	.stage .shade { background: linear-gradient(#ECEAE5F7 0, #ECEAE5EE 50%, #ECEAE570 78%, #ECEAE540 100%); }
	.intro { left: var(--pad); right: var(--pad); top: 96px; bottom: auto; }
	.intro .big { font-size: min(17vw, 120px); }
	.cht { left: var(--pad); right: var(--pad); width: auto; top: 84px; bottom: 0; }
	.cht .big { font-size: min(12vw, 80px); }
	.cht .ro { display: none; }
	.cht[data-s="2"] .st:not(.on) { display: none; }
	.pf { left: -8px; right: -8px; width: auto; top: auto; bottom: 72px; padding: 16px; max-height: 50%; }
	.row { max-width: calc(26svh * var(--R)); }
	.flow { grid-template-columns: 1fr; }
	.flow .ar { display: none; }
	.nvs { left: var(--pad); right: var(--pad); bottom: 16px; }
	.nv .lab { display: none; }
}
@media (max-width: 760px) {
	.h2 { font-size: 11vw; }
	.lg-only { display: none; }
	.sm-only { display: inline; }
	.page-plain .prose > p:first-child { font-size: 21px; }
	.foot__legal { flex-direction: column; align-items: flex-start; }
}

.xs-only { display: none; }
@media (max-width: 430px) { .xs-only { display: inline; } .xs-hide { display: none; } .top__nav { gap: 12px; } }
.end__kick { max-width: 30ch; margin: 0 0 14px auto !important; color: var(--mute); line-height: 1.4; }
#methode .h2 { max-width: 18ch; }
@media (max-width: 760px) { .end__kick { margin-left: 0 !important; } }
/* Mobile : le bouton de l'étude reste toujours visible, la preuve se resserre au besoin. */
@media (max-width: 900px) {
	.pf { display: flex; flex-direction: column; }
	.pf > :not(.read) { min-height: 0; flex: 0 1 auto; overflow: hidden; }
	.pf > .read { flex: none; align-self: flex-start; }
}
@media (max-width: 900px) and (max-height: 780px) {
	.cht .big { font-size: min(10.5vw, 64px); }
	.pf { max-height: 46%; bottom: 60px; padding: 14px; gap: 10px; }
}
@media (max-width: 900px) and (max-height: 700px) {
	.st .tx > p { font-size: 16px; max-width: none; }
	.pf > p.k { display: none; }
	.pf { max-height: 42%; }
}
