/* ==========================================================================
   Oh! – styles
   Référence : maquette Uncode actuelle à 1440px de large.
   ========================================================================== */

/* 0. Police Inter, hébergée dans le thème (assets/fonts, licence OFL)
   Fichier variable : toutes les graisses 300 → 800 dans un seul fichier.
   « latin » couvre le français ; « latin-ext » ne se charge que si un
   caractère rare l'exige.
   ========================================================================== */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Variables
   ========================================================================== */
:root {
	--bg: #f5f1f2;
	--bg-projet: #dde3e5;
	--text: #010101;
	--link: #2d2c2c;
	--yellow: #edca3d;
	--line: #d1d1d1;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: 5vw;              /* 72px à 1440px */
	--gap: 10px;
	--ease: cubic-bezier(.25, .1, .25, 1);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.4 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.is-single-projet { background: var(--bg-projet); }

img, video, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	padding: .5rem 1rem;
	background: #fff;
}

.wrap {
	padding: 0 var(--gutter);
}

.page-title {
	font-size: clamp(48px, 6vw, 96px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.04em;
	margin-bottom: 40px;
}

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

/* 3. Soulignement animé (menu, liens externes, boutons)
   ========================================================================== */
.menu a span,
.link-external span,
.btn-scroll-top span {
	position: relative;
}

.menu a span::after,
.link-external span::after,
.btn-scroll-top span::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}

.menu a:hover span::after,
.menu .current-menu-item a span::after,
.btn-scroll-top:hover span::after { transform: scaleX(1); }

/* Liens externes : soulignés par défaut, le trait disparaît au survol. */
.link-external span::after { transform: scaleX(1); }
.link-external:hover span::after { transform: scaleX(0); }

/* 4. En-tête
   ========================================================================== */
.site-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 72px var(--gutter) 0;
	font-size: 13px;
	line-height: 1.2;
	position: relative;
	z-index: 10;
}

.site-header a { color: var(--text); }

.site-header__left .menu {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

@media (max-width: 900px) {
	.site-header { padding-top: 36px; padding-left: 36px; padding-right: 36px; }
	.site-header__left .menu { flex-direction: row; gap: 19px; }
}

/* 5. Pied de page
   ========================================================================== */
.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 127px var(--gutter) 36px;
	font-size: 12px;
	line-height: 1.75;
}

.btn-scroll-top {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	color: var(--link);
}

@media (max-width: 900px) {
	.site-footer { padding: 89px 36px 36px; }
}

/* 6. Apparition au scroll
   ========================================================================== */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* 7. Hero (accueil)
   ==========================================================================
   Occupe toute la fenêtre (100 % de hauteur) et y tient toujours entièrement.
   Comme sur le site Uncode, les éléments suivent la largeur de l'écran
   (26.25vw / 30.6vw) et sont centrés verticalement sous le menu. Ils ne sont
   réduits que si la hauteur disponible ne suffit pas.
   L'en-tête passe par-dessus (position absolue) pour ne pas pousser le hero. */
@media (min-width: 901px) {
	.home .site-header {
		position: absolute;
		inset: 0 0 auto;
		pointer-events: none;
	}
	.home .site-header nav { pointer-events: auto; }
}

.hero {
	--top: 157px;                          /* hauteur réservée au menu */
	--room: calc(100svh - var(--top) - 6svh); /* hauteur utile, marge basse incluse */
	--gap: min(90px, 10svh);               /* entre les deux flèches */
	--intro-gap: min(72px, 8svh);          /* entre « Oh! » et le texte */
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100vh;
	height: 100svh;
	min-height: 520px;
	padding: var(--top) var(--gutter) 0;
	overflow: hidden;
}

.hero__links {
	/* hauteur du bloc = largeur × (84 + 338) / 378 + écart */
	--w: min(26.25vw, calc((var(--room) - var(--gap)) / 1.117));
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	width: var(--w);
}

.hero__brand {
	/* hauteur du bloc = largeur × (229 + 91) / 441 + écart + 3 lignes de texte */
	--w: min(30.6vw, calc((var(--room) - var(--intro-gap) - 63px) / 0.726));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding-top: 2.3svh;
}

.hero__logo {
	width: var(--w);
	font-size: 0;
}

.hero__oh,
.hero__links img { width: 100%; }

.hero__scotch--desktop {
	width: 62.8%;               /* 277 / 441 */
	margin-left: auto;
	position: relative;
	z-index: 1;
}

.hero__scotch--mobile,
.hero__arrow--work-mobile { display: none; }

.hero__intro {
	margin-top: var(--intro-gap);
	font-size: 15px;
	line-height: 1.4;
	text-align: right;
}

@media (max-width: 900px) {
	.hero {
		flex-direction: column;
		align-items: center;
		height: auto;
		min-height: 0;
		padding: 128px 36px 72px;
		overflow: visible;
	}
	.hero__links { display: none; }
	.hero__brand { align-items: flex-start; padding-top: 0; width: 227px; }
	.hero__logo { width: 100%; max-width: none; }
	.hero__scotch--desktop { display: none; }
	.hero__scotch--mobile { display: block; width: 100%; margin-top: -18px; }
	.hero__intro { width: 100%; margin-top: 54px; font-size: 12px; text-align: left; }
	.hero__arrow--work-mobile { display: block; width: 114px; margin-top: 67px; }
}

/* 8. Mosaïque des projets
   ========================================================================== */
.work {
	padding: 135px var(--gutter) 0;
	scroll-margin-top: 40px;
}

.mosaic {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap);
}

.mosaic__row {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: var(--gap);
	max-width: 100%;
}

/* --w / --h : taille en px à 1440px ; proportionnelle en dessous. */
.card {
	position: relative;
	display: block;
	overflow: hidden;
	width: min(calc(var(--w) * 1px), calc(var(--w) * 100vw / 1440));
	aspect-ratio: var(--w) / var(--h);
	background: rgba(0, 0, 0, .04);
}

.card__img,
.card__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.card__video {
	opacity: 0;
	pointer-events: none;
	transition: opacity .45s ease;
}

.card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px;
	text-align: center;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.card__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.card__infos {
	font-size: 14px;
	line-height: 1.3;
	opacity: .95;
}

/* L'image reste affichée dessous : la vidéo apparaît par-dessus en fondu,
   sans laisser voir le fond de la vignette (pas de flash). */
.card.is-video-on .card__video,
.card.is-video-on .card__overlay { opacity: 1; }

/* Sans vidéo : le titre apparaît quand même au survol. */
.card:hover .card__overlay,
.card:focus-visible .card__overlay { opacity: 1; }

@media (max-width: 900px) {
	.work { padding: 0 36px; }

	.mosaic { display: grid; grid-template-columns: 1fr; gap: 10px; }
	.mosaic__row { display: contents; }

	.card { width: 100%; aspect-ratio: 4 / 3; }

	.card__overlay {
		inset: auto 0 0;
		height: 44%;
		align-items: flex-start;
		justify-content: flex-end;
		gap: 4px;
		padding: 10px 10px 8px;
		text-align: left;
		opacity: 1;
		background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
	}
	.card__title { font-size: 18px; line-height: 1.05; }
	.card__infos { font-size: 12px; line-height: 1.25; }
}

/* 9. Bloc contact (bas de l'accueil + page Contact)
   ========================================================================== */
.contact-cta {
	padding: 0 10vw;
}

.contact-cta--home { margin-top: -14px; }
.contact-cta--page { padding-top: 36px; }

.contact-cta__title {
	font-size: 6vw;             /* 86.4px à 1440px, 22.5px à 375px */
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.04em;
}

.contact-cta__body {
	padding-left: 50px;
	margin-top: 36px;
}

.contact-cta__body p {
	margin-top: 36px;
	line-height: 1.75;
}

.social-links {
	line-height: normal;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.link-external {
	display: inline-flex;
	line-height: normal;
	align-items: center;
	gap: 6px;
	color: var(--text);
}

.link-external svg { opacity: .75; }

@media (max-width: 900px) {
	.contact-cta { padding-left: 36px; padding-right: 36px; }
	.contact-cta--home { margin-top: 0; padding-top: 108px; padding-bottom: 34px; }
	.contact-cta--page { padding-top: 39px; }
}

/* 10. Formulaire (Contact Form 7)
   ========================================================================== */
.contact-form {
	margin-top: 39px;
	font-size: 14px;
	line-height: 1.35;
}

.wpcf7 form > p,
.wpcf7-inline-field { margin: 0 0 18px; }

.wpcf7-inline-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.wpcf7-form-control-wrap { display: block; }

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	font: inherit;
	color: #111;
	background: rgba(0, 0, 0, .01);
	border: 1px solid rgba(0, 0, 0, .22);
	border-radius: 0;
	padding: 12px 14px;
	outline: none;
	box-shadow: none;
	transition: border-color .25s ease, background .25s ease;
}

.wpcf7 textarea { min-height: 215px; resize: vertical; display: block; }

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	font-size: 13px;
	color: rgba(17, 17, 17, .55);
	opacity: 1;
}

.wpcf7 input:hover,
.wpcf7 textarea:hover { border-color: rgba(0, 0, 0, .35); }

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	background: rgba(0, 0, 0, .02);
	border-color: rgba(0, 0, 0, .65);
}

.wpcf7 input[type="submit"] {
	width: 100%;
	font: inherit;
	font-size: 12px;
	letter-spacing: .02em;
	padding: 14px;
	background: transparent;
	color: #111;
	border: 1px solid rgba(0, 0, 0, .35);
	border-radius: 0;
	cursor: pointer;
	transition: border-color .25s ease, opacity .25s ease;
}

.wpcf7 input[type="submit"]:hover { border-color: rgba(0, 0, 0, .75); opacity: .9; }

.wpcf7 form { position: relative; }
.wpcf7-spinner { position: absolute; right: 0; bottom: -32px; margin: 0; }

.wpcf7-not-valid-tip {
	font-size: 12px;
	color: rgba(180, 0, 0, .85);
	margin-top: 6px;
}

.wpcf7 .wpcf7-not-valid { border-color: rgba(180, 0, 0, .55) !important; }

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 14px;
	font-size: 12px;
}

.contact-cta--home .contact-form { max-width: 756px; }

@media (max-width: 900px) {
	.contact-form { margin-top: 73px; }
}

/* 11. Bouton « Retour »
   ========================================================================== */
/* Zone de survol agrandie par le padding (compensé par une marge négative
   pour ne pas décaler le bouton) ; le soulignement couvre flèche + mot
   et se déploie de droite à gauche, dans le sens de la flèche. */
.btn-back {
	--hit-x: 14px;
	--hit-y: 12px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: var(--hit-y) var(--hit-x);
	margin: calc(var(--hit-y) * -1) calc(var(--hit-x) * -1);
	font: inherit;
	font-size: 12px;
	color: var(--link);
	background: none;
	border: 0;
	cursor: pointer;
}

.btn-back::after {
	content: "";
	position: absolute;
	left: var(--hit-x);
	right: var(--hit-x);
	bottom: calc(var(--hit-y) - 2px);
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s ease;
}

.btn-back:hover,
.btn-back:focus-visible { color: var(--text); }

.btn-back:hover::after,
.btn-back:focus-visible::after { transform: scaleX(1); }

/* 12. Page projet
   ========================================================================== */
/* L'en-tête passe par-dessus le haut de la page : il ne doit capter la souris
   que sur les menus, sinon il bloque le bouton « Retour » situé dessous. */
.is-single-projet .site-header {
	position: absolute;
	inset: 0 0 auto;
	pointer-events: none;
}

.is-single-projet .site-header nav { pointer-events: auto; }

.projet {
	padding-top: 105px;
}

.projet__col {
	width: 59.6vw;              /* 858px à 1440px */
	margin: 0 auto;
}

.projet__title {
	margin-top: 69px;
	font-size: 6vw;             /* 86.4px à 1440px */
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.04em;
}

.projet__video { margin-top: 37px; }

.projet__intro {
	display: flex;
	justify-content: space-between;
	gap: 36px;
	margin-top: 35px;
}

.projet__synopsis {
	flex: 0 1 74%;
	line-height: 1.5;
}

.projet__synopsis h4,
.projet__infos {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.04em;
}

.projet__synopsis p { margin-bottom: 1em; }

.projet__synopsis a { text-decoration: underline; text-underline-offset: 2px; }

.projet__meta {
	flex: 0 0 auto;
	text-align: right;
}

.projet__duree {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: -.04em;
}

.projet__credits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
	margin: 36px 0 0;
	line-height: 1.75;
}

.projet__credits dt { font-weight: 600; }
.projet__credits dd { margin: 0; line-height: 1.2; }

.projet__sep {
	width: 59.6vw;
	margin: 108px auto 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.projet__more {
	display: flex;
	gap: 36px;
	align-items: flex-start;
	padding: 109px var(--gutter) 0;
}

.projet__more-title {
	flex: 0 0 186px;
	font-size: 29px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.04em;
}

.projet__more-title::after {
	content: "";
	display: block;
	width: 20px;
	margin-top: 16px;
	border-bottom: 2px solid var(--text);
}

@media (max-width: 900px) {
	.projet { padding-top: 109px; }
	.projet__col,
	.projet__sep { width: auto; margin-left: 36px; margin-right: 36px; }
	.projet__title { margin-top: 21px; font-size: 10vw; }
	.projet__intro { flex-direction: column-reverse; gap: 36px; }
	.projet__meta { text-align: left; }
	.projet__credits { grid-template-columns: 1fr; gap: 36px; }
	.projet__sep { margin-top: 76px; }
	.projet__more { flex-direction: column; align-items: stretch; gap: 36px; padding: 76px 36px 0; }
	.projet__more-title { flex: none; }
}

/* 13. Lecteur vidéo
   ========================================================================== */
.player {
	--ui: #fff;
	--ui-dim: rgba(255, 255, 255, .75);
	--track: rgba(255, 255, 255, .25);
	position: relative;
	width: 100%;
}

.player__stage {
	position: relative;
	overflow: hidden;
	background: #000;
}

.player__video {
	width: 100%;
	cursor: pointer;
}

.player__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	transition: opacity .2s ease;
}

.player.has-started .player__poster { opacity: 0; }

.player__fade {
	position: absolute;
	inset: auto 0 0;
	height: 110px;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
	opacity: 0;
	transition: opacity .2s ease;
}

.player__controls {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	color: var(--ui);
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}

.player.is-hover .player__controls,
.player:focus-within .player__controls {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.player.is-hover .player__fade,
.player:focus-within .player__fade { opacity: 1; }

.player__btn {
	padding: 4px;
	line-height: 1;
	color: var(--ui);
	background: none;
	border: 0;
	cursor: pointer;
}

.player__time {
	display: inline-flex;
	gap: 6px;
	font-size: 12px;
	line-height: 1;
	color: var(--ui-dim);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.player__progress {
	position: relative;
	flex: 1;
	height: 1px;
	background: var(--track);
	cursor: pointer;
}

/* Zone de clic plus haute que le trait. */
.player__progress::before {
	content: "";
	position: absolute;
	inset: -8px 0;
}

.player__bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--ui);
}

.player__bigplay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease;
}

.player.is-hover:not(.is-playing) .player__bigplay,
.player__bigplay:focus-visible { opacity: 1; }

.player.is-playing .player__bigplay { opacity: 0; pointer-events: none; }

.player__bigplay-icon,
.play-icon {
	--ui: #fff;
	position: relative;
	display: block;
	width: 54px;
	height: 54px;
	border: 1px solid var(--ui);
	border-radius: 50%;
}

.player__bigplay-icon::after,
.play-icon::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 16px;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid var(--ui);
}

.player__ico {
	position: relative;
	display: inline-block;
	width: 14px;
	height: 14px;
}

.player__ico--play::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 2px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 7px solid var(--ui);
}

.player.is-playing .player__ico--play::before {
	left: 3px;
	width: 3px;
	height: 10px;
	border: 0;
	background: var(--ui);
	box-shadow: 6px 0 0 var(--ui);
}

.player__ico--full::before,
.player__ico--full::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 6px;
	border: 1px solid var(--ui);
}

.player__ico--full::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.player__ico--full::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* Plein écran : la vidéo s'adapte à l'écran. */
.player__stage:fullscreen { display: flex; align-items: center; }
.player__stage:fullscreen .player__video { height: 100%; object-fit: contain; }

/* 14. Galerie « Plus »
   ========================================================================== */
.gallery {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, 320px);
	gap: 24px;
	align-items: start;
}

.thumb {
	display: block;
	width: 100%;
	padding: 0;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.thumb__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #111;
}

.thumb__poster { width: 100%; }

.thumb__loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

.thumb__fade {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 110px;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
	opacity: 0;
	transition: opacity .2s ease;
}

.thumb__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	color: #fff;
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.thumb__title { font-size: 22px; font-weight: 500; line-height: 1.2; }
.thumb__subtitle { font-size: 14px; font-weight: 300; line-height: 1.2; }

.thumb:hover .thumb__loop,
.thumb:hover .thumb__fade,
.thumb:hover .thumb__overlay,
.thumb:focus-visible .thumb__loop,
.thumb:focus-visible .thumb__fade,
.thumb:focus-visible .thumb__overlay { opacity: 1; }

@media (max-width: 767px) {
	.gallery { grid-template-columns: 1fr; gap: 18px; }
}

/* 15. Lightbox vidéo
   ========================================================================== */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: var(--bg-projet);
	opacity: 0;
	transition: opacity .28s ease;
}

.lightbox__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(1400px, calc(100vw - 40px));
	margin: 70px auto;
	opacity: 0;
	transform: translateY(36px);
	transition: opacity .32s ease, transform .32s ease;
}

.lightbox.is-open .lightbox__backdrop,
.lightbox.is-open .lightbox__inner { opacity: 1; }
.lightbox.is-open .lightbox__inner { transform: none; }

.lightbox__close {
	position: absolute;
	top: -48px;
	left: 0;
}

.player--lightbox { width: auto; max-width: 100%; }

.player--lightbox .player__stage { display: inline-block; vertical-align: top; }

.player--lightbox .player__video {
	width: auto;
	max-width: 100%;
	max-height: calc(100vh - 140px);
}

.player--lightbox .player__poster { object-fit: contain; }

.has-lightbox { overflow: hidden; }

@media (max-width: 767px) {
	.lightbox__inner { width: calc(100vw - 20px); margin: 50px auto 20px; }
}

/* 16. Page Bio
   ========================================================================== */
.is-bio {
	--bio-bg: #181818;
	background: var(--bio-bg);
	color: #fff;
}

.is-bio a,
.is-bio .site-header a,
.is-bio .btn-scroll-top,
.is-bio .site-footer { color: #fff; }

.is-bio .site-header {
	position: absolute;
	inset: 0 0 auto;
	padding-top: 62px;
	pointer-events: none;
}

.is-bio .site-header nav { pointer-events: auto; }

/* Lien souligné qui perd son trait au survol (Vimeo / Instagram). */
.link-underline {
	position: relative;
	display: inline-block;
}

.link-underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform-origin: left;
	transition: transform .3s ease;
}

.link-underline:hover::after { transform: scaleX(0); }

.bio-hero {
	position: relative;
	height: 100vh;
	min-height: 780px;
	overflow: hidden;
}

.bio-hero__bg {
	position: absolute;
	inset: 0;
	background: center / cover no-repeat;
}

@media (min-width: 901px) {
	.bio-hero__media { background-image: none !important; } /* image mobile uniquement */
}

.bio-hero__brand {
	position: absolute;
	top: 363px;
	left: 22.5vw;               /* bord droit à 50vw */
	width: 27.5vw;              /* 396px à 1440px */
}

.bio-hero__title img { width: 100%; }

.bio-hero__subtitle {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.75;
}

.bio-hero__subtitle strong { font-weight: 600; }

.bio-hero__intro {
	font-size: 15px;
	line-height: 1.4;
}

.bio-hero__intro--desktop {
	position: absolute;
	top: 656px;
	right: 50vw;
	text-align: right;
}

.bio-hero__intro--mobile { display: none; }

.bio-hero__social {
	position: absolute;
	right: var(--gutter);
	bottom: 154px;
	width: 165px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 12px;
	line-height: 21px;
}

.bio-text {
	padding: 36px var(--gutter) calc(36px + 70vh) calc(var(--gutter) + (100vw - 2 * var(--gutter)) / 4 - 9px);
	background: var(--bio-bg);
}

.bio-text__arrow { width: 100px; }

.bio-text__content {
	margin-top: 36px;
	line-height: 1.4;
}

.bio-text__content p + p { margin-top: 1em; }
.bio-text__content a { text-decoration: underline; text-underline-offset: 2px; }

.is-bio .site-footer { padding-top: 108px; background: var(--bio-bg); }

@media (max-width: 900px) {
	.is-bio .site-header { padding-top: 36px; }

	.bio-hero { height: auto; min-height: 0; padding-top: 90px; }
	.bio-hero__bg,
	.bio-hero__social,
	.bio-hero__subtitle,
	.bio-hero__intro--desktop { display: none; }

	.bio-hero__media {
		padding: 316px 36px 72px;
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
	}

	.bio-hero__brand { position: static; width: 100%; }

	.bio-hero__intro--mobile {
		display: block;
		padding: 0 36px 36px;
		font-size: 12px;
	}

	.bio-text { padding: 72px 36px 108px; }

	.is-bio .site-footer { padding-top: 72px; }
}

/* 17. Le site comme un plan : animations de navigation
   ==========================================================================
   Bio (gauche) ← Accueil (centre) → Contact (droite) ; Projets en dessous.
   Le sens est posé par assets/js/plan.js sur <html data-vt="…">. */

/* 17a. Transitions entre pages (View Transitions, Chrome/Edge/Safari récents).
   Les autres navigateurs chargent la page normalement.

   La page entière (root) glisse comme un fond. Ses éléments principaux,
   nommés en PHP par oh_vt() en couches vt-l1 (menu) à vt-l4, glissent par
   au-dessus avec un léger retard chacun et un petit supplément de distance :
   ils arrivent en cascade, avec un effet de profondeur.
   À l'aller, les couches partent légèrement en avance (elles « tirent » la page). */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

:root {
	--vt-dur: 1.15s;
	--vt-ease: cubic-bezier(.65, .05, .25, 1);   /* départ doux, longue arrivée */
	--vt-x: 0;
	--vt-y: 0;
}

/* Sens du déplacement de la caméra = d'où arrive la nouvelle page. */
html[data-vt="right"] { --vt-x: 1; }
html[data-vt="left"]  { --vt-x: -1; }
html[data-vt="down"]  { --vt-y: 1; }
html[data-vt="up"]    { --vt-y: -1; }

/* Fond de page. */
html[data-vt]:not([data-vt="fade"])::view-transition-old(root),
html[data-vt]:not([data-vt="fade"])::view-transition-new(root) {
	animation-duration: var(--vt-dur);
	animation-timing-function: var(--vt-ease);
	animation-fill-mode: both;
}
html[data-vt]:not([data-vt="fade"])::view-transition-old(root) { animation-name: vt-out; }
html[data-vt]:not([data-vt="fade"])::view-transition-new(root) { animation-name: vt-in; }

/* Couches : même mouvement, en cascade. --d = retard, --o = distance en plus. */
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l1),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l1) { --d: .03s; --o: 2; }
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l2),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l2) { --d: .08s; --o: 5; }
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l3),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l3) { --d: .13s; --o: 8; }
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l4),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l4) { --d: .18s; --o: 11; }

html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l1),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l2),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l3),
html[data-vt]:not([data-vt="fade"])::view-transition-new(*.vt-l4) {
	animation: var(--vt-dur) var(--vt-ease) var(--d) both vt-in-layer;
}

html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l1),
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l2),
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l3),
html[data-vt]:not([data-vt="fade"])::view-transition-old(*.vt-l4) {
	animation: calc(var(--vt-dur) - var(--d)) var(--vt-ease) both vt-out-layer;
}

/* Les couches ne doivent pas se « transformer » d'une page à l'autre. */
html[data-vt]:not([data-vt="fade"])::view-transition-group(*.vt-l1),
html[data-vt]:not([data-vt="fade"])::view-transition-group(*.vt-l2),
html[data-vt]:not([data-vt="fade"])::view-transition-group(*.vt-l3),
html[data-vt]:not([data-vt="fade"])::view-transition-group(*.vt-l4) { animation: none; }

@keyframes vt-in {
	from { transform: translate(calc(var(--vt-x) * 100vw), calc(var(--vt-y) * 100vh)); }
}
@keyframes vt-out {
	to { transform: translate(calc(var(--vt-x) * -100vw), calc(var(--vt-y) * -100vh)); }
}
@keyframes vt-in-layer {
	from {
		transform: translate(calc(var(--vt-x) * (100vw + var(--o) * 1vw)), calc(var(--vt-y) * (100vh + var(--o) * 1vh)));
		opacity: .6;
	}
}
@keyframes vt-out-layer {
	to {
		transform: translate(calc(var(--vt-x) * -100vw), calc(var(--vt-y) * -100vh));
		opacity: .6;
	}
}

/* Même case (projet → projet) : simple fondu. */
html[data-vt="fade"]::view-transition-old(*) { animation: .45s ease both vt-fade-out; }
html[data-vt="fade"]::view-transition-new(*) { animation: .45s ease both vt-fade-in; }
@keyframes vt-fade-out { to   { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* Arrivée par transition : la page glisse déjà en entier, on coupe les
   animations d'entrée internes (sinon double mouvement). */
.vt-arrival .reveal,
.vt-arrival .slide-in {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* 17b. Arrivée directe sur une page : entrée « de son côté », en cascade.
   Bio depuis la gauche, Contact depuis la droite (ordinateur uniquement),
   accueil : léger fondu montant élément par élément. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
	.js .slide-in {
		--enter-ease: cubic-bezier(.22, 1, .36, 1);
		opacity: 0;
		transform: translateX(-180px);
		transition: opacity 1s var(--enter-ease), transform 1.2s var(--enter-ease);
		will-change: transform, opacity;
	}
	.js .slide-in--right { transform: translateX(180px); }
	.js .slide-in--bg {
		transform: translateX(-260px) scale(1.03);
		transition-duration: 1.4s, 1.6s;
	}
	.js .slide-in--d1 { transition-delay: .1s; }
	.js .slide-in--d2 { transition-delay: .22s; }
	.js .slide-in--d3 { transition-delay: .36s; }
	.js .slide-in.is-in { opacity: 1; transform: none; }
}

/* Accueil : le hero apparaît en cascade plutôt que d'un bloc. */
@media (prefers-reduced-motion: no-preference) {
	.js .hero .reveal { transition-duration: 1s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); }
	.js .hero__arrow--bio  { transition-delay: .05s; }
	.js .hero__logo        { transition-delay: .15s; }
	.js .hero__arrow--work { transition-delay: .25s; }
	.js .hero__intro       { transition-delay: .35s; }
	.js .hero__arrow--work-mobile { transition-delay: .35s; }
}

/* 18. Écrans tactiles : bouton lecture toujours visible
   ==========================================================================
   Sans survol possible, l'icône indique que la vidéo et les vignettes
   « Plus » se lancent au toucher. Ombre légère pour rester lisible sur
   une image claire. */
.thumb__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s ease;
}

.player__bigplay-icon,
.play-icon { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }

@media (hover: none) {
	.player:not(.is-playing) .player__bigplay { opacity: 1; }
	.thumb__play { opacity: 1; }
	/* Petite vignette : icône un peu plus discrète. */
	.thumb .play-icon { transform: scale(.85); }
}
