/* ==========================================================================
   Mythique — grille 60/40, tuiles plein cadre, menu transparent
   ========================================================================== */
:root {
	--bg: #06060a;
	--ink: #fffbd8;           /* crème du site (texte, traits, icônes) */
	--mute: #8f8a83;
	--glow: #e4c39d;
	--pad: 1.1vw;
	--row-h: 80vh;
	--full-h: 100vh;
	--gap: clamp(1.25rem, 2.6vw, 2.75rem);
	--font: "Helvetica Neue", "Segoe UI", Arial, system-ui, sans-serif;
	--g-display: var(--font);      /* police des titres du site (changée par Typographie Mythique) */
	--g-weight: 400;
}
@supports (height: 1svh) { :root { --row-h: 80svh; --full-h: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--text-font, var(--font));
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--glow); color: #06060a; padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Menu : transparent, par-dessus tout (blend « difference ») ---------- */
.topbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: grid;
	grid-template-columns: 60fr 40fr;
	padding: .9rem var(--pad);
	color: #fffbd8;
	mix-blend-mode: difference;
	font-size: calc(clamp(.7rem, .95vw, .9rem) * var(--text-scale, 1) * var(--menu-scale, 1));
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.2;
	pointer-events: none;
}
.topbar a, .topbar button { pointer-events: auto; }
.topbar a:hover { opacity: .65; }

.topbar__left {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 1.5rem;
	padding-right: 6vw;
}
.topbar__right { display: flex; justify-content: flex-end; }

.nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .25rem 1.75rem;
}
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Accueil : gauche fixe, droite qui défile ---------- */
.left {
	position: fixed; top: 0; left: 0;
	width: 60vw; height: var(--full-h);
	z-index: 3;                       /* le texte d'intro passe au-dessus des photos */
	display: flex; flex-direction: column;
}

.right { position: relative; z-index: 1; width: 40vw; margin-left: 60vw; }

/* ---------- Cellule héro : étoiles + logo ---------- */
.hero {
	position: relative;
	flex: 0 0 var(--row-h);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	background: var(--bg);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Bouton « Projets, » : global, placé comme « WORKS, » sur le site de référence */
.topbar__menu {
	all: unset;
	position: absolute; top: .6vw; left: 21vw;
	pointer-events: auto;
	cursor: pointer;
	font-family: var(--g-display);
	font-weight: var(--g-weight);
	font-size: calc(var(--menu-fs, clamp(1.6rem, 3vw, 3.6rem)) * var(--pmenu-scale, 1));
	line-height: 1.1;
	text-transform: uppercase;
	color: rgba(255, 251, 216, .85);
	transition: color .2s, opacity .2s;
}
.topbar__menu:hover { color: #fffbd8; }
.topbar__menu:focus-visible { outline: 2px solid #fffbd8; outline-offset: 6px; }
.menu-open .topbar__menu { opacity: 0; }
.menu-open { overflow: hidden; }

/* ---------- Menu plein écran : noms des projets + aperçu flouté ---------- */
:root {
	--menu-wash: rgba(6, 6, 10, .5);   /* voile sur la photo floutée (mettre rgba(255, 251, 216, .55) pour un fond clair) */
	--menu-ink: #fffbd8;                   /* couleur du texte du menu */
	--mo-fs: calc(clamp(1.4rem, min(3vw, 5.4vh), 3.6rem) * var(--title-scale, 1));
}

.mo {
	position: fixed; inset: 0; z-index: 90;
	background: var(--bg);
	color: var(--menu-ink);
	visibility: hidden; opacity: 0;
	transition: opacity .5s ease, visibility 0s .5s;
}
.mo.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }

.mo__bg { position: absolute; inset: 0; overflow: hidden; }
.mo__img {
	position: absolute; left: -20%; top: -20%;
	width: 140%; height: 140%;
	max-width: none;
	object-fit: cover;
	opacity: 0;
	filter: blur(64px);
	transform: scale(1.14);
	transition: opacity .9s ease, filter 1.2s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1);
	will-change: opacity, filter, transform;
}
.mo__img.is-active { opacity: 1; filter: blur(36px); transform: scale(1.05); }
.mo__wash { position: absolute; inset: 0; background: var(--menu-wash); }

.mo__label {
	position: absolute; left: var(--pad); top: 41%;
	margin: 0;
	font-size: calc(clamp(.7rem, .95vw, .9rem) * var(--text-scale, 1));
	letter-spacing: .02em;
	text-transform: uppercase;
}

.mo__list {
	position: absolute; left: 21vw; top: .6vw;
	margin: 0; padding: 0 3em 2rem 0;
	list-style: none;
	max-height: calc(100vh - 1.2vw);
	overflow-y: auto;
	scrollbar-width: none;
	font-family: var(--g-display);
	font-weight: var(--g-weight);
	font-size: calc(var(--mo-fs) * var(--plist-scale, 1));
	line-height: 1.04;
	text-transform: uppercase;
}
.mo__list::-webkit-scrollbar { display: none; }

.mo__link { all: unset; display: block; cursor: pointer; color: inherit; font: inherit; line-height: inherit; text-transform: inherit; }
.mo__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Survol fluide : la ligne glisse vers la droite, avec un retard élastique */
.mo__row { transition: transform .85s cubic-bezier(.16, 1, .3, 1); }
.mo__row.is-hover { transform: translateX(1.45em); }

/* Apparition en cascade */
.mo__row { opacity: 0; translate: 0 .4em; transition: transform .85s cubic-bezier(.16, 1, .3, 1), opacity .6s ease, translate .6s ease; }
.mo.is-open .mo__row { opacity: 1; translate: 0 0; transition-delay: 0s, calc(var(--i, 0) * 35ms + 120ms), calc(var(--i, 0) * 35ms + 120ms); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.hero__logo {
	position: relative;
	isolation: isolate;
	width: min(55.5%, 390px);
	margin-top: -4%;
	transform: translate(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 5px));
	will-change: transform;
}

/* Halo collé au logo (il ne s'étend pas dans le reste du panneau) */
.hero__logo::before {
	content: "";
	position: absolute; z-index: -1;
	inset: -45% -14%;
	background: radial-gradient(closest-side, rgba(228, 195, 157, .26), rgba(228, 195, 157, .08) 62%, transparent 100%);
	pointer-events: none;
}

/* Glow #e4c39d serré autour des lettres, qui penche très légèrement vers le curseur */
.hero__logo img {
	width: 100%;
	filter:
		drop-shadow(calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px) 2px  rgba(228, 195, 157, .95))
		drop-shadow(calc(var(--mx, 0) * 2px) calc(var(--my, 0) * 2px) 8px  rgba(228, 195, 157, .7))
		drop-shadow(calc(var(--mx, 0) * 4px) calc(var(--my, 0) * 4px) 20px rgba(228, 195, 157, .4));
	animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .93; } 50% { opacity: 1; } }

/* ---------- Texte d'introduction : déborde sur la colonne de droite ---------- */
.intro { position: relative; flex: 1; padding: .4em var(--pad) 0; pointer-events: none; }
.intro__text {
	margin: 0;
	max-width: 78vw;
	font-family: var(--g-display);
	font-size: calc(clamp(1.4rem, 2.75vw, 4rem) * var(--title-scale, 1));
	font-weight: var(--g-weight);
	line-height: 1.03;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: #fffbd8;
	mix-blend-mode: difference;
}

/* ---------- Tuile de projet ---------- */
.tile {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #06060a;          /* hauteur = celle de la photo, qui apparaît entière */
}
.tile--empty { aspect-ratio: 4 / 5; }
.tile__link { position: relative; display: block; }
.tile--empty .tile__link { position: absolute; inset: 0; }
.tile__img { display: block; width: 100%; height: auto; }

.tile__title {
	position: absolute; inset: 0; z-index: 2;
	display: grid; place-items: center;
	padding: 1rem;
	text-align: center;
	font-family: var(--g-display);
	font-size: calc(clamp(1.3rem, 2.8vw, 3.2rem) * var(--title-scale, 1));
	font-weight: var(--g-weight);
	line-height: 1.05;
	text-transform: uppercase;
	color: #fffbd8;
	mix-blend-mode: difference;
	pointer-events: none;
}

/* Numéro + étoiles-ancres en bas de chaque photo (cliquer une étoile amène en face de la photo) */
.tile__nav {
	position: absolute; left: 0; right: 0; bottom: 4%; z-index: 3;
	display: flex; flex-direction: column; align-items: center;
	gap: .45em;
	font-size: clamp(.65rem, 1vw, 1rem);
	color: #fffbd8;
	mix-blend-mode: difference;
	pointer-events: none;
}
.tile__no { font-family: var(--display); font-weight: var(--title-weight); font-size: 1.35em; line-height: 1; }
.tile__no-label { font-size: .55em; vertical-align: .22em; }
.tile__stars { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: .55em; }
.tile__stars a {
	display: block; width: 1.4em; height: 1.4em;
	color: inherit;
	pointer-events: auto;
	transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.tile__stars a:hover { transform: scale(1.3) rotate(20deg); }

/* Projet « à découvrir bientôt » : photo floutée + mention */
.tile--soon .tile__img { filter: blur(28px); transform: scale(1.3); }
.tile__soon {
	position: absolute; left: 0; right: 0; bottom: 8%; z-index: 2;
	text-align: center;
	font-size: clamp(.7rem, .95vw, .9rem);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fffbd8;
	pointer-events: none;
}

/* Grain léger : apparaît progressivement sur la photo survolée */
.tile::after {
	content: "";
	position: absolute; inset: -50%;
	z-index: 1;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: 0;
	transition: opacity .5s ease;           /* disparition */
	pointer-events: none;
	will-change: transform, opacity;
}
.tile:hover::after,
.tile:focus-within::after {
	opacity: .42;
	transition: opacity .8s cubic-bezier(.3, 0, .3, 1);   /* arrivée rapide : 0,8 s */
	animation: grain .9s steps(1) infinite; /* le grain « vit » */
}
@keyframes grain {
	0%   { transform: translate(0, 0); }
	16%  { transform: translate(-6%, 4%); }
	33%  { transform: translate(5%, -7%); }
	50%  { transform: translate(-4%, -5%); }
	66%  { transform: translate(7%, 3%); }
	83%  { transform: translate(-3%, 7%); }
}

.empty { display: grid; align-content: center; justify-items: center; text-align: center; color: var(--mute); }

/* ---------- Pages intérieures (projet, page, 404) ---------- */
.inner { padding: calc(var(--gap) * 3) var(--pad) var(--gap); padding-left: max(var(--pad), 1.1vw); }
.project { max-width: 62rem; }

.back { display: inline-block; color: var(--mute); font-size: .9rem; margin-bottom: 2rem; transition: color .2s; }
.back:hover { color: var(--ink); }

.project__title {
	margin: 0;
	font-family: var(--g-display);
	font-size: calc(clamp(2rem, 4.4vw, 3.6rem) * var(--title-scale, 1));
	line-height: 1.05;
	font-weight: var(--g-weight);
	letter-spacing: -.02em;
	text-transform: uppercase;
}
.project__meta { margin: .6rem 0 0; color: var(--mute); }
.project__content { margin-top: clamp(1.5rem, 4vw, 3rem); }

.entry > * + * { margin-top: var(--gap); }
.entry p, .entry ul, .entry ol { max-width: 38rem; color: #d9d3ca; }
.entry a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
.entry h2, .entry h3 { line-height: 1.15; letter-spacing: -.01em; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { color: var(--mute); font-size: .85rem; margin-top: .5rem; }
.entry .wp-block-gallery { gap: var(--gap); }
.entry .wp-block-gallery .wp-block-image { margin: 0; }
.entry iframe, .entry video { width: 100%; }

.project__nav {
	display: flex; justify-content: space-between; gap: 1.5rem;
	margin-top: clamp(3rem, 7vw, 6rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 251, 216, .18);
	color: var(--mute); font-size: .9rem;
}
.project__nav span { display: block; color: var(--ink); font-size: 1.15rem; margin-top: .2rem; }
.project__next { margin-left: auto; text-align: right; }

.btn { display: inline-block; border: 1px solid var(--glow); color: var(--glow); padding: .7rem 1.3rem; transition: background .2s, color .2s; }
.btn:hover { background: var(--glow); color: #06060a; }

/* ---------- Page d'un projet « à découvrir bientôt » ---------- */
.soon {
	position: relative;
	min-height: var(--full-h);
	display: grid; place-items: center;
	overflow: hidden;
	padding: 6rem var(--pad) 3rem;
}
.soon__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.soon__img {
	position: absolute; left: -20%; top: -20%;
	width: 140%; height: 140%; max-width: none;
	object-fit: cover;
	filter: blur(48px);
}
.soon__wash { position: absolute; inset: 0; background: rgba(6, 6, 10, .55); }

/* Faux contenu flouté, pour que « tout » ait l'air flou sans rien révéler */
.soon__ghost {
	position: absolute; z-index: 1;
	left: 50%; top: 50%;
	width: min(62rem, 86vw);
	transform: translate(-50%, -50%);
	display: grid; gap: 1.2rem;
	filter: blur(14px);
	opacity: .55;
	pointer-events: none;
	user-select: none;
}
.soon__ghost-title { font-family: var(--g-display); font-size: clamp(2.2rem, 6vw, 5rem); text-transform: uppercase; line-height: 1; }
.soon__bar { display: block; height: 1.4rem; background: #fffbd8; opacity: .55; }
.soon__bar--short { width: 55%; }

.soon__center { position: relative; z-index: 2; text-align: center; display: grid; gap: 2rem; justify-items: center; }
.soon__title {
	margin: 0;
	font-family: var(--g-display);
	font-size: calc(clamp(1.15rem, 2.4vw, 2.2rem) * var(--title-scale, 1));
	font-weight: var(--g-weight);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -.01em;
}

/* ---------- Transition entre pages : une étoile s'ouvre et se referme, voile de grain à 50 % ---------- */
.curtain {
	position: fixed; inset: 0; z-index: 200;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}
.curtain.is-on { visibility: visible; pointer-events: all; }
.curtain__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curtain__rim { fill: var(--cream); }
.curtain__fill { fill: var(--bg); }
.curtain__spark { fill: var(--cream); opacity: 0; }
.curtain__grain {
	position: absolute; inset: -50%;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: 0;
	transition: opacity .45s ease;
	animation: grain .9s steps(1) infinite;
	pointer-events: none;
}
.curtain.is-grain .curtain__grain { opacity: .5; }

/* Avant que le script prenne la main sur la nouvelle page : écran sombre (évite un flash) */
.is-entering .curtain { visibility: visible; pointer-events: all; background: var(--bg); }
.is-entering .curtain .curtain__grain { opacity: .5; transition: none; }
.curtain.is-star { background: transparent; }

/* « Réduire les animations » : simple fondu sombre, sans étoile */
.curtain.is-fade { visibility: visible; background: var(--bg); opacity: 0; transition: opacity .45s ease; }
.curtain.is-fade.is-on { opacity: 1; }

/* ---------- Mobile : une seule colonne ---------- */
@media (max-width: 799px) {
	:root { --pad: 1rem; --row-h: 72svh; }

	.topbar { display: flex; justify-content: space-between; font-size: .75rem; }
	.topbar__left { padding-right: 0; gap: 1.25rem; justify-content: flex-start; }
	.topbar__right { margin-left: 1rem; }

	.left { position: static; width: auto; height: auto; }
	.right { width: auto; margin-left: 0; }
	.topbar__menu { position: static; font-size: calc(1.1rem * var(--pmenu-scale, 1)); order: 2; margin-left: auto; }
	.topbar__right { order: 3; }
	.mo__list { left: var(--pad); top: 1rem; font-size: calc(clamp(1.5rem, 8vw, 2.4rem) * var(--plist-scale, 1)); }
	.mo__label { display: none; }
	.hero { flex: none; height: var(--row-h); min-height: 340px; }

	.intro { flex: none; padding: 1.25rem var(--pad) 1.5rem; }
	.intro__text { max-width: 100%; font-size: clamp(1.5rem, 7vw, 2.4rem); }
	.empty { padding: 3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__logo img { animation: none; }
	.curtain__grain { animation: none; }
	.mo__row, .mo__img { transition: none; }
	.tile:hover::after, .tile:focus-within::after { animation: none; }
}

/* ==========================================================================
   Page projet
   ========================================================================== */
:root {
	--menu-fs: calc(clamp(1.6rem, 3vw, 3.6rem) * var(--title-scale));
	--cream: #fffbd8;
	--display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--title-weight: 900;
	--title-scale: 1;
	--text-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--text-scale: 1;
	--pj-h: max(var(--full-h), 540px);
	--paper: #fafafa;             /* fond blanc derrière la photo des pages portrait */
	--ink-dark: #06060a;
	--title-fs: calc(clamp(1.8rem, 4.2vw, 5rem) * var(--title-scale));
}

@media (min-width: 800px) {
	.single-projet:not(.is-soon) .topbar { grid-template-columns: 1fr 1fr; }
	.single-projet:not(.is-soon) .topbar__left { padding-right: 2vw; }
}

.pj { position: relative; background: var(--paper); }

/* ---------- Titres encadrés (une boîte par ligne, bords partagés) ---------- */
.frame {
	margin: 0;
	font-family: var(--display);
	font-weight: var(--title-weight);
	font-size: var(--title-fs);
	line-height: .74;
	letter-spacing: -.005em;
	text-transform: uppercase;
	text-align: right;
	-webkit-text-stroke: .014em currentColor;
}
/* Sans JavaScript : cadre en ligne (une boîte par ligne de texte) */
.frame:not(.is-lined) .frame__in {
	display: inline;
	padding: .2em .15em .17em;
	border: 1px solid currentColor;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.06;
}
/* Avec JavaScript : chaque ligne devient une boîte, collée à la précédente */
.frame__line {
	display: block;
	width: fit-content;
	margin-left: auto;
	padding: .17em .15em .16em;
	border: 1px solid currentColor;
	white-space: nowrap;
}
.frame__line + .frame__line { margin-top: -1px; }
.frame--sub {
	font-size: calc(var(--title-fs) * .46);
	font-weight: calc(var(--title-weight) - 200);
	-webkit-text-stroke: 0;
	letter-spacing: 0;
	margin-top: -1px;
}
.frame--cream { color: var(--cream); }

/* ---------- Partie 1 : texte fixe (il passe sous la suite) + grande image ---------- */
.pj__fixed {
	position: sticky; top: 0; z-index: 1;
	width: 50%;
	height: var(--pj-h);
	margin-bottom: calc(var(--pj-h) * -1);
	display: flex;
	padding: 0 4.5vw 5vh 10vw;
	color: var(--ink-dark);
}
.pj__text {
	margin-top: auto;
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
	text-align: right;
	padding-top: clamp(5.5rem, 16vh, 10rem);     /* marge au-dessus du numéro */
}
.pj__text::-webkit-scrollbar { display: none; }

.pj__no {
	margin: 0 calc(var(--title-fs) * .23) calc(var(--title-fs) * .16) 0;
	font-family: var(--display);
	font-weight: var(--title-weight);
	font-size: calc(var(--title-fs) * .34);
	line-height: 1;
}
.pj__no-label { font-size: .55em; vertical-align: .22em; }

.pj__stars {
	list-style: none;
	margin: 0 calc(var(--title-fs) * .23) calc(var(--title-fs) * .09) 0;
	padding: 0;
	display: flex; flex-wrap: wrap; justify-content: flex-end;
	gap: calc(var(--title-fs) * .06) calc(var(--title-fs) * .08);
}
.pj__stars a {
	display: block;
	width: calc(var(--title-fs) * .34);
	height: calc(var(--title-fs) * .34);
	color: inherit;
	transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.pj__stars a:hover { transform: scale(1.22) rotate(20deg); }
.star { display: block; width: 100%; height: 100%; overflow: visible; }
.star--on path { stroke-width: 1.5px; }

.pj__desc {
	margin: calc(var(--title-fs) * .36) 0 0;
	font-family: var(--text-font);
	font-weight: 700;
	font-size: calc(clamp(.9rem, 1.15vw, 1.2rem) * var(--text-scale));
	line-height: 1.38;
	text-align: right;          /* plus de justification : jamais de grands trous entre les mots */
	hyphens: manual;
}

.pj__p1 {
	position: relative;
	margin-left: 50%;
	height: var(--pj-h);                 /* toute la hauteur de l'écran */
	display: flex; justify-content: flex-end;   /* photo collée au bord droit */
	background: var(--paper);
}
/* Toute la hauteur, collée à droite, jamais recadrée :
   la largeur suit le format de la photo (elle ne dépasse pas la moitié de l'écran). */
.pj__img {
	display: block;
	height: 100%; width: auto; max-width: 100%;
	object-fit: contain; object-position: right center;
}

/* ---------- Transition : mini carrousel pleine largeur (fixe) ---------- */
.pj__strip {
	--n: 4;
	--bw: 0px;                                    /* pas de contour autour des vignettes */
	position: relative; z-index: 2;
	overflow: hidden;
	background: transparent;
	padding: var(--bw) calc(var(--bw) / 2);
}
.strip__track { display: flex; width: 100%; }
.strip__item {
	flex: 0 0 calc(100% / var(--n));
	aspect-ratio: 4 / 3;
	padding: 0 calc(var(--bw) / 2);
	box-sizing: border-box;
}
.strip__item { background: transparent; }
.strip__item img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Ligne justifiée (activée par le script) : chaque vignette garde son format, la ligne remplit la largeur */
.pj__strip.is-fit .strip__item {
	flex: 0 0 auto;
	aspect-ratio: auto;
	height: var(--sh);
	width: calc(var(--sh) * var(--ar, 1.3333) + var(--bw));   /* + marge noire : l'image garde exactement son format */
}

/* 4 vignettes sur téléphone, puis 6, 8 et 10 quand l'écran s'élargit */
.strip__item:nth-child(n+5) { display: none; }
@media (min-width: 700px)  { .pj__strip { --n: 6; }  .strip__item:nth-child(n+5) { display: block; } .strip__item:nth-child(n+7)  { display: none; } }
@media (min-width: 1000px) { .pj__strip { --n: 8; }  .strip__item:nth-child(n+7) { display: block; } .strip__item:nth-child(n+9)  { display: none; } }
@media (min-width: 1400px) { .pj__strip { --n: 10; } .strip__item:nth-child(n+9) { display: block; } }

/* ---------- Partie vidéo (répétable) ---------- */
.pj__video {
	position: relative; z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: var(--pj-h);
	background: #06060a;
	color: var(--cream);
	isolation: isolate;
}
.pj__video::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: .28;
	pointer-events: none;
}

.vp__text {
	position: sticky; top: 0;
	align-self: start;
	height: var(--pj-h);
	display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end;
	padding: 0 3vw 5vh 12vw;
	text-align: right;
}
.vp__p {
	margin: calc(var(--title-fs) * .36) 0 0;
	max-width: 34em;
	font-family: var(--text-font);
	font-size: calc(clamp(.85rem, 1.05vw, 1.1rem) * var(--text-scale));
	line-height: 1.42;
	text-align: right;
}
.vp__link {
	margin-top: calc(var(--title-fs) * .3);
	font-family: var(--text-font);
	font-weight: 700;
	font-size: calc(clamp(1rem, 1.5vw, 1.5rem) * var(--text-scale));
	color: var(--cream);
	border-bottom: 1px solid transparent;
	transition: border-color .25s;
}
.vp__link:hover { border-bottom-color: currentColor; }

.vp__media {
	position: relative;
	min-height: var(--pj-h);
	display: grid; place-items: center;
	background: #06060a;
}

/* Lecteur YouTube : miniature + bouton lecture, le lecteur se charge au clic */
.yt { position: relative; width: 100%; overflow: hidden; background: #06060a; }
.yt--full { height: var(--pj-h); }
.yt--16-9 { aspect-ratio: 16 / 9; }
.yt__thumb { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; scale: 1; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.yt:hover .yt__thumb { transform: scale(1.03); }
/* Miniature YouTube automatique : léger zoom, et plus fort quand c'est la version 4:3 (bandes noires haut/bas) */
.yt__thumb--auto { scale: 1.12; }
.yt__thumb--auto.is-hq { scale: 1.4; }
/* Boîte 16:9 : la miniature y est déjà à la bonne forme (le « cover » coupe les bandes noires de la version 4:3), pas de zoom */
.yt--16-9 .yt__thumb--auto, .yt--16-9 .yt__thumb--auto.is-hq { scale: 1; }

.yt__play { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.yt__play:focus-visible { outline: 2px solid #fffbd8; outline-offset: -6px; }
.yt__icon {
	--p: clamp(64px, 6vw, 96px);
	position: relative;
	width: var(--p); height: var(--p);
	border: 1.5px solid #fffbd8;
	border-radius: 50%;
	background: rgba(6, 6, 10, .28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .3s;
}
.yt__icon::after {
	content: "";
	position: absolute; left: 53%; top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-color: transparent transparent transparent #fffbd8;
	border-width: calc(var(--p) * .17) 0 calc(var(--p) * .17) calc(var(--p) * .28);
}
.yt__play:hover .yt__icon { transform: scale(1.1); background: rgba(255, 251, 216, .18); }

.yt.is-playing .yt__thumb, .yt.is-playing .yt__play { display: none; }
.yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Page projet : mobile ---------- */
@media (max-width: 799px) {

	.pj { display: flex; flex-direction: column; }
	.pj__p1 { order: 1; margin-left: 0; height: auto; }
	.pj__img { height: auto; max-height: calc(var(--full-h) - 4.5rem); }
	.pj__fixed { order: 2; position: static; width: auto; height: auto; margin: 0; padding: 2.2rem var(--pad) 2.4rem; }
	.pj__text { margin-top: 0; max-height: none; overflow: visible; padding-top: 0; }
	.pj__strip { order: 4; }
	.hs { order: 5; }
	.pj__video { grid-template-columns: 1fr; min-height: 0; }
	.vp__text { position: static; height: auto; padding: 2.4rem var(--pad); }
	.vp__media { min-height: 0; }
	.yt--full { height: 58svh; min-height: 320px; }
	:root { --title-fs: calc(clamp(1.8rem, 9vw, 3rem) * var(--title-scale)); }
}



/* ==========================================================================
   v3.3 : étoiles en rangées, page « bientôt », partie texte, titres à gauche
   ========================================================================== */
.pj__stars + .pj__stars { margin-top: calc(var(--title-fs) * -.0 + .5rem); }

.soon__stars {
	list-style: none; margin: 0; padding: 0;
	display: flex; justify-content: center; flex-wrap: nowrap;
	gap: .7rem;
	color: #fffbd8;
}
.soon__stars a { display: block; width: clamp(18px, 2vw, 32px); height: clamp(18px, 2vw, 32px); color: inherit; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.soon__stars a:hover { transform: scale(1.2) rotate(20deg); }

/* Titre encadré aligné à gauche (partie texte) */
.frame--left { text-align: left; }
.frame--left .frame__line { margin-left: 0; margin-right: auto; }

/* Partie texte : 2 ou 4 colonnes, bloc centré, fond noir + grain comme les parties vidéo */
.pj__text-part {
	position: relative; z-index: 2;
	isolation: isolate;
	background: #06060a;
	color: var(--cream);
	padding: clamp(3.5rem, 12vh, 9rem) 4.5vw;
}
.pj__text-part::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: .28;
	pointer-events: none;
}
.tp { width: min(100%, 1180px); margin: 0 auto; }
.tp .frame { margin-bottom: calc(var(--title-fs) * .4); color: var(--cream); }
.tp__head { display: flex; align-items: flex-end; gap: clamp(.8rem, 2vw, 1.8rem); }
.tp__head .frame { flex: 1 1 auto; min-width: 0; }
.tp__no { flex: 0 0 auto; margin: .15em 0 0; font-family: var(--display); font-weight: var(--title-weight); font-size: calc(var(--title-fs) * .34); line-height: 1; color: var(--cream); white-space: nowrap; }
.tp__no-label { font-size: .55em; vertical-align: .22em; }
.tp__cols {
	font-family: var(--text-font);
	font-weight: 500;
	font-size: calc(clamp(.9rem, 1.1vw, 1.12rem) * var(--text-scale));
	line-height: 1.42;
	column-gap: clamp(1.5rem, 3vw, 3.5rem);
	column-rule: 1px solid rgba(255, 251, 216, .18);
	text-align: left;
	hyphens: manual;
}
.tp__cols--2 { column-count: 2; }
.tp__cols--4 { column-count: 4; }
@media (max-width: 1000px) { .tp__cols--4 { column-count: 2; } }
@media (max-width: 700px)  { .tp__cols--2, .tp__cols--4 { column-count: 1; } }
@media (max-width: 799px)  { .pj__text-part { order: 3; } }


/* ---------- Variations de typographie dans les textes ---------- */
.rt-t, .rt-font { font-weight: inherit; }
.rt-t { font-family: var(--display); font-weight: var(--title-weight); letter-spacing: -.005em; }
.rt-l { font-size: 1.55em; line-height: 1.1; }
strong { font-weight: 800; }
button, input, select, textarea { font-family: inherit; }


/* ==========================================================================
   v3.6 : responsive (tablette, paysage bas, tactile, encoche, très grands écrans)
   ========================================================================== */
body { overflow-x: clip; }

/* Encoche et barres système (iPhone, Android) */
.topbar {
	padding-top: max(.9rem, env(safe-area-inset-top));
	padding-left: max(var(--pad), env(safe-area-inset-left));
	padding-right: max(var(--pad), env(safe-area-inset-right));
}
@supports (height: 1dvh) { .mo__list { max-height: calc(100dvh - 1.2vw); } }

/* Tablette (800 – 1100 px) */
@media (min-width: 800px) and (max-width: 1100px) {
	.topbar__menu { left: 19vw; }
	.mo__list { left: 19vw; }
	.hero__logo { width: min(64%, 420px); }
	.intro__text { max-width: 92vw; }
	.pj__fixed { padding-left: 6vw; }
	.pj__desc { font-size: .9rem; }
}

/* Écran large mais peu haut (portable en paysage, téléphone couché) */
@media (min-width: 800px) and (max-height: 560px) {
	.hero__logo { width: min(46%, 300px); }
	.intro__text { font-size: calc(clamp(1.1rem, min(2.75vw, 6.5vh), 4rem) * var(--title-scale, 1)); }
	.tile__nav { bottom: 2%; }
	.pj__text { padding-top: 4rem; }
}

/* Écrans tactiles : zones de toucher plus grandes */
@media (pointer: coarse) {
	.tile__stars { gap: .3em; }
	.tile__stars a { width: 2.1em; height: 2.1em; }
	.tile__nav { font-size: clamp(.75rem, 1.6vw, 1rem); }
	.pj__stars a, .soon__stars a { min-width: 28px; min-height: 28px; }
	.nav__list a { padding: .6rem 0; }
	.topbar__menu { min-height: 44px; }
	.yt__play { min-height: 44px; }
	.mo__link { padding: .15em 0; }
}

/* Téléphone */
@media (max-width: 799px) {
	.topbar { flex-wrap: wrap; gap: .25rem 1rem; }
	.topbar__left { flex-wrap: wrap; }
	.soon__stars { flex-wrap: wrap; }
	.tile__nav { bottom: 3%; }
	.tp { width: 100%; }
}
@media (max-width: 420px) {
	.nav__list { gap: .25rem 1rem; }
	.pj__text-part { padding-left: var(--pad); padding-right: var(--pad); }
}

/* Très grands écrans */
@media (min-width: 2000px) {
	:root { --pad: 1.6rem; }
	.tp { max-width: 1400px; }
}

@media print {
	.topbar, .curtain, .mo, .tile__nav { display: none !important; }
}


/* ==========================================================================
   Défilement horizontal des parties vidéo (ordinateur / tablette large)
   Le défilement vertical de la page fait avancer les parties de gauche à droite.
   ========================================================================== */
.hs { position: relative; z-index: 2; background: #06060a; }

.hs.is-h .hs__sticky { position: sticky; top: 0; height: var(--pj-h); overflow: hidden; }
.hs.is-h .hs__track { display: flex; height: 100%; width: calc(var(--n) * 100%); will-change: transform; }
.hs.is-h .pj__video { flex: 0 0 calc(100% / var(--n)); height: 100%; min-height: 0; }
.hs.is-h .vp__text { position: static; height: 100%; }
.hs.is-h .vp__media { min-height: 0; height: 100%; }
.hs.is-h .yt--full { height: 100%; }

/* ==========================================================================
   Pied de page (fond noir + grain)
   ========================================================================== */
.site-footer {
	position: relative; z-index: 2;
	isolation: isolate;
	background: #06060a;
	color: var(--cream);
	padding: clamp(3rem, 9vh, 6rem) var(--pad) 1.4rem;
	padding-left: max(var(--pad), env(safe-area-inset-left));
	padding-right: max(var(--pad), env(safe-area-inset-right));
	padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
}
.site-footer::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: .28;
	pointer-events: none;
}
.sf {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 2rem;
}
.sf__logo { display: block; width: clamp(130px, 14vw, 210px); }
.sf__logo img {
	width: 100%;
	filter: drop-shadow(0 0 2px rgba(228, 195, 157, .9)) drop-shadow(0 0 14px rgba(228, 195, 157, .45));
}
.sf__nav .nav__list { justify-content: center; gap: .4rem 2rem; }
.sf__nav a, .sf__links a {
	font-size: calc(clamp(.8rem, .95vw, .95rem) * var(--text-scale, 1) * var(--menu-scale, 1));
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--cream);
	transition: opacity .2s;
}
.sf__nav a:hover, .sf__links a:hover { opacity: .6; }
.sf__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.6rem; }
.sf__copy {
	margin: clamp(2rem, 6vh, 4rem) 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 251, 216, .18);
	font-size: calc(.78rem * var(--text-scale, 1));
	letter-spacing: .04em;
	opacity: .7;
}

@media (max-width: 799px) {
	.sf { grid-template-columns: 1fr; justify-items: start; gap: 1.6rem; }
	.sf__nav .nav__list { justify-content: flex-start; }
	.sf__links { justify-content: flex-start; }
}


/* ---------- Menu à points : retour rapide à l'épisode voulu (parties vidéo) ---------- */
.hs__dots { display: none; }
.hs.is-h .hs__dots {
	display: flex;
	position: absolute; left: 50%; bottom: max(2.2vh, 1rem); z-index: 6;
	transform: translateX(-50%);
	gap: .95rem;
	padding: .6rem 1rem;
	background: rgba(6, 6, 10, .58);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 251, 216, .28);
	border-radius: 999px;
}
.hs__dot {
	all: unset;
	box-sizing: border-box;
	position: relative;
	width: 12px; height: 12px;
	border: 1.5px solid var(--cream);
	border-radius: 50%;
	cursor: pointer;
	transition: background .3s, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.hs__dot::before { content: ""; position: absolute; inset: -10px; }      /* zone de clic plus large */
.hs__dot:hover { transform: scale(1.3); }
.hs__dot.is-active { background: var(--cream); }
.hs__dot:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.hs__dot::after {
	content: attr(data-label);
	position: absolute; bottom: calc(100% + .9rem); left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: .3rem .65rem;
	background: rgba(6, 6, 10, .85);
	color: var(--cream);
	font-family: var(--text-font);
	font-size: .72rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.hs__dot:hover::after, .hs__dot:focus-visible::after { opacity: 1; }
@media (pointer: coarse) { .hs__dot { width: 16px; height: 16px; } .hs__dots { gap: 1.2rem; } }


/* ==========================================================================
   v3.8 : version mobile — menu burger + photo centrée
   ========================================================================== */
.burger, .bm { display: none; }

@media (max-width: 799px) {
	/* La barre ne garde que le nom du site et le burger */
	.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem; }
	.topbar__menu, .topbar__left .nav, .topbar__right { display: none; }
	.topbar__left { flex: 1; min-width: 0; padding-right: 0; }

	.burger {
		display: block;
		position: relative;
		flex: 0 0 auto;
		width: 44px; height: 44px;
		margin-right: -10px;
		padding: 0; border: 0; border-radius: 0;
		background: none;
		-webkit-appearance: none; appearance: none;
		color: #fffbd8;
		cursor: pointer;
		pointer-events: auto;
		-webkit-tap-highlight-color: transparent;
	}
	.burger span {
		position: absolute; left: 10px; right: 10px;
		height: 1.5px;
		background: #fffbd8;
		transition: transform .45s cubic-bezier(.16, 1, .3, 1), top .3s ease;
	}
	.burger span:nth-child(1) { top: 16px; }
	.burger span:nth-child(2) { top: 27px; }
	.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
	.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
	.burger:focus-visible { outline: 2px solid #fffbd8; outline-offset: 2px; }

	/* Panneau plein écran, sous la barre (qui garde le nom et la croix) */
	.bm {
		display: flex; flex-direction: column;
		position: fixed; inset: 0; z-index: 45;
		isolation: isolate;
		background: #06060a;
		color: var(--cream);
		padding: calc(max(.9rem, env(safe-area-inset-top)) + 4.2rem) var(--pad) 0;
		visibility: hidden; opacity: 0;
		transition: opacity .4s ease, visibility 0s .4s;
		overflow-y: auto;
	}
	.bm::before {
		content: "";
		position: fixed; inset: 0; z-index: -1;
		background: url("../img/grain.png") repeat;
		background-size: 256px 256px;
		opacity: .28;
		pointer-events: none;
	}
	.bm.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }

	.bm__list { list-style: none; margin: 0; padding: 0; }
	.bm__list > li {
		opacity: 0; transform: translateY(16px);
		transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
	}
	.bm.is-open .bm__list > li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms + 140ms); }
	.bm__list > li:nth-child(1) { --i: 0; }
	.bm__list > li:nth-child(2) { --i: 1; }
	.bm__list > li:nth-child(3) { --i: 2; }
	.bm__list > li:nth-child(4) { --i: 3; }
	.bm__list > li:nth-child(5) { --i: 4; }
	.bm__list > li:nth-child(6) { --i: 5; }
	.bm__list > li:nth-child(7) { --i: 6; }
	.bm__list > li:nth-child(8) { --i: 7; }

	.bm__list > li > a, .bm__link {
		all: unset;
		display: block;
		cursor: pointer;
		padding: .08em 0;
		font-family: var(--g-display);
		font-weight: var(--g-weight);
		font-size: calc(clamp(1.3rem, 6.4vw, 1.9rem) * var(--title-scale, 1) * var(--menu-scale, 1));   /* v3.39 : un peu plus grand */
		line-height: 1.08;
		text-transform: uppercase;
		color: var(--cream);
		-webkit-tap-highlight-color: transparent;
	}
	.bm__list > li > a:focus-visible, .bm__link:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

	.bm__foot {
		margin-top: auto;
		display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
		padding: 2rem 0 max(1.5rem, env(safe-area-inset-bottom));
		font-size: calc(.95rem * var(--text-scale, 1));
		letter-spacing: .04em;
		text-transform: uppercase;
	}
	.bm__foot a { color: var(--cream); }

	.bm-open { overflow: hidden; }

	/* Photo du projet : au centre */
	.pj__p1 { justify-content: center; }
	.pj__img { object-position: center; }
}


/* Accueil sur téléphone : le défilement s'accroche au début de chaque photo (en douceur) */
@media (max-width: 799px) {
	html.has-snap { scroll-snap-type: y proximity; }
	html.has-snap .tile { scroll-snap-align: start; }
}


/* ==========================================================================
   Vidéo 16:9 pleine largeur (format « wide ») : le lecteur occupe toute la largeur de l'écran,
   le texte passe en surimpression et s'efface pendant la lecture.
   ========================================================================== */
.hs.is-h .pj__video--wide { display: block; position: relative; }
.hs.is-h .pj__video--wide .vp__media {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	height: 100%; min-height: 0;
}
.hs.is-h .pj__video--wide .yt {
	width: min(100%, calc(var(--pj-h) * 16 / 9));     /* jamais plus haut que l'écran */
	height: auto; aspect-ratio: 16 / 9;
}
.hs.is-h .pj__video--wide .vp__text {
	position: absolute; left: 0; bottom: 0; top: auto; z-index: 3;
	align-self: auto;
	width: min(55%, 46rem); height: auto;
	padding: 6rem 3vw 6vh 4.5vw;
	align-items: flex-start; text-align: left;
	background: linear-gradient(90deg, rgba(6, 6, 10, .82) 0%, rgba(6, 6, 10, .55) 60%, rgba(6, 6, 10, 0) 100%);
	transition: opacity .5s ease;
	pointer-events: none;
}
.hs.is-h .pj__video--wide .vp__text a { pointer-events: auto; }
.hs.is-h .pj__video--wide .frame { text-align: left; }
.hs.is-h .pj__video--wide .frame__line { margin-left: 0; margin-right: auto; }
.hs.is-h .pj__video--wide .vp__p { text-align: left; text-align-last: left; }
.hs.is-h .pj__video--wide.is-playing .vp__text { opacity: 0; }

/* ==========================================================================
   v3.11 : PAGE « À PROPOS » — fond noir à grain, texte crème, étoiles déclinées
   ========================================================================== */
.ab {
	position: relative;
	isolation: isolate;
	background: #06060a;
	color: var(--cream);
	overflow: hidden;
}
.ab::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: .28;
	pointer-events: none;
}

.ab-sec { position: relative; padding: clamp(4rem, 12vh, 9rem) max(var(--pad), 6vw); }
.ab__in { width: min(100%, 66rem); margin: 0 auto; }

/* Titres : capitales, mots normaux fins, mots en **gras** très épais (comme les visuels) */
.ab__title {
	margin: 0 0 .55em;
	font-family: var(--ab-tf, var(--text-font));
	font-weight: 400;
	font-size: calc(clamp(2rem, 4.6vw, 4.8rem) * var(--ab-ts, 1) * var(--title-scale, 1));
	line-height: 1;
	letter-spacing: .005em;
	text-transform: uppercase;
	text-wrap: balance;
}
.ab__title strong {
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--ab-tfw, var(--title-weight, 900));
	letter-spacing: -.01em;
}
.ab__title em { font-style: italic; }

.ab__kicker {
	margin: 0 0 1.2rem;
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--ab-tfw, var(--title-weight, 900));
	font-size: calc(clamp(.95rem, 1.5vw, 1.5rem) * var(--ab-ts, 1));
	letter-spacing: .02em;
	text-transform: uppercase;
}

/* Texte courant : justifié, mots en **gras** dans la police épaisse */
.ab__text {
	margin: 0;
	font-family: var(--ab-xf, var(--text-font));
	font-size: calc(clamp(1.02rem, 1.4vw, 1.45rem) * var(--ab-xs, 1) * var(--text-scale, 1));
	line-height: 1.42;
	hyphens: manual;
	-webkit-hyphens: manual;
}
.ab__text strong { font-family: var(--ab-xf, var(--display)); font-weight: var(--title-weight, 900); letter-spacing: -.005em; }
.ab__text--justify { text-align: left; }   /* « justifié » s'affiche aligné à gauche : jamais de trous entre les mots */
.ab__text--left { text-align: left; }
.ab__text--center { text-align: center; }
.ab__text--c2, .ab__text--c3, .ab__text--c4 { column-gap: clamp(1.5rem, 3.5vw, 4rem); column-rule: 1px solid rgba(255, 251, 216, .16); }
.ab__text--c2 { column-count: 2; }
.ab__text--c3 { column-count: 3; }
.ab__text--c4 { column-count: 4; }
.ab__small { font-size: calc(clamp(.9rem, 1.2vw, 1.15rem) * var(--ab-xs, 1)); letter-spacing: .04em; text-transform: uppercase; margin-top: 2rem; }

/* Lien avec flèche, comme « JE T'EXPLIQUE → » */
.ab__link {
	display: inline-flex; align-items: center; gap: .6em;
	margin-top: 2rem;
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--title-weight, 900);
	font-size: calc(clamp(1.2rem, 2.2vw, 2.2rem) * var(--ab-ts, 1));
	text-transform: uppercase;
	color: var(--cream);
}
.ab__link svg { width: 1.6em; height: auto; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.ab__link:hover svg { transform: translateX(.35em); }

/* --- Phrase forte dans les cercles --- */
.ab-rings {
	min-height: max(100vh, 620px);
	display: grid; place-items: center;
	overflow: hidden;
	padding-top: 6rem; padding-bottom: 6rem;
}
@supports (height: 1svh) { .ab-rings { min-height: max(100svh, 620px); } }
.ab-rings__svg {
	position: absolute; left: 50%; top: 50%;
	width: min(150vh, 124vw); height: auto; aspect-ratio: 1;
	transform: translate(-50%, -50%);
	color: var(--cream);
	pointer-events: none;
}
/* Chaque groupe d'étoiles tourne sur son cercle : le cadre invisible du groupe est centré sur le cercle */
.ab-rings__g { transform-box: fill-box; transform-origin: 50% 50%; animation: ab-turn var(--d, 240s) linear infinite; }
.ab-rings__g--rev { animation-direction: reverse; }
@keyframes ab-turn { to { transform: rotate(360deg); } }
.ab-rings__in { position: relative; z-index: 1; width: min(calc(min(150vh, 124vw) * .5), 44rem); text-align: center; }
.ab-rings .ab__title { margin: 0; font-size: calc(clamp(1.7rem, 3.6vw, 3.9rem) * var(--ab-ts, 1) * var(--title-scale, 1)); line-height: 1.04; }
.ab-rings .ab__text { margin-top: 1.6rem; }

/* --- Décors d'étoiles --- */
.ab-deco { width: min(100%, 66rem); margin: 0 auto clamp(2.5rem, 7vh, 5rem); color: var(--cream); }
.ab-deco svg { display: block; width: 100%; height: auto; overflow: visible; }
.ab-deco--contours { width: min(116%, 78rem); margin-left: 50%; transform: translateX(-50%); }
.px-stars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.4rem, 1.5vw, 1.4rem) clamp(.3rem, 1vw, 1rem); }
.px-star { display: block; aspect-ratio: 1; }
.px-star svg, .px-star canvas { display: block; width: 100%; height: 100%; }
.px-star canvas { image-rendering: pixelated; image-rendering: crisp-edges; }

/* --- Photo découpée en étoile --- */
.ab-img__fig { margin: 0 0 clamp(2rem, 6vh, 4rem); }
.ab-img__img {
	display: block; width: 100%; height: auto;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath transform='translate(-200 -200) scale(3)' d='M142.13,86.41l50.94,7.47c6.68.98,6.68,10.61,0,11.59l-50.94,7.47c-14.81,2.17-26.44,13.8-28.61,28.61l-7.47,50.94c-.98,6.68-10.61,6.68-11.59,0l-7.47-50.94c-2.17-14.81-13.8-26.44-28.61-28.61l-50.94-7.47c-6.68-.98-6.68-10.61,0-11.59l50.94-7.47c14.81-2.17,26.44-13.8,28.61-28.61l7.47-50.94c.98-6.68,10.61-6.68,11.59,0l7.47,50.94c2.17,14.81,13.8,26.44,28.61,28.61Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath transform='translate(-200 -200) scale(3)' d='M142.13,86.41l50.94,7.47c6.68.98,6.68,10.61,0,11.59l-50.94,7.47c-14.81,2.17-26.44,13.8-28.61,28.61l-7.47,50.94c-.98,6.68-10.61,6.68-11.59,0l-7.47-50.94c-2.17-14.81-13.8-26.44-28.61-28.61l-50.94-7.47c-6.68-.98-6.68-10.61,0-11.59l50.94-7.47c14.81-2.17,26.44-13.8,28.61-28.61l7.47-50.94c.98-6.68,10.61-6.68,11.59,0l7.47,50.94c2.17,14.81,13.8,26.44,28.61,28.61Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ab-img__fig.is-sepia .ab-img__img { filter: grayscale(1) sepia(.42) contrast(1.06) brightness(.92); }
.ab-img__body > .star { width: clamp(28px, 3vw, 44px); height: auto; color: var(--cream); margin-bottom: 1.4rem; }
@media (min-width: 800px) {
	.ab-img--left, .ab-img--right { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
	.ab-img--left .ab-img__fig, .ab-img--right .ab-img__fig { margin: 0; }
	.ab-img--right .ab-img__fig { order: 2; }
	.ab-image .ab-img--left, .ab-image .ab-img--right { width: min(100%, 82rem); }
}

/* --- Vidéo + texte --- */
@media (min-width: 800px) {
	.ab-video--side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: center; width: min(100%, 86rem); }
}
.ab-video--wide .ab-video__media { margin-top: clamp(2rem, 6vh, 4rem); }
.ab-video--wide { width: min(100%, 86rem); }
.ab-video--wide .ab-video__body { width: min(100%, 66rem); }
.ab-video--empty { width: min(100%, 58rem); text-align: center; }
.ab-video--empty .ab__text--justify { text-align: center; text-align-last: center; }
.ab-video__media .yt { width: 100%; border: 1px solid rgba(255, 251, 216, .22); }
@media (max-width: 799px) { .ab-video__media { margin-top: 2rem; } }

/* --- Annonce centrée --- */
.ab-announce { min-height: min(100vh, 58rem); display: grid; place-items: center; text-align: center; }
.ab-starrow { display: inline-flex; gap: clamp(.25rem, .7vw, .6rem); margin-bottom: 1rem; }
.ab-starrow .star { width: clamp(18px, 2vw, 34px); height: auto; color: var(--cream); }
.ab-announce__star { display: block; width: clamp(24px, 2.6vw, 40px); margin: clamp(3rem, 12vh, 7rem) auto 1.2rem; }
.ab-announce__star .star { width: 100%; height: auto; }
.ab-announce .ab__title { font-size: calc(clamp(2.2rem, 5.4vw, 5.6rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }

/* --- Téléphone --- */
@media (max-width: 799px) {
	.ab-sec { padding: clamp(3.5rem, 10vh, 5rem) var(--pad); }
	.ab-rings__svg { width: 168vw; }
	.ab-rings__in { width: 74vw; }
	.ab-deco--contours { width: 150%; }
	.ab__text--justify { text-align: left; }
}

@media (prefers-reduced-motion: reduce) { .ab-rings__g { animation: none; } }

/* ==========================================================================
   v3.12 : accueil — les étoiles couvrent toute la colonne de gauche,
   logo plus grand et centré, texte d'intro juste en dessous du logo
   ========================================================================== */
.hero {
	flex: 1 1 auto;
	height: 100%;
	display: grid;
	grid-template-rows: 1fr auto 1fr;           /* le logo reste exactement au centre */
	justify-items: center;
	align-items: center;
	padding: 0 6%;
}
.hero__logo { grid-row: 2; width: min(72%, 600px); margin: 0; }
.intro {
	grid-row: 3; align-self: start;
	position: relative; z-index: 1;
	flex: none;
	width: min(72%, 600px);
	padding: clamp(1.2rem, 4vh, 2.6rem) 0 0;
	text-align: center;
	pointer-events: none;
}
.intro__text {
	max-width: none;
	font-size: calc(clamp(.95rem, 1.45vw, 1.7rem) * var(--title-scale, 1));
	line-height: 1.15;
	letter-spacing: .02em;
	color: var(--cream);
	mix-blend-mode: normal;
	text-wrap: balance;
}

/* Tablette / écrans peu hauts */
@media (min-width: 800px) and (max-width: 1100px) { .hero__logo, .intro { width: min(82%, 520px); } }
@media (min-width: 800px) and (max-height: 560px) { .hero__logo, .intro { width: min(52%, 360px); } .intro { padding-top: .8rem; } }

/* Téléphone : la colonne étoilée occupe tout le premier écran */
@media (max-width: 799px) {
	.hero { height: var(--full-h); min-height: 480px; padding: 0 var(--pad); }
	.hero__logo, .intro { width: min(86%, 420px); }
	.intro__text { font-size: calc(clamp(.95rem, 4.2vw, 1.3rem) * var(--title-scale, 1)); }
}

/* Crédits photo sous le texte du projet (police et taille réglables par projet) */
.tp__credits {
	margin: clamp(1.8rem, 5vh, 3rem) 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 251, 216, .18);
	font-family: var(--cr-font, var(--text-font));
	font-size: calc(.82rem * var(--cr-scale, 1) * var(--text-scale, 1));
	line-height: 1.55;
	letter-spacing: .03em;
	color: var(--cream);
	opacity: .8;
}
.tp__credits:first-child { margin-top: 0; }


/* ==========================================================================
   v3.13 : À propos — titres encadrés, alignements, colonnes, galerie, responsive
   ========================================================================== */
.ab-sec { --title-fs: calc(clamp(1.8rem, 4.4vw, 4.8rem) * var(--title-scale, 1) * var(--ab-ts, 1)); }
.ab-rings, .ab-announce { --title-fs: calc(clamp(1.6rem, 3.6vw, 4rem) * var(--title-scale, 1) * var(--ab-ts, 1)); }

/* Alignement des titres « mixtes » */
.ab__title--left { text-align: left; }
.ab__title--center { text-align: center; }
.ab__title--right { text-align: right; }

/* Titres encadrés (même style que les pages projet), en crème */
.ab-sec .frame {
	margin: 0 0 .5em;
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--ab-tfw, var(--title-weight, 900));
}
.ab-sec .frame--left { text-align: left; }
.ab-sec .frame--left .frame__line { margin-left: 0; margin-right: auto; }
.ab-sec .frame--center { text-align: center; }
.ab-sec .frame--center .frame__line { margin-left: auto; margin-right: auto; }
.ab-sec .frame--right { text-align: right; }
.ab-rings .frame { margin: 0; }

/* Plusieurs colonnes de texte : les colonnes ne coupent pas un paragraphe en plein milieu d'un mot */
.ab__text--c2, .ab__text--c3, .ab__text--c4 { orphans: 3; widows: 3; }

/* --- Texte à gauche + images à droite --- */
.ab-gal { width: min(100%, 90rem); }
.ab-gal__imgs { display: grid; gap: clamp(.5rem, 1.2vw, 1rem); align-items: start; }
.ab-gal__imgs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-gal__imgs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-gal__imgs--2 .ab-gal__fig:nth-child(2n) { margin-top: clamp(1.5rem, 6vw, 6rem); }      /* décalage, comme un collage */
.ab-gal__imgs--3 .ab-gal__fig:nth-child(3n+2) { margin-top: clamp(1rem, 4vw, 4rem); }
.ab-gal__fig { margin: 0; }
.ab-gal__img { display: block; width: 100%; height: auto; }                                   /* image entière, jamais recadrée */
.ab-gal__imgs.is-sepia .ab-gal__img { filter: grayscale(1) sepia(.42) contrast(1.06) brightness(.92); }
.ab-gal--noimg { width: min(100%, 66rem); }
@media (min-width: 900px) {
	.ab-gal:not(.ab-gal--noimg) { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
	.ab-gal--left:not(.ab-gal--noimg) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
	.ab-gal--left .ab-gal__imgs { order: -1; }
	.ab-gal__body { position: sticky; top: clamp(5rem, 14vh, 9rem); }       /* le texte reste visible pendant que les images défilent */
	.ab-gal .ab__text--c3, .ab-gal .ab__text--c4 { column-count: 2; }
}
@media (max-width: 899px) { .ab-gal__imgs { margin-top: 2.2rem; } }

/* --- Responsive --- */
@media (max-width: 1200px) { .ab__text--c4 { column-count: 2; } }
@media (max-width: 1000px) { .ab__text--c3 { column-count: 2; } }
@media (max-width: 700px)  { .ab__text--c2, .ab__text--c3, .ab__text--c4 { column-count: 1; column-rule: none; } }

@media (max-width: 799px) {
	.ab-sec { --title-fs: calc(clamp(1.7rem, 9vw, 3rem) * var(--title-scale, 1) * var(--ab-ts, 1)); }
	.ab-rings, .ab-announce { --title-fs: calc(clamp(1.4rem, 7.2vw, 2.4rem) * var(--title-scale, 1) * var(--ab-ts, 1)); }
	.ab__title { font-size: calc(clamp(1.7rem, 8.4vw, 2.8rem) * var(--ab-ts, 1) * var(--title-scale, 1)); overflow-wrap: anywhere; hyphens: manual; }
	.ab-rings .ab__title { font-size: calc(clamp(1.3rem, 6.6vw, 2.2rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.ab-announce .ab__title { font-size: calc(clamp(1.6rem, 8.4vw, 2.6rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.ab__text { font-size: calc(clamp(.98rem, 4.1vw, 1.12rem) * var(--ab-xs, 1) * var(--text-scale, 1)); line-height: 1.5; }
	.ab__link { font-size: calc(clamp(1.05rem, 5vw, 1.4rem) * var(--ab-ts, 1)); }
	.ab-rings { min-height: max(var(--full-h), 520px); }
	.ab-rings__svg { width: max(150vw, 118vh); }
	.ab-rings__in { width: min(70vw, 340px); }
	.ab-deco { margin-bottom: 2rem; }
	.ab-deco--contours { width: 170%; }
	.ab-deco--stars { width: 116%; margin-left: -8%; }
	.px-stars { gap: .5rem .3rem; }
	.ab-announce { min-height: 0; }
	.ab-starrow { flex-wrap: wrap; justify-content: center; max-width: 86vw; }
	.ab-video__media .yt { margin-left: calc(var(--pad) * -1); width: calc(100% + 2 * var(--pad)); border-left: 0; border-right: 0; }
	.ab-gal__imgs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ab-gal__imgs--3 .ab-gal__fig:nth-child(3n+2) { margin-top: 0; }
	.ab-gal__imgs--3 .ab-gal__fig:nth-child(2n) { margin-top: 2rem; }
}

/* Téléphone couché / écran très bas */
@media (max-height: 500px) and (orientation: landscape) {
	.ab-rings { min-height: 0; padding-top: 5rem; padding-bottom: 5rem; }
	.ab-rings__svg { width: 150vh; }
	.ab-rings__in { width: min(60vw, 520px); }
	.ab-announce { min-height: 0; }
}

/* 3 ou 4 colonnes : bloc plus large et texte un peu plus petit pour garder des colonnes lisibles */
.ab__in--wide { width: min(100%, 90rem); }
.ab__text--c3, .ab__text--c4 { font-size: calc(clamp(.95rem, 1.08vw, 1.18rem) * var(--ab-xs, 1) * var(--text-scale, 1)); line-height: 1.48; }
.ab-deco + .ab__in--wide { margin-top: 0; }


/* ==========================================================================
   v3.14 : À propos — questions / réponses (menu déroulant)
   ========================================================================== */
.ab-faq { width: min(100%, 86rem); }
.ab-faq__head .ab__text { margin-bottom: 1.5rem; }
@media (min-width: 900px) {
	.ab-faq--side { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
	.ab-faq--side .ab-faq__head { position: sticky; top: clamp(5rem, 14vh, 9rem); }
}
.ab-faq--stack .ab-faq__list { margin-top: clamp(1rem, 4vh, 2.5rem); }

.ab-faq__list { border-top: 1px solid rgba(255, 251, 216, .35); }
.faq { border-bottom: 1px solid rgba(255, 251, 216, .35); }
.faq__q {
	list-style: none;
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: clamp(1.1rem, 2.6vh, 1.6rem) 0;
	cursor: pointer;
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--ab-tfw, var(--title-weight, 900));
	font-size: calc(clamp(1.05rem, 1.7vw, 1.75rem) * var(--ab-ts, 1) * var(--title-scale, 1));
	line-height: 1.12;
	text-transform: uppercase;
	color: var(--cream);
	-webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.faq__label { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .faq__q:hover .faq__label { transform: translateX(.4em); } }

/* L'étoile en contour devient pleine et pivote quand la réponse est ouverte */
.faq__icon { flex: 0 0 auto; display: block; width: clamp(20px, 1.8vw, 30px); height: clamp(20px, 1.8vw, 30px); color: var(--cream); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.faq__icon .star { width: 100%; height: 100%; }
.faq__icon .star path { transition: fill .3s; }
.faq[open] .faq__icon { transform: rotate(45deg); }
.faq[open] .faq__icon .star path { fill: currentColor; }

.faq__a { overflow: hidden; }
.faq__in { padding: 0 0 clamp(1.2rem, 3vh, 2rem); max-width: 46rem; }
.faq__in .ab__text { font-size: calc(clamp(.98rem, 1.2vw, 1.2rem) * var(--ab-xs, 1) * var(--text-scale, 1)); }

@media (max-width: 799px) {
	.faq__q { font-size: calc(clamp(1rem, 4.6vw, 1.25rem) * var(--ab-ts, 1) * var(--title-scale, 1)); gap: 1rem; }
	.ab-faq__list { margin-top: 1.8rem; }
}

/* ==========================================================================
   v3.16 : pas de mot seul en fin de ligne (complète le script)
   ========================================================================== */
p, li, dd, blockquote, figcaption, .tp__cols, .ab__text, .vp__p, .faq__in, .tp__credits { text-wrap: pretty; }
h1, h2, h3, h4, .tile__title, .mo__link, .faq__label, .intro__text, .ab__kicker, .soon__title, .project__title { text-wrap: balance; }

/* ==========================================================================
   v3.17 : QUESTIONNAIRE (section des pages à sections)
   ========================================================================== */
.mqf { display: grid; gap: clamp(1.8rem, 4.5vh, 2.8rem); }
.mqf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mqf__field { position: relative; margin: 0; }
.mqf__field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.mqf__label {
	display: block; padding: 0; margin: 0 0 .7rem;
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--ab-tfw, var(--title-weight, 900));
	font-size: calc(clamp(1.02rem, 1.45vw, 1.5rem) * var(--ab-ts, 1) * var(--title-scale, 1));
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--cream);
}
.mqf__num { font-size: .58em; vertical-align: .3em; margin-right: .3em; opacity: .7; letter-spacing: .04em; }
.mqf__req { opacity: .6; }
.mqf__help { margin: -.3rem 0 .8rem; font-family: var(--ab-xf, var(--text-font)); font-size: calc(.88rem * var(--ab-xs, 1)); opacity: .72; }

/* Champs : souligné crème, sans boîte, comme une ligne d'écriture */
.mqf__input {
	display: block; width: 100%; box-sizing: border-box;
	padding: .55rem 0 .6rem;
	background: transparent;
	border: 0; border-bottom: 1px solid rgba(255, 251, 216, .45);
	border-radius: 0;
	color: var(--cream);
	font-family: var(--ab-xf, var(--text-font));
	font-size: calc(clamp(1rem, 1.25vw, 1.2rem) * var(--ab-xs, 1) * var(--text-scale, 1));
	line-height: 1.45;
	transition: border-color .25s, box-shadow .25s;
	-webkit-appearance: none; appearance: none;
}
textarea.mqf__input { min-height: 8.5rem; resize: vertical; border: 1px solid rgba(255, 251, 216, .45); padding: .8rem .9rem; }
.mqf__input:focus { outline: none; border-color: var(--cream); box-shadow: 0 1px 0 0 var(--cream), 0 6px 18px -10px rgba(228, 195, 157, .55); }
textarea.mqf__input:focus { box-shadow: 0 0 0 1px var(--cream), 0 0 22px -8px rgba(228, 195, 157, .45); }
.mqf__input::placeholder { color: rgba(255, 251, 216, .45); }

.mqf__select { position: relative; display: block; }
.mqf__select::after {
	content: ""; position: absolute; right: .2rem; top: 50%; width: .55rem; height: .55rem;
	border-right: 1.5px solid var(--cream); border-bottom: 1.5px solid var(--cream);
	transform: translateY(-75%) rotate(45deg); pointer-events: none;
}
.mqf__select select { padding-right: 2rem; cursor: pointer; }
.mqf__select option { color: #06060a; background: #fffbd8; }

/* Choix : l'étoile en contour se remplit quand on la coche */
.mqf__opts { display: grid; gap: .55rem; }
.mqf__opt { position: relative; display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-family: var(--ab-xf, var(--text-font)); font-size: calc(clamp(.98rem, 1.2vw, 1.15rem) * var(--ab-xs, 1) * var(--text-scale, 1)); line-height: 1.4; color: var(--cream); }
.mqf__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mqf__mark { flex: 0 0 auto; width: 1.25em; height: 1.25em; margin-top: .05em; color: var(--cream); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.mqf__mark .star { width: 100%; height: 100%; }
.mqf__mark .star path { transition: fill .25s; }
@media (hover: hover) { .mqf__opt:hover .mqf__mark { transform: rotate(15deg) scale(1.08); } }
.mqf__opt input:checked + .mqf__mark .star path { fill: currentColor; }
.mqf__opt input:checked + .mqf__mark { transform: scale(1.12); }
.mqf__opt input:focus-visible + .mqf__mark { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 50%; }
.mqf__opt a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.mqf__opt--consent { font-size: calc(.92rem * var(--ab-xs, 1)); opacity: .9; }

/* Note en étoiles : le survol et le choix remplissent les étoiles de gauche à droite */
.mqf__scale { display: inline-flex; flex-direction: row-reverse; gap: .35rem; }
.mqf__scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mqf__scale label { display: block; width: clamp(30px, 2.6vw, 40px); height: clamp(30px, 2.6vw, 40px); cursor: pointer; color: var(--cream); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.mqf__scale label .star { width: 100%; height: 100%; }
.mqf__scale label .star path { transition: fill .2s; }
.mqf__scale input:checked ~ label .star path,
.mqf__scale label:hover .star path,
.mqf__scale label:hover ~ label .star path { fill: currentColor; }
.mqf__scale label:hover { transform: scale(1.15) rotate(15deg); }
.mqf__scale input:focus-visible + label { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 50%; }

/* Erreurs */
.mqf__err { margin: .5rem 0 0; min-height: 0; font-family: var(--ab-xf, var(--text-font)); font-size: .85rem; color: #f0a99a; }
.mqf__err:empty { display: none; }
.mqf__field.is-error .mqf__input { border-color: #f0a99a; }
.mqf__field.is-error .mqf__mark, .mqf__field.is-error .mqf__scale label { color: #f0a99a; }

/* Envoi */
.mqf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: .4rem; }
.mqf__submit {
	all: unset; box-sizing: border-box;
	display: inline-flex; align-items: center; gap: .7em;
	padding: .75em 1.15em;
	border: 1px solid var(--cream);
	cursor: pointer;
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--title-weight, 900);
	font-size: calc(clamp(1.05rem, 1.6vw, 1.6rem) * var(--ab-ts, 1));
	text-transform: uppercase;
	color: var(--cream);
	transition: background .3s, color .3s;
}
.mqf__submit svg { width: 1.5em; height: auto; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.mqf__submit:hover { background: var(--cream); color: #06060a; }
.mqf__submit:hover svg { transform: translateX(.3em); }
.mqf__submit:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.mqf.is-sending .mqf__submit { opacity: .6; pointer-events: none; }
.mqf__status { margin: 0; font-family: var(--ab-xf, var(--text-font)); font-size: .92rem; color: #f0a99a; }
.mqf__status:empty { display: none; }

/* Merci */
.mqf__done { text-align: center; padding: clamp(2rem, 8vh, 5rem) 0; outline: none; }
.mqf__done-star { display: block; width: clamp(46px, 5vw, 70px); margin: 0 auto 1.6rem; color: var(--cream); }
.mqf__done-star .star { width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(228, 195, 157, .55)); }
.mqf__done-text { margin: 0 auto; max-width: 30ch; font-family: var(--ab-tf, var(--display)); font-weight: var(--title-weight, 900); font-size: calc(clamp(1.4rem, 3vw, 2.6rem) * var(--ab-ts, 1)); line-height: 1.1; text-transform: uppercase; color: var(--cream); }
.mqf__done.is-in .mqf__done-star { animation: mqf-star 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.mqf__done.is-in .mqf__done-text { animation: mqf-up .9s .15s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mqf-star { from { transform: scale(0) rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mqf-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mqf__done.is-in .mqf__done-star, .mqf__done.is-in .mqf__done-text { animation: none; } }

@media (max-width: 799px) {
	.ab-form .mqf { margin-top: 2rem; }
	.mqf__actions { flex-direction: column; align-items: stretch; }
	.mqf__submit { justify-content: center; }
}

.mqf[hidden], .mqf__done[hidden] { display: none !important; }

/* Colonne étroite (titre à gauche) : texte aligné à gauche, sans grands blancs de justification */
.ab-faq--side .ab-faq__head .ab__text--justify { text-align: left; }

/* Vérification anti-robot (Cloudflare Turnstile) */
.mqf__captcha { min-height: 65px; }

/* ==========================================================================
   v3.19 : Don (Donorbox ou Tipeee)
   ========================================================================== */
.don { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; width: 100%; }
.don__frame {
	display: block; width: 100%; max-width: 520px; min-width: 250px;
	max-height: none !important; border: 0; background: transparent;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 251, 216, .35), 0 0 0 10px #06060a, 0 0 0 11px rgba(255, 251, 216, .18), 0 0 60px rgba(228, 195, 157, .12);
}
.ab-faq--stack .don { margin-top: clamp(1.5rem, 5vh, 3rem); }
.don__alt { margin: 0; }
.don__btn { text-decoration: none; }
.don__secure { display: flex; align-items: center; gap: .6em; max-width: 520px; margin: 0; font-family: var(--ab-xf, var(--text-font)); font-size: .85rem; line-height: 1.45; color: rgba(255, 251, 216, .7); }
.don__secure .star { flex: 0 0 auto; width: 14px; height: 14px; color: var(--glow, #e4c39d); }
.don__todo { border: 1px dashed rgba(255, 251, 216, .5); padding: 1.2rem 1.4rem; max-width: 520px; }
@media (max-width: 799px) {
	.ab-don .don { margin-top: 2rem; }
	.don__alt, .don__btn { width: 100%; }
	.don__btn { justify-content: center; }
	.don__frame { box-shadow: 0 0 0 1px rgba(255, 251, 216, .35), 0 0 0 5px #06060a, 0 0 0 6px rgba(255, 251, 216, .18); }
}

/* v3.20 : bouton « Faire un don » en fin de page */
.ab-donbtn { text-align: center; }
.ab-donbtn .ab__in { display: flex; flex-direction: column; align-items: center; }
.ab-donbtn__star { display: block; width: clamp(26px, 2.8vw, 42px); margin: 0 auto 1.4rem; color: var(--cream); }
.ab-donbtn__star .star { width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(228, 195, 157, .55)); }
.ab-donbtn .ab__text { max-width: 44ch; margin-inline: auto; }
.ab-donbtn__cta { margin: clamp(1.4rem, 4vh, 2.4rem) 0 0; }
.ab-donbtn__btn { text-decoration: none; font-size: calc(clamp(1.2rem, 2vw, 2rem) * var(--ab-ts, 1)); padding: .85em 1.4em; box-shadow: 0 0 0 0 rgba(228, 195, 157, 0); transition: background .3s, color .3s, box-shadow .5s; }
.ab-donbtn__btn:hover { box-shadow: 0 0 40px rgba(228, 195, 157, .35); }
@media (max-width: 799px) { .ab-donbtn__cta, .ab-donbtn__btn { width: 100%; } .ab-donbtn__btn { justify-content: center; } }

/* v3.22 : logos Instagram / YouTube du pied de page */
.sf__right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; }
.sf__social { list-style: none; margin: 0; padding: 0; display: flex; gap: .9rem; }
.sf__icon {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	color: var(--cream);
	border: 1px solid rgba(255, 251, 216, .35);
	border-radius: 50%;
	transition: color .3s, background .3s, border-color .3s, box-shadow .5s, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.sf__icon svg { width: 20px; height: 20px; display: block; }
.sf__icon--youtube svg { width: 22px; }
.sf__icon:hover, .sf__icon:focus-visible {
	color: #06060a; background: var(--cream); border-color: var(--cream);
	box-shadow: 0 0 22px rgba(228, 195, 157, .45);
	transform: translateY(-2px);
	opacity: 1;
}
@media (max-width: 799px) {
	.sf__right { align-items: flex-start; }
}

/* ==========================================================================
   v3.23.1 : titres des projets sur les photos de l'accueil
   - « soft » (par défaut) : l'effet inversé d'origine, atténué : couleur #fffbd8 et voile
     sombre discret derrière le titre, pour qu'il reste lisible sur les photos claires ;
   - « clear » : crème avec ombre douce, sans inversion ;
   - « invert » : l'effet d'origine, inchangé.
   ========================================================================== */
:root { --tile-ink: #fffbd8; }
body.tiles-soft .tile__title,
body.tiles-soft .tile__nav { color: var(--tile-ink); }
/* (pas de voile sur les photos : leur luminosité reste intacte) */
body.tiles-soft .tile__title { text-shadow: 0 0 .6em rgba(6, 6, 10, .25); }

body.tiles-clear .tile__title {
	mix-blend-mode: normal;
	color: var(--tile-ink);
	text-shadow: 0 0 .5em rgba(6, 6, 10, .45), 0 .04em .12em rgba(6, 6, 10, .6);
}
body.tiles-clear .tile__nav {
	mix-blend-mode: normal;
	color: var(--tile-ink);
	filter: drop-shadow(0 0 .35em rgba(6, 6, 10, .7)) drop-shadow(0 .05em .1em rgba(6, 6, 10, .6));
}

/* v3.25 : page 404 — les cercles tournent plus vite, petit « 404 » au-dessus */
.ab--404 .ab-rings__g { animation-duration: calc(var(--d, 240s) / 5); }
.ab--404 .ab-rings__in::before {
	content: "404";
	display: block;
	margin-bottom: 1.2rem;
	font-family: var(--display);
	font-weight: var(--title-weight, 900);
	font-size: clamp(.8rem, 1vw, 1rem);
	letter-spacing: .3em;
	color: var(--cream);
	opacity: .7;
}
.ab--404 .ab__link { margin-top: clamp(1.6rem, 4vh, 2.6rem); }
@media (prefers-reduced-motion: reduce) { .ab--404 .ab-rings__g { animation: none; } }

/* v3.27 : titres des photos de l'accueil plus grands sur tablette */
@media (min-width: 540px) and (max-width: 799px) {
	.tile__title { font-size: calc(clamp(2rem, 6.6vw, 3.6rem) * var(--title-scale, 1)); padding: 1.5rem; }
}
@media (min-width: 800px) and (max-width: 1199px) {
	.tile__title { font-size: calc(clamp(1.7rem, 3.9vw, 3.2rem) * var(--title-scale, 1)); }
}

/* ==========================================================================
   v3.28 : écran de chargement — cercles d'étoiles qui tournent + pourcentage
   ========================================================================== */
.ld { display: none; }
.has-loader .ld {
	position: fixed; inset: 0; z-index: 9999;
	display: grid; place-items: center;
	background: var(--bg);
	color: var(--cream);
	transition: opacity .9s cubic-bezier(.65, 0, .35, 1), visibility 0s .9s;
	animation: ld-safety .6s 12s forwards;       /* filet de sécurité si le script ne tourne pas */
}
.ld__grain {
	position: absolute; inset: -50%;
	background: url("../img/grain.png") repeat; background-size: 256px 256px;
	opacity: .5; pointer-events: none;
	animation: ld-grain .9s steps(4) infinite;
}
.ld__stage { position: relative; width: min(56vmin, 400px); aspect-ratio: 1; display: grid; place-items: center; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1), opacity .9s ease; }
.ld__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ld__circle { opacity: .55; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ld-draw 1.4s calc(var(--k) * .15s) cubic-bezier(.65, 0, .35, 1) forwards; }
.ld__g { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; animation: ld-in .8s calc(.35s + var(--k) * .15s) ease forwards, ab-turn var(--d, 20s) linear infinite; }
.ld__g--rev { animation-direction: normal, reverse; }
.ld__g path { filter: drop-shadow(0 0 10px rgba(228, 195, 157, .55)); }
.ld__center { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(.6rem, 2vmin, 1.1rem); width: 50%; text-align: center; }
.ld__logo { width: 100%; height: auto; filter: drop-shadow(0 0 2px rgba(228, 195, 157, .95)) drop-shadow(0 0 14px rgba(228, 195, 157, .5)); opacity: 0; animation: ld-in 1s .2s ease forwards; }
.ld__pct {
	margin: 0;
	font-family: var(--display); font-weight: var(--title-weight, 900);
	font-size: clamp(1.05rem, 3.6vmin, 1.8rem); line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}
.ld__sign { font-size: .55em; vertical-align: .55em; margin-left: .08em; opacity: .75; }
/* Sortie : les éléments s'effacent un par un (pourcentage, logo, puis les cercles du centre vers l'extérieur), puis le fond */
.ld__w { transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .42s ease calc(var(--o, 0) * 95ms), transform .55s cubic-bezier(.65, 0, .35, 1) calc(var(--o, 0) * 95ms); }
span.ld__w { display: block; width: 100%; }
.ld-out .ld__w { opacity: 0; transform: scale(.94); }
.ld-out .ld { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease .95s, visibility 0s 1.5s; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-in { to { opacity: 1; } }
@keyframes ld-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
@keyframes ld-safety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
	.ld__g { animation: ld-in .4s ease forwards; }
	.ld__grain { animation: none; }
	.ld__circle { animation-duration: .01s; }
	.ld-out .ld__w { transform: none; }
}

/* ==========================================================================
   v3.29
   ========================================================================== */
/* Téléphone : « Portraits, » à gauche à la place du nom, le nom passe en bas du menu burger */
@media (max-width: 799px) {
	.topbar__left { display: none; }
	.topbar .topbar__menu {
		display: block; position: static; order: 0; margin: 0;
		font-size: calc(clamp(2.1rem, 10vw, 2.8rem) * var(--pmenu-scale, 1));   /* 2 × plus grand (v3.38) */
		line-height: 1;
	}
	.bm__home {
		display: block;
		margin-top: auto; padding-top: 2.2rem;
		font-family: var(--g-display); font-weight: var(--g-weight);
		font-size: calc(clamp(1.05rem, 4.9vw, 1.3rem) * var(--menu-scale, 1));
		letter-spacing: .04em; text-transform: uppercase;
		color: var(--cream);
		opacity: 0; transform: translateY(12px);
		transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
	}
	.bm.is-open .bm__home { opacity: .8; transform: none; transition-delay: .5s; }
	.bm__home + .bm__foot { margin-top: 0; padding-top: .9rem; }
}
.bm__home { display: none; }
@media (max-width: 799px) { .bm .bm__home { display: block; } }

/* Page À propos (et pages à sections) sur téléphone : textes plus petits */
@media (max-width: 799px) {
	.ab-sec { --title-fs: calc(clamp(1.3rem, 6.6vw, 2.1rem) * var(--title-scale, 1) * var(--ab-ts, 1)); }
	.ab-rings, .ab-announce { --title-fs: calc(clamp(1.15rem, 5.6vw, 1.8rem) * var(--title-scale, 1) * var(--ab-ts, 1)); }
	.ab__title { font-size: calc(clamp(1.35rem, 6.6vw, 2.1rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.ab-rings .ab__title { font-size: calc(clamp(1.1rem, 5.4vw, 1.7rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.ab-announce .ab__title { font-size: calc(clamp(1.3rem, 6.6vw, 2rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.ab__text, .ab__text--c3, .ab__text--c4 { font-size: calc(clamp(.88rem, 3.7vw, 1rem) * var(--ab-xs, 1) * var(--text-scale, 1)); line-height: 1.5; }
	.ab__kicker { font-size: calc(.8rem * var(--ab-ts, 1)); }
	.ab__small { font-size: calc(.78rem * var(--ab-xs, 1)); }
	.ab__link { font-size: calc(clamp(.92rem, 4.2vw, 1.1rem) * var(--ab-ts, 1)); }
	.faq__q { font-size: calc(clamp(.9rem, 4vw, 1.05rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.faq__in .ab__text { font-size: calc(clamp(.86rem, 3.6vw, .98rem) * var(--ab-xs, 1) * var(--text-scale, 1)); }
	.mqf__label, .mqf__legend { font-size: calc(clamp(.92rem, 4vw, 1.05rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.mqf__input, .mqf__opt { font-size: calc(.95rem * var(--ab-xs, 1) * var(--text-scale, 1)); }
	.mqf__submit, .ab-donbtn__btn { font-size: calc(1rem * var(--ab-ts, 1)); }
	.mqf__done-text { font-size: calc(clamp(1.1rem, 5.6vw, 1.6rem) * var(--ab-ts, 1)); }
	.soon__title { font-size: calc(clamp(1.05rem, 5vw, 1.5rem) * var(--title-scale, 1)); }
}

/* Petite vague qui traverse les étoiles, de temps en temps */
@keyframes star-wave {
	0%, 26%, 100% { transform: translateY(0) scale(1); }
	8%  { transform: translateY(-30%) scale(1.12); }
	16% { transform: translateY(8%) scale(.97); }
}
.ab-starrow > .star {
	animation: star-wave 4.2s ease-in-out infinite;
	animation-delay: calc(var(--w, 0) * 85ms);
	will-change: transform;
}
.tile__stars > li:nth-child(2), .pj__stars > li:nth-child(2), .soon__stars > li:nth-child(2), .ab-starrow > .star:nth-child(2) { --w: 1; }
.tile__stars > li:nth-child(3), .pj__stars > li:nth-child(3), .soon__stars > li:nth-child(3), .ab-starrow > .star:nth-child(3) { --w: 2; }
.tile__stars > li:nth-child(4), .pj__stars > li:nth-child(4), .soon__stars > li:nth-child(4), .ab-starrow > .star:nth-child(4) { --w: 3; }
.tile__stars > li:nth-child(5), .pj__stars > li:nth-child(5), .soon__stars > li:nth-child(5), .ab-starrow > .star:nth-child(5) { --w: 4; }
.tile__stars > li:nth-child(6), .pj__stars > li:nth-child(6), .soon__stars > li:nth-child(6), .ab-starrow > .star:nth-child(6) { --w: 5; }
.tile__stars > li:nth-child(7), .pj__stars > li:nth-child(7), .soon__stars > li:nth-child(7), .ab-starrow > .star:nth-child(7) { --w: 6; }
.tile__stars > li:nth-child(8), .pj__stars > li:nth-child(8), .soon__stars > li:nth-child(8), .ab-starrow > .star:nth-child(8) { --w: 7; }
.tile__stars > li:nth-child(9), .pj__stars > li:nth-child(9), .soon__stars > li:nth-child(9), .ab-starrow > .star:nth-child(9) { --w: 8; }
.tile__stars > li:nth-child(10), .pj__stars > li:nth-child(10), .soon__stars > li:nth-child(10), .ab-starrow > .star:nth-child(10) { --w: 9; }
.ab-starrow > .star:nth-child(n+11) { --w: 10; }
@media (prefers-reduced-motion: reduce) {
	.tile__stars > li, .pj__stars > li, .soon__stars > li, .ab-starrow > .star { animation: none; }
}

/* Défilement doux (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* v3.30 */
/* Numéro aligné sur la dernière ligne du titre encadré */
.tp__head { margin-bottom: 24px; margin-bottom: calc(var(--title-fs) * .27); }
.tp__head .frame { margin-bottom: 0; }
.tp__no { margin: 0 0 calc(var(--title-fs) * .2); }
/* Page portrait : pas de vague sur les étoiles */
.pj__stars > li { animation: none !important; }
/* Pages « bientôt » (portraits cachés) : la vague revient sur les étoiles */
.soon__stars > li { animation: star-wave 4.2s ease-in-out infinite; animation-delay: calc(var(--w, 0) * 85ms); }
@media (prefers-reduced-motion: reduce) { .soon__stars > li { animation: none; } }
/* Pages « bientôt » (photos cachées) : grain fin qui bouge sur le fond */
.soon__bg::after {
	content: "";
	position: absolute; inset: -60%;
	z-index: 1;
	background: url("../img/grain.png") repeat;
	background-size: 140px 140px;
	opacity: .32;
	pointer-events: none;
	animation: soon-grain .7s steps(5) infinite;
}
@keyframes soon-grain {
	0%   { transform: translate(0, 0); }
	20%  { transform: translate(-4%, 3%); }
	40%  { transform: translate(3%, -5%); }
	60%  { transform: translate(-5%, -2%); }
	80%  { transform: translate(4%, 4%); }
	100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .soon__bg::after { animation: none; } }

/* ==========================================================================
   v3.31
   ========================================================================== */
/* Page portrait : de l'air entre les vignettes et la partie vidéo */
.pj__strip { padding-bottom: clamp(1.8rem, 6vh, 4.5rem); }

/* Ordinateur : la barre du haut en ligne souple — les textes ne peuvent plus se chevaucher,
   ils gardent toujours un espace entre eux, même avec de grandes tailles */
@media (min-width: 800px) {
	.topbar {
		--tb-gap: clamp(1.4rem, 2.6vw, 2.8rem);
		--tb-x: 21vw;          /* position habituelle de « Portraits, » */
		--tb-split: 60vw;      /* fin de la colonne de gauche */
		--tb-padr: 6vw;
		display: flex;
		align-items: flex-start;
		column-gap: var(--tb-gap);
	}
	.single-projet:not(.is-soon) .topbar { --tb-split: 50vw; --tb-padr: 2vw; }
	.topbar__left { display: contents; }
	/* nom du site : garde au moins la place habituelle, pour que « Portraits, » reste à 21 % */
	.topbar__name { order: 0; flex: 0 0 auto; min-width: calc(var(--tb-x) - var(--pad) - var(--tb-gap)); white-space: nowrap; }
	.topbar .topbar__menu { order: 1; flex: 0 0 auto; position: static; margin-top: calc(.6vw - .9rem); white-space: nowrap; }
	/* liens : prennent la place libre ; s'il en manque, ils passent à la ligne au lieu de se toucher */
	.topbar__left .nav { order: 2; flex: 1 1 auto; display: block; padding-right: 4px; }
	.topbar__left .nav__list { display: block; text-align: right; font-size: 0; margin-right: -4px; }   /* -4px : marge d’arrondi, évite un retour à la ligne pour une fraction de pixel */
	.topbar__left .nav__list > li { display: inline-block; font-size: var(--tb-fs, calc(clamp(.7rem, .95vw, .9rem) * var(--text-scale, 1) * var(--menu-scale, 1))); margin-left: max(1.75rem, .6em); white-space: nowrap; }
	.topbar__left .nav__list > li:first-child { margin-left: 0; }
	/* droite : réserve l'espace habituel, mais cède en premier quand les textes grandissent */
	.topbar__right { order: 3; flex: 0 1000000 calc(100vw - 2 * var(--pad) - var(--tb-split) + var(--tb-padr) - var(--tb-gap)); min-width: max-content; display: flex; justify-content: flex-end; }

	/* Option « tout le menu à la taille de Portraits » */
	.menu-same .topbar__name,
	.menu-same .topbar .nav__list a,
	.menu-same .topbar__right a {
		font-size: calc(var(--menu-fs, clamp(1.6rem, 3vw, 3.6rem)) * var(--pmenu-scale, 1));
		line-height: 1.1;
	}
	.menu-same .topbar .topbar__menu { line-height: 1.1; margin-top: 0; }
	.menu-same .topbar__left .nav__list > li { font-size: calc(var(--menu-fs, clamp(1.6rem, 3vw, 3.6rem)) * var(--pmenu-scale, 1)); }
	.menu-same .topbar { padding-top: .6vw; }
}
@media (min-width: 800px) and (max-width: 1100px) { .topbar { --tb-x: 19vw; } }

/* v3.35 : questionnaire pas à pas — la question suivante apparaît après chaque réponse */
.mqf-wait {
	max-height: 0 !important; overflow: hidden;
	margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
	border-width: 0 !important;
	opacity: 0; pointer-events: none;
}
.mqf--steps { row-gap: 0; }
.mqf--steps > .mqf__field:not(.mqf-wait), .mqf--steps > .mqf__actions:not(.mqf-wait), .mqf--steps > .mqf__captcha:not(.mqf-wait) { margin-bottom: clamp(1.6rem, 3.4vh, 2.4rem); }
.mqf-in { animation: mqf-step .8s var(--d, 0ms) cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mqf-step {
	from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
	to   { opacity: 1; transform: none; filter: none; }
}
.mqf__next { margin-top: 1.1rem; }
.mqf__next[hidden] { display: none; }
.mqf__ok {
	all: unset; box-sizing: border-box;
	display: inline-flex; align-items: center; gap: .6em;
	padding: .55em .95em;
	border: 1px solid rgba(255, 251, 216, .55);
	font-family: var(--ab-tf, var(--display));
	font-weight: var(--title-weight, 900);
	font-size: calc(clamp(.78rem, .95vw, .92rem) * var(--ab-ts, 1));
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--cream);
	cursor: pointer;
	transition: background .3s, color .3s, border-color .3s;
}
.mqf__ok svg { width: 1.4em; height: auto; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.mqf__ok:hover, .mqf__ok:focus-visible { background: var(--cream); color: #06060a; border-color: var(--cream); }
.mqf__ok:hover svg { transform: translateX(.25em); }
.mqf__ok:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
/* sans le mode pas à pas, pas de bouton Valider */
.mqf:not(.mqf--steps) .mqf__next { display: none; }
@media (prefers-reduced-motion: reduce) { .mqf-in { animation: none; } }

/* v3.32.1 : bande des vignettes (page portrait) sur fond noir à grain, comme le texte et les vidéos */
.pj__strip { background: #06060a; isolation: isolate; }
.pj__strip::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: url("../img/grain.png") repeat;
	background-size: 256px 256px;
	opacity: .28;
	pointer-events: none;
}
.strip__item { position: relative; z-index: 1; }

/* ==========================================================================
   v3.33 : « Portraits, » dans la même police que le reste du menu ;
   le lien de la page affichée passe en gras
   ========================================================================== */
.topbar .topbar__menu {
	font-family: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	color: inherit;
}
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-ancestor > a,
.nav__list a[aria-current="page"] { text-decoration: none; font-weight: 700; }
.bm__list .current-menu-item > a,
.bm__list .current_page_item > a { font-weight: 700; }
/* sur une page portrait, c'est « Portraits, » qui est en gras */
.single-projet .topbar .topbar__menu,
.single-projet .bm__link[data-mo-open] { font-weight: 700; }

/* v3.33.1 : le nom du site (en haut à gauche) un peu plus petit que le reste du menu */
.topbar__name { font-size: .72em; }
@media (min-width: 800px) {
	.menu-same .topbar { align-items: baseline; }
	.menu-same .topbar__name { font-size: calc(var(--menu-fs, clamp(1.6rem, 3vw, 3.6rem)) * var(--pmenu-scale, 1) * .6); }
}

/* v3.33.2 : questions des FAQ dans la police des titres (comme les grands titres des sections) */
.faq__q {
	font-family: var(--ab-tf, var(--g-display));
	font-weight: var(--ab-tfw, var(--g-weight, 400));
	letter-spacing: -.005em;
}
.faq__q strong, .faq__q b { font-family: var(--ab-tf, var(--display)); font-weight: var(--title-weight, 900); }

/* v3.34 : aucune ligne justifiée sur le site (plus de grands espaces entre les mots) ;
   les retours à la ligne sont équilibrés pour un bord droit régulier */
p, li, .ab__text, .tp__cols, .faq__a, .pj__desc { text-wrap: pretty; }

/* v3.36 : plus de vague sur les étoiles de l'accueil */
.tile__stars > li { animation: none !important; }

/* v3.36.3 : **gras** dans les textes des pages portrait, comme sur les autres pages
   (police des titres, bien épaisse — visible quelle que soit la police du texte) */
.tp__cols strong, .tp__credits strong, .pj__desc strong, .vp__p strong, .vp__text strong, .soon__text strong {
	font-family: var(--display);
	font-weight: var(--title-weight, 900);
	letter-spacing: -.005em;
}

/* v3.37 : police du gras réglable (Typographie Mythique > Police du gras) */
:is(.ab__text, .tp__cols, .tp__credits, .pj__desc, .vp__p, .vp__text, .soon__text, .faq__a, .entry, .mqf__help) strong {
	font-family: var(--bold-font, var(--ab-xf, var(--display)));
	font-weight: var(--bold-weight, var(--title-weight, 900));
}

/* v3.37.1 : grain vivant sans glissement — le motif change de place par sauts au hasard
   (comme une pellicule), au lieu de se déplacer de gauche à droite */
@keyframes grain-flicker {
	0%    { background-position: 0 0; }
	12.5% { background-position: -91px 47px; }
	25%   { background-position: 63px -118px; }
	37.5% { background-position: -147px -29px; }
	50%   { background-position: 109px 83px; }
	62.5% { background-position: -38px 131px; }
	75%   { background-position: 151px -61px; }
	87.5% { background-position: -122px -97px; }
	100%  { background-position: 0 0; }
}
.ld__grain { inset: 0; transform: none; animation: grain-flicker .8s steps(1, end) infinite; }
.soon__bg::after { inset: 0; transform: none; animation: grain-flicker .7s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .ld__grain, .soon__bg::after { animation: none; } }

/* v3.37.2 : parties vidéo — le sous-titre passe au-dessus du titre, les deux cadres restent collés */
.vp__text .frame--sub { margin-top: 0; margin-bottom: -1px; }

/* v3.37.3 : page courte — le pied de page reste collé en bas de l'écran */
body:not(.is-home) { min-height: 100vh; display: flex; flex-direction: column; }
@supports (height: 1svh) { body:not(.is-home) { min-height: 100svh; } }
body:not(.is-home) > main { flex: 1 0 auto; width: 100%; }
body:not(.is-home) > .site-footer { flex-shrink: 0; width: 100%; }
/* l'espace libre au-dessus du pied de page garde le même grain que le reste :
   un fond d'image (noir + grain déjà mélangés), peint une fois et léger à faire défiler */
body:not(.is-home) { background: #06060a url("../img/grain-fond.png") repeat; background-size: 256px 256px; }

/* ==========================================================================
   v3.38 : téléphone
   ========================================================================== */
@media (max-width: 799px) {
	/* À propos : les cercles tiennent entièrement dans l'écran, le texte au centre */
	.ab-rings { min-height: 0; height: auto; padding: 2.5rem 0; }
	.ab-rings::before { content: ""; display: block; width: 100%; padding-top: 100%; grid-area: 1 / 1; }
	.ab-rings > .ab-rings__in { grid-area: 1 / 1; }
	.ab > .ab-rings:first-child, .ab > h1 + .ab-rings { margin-top: 3rem; }   /* marge (pas de rembourrage) : le centre du cercle reste le centre du texte */
	.ab-rings__svg { width: 96vw; }
	.ab-rings__in { width: 58vw; }
	.ab-rings .ab__title { font-size: calc(clamp(.95rem, 4.8vw, 1.35rem) * var(--ab-ts, 1) * var(--title-scale, 1)); }
	.ab-rings .ab__text { margin-top: .9rem; font-size: calc(.85rem * var(--ab-xs, 1)); }
	.ab-rings .ab__link { margin-top: .9rem; white-space: nowrap; font-size: calc(.82rem * var(--ab-ts, 1)); }
	.ab--404 .ab-rings { min-height: 100vh; min-height: 100svh; }

	/* Défilement plus fluide : pas d'accroche forcée sur l'accueil, pas de calques lourds inutiles */
	html.has-snap { scroll-snap-type: none; }
	html.has-snap .tile { scroll-snap-align: none; }
}
/* écrans tactiles : pas de grain au survol des photos (il n'y a pas de survol), donc pas de gros calques */
@media (hover: none) {
	.tile::after { display: none; }
}

/* ==========================================================================
   v3.41 : menu du haut aligné à gauche à partir de « Portraits, » ;
   le nom (ex. Lost Panton) passe en bas de l'accueil, centré sous le logo
   ========================================================================== */
@media (min-width: 800px) {
	.topbar__name { display: none; }
	.topbar .topbar__menu { order: 0; }
	.topbar__left .nav { order: 1; flex: 0 1 auto; }
	.topbar__left .nav__list { justify-content: flex-start; text-align: left; }
	.topbar__right { order: 2; flex: 0 0 auto; margin-left: auto; min-width: 0; }
}
.hero__credit {
	position: absolute; z-index: 2;
	left: 50%; bottom: clamp(1rem, 3.5vh, 2.2rem);
	transform: translateX(-50%);
	margin: 0;
	font-size: calc(clamp(.7rem, .85vw, .85rem) * var(--menu-scale, 1));
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--cream);
	opacity: .75;
	pointer-events: auto;
	transition: opacity .25s;
}
a.hero__credit:hover, a.hero__credit:focus-visible { opacity: 1; }
.sf__copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; }
.sf__credit { color: inherit; text-transform: uppercase; letter-spacing: .06em; }
.sf__credit:hover { opacity: .7; }
@media (max-width: 799px) {
	.hero { position: relative; }
	.hero__credit { bottom: 1rem; }
}

/* v3.41.1 : ordinateur — « Portraits, » exactement à la même taille que les autres liens du menu */
@media (min-width: 800px) {
	.topbar { --tb-fs: calc(clamp(.7rem, .95vw, .9rem) * var(--text-scale, 1) * var(--menu-scale, 1)); }
	.menu-same .topbar { --tb-fs: calc(var(--menu-fs, clamp(1.6rem, 3vw, 3.6rem)) * var(--pmenu-scale, 1)); }
	.topbar .topbar__menu,
	.topbar .topbar__left .nav__list > li,
	.topbar .topbar__left .nav__list a,
	.topbar .topbar__right a { font-size: var(--tb-fs); line-height: 1.1; }
	.topbar .topbar__menu { margin-top: 0; }
	.topbar { align-items: baseline; }
}

/* v3.42.1 : signature (Lost Panton) un peu plus grande en bas de l'accueil */
.hero__credit { font-size: calc(clamp(.9rem, 1.15vw, 1.15rem) * var(--menu-scale, 1)); }
@media (max-width: 799px) { .hero__credit { font-size: calc(clamp(.9rem, 4.2vw, 1.1rem) * var(--menu-scale, 1)); } }

/* v3.43 : section « Texte + vidéo Instagram » */
.ab-insta__media { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.ab-insta__frame {
	display: block; width: 100%; max-width: 420px;
	aspect-ratio: 9 / 16.6;           /* reel vertical + bandeau Instagram */
	min-height: 520px;
	border: 0; background: #06060a;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 251, 216, .35), 0 0 0 10px #06060a, 0 0 0 11px rgba(255, 251, 216, .18), 0 0 60px rgba(228, 195, 157, .12);
}
.ab-insta__open { font-size: calc(.8rem * var(--ab-xs, 1)); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); opacity: .65; }
.ab-insta__open:hover { opacity: 1; }
@media (min-width: 900px) {
	.ab-insta:not(.ab-gal--noimg) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
	.ab-insta.ab-gal--left:not(.ab-gal--noimg) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
	.ab-insta.ab-gal--left .ab-insta__media { order: -1; }
	.ab-insta .ab-gal__body { position: static; }
}
@media (max-width: 899px) {
	.ab-insta__media { margin-top: 2rem; }
	.ab-insta__frame { max-width: 360px; min-height: 0; box-shadow: 0 0 0 1px rgba(255, 251, 216, .35), 0 0 0 5px #06060a, 0 0 0 6px rgba(255, 251, 216, .18); }
}

/* v3.43.1 : miniature de la vidéo Instagram */
.ab-insta__poster { position: relative; overflow: hidden; }
.ab-insta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), opacity .5s; }
.ab-insta__poster:hover .ab-insta__img { transform: scale(1.04); }
.ab-insta__poster .yt__play { z-index: 1; }
.ab-insta__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #06060a; z-index: 2; }
.ab-insta__poster.is-playing .ab-insta__img, .ab-insta__poster.is-playing .yt__play { opacity: 0; pointer-events: none; }

/* ==========================================================================
   v3.44 : section vidéo « pleine largeur » — titre à gauche, texte à droite,
   puis la vidéo en grand, d'un bord à l'autre de l'écran
   ========================================================================== */
.ab-video--wide { width: 100%; }
.ab-video--wide .ab-video__body { width: min(100%, 86rem); margin: 0 auto; }
@media (min-width: 900px) {
	.ab-video--wide .ab-video__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 6vw, 7rem); align-items: end; }
	.ab-video--wide .ab-video__body > .ab__kicker { grid-column: 1; }
	.ab-video--wide .ab-video__body > .ab__title, .ab-video--wide .ab-video__body > .frame { grid-column: 1; margin-bottom: 0; }
	.ab-video--wide .ab-video__body > .ab__text, .ab-video--wide .ab-video__body > .ab__link { grid-column: 2; }
	.ab-video--wide .ab-video__body > .ab__text { grid-row: 1 / span 2; align-self: end; margin: 0; }
}
.ab-video--wide .ab-video__media { width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(2.5rem, 7vh, 5rem); }
.ab-video--wide .ab-video__media .yt { border: 0; }
/* un titre trop long pour sa colonne est réduit par le script (jamais coupé ni caché sous la vidéo) */
.ab__title.is-fit { white-space: normal; }
.ab-sec.ab-video { overflow-x: clip; }

/* v3.44.1 : vidéo pleine largeur = largeur de la grille, alignée sur le titre et le texte */
.ab-video--wide .ab-video__media { width: min(100%, 86rem); margin-left: auto; margin-right: auto; }
.ab-video--wide .ab-video__media .yt { border: 1px solid rgba(255, 251, 216, .22); }
@media (max-width: 799px) {
	.ab-video--wide .ab-video__media .yt { margin-left: 0; width: 100%; border: 1px solid rgba(255, 251, 216, .22); }
}

/* v3.46 : titres « comme écrits » (majuscules/minuscules) — par défaut sur la section des cercles d'étoiles */
.ab-case--none .ab__title, .ab-case--none .ab__title strong, .ab-case--none .frame, .ab-case--none .frame__line,
.ab-case--none .ab__kicker, .ab-case--none .ab__small { text-transform: none; }

/* 3.47 — Section « grand titre » : le texte sous le titre prend la taille du texte courant de la page (plus de petite ligne) */
.ab-announce .ab__text.ab__small {
	font-size: calc(clamp(1.02rem, 1.4vw, 1.45rem) * var(--ab-xs, 1) * var(--text-scale, 1));
	letter-spacing: 0; line-height: 1.5;
	max-width: 46ch; margin: 1.8rem auto 0;
}
@media (max-width: 799px) {
	.ab-announce .ab__text.ab__small { font-size: calc(clamp(.88rem, 3.7vw, 1rem) * var(--ab-xs, 1) * var(--text-scale, 1)); margin-top: 1.2rem; }
}

/* 3.48 — Section vidéo pleine largeur (ordinateur) : colonne de texte plus large que celle du titre */
@media (min-width: 900px) {
	.ab-video--wide .ab-video__body { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); column-gap: clamp(2rem, 4.5vw, 5rem); }
}

/* 3.48 — Plus aucun tiret de coupure en fin de ligne : les mots passent entiers à la ligne suivante */
html, body, body * { -webkit-hyphens: manual !important; hyphens: manual !important; }

/* 3.48 — Menu Portraits : petite croix à la place de « Fermer, » */
.mo__close { display: inline-flex !important; align-items: center; justify-content: center; width: 1em; height: 1lh; }
.mo__close svg { width: .62em; height: .62em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.mo__close:hover svg, .mo__close:focus-visible svg { transform: rotate(90deg); }
