/* ==========================================================================
   Thème Jérémy Veron — fond blanc, encre, brique réservée à l'interaction.
   ========================================================================== */

:root {
	--blanc: #ffffff;
	--encre: #111111;
	--gris: #6b6b6b;
	--filet: #e4e4e4;
	--fond-image: #f2f2f2;
	--brique: #b8432e;
	--brique-fonce: #8c2e1e;

	--texte: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--titre: "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--marge: 40px;
	--gouttiere: 24px;
	--respiration: 160px;
}

@media (max-width: 800px) {
	:root {
		--marge: 20px;
		--gouttiere: 10px;
		--respiration: 56px;
	}
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
	margin: 0;
	background: var(--blanc);
	color: var(--encre);
	font-family: var(--texte);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	animation: jv-apparition 0.5s ease both;
}

@keyframes jv-apparition {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brique); }

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* Texte sélectionné : brique foncée, comme le point du curseur. */
::selection { background: var(--brique-fonce); color: var(--blanc); }

:focus-visible {
	outline: 2px solid var(--brique);
	outline-offset: 3px;
}

h1, h2, h3 {
	font-family: var(--titre);
	font-weight: 400;
	margin: 0;
}

h1 {
	font-size: 44px;
	line-height: 1;
	letter-spacing: -0.02em;
}

@media (max-width: 800px) {
	h1 { font-size: 32px; }
}

.jv-discret { color: var(--gris); }

.jv-skip {
	position: absolute;
	left: var(--marge);
	top: -60px;
	padding: 10px 14px;
	background: var(--encre);
	color: var(--blanc);
	z-index: 100;
}
.jv-skip:focus { top: 10px; color: var(--blanc); }

.jv-vide {
	padding: 160px var(--marge);
	color: var(--gris);
	text-align: center;
}

/* En-tête ---------------------------------------------------------------- */

.jv-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 28px var(--marge);
	font-size: 13px;
	letter-spacing: 0.01em;
}

/* Le nom en Neue Haas Grotesk Text 75 Bold. */
.jv-nom { font-family: var(--texte); font-weight: 700; letter-spacing: 0; }

.jv-nav {
	display: flex;
	align-items: baseline;
	gap: 28px;
}

.jv-nav-liste {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Rubrique active : le texte reste noir, précédé d'un point brique foncée comme le curseur. */
.jv-nav-liste .current-menu-item > a,
.jv-nav-liste .current-menu-ancestor > a,
.jv-nav-liste .current-menu-parent > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--encre);
}
.jv-nav-liste .current-menu-item > a::before,
.jv-nav-liste .current-menu-ancestor > a::before,
.jv-nav-liste .current-menu-parent > a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brique-fonce);
}
.jv-nav-liste .current-menu-item > a:hover { color: var(--brique); }

.jv-panier { color: var(--gris); }

.jv-menu-bouton { display: none; }

@media (max-width: 800px) {
	.jv-header {
		align-items: center;
		padding: 8px var(--marge);
		min-height: 60px;
		font-size: 14px;
	}
	.jv-nav { display: none; }
	.jv-menu-bouton {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Menu mobile : plein écran brique */

.jv-menu-mobile {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	padding: calc(8px + env(safe-area-inset-top, 0px)) var(--marge) calc(28px + env(safe-area-inset-bottom, 0px));
	background: var(--brique-fonce);
	color: var(--blanc);
}
.jv-menu-mobile[hidden] { display: none; }
.jv-menu-mobile a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 4px; }

.jv-menu-mobile-haut {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 52px;
	font-size: 14px;
}
.jv-menu-fermer { min-width: 44px; min-height: 44px; text-align: right; }
html.jv-focus-souris .jv-menu-fermer:focus:not(:focus-visible),
html.jv-focus-souris .jv-menu-bouton:focus:not(:focus-visible) { outline: none; }

.jv-menu-mobile-nav { flex: 1; display: flex; align-items: center; }

.jv-menu-mobile-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--titre);
	font-size: 46px;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.jv-menu-mobile-bas {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
}
.jv-menu-mobile-bas a { min-height: 40px; display: flex; align-items: center; }

html.jv-menu-ouvert { overflow: hidden; }

/* Bas de page ------------------------------------------------------------ */

.jv-pied {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 24px var(--marge) 28px;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--gris);
}

.jv-pied-liste {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jv-pied-copyright { margin: 0; text-align: right; }

.jv-musique { position: relative; display: flex; justify-content: center; }

.jv-musique-bouton {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--gris);
}
.jv-musique-bouton:hover,
.jv-musique-bouton.est-actif { color: var(--brique); }

.jv-musique-lecteur {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	width: 340px;
	max-width: calc(100vw - 2 * var(--marge));
	transform: translateX(-50%);
	z-index: 20;
}
.jv-musique-lecteur iframe { display: block; border: 0; border-radius: 12px; }

@media (max-width: 800px) {
	.jv-pied {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 8px;
	}
	.jv-musique { justify-content: flex-start; }
	.jv-musique-lecteur { left: 0; transform: none; }
	.jv-pied-copyright { text-align: left; }
}

/* Accueil ---------------------------------------------------------------- */

body.jv-accueil {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}
body.jv-accueil .jv-contenu { flex: 1; display: flex; }

.jv-diaporama {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 480px;
}

.jv-diaporama-scene {
	position: relative;
	flex: 1;
	width: 100%;
	display: block;
}

.jv-diapo {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--gouttiere);
	padding: 0 var(--marge);
	opacity: 0;
	transition: opacity 1.4s ease;
	pointer-events: none;
}
.jv-diapo.est-active { opacity: 1; pointer-events: auto; }
/* Les photos de l'accueil reçoivent le survol : le curseur devient blanc sur l'image,
   et reste brique dans les marges autour (le clic passe toujours au diptyque suivant). */

.jv-diapo-portrait img {
	height: min(68vh, 700px);
	width: auto;
	max-width: calc(50% - var(--gouttiere) / 2);
	object-fit: cover;
}
.jv-diapo-paysage img {
	width: min(40vw, 620px);
	height: auto;
}
.jv-diapo-paysage img:only-child { width: min(72vw, 1100px); }
.jv-diapo-portrait img:only-child { max-width: 100%; }

.jv-diaporama-infos {
	display: flex;
	justify-content: space-between;
	padding: 16px var(--marge) 0;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--gris);
	min-height: 34px;
}

@media (max-width: 800px) {
	.jv-diapo { padding: 0; }
	/* Sur mobile, le script sépare les diptyques : une image par diapositive. */
	.jv-diapo-portrait img {
		height: min(70svh, 600px);
		width: 100%;
		max-width: 100%;
	}
	.jv-diapo-paysage img,
	.jv-diapo-paysage img:only-child { width: 100%; }
}

/* Rubriques : grilles ---------------------------------------------------- */

.jv-rubrique,
.jv-shop { padding: 0 var(--marge); }

.jv-rubrique-tete {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	padding: 24px 0 28px;
}

.jv-rubrique-titre { display: flex; flex-direction: column; gap: 12px; }
.jv-rubrique-titre p { margin: 0; font-size: 13px; }

.jv-projets-liens {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	font-size: 13px;
}

.jv-grille {
	container-type: inline-size;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--gouttiere);
	row-gap: 20px;
}

.jv-tuile {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.jv-tuile-large { grid-column: span 2; }

.jv-tuile-image {
	display: block;
	height: calc((100cqw - 3 * var(--gouttiere)) / 4 * 1.5);
	background: var(--fond-image);
	overflow: hidden;
}
.jv-tuile-image img { width: 100%; height: 100%; object-fit: cover; }

.jv-tuile-legende {
	min-height: 18px;
	font-size: 12px;
	color: var(--brique);
	opacity: 0;
	transition: opacity 0.4s ease;
}
.jv-tuile:hover .jv-tuile-legende,
.jv-tuile:focus-visible .jv-tuile-legende { opacity: 1; }

@media (hover: none) {
	.jv-tuile-legende { opacity: 1; color: var(--gris); }
}

@media (max-width: 800px) {
	.jv-rubrique-tete {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 12px 0 20px;
	}
	.jv-projets-liens {
		flex-wrap: nowrap;
		overflow-x: auto;
		max-width: 100%;
		gap: 18px;
		white-space: nowrap;
	}
	.jv-projets-liens a { min-height: 36px; display: flex; align-items: center; }
	.jv-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
	.jv-tuile-image { height: calc((100cqw - var(--gouttiere)) / 2 * 1.5); }
	.jv-tuile-large .jv-tuile-image { height: calc(100cqw / 1.5); }
	.jv-tuile-legende { font-size: 11px; }
}

/* Page projet ------------------------------------------------------------ */

.jv-projet { padding: 0 var(--marge); }

.jv-projet-tete {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 48px;
	padding: 140px 0 80px;
}

.jv-projet-texte {
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.jv-projet-sous-titre { margin: 0; }
.jv-projet-texte .jv-texte p { margin: 0 0 0.8em; }

.jv-sequence {
	display: flex;
	flex-direction: column;
	gap: var(--respiration);
}

.jv-bloc img { width: 100%; height: auto; }

.jv-bloc-centre { display: flex; justify-content: center; }
.jv-bloc-centre img { width: min(1100px, 82%); }

.jv-bloc-diptyque {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gouttiere);
	padding: 0 120px;
}
.jv-bloc-diptyque img { aspect-ratio: 2 / 3; height: auto; object-fit: cover; }

.jv-bloc-seul-droite { display: flex; justify-content: flex-end; padding-right: 200px; }
.jv-bloc-seul-droite img { width: min(400px, 40%); }

.jv-bloc-seul-gauche { display: flex; justify-content: flex-start; padding-left: 200px; }
.jv-bloc-seul-gauche img { width: min(320px, 32%); }

.jv-projet-pied {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: var(--respiration);
	padding-top: 20px;
	border-top: 1px solid var(--filet);
	font-size: 13px;
}

.jv-projet-suivant {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	font-family: var(--titre);
	font-size: 22px;
	letter-spacing: -0.01em;
}
.jv-projet-suivant .jv-discret { font-family: var(--texte); font-size: 12px; }

@media (max-width: 800px) {
	.jv-projet-tete {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 56px 0 40px;
	}
	.jv-bloc-plein { margin: 0 calc(-1 * var(--marge)); }
	.jv-bloc-centre img { width: 100%; }
	.jv-bloc-diptyque { padding: 0; }
	.jv-bloc-seul-droite { padding-right: 0; }
	.jv-bloc-seul-gauche { padding-left: 0; }
	.jv-bloc-seul-droite img { width: 62%; }
	.jv-bloc-seul-gauche img { width: 56%; }
	.jv-bloc img { max-height: 90svh; object-fit: cover; }
	.jv-projet-pied { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
	.jv-projet-suivant { align-items: flex-start; font-size: 26px; }
}

/* Pages simples (Info, mentions légales) --------------------------------- */

.jv-page {
	padding: 40px var(--marge) 80px;
	max-width: 1440px;
}
.jv-page h1 { margin-bottom: 56px; }

.jv-texte { font-size: 15px; line-height: 1.55; }
.jv-texte > * { max-width: 64ch; }
.jv-texte > .alignwide,
.jv-texte > .alignfull,
.jv-texte > .wp-block-columns,
.jv-texte > .wp-block-image { max-width: none; }
.jv-texte p { margin: 0 0 1em; }
.jv-texte h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.015em; margin: 1.6em 0 0.6em; }
.jv-texte h3 { font-size: 12px; color: var(--gris); font-family: var(--texte); margin: 2em 0 0.5em; }
.jv-texte a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jv-texte .is-style-intro,
.jv-texte .has-large-font-size { font-family: var(--titre); font-size: 28px; line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.jv-texte .wp-block-columns { gap: var(--gouttiere); margin: 64px 0; }
.jv-texte ul { padding-left: 1.1em; }

@media (max-width: 800px) {
	.jv-page { padding: 56px var(--marge) 56px; }
	.jv-page h1 { margin-bottom: 32px; }
	.jv-texte .has-large-font-size { font-size: 24px; }
}

/* Mosaïque et album ------------------------------------------------------- */

/* L'introduction des rubriques et des projets s'aligne sur la colonne de la mosaïque. */
@media (min-width: 801px) {
	.jv-rubrique:not(.jv-rubrique-large) > .jv-rubrique-tete {
		width: min(880px, 100%);
		margin-left: auto;
		margin-right: auto;
	}
	.jv-rubrique > .jv-projet-intro {
		margin-left: max(0px, calc((100% - 880px) / 2));
	}
}

.jv-rubrique-nom {
	font-family: var(--texte);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: var(--gris);
}
.jv-projets-liens button { min-height: 32px; font-size: 13px; color: var(--encre); transition: color 0.2s ease; }
.jv-projets-liens button:hover { color: var(--brique); }
.jv-projet-intro { margin: 0 0 28px; max-width: 480px; font-size: 14px; color: var(--gris); }

.jv-album {
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding-bottom: 80px;
	transition: gap 0.6s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.jv-album.est-ouvert { gap: 40px; }

.jv-album-vue {
	position: sticky;
	top: 24px;
	flex-shrink: 0;
	width: 0;
	opacity: 0;
	overflow: hidden;
	transition: width 0.6s cubic-bezier(0.22, 0.7, 0.2, 1), opacity 0.5s ease 0.1s;
}
.jv-album.est-ouvert .jv-album-vue { width: var(--jv-vue, 820px); opacity: 1; }

.jv-album-grande {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* La photo, l'en-tête, l'intro et la barre du bas tiennent dans l'écran, sans défiler. */
	height: min(calc(100vh - var(--jv-haut, 230px)), 780px);
	height: min(calc(100svh - var(--jv-haut, 230px)), 780px);
	min-height: 320px;
}
.jv-album-grande img {
	/* L'image occupe exactement la surface de la photo (pas les marges blanches autour),
	   pour que le curseur ne devienne blanc que sur la photo elle-même. */
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	transition: opacity 0.35s ease;
}

.jv-album-vue-haut,
.jv-album-miniatures { display: none; }

.jv-album-vue-bas {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--gris);
}
.jv-album-infos { display: flex; gap: 20px; }
.jv-album-legende { color: var(--brique); opacity: 0; transition: opacity 0.3s ease; }
.jv-album-legende.est-visible { opacity: 1; }
.jv-album-fermer { min-height: 44px; color: var(--encre); }
.jv-album-fermer:hover { color: var(--brique); }

.jv-mosaique {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	row-gap: 14px;
	margin: 0 auto;
	max-width: 100%;
}
.jv-album.est-ouvert .jv-mosaique { margin: 0; }

.jv-tuile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 200px;
	text-align: left;
	transition: opacity 0.4s ease;
}
.jv-tuile-image {
	display: block;
	height: 240px;
	overflow: hidden;
	background: var(--fond-image);
}
.jv-tuile-image img { width: 100%; height: 100%; object-fit: cover; }

.jv-tuile-legende {
	height: 14px;
	font-size: 12px;
	line-height: 14px;
	color: var(--brique);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transition: opacity 0.35s ease;
}
.jv-tuile:hover .jv-tuile-legende,
.jv-tuile:focus-visible .jv-tuile-legende { opacity: 1; }

.jv-album.est-ouvert .jv-tuile-legende { display: none; }
.jv-tuile-nom-mobile { display: none; }
.jv-mosaique { align-items: flex-start; }
.jv-album.est-ouvert .jv-tuile { opacity: 0.45; }
.jv-album.est-ouvert .jv-tuile.est-courante,
.jv-album.est-ouvert .jv-tuile:hover { opacity: 1; }

@media (max-width: 800px) {
	.jv-album { display: block; }
	.jv-tuile-legende { display: none; }
	/* Sur mobile, le nom de l'album sous la première photo de chaque série. */
	.jv-tuile-nom-mobile {
		display: block;
		padding-top: 6px;
		font-size: 11px;
		line-height: 14px;
		color: var(--gris);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.jv-album.est-ouvert .jv-tuile { opacity: 1; }

	.jv-album-vue {
		position: fixed;
		inset: 0;
		z-index: 60;
		display: flex;
		flex-direction: column;
		width: 100% !important;
		background: var(--blanc);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.4s ease;
	}
	.jv-album.est-ouvert .jv-album-vue { opacity: 1; pointer-events: auto; }

	.jv-album-vue-haut {
		display: flex;
		justify-content: space-between;
		align-items: center;
		min-height: 60px;
		padding: env(safe-area-inset-top, 0px) var(--marge) 0;
		font-size: 13px;
		color: var(--gris);
	}
	.jv-album-legende-mobile { white-space: pre; }
	.jv-album-vue-bas { display: none; }
	.jv-album-grande { flex: 1; height: auto; min-height: 0; }
	.jv-album-grande img { max-height: calc(100svh - 190px); }

	.jv-album-miniatures {
		display: flex;
		align-items: flex-end;
		gap: 6px;
		overflow-x: auto;
		padding: 14px var(--marge) calc(24px + env(safe-area-inset-bottom, 0px));
	}
	.jv-album-miniatures button { flex-shrink: 0; height: 55px; overflow: hidden; opacity: 0.4; transition: opacity 0.3s ease; }
	.jv-album-miniatures button.est-courante { opacity: 1; }
	.jv-album-miniatures img { width: 100%; height: 100%; object-fit: cover; }
}

html.jv-album-plein-ecran { overflow: hidden; }

/* Calendrier des mariages ------------------------------------------------- */

.jv-calendrier {
	max-width: 880px;
	margin: 0 auto 96px;
	padding-top: 20px;
	border-top: 1px solid var(--filet);
}
.jv-calendrier-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.jv-calendrier-titre { margin: 0; font-size: 13px; }
.jv-calendrier-nav { display: flex; gap: 8px; }
.jv-calendrier-nav button { min-width: 44px; min-height: 44px; font-size: 16px; color: var(--encre); }
.jv-calendrier-nav button:hover { color: var(--brique); }
.jv-calendrier-nav button:disabled { color: var(--filet); cursor: default; }

.jv-calendrier-mois { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.jv-mois-nom { margin: 0 0 14px; font-size: 13px; color: var(--gris); }
.jv-mois-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; text-align: center; }
.jv-jour-nom { font-size: 11px; color: var(--gris); padding-bottom: 8px; }
.jv-jour {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
a.jv-jour.est-libre { color: var(--encre); transition: color 0.2s ease; }
a.jv-jour.est-libre:hover,
a.jv-jour.est-libre:focus-visible { color: var(--brique); }
.jv-jour.est-passe { color: #c4c4c4; }
.jv-jour.est-pris { color: var(--gris); text-decoration: line-through; text-decoration-color: var(--brique); }

.jv-jour.est-libre { width: 100%; color: var(--encre); transition: color 0.2s ease; }
.jv-jour.est-libre:hover,
.jv-jour.est-libre:focus-visible,
.jv-jour.est-choisi { color: var(--brique); }
.jv-jour.est-choisi { text-decoration: underline; text-underline-offset: 4px; }

.jv-demande {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
	margin: 24px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--filet);
	font-size: 13px;
}
.jv-demande[hidden] { display: none; }
.jv-demande-date { flex-basis: 100%; font-size: 15px; }
.jv-demande a,
.jv-demande button { min-height: 40px; display: inline-flex; align-items: center; color: var(--encre); }
.jv-demande a:hover,
.jv-demande button:hover { color: var(--brique); }
.jv-demande-copie { color: var(--gris); font-size: 12px; }

.jv-calendrier-legende { display: flex; gap: 32px; margin: 24px 0 0; font-size: 12px; color: var(--gris); }
.jv-calendrier-legende .jv-pris { text-decoration: line-through; text-decoration-color: var(--brique); }

@media (max-width: 800px) {
	.jv-calendrier-mois { grid-template-columns: 1fr; }
	.jv-calendrier-legende { flex-direction: column; gap: 6px; }
}
/* Weddings : planche contact + calendrier dans le panneau ------------------- */

.jv-dispo-bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; color: var(--encre); }
.jv-dispo-bouton:hover,
.jv-album.mode-calendrier ~ * .jv-dispo-bouton { color: var(--brique); }
.jv-dispo-point { width: 6px; height: 6px; border-radius: 50%; background: var(--brique-fonce); }

.jv-album-dense .jv-tuile-legende,
.jv-album-dense .jv-tuile-nom-mobile { display: none !important; }
.jv-album-calendrier { display: none; }
.jv-album.mode-calendrier .jv-album-calendrier { display: block; }
.jv-album.mode-calendrier .jv-album-grande,
.jv-album.mode-calendrier .jv-album-miniatures,
.jv-album.mode-calendrier .jv-album-compteur,
.jv-album.mode-calendrier .jv-album-legende-mobile { display: none; }
.jv-album.mode-calendrier .jv-tuile { opacity: 1; }
.jv-album-calendrier .jv-calendrier { max-width: none; margin: 0; padding-top: 0; border-top: 0; }

@media (max-width: 800px) {
	.jv-album.mode-calendrier .jv-album-vue { overflow-y: auto; }
	.jv-album-calendrier { padding: 8px var(--marge) 40px; }
}

/* Info : commandes ------------------------------------------------------- */

.jv-commandes { margin: 40px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.55; }

/* Livre : texte bilingue et carrousel ---------------------------------------- */

html:not([data-jv-langue="en"]) .jv-langue[data-langue="en"],
html[data-jv-langue="en"] .jv-langue[data-langue="fr"] { display: none; }
.jv-langue-choix { display: flex; justify-content: flex-end; gap: 10px; margin: 0; font-size: 13px; color: var(--filet); }
.jv-langue-choix button { color: #b5b5b5; min-height: 32px; }
.jv-langue-choix button[aria-pressed="true"] { color: var(--encre); }
.jv-livre-texte { font-size: 14px; line-height: 1.55; max-width: 46ch; }
.jv-livre-texte p { margin: 0 0 1em; }

.jv-shop div.product .woocommerce-product-gallery { position: relative; padding: 0; background: none; }
.jv-shop .woocommerce-product-gallery .flex-viewport img { width: 100%; height: auto; }
.jv-shop .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.jv-shop .flex-direction-nav a {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--blanc);
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
	z-index: 2;
}
.jv-shop .flex-direction-nav .flex-prev { left: 8px; }
.jv-shop .flex-direction-nav .flex-next { right: 8px; }
.jv-shop .flex-control-paging { display: flex; justify-content: flex-end; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.jv-shop .flex-control-paging a { display: block; width: 6px; height: 6px; border-radius: 50%; background: #d6d6d6; font-size: 0; }
.jv-shop .flex-control-paging a.flex-active { background: var(--brique-fonce); }
.jv-shop .woocommerce-product-gallery__trigger { display: none; }

/* Shop : vente à venir --------------------------------------------------- */

.jv-a-venir { color: var(--gris); font-size: 14px; }
.jv-shop div.product .jv-a-venir { font-size: 18px; color: var(--encre); }
/* Contact ---------------------------------------------------------------- */

.jv-contact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 56px 0 0;
}
.jv-contact-bouton {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	font-size: 14px;
}
.jv-contact-bouton svg { flex-shrink: 0; color: var(--gris); transition: color 0.2s ease; }
.jv-contact-bouton:hover svg { color: var(--brique); }

/* WooCommerce ------------------------------------------------------------ */

.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering { display: none; }

.jv-shop ul.products {
	container-type: inline-size;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 48px 32px;
	margin: 0 0 80px;
	padding: 0;
	list-style: none;
}
.jv-shop ul.products::before,
.jv-shop ul.products::after { display: none; }
.jv-shop ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
}
.jv-shop ul.products li.product a img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: contain;
	padding: 12%;
	background: var(--fond-image);
	margin: 0 0 14px;
}
.jv-shop .woocommerce-loop-product__title {
	font-family: var(--texte);
	font-size: 15px;
	padding: 0;
	margin: 0 0 4px;
}
.jv-shop ul.products .price { color: var(--gris); font-size: 13px; }
.jv-shop ul.products .button { display: none; }

.jv-shop .onsale { display: none; }

/* Un seul produit : présentation en grand */
.jv-shop ul.products:has(> li.product:only-child) { grid-template-columns: minmax(0, 640px); }
.jv-shop ul.products li.product:only-child .woocommerce-loop-product__title { font-family: var(--titre); font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.jv-shop ul.products li.product:only-child .price { font-size: 18px; color: var(--encre); }

.jv-shop-note {
	display: flex;
	gap: 48px;
	margin: 0 0 96px;
	padding-top: 16px;
	border-top: 1px solid var(--filet);
	font-size: 13px;
}

/* Fiche produit */
/* Les règles de WooCommerce (.woocommerce div.product div.images à 48 % et en flottant)
   sont plus spécifiques : on les neutralise pour que la grille du thème s'applique. */
.jv-shop div.product div.images,
.jv-shop div.product div.summary,
.jv-shop div.product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}
.jv-shop div.product { align-items: start; }
.jv-shop div.product div.summary { position: sticky; top: 24px; }
.jv-shop div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.jv-shop div.product .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }
.jv-shop div.product .flex-control-thumbs { display: none; }
.jv-shop div.product {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 80px;
	padding: 72px 0 120px;
}
.jv-shop div.product .woocommerce-product-gallery {
	width: 100%;
	float: none;
	background: var(--fond-image);
	padding: 8%;
}
.jv-shop div.product .summary { width: 100%; float: none; display: flex; flex-direction: column; gap: 20px; }
.jv-shop div.product .product_title { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.jv-shop div.product p.price { font-size: 22px; color: var(--encre); margin: 0; }
.jv-shop .woocommerce-product-details__short-description { color: var(--gris); max-width: 46ch; }
.jv-shop .product_meta,
.jv-shop .woocommerce-tabs,
.jv-shop .related,
.jv-shop .upsells { display: none; }

.jv-shop table.variations { border: 0; width: 100%; }
.jv-shop table.variations th,
.jv-shop table.variations td { display: block; padding: 0; text-align: left; }
.jv-shop table.variations label { font-size: 12px; color: var(--gris); font-weight: 400; }
.jv-shop select,
.jv-shop input.qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	font: inherit;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--filet);
	border-radius: 0;
	background: var(--blanc);
	color: var(--encre);
}
.jv-shop .reset_variations { font-size: 12px; color: var(--gris); }

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.wc-block-components-button {
	font: inherit;
	font-size: 14px;
	min-height: 52px;
	padding: 14px 28px;
	border: 0;
	border-radius: 0;
	background: var(--brique);
	color: var(--blanc);
	cursor: pointer;
	transition: background 0.2s ease;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:hover { background: var(--brique-fonce); color: var(--blanc); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 32px;
	padding: 16px 0;
	border-top: 1px solid var(--filet);
	border-bottom: 1px solid var(--filet);
	font-size: 13px;
}
.woocommerce-message .button { min-height: 0; padding: 0; background: none; color: var(--brique); margin-left: 16px; }

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 14px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 16px 8px;
	border-top: 1px solid var(--filet);
	text-align: left;
	font-weight: 400;
}
.woocommerce table.shop_table img { width: 72px; }

@media (max-width: 800px) {
	.jv-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
	.jv-shop div.product { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 80px; }
	.jv-shop div.product div.summary { position: static; }
	.jv-shop div.product .product_title { font-size: 28px; }
}

/* Mouvement réduit ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	body { animation: none; }
	.jv-diapo,
	.jv-tuile-legende,
	.jv-album,
	.jv-album-vue,
	.jv-album-grande img,
	a { transition: none; }
}
