/* ==========================================================================
   ioris. : feuille de style principale
   ========================================================================== */

:root {
	--paper: #F9F5F3;
	--ink: #1E1E1E;
	--ink-2: #3F3C38;
	--muted: #5C5853;
	--line: #CFC8C1;
	--ph: #E7E1DB;
	--grid: #EEE8E2;
	--red: #FF0000;
	--hover: #C8102E;
	--dark: #1E1E1E;
	--on-dark: #F9F5F3;
	--shadow-rest: drop-shadow(0 2px 3px rgba(30, 30, 30, .18)) drop-shadow(0 8px 14px rgba(30, 30, 30, .12));
	--shadow-lift: drop-shadow(0 20px 24px rgba(30, 30, 30, .28));
	--pad: 48px;
	--maxw: 1440px;
	--label-variation: 'wght' 680, 'SOFT' 100, 'opsz' 24, 'WONK' 0;
	--label-weight: 680;
	color-scheme: light;
}

[data-theme="night"] {
	--paper: #0E1016;
	--ink: #EDE8E3;
	--ink-2: #D2CCC5;
	--muted: #A9A39C;
	--line: #3A3B43;
	--ph: #1C1F27;
	--grid: transparent;
	--red: #FF3B30;
	--hover: #FF6B5E;
	--dark: #05060A;
	--on-dark: #EDE8E3;
	--shadow-rest: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)) drop-shadow(0 8px 14px rgba(0, 0, 0, .4));
	--shadow-lift: drop-shadow(0 20px 24px rgba(0, 0, 0, .6));
	color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	cursor: url(../img/cursor-arrow.png) 0 0, auto;
	cursor: -webkit-image-set(url(../img/cursor-arrow.png) 1x, url(../img/cursor-arrow@2x.png) 2x) 0 0, auto;
	cursor: image-set(url(../img/cursor-arrow.png) 1x, url(../img/cursor-arrow@2x.png) 2x) 0 0, auto;
}

body.has-grid {
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 20px 20px;
}

[data-theme="night"] body { background-image: none; background-color: transparent; }

a, button, summary, label[for], select, [role="button"], .is-draggable, .corde, .jargon, .chip {
	cursor: url(../img/cursor-hand.png) 11 0, pointer;
	cursor: -webkit-image-set(url(../img/cursor-hand.png) 1x, url(../img/cursor-hand@2x.png) 2x) 11 0, pointer;
	cursor: image-set(url(../img/cursor-hand.png) 1x, url(../img/cursor-hand@2x.png) 2x) 11 0, pointer;
}
input, textarea { cursor: text; }
.objet.is-lifted, .skyx.is-panning { cursor: grabbing; }

[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--hover); }

:focus-visible { outline: 2px solid var(--hover); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 0; }

p { margin: 0 0 1em; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.page-pad { padding-top: 48px; padding-bottom: 96px; }

.site { position: relative; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
.site > main { flex: 1; }

.paper { background: var(--paper); }

.label {
	font-family: var(--f-label);
	font-variation-settings: var(--label-variation);
	font-weight: var(--label-weight);
	font-size: 17px;
	line-height: 1.3;
	color: var(--muted);
	letter-spacing: .01em;
}
.label--ink { color: var(--ink); }

.ph { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--ph); }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 8px; }
.linkish:hover { color: var(--hover); }

/* Boutons ---------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font: 600 17px/1 var(--f-text); text-decoration: none; border: 1.5px solid var(--ink);
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
.btn--light { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink);
	background: transparent; color: var(--ink); text-decoration: none;
	display: inline-flex; align-items: center;
	font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 18px;
}
.chip:hover { color: var(--ink); background: var(--ph); }
.chip.is-active { background: var(--ink); color: var(--paper); }

/* Logo ------------------------------------------------------------------- */

.logo { color: var(--ink); overflow: visible; }
.logo__wave { fill: none; stroke: var(--red); stroke-width: 6.13; stroke-linecap: round; stroke-linejoin: round; transition: opacity .6s ease .35s; }
.ioris-learned .logo__wave { opacity: 0; }
.logo--small { width: 96px; }
.logo__alt { font: 600 205px/1 var(--f-display); fill: var(--ink); letter-spacing: -.025em; }
.logo__alt[hidden] { display: none; }
.logo__caret { fill: var(--ink); animation: ioris-caret 1s steps(1) infinite; }
.logo__caret.is-typing { animation: none; }
.logo__caret[hidden] { display: none; }
@keyframes ioris-caret { 50% { opacity: 0; } }
.corde.is-typing .logo__wave { transition: opacity .25s ease; }
.corde.is-other .logo__wave { opacity: 0 !important; transition: opacity .12s ease; }

/* En-tête ---------------------------------------------------------------- */

.site-header { position: relative; z-index: 40; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: block; color: var(--ink); }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.nav a { text-decoration: none; font: 500 17px/1.2 var(--f-text); }
.nav .current-menu-item > a, .nav a[aria-current] { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

.tools { display: flex; align-items: center; gap: 10px; }
.tool {
	min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
	border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	text-decoration: none;
	font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 18px;
}
.tool:hover { color: var(--ink); background: var(--ph); }
.tool--icon { padding: 0; width: 44px; }
.tool--menu { display: none; }
.icon--sun { display: none; }
[data-theme="night"] .icon--moon { display: none; }
[data-theme="night"] .icon--sun { display: block; }
[data-theme="night"] [data-night-toggle] { background: var(--ink); color: var(--paper); }

.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang a {
	min-height: 41px; padding: 0 14px; display: inline-flex; align-items: center; text-decoration: none;
	font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 17px;
}
.lang a.is-active { background: var(--ink); color: var(--paper); }

.mobile-menu { padding: 8px var(--pad) 24px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.mobile-menu .menu { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-menu a { display: block; padding: 12px 0; font: 500 30px/1.1 var(--f-display); text-decoration: none; letter-spacing: -.02em; }

/* Accueil ---------------------------------------------------------------- */

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; padding-top: 64px; padding-bottom: 88px; }
.hero__logo { flex: 1 1 520px; max-width: 700px; }
.corde { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.logo--hero { width: 100%; }
.hero__side { flex: 0 1 470px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.hero__bio { padding: 24px 28px; font-size: 24px; line-height: 1.35; }
.hero__bio p:last-child { margin-bottom: 0; }
/* Un texte collé en citation ou en titre garde l'allure normale de la bio. */
.hero__bio.prose blockquote, .hero__bio.prose h1, .hero__bio.prose h2, .hero__bio.prose h3, .hero__bio.prose h4 { margin: 0 0 .6em; padding: 0; border: 0; font: inherit; letter-spacing: normal; }
.hero__bio.prose blockquote p { margin: 0; font: inherit; }
.hero__bio.prose blockquote cite { display: none; }
.night-only { display: none; }
[data-theme="night"] .night-only { display: block; }
[data-theme="night"] .hero__bio { display: none; }  /* la nuit, on garde seulement l'invitation aux étoiles */
.hero__night { padding: 22px 26px; font-size: 20px; line-height: 1.4; }
.hero__night-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding-top: 64px; padding-bottom: 64px; border-top: 1.5px solid var(--ink); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section__head--rule { border-top: 1.5px solid var(--ink); padding-top: 24px; margin-bottom: 40px; }
.section__title { font-size: clamp(44px, 5vw, 64px); letter-spacing: -.03em; }
.more { font-weight: 500; text-decoration: none; }

.plist { display: flex; flex-direction: column; }
.prow { display: flex; flex-wrap: wrap; gap: 32px; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.prow:hover { color: inherit; }
.prow:hover .prow__title { text-decoration: underline; text-decoration-thickness: 2px; }
.prow[hidden] { display: none; }
.prow__text { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.prow__title { font: 600 26px/1.15 var(--f-display); letter-spacing: -.01em; }
.prow__line { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.prow__imgs { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prow__img { width: 100%; height: 180px; object-fit: cover; background: var(--ph); }
.prow__imgs .ph { height: 180px; aspect-ratio: auto; }

.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.acard { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); text-decoration: none; }
.acard__title { font: 600 26px/1.15 var(--f-display); letter-spacing: -.01em; }
.acard__excerpt { font-size: 16px; line-height: 1.45; color: var(--ink-2); }

.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pcard__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pcard__row { display: flex; justify-content: space-between; gap: 12px; }

/* Grands titres de page -------------------------------------------------- */

.bighead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.bighead__title { font-size: clamp(64px, 11vw, 160px); letter-spacing: -.05em; line-height: .85; }
.bighead__title--md { font-size: clamp(48px, 7vw, 104px); letter-spacing: -.045em; line-height: .95; }
.bighead__intro { max-width: 440px; padding: 20px 24px; font-size: 20px; line-height: 1.45; margin: 0 0 12px; }
.empty { padding: 24px 28px; max-width: 560px; }

/* Projet ----------------------------------------------------------------- */

.back { display: inline-block; text-decoration: none; margin-bottom: 40px; }
.phead { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.phead__title { font-size: clamp(48px, 7.2vw, 104px); letter-spacing: -.045em; line-height: .95; max-width: 1200px; }
.facts { margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1.5px solid var(--ink); padding-top: 20px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dd { margin: 0; font-size: 18px; }
.pfig { margin: 0 0 48px; }
.pfig a.lb { display: block; }
.pfig--crop img { width: 100%; max-height: 720px; object-fit: cover; }
.pfig--full img { display: block; width: auto; max-width: 100%; max-height: 85vh; height: auto; margin: 0 auto; }
.pbody { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-bottom: 48px; }
.pbody__stats { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; }
.pbody__text { grid-column: 6 / span 7; padding: 32px 36px; font-size: 20px; line-height: 1.55; }
.pbody--single .pbody__text { grid-column: 3 / span 8; }
.stat { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.stat__value { font: 500 56px/1 var(--f-display); letter-spacing: -.03em; }
.pvideo { margin-bottom: 48px; }
.pvideo iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
/* Galerie : chaque image garde ses proportions (sauf si réglée « ajustée »). */
.pgallery { columns: 3 260px; column-gap: 16px; margin-bottom: 16px; }
.pgallery figure { margin: 0 0 16px; break-inside: avoid; }
.pgallery a.lb { display: block; }
.pgallery img { display: block; width: 100%; height: auto; }
.pgallery .is-crop img { aspect-ratio: 4 / 3; object-fit: cover; }
.credits { margin: 0 0 48px; }
.next { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 24px; text-decoration: none; }
.next__title { font: 500 clamp(28px, 4vw, 48px)/1.1 var(--f-display); letter-spacing: -.03em; }

/* Texte riche ------------------------------------------------------------ */

.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 36px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 26px; margin: 1.3em 0 .4em; }
.prose blockquote { margin: 1.2em 0; padding: 0; font: 500 34px/1.2 var(--f-display); letter-spacing: -.02em; }
.prose blockquote p { margin: 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-family: var(--f-label); font-variation-settings: var(--label-variation); font-size: 16px; color: var(--muted); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { text-decoration: underline; }
.prose--lead { font-size: 22px; line-height: 1.45; }
.prose--lead p:first-child { font-size: 28px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }

/* Playground ------------------------------------------------------------- */

.masonry { columns: 3 320px; column-gap: 24px; }
.play { break-inside: avoid; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; text-decoration: none; }
.play[hidden] { display: none; }
.play__img { position: relative; display: block; background: var(--ph); overflow: hidden; }
.play__img img { width: 100%; height: auto; }
.play.is-locked .play__img img { filter: blur(14px) saturate(.8); transform: scale(1.1); }
.lockpill {
	position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
	background: var(--paper); color: var(--ink);
	font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 17px;
}
.lockpill .icon { width: 15px; height: 15px; }
.play__meta { display: flex; justify-content: space-between; gap: 12px; }
.play__title { font: 600 22px/1.2 var(--f-display); }

.locked { position: relative; min-height: 520px; display: grid; place-items: center; background: var(--ph); overflow: hidden; margin-bottom: 48px; }
.locked__blur { position: absolute; inset: 0; }
.locked__blur img, .locked__blur .ph { width: 100%; height: 100%; object-fit: cover; filter: blur(30px); transform: scale(1.15); }
.lockform { position: relative; width: min(440px, calc(100% - 40px)); padding: 28px; border-radius: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 16px; }
.lockform__title { display: flex; align-items: center; gap: 10px; font: 600 22px/1.2 var(--f-display); margin: 0; }
.lockform__text { margin: 0; font-size: 16px; color: var(--ink-2); }

/* Champs ----------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field .label { color: var(--ink); }
.field input, .field textarea {
	min-height: 48px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; color: #1E1E1E;
	padding: 10px 14px; font: 17px/1.4 var(--f-text);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 8px; }
.notice--ok { background: #E5F2E5; color: #1D4D1D; }
.notice--error { background: #FBE4E2; color: #7A1B12; }

/* Articles --------------------------------------------------------------- */

.feature { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; text-decoration: none; }
.feature__img { flex: 999 1 560px; min-width: 0; height: 480px; object-fit: cover; }
.feature .ph.feature__img { aspect-ratio: auto; }
.feature__text { flex: 1 1 360px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.feature__title { font: 500 52px/1 var(--f-display); letter-spacing: -.03em; }
.feature__excerpt { font-size: 18px; color: var(--ink-2); }
.alist { display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: 180px minmax(0, 1fr) 200px 90px; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.arow__title { font: 600 26px/1.2 var(--f-display); letter-spacing: -.01em; }
.arow__time { text-align: right; }
.pager { margin-top: 32px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; padding: 0 12px; }
.pager .current { background: var(--ink); color: var(--paper); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ahead { max-width: 1040px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.ahead__title { font-size: clamp(44px, 6vw, 88px); letter-spacing: -.04em; line-height: .98; }
.ahead__lede { font-size: 26px; line-height: 1.35; color: var(--ink-2); max-width: 820px; margin: 0; }
.reading { width: 100%; max-width: 800px; margin: 0 auto 48px; padding: 48px 50px; font-size: 20px; line-height: 1.6; }
.reading--left { margin-left: 0; }
.related { border-top: 1.5px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related__list a { font: 600 24px/1.2 var(--f-display); text-decoration: none; }

/* À propos --------------------------------------------------------------- */

.about__top { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 72px; }
.about__photo { flex: 1 1 320px; max-width: 440px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.about__photo img, .about__photo .ph { width: 100%; height: 560px; object-fit: cover; object-position: var(--pos, 50% 50%); aspect-ratio: auto; }
.about__intro { flex: 999 1 560px; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; gap: 32px; }
.cv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; border-top: 1.5px solid var(--ink); padding: 40px 44px; margin-bottom: 72px; }
.cv__main { grid-column: span 7; }
.cv__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 8px; }
.cv__title { font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 20px; letter-spacing: 0; margin: 0 0 12px; }
.cv__side .cv__title:not(:first-child) { margin-top: 32px; }
.cv__list { list-style: none; margin: 0; padding: 0; }
.cv__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.35; }
.cv__row:first-child { border-top: 0; }
.cv__list--stack .cv__row { display: flex; flex-direction: column; gap: 2px; }
.cv__where { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }

.contact { border-top: 1.5px solid var(--ink); padding-top: 48px; display: flex; flex-wrap: wrap; gap: 48px; scroll-margin-top: 24px; }
.contact__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.contact__intro p { margin: 0; font-size: 19px; max-width: 420px; }
.contact__mail { font-size: 24px; font-weight: 500; }
.contact-form { flex: 999 1 560px; min-width: 0; padding: 32px 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; position: relative; }
.contact-form .notice, .contact-form .field--full { grid-column: 1 / -1; }
.contact-form .btn { justify-self: start; grid-column: 1 / -1; }

.notfound { text-align: left; }
.notfound .wavy { text-decoration: underline wavy var(--red); text-decoration-thickness: 4px; text-underline-offset: 18px; }
.notfound__text { max-width: 520px; padding: 24px 28px; margin: 40px 0; }

/* Pied de page ----------------------------------------------------------- */

.site-footer { background: var(--dark); color: var(--on-dark); position: relative; z-index: 2; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .label { color: #B9B2AA; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__hello { display: flex; flex-direction: column; gap: 12px; }
.site-footer__title { font: 500 44px/1 var(--f-display); letter-spacing: -.03em; margin: 0; }
.site-footer__mail { font-size: 22px; text-decoration: underline !important; }
.site-footer__cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 16px; }
.site-footer__cols .label { margin: 0 0 10px; }
.site-footer__cols .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid #4A4743; font-size: 15px; }
.site-footer__bottom span { font-family: var(--f-text); }
.site-footer__bottom .linkish { color: var(--on-dark); }
.site-footer .icon { width: 16px; height: 16px; }

/* Jargon et dictionnaire ------------------------------------------------- */

.jargon {
	display: inline; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit;
	text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: .28em; text-decoration-skip-ink: none;
}
.jargon:hover, .jargon[aria-expanded="true"] { background: rgba(255, 0, 0, .08); }
.jargon.is-known, .jargon.is-ignored { text-decoration: none; }
.jargon.is-known:hover { background: none; }

.pop, .cmenu {
	position: absolute; z-index: 120; width: min(340px, calc(100vw - 24px));
	background: #fff; color: #1E1E1E; border: 1px solid #CFC8C1; border-radius: 8px;
	box-shadow: 0 8px 24px rgba(30, 30, 30, .16); padding: 16px; display: flex; flex-direction: column; gap: 10px;
	font-family: var(--f-text);
}
.pop__meant { font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 15px; color: #5C5853; }
.pop__term { font: 600 18px/1.2 var(--f-display); }
.pop__def { font-size: 15px; line-height: 1.45; color: #3F3C38; margin: 0; }
.pop__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.pop__btn { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid #CFC8C1; background: transparent; color: #1E1E1E; font: 14px/1 var(--f-text); }
.pop__btn--main { background: #1E1E1E; border-color: #1E1E1E; color: #F9F5F3; }

.cmenu { width: 220px; padding: 6px; gap: 0; }
.cmenu__label { padding: 6px 10px; font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 15px; color: #5C5853; }
.cmenu button { text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 4px; font: 15px/1.2 var(--f-text); color: #1E1E1E; }
.cmenu button:hover, .cmenu button:focus-visible { background: #F1ECE7; outline: none; }
.cmenu__sugg { font-weight: 600 !important; }
.cmenu hr { border: 0; border-top: 1px solid #CFC8C1; margin: 4px 0; }

.dico {
	position: fixed; z-index: 130; top: 12px; right: 12px; bottom: 12px; width: min(400px, calc(100vw - 24px));
	background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); padding: 24px; overflow: auto;
	display: flex; flex-direction: column; gap: 16px;
}
.dico[hidden] { display: none; }
.dico__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dico__title { font: 600 24px/1.1 var(--f-display); letter-spacing: -.01em; }
.dico__bar { height: 6px; background: var(--ph); border-radius: 999px; overflow: hidden; }
.dico__bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }
.dico__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.dico__list li { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.dico__list strong { font-size: 16px; }
.dico__list span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.dico__empty { color: var(--muted); }

.toast {
	position: fixed; z-index: 140; left: 50%; bottom: 24px; transform: translateX(-50%);
	padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
	font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 17px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* Objets posés ----------------------------------------------------------- */

.objets { position: absolute; inset: 0; pointer-events: none; z-index: 30; transition: opacity .4s ease, visibility .4s; }
[data-theme="night"] .objets { opacity: 0; visibility: hidden; }
.objet {
	position: absolute; left: var(--x); top: var(--y); --ww: var(--w); width: var(--ww);
	transform: translate(-50%, 0) rotate(var(--r)) scale(var(--s, 1));
	filter: var(--shadow-rest); pointer-events: auto;
	transition: transform .14s ease, filter .14s ease;
	touch-action: none; -webkit-user-select: none; user-select: none;
}
.objet img { width: 100%; height: auto; pointer-events: none; }
.objet--polaroid { background: #fff; padding: calc(var(--ww) * .06) calc(var(--ww) * .06) calc(var(--ww) * .2); }
.objet.is-lifted { --s: 1.05; filter: var(--shadow-lift); z-index: 2; transition: filter .14s ease; }
.objet.is-lifted { transform: translate(-50%, -6px) rotate(calc(var(--r) + 2deg)) scale(1.05); }
.objet:not(.is-draggable) { pointer-events: none; }
.placebar {
	position: fixed; z-index: 140; left: 50%; bottom: 24px; transform: translateX(-50%);
	display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 999px; background: #1E1E1E; color: #F9F5F3;
	font: 15px/1 var(--f-text);
}
.placebar button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #F9F5F3; color: #1E1E1E; font: 600 15px/1 var(--f-text); }

/* Ciel ------------------------------------------------------------------- */

.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: none; pointer-events: none; background: #0B0D12; }
[data-theme="night"] .sky { display: block; }

.skyx { position: fixed; inset: 0; z-index: 150; background: #0B0D12; color: #EDE8E3; touch-action: none; }
.skyx[hidden] { display: none; }
.skyx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.skyx__top { position: absolute; left: 24px; right: 24px; top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.skyx__top > * { pointer-events: auto; }
.skyx .tool { border-color: #EDE8E3; color: #EDE8E3; }
.skyx .tool:hover { background: rgba(237, 232, 227, .12); }
.skyx__hint { font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 16px; color: #B9B2AA; }
.skyx__name { position: absolute; padding: 6px 10px; border-radius: 999px; background: rgba(14, 16, 22, .85); color: #EDE8E3; font: 14px/1.2 var(--f-text); pointer-events: none; transform: translate(-50%, -140%); white-space: nowrap; }
.skyx__bar {
	position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(900px, calc(100% - 32px));
	padding: 14px; border-radius: 16px; background: rgba(237, 232, 227, .08); border: 1px solid rgba(237, 232, 227, .25);
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; backdrop-filter: blur(6px);
}
.skyx__count { font-family: var(--f-label); font-variation-settings: var(--label-variation); font-weight: var(--label-weight); font-size: 16px; align-self: center; white-space: nowrap; }
.skyx__field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; font-family: var(--f-label); font-variation-settings: var(--label-variation); font-size: 14px; color: #B9B2AA; }
.skyx__field input { min-height: 42px; border-radius: 8px; border: 1px solid rgba(237, 232, 227, .4); background: transparent; color: #EDE8E3; padding: 0 12px; font: 16px/1 var(--f-text); }
.skyx__send { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #EDE8E3; color: #0B0D12; font: 600 15px/1 var(--f-text); }
.skyx__msg { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 96px); overflow: auto; padding: 18px; border-radius: 16px; background: #F9F5F3; color: #1E1E1E; display: flex; flex-direction: column; gap: 12px; }
.skyx__msg p { margin: 0; }
.skyx__card { display: block; width: 100%; height: auto; border-radius: 10px; aspect-ratio: 3 / 2; background: #0B0D12; }
.skyx__msg .btn { min-height: 46px; }

/* Shop (WooCommerce) ----------------------------------------------------- */

.shop .woocommerce-products-header__title { font: 500 clamp(64px, 11vw, 160px)/.85 var(--f-display); letter-spacing: -.05em; margin-bottom: 40px; }
.shop ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.shop ul.products::before, .shop ul.products::after { display: none; }
.shop ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.shop .button, .woocommerce .button, .woocommerce button.button { border-radius: 999px !important; background: var(--ink) !important; color: var(--paper) !important; padding: 14px 22px !important; font-family: var(--f-text) !important; }
.shop .price { color: var(--ink) !important; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
	.nav { display: none; }
	.tool--menu { display: inline-flex; }
	.tools .lang { display: none; }
	.mobile-menu .lang { display: inline-flex; }
}

@media (max-width: 900px) {
	:root { --pad: 20px; }
	body { font-size: 17px; }
	.tool--dico > span { display: none; }
	.tool--dico { padding: 0; width: 44px; }
	.hero { padding-top: 40px; padding-bottom: 48px; gap: 28px; }
	.hero__bio { font-size: 19px; padding: 16px 18px; }
	.prow__imgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; }
	.prow__img, .prow__imgs .ph { flex: 0 0 72%; height: 200px; scroll-snap-align: start; }
	.acards, .pcards, .related__list, .shop ul.products { grid-template-columns: 1fr; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pbody__stats, .pbody__text, .pbody--single .pbody__text { grid-column: 1 / -1; }
	.pbody__text, .reading { padding: 24px 20px; font-size: 18px; }
	.pgallery { columns: 1; }
	.arow { grid-template-columns: 1fr; gap: 6px; }
	.arow__time { text-align: left; }
	.feature__img { height: 280px; }
	.feature__title { font-size: 36px; }
	.about__photo img, .about__photo .ph { height: 420px; }
	.about__intro, .cv { padding: 24px 20px; }
	.cv__main, .cv__side { grid-column: 1 / -1; }
	.cv__row { grid-template-columns: 1fr; gap: 4px; }
	.contact-form { grid-template-columns: 1fr; padding: 24px 20px; }
	.site-footer__title { font-size: 34px; }
	.objet.hide-mobile { display: none; }
	.objet { --ww: calc(var(--w) * .6); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Message du ciel (fond crème) */
.skyx__msg .btn--dark { background: #1E1E1E; color: #F9F5F3; border-color: #1E1E1E; }
.skyx__msg .btn--line { background: transparent; color: #1E1E1E; border: 1.5px solid #1E1E1E; }


/* Visionneuse d'images */
.lbx { position: fixed; inset: 0; z-index: 200; background: rgba(20, 19, 18, .94); color: #F9F5F3; }
.lbx__stage { position: absolute; inset: 56px 72px 72px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lbx__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.lbx.is-zoomed .lbx__stage { overflow: auto; display: block; text-align: center; }
.lbx.is-zoomed .lbx__img { max-width: none; max-height: none; }
.lbx__btn { position: absolute; background: none; border: 1.5px solid rgba(249, 245, 243, .5); color: inherit; border-radius: 999px; width: 44px; height: 44px; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.lbx__btn:hover, .lbx__btn:focus-visible { border-color: #F9F5F3; background: rgba(249, 245, 243, .1); }
.lbx__close { top: 12px; right: 16px; }
.lbx__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lbx__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lbx__bar { position: absolute; left: 72px; right: 72px; bottom: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.lbx__cap { margin: 0; }
.lbx__count { color: rgba(249, 245, 243, .7); }
@media (max-width: 700px) {
	.lbx__stage { inset: 56px 8px 64px; }
	.lbx__prev, .lbx__next { top: auto; bottom: 10px; transform: none; }
	.lbx__bar { left: 72px; right: 72px; bottom: 22px; justify-content: center; }
	.lbx__cap { display: none; }
}
