/*
Theme Name: Laura Diaz
Description: Thème sur mesure du site de Laura Diaz, cheffe monteuse : projets par catégorie, pages projet et page About.
Version: 1.5.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: lauradiaz
*/

/* Montserrat (licence SIL Open Font, voir assets/fonts/OFL.txt), hébergée avec le thème. */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-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;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-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;
}

/* Grille et tailles reprises du site précédent : tout est proportionnel à la largeur de l'écran. */
html {
	--sbw: 0px;
	--grid-width: calc(93.6vw - var(--sbw) * 0.936);
	--margin: calc(3.2vw - var(--sbw) * 0.032);
	--gutter: calc(3.2vw - var(--sbw) * 0.032);
	--column: calc(12.93333vw - var(--sbw) * 0.12933);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	font-size: min(calc(4.26667vw - var(--sbw) * 0.04267), 20.267px);
}

@media (min-width: 768px) {
	html {
		--grid-width: calc(96.875vw - var(--sbw) * 0.96875);
		--margin: calc(1.5625vw - var(--sbw) * 0.01563);
		--gutter: calc(1.5625vw - var(--sbw) * 0.01563);
		--column: calc(14.84375vw - var(--sbw) * 0.14844);
		font-size: calc(2.08333vw - var(--sbw) * 0.02083);
	}
}

@media (min-width: 1024px) {
	html {
		--grid-width: calc(95.55556vw - var(--sbw) * 0.95556);
		--margin: calc(2.22222vw - var(--sbw) * 0.02222);
		--gutter: calc(1.66667vw - var(--sbw) * 0.01667);
		--column: calc(6.43519vw - var(--sbw) * 0.06435);
		font-size: min(calc(1.11111vw - var(--sbw) * 0.01111), 18.667px);
	}
}

*,
::before,
::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0 solid;
}

html {
	font-family: "Montserrat", Arial, sans-serif;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	overflow-y: scroll;
	overscroll-behavior: none;
}

body {
	min-height: 100vh;
	background: #000;
	color: #fff;
}

img,
video,
iframe,
svg {
	display: block;
}

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

a {
	color: inherit;
	text-decoration: inherit;
}

h1,
h2,
p {
	font-size: inherit;
	font-weight: inherit;
}

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

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

.screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: var(--margin);
	left: 50%;
	z-index: 1000;
	padding: 0.5rem 1rem;
	background: #fff;
	color: #000;
	font-size: max(12px, 0.75rem);
	transform: translateX(-50%);
}

/* En-tête, menu des catégories et lien About : fixes, au-dessus du contenu. */
.site-header {
	position: fixed;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	padding: var(--margin);
	line-height: 0.9;
}

.site-header__link {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-header__name {
	font-size: max(8px, 0.5rem);
	line-height: 1.1;
	text-transform: uppercase;
	opacity: 0.8;
}

.site-nav {
	position: fixed;
	bottom: 1rem;
	left: 50%;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0.875rem 1.5rem;
	border: 0.5px solid #ffffff60;
	border-radius: 4px;
	background: #ffffff20;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: max(10px, 0.625rem);
	text-transform: uppercase;
	transform: translateX(-50%);
}

.site-footer {
	position: fixed;
	top: 0.625rem;
	right: var(--margin);
	z-index: 100;
	display: flex;
	gap: 1.25rem;
	font-size: max(10px, 0.625rem);
	text-transform: uppercase;
}

.site-footer a {
	opacity: 0.5;
	transition: opacity 0.2s var(--ease);
}

.admin-bar .site-header,
.admin-bar .site-footer {
	margin-top: 46px;
}

/* Vignettes des projets (accueil et catégories). */
.projects {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 3rem 0;
}

.project-tile {
	position: relative;
	display: block;
	width: calc(6 * var(--column) + 5 * var(--gutter));
}

.project-tile__media {
	width: 100%;
	aspect-ratio: 8 / 2.5;
	object-fit: cover;
	animation: fade-in 0.5s ease-in;
}

.project-tile__video {
	display: none;
	opacity: 0.6;
	transition: opacity 0.2s var(--ease);
}

.project-tile__caption {
	position: absolute;
	right: var(--margin);
	bottom: var(--margin);
	left: var(--margin);
	text-transform: uppercase;
}

/* Sur téléphone et tablette, des tailles proches de la version ordinateur ; les titres longs passent à la ligne. */
.project-tile__title {
	margin: 0.75rem 0 0.5rem;
	font-size: clamp(20px, 5.5vw, 28px);
	font-weight: 900;
	line-height: 0.85;
	letter-spacing: -1.8px;
}

.project-tile__client {
	font-size: clamp(12px, 3.4vw, 14px);
	line-height: 0.6;
	white-space: nowrap;
	opacity: 0.8;
}

/* Page projet. */
.project-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 40vh;
}

.project-hero__image {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.4;
}

.project-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--gutter);
	width: 100%;
	margin: 0 auto 2rem;
	padding: 0 var(--margin);
}

.project-hero__heading {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-bottom: 1.5rem;
}

.project-hero__title {
	margin: 1rem 0 -1.25rem;
	font-size: max(32px, 2rem);
	font-weight: 700;
	line-height: 0.9;
	text-transform: uppercase;
}

.project-hero__details {
	width: calc(4 * var(--column) + 3 * var(--gutter));
}

.project-hero__label {
	font-size: max(8px, 0.5rem);
	text-transform: uppercase;
	opacity: 0.5;
}

.project-hero__client {
	font-size: max(10px, 0.625rem);
	line-height: 0.9;
}

.project-hero__credits {
	margin-top: 1.5rem;
	font-size: max(10px, 0.625rem);
	line-height: 1.1;
	white-space: pre-line;
	opacity: 0.6;
}

.project-film-wrap {
	display: flex;
	justify-content: center;
	width: var(--grid-width);
	margin: 0 auto;
	padding: 2.5rem 0;
}

.project-film {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	animation: fade-in 0.5s ease-in;
}

/* Page About. */
.about-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 30vh;
}

.about-hero__image {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-hero__name {
	margin-left: var(--gutter);
	font-size: max(56px, 3.5rem);
	font-weight: 700;
	line-height: 0.9;
	text-transform: uppercase;
}

.about {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6.25rem;
	width: var(--grid-width);
	margin: 0 auto;
	padding: 6.25rem 0;
}

.about__text {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: calc(4 * var(--column) + 3 * var(--gutter));
}

.about__text > * {
	width: calc(3 * var(--column) + 2 * var(--gutter));
	font-size: max(12px, 0.75rem);
	line-height: 1.1;
	opacity: 0.6;
}

.about__contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: max(12px, 0.75rem);
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.about__label {
	margin-bottom: 1rem;
}

.about__contact a {
	opacity: 0.5;
	transition: opacity 0.2s var(--ease);
}

.about__legal {
	margin-top: 1rem;
	font-size: max(10px, 0.625rem);
}

/* Pages simples (mentions légales) et page introuvable. */
.text-page {
	width: var(--grid-width);
	margin: 0 auto;
	padding: 8rem 0 6.25rem;
}

.text-page__title {
	margin-bottom: 3rem;
	font-size: max(32px, 2rem);
	font-weight: 700;
	line-height: 0.9;
	text-transform: uppercase;
}

.text-page__content {
	font-size: max(12px, 0.75rem);
	line-height: 1.5;
}

.text-page__content > * + * {
	margin-top: 1em;
}

.text-page__content h2 {
	margin-top: 2.5em;
	font-weight: 700;
	text-transform: uppercase;
}

.text-page__content p,
.text-page__content li {
	opacity: 0.7;
}

.text-page__content a {
	text-decoration: underline;
}

.not-found {
	width: var(--grid-width);
	min-height: 100svh;
	margin: 0 auto;
	padding-top: 8rem;
	font-size: max(12px, 0.75rem);
	font-weight: 500;
	text-transform: uppercase;
}

.not-found__link {
	display: inline-block;
	margin-top: 1rem;
	opacity: 0.5;
}

@media (min-width: 783px) {
	.admin-bar .site-header,
	.admin-bar .site-footer {
		margin-top: 32px;
	}
}

@media (min-width: 1024px) {
	.site-header__name {
		font-size: max(10px, 0.625rem);
	}

	.site-nav {
		top: 1.25rem;
		bottom: auto;
	}

	.admin-bar .site-nav {
		top: calc(1.25rem + 32px);
	}

	.site-footer {
		top: var(--margin);
	}

	.projects {
		gap: 1rem;
		padding: 5.25rem 0;
	}

	.project-tile {
		width: calc(8 * var(--column) + 7 * var(--gutter));
	}

	.project-tile__title {
		font-size: 1.8vw;
		line-height: 0.6;
	}

	.project-tile__client {
		font-size: max(14px, 0.875rem);
		opacity: 0.5;
	}

	.project-hero {
		flex-direction: row;
		justify-content: center;
	}

	.project-hero__inner {
		width: calc(10 * var(--column) + 9 * var(--gutter));
		margin-bottom: 4rem;
		padding: 0;
	}

	.project-hero__heading {
		width: calc(3 * var(--column) + 2 * var(--gutter));
		margin-bottom: 0;
	}

	.project-hero__title {
		width: calc(3 * var(--column) + 2 * var(--gutter));
		font-size: max(40px, 2.5rem);
	}

	.project-hero__details {
		width: calc(3 * var(--column) + 2 * var(--gutter));
		margin-left: calc(4 * var(--column) + 4 * var(--gutter));
	}

	.project-hero__label {
		font-size: max(10px, 0.625rem);
	}

	.project-hero__client,
	.project-hero__credits {
		font-size: max(12px, 0.75rem);
	}

	.project-film-wrap {
		padding: 9.375rem 0;
	}

	.project-film {
		width: calc(10 * var(--column) + 9 * var(--gutter));
	}

	.about-hero__name {
		margin-left: calc(2 * var(--column) + 3 * var(--gutter));
	}

	.about {
		flex-direction: row;
		gap: 0;
		width: calc(8 * var(--column) + 7 * var(--gutter));
		padding: 7.5rem 0;
	}

	.about__contact {
		width: calc(2 * var(--column) + var(--gutter));
	}

	.text-page {
		width: calc(8 * var(--column) + 7 * var(--gutter));
		padding-top: 9.375rem;
	}

	.text-page__title {
		font-size: max(40px, 2.5rem);
	}

	.text-page__content {
		width: calc(5 * var(--column) + 4 * var(--gutter));
	}
}

/* Extraits vidéo : seulement sur un écran large avec une souris (ailleurs, la bannière fixe). */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.has-video .project-tile__video {
		display: block;
	}

	.has-video .project-tile__image {
		display: none;
	}
}

@media (hover: hover) and (pointer: fine) {
	.site-footer a:hover,
	.about__contact a:hover,
	.not-found__link:hover,
	.project-tile:hover .project-tile__video {
		opacity: 1;
	}
}

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