/* ==========================================================================
   Völl – Projets: list (archive-projet / taxonomy-piece) and project model (single-projet)
   Figma: « Projets – liste » 99:23 · « Projet – modèle (Empreinte) » 99:129
   ========================================================================== */

/* --------------------------------------------------------------------------
   Room filter pills (voll/filtres-pieces)
   -------------------------------------------------------------------------- */

.voll-projets-entete { padding-bottom: clamp(40px, 1.52vw + 34px, 56px); }
.voll-projets-entete h1 { max-width: 760px; }

.voll-filtres--pieces { margin-top: 0; }
.voll-filtres__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.voll-filtres--pieces a {
	padding: 10px 20px;
	font-size: 16px;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--brun-nuit);
}

@media (max-width: 767px) {
	/* Mobile: one scrolling row, edge to edge */
	.voll-filtres--pieces {
		margin-inline: calc(-1 * var(--marge));
		overflow-x: auto;
		scrollbar-width: none;
	}
	.voll-filtres--pieces::-webkit-scrollbar { display: none; }
	.voll-filtres__liste {
		flex-wrap: nowrap;
		padding-inline: var(--marge);
		width: max-content;
	}
	.voll-filtres--pieces a { padding: 8px 16px; font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Project grid – 3 columns desktop, 2 tablet, 1 mobile
   -------------------------------------------------------------------------- */

.voll-projets-grille-section { padding-top: 0; }

.voll-projets-grille {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px var(--gouttiere);
}
.voll-projets-grille > li { margin: 0; }

@media (min-width: 768px) {
	.voll-projets-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
@media (min-width: 1024px) {
	.voll-projets-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.voll-projet-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.voll-projet-carte > * { margin: 0; }
.voll-projet-carte .wp-block-post-featured-image { margin: 0; }
.voll-projet-carte .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 410 / 520;
	object-fit: cover;
}
.voll-projet-carte__titre {
	font-size: var(--wp--preset--font-size--etape);
	line-height: 1.2;
	letter-spacing: 0;
}
.voll-projet-carte__titre a { color: inherit; text-decoration: none; }
/* The whole card is clickable through its title link */
.wp-site-blocks .voll-projet-carte__titre a::after { content: ""; position: absolute; inset: 0; } /* front only: keeps blocks selectable in the editor */
.voll-projet-carte__titre a:focus-visible { outline: none; }
.voll-projet-carte:has(.voll-projet-carte__titre a:focus-visible) { outline: 2px solid var(--brun-nuit); outline-offset: 6px; }
.voll-projet-carte:hover .voll-projet-carte__titre a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.voll-projet-carte__titre + * { margin-top: -14px; }
.voll-projet-carte__legende { font-size: 15px; line-height: 1.5; }
.voll-projet-carte__legende:empty { display: none; }

.voll-projets-grille-section .wp-block-query-pagination { margin-top: 48px; }
.voll-projets-note { margin-top: 56px !important; max-width: 640px; }

@media (max-width: 767px) {
	/* Mobile: images full-bleed, no shadow, text keeps the margin */
	.voll-projet-carte .wp-block-post-featured-image { margin-inline: calc(-1 * var(--marge)); }
	.voll-projet-carte .wp-block-post-featured-image img { aspect-ratio: 390 / 450; box-shadow: none; }
	.voll-projet-carte { gap: 16px; }
}

/* --------------------------------------------------------------------------
   Project header: breadcrumb, H1, subtitle (excerpt)
   -------------------------------------------------------------------------- */

.voll-projet-entete { gap: 24px; padding-bottom: 0; }
.voll-projet-entete .wp-block-post-title { font-size: clamp(42px, 2.29vw + 33px, 72px); max-width: 846px; }

.voll-fil p { font-size: 15px; line-height: 1.5; margin: 0; }
.voll-fil a { color: inherit; text-decoration: none; }
.voll-fil a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.voll-fil__sep { margin-inline: 0.6em; }

.voll-projet-sous-titre { margin: 0; }
.voll-projet-sous-titre .wp-block-post-excerpt__excerpt {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(30px, 0.38vw + 28.5px, 34px);
	line-height: 1.05;
	letter-spacing: -0.005em;
	color: var(--noyer);
	max-width: 846px;
	margin: 0;
}
.voll-projet-sous-titre .wp-block-post-excerpt__more-text { display: none; }

/* --------------------------------------------------------------------------
   Project content: shared rhythm (sections have bottom spacing only)
   -------------------------------------------------------------------------- */

.voll-projet-contenu { margin-block: 0 !important; }
.voll-projet-contenu > * + * { margin-block-start: 0; }
.voll-projet-contenu .voll-section { padding-top: 0; padding-bottom: var(--item); }
.voll-projet-contenu :is(.voll-recit:not(.voll-recit--etage), .voll-etages) { padding-bottom: var(--section-l); }
.voll-projet-contenu .voll-section:has(+ .voll-livrables) { padding-bottom: var(--section-l); }

/* Noyer quotes and lead sentences (Cormorant Regular) */
.voll-citation.wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(24px, 0.19vw + 23.3px, 26px);
	line-height: 1.05;
	letter-spacing: -0.005em;
	color: var(--noyer);
}
.voll-citation.wp-block-quote p { margin: 0; }
.voll-recit .voll-citation.wp-block-quote { font-size: clamp(24px, 0.38vw + 22.5px, 28px); }
.voll-chapeau {
	font-family: var(--serif);
	font-size: clamp(26px, 0.38vw + 24.5px, 30px);
	line-height: 1.05;
	letter-spacing: -0.005em;
	color: var(--noyer);
}

/* --------------------------------------------------------------------------
   Fiche: Lieu · Prestation · Surface · Statut
   -------------------------------------------------------------------------- */

.voll-pleine > .voll-projet-fiche {
	margin-block: 24px 0 !important;
	padding-bottom: clamp(32px, 1.52vw + 26px, 64px);
}
.voll-projet-fiche {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px var(--gouttiere);
}
.voll-projet-fiche::before {
	/* rule above the four columns */
	content: "";
	grid-column: 1 / -1;
	border-top: 1px solid var(--brun-nuit);
}
.voll-projet-fiche > * { margin: 0 !important; }
.voll-projet-fiche__item { display: flex; flex-direction: column; gap: 8px; }
.voll-projet-fiche__item > * { margin: 0; }

@media (min-width: 768px) {
	.voll-projet-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}
@media (min-width: 1024px) {
	.voll-projet-fiche { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Main visual: from the text edge to the right edge of the screen
   -------------------------------------------------------------------------- */

.voll-pleine > .wp-block-image.voll-projet-visuel {
	margin: 0 0 var(--section-l) var(--bord) !important;
	max-width: none;
	width: auto;
}
.voll-projet-visuel img {
	display: block;
	width: 100%;
	height: clamp(260px, 50vw, 720px);
	object-fit: cover;
}
@media (max-width: 767px) {
	.voll-pleine > .wp-block-image.voll-projet-visuel { margin-left: 0 !important; margin-bottom: 80px !important; }
	.voll-projet-visuel img { box-shadow: none; height: auto; aspect-ratio: 390 / 230; }
}

/* --------------------------------------------------------------------------
   Récit / floor introduction: 5 columns | 7 columns
   -------------------------------------------------------------------------- */

.voll-recit {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px var(--gouttiere);
	align-items: start;
}
.voll-recit__titre,
.voll-recit__texte { display: flex; flex-direction: column; gap: 20px; }
.voll-recit__texte { gap: 24px; }
.voll-recit__titre > *,
.voll-recit__texte > * { margin: 0; }
.voll-recit h2 { font-size: clamp(36px, 1.52vw + 30px, 52px); }

@media (min-width: 1024px) {
	/* 519 | 133 | 628 on the 1280 grid */
	.voll-recit { grid-template-columns: minmax(0, 519.33fr) minmax(0, 628fr); column-gap: clamp(64px, 9.2vw, 132.67px); }
}

/* --------------------------------------------------------------------------
   « Une maison sur trois niveaux »
   -------------------------------------------------------------------------- */

.voll-etages { display: flex; flex-direction: column; gap: 48px; }
.voll-etages__liste {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px var(--gouttiere);
}
.voll-etages__liste > * { margin: 0; }
.voll-etage {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid var(--brun-nuit);
	padding-top: 24px;
}
.voll-etage > * { margin: 0; }
.voll-etage__numero.voll-numero {
	font-weight: 300;
	font-size: clamp(38px, 2.48vw + 28.3px, 64px);
	line-height: 1;
}
.voll-etage h3 {
	font-size: clamp(26px, 0.57vw + 23.8px, 32px);
	line-height: 1.15;
	letter-spacing: 0;
}
.voll-etage__note { font-size: 16px; line-height: 1.5; }

@media (min-width: 768px) {
	.voll-etages__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Rooms: visual(s) + text. Default image left (844 | 26 | 410),
   inverse: text left, image to the right edge (517 | 133 | 710)
   -------------------------------------------------------------------------- */

.voll-piece {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 26px;
	align-items: start;
}
.voll-piece__visuels { display: flex; flex-direction: column; gap: 24px; }
.voll-piece__visuels > * { margin: 0; }
.voll-piece__visuels .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 844 / 553;
	object-fit: cover;
}
.voll-piece__texte { display: flex; flex-direction: column; gap: 20px; }
.voll-piece__texte > * { margin: 0; }
.voll-piece__texte h3 {
	font-size: clamp(36px, 1.52vw + 30px, 52px);
	line-height: 1.05;
	margin-bottom: 0;
}
/* Paragraphs of a room are separated by an empty line in Figma */
.voll-piece__texte > p:not(.is-style-surtitre):not(.voll-matieres) + p:not(.voll-matieres) { margin-top: 32px; }
.voll-matieres { line-height: 1.5; }

/* Image placeholder (« À REMPLACER »): pierre box, note visible in the editor only */
.voll-visuel-attente {
	background: var(--pierre);
	aspect-ratio: 844 / 553;
	box-shadow: var(--ombre-douce);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
}
.voll-visuel-attente p { display: none; }
:is(.editor-styles-wrapper, .block-editor-block-list__layout) .voll-visuel-attente p { display: block; font-size: 15px; }

@media (min-width: 1024px) {
	.voll-piece { grid-template-columns: minmax(0, 844fr) minmax(0, 410.67fr); }
	.voll-piece--inverse {
		grid-template-columns: minmax(0, 517fr) minmax(0, 710fr);
		column-gap: clamp(64px, 9.2vw, 132.67px);
		padding-right: 0;
	}
	.voll-piece--inverse .voll-piece__visuels .wp-block-image img,
	.voll-piece--inverse .voll-visuel-attente { aspect-ratio: 710 / 553; }
	/* Wider than the grid: the image keeps bleeding to the right edge */
	.voll-piece--inverse { padding-right: 0; }
}
@media (max-width: 767px) {
	/* Mobile: images full-bleed, no shadow */
	.voll-piece__visuels { margin-inline: calc(-1 * var(--marge)); }
	.voll-piece__visuels .wp-block-image img { box-shadow: none; aspect-ratio: 390 / 230; }
	.voll-visuel-attente { box-shadow: none; aspect-ratio: 390 / 230; }
	.voll-piece__texte > p:not(.is-style-surtitre):not(.voll-matieres) + p:not(.voll-matieres) { margin-top: 24px; }
}

/* --------------------------------------------------------------------------
   « Ce que le studio a réalisé » (pierre + grain)
   -------------------------------------------------------------------------- */

.voll-projet-contenu .voll-livrables {
	padding-block: var(--wp--preset--spacing--70);
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.voll-livrables h2 {
	font-size: var(--wp--preset--font-size--numero);
	max-width: 560px;
}
.voll-livrables__colonnes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px var(--gouttiere);
}
.voll-livrables__colonnes > * { margin: 0; }
.voll-livrable { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.voll-livrable > * { margin: 0; }
.voll-livrable h3 {
	font-style: italic;
	font-weight: 700;
	font-size: clamp(28px, 0.76vw + 25px, 36px);
	line-height: 1.4;
	letter-spacing: 0;
}
.voll-livrable__liste { list-style: none; margin: 0; padding: 0; }
.voll-livrable__liste > li { position: relative; padding-left: 27px; }
.voll-livrable__liste > li + li { margin-top: 4px; }
.voll-livrable__liste > li::before {
	content: "·";
	position: absolute;
	left: 10px;
	top: 0;
}
.voll-livrable__liste strong { font-weight: 500; }

@media (min-width: 768px) {
	.voll-livrables__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
	.voll-livrables__colonnes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Navigation between projects
   -------------------------------------------------------------------------- */

.voll-projet-navigation {
	padding: var(--wp--preset--spacing--70) var(--bord) var(--item);
	margin-block: 0 !important;
}
.voll-nav-projets {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px 40px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.voll-nav-projets a {
	display: inline-flex;
	align-items: baseline;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}
.voll-nav-projets a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.voll-nav-projets__suivant { margin-left: auto; text-align: right; }

@media (max-width: 767px) {
	.voll-projet-navigation { padding-block: 48px 64px; }
	.voll-nav-projets { flex-direction: column; font-size: 14px; }
	.voll-nav-projets__suivant { margin-left: 0; text-align: left; }
}
