/* ==========================================================================
   Léo Rattez — styles
   ========================================================================== */

/* ---------- Polices (hébergées sur le serveur) ---------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-tight-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

/* ---------- Réglages ---------- */
:root {
	--bg: #0E0E0D;
	--fg: #ECEAE4;
	--soft: #DAD7D0;
	--text-2: #C4C1BA;
	--muted: #A3A097;
	--line: #3A3936;
	--line-2: #4A4844;
	--accent: #D4C3A3;
	--gutter: clamp(16px, 3vw, 40px);
	--max: 1360px;
	--sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--ease: cubic-bezier(.22, .61, .36, 1);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	animation: lr-in .7s var(--ease) both;
	transition: opacity .25s ease;
}
body.is-leaving { opacity: 0; }

@keyframes lr-in { from { opacity: 0; } to { opacity: 1; } }

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
	position: absolute; left: var(--gutter); top: -60px; z-index: 50;
	background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }

/* ---------- Typographie ---------- */
.label {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .08em;
	line-height: 1.5;
	color: var(--muted);
}
.display {
	font-size: clamp(56px, 10vw, 160px);
	line-height: .86;
	font-weight: 500;
	letter-spacing: -.045em;
}
.display--film { font-size: clamp(44px, 8vw, 128px); line-height: .9; }
.display--contact { font-size: clamp(44px, 6.5vw, 96px); line-height: .95; letter-spacing: -.04em; }
.display--page { font-size: clamp(40px, 6vw, 88px); line-height: .95; }
.statement {
	max-width: 1100px;
	font-size: clamp(36px, 6vw, 88px);
	line-height: 1;
	letter-spacing: -.035em;
}
.lead { font-size: 18px; line-height: 1.5; font-weight: 300; color: var(--soft); }
.lead--big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; letter-spacing: -.01em; color: var(--fg); }
.count { font-family: var(--mono); font-size: 16px; font-weight: 400; letter-spacing: .04em; color: var(--muted); vertical-align: top; margin-left: 12px; }

.prose { color: var(--soft); font-weight: 300; }
.prose > * + * { margin-top: 1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose--big { font-size: 20px; line-height: 1.55; }
.prose--page { max-width: 760px; }
.prose h2, .prose h3 { color: var(--fg); margin-top: 1.6em; }

.link-accent {
	display: inline-block;
	padding: 12px 0;
	font-size: 14px;
	letter-spacing: .06em;
	color: var(--accent);
}
.link-accent:hover { color: var(--fg); }

/* ---------- Mise en page ---------- */
.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
main.wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 96px; }
.stack-s > * + * { margin-top: 10px; }
.stack-m > * + * { margin-top: 24px; }
.stack-l > * + * { margin-top: 40px; }
.stack-xl > * + * { margin-top: 80px; }
.stack-xxl > * + * { margin-top: clamp(80px, 10vw, 120px); }

/* ---------- En-tête ---------- */
.site-header {
	position: relative;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	max-width: var(--max);
	margin-inline: auto;
	padding: 28px var(--gutter) 0;
}
.site-header__brand { font-size: 15px; font-weight: 600; letter-spacing: .02em; padding: 8px 0; }
.site-header__nav { display: flex; gap: 32px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.site-header__nav a { padding: 8px 0; }
.site-header__nav a[aria-current="page"] { color: var(--accent); }

.lr-home .site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	max-width: none;
}

/* ---------- Pied de page ---------- */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding-top: 32px;
	padding-bottom: 48px;
	border-top: 1px solid var(--line);
	max-width: calc(var(--max) - 2 * var(--gutter));
	padding-inline: 0;
	width: calc(100% - 2 * var(--gutter));
}
.site-footer__cta { font-size: clamp(30px, 4vw, 56px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.site-footer__legal a { color: var(--muted); padding: 6px 0; }
.site-footer__legal a:hover { color: var(--fg); }
.site-footer__copy { font-size: 13px; color: var(--muted); }

/* ---------- Boutons ---------- */
.pill {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 0 20px;
	background: transparent;
	color: var(--fg);
	border: 1px solid #6A6862;
	border-radius: 999px;
	font-size: 13px; letter-spacing: .06em;
	cursor: pointer;
	transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.pill:hover { border-color: var(--fg); color: var(--fg); background: rgba(236, 234, 228, .08); }

.button {
	display: inline-flex; align-items: center;
	min-height: 52px; padding: 0 28px;
	border: 0; border-radius: 999px;
	background: var(--fg); color: var(--bg);
	font-size: 14px; font-weight: 500; letter-spacing: .06em;
	cursor: pointer;
	transition: background .25s ease;
}
.button:hover { background: var(--accent); }

.chip {
	min-height: 44px; padding: 0 18px;
	border: 1px solid var(--line-2); border-radius: 999px;
	background: transparent; color: var(--fg);
	font-size: 13px; letter-spacing: .04em;
	cursor: pointer;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ==========================================================================
   Accueil — un seul écran
   ========================================================================== */
.lr-home { overflow: hidden; }

.home {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 600px;
	overflow: hidden;
	isolation: isolate;
}

.home__media { position: absolute; inset: 0; z-index: -1; }
.home__layer {
	position: absolute; inset: 0;
	background: var(--tone, #1B2624);
	opacity: 0;
	transition: opacity 1.4s var(--ease);
	overflow: hidden;
}
.home__layer.is-active { opacity: 1; }
.home__img, .home__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.home__img {
	transform-origin: 60% 40%;
	animation: lr-zoom 26s ease-in-out infinite alternate;
	animation-play-state: paused;
}
.home__layer.is-active .home__img { animation-play-state: running; }
.home__video { opacity: 0; transition: opacity .8s ease; }
.home__video.is-playing { opacity: 1; }

@keyframes lr-zoom {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

/* Voile pour garder les textes lisibles sur n'importe quelle image */
.home__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(to bottom, rgba(8, 8, 7, .55) 0%, rgba(8, 8, 7, .1) 22%, rgba(8, 8, 7, .15) 55%, rgba(8, 8, 7, .8) 100%),
		rgba(8, 8, 7, .2);
}

.home__inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: clamp(24px, 4vh, 48px);
	padding: 96px var(--gutter) 28px;
}

.home__hero {
	display: flex; flex-wrap: wrap;
	align-items: flex-end; justify-content: space-between;
	gap: 40px;
}
.home__intro { flex: 1 1 600px; min-width: 0; }
.home__intro .label { color: #C9C6BE; margin-bottom: 20px; }
.home__name {
	font-size: clamp(64px, min(11.5vw, 19vh), 184px);
	line-height: .86;
	font-weight: 500;
	letter-spacing: -.045em;
}
.home__text { margin-top: 24px; max-width: 520px; font-size: 18px; line-height: 1.5; font-weight: 300; color: var(--soft); }

.home__now { flex: 0 1 360px; min-width: 0; }
.home__now-item { display: flex; flex-direction: column; gap: 12px; animation: lr-in .6s var(--ease) both; }
.home__now-item[hidden] { display: none; }
.home__now-item .label { color: #C9C6BE; }
.home__now-title { font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
.home__now-text {
	font-size: 15px; line-height: 1.5; color: #D2CFC8;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.home__bottom { display: flex; flex-direction: column; gap: 16px; }
.home__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.home__tc { font-size: 13px; letter-spacing: .06em; color: #C9C6BE; font-variant-numeric: tabular-nums; }

.home__list { display: flex; flex-wrap: wrap; gap: 0 24px; }
.home__list li { flex: 1 1 180px; min-width: 0; }
.home__film {
	display: flex; flex-direction: column; gap: 6px;
	min-height: 72px;
	padding: 14px 0 10px;
	border-top: 1px solid var(--line-2);
	color: #A9A69E;
	transition: color .3s ease, border-color .3s ease;
}
.home__film:hover, .home__film.is-active { color: var(--fg); }
.home__film.is-active { border-top-color: var(--accent); }
.home__film-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.home__film-title { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }

@media (max-width: 760px), (max-height: 620px) {
	.lr-home { overflow: auto; }
	.home { height: auto; min-height: 100svh; }
	.home__inner { min-height: 100svh; padding-top: 120px; }
	.home__list li { flex-basis: 40%; }
	.home__now { flex-basis: 100%; }
}

/* ==========================================================================
   Work
   ========================================================================== */
.work-head {
	display: flex; flex-wrap: wrap;
	justify-content: space-between; align-items: flex-end;
	gap: 32px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
	gap: 72px 40px;
}
.card { display: flex; flex-direction: column; gap: 16px; }
.card[hidden] { display: none; }
.card--featured { grid-column: 1 / -1; gap: 20px; }

.card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tone, #1B2624);
}
.card--featured .card__media { aspect-ratio: 21 / 9; }
.card__media img, .card__media video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease), opacity .6s ease;
}
.card__media video { opacity: 0; }
.card__media video.is-playing { opacity: 1; }
.card:hover .card__media img { transform: scale(1.035); }
.card__placeholder {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 24px; text-align: center;
	font-size: clamp(20px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em;
	color: rgba(236, 234, 228, .5);
}

.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__head { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__title { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.card--featured .card__title { font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; line-height: 1; }
.card__meta { font-size: 12px; }
.card__logline { max-width: 640px; font-size: 16px; color: var(--text-2); }
.card:hover .card__title { color: var(--fg); }
.card:hover { color: var(--fg); }

/* ==========================================================================
   Fiche film
   ========================================================================== */
.film-head > * + * { margin-top: 20px; }
.link-back { display: inline-block; padding: 8px 0; }
.link-back:hover { color: var(--fg); }

.player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--tone, #1B2624);
	overflow: hidden;
}
.player__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__play {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center; gap: 16px;
	width: 100%;
	background: rgba(8, 8, 7, .25);
	border: 0;
	color: var(--fg);
	font-size: 15px; letter-spacing: .04em;
	cursor: pointer;
	transition: background .4s ease;
}
.player__play:hover { background: rgba(8, 8, 7, .45); }
.player__play-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 84px; height: 84px; border-radius: 50%;
	border: 1px solid rgba(236, 234, 228, .7);
	padding-left: 4px;
	transition: transform .4s var(--ease), background .4s ease;
}
.player__play:hover .player__play-icon { transform: scale(1.06); background: rgba(236, 234, 228, .12); }
.player__soon {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	padding: 10px 16px; border: 1px solid var(--line-2); background: rgba(8, 8, 7, .5);
	color: var(--soft); white-space: nowrap;
}
.player__alt { margin-top: 12px !important; text-align: right; }
.player__alt a { display: inline-block; padding: 8px 0; }
.player__alt a:hover { color: var(--fg); }
.player__noscript { position: absolute; bottom: 16px; left: 16px; color: var(--accent); }

.film-body { display: flex; flex-wrap: wrap; gap: 64px; }
.film-body__text { flex: 999 1 560px; min-width: 0; }
.film-body__text > * + * { margin-top: 32px; }
.film-body__details { flex: 1 1 280px; margin: 0; }
.film-body__details div { padding: 14px 0; border-top: 1px solid var(--line); }
.film-body__details dd { margin: 6px 0 0; font-size: 16px; }

.next-film {
	display: flex; flex-direction: column; gap: 8px;
	padding-top: 32px; border-top: 1px solid var(--line);
}
.next-film__title { font-size: clamp(32px, 5vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }

/* ==========================================================================
   About
   ========================================================================== */
.about-bio { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.about-bio__portrait {
	position: relative;
	flex: 1 1 380px; min-width: 0;
	aspect-ratio: 4 / 5;
	background: #1E2321;
	overflow: hidden;
}
.about-bio__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-bio__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.service { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.service .label { font-size: 11px; }
.service__title { font-size: 24px; letter-spacing: -.01em; }
.service__text { font-size: 15px; color: var(--text-2); }

.two-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.two-cols > * { flex: 1 1 420px; min-width: 0; }
.big-list { font-size: clamp(26px, 3vw, 40px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.mono-list { font-family: var(--mono); font-size: 15px; line-height: 2; color: var(--soft); }

/* Bandeau clients défilant */
.marquee {
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	width: max-content;
	animation: lr-marquee var(--duration, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__item {
	display: flex; align-items: center; justify-content: center;
	height: 112px;
	padding: 0 40px;
	font-size: 20px; font-weight: 500; letter-spacing: -.01em;
	color: var(--soft);
	white-space: nowrap;
}
.marquee__item img { max-height: 44px; max-width: 170px; width: auto; height: auto; object-fit: contain; opacity: .85; }
@keyframes lr-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { -webkit-mask-image: none; mask-image: none; }
	.marquee__track { width: auto; }
	.marquee__group { flex-wrap: wrap; justify-content: center; }
	.marquee__group[aria-hidden="true"], .marquee__item[aria-hidden="true"] { display: none; }
}

.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.client {
	height: 112px;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	border: 1px solid var(--line);
	font-size: 18px; font-weight: 500;
}
.client img { max-height: 56px; width: auto; object-fit: contain; opacity: .85; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: flex; flex-wrap: wrap; gap: 80px; align-items: flex-start; }
.contact__info { flex: 1 1 520px; min-width: 0; }
.contact__direct { display: flex; flex-direction: column; gap: 4px; }
.contact__direct a { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.01em; padding: 6px 0; overflow-wrap: anywhere; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 48px; }
.plain-list li a { display: inline-block; padding: 4px 0; }

.form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field input, .field select, .field textarea {
	width: 100%;
	min-height: 48px;
	padding: 8px 0;
	background: var(--bg);
	border: 0;
	border-bottom: 1px solid var(--line-2);
	border-radius: 0;
	color: var(--fg);
	font: inherit;
	font-size: 18px;
	transition: border-color .25s ease;
}
.field textarea { line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); font-size: 15px; }
.form__notice--ok { border-color: var(--accent); color: var(--fg); }

/* ---------- Divers ---------- */
.notfound { min-height: 60vh; }
.post-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Fenêtre showreel ---------- */
.player-dialog {
	width: min(1280px, 92vw);
	max-width: none;
	padding: 0;
	border: 0;
	background: #000;
	color: var(--fg);
	overflow: visible;
}
.player-dialog::backdrop { background: rgba(5, 5, 5, .9); }
.player-dialog__frame { aspect-ratio: 16 / 9; }
.player-dialog__frame iframe { width: 100%; height: 100%; border: 0; }
.player-dialog__close {
	position: absolute; right: 0; top: -56px;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: transparent; border: 0; cursor: pointer;
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}
