/* NAËLYA Studio : styles du thème (d'après la maquette Figma, 1920 px de large). */

:root {
	--brown: #2b1d17;
	--light: #e4e4e4;
	--blue: #a1b9d0;
	--red: #6d1212;
	--taupe: #978f7e;
	--track: 0.286em;              /* espacement des lettres de la maquette (28,6 %) */
	--gutter: clamp(16px, 3.33vw, 64px);
	--section-y: clamp(56px, 5vw, 96px);
	--header-h: 100px;
	--sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--display: "Bodoni Moda", "Didot", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--light);
	color: var(--brown);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }

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

/* ---------- Typographie ---------- */
.h1 {
	font-size: clamp(28px, 2.5vw, 48px);
	line-height: 1.1;
	letter-spacing: var(--track);
	text-transform: uppercase;
	text-align: center;
}
.h3 {
	font-size: clamp(18px, 1.25vw, 24px);
	line-height: 1.2;
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.body-text {
	font-size: clamp(13px, 0.85vw, 16px);
	line-height: 1.4;
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.body-text p + p { margin-top: 16px; }
.caption-text {
	font-size: clamp(13px, 0.85vw, 16px);
	line-height: 1.2;
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }

/* ---------- Bouton « pinceau » ---------- */
.btn-brush {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 40px 0 32px;
	border: 0;
	background: url("../img/btn-primary-bg.png") center / 100% 100% no-repeat;
	color: var(--brown);
	font: 700 13px/1.2 var(--sans);
	letter-spacing: var(--track);
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .3s ease, filter .3s ease;
}
.btn-brush:hover, .btn-brush:focus-visible { transform: scale(1.04); filter: brightness(1.05); }

/* ---------- Sections ---------- */
.section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(40px, 3.33vw, 64px);
	padding: var(--section-y) var(--gutter);
}
.section--light { background: var(--light); }
.section--dark { background: var(--brown); color: var(--light); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 900px; text-align: center; }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(228, 228, 228, .95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background .3s ease;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.site-header__logo img { width: 57px; height: 60px; }
.logo-light { display: none !important; }
.site-nav { display: flex; align-items: center; }
.nav-link, .nav-lang {
	position: relative;
	padding: 16px 32px 12px;
	font: 700 13px/1.2 var(--sans);
	letter-spacing: var(--track);
	text-transform: uppercase;
	white-space: nowrap;
}
.nav-lang { font-weight: 600; font-size: 14px; letter-spacing: 0; }
.nav-link::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 156px; height: 48px;
	transform: translate(-50%, -50%) scale(.9);
	background: url("../img/btn-header-active.svg") center / 100% 100% no-repeat;
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}
.nav-link:hover::after, .nav-link:focus-visible::after { opacity: .6; transform: translate(-50%, -50%) scale(1); }
.nav-link.is-active::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* En-tête transparent au-dessus de la vidéo de l'accueil */
.site-header--over-hero:not(.is-scrolled) {
	position: fixed;
	left: 0; right: 0;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: var(--light);
}
.site-header--over-hero:not(.is-scrolled) .logo-dark { display: none !important; }
.site-header--over-hero:not(.is-scrolled) .logo-light { display: block !important; }
.site-header--over-hero.is-scrolled { position: fixed; left: 0; right: 0; }

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 8px;
	padding: 12px 0 12px 12px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.menu-toggle__bar { display: block; width: 28px; height: 2px; background: currentColor; transition: transform .3s ease; }

/* ---------- Accueil ---------- */
.hero {
	position: relative;
	display: grid;
	place-items: center;
	height: min(920px, 100vh);
	min-height: 560px;
	overflow: hidden;
	background: var(--brown);
	color: var(--light);
}
.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .2;
}
.hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: min(700px, 82vw);
}
.hero__cities { display: flex; justify-content: space-between; }
.hero__cities, .hero__sub {
	font-size: clamp(11px, .85vw, 16px);
	line-height: 1.2;
	letter-spacing: var(--track);
}
.hero__title img { width: 100%; }
.hero__sub { text-align: right; white-space: pre; }

.intro__logo { width: 74px; height: 80px; }
.intro__text { max-width: 1080px; color: #000; text-align: center; }

.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	width: 100%;
}
.services-grid__img { height: 400px; overflow: hidden; }
.services-grid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.services-grid__img:hover img { transform: scale(1.05); }
.services-grid__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	height: 400px;
	padding: 32px;
	text-align: center;
}

.projects-strip {
	display: flex;
	gap: 32px;
	width: calc(100% + var(--gutter));
	margin-right: calc(var(--gutter) * -1);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.projects-strip::-webkit-scrollbar { display: none; }
.projects-strip img {
	flex: 0 0 360px;
	height: 480px;
	object-fit: cover;
	scroll-snap-align: start;
}

/* ---------- The Studio ---------- */
.studio-hero {
	position: relative;
	overflow: hidden;
	background: var(--brown);
	color: var(--light);
}
.studio-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .2;
}
.studio-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 96px;
	max-width: 1400px;
	min-height: 820px;
	margin: 0 auto;
	padding: var(--section-y) var(--gutter);
}
.studio-hero__text { display: flex; flex-direction: column; gap: 24px; }
.studio-hero__text .h1 { text-align: left; }
.studio-hero__img img { width: 100%; aspect-ratio: 477 / 499; object-fit: cover; }

.vision-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;
}
.vision-grid__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vision-grid__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	padding: 48px;
	text-align: center;
}

.we-are__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	width: 100%;
	max-width: 1200px;
}
.we-are__img { width: 100%; aspect-ratio: 736 / 919; object-fit: cover; }
.we-are__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	font-size: clamp(16px, 1.25vw, 24px);
	line-height: 1.2;
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.we-are__label { font-weight: 700; }
.we-are__list ul { display: flex; flex-direction: column; gap: 20px; }

.partners .caption-text { color: #000; }
.partners__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; width: 100%; }
.partner { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.partner img, .partner .placeholder { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.partner figcaption {
	color: var(--red);
	font-weight: 700;
	letter-spacing: var(--track);
	text-transform: uppercase;
	font-size: clamp(12px, .85vw, 16px);
}
.placeholder { display: block; background: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .04)); }

.recent__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(12, 1fr);
	gap: 8px;
	width: 100%;
	max-width: 1080px;
	aspect-ratio: 1080 / 1068;
}
.recent__grid img { width: 100%; height: 100%; object-fit: cover; }
.recent__a { grid-column: 1 / span 6; grid-row: 1 / span 8; }
.recent__b { grid-column: 7 / span 3; grid-row: 1 / span 4; }
.recent__c { grid-column: 10 / span 3; grid-row: 1 / span 4; }
.recent__d { grid-column: 7 / span 6; grid-row: 5 / span 8; mix-blend-mode: luminosity; }
.recent__e { grid-column: 1 / span 3; grid-row: 9 / span 4; }
.recent__f { grid-column: 4 / span 3; grid-row: 9 / span 4; }

/* ---------- Services ---------- */
.services-list { padding: 0 var(--gutter); }
.service-item {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 96px;
	padding: var(--section-y) 0;
}
.service-item + .service-item { border-top: 1px solid rgba(43, 29, 23, .15); }
.service-item__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 64px; }
.service-item__intro .body-text { margin-top: -44px; }
.service-item__title {
	color: var(--red);
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(30px, 2.5vw, 48px);
	line-height: 1.1;
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.service-item__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.service-item__tags { display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.tag summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--red);
	font-size: clamp(16px, 1.25vw, 24px);
	line-height: 1.2;
	letter-spacing: var(--track);
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}
.tag summary::-webkit-details-marker { display: none; }
.tag summary::after {
	content: "";
	flex: 0 0 24px;
	height: 24px;
	background: url("../img/more-closed.svg") center / contain no-repeat;
}
.tag[open] summary::after { background-image: url("../img/more-open.svg"); }
.tag ul { margin-top: 20px; }
.tag li + li { margin-top: 14px; }

/* ---------- Projects ---------- */
.page-intro .body-text { max-width: 900px; color: #000; text-align: center; }
.project-tabs {
	position: sticky;
	top: var(--header-h);
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 40px;
	padding: 10px var(--gutter);
	background: rgba(228, 228, 228, .95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.project-tab {
	padding: 16px 0;
	border: 0;
	background: none;
	color: #000;
	font: 400 13px/1.2 var(--sans);
	letter-spacing: var(--track);
	text-transform: uppercase;
	opacity: .3;
	cursor: pointer;
	transition: opacity .3s ease;
}
.project-tab:hover { opacity: .7; }
.project-tab.is-active { color: var(--brown); font-weight: 700; opacity: 1; }
.projects-list { display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter) var(--section-y); }
.project-item {
	display: grid;
	grid-template-columns: 3fr 9fr;
	width: 100%;
	padding: 64px 0;
}
.project-item[hidden] { display: none; }
.project-item__cover img { width: 100%; aspect-ratio: 460 / 613; object-fit: cover; }
.project-item__cover.is-mono img { filter: grayscale(1); }
.project-item__info { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-left: 64px; }
.project-item__text { display: flex; flex-direction: column; gap: 8px; max-width: 600px; padding-top: 48px; text-transform: uppercase; }
.project-item__cat { color: var(--taupe); letter-spacing: var(--track); font-size: clamp(13px, .85vw, 16px); }
.project-item__desc { margin-top: 24px; color: #000; font-size: 15px; letter-spacing: .2em; }
.project-slider { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; max-width: 600px; overflow: hidden; }
.project-slider__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.project-slider__track::-webkit-scrollbar { display: none; }
.project-slider__track > * { flex: 0 0 120px; height: 160px; object-fit: cover; scroll-snap-align: start; }
.project-slider__dots { display: flex; gap: 10px; }
.project-slider__dots span { width: 8px; height: 8px; background: #000; opacity: .2; }
.project-slider__dots span.is-active { opacity: 1; }
.projects-empty { padding: 64px 0; letter-spacing: var(--track); text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact {
	display: grid;
	grid-template-columns: 8fr 3fr;
	align-items: end;
	gap: 32px;
	padding: var(--section-y) var(--gutter);
}
.contact__camera { position: relative; justify-self: end; width: min(100%, 1180px); }
.contact__camera-img { width: 100%; opacity: .7; }
.contact__screen {
	position: absolute;
	left: 2.5%; top: 14.4%;
	width: 55.4%; height: 78%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(12px, 2vw, 40px);
	padding: 3% 3.5%;
}
.contact__title { color: var(--light); font-size: clamp(22px, 2vw, 48px); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.contact__notice { padding: 10px 14px; background: var(--light); color: var(--red); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contact__notice.is-ok { color: var(--brown); }
.contact-form { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 20px); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%;
	padding: clamp(8px, .83vw, 16px);
	border: 1px solid rgba(0, 0, 0, .3);
	border-radius: 0;
	background: var(--light);
	color: var(--brown);
	font: 400 clamp(12px, .8vw, 15px)/24px var(--sans);
	text-transform: uppercase;
}
.contact-form ::placeholder { color: rgba(0, 0, 0, .3); }
.contact-form select {
	appearance: none;
	-webkit-appearance: none;
	background: var(--light) url("../img/icon-dropdown.svg") right 16px center / 16px no-repeat;
	color: rgba(0, 0, 0, .55);
}
.contact-form textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.contact-form__submit { display: flex; justify-content: flex-end; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 8%;
	font-size: clamp(13px, .85vw, 16px);
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.contact__social { display: flex; gap: 24px; margin-top: 12px; }

/* ---------- Pages simples ---------- */
.page-default__article { width: 100%; max-width: 900px; }
.entry-content { margin-top: 48px; line-height: 1.7; }
.entry-content p + p { margin-top: 1em; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; padding: 0 60px; background: var(--brown); color: var(--light); }
.site-footer__top {
	display: grid;
	grid-template-columns: 2fr 8fr 2fr;
	padding: 64px 0;
}
.site-footer__contact {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 16px;
	font-size: clamp(12px, .85vw, 16px);
	letter-spacing: var(--track);
	text-transform: uppercase;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.site-footer__tagline {
	color: var(--blue);
	font-size: clamp(16px, 1.25vw, 24px);
	font-weight: 700;
	letter-spacing: var(--track);
	text-transform: uppercase;
	text-align: center;
}
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wordmark img { width: min(360px, 70vw); }
.wordmark__sub { align-self: flex-end; font-size: 12px; line-height: 1; }
.site-footer__social { display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; }
.site-footer__gallery { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.site-footer__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.site-footer__bottom { position: relative; display: flex; align-items: center; padding: 32px 0; }
.site-footer__bottom p { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-top {
	position: absolute;
	left: 50%;
	bottom: 15px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font: 700 13px/1.2 var(--sans);
	letter-spacing: var(--track);
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1200px) {
	.nav-link, .nav-lang { padding: 16px 18px 12px; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.services-grid__img, .services-grid__text { height: 340px; }
	.services-grid > :nth-child(5) { order: 6; }
	.services-grid > :nth-child(6) { order: 5; }
	.service-item { grid-template-columns: 1fr 1fr; gap: 48px; }
	.service-item__tags { grid-column: 1 / -1; }
	.partners__grid { grid-template-columns: repeat(3, 1fr); }
	.contact { grid-template-columns: 1fr; }
	.contact__camera { justify-self: center; }
	.contact__details { padding-bottom: 0; align-items: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	:root { --header-h: 72px; }
	.site-header__logo img { width: 40px; height: 42px; }
	.menu-toggle { display: flex; position: relative; z-index: 2; }
	.site-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		gap: 24px;
		background: var(--light);
		color: var(--brown);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease, visibility .3s;
	}
	.site-nav .nav-link { font-size: 18px; }
	.menu-open .site-nav { opacity: 1; visibility: visible; }
	/* Sans flou : sinon le menu plein écran reste enfermé dans la hauteur de l'en-tête. */
	.menu-open .site-header { color: var(--brown); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.menu-open .menu-toggle__bar:first-child { transform: translateY(5px) rotate(45deg); }
	.menu-open .menu-toggle__bar:last-child { transform: translateY(-5px) rotate(-45deg); }
	.menu-open .site-header--over-hero .logo-dark { display: block !important; }
	.menu-open .site-header--over-hero .logo-light { display: none !important; }

	.services-grid { grid-template-columns: 1fr; }
	.services-grid > * { order: 0 !important; }
	.services-grid__img { height: 300px; }
	.services-grid__text { height: auto; padding: 32px 16px 48px; }
	.projects-strip img { flex-basis: 70vw; height: auto; aspect-ratio: 3 / 4; }

	.studio-hero__inner, .vision-grid, .we-are__inner { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
	.vision-grid { gap: 0; }
	.vision-grid__text { padding: 40px 0; }
	.vision-grid > :nth-child(3) { order: 4; }
	.we-are__list { justify-content: flex-start; }
	.partners__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
	.recent__grid { aspect-ratio: auto; grid-template-rows: none; grid-auto-rows: 44vw; }
	.recent__grid img { grid-column: auto / span 6 !important; grid-row: auto / span 1 !important; }
	.recent__a, .recent__d { grid-column: 1 / -1 !important; grid-row: auto / span 2 !important; }

	.service-item { grid-template-columns: 1fr; gap: 32px; }
	.service-item__intro { gap: 32px; }
	.service-item__intro .body-text { margin-top: -12px; }

	.project-tabs { gap: 0 20px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
	.project-tab { flex: 0 0 auto; }
	.project-item { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
	.project-item__info { padding-left: 0; }
	.project-item__text { padding-top: 0; }
	.project-slider { align-self: stretch; }

	.contact__camera-img { display: none; }
	.contact__screen { position: static; width: 100%; height: auto; padding: 0; }
	.contact__title { color: var(--brown); text-shadow: none; }
	.contact-form__row { grid-template-columns: 1fr; }
	.contact__details { align-items: flex-start; }

	.site-footer { padding: 0 var(--gutter); }
	.site-footer__top { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
	.site-footer__brand { order: -1; }
	.site-footer__contact { align-items: center; text-align: center; }
	.site-footer__social { justify-content: center; }
	.site-footer__gallery { grid-template-columns: repeat(4, 1fr); }
	.site-footer__bottom { flex-direction: column; gap: 24px; padding: 24px 0; }
	.site-footer__bottom p { text-align: center; font-size: 10px; }
	.scroll-top { position: static; transform: none; }
}
