/*
Theme Name: Charly Lehuédé
Theme URI: https://charlylehuederea.com/
Author: Charly Lehuédé
Description: Thème sur mesure, sombre et cinématographique, pour le site de Charly Lehuédé, réalisateur. Bilingue FR / EN, fiches films, autres réalisations, presse, formulaire de contact. Après activation : Apparence → Mise en place du site.
Version: 1.0.3
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lehuede
*/

/* =========================================================================
   Polices (hébergées dans le thème — aucune requête vers Google)
   ========================================================================= */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* =========================================================================
   Variables
   ========================================================================= */
:root {
	--bg: #0d0c0b;
	--bg-2: #151311;
	--bg-3: #1d1a17;
	--ink: #ece6da;
	--ink-2: #c9c1b3;
	--muted: #8f877a;
	--line: rgba(236, 230, 218, 0.12);
	--line-2: rgba(236, 230, 218, 0.22);
	--accent: #c2a06b;
	--accent-2: #d8bb8a;

	--serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: clamp(20px, 5vw, 72px);
	--wrap: 1360px;
	--text: 720px;
	--header-h: 84px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	font-weight: 380;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* Grain de pellicule très discret */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 200;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.25s var(--ease), opacity 0.25s var(--ease); }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
em, i { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lh-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 14px; }
.lh-skip:focus { top: 12px; }
.lh-main { display: block; outline: none; }
.lh-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Masque la barre d'action WordPress.com pour les visiteurs */
#actionbar, .actnbr-container { display: none !important; }

/* =========================================================================
   Typographie utilitaire
   ========================================================================= */
.lh-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}
.lh-kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.lh-kicker a { text-decoration: none; }
.lh-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; margin: 0 0.8em; vertical-align: middle; }

/* =========================================================================
   Boutons
   ========================================================================= */
.lh-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: transparent;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
	white-space: nowrap;
}
.lh-btn:hover { border-color: var(--ink); color: var(--ink); background: rgba(236, 230, 218, 0.06); }
.lh-btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lh-btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }
.lh-btn--ghost { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(13, 12, 11, 0.25); }
.lh-play-ico { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; display: inline-block; flex: none; }
.lh-linkbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.lh-linkbtn:hover { color: var(--accent-2); }
.lh-link-arrow {
	font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
	text-decoration: none; color: var(--ink); white-space: nowrap;
	border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
}
.lh-link-arrow:hover { border-color: var(--accent); }

/* =========================================================================
   En-tête
   ========================================================================= */
.lh-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.3s var(--ease);
	border-bottom: 1px solid transparent;
}
.lh-header.is-scrolled, body:not(.has-hero) .lh-header {
	background: rgba(13, 12, 11, 0.86);
	backdrop-filter: blur(14px) saturate(120%);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	border-bottom-color: var(--line);
}
.has-hero .lh-header:not(.is-scrolled) { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); }
.lh-header__inner {
	height: 100%;
	width: calc(100% - 2 * var(--gutter));
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 32px;
}
.lh-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--ink); }
.lh-brand:hover { color: var(--ink); }
.lh-brand__name { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: 0.01em; }
.lh-brand__role { margin-top: 6px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.lh-nav { margin-left: auto; }
.lh-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); list-style: none; margin: 0; padding: 0; }
.lh-nav a, .lh-nav__reel {
	position: relative;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	padding: 8px 0;
	display: inline-flex;
	align-items: center;
	gap: 9px;
}
.lh-nav__reel .lh-play-ico { border-width: 4px 0 4px 7px; color: var(--accent); }
.lh-nav a::after, .lh-nav__reel::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.lh-nav a:hover::after, .lh-nav a[aria-current]::after, .lh-nav__reel:hover::after { transform: scaleX(1); }
.lh-nav a:hover, .lh-nav__reel:hover { color: var(--ink); }
.lh-header__end { display: flex; align-items: center; gap: 22px; }
.lh-header__cv { font-size: 12px; font-weight: 500; letter-spacing: 0.17em; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; }
.lh-header__cv:hover { border-color: var(--accent); color: var(--ink); }
.lh-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; color: var(--muted); }
.lh-lang .is-active { color: var(--ink); }
.lh-lang a { text-decoration: none; color: var(--muted); }
.lh-lang a:hover { color: var(--accent-2); }
.lh-lang__sep { opacity: 0.5; }
.lh-lang.is-large { font-size: 14px; }

.lh-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.lh-burger__lines, .lh-burger__lines::before { display: block; width: 26px; height: 1px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease); }
.lh-burger__lines::before { content: ""; position: absolute; top: 7px; left: 0; width: 18px; }
.lh-burger__lines { top: -3px; }
[aria-expanded="true"] .lh-burger__lines { transform: translateY(3px) rotate(45deg); }
[aria-expanded="true"] .lh-burger__lines::before { transform: translateY(-7px) rotate(-90deg); width: 26px; }

/* Menu plein écran (mobile) */
.lh-menu {
	position: fixed; inset: 0; z-index: 90;
	background: var(--bg);
	padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
	display: flex; flex-direction: column;
	overflow-y: auto;
}
.lh-menu[hidden] { display: none; }
.lh-menu nav { display: flex; flex-direction: column; flex: 1; }
.lh-menu__list { list-style: none; margin: 0; padding: 0; }
.lh-menu__list a { display: block; padding: 10px 0; font-family: var(--serif); font-size: clamp(36px, 10vw, 54px); line-height: 1.1; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.lh-menu__extra { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lh-menu__foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.menu-open { overflow: hidden; }

/* =========================================================================
   Héros (accueil et fiches films)
   ========================================================================= */
.lh-hero {
	position: relative;
	min-height: max(600px, 100svh);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
}
.lh-hero__media { position: absolute; inset: 0; z-index: -1; }
.lh-hero__media img {
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
	animation: lh-zoom 18s var(--ease) both;
}
.lh-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, var(--bg) 0%, rgba(13, 12, 11, 0.82) 22%, rgba(13, 12, 11, 0.25) 55%, rgba(13, 12, 11, 0.35) 100%),
		linear-gradient(to right, rgba(13, 12, 11, 0.7) 0%, rgba(13, 12, 11, 0) 60%);
}
@keyframes lh-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.lh-hero__content { padding-bottom: clamp(56px, 11vh, 120px); padding-top: calc(var(--header-h) + 40px); }
.lh-hero__title {
	font-size: clamp(64px, 11.5vw, 188px);
	line-height: 0.95;
	letter-spacing: -0.025em;
	font-weight: 500;
	margin: 0 0 40px;
	color: var(--ink);
}
.lh-hero__title--film { font-style: italic; font-weight: 400; font-size: clamp(54px, 9vw, 150px); line-height: 0.92; max-width: 14ch; margin-bottom: 26px; }
.lh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lh-hero__caption {
	position: absolute; right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
	margin: 0; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted);
	writing-mode: vertical-rl; transform: rotate(180deg);
}
.lh-film__meta { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.lh-film__lang { font-size: 13px; color: var(--muted); margin: 0 0 34px; }
.lh-hero--film { min-height: max(560px, 92svh); }

/* =========================================================================
   Sections
   ========================================================================= */
.lh-section { padding-block: clamp(80px, 12vw, 168px); }
.lh-section + .lh-section { padding-top: 0; }
.lh-section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-bottom: clamp(36px, 5vw, 64px);
	padding-bottom: 28px;
	border-bottom: 1px solid var(--line);
}
.lh-section-head .lh-kicker { width: 100%; margin-bottom: 4px; }
.lh-section-title { font-size: clamp(44px, 6vw, 92px); line-height: 0.95; margin: 0; letter-spacing: -0.02em; }

/* Présentation + lauriers (accueil) */
.lh-about .lh-wrap { display: grid; gap: clamp(56px, 7vw, 112px); }
.lh-about .lh-content { padding-bottom: 0; }
.lh-about .lh-content > * { max-width: none; }
.lh-about__text .lh-intro, .lh-intro {
	font-family: var(--serif);
	font-size: clamp(26px, 3.1vw, 44px);
	line-height: 1.22;
	color: var(--ink);
	font-weight: 400;
	max-width: 30ch;
	margin: 0;
}
.lh-about .lh-content .lh-intro { margin: 0; max-width: 30ch; }
.lh-about .lh-content > :last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
	.lh-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
	.lh-about__grid > .lh-kicker { margin-top: 0.9em; }
}

/* Lauriers */
.lh-laurels { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(24px, 4vw, 56px); margin: 0; }
.lh-laurels > .lh-laurel { flex: 0 1 250px; }
.lh-laurels--home { border-top: 1px solid var(--line); padding-top: 48px; }
.lh-laurel { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); text-align: center; min-height: 92px; }
.lh-laurel__branch { flex: none; width: 34px; color: var(--accent); opacity: 0.9; }
.lh-laurel__branch svg { width: 100%; height: auto; }
.lh-laurel__branch.is-right svg { transform: scaleX(-1); }
.lh-laurel__text { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 190px; }
.lh-laurel__top { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); line-height: 1.4; }
.lh-laurel__name { font-family: var(--serif); font-size: 21px; line-height: 1.1; font-weight: 500; }
.lh-laurel__sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lh-laurel__film { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); margin-top: 2px; }

/* =========================================================================
   Grille de films
   ========================================================================= */
.lh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 40px); }
.lh-card.is-featured { grid-column: 1 / -1; }
@media (min-width: 901px) {
	.lh-grid > .lh-card:last-child:nth-child(even) { grid-column: 1 / -1; }
	.lh-grid > .lh-card:last-child:nth-child(even) .lh-card__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
	.lh-grid > .lh-card:last-child:nth-child(even) .lh-card__body { padding: 0 0 6px; }
}
.lh-card__link { display: block; text-decoration: none; color: var(--ink); }
.lh-card__link:hover { color: var(--ink); }
.lh-card__media { display: block; position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--bg-2); }
.lh-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); filter: saturate(0.92) brightness(0.92); transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.lh-card__link:hover .lh-card__media img { transform: scale(1.045); filter: saturate(1) brightness(1); }
.lh-card__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(236, 230, 218, 0.06); pointer-events: none; }
.lh-card__body { display: flex; flex-direction: column; padding-top: 22px; }
.lh-card__title { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; transition: color 0.3s var(--ease); }
.lh-card.is-featured .lh-card__title { font-size: clamp(36px, 4.2vw, 64px); }
.lh-card__link:hover .lh-card__title { color: var(--accent-2); }
.lh-card__meta { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.lh-grid--index { margin-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }

/* =========================================================================
   Autres réalisations (aperçu accueil)
   ========================================================================= */
.lh-worklist { list-style: none; margin: 0; padding: 0; }
.lh-worklist li { border-bottom: 1px solid var(--line); }
.lh-worklist a {
	display: grid;
	grid-template-columns: 168px 190px minmax(0, 1fr) 280px 32px;
	align-items: center;
	gap: 28px;
	padding: 20px 0;
	text-decoration: none;
	color: var(--ink);
	transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.lh-worklist a:hover { background: var(--bg-2); padding-inline: 16px; color: var(--ink); }
.lh-worklist__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.lh-worklist__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.85); transition: filter 0.5s var(--ease); }
.lh-worklist a:hover .lh-worklist__thumb img { filter: none; }
.lh-worklist__kind { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.lh-worklist__title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.lh-worklist__meta { font-size: 13px; color: var(--muted); text-align: right; }
.lh-worklist__arrow { font-size: 18px; color: var(--accent); transition: transform 0.4s var(--ease); }
.lh-worklist a:hover .lh-worklist__arrow { transform: translateX(6px); }

/* Presse (aperçu accueil) */
.lh-press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.lh-press-card a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.lh-press-card .lh-kicker { margin: 8px 0 0; }
.lh-press-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.lh-press-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) brightness(0.8); transition: filter 0.5s var(--ease), transform 1s var(--ease); }
.lh-press-card a:hover img { filter: none; transform: scale(1.03); }
.lh-press-card__title { font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.lh-press-card__cta { margin-top: auto; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lh-press-card a:hover .lh-press-card__cta { color: var(--accent-2); }

/* =========================================================================
   En-tête de page
   ========================================================================= */
.lh-pagehead { padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(40px, 5vw, 72px); }
.lh-pagehead__title { font-size: clamp(54px, 8.5vw, 136px); line-height: 0.92; letter-spacing: -0.025em; margin: 0; }
.lh-pagehead--404 .lh-pagehead__title { font-size: clamp(40px, 6vw, 80px); max-width: 18ch; margin-bottom: 40px; }

/* =========================================================================
   Contenu éditorial (pages, fiches films)
   ========================================================================= */
.lh-content { padding-bottom: clamp(80px, 10vw, 150px); }
.lh-content--intro { padding-bottom: 0; }
.lh-content > * { max-width: var(--text); margin-inline: 0; }
.lh-content > :first-child { margin-top: 0; }
.lh-content a { color: var(--ink); }
.lh-content a:hover { color: var(--accent-2); }
.lh-content h2 { font-size: clamp(32px, 3.4vw, 46px); margin-top: 1.6em; }
.lh-content h3 { font-size: 28px; margin-top: 1.4em; }
.lh-content ul, .lh-content ol { padding-left: 1.2em; }
.lh-content .lh-intro { margin-inline: 0; max-width: 32ch; margin-bottom: clamp(48px, 6vw, 88px); }
.lh-content .lh-lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--ink); }
.lh-content > .wp-block-gallery,
.lh-content > .lh-laurels,
.lh-content > .lh-credits,
.lh-content > .lh-project,
.lh-content > .lh-contact,
.lh-content > .lh-press,
.lh-content > .wp-block-image,
.lh-content > .alignwide { max-width: none; }
.lh-content > .alignfull { max-width: none; }

/* Les thèmes classiques ajoutent un conteneur interne aux groupes : on le rend « transparent » */
.lh-content .wp-block-group__inner-container { display: contents; }

/* Titres « étiquette » (Images, Fiche technique…) */
.lh-content h2.lh-label {
	display: flex; align-items: center; gap: 14px;
	max-width: none;
	margin-top: clamp(72px, 9vw, 128px);
	margin-bottom: 32px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}
.lh-content h2.lh-label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* Fiche film */
.lh-film__content { padding-top: clamp(56px, 7vw, 96px); }
.lh-film__content > .lh-lead { font-size: clamp(26px, 2.9vw, 40px); max-width: 36ch; }
.lh-film__content > .lh-laurels { margin-top: clamp(48px, 6vw, 72px); padding: 36px 0; border-block: 1px solid var(--line); }

/* Fiche technique */
.lh-content .lh-credits { list-style: none; padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.lh-credits li { display: grid; grid-template-columns: minmax(150px, 40%) 1fr; gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.lh-credits li strong { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.lh-credits li { font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--ink); }

/* Galeries : photogrammes affichés sans recadrage, tous à la même hauteur.
   Le script mesure chaque image, répartit les rangées et fixe la taille de chaque vignette. */
.lh-content .wp-block-gallery.has-nested-images {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 12px !important;
	margin-bottom: 0;
}
.lh-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	flex: 0 1 calc(50% - 6px);
	width: auto !important; margin: 0 !important; max-width: 100% !important;
	position: relative;
	background: var(--bg-2);
	overflow: hidden;
}
.lh-content .wp-block-gallery.is-laid figure.wp-block-image { flex: none; }
.lh-content .wp-block-gallery .lh-break { flex-basis: 100%; height: 0; }
.lh-content .wp-block-gallery.has-nested-images figure.wp-block-image a { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; }
.lh-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	display: block; width: 100% !important; height: auto !important; object-fit: cover !important; max-width: none !important;
}
.lh-content .wp-block-gallery.is-laid figure.wp-block-image img { height: 100% !important; }
.lh-content .wp-block-gallery.is-laid figure.is-cropped-frame img { position: absolute; }
.lh-content .wp-block-gallery figure.wp-block-image img { transition: transform 1s var(--ease), filter 0.5s var(--ease); filter: brightness(0.94); }
.lh-content .wp-block-gallery figure.wp-block-image a:hover img { transform: scale(1.03); filter: none; }
.lh-content .wp-block-gallery figure.wp-block-image a { cursor: zoom-in; }
.lh-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)::before { display: none; }
.lh-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { display: none; }
.wp-block-image figure, figure { margin: 0; }

/* Autres réalisations */
.lh-content > .lh-project {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
	column-gap: clamp(32px, 5vw, 80px);
	align-items: start;
	padding-block: clamp(56px, 7vw, 96px);
	border-top: 1px solid var(--line);
}
.lh-project > *, .lh-project > .wp-block-group__inner-container > * { grid-column: 1; margin: 0; }
.lh-project > .wp-block-gallery, .lh-project > .wp-block-group__inner-container > .wp-block-gallery { grid-column: 2; grid-row: 1 / span 6; }
.lh-project .lh-kicker { margin-bottom: 18px; }
.lh-content .lh-project__title { font-size: clamp(30px, 3vw, 44px); margin: 0 0 16px; }
.lh-project__meta { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px !important; }
.lh-project__text { font-size: 15.5px; }

/* Presse (page) */
.key-press .lh-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.key-press .lh-content > * { max-width: none; margin: 0; }
.lh-press { display: flex; flex-direction: column; }
.lh-press > *, .lh-press > .wp-block-group__inner-container > * { margin: 0 0 14px; }
.lh-press .wp-block-image { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 22px; background: var(--bg-2); }
.lh-press .wp-block-image img, .lh-press .wp-block-image a { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-press .wp-block-image img { filter: grayscale(0.4) brightness(0.85); transition: filter 0.5s var(--ease); }
.lh-press .wp-block-image a:hover img { filter: none; }
.lh-content .lh-press__title { font-size: 28px; margin: 0 0 12px; line-height: 1.15; }
.lh-content .lh-press__title a { text-decoration: none; }
.lh-press__text { font-size: 15px; color: var(--ink-2); }
.lh-press__cta { margin-top: auto !important; }
.lh-press__cta a { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 5px; }

/* Contact */
.lh-content > .lh-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.lh-contact__aside > *, .lh-contact__aside > .wp-block-group__inner-container > * { margin: 0 0 28px; }
.lh-contact__aside .lh-lead { font-size: clamp(26px, 2.6vw, 36px); }
.lh-email { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; word-break: break-word; }
.lh-email:hover { color: var(--accent-2); }

/* Formulaire */
.lh-form { display: grid; gap: 8px; }
.lh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.lh-field { margin: 0 0 26px; display: flex; flex-direction: column; }
.lh-field label { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lh-field input, .lh-field textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line-2);
	color: var(--ink);
	font: inherit;
	font-size: 17px;
	padding: 10px 0;
	border-radius: 0;
	transition: border-color 0.3s var(--ease);
}
.lh-field textarea { resize: vertical; min-height: 160px; }
.lh-field input:focus, .lh-field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.lh-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 8px 0 0; }
.lh-form-foot small { flex: 1 1 260px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.lh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lh-form-notice { padding: 16px 20px; border: 1px solid var(--line-2); margin-bottom: 28px; font-size: 15px; }
.lh-form-notice.is-ok { border-color: var(--accent); color: var(--ink); }
.lh-form-notice.is-err { border-color: #b4574a; color: var(--ink); }

/* Liste d'articles (repli) */
.lh-postlist { list-style: none; padding: 0; }
.lh-postlist a { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lh-postlist__title { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.lh-postlist__date { color: var(--muted); font-size: 13px; }

/* =========================================================================
   Navigation entre films
   ========================================================================= */
.lh-filmnav { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); padding-bottom: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding-top: 48px; }
.lh-filmnav__item { position: relative; display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.lh-filmnav__item.is-next { text-align: right; }
.lh-filmnav__media { aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--bg-2); }
.lh-filmnav__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.8); transition: filter 0.5s var(--ease), transform 1s var(--ease); }
.lh-filmnav__item:hover img { filter: none; transform: scale(1.03); }
.lh-filmnav__label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.lh-filmnav__title { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }
.lh-filmnav__item:hover { color: var(--accent-2); }

/* =========================================================================
   Appel au contact + pied de page
   ========================================================================= */
.lh-cta { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, rgba(194, 160, 107, 0.08), transparent 60%), var(--bg); }
.lh-cta__title { font-size: clamp(48px, 7.5vw, 124px); line-height: 0.95; letter-spacing: -0.025em; max-width: 14ch; margin-bottom: 28px; }
.lh-cta__text { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; color: var(--ink); max-width: 30ch; margin-bottom: 40px; }
.lh-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }

.lh-footer { border-top: 1px solid var(--line); padding-top: 64px; font-size: 14px; }
.lh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.lh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lh-footer a, .lh-footer .lh-linkbtn { text-decoration: none; color: var(--ink-2); }
.lh-footer a:hover, .lh-footer .lh-linkbtn:hover { color: var(--accent-2); }
.lh-footer .lh-email { font-family: var(--sans); font-size: 14px; border: 0; padding: 0; }
.lh-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 12.5px; color: var(--muted); }
.lh-footer__bottom p { margin: 0; }

/* =========================================================================
   Fenêtres vidéo et visionneuse d'images
   ========================================================================= */
.lh-modal, .lh-lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: rgba(5, 5, 4, 0.96);
	color: var(--ink);
}
.lh-modal::backdrop, .lh-lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lh-modal[open], .lh-lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lh-fade 0.35s var(--ease); }
@keyframes lh-fade { from { opacity: 0; } to { opacity: 1; } }
.lh-modal__frame { width: min(92vw, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lh-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.lh-modal__close {
	position: absolute; top: 18px; right: 22px; z-index: 2;
	width: 52px; height: 52px; border-radius: 50%;
	font-size: 30px; line-height: 1; color: var(--ink);
	border: 1px solid var(--line-2);
	display: flex; align-items: center; justify-content: center;
}
.lh-modal__close:hover { border-color: var(--ink); }
.lh-lightbox__fig { max-width: 90vw; max-height: 86vh; position: relative; overflow: hidden; }
.lh-lightbox__fig img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lh-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lh-lightbox__nav:hover { border-color: var(--ink); }
.lh-lightbox__nav.is-prev { left: 22px; }
.lh-lightbox__nav.is-next { right: 22px; }

/* =========================================================================
   Apparition au défilement
   ========================================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .lh-card { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .lh-card.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal], .js .lh-card { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
	.lh-nav, .lh-header__cv { display: none; }
	.lh-burger { display: inline-flex; }
	.lh-header__end { margin-left: auto; }
	.lh-worklist a { grid-template-columns: 132px 1fr auto; gap: 8px 20px; }
	.lh-worklist__kind { grid-column: 2; grid-row: 1; align-self: end; }
	.lh-worklist__title { grid-column: 2; grid-row: 2; align-self: start; }
	.lh-worklist__thumb { grid-row: 1 / span 3; }
	.lh-worklist__meta { grid-column: 2; grid-row: 3; text-align: left; }
	.lh-worklist__arrow { grid-column: 3; grid-row: 1 / span 3; }
	.lh-content > .lh-project { grid-template-columns: 1fr; }
	.lh-project > .wp-block-gallery, .lh-project > .wp-block-group__inner-container > .wp-block-gallery { grid-column: 1; grid-row: auto; margin-top: 28px; }
}
@media (max-width: 900px) {
	:root { --header-h: 70px; }
	.lh-brand__name { font-size: 22px; }
	.lh-grid { grid-template-columns: 1fr; }
	.lh-press-grid { grid-template-columns: 1fr; }
	.lh-content .lh-credits { grid-template-columns: 1fr; }
	.lh-content > .lh-contact { grid-template-columns: 1fr; }
	.lh-footer__grid { grid-template-columns: 1fr 1fr; }
	.lh-footer__brand { grid-column: 1 / -1; }
	.lh-hero__caption { display: none; }
	.lh-hero__media img { object-position: 55% 40%; }
}
@media (max-width: 600px) {
	body { font-size: 15.5px; }
	.lh-header__end .lh-lang { display: none; }
	.lh-field-row { grid-template-columns: 1fr; }
	.lh-credits li { grid-template-columns: 1fr; gap: 2px; }
	.lh-filmnav { grid-template-columns: 1fr; }
	.lh-filmnav__item.is-next { text-align: left; }
	.lh-btn { padding: 0 20px; }
	.lh-hero__actions .lh-btn { flex: 1 1 auto; justify-content: center; }
	.lh-worklist a { grid-template-columns: 96px 1fr; }
	.lh-worklist__arrow { display: none; }
	.lh-laurels { gap: 24px 8px; }
	.lh-laurels > .lh-laurel { flex: 0 1 calc(50% - 4px); }
	.lh-laurel { flex-direction: row; gap: 4px; }
	.lh-laurel__branch { width: 20px; }
	.lh-laurel__name { font-size: 17px; }
	.lh-laurel__top { font-size: 9px; letter-spacing: 0.14em; }
	.lh-section-head { align-items: flex-start; flex-direction: column; }
}

/* Le premier bloc d'une fiche film colle à l'en-tête */
.lh-film__content > :first-child { margin-top: 0 !important; }
.lh-content--intro:empty { display: none; }

/* Barre d'administration WordPress (visible seulement quand on est connecté) */
.admin-bar .lh-header { top: 32px; }
.admin-bar .lh-menu { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .lh-header, .admin-bar .lh-menu { top: 46px; }
}
