/*
Theme Name: Art Project 26
Theme URI: https://www.instagram.com/artproject_26/
Author: Art Project 26
Description: Thème bloc (Gutenberg / éditeur de site) pour Art Project 26 — expositions collectives d'art contemporain à Montpellier. Typographie variable Archivo + Instrument Serif, palette papier / encre / soleil, animations au scroll, liste d'artistes avec aperçu au survol, galerie masonry avec lightbox.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artproject26
Tags: full-site-editing, block-patterns, portfolio, one-column, custom-colors
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
	--ap-paper: var(--wp--preset--color--papier, #F3F1EC);
	--ap-ink: var(--wp--preset--color--encre, #0D0D0D);
	--ap-sun: var(--wp--preset--color--soleil, #EDCB26);
	--ap-mist: var(--wp--preset--color--brume, #E4E4E1);
	--ap-teal: var(--wp--preset--color--lagon, #3AA6BB);

	--ap-sans: var(--wp--preset--font-family--archivo, Archivo, "Helvetica Neue", Arial, sans-serif);
	--ap-serif: var(--wp--preset--font-family--instrument, "Instrument Serif", Georgia, serif);
	--ap-mono: var(--wp--preset--font-family--mono, "JetBrains Mono", ui-monospace, Menlo, monospace);

	--ap-pad: clamp(1.25rem, 4vw, 4rem);
	--ap-section: clamp(5rem, 11vw, 10rem);
	--ap-ease: cubic-bezier(.2, .7, 0, 1);
	--ap-line: color-mix(in srgb, currentColor 22%, transparent);
	--ap-header-h: 4.5rem;
}

/* ==========================================================================
   1. Base
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: var(--ap-header-h); }
body {
	margin: 0;
	background: var(--ap-paper);
	color: var(--ap-ink);
	font-family: var(--ap-sans);
	font-size: var(--wp--preset--font-size--m, 1.125rem);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}
::selection { background: var(--ap-sun); color: var(--ap-ink); }
:where(.wp-site-blocks) :where(h1, h2, h3, h4, h5, h6, p, figure, ul, ol) { margin: 0; }
:where(.wp-site-blocks) img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
em { font-family: var(--ap-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--ap-sun); outline-offset: 3px; }

/* Grain */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: .07;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shared atoms */
.ap-index,
.ap-label,
.ap-kicker {
	font-family: var(--ap-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.4;
}
.ap-label { opacity: .6; }
.ap-index { display: inline-flex; gap: .6em; align-items: center; }
.ap-index::before {
	content: "";
	width: .7em; height: .7em;
	border-radius: 50%;
	background: var(--ap-sun);
	box-shadow: 0 0 0 1px currentColor;
}

.ap-section { position: relative; padding: var(--ap-section) var(--ap-pad); }

.ap-title {
	font-size: clamp(3rem, 9vw, 9.5rem);
	font-weight: 850;
	font-stretch: 85%;
	line-height: .86;
	letter-spacing: -0.045em;
	text-transform: uppercase;
}
.ap-title em { text-transform: none; font-size: 1.08em; letter-spacing: -0.03em; }

.ap-head {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.5rem var(--ap-pad);
	align-items: end;
	margin-bottom: clamp(3rem, 6vw, 6rem);
}
.ap-head > .ap-index { grid-column: 1 / -1; }
.ap-head > .ap-title { grid-column: 1 / span 8; }
.ap-head > .ap-head__aside { grid-column: 9 / -1; max-width: 32ch; font-size: .95rem; opacity: .75; justify-self: end; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	background: var(--ap-ink);
	color: var(--ap-paper);
	border: 1.5px solid var(--ap-ink);
	border-radius: 999px;
	padding: 1em 1.7em;
	font-family: var(--ap-mono);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .35s var(--ap-ease), color .35s var(--ap-ease), border-color .35s var(--ap-ease), transform .35s var(--ap-ease);
}
.wp-block-button__link:hover,
.wp-element-button:hover { background: var(--ap-sun); border-color: var(--ap-sun); color: var(--ap-ink); }
.wp-block-button__link:active { transform: scale(.97); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ap-ink); color: var(--ap-paper); border-color: var(--ap-ink); }

/* ==========================================================================
   2. Header
   ========================================================================== */
.ap-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background-color .4s var(--ap-ease), backdrop-filter .4s, box-shadow .4s;
}
body.admin-bar .ap-header { top: 32px; }
.is-scrolled .ap-header {
	background: color-mix(in srgb, var(--ap-paper) 78%, transparent);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 1px 0 color-mix(in srgb, var(--ap-ink) 12%, transparent);
}
.ap-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
	height: var(--ap-header-h);
	padding: 0 var(--ap-pad);
}
.ap-logo { width: clamp(150px, 15vw, 210px); }
.ap-logo img { mix-blend-mode: multiply; width: 100%; height: auto; }
.ap-logo a { display: block; }
.ap-nav { justify-self: center; }
.ap-nav .wp-block-navigation__container,
.ap-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.ap-nav a,
.ap-nav .wp-block-navigation-item__content {
	position: relative;
	font-family: var(--ap-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: .4em 0;
}
.ap-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s var(--ap-ease);
}
.ap-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); transform-origin: left; }
.ap-bar .wp-block-buttons { justify-self: end; }
.ap-bar .wp-block-button__link { padding: .85em 1.3em; font-size: .72rem; }

/* ==========================================================================
   3. Hero
   ========================================================================== */
.ap-hero {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: 1fr auto;
	min-height: clamp(680px, 100svh, 960px);
	max-height: 980px;
	padding: calc(var(--ap-header-h) + 2rem) var(--ap-pad) 0;
	column-gap: var(--ap-pad);
	overflow: clip;
	isolation: isolate;
}
.ap-hero__media {
	grid-column: 7 / -1;
	grid-row: 1 / -1;
	margin: calc(-1 * (var(--ap-header-h) + 2rem)) calc(-1 * var(--ap-pad)) 0 0 !important;
	position: relative;
	overflow: hidden;
	background: #d6d6d3;
	max-height: 980px;
}
.ap-hero__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 45%;
	transform-origin: 50% 0;
}
.ap-hero__content {
	grid-column: 1 / span 7;
	grid-row: 1;
	align-self: center;
	position: relative;
	z-index: 2;
	padding-block: 3rem;
}
.ap-hero__content .ap-kicker { margin-bottom: 1.75rem; }
.ap-hero__title {
	font-size: clamp(3.75rem, 11.2vw, 13.5rem);
	font-weight: 900;
	font-stretch: 112%;
	line-height: .8;
	letter-spacing: -0.055em;
	text-transform: uppercase;
	margin-right: -12vw !important; /* déborde sur l'image */
	mix-blend-mode: multiply;
}
.ap-hero__title .ap-hero__num,
.ap-hero__num {
	display: inline-block;
	color: var(--ap-sun);
	font-stretch: 62%;
	-webkit-text-stroke: 0;
	mix-blend-mode: normal;
}
.ap-hero__lede {
	max-width: 34ch;
	margin-top: 2rem !important;
	font-size: clamp(1.05rem, 1.35vw, 1.3rem);
	line-height: 1.45;
}
.ap-hero__content .wp-block-buttons { margin-top: 2.25rem; }

.ap-hero__meta {
	grid-column: 1 / span 6;
	grid-row: 2;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1.5px solid var(--ap-ink);
	position: relative;
	z-index: 2;
}
.ap-hero__meta > * { padding: 1.1rem 1rem 1.6rem 0; }
.ap-hero__meta > * + * { padding-left: 1rem; border-left: 1px solid var(--ap-line); }
.ap-hero__meta p:last-child { font-weight: 700; font-stretch: 90%; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.15; margin-top: .35rem; }

/* Rotating badge */
.ap-badge {
	position: absolute;
	z-index: 3;
	left: calc(50% + var(--ap-pad) / 2);
	bottom: 9%;
	width: clamp(110px, 11vw, 168px);
	aspect-ratio: 1;
	translate: -50% 0;
	border-radius: 50%;
	background: var(--ap-ink);
	color: var(--ap-paper);
	display: grid;
	place-items: center;
}
.ap-badge svg { width: 100%; height: 100%; animation: ap-spin 18s linear infinite; }
.ap-badge text { font-family: var(--ap-mono); font-size: 8.4px; letter-spacing: 1.9px; text-transform: uppercase; fill: currentColor; }
.ap-badge::after {
	content: "";
	position: absolute;
	width: 38%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, var(--ap-sun) 0 2px, var(--ap-ink) 2px 4.5px);
}
@keyframes ap-spin { to { rotate: 360deg; } }

/* ==========================================================================
   4. Ribbons / marquee
   ========================================================================== */
.ap-ribbons {
	position: relative;
	padding: clamp(3rem, 6vw, 5rem) 0;
	overflow: clip;
	background: var(--ap-paper);
}
.ap-marquee {
	position: relative;
	overflow: hidden;
	width: 110vw;
	margin-left: -5vw !important;
	padding: .9rem 0;
	font-size: clamp(2rem, 5.2vw, 5rem);
	font-weight: 900;
	font-stretch: 75%;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
}
.ap-marquee--sun { background: var(--ap-sun); color: var(--ap-ink); rotate: -2.5deg; z-index: 2; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .35); }
.ap-marquee--ink { background: var(--ap-ink); color: var(--ap-paper); rotate: 2deg; margin-top: -1.2em !important; font-family: var(--ap-sans); }
.ap-marquee--ink p { font-weight: 300; font-stretch: 100%; }
.ap-marquee--ink em { font-size: 1.1em; text-transform: none; }
.ap-marquee__track { display: flex; width: max-content; }
.ap-marquee__track > p { display: inline-flex; align-items: center; flex: none; }
.ap-marquee__track > p::after {
	content: "";
	flex: none;
	width: .62em;
	aspect-ratio: 1;
	margin: 0 .55em;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, currentColor 0 1.5px, transparent 1.5px 4px);
}
.ap-marquee.is-ready .ap-marquee__track { animation: ap-marquee var(--ap-marquee-speed, 38s) linear infinite; }
.ap-marquee--ink.is-ready .ap-marquee__track { animation-direction: reverse; }
.ap-marquee:hover .ap-marquee__track { animation-play-state: paused; }
@keyframes ap-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   5. Manifeste
   ========================================================================== */
.ap-manifeste {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem var(--ap-pad);
}
.ap-manifeste > .ap-index { grid-column: 1 / span 3; align-self: start; padding-top: .9em; }
.ap-manifeste__text {
	grid-column: 4 / -1;
	font-size: clamp(1.9rem, 4.1vw, 4.4rem);
	font-weight: 500;
	font-stretch: 92%;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: pretty;
	view-timeline: --ap-fill block;
}
.ap-manifeste__text em { font-size: 1.1em; line-height: .9; }
.ap-stats {
	grid-column: 4 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(3rem, 6vw, 6rem) !important;
	border-top: 1.5px solid var(--ap-ink);
}
.ap-stat { padding: 1.25rem 1rem 0 0; }
.ap-stat + .ap-stat { padding-left: 1.25rem; border-left: 1px solid var(--ap-line); }
.ap-stat__num {
	font-size: clamp(3.5rem, 8vw, 8rem);
	font-weight: 900;
	font-stretch: 62%;
	line-height: .85;
	letter-spacing: -0.04em;
}
.ap-stat:nth-child(2) .ap-stat__num { color: transparent; -webkit-text-stroke: 1.5px var(--ap-ink); }
.ap-stat__label { margin-top: .75rem !important; }

/* Scroll-driven text fill (amélioration progressive) */
@supports (animation-timeline: view()) {
	.ap-fill__inner {
		color: transparent;
		background:
			linear-gradient(var(--ap-ink), var(--ap-ink)) 0 0 / 0% 100% no-repeat,
			linear-gradient(color-mix(in srgb, var(--ap-ink) 16%, transparent), color-mix(in srgb, var(--ap-ink) 16%, transparent));
		-webkit-background-clip: text;
		background-clip: text;
		animation: ap-fill linear both;
		animation-timeline: --ap-fill;
		animation-range: entry 40% cover 60%;
	}
	@keyframes ap-fill { to { background-size: 100% 100%, 100% 100%; } }
}

/* ==========================================================================
   6. Artistes (liste index + aperçu au curseur)
   ========================================================================== */
.ap-artists { background: var(--ap-ink); color: var(--ap-paper); }
.ap-artists .ap-index::before { box-shadow: none; }
.ap-artists .wp-block-button__link { background: var(--ap-paper); color: var(--ap-ink); border-color: var(--ap-paper); }
.ap-artists__list { border-top: 1px solid var(--ap-line); counter-reset: ap-artist; }
.ap-artist {
	position: relative;
	display: grid;
	grid-template-columns: minmax(3rem, 1fr) 7fr 3fr minmax(2.5rem, auto);
	align-items: center;
	gap: 1rem;
	padding: clamp(1rem, 2vw, 1.75rem) 0;
	border-bottom: 1px solid var(--ap-line);
	isolation: isolate;
	transition: color .45s var(--ap-ease);
}
.ap-artist::before {
	content: "";
	position: absolute;
	inset: 0 calc(-1 * var(--ap-pad));
	z-index: -1;
	background: var(--ap-sun);
	transform: scaleY(0);
	transform-origin: 50% 100%;
	transition: transform .55s var(--ap-ease);
}
.ap-artist:hover,
.ap-artist:focus-within { color: var(--ap-ink); }
.ap-artist:hover::before,
.ap-artist:focus-within::before { transform: scaleY(1); }
.ap-artist__num { font-family: var(--ap-mono); font-size: .8rem; opacity: .6; }
.ap-artist__name {
	font-size: clamp(2.4rem, 7vw, 7.25rem);
	font-weight: 850;
	font-stretch: 78%;
	line-height: .9;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	transition: translate .6s var(--ap-ease), font-stretch .6s var(--ap-ease);
}
.ap-artist__name a { text-decoration: none; }
.ap-artist__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ap-artist:hover .ap-artist__name { translate: 1.5rem 0; font-stretch: 100%; }
.ap-artist__disc { font-family: var(--ap-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.ap-artist__arrow {
	justify-self: end;
	display: grid;
	place-items: center;
	width: 2.75rem;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-size: 1.1rem;
	transition: rotate .5s var(--ap-ease), background-color .4s, color .4s;
}
.ap-artist:hover .ap-artist__arrow { rotate: 45deg; background: var(--ap-ink); color: var(--ap-sun); }
.ap-artist__thumb {
	position: fixed !important;
	left: 0; top: 0;
	z-index: 50;
	width: clamp(200px, 20vw, 320px);
	pointer-events: none;
	opacity: 0;
	scale: .7;
	rotate: -4deg;
	translate: var(--ap-mx, -999px) var(--ap-my, -999px);
	transition: opacity .35s var(--ap-ease), scale .5s var(--ap-ease), rotate .6s var(--ap-ease);
}
.ap-artist__thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin: -50% 0 0 -50%; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.ap-artist.is-hover .ap-artist__thumb { opacity: 1; scale: 1; rotate: 3deg; }
@media (hover: none), (max-width: 781px) {
	.ap-artist { grid-template-columns: 4.5rem 1fr auto; grid-template-areas: "thumb name arrow" "thumb disc arrow"; row-gap: .35rem; }
	.ap-artist__num { display: none; }
	.ap-artist__thumb { grid-area: thumb; position: static !important; opacity: 1; scale: 1; rotate: 0deg; translate: none; width: 4.5rem; }
	.ap-artist__thumb img { margin: 0; box-shadow: none; }
	.ap-artist__name { grid-area: name; }
	.ap-artist__disc { grid-area: disc; opacity: .7; }
	.ap-artist__arrow { grid-area: arrow; }
	.ap-artist:hover .ap-artist__name { translate: none; }
}

/* ==========================================================================
   7. Œuvres (masonry)
   ========================================================================== */
.ap-masonry { columns: 3 300px; column-gap: clamp(1rem, 2vw, 2rem); }
.ap-work {
	break-inside: avoid;
	margin-bottom: clamp(1.5rem, 3vw, 3rem) !important;
	display: block;
}
.ap-work img { width: 100%; height: auto; background: var(--ap-mist); transition: scale 1.2s var(--ap-ease); }
.ap-work > a,
.ap-work { overflow: hidden; }
.ap-work:hover img { scale: 1.03; }
.ap-work figcaption,
.ap-work .wp-element-caption {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: .8rem 0 0;
	font-family: var(--ap-mono);
	font-size: .72rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: left;
}
.ap-work figcaption strong { font-weight: 600; }
.ap-work figcaption span { opacity: .55; }
.ap-masonry > .ap-work:nth-child(3n + 2) { margin-top: clamp(0rem, 4vw, 4rem); }

/* ==========================================================================
   8. Infos pratiques
   ========================================================================== */
.ap-infos { background: var(--ap-sun); color: var(--ap-ink); overflow: clip; }
.ap-infos .ap-index::before { background: var(--ap-ink); }
.ap-infos__date {
	font-size: clamp(5rem, 21.5vw, 24rem);
	font-weight: 900;
	font-stretch: 100%;
	line-height: .8;
	letter-spacing: -0.06em;
	margin: 2rem 0 clamp(2.5rem, 5vw, 4rem) -0.04em !important;
	white-space: nowrap;
}
.ap-infos__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1.5px solid var(--ap-ink);
	position: relative;
	z-index: 2;
}
.ap-cell { padding: 1.25rem 1.25rem 1.5rem 0; }
.ap-cell + .ap-cell { padding-left: 1.25rem; border-left: 1px solid color-mix(in srgb, var(--ap-ink) 25%, transparent); }
.ap-cell__val { margin-top: .5rem !important; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 650; font-stretch: 90%; line-height: 1.2; }
.ap-infos .wp-block-buttons { margin-top: 2.5rem; position: relative; z-index: 2; }
.ap-infos__poster {
	position: absolute !important;
	right: var(--ap-pad);
	top: clamp(3rem, 7vw, 6rem);
	width: clamp(140px, 17vw, 260px);
	rotate: 6deg;
	z-index: 1;
	box-shadow: 0 30px 60px -25px rgb(0 0 0 / .45);
	transition: rotate .8s var(--ap-ease), scale .8s var(--ap-ease);
}
.ap-infos__poster:hover { rotate: -2deg; scale: 1.04; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.ap-footer { background: var(--ap-ink); color: var(--ap-paper); padding: var(--ap-section) var(--ap-pad) 1.5rem; overflow: clip; }
.ap-footer .ap-index::before { box-shadow: none; }
.ap-footer__cta { display: grid; gap: 2rem; padding-bottom: var(--ap-section); border-bottom: 1px solid var(--ap-line); }
.ap-footer__title { font-size: clamp(3rem, 9vw, 9rem); font-weight: 850; font-stretch: 85%; line-height: .88; letter-spacing: -0.045em; text-transform: uppercase; max-width: 12ch; }
.ap-footer__title em { color: var(--ap-sun); text-transform: none; }
.ap-footer__cta > p:not(.ap-index) { max-width: 40ch; opacity: .75; }
.ap-footer .wp-block-button__link { background: var(--ap-sun); color: var(--ap-ink); border-color: var(--ap-sun); }
.ap-footer .wp-block-button__link:hover { background: var(--ap-paper); border-color: var(--ap-paper); }
.ap-footer .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ap-paper); border-color: color-mix(in srgb, var(--ap-paper) 40%, transparent); }
.ap-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 4rem; font-size: .95rem; }
.ap-footer__cols p + p { margin-top: .6rem; }
.ap-footer__cols a { text-decoration: none; opacity: .85; transition: color .3s, opacity .3s; }
.ap-footer__cols a:hover { color: var(--ap-sun); opacity: 1; }
.ap-wordmark {
	font-size: clamp(3rem, 12.4vw, 15rem);
	font-weight: 900;
	font-stretch: 100%;
	letter-spacing: -0.06em;
	line-height: .78;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0 0 1.5rem -0.05em !important;
	color: var(--ap-paper);
}
.ap-wordmark span { color: var(--ap-sun); }
.ap-footer__legal { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--ap-line); font-family: var(--ap-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; opacity: .6; }

/* ==========================================================================
   10. Page artiste
   ========================================================================== */
.ap-ahero {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem var(--ap-pad);
	min-height: min(100svh, 980px);
	padding: calc(var(--ap-header-h) + 3rem) var(--ap-pad) var(--ap-section);
	align-items: end;
}
.ap-ahero__text { grid-column: 1 / span 7; display: grid; gap: 1.75rem; align-content: end; }
.ap-ahero__name { font-size: clamp(4rem, 12vw, 13rem); font-weight: 900; font-stretch: 80%; line-height: .8; letter-spacing: -0.055em; text-transform: uppercase; }
.ap-ahero__disc { display: inline-flex; width: fit-content; padding: .55em 1em; border-radius: 999px; background: var(--ap-sun); font-family: var(--ap-mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ap-ahero__bio { max-width: 46ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.45; }
.ap-ahero__bio em { font-size: 1.12em; }
.ap-ahero__img { grid-column: 8 / -1; align-self: stretch; }
.ap-ahero__img img { width: 100%; height: 100% !important; max-height: 82svh; object-fit: cover; }
.ap-next {
	display: block;
	padding: var(--ap-section) var(--ap-pad);
	background: var(--ap-sun);
	position: relative;
}
.ap-next__name { font-size: clamp(3.5rem, 13vw, 14rem); font-weight: 900; font-stretch: 75%; line-height: .85; letter-spacing: -0.05em; text-transform: uppercase; margin-top: 1rem !important; }
.ap-next__name a { text-decoration: none; display: inline-flex; gap: .2em; align-items: baseline; transition: gap .6s var(--ap-ease); }
.ap-next__name a::after { content: ""; position: absolute; inset: 0; }
.ap-next:hover .ap-next__name a { gap: .45em; }

/* ==========================================================================
   11. Blog / pages génériques
   ========================================================================== */
.ap-main { padding: calc(var(--ap-header-h) + var(--ap-section) * .6) var(--ap-pad) var(--ap-section); }
.ap-main > * { max-width: 1440px; margin-inline: auto !important; }
.ap-main .wp-block-post-title { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 850; font-stretch: 85%; letter-spacing: -0.045em; text-transform: uppercase; line-height: .9; margin-bottom: 2.5rem !important; }
.ap-main .wp-block-post-content > * { max-width: 720px; margin-inline: auto; }
.ap-main .wp-block-post-content > .alignwide { max-width: 1200px; }
.ap-main .wp-block-post-content > .alignfull { max-width: none; }
.ap-main .wp-block-post-featured-image { margin-bottom: 3rem !important; }
.ap-cards .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 3rem 2rem; list-style: none; padding: 0; }
.ap-cards .wp-block-post-featured-image img { aspect-ratio: 4 / 5; object-fit: cover; transition: scale 1s var(--ap-ease); }
.ap-cards .wp-block-post-featured-image { overflow: hidden; margin-bottom: 1rem; }
.ap-cards li:hover .wp-block-post-featured-image img { scale: 1.04; }
.ap-cards .wp-block-post-title { font-size: 1.75rem; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; margin: .5rem 0 !important; }
.ap-cards .wp-block-post-title a { text-decoration: none; }
.ap-404 { font-size: clamp(8rem, 35vw, 34rem); font-weight: 900; font-stretch: 62%; line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--ap-ink); }

/* ==========================================================================
   12. Reveal (géré par ap26.js — IntersectionObserver)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.js .ap-r { opacity: 0; translate: 0 2.5rem; transition: opacity 1s var(--ap-ease), translate 1.1s var(--ap-ease); transition-delay: calc(var(--ap-i, 0) * 70ms); }
	.js .ap-r.is-in { opacity: 1; translate: none; }
	.js .ap-work.ap-r { translate: 0 2rem; transition: opacity .9s var(--ap-ease), translate 1s var(--ap-ease); }
	.js .ap-work.ap-r.is-in { opacity: 1; translate: none; }
	.js .ap-hero__title.ap-r { translate: 0 1em; }

	@supports (animation-timeline: scroll()) {
		.ap-hero__media img { animation: ap-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
		@keyframes ap-parallax { to { transform: translateY(12%) scale(1.06); } }
	}
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.ap-bar { grid-template-columns: auto 1fr auto; }
	.ap-nav { justify-self: end; }
	.ap-hero { grid-template-rows: auto auto auto; }
	.ap-hero__media { grid-column: 1 / -1; grid-row: 1; margin: calc(-1 * (var(--ap-header-h) + 2rem)) calc(-1 * var(--ap-pad)) 0 !important; height: 70svh; }
	.ap-hero__content { grid-column: 1 / -1; grid-row: 2; }
	.ap-hero__title { margin-right: 0 !important; }
	.ap-hero__meta { grid-column: 1 / -1; grid-row: 3; }
	.ap-badge { left: auto; right: var(--ap-pad); top: calc(70svh - var(--ap-header-h) - 2rem); bottom: auto; translate: 0 -50%; }
	.ap-manifeste > *, .ap-head > * { grid-column: 1 / -1 !important; justify-self: start !important; }
	.ap-infos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ap-cell:nth-child(3) { padding-left: 0; border-left: 0; }
	.ap-cell:nth-child(n + 3) { border-top: 1px solid color-mix(in srgb, var(--ap-ink) 25%, transparent); }
	.ap-infos__poster { display: none; }
	.ap-footer__cols { grid-template-columns: repeat(2, 1fr); }
	.ap-ahero__text, .ap-ahero__img { grid-column: 1 / -1; }
	.ap-ahero__img { grid-row: 1; }
}
@media (max-width: 600px) {
	:root { --ap-header-h: 4rem; }
	.ap-bar .wp-block-buttons { display: none; }
	.ap-hero__meta { grid-template-columns: 1fr 1fr; }
	.ap-hero__meta > :last-child { display: none; }
	.ap-stats { grid-template-columns: 1fr 1fr; }
	.ap-stat:last-child { display: none; }
	.ap-infos__grid, .ap-footer__cols { grid-template-columns: 1fr; }
	.ap-cell + .ap-cell { padding-left: 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--ap-ink) 25%, transparent); }
	.ap-footer__legal { flex-direction: column; }
	.ap-masonry > .ap-work:nth-child(3n + 2) { margin-top: 0; }
}

/* Éditeur : pas d'éléments masqués */
.editor-styles-wrapper .ap-r { opacity: 1 !important; translate: none !important; clip-path: none !important; }
.editor-styles-wrapper .ap-artist__thumb { position: static !important; opacity: 1; scale: 1; rotate: 0deg; translate: none; width: 80px; }
.editor-styles-wrapper .ap-artist__thumb img { margin: 0; }
.editor-styles-wrapper .ap-header { position: relative; }

/* ==========================================================================
   14. Lightbox (<dialog>)
   ========================================================================== */
.ap-lightbox {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: clamp(1rem, 3vw, 2.5rem);
	border: 0;
	background: color-mix(in srgb, var(--ap-ink) 94%, transparent);
	color: var(--ap-paper);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 1.5rem;
	z-index: 10000;
}
.ap-lightbox:not([open]) { display: none; }
.ap-lightbox::backdrop { background: transparent; }
.ap-lightbox__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--ap-mono);
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ap-lightbox__nav { display: flex; gap: .5rem; }
.ap-lightbox__btn {
	appearance: none;
	background: transparent;
	color: var(--ap-paper);
	border: 1px solid color-mix(in srgb, var(--ap-paper) 30%, transparent);
	border-radius: 999px;
	width: 2.75rem;
	height: 2.75rem;
	font-family: var(--ap-mono);
	font-size: .95rem;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s;
}
.ap-lightbox__btn:hover { background: var(--ap-sun); color: var(--ap-ink); border-color: var(--ap-sun); }
.ap-lightbox__stage {
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	gap: 1.25rem;
	min-height: 0;
}
.ap-lightbox__img {
	max-width: min(92vw, 1280px);
	max-height: 76dvh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 30px 90px rgb(0 0 0 / .6);
}
.ap-lightbox__cap {
	display: flex;
	gap: 1.5rem;
	font-family: var(--ap-mono);
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ap-lightbox__cap span { opacity: .65; }

/* ==========================================================================
   15. Page d'attente / Coming Soon (minimaliste #07)
   ========================================================================== */
.ap-wait {
	position: relative;
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--ap-paper);
	color: var(--ap-ink);
	overflow: clip;
}
.ap-wait__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem var(--ap-pad);
	border-bottom: 1.5px solid var(--ap-ink);
}
.ap-wait__brand {
	font-weight: 900;
	font-stretch: 90%;
	font-size: 1.15rem;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}
.ap-wait__brand span { color: var(--ap-sun); }
.ap-wait__center {
	display: grid;
	place-items: center;
	text-align: center;
	padding: clamp(2rem, 5vw, 4rem) var(--ap-pad);
}
.ap-wait__inner {
	display: grid;
	justify-items: center;
	gap: 1.5rem;
	max-width: 1100px;
}
.ap-wait__title {
	font-size: clamp(3.5rem, 11vw, 11rem);
	font-weight: 900;
	font-stretch: 105%;
	line-height: .84;
	letter-spacing: -0.055em;
	text-transform: uppercase;
	margin: 0 !important;
}
.ap-wait__title span {
	display: inline-block;
	background: var(--ap-sun);
	color: var(--ap-ink);
	padding: .04em .18em .08em;
	font-stretch: 75%;
}
.ap-wait__date {
	font-family: var(--ap-serif);
	font-style: italic;
	font-size: clamp(2.2rem, 5vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
	margin: .25rem 0 0 !important;
}
.ap-wait__countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(4.6rem, 6rem));
	gap: .75rem;
	margin-top: .5rem !important;
}
.ap-wait__unit {
	border: 1.5px solid var(--ap-ink);
	padding: .75rem .5rem;
	text-align: center;
}
.ap-wait__num {
	display: block;
	font-size: clamp(1.6rem, 2.6vw, 2.25rem);
	font-weight: 900;
	font-stretch: 75%;
	line-height: 1;
}
.ap-wait__lbl {
	display: block;
	margin-top: .3rem;
	font-family: var(--ap-mono);
	font-size: .62rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .6;
}
.ap-wait__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1.1rem var(--ap-pad);
	border-top: 1.5px solid var(--ap-ink);
	font-family: var(--ap-mono);
	font-size: .74rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ap-wait__bar a { text-decoration: none; font-weight: 600; }
.ap-wait__bar a:hover { color: var(--ap-teal); }


