/*
Theme Name: Obskura
Theme URI: https://obskurastudio.com
Author: Obskura Studio
Author URI: https://obskurastudio.com
Description: Thème WordPress sur-mesure pour Obskura, studio de production vidéo (musique, live & culture, documentaire). Identité de marque par Tom Depont.
Version: 1.0.0
Requires at least: 6.0
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: obskura
*/

/* -----------------------------------------------------------
   0. Variables (palette Obskura : Béton / Velours / Écorce / Craie)
----------------------------------------------------------- */
:root {
	--color-beton: #f4eff1;
	--color-velours: #b77690;
	--color-ecorce: #3a2b31;
	--color-craie: #181818;

	--color-bg: var(--color-beton);
	--color-bg-alt: var(--color-ecorce);
	--color-text: var(--color-craie);
	--color-text-muted: #6e5f65;
	--color-accent: var(--color-velours);
	--color-border: rgba(24, 24, 24, 0.14);

	--font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-display: Georgia, "Times New Roman", serif;

	--wrap: 1200px;
	--radius: 2px;
}

/* -----------------------------------------------------------
   1. Reset & base
----------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

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

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

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	font-family: var(--font-body);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 32px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* -----------------------------------------------------------
   2. Buttons
----------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: var(--radius);
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
	background: var(--color-accent);
	color: var(--color-beton);
}

.btn--primary:hover {
	background: var(--color-craie);
	text-decoration: none;
}

.btn--ghost {
	background: transparent;
	color: var(--color-craie);
	border-color: var(--color-border);
}

.btn--ghost:hover {
	border-color: var(--color-craie);
	text-decoration: none;
}

/* -----------------------------------------------------------
   3. Header
----------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(244, 239, 241, 0.92);
	border-bottom-color: var(--color-border);
	backdrop-filter: blur(6px);
}

.site-header__inner {
	position: relative;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 20px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	color: var(--color-craie);
}

.site-logo img {
	max-height: 40px;
	width: auto;
}

.site-logo__mark {
	display: inline-flex;
}

.site-logo__mark svg {
	display: block;
	width: 148px;
	height: auto;
	fill: currentColor;
}

.site-header.is-scrolled .site-logo__mark svg {
	width: 128px;
	transition: width 0.25s ease;
}

.site-logo__reduced {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-logo__reduced img {
	display: block;
	height: 42px;
	width: auto;
}

.site-header.is-scrolled .site-logo__reduced {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.home .site-header .site-logo {
	opacity: 0;
	pointer-events: none;
}

.site-logo__text {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-craie);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.primary-nav__list {
	display: flex;
	gap: 32px;
}

.primary-nav__list a {
	color: var(--color-craie);
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.primary-nav__list a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.menu-toggle span {
	display: block;
	height: 2px;
	background: var(--color-craie);
}

/* -----------------------------------------------------------
   4. Hero
----------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	padding-top: 20px;
	box-sizing: border-box;
	background: var(--color-bg) center/cover no-repeat;
}

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

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(244, 239, 241, 0.55) 0%, rgba(244, 239, 241, 0.35) 45%, rgba(244, 239, 241, 0.85) 100%);
	z-index: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 780px;
	margin: 0 auto;
	padding: 0 32px;
	text-align: center;
}

.hero__content--brand {
	max-width: none;
	width: 100%;
}

.hero__logo {
	transition: opacity 0.4s ease, transform 0.4s ease;
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 0.5em;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0 24px;
	box-sizing: border-box;
	color: var(--color-craie);
}

.hero__logo svg {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	fill: currentColor;
}

#site-header.is-scrolled ~ #main-content .hero__logo {
	opacity: 0;
	transform: translateY(-16px);
	pointer-events: none;
}

.hero__logo-text {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(3rem, 14vw, 11rem);
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-align: center;
}

.hero__actions--nav {
	margin-top: 0.4em;
}

.hero__title {
	color: var(--color-craie);
	margin-bottom: 0.4em;
}

.hero__subtitle {
	color: var(--color-text-muted);
	font-size: 1.15rem;
	max-width: 560px;
	margin: 0 auto 2em;
}

.hero__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* -----------------------------------------------------------
   5. Home sections
----------------------------------------------------------- */
.home-content {
	padding: 96px 0;
	border-bottom: 1px solid var(--color-border);
}

.home-content :is(h1, h2, h3) {
	color: var(--color-craie);
}

.home-content p {
	color: var(--color-text-muted);
	max-width: 760px;
}

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 40px;
}

.link-more {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
}

.home-projects {
	padding: 96px 0;
}

.home-projects__more {
	margin-top: 48px;
	text-align: center;
}

.home-cta {
	padding: 120px 0;
	text-align: center;
	background: var(--color-bg-alt);
	color: var(--color-beton);
}

.home-cta h2 {
	max-width: 640px;
	margin: 0 auto 1.2em;
}

/* -----------------------------------------------------------
   6. Projects grid & cards
----------------------------------------------------------- */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.project-card {
	display: block;
	color: var(--color-craie);
	position: relative;
}

.project-card:hover {
	text-decoration: none;
}

.project-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.project-card:hover .project-card__media img {
	transform: scale(1.05);
}

.project-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-ecorce), var(--color-beton));
}

.project-card__play {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(244, 239, 241, 0.6);
	color: var(--color-craie);
	border-radius: 50%;
	font-size: 0.75rem;
}

.project-card__info {
	padding-top: 14px;
}

.project-card__info h3 {
	margin-bottom: 4px;
	font-size: 1.05rem;
}

.project-card__info p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.88rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.empty-state {
	color: var(--color-text-muted);
	font-style: italic;
}

/* -----------------------------------------------------------
   7. Page header / generic content
----------------------------------------------------------- */
.page-header {
	padding: 160px 0 60px;
}

.page-header h1 {
	color: var(--color-craie);
}

.page-content {
	padding-bottom: 100px;
}

.page-content :is(h1, h2, h3) {
	color: var(--color-craie);
}

.page-content p,
.page-content li {
	color: var(--color-text-muted);
}

.page-content img {
	border-radius: var(--radius);
}

/* -----------------------------------------------------------
   8. Projects archive & filters
----------------------------------------------------------- */
.projects-archive {
	padding-bottom: 120px;
}

.projects-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 48px;
}

.filter {
	padding: 0;
	border: none;
	border-radius: 0;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.filter:hover,
.filter.is-active {
	color: var(--color-accent);
	text-decoration: none;
}

/* -----------------------------------------------------------
   9. Projects index (editorial list, à la Anti Studio)
----------------------------------------------------------- */
.projects-index {
	border-top: 1px solid var(--color-border);
}

.index-row {
	display: grid;
	grid-template-columns: 1fr 2.2fr 90px;
	align-items: center;
	gap: 20px;
	padding: 20px 4px;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-muted);
	transition: color 0.2s ease, opacity 0.25s ease;
}

.index-row:hover {
	color: var(--color-craie);
	text-decoration: none;
}

.projects-index:hover .index-row:not(:hover) {
	opacity: 0.35;
}

.index-row__client {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

.index-row__title {
	font-size: 1.15rem;
	font-weight: 600;
}

.index-row__year {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-size: 0.9rem;
}

.index-preview {
	position: fixed;
	width: 260px;
	aspect-ratio: 16 / 10;
	pointer-events: none;
	background-color: var(--color-bg-alt);
	background-size: cover;
	background-position: center;
	border-radius: var(--radius);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 300;
}

.index-preview.is-visible {
	opacity: 1;
	transform: scale(1);
}

/* -----------------------------------------------------------
   10. Single project — split screen
----------------------------------------------------------- */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 40px;
}

.back-link:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.single-projet__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.single-projet__col--info {
	padding: 150px 48px 80px 48px;
}

.single-projet__col--info h1 {
	color: var(--color-craie);
	margin-top: 0.2em;
}

.single-projet__content {
	color: var(--color-text-muted);
	max-width: 480px;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.82rem;
	color: var(--color-accent);
	font-weight: 700;
	margin-bottom: 0.6em;
}

.single-projet__col--media {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.single-projet__col--media iframe,
.single-projet__col--media video,
.single-projet__col--media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.credits-list {
	margin-top: 32px;
	max-width: 480px;
}

.credits-list li {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--color-border);
	font-size: 0.92rem;
}

.credits-list__label {
	min-width: 170px;
	flex-shrink: 0;
	color: var(--color-text-muted);
	text-transform: uppercase;
	font-size: 0.76rem;
	letter-spacing: 0.05em;
	padding-top: 2px;
}

.credits-list__value {
	color: var(--color-craie);
}

.credits-list__value::before {
	content: "↳ ";
	color: var(--color-accent);
}

.single-projet > .wrap {
	padding-top: 64px;
	padding-bottom: 40px;
}

.single-projet > .wrap + .wrap {
	padding-top: 0;
	padding-bottom: 96px;
}

/* -----------------------------------------------------------
   10. Blog (Journal)
----------------------------------------------------------- */
.blog-list {
	padding-bottom: 100px;
}

.blog-card {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 32px;
	padding: 32px 0;
	border-bottom: 1px solid var(--color-border);
}

.blog-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-bg-alt);
}

.blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__body h2 {
	margin: 0.2em 0 0.4em;
}

.blog-card__body h2 a {
	color: var(--color-craie);
}

.blog-card__body p {
	color: var(--color-text-muted);
}

.single-post__media {
	margin-top: 88px;
}

.single-post__body {
	padding: 56px 0 100px;
	max-width: 780px;
}

.single-post__body h1 {
	color: var(--color-craie);
}

.single-post__content {
	color: var(--color-text-muted);
}

.single-post__content img {
	border-radius: var(--radius);
	margin: 1.5em 0;
}

/* Pagination */
.pagination,
.nav-links {
	display: flex;
	gap: 10px;
	margin-top: 40px;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text-muted);
}

.pagination .current,
.nav-links .current {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* -----------------------------------------------------------
   11. Contact page
----------------------------------------------------------- */
.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
}

.contact-intro p,
.contact-intro li {
	color: var(--color-text-muted);
}

.contact-info {
	margin-top: 24px;
}

.contact-info li {
	padding: 12px 0;
	border-top: 1px solid var(--color-border);
	display: flex;
	gap: 10px;
}

.contact-info li span {
	color: var(--color-craie);
	font-weight: 700;
	min-width: 90px;
}

.contact-info li a::before {
	content: "↳ ";
	color: var(--color-accent);
}

.contact-form {
	background: var(--color-bg-alt);
	padding: 32px;
	border-radius: var(--radius);
}

.contact-form__honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.form-row {
	margin-bottom: 18px;
}

.form-row label {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(244, 239, 241, 0.75);
	margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--color-beton);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-craie);
	font-family: var(--font-body);
	font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--color-accent);
}

.form-notice {
	padding: 14px 18px;
	border-radius: var(--radius);
	margin-bottom: 20px;
	font-size: 0.92rem;
}

.form-notice--success {
	background: rgba(183, 118, 144, 0.18);
	color: var(--color-craie);
	border: 1px solid var(--color-accent);
}

.form-notice--error {
	background: rgba(200, 80, 80, 0.15);
	color: var(--color-craie);
	border: 1px solid #c85050;
}

/* -----------------------------------------------------------
   12. Footer
----------------------------------------------------------- */
.site-footer {
	background: var(--color-ecorce);
	border-top: 1px solid var(--color-border);
	padding-top: 64px;
	overflow: hidden;
}

.giant-wordmark {
	color: var(--color-beton);
	opacity: 0.08;
	text-align: center;
	padding: 20px 20px 0;
	user-select: none;
}

.giant-wordmark svg {
	display: block;
	width: min(1400px, 92vw);
	height: auto;
	margin: 0 auto;
	fill: currentColor;
}

/* Text fallback, only used if the logo SVG file is ever missing. */
.giant-wordmark:not(:has(svg)) {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(4rem, 17vw, 15rem);
	line-height: 0.8;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

.site-footer .site-logo__text {
	display: block;
	margin-bottom: 12px;
	color: var(--color-beton);
}

.site-footer p {
	color: rgba(244, 239, 241, 0.65);
}

.widget-title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-beton);
	margin-bottom: 14px;
}

.footer-nav__list li {
	margin-bottom: 8px;
}

.footer-nav__list a {
	color: rgba(244, 239, 241, 0.65);
}

.footer-nav__list a:hover {
	color: var(--color-accent);
}

.site-footer__col a {
	color: rgba(244, 239, 241, 0.65);
}

.site-footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 20px 32px;
	text-align: center;
}

.site-footer__bottom p {
	margin: 0;
	color: rgba(244, 239, 241, 0.65);
	font-size: 0.85rem;
}

/* -----------------------------------------------------------
   13. Responsive
----------------------------------------------------------- */
@media (max-width: 900px) {
	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		width: 78%;
		max-width: 340px;
		background: var(--color-ecorce);
		padding: 100px 32px 32px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
	}

	.primary-nav.is-open {
		transform: translateX(0);
	}

	.primary-nav__list a {
		color: var(--color-beton);
	}

	.primary-nav__list {
		flex-direction: column;
		gap: 22px;
	}

	.menu-toggle {
		display: flex;
	}

	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-layout {
		grid-template-columns: 1fr;
	}

	.blog-card {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.single-projet__split {
		grid-template-columns: 1fr;
	}

	.single-projet__col--media {
		position: relative;
		height: 56vw;
		order: -1;
	}

	.single-projet__col--info {
		padding: 120px 20px 60px;
	}

	.index-row {
		grid-template-columns: 1fr 60px;
		grid-template-areas: "title year" "client client";
		row-gap: 4px;
	}

	.index-row__client {
		grid-area: client;
	}

	.index-row__title {
		grid-area: title;
	}

	.index-row__year {
		grid-area: year;
	}

	.index-preview {
		display: none;
	}
}

@media (max-width: 560px) {
	.wrap {
		padding: 0 20px;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.page-header {
		padding: 130px 0 40px;
	}
}
