/* ==========================================================================
   Clem Baboz Photography – feuille de style du site public
   Reprend l'identité de l'ancien site : vert olive, Bebas Neue, Museo Sans.
   ========================================================================== */

@font-face {
	font-family: "Bebas Neue";
	src: url("../fonts/bebas-neue-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* nom des photos au survol (comme l'ancien site) */
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-600.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "Museo Sans";
	src: url("../fonts/museo-sans-500.otf") format("opentype");
	font-weight: 400 500;
	font-display: swap;
}

:root {
	--vert: #586232;
	--encre: #111;
	--texte: #000;
	--gris: #6b6b6b;
	--fond: #fff;
	--fond-doux: #f4f4f4;
	--trait: #d9d9d9;
	--pied: #282828;

	--titres: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
	--corps: "Museo Sans", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--marge: clamp(16px, 2.5vw, 32px);
	--entete: 97px;
	/* comme l'ancien site, la colonne de gauche grandit avec l'écran :
	   240 px en 1280 px de large, ~380 px en 1920 px */
	--colonne: clamp(230px, 19.5vw, 440px);
}

@media (max-width: 860px) {
	:root { --entete: 72px; }
}

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

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

body {
	margin: 0;
	background: var(--fond);
	color: var(--texte);
	font: 16px/1.5 var(--corps);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main { flex: 1; }

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

a { color: inherit; }

h1, h2, h3 {
	font-family: var(--titres);
	font-weight: 400;
	line-height: 1;
	letter-spacing: .01em;
	margin: 0 0 .5em;
}

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.titre-vert {
	color: var(--vert);
	font-size: clamp(2.4rem, 4.1vw, 3.25rem);
	text-transform: uppercase;
}

.titre-vert--grand {
	font-size: clamp(3rem, 7.9vw, 6.3rem);
	text-align: center;
	text-shadow: 1px 1px 0 #2b2f18;
}

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

.entete {
	position: sticky; top: 0; z-index: 20;
	height: var(--entete);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 0 var(--marge) 0 0;
	background: var(--fond);
}

.logo {
	display: flex; align-items: center; gap: 0;
	text-decoration: none;
	color: var(--vert);
	font-family: var(--titres);
	font-size: 33px;
	text-transform: uppercase;
	white-space: nowrap;
}
.logo img { width: 90px; height: 90px; padding: 14px; object-fit: contain; }

.menu ul {
	display: flex; gap: 8px 30px;
	margin: 0; padding: 0; list-style: none;
}

.menu a {
	font-family: var(--titres);
	font-size: 33.6px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--encre);
	transition: color .2s;
}
.menu a:hover, .menu a[aria-current] { color: var(--vert); }

.menu-bouton {
	display: none;
	width: 44px; height: 44px;
	border: 0; background: none; cursor: pointer;
	position: relative;
}

.menu-bouton span[aria-hidden],
.menu-bouton span[aria-hidden]::before,
.menu-bouton span[aria-hidden]::after {
	position: absolute; right: 6px; height: 3px; border-radius: 2px;
	background: var(--encre); content: ""; transition: transform .25s, top .25s, width .25s;
}
.menu-bouton span[aria-hidden] { top: 20px; width: 24px; }
.menu-bouton span[aria-hidden]::before { right: 0; top: -8px; width: 32px; }
.menu-bouton span[aria-hidden]::after { right: 0; top: 8px; width: 32px; }

.menu-bouton[aria-expanded="true"] span[aria-hidden] { background: transparent; }
.menu-bouton[aria-expanded="true"] span[aria-hidden]::before { top: 0; width: 28px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] span[aria-hidden]::after { top: 0; width: 28px; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.menu-bouton { display: block; }
	.menu {
		position: fixed; inset: var(--entete) 0 0 0;
		background: var(--fond);
		padding: 32px var(--marge);
		display: none;
	}
	.menu.ouvert { display: block; }
	.menu ul { flex-direction: column; gap: 20px; }
	.menu a { font-size: 2.6rem; }
}

/* ---------- Boutons ---------- */

.bouton {
	display: inline-block;
	padding: 12px 24px;
	font: 500 15px/1.2 Roboto, var(--corps);
	text-align: center;
	text-decoration: none;
	border: 1px solid var(--encre);
	transition: background .2s, color .2s;
	cursor: pointer;
}

.bouton--plein { background: var(--encre); color: #fff; }
.bouton--plein:hover { background: #fff; color: var(--encre); }

.bouton--clair {
	background: #fff; color: #000;
	border: 0;
	font-family: var(--titres); font-weight: 400; font-size: 18px; line-height: 33px; letter-spacing: 1px;
	padding: 15px 70px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
.bouton--clair:hover { background: var(--encre); color: #fff; }

.bouton--rond { border-radius: 999px; }

.galerie-retour {
	font-family: var(--titres); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em;
	padding: 8px 16px 6px;
}

/* ---------- Colonne à titre vertical (accueil, rubriques) ---------- */

.disposition-colonne {
	display: grid;
	grid-template-columns: var(--colonne) 1fr;
	min-height: calc(100vh - var(--entete));
}

.colonne {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 24px;
	padding: 24px 16px 32px clamp(24px, 1.95vw, 44px);
}

.colonne-titre {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	align-self: flex-start;
	margin: 0;
	color: var(--vert);
	font-size: clamp(48px, 5vw, 112px);
	line-height: 1;
	text-transform: uppercase;
}
.disposition-colonne--accueil .colonne-titre { font-size: clamp(56px, 6vw, 130px); }

.colonne-texte { font-size: 16px; line-height: 24px; }
.colonne-texte p { margin: 0 0 1em; }

/* Accueil : photo du mois, avec le bouton « Acheter » posé sur la photo */
.disposition-colonne--accueil { min-height: 0; grid-template-columns: clamp(230px, 18.9vw, 420px) 1fr; }
.disposition-colonne--accueil .colonne { justify-content: space-between; }
.disposition-colonne--accueil .colonne-texte p:last-child { margin: 0; }

.photo-du-mois { position: relative; }
.photo-du-mois img {
	width: 100%;
	height: max(420px, 85vh);
	object-fit: cover;
}
.photo-du-mois .bouton--clair {
	position: absolute;
	left: clamp(10px, 1.6vw, 40px);
	bottom: 85px;
	z-index: 2;
	font-size: clamp(16px, 1.4vw, 30px);
}

/* ---------- Tuiles des rubriques ---------- */

.tuiles {
	display: grid;
	grid-template-columns: repeat(var(--colonnes, 4), 1fr);
	/* comme l'ancien site : grand écart avec 3 vignettes, petit avec 4 */
	gap: max(16px, min(8vw, calc(108px - (var(--colonnes, 4) - 3) * 68px)));
	padding: 16px var(--marge) 24px;
	align-content: center;
	align-items: center;
}

.tuile {
	position: relative;
	display: block;
	overflow: hidden;
	/* hauteur fixe comme l'ancien site (~666 px), réduite sur les petits écrans */
	height: max(420px, min(666px, calc(100vh - var(--entete) - 40px)));
	text-decoration: none;
	background: var(--fond-doux);
}

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

/* survol comme l'ancien site : voile blanc à 54 % et titre olive */
.tuile::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background .3s linear;
	pointer-events: none;
}
.tuile:hover::after,
.tuile:focus-visible::after { background: rgba(255, 251, 251, .54); }

.tuile-titre {
	position: absolute; left: 8px; right: 8px; bottom: 18px; z-index: 1;
	text-align: center;
	color: #fff;
	transition: color .3s linear;
	font-family: var(--titres);
	font-size: clamp(1.8rem, 3vw, 64px);
	line-height: 1.1;
	text-transform: uppercase;
}
.tuile:hover .tuile-titre,
.tuile:focus-visible .tuile-titre { color: #586232; }

@media (max-width: 860px) {
	.disposition-colonne { grid-template-columns: 1fr; min-height: 0; }
	.colonne { justify-content: flex-start; padding-top: 32px; }
	.colonne-titre {
		writing-mode: horizontal-tb; transform: none;
		align-self: center; text-align: center;
	}
	.tuiles { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
	.tuile { aspect-ratio: 16 / 5; height: auto; }
	.tuile::after { inset: 0; background: rgba(0, 0, 0, .12); }
	.tuile-titre { top: 50%; bottom: auto; transform: translateY(-50%); font-size: 2.8rem; }

	.colonne-titre, .disposition-colonne--accueil .colonne-titre { font-size: 56px; }
	.disposition-colonne--accueil .colonne { order: 2; }
	.photo-du-mois img { height: 70vh; }
	.photo-du-mois .bouton--clair { left: 50%; bottom: 24px; transform: translateX(-50%); }
	.menu a, .logo { font-size: 28px; }
	.logo img { width: 64px; height: 64px; padding: 12px; }
}

/* ---------- Galerie ---------- */

/* comme l'ancien site : toute la largeur, avec une marge qui grandit avec l'écran
   (84 px en 1280, 109 px en 1920), et 14 px entre les photos */
.galerie {
	--marge-galerie: max(var(--marge), calc(35px + 3.9vw));
	--ecart-photos: 14px;
	padding: 24px var(--marge-galerie) 64px;
}

.galerie-entete {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.galerie-retour { justify-self: start; }
.galerie-entete h1 { grid-column: 2; margin: 0; }

.galerie-intro { max-width: 720px; margin: 0 auto 24px; text-align: center; }

.photo { display: block; cursor: zoom-in; position: relative; overflow: hidden; }

/* survol comme l'ancien site : voile olive à 64 % et nom de la photo au centre,
   en Poppins semi-gras blanc, sans zoom */
.photo::after {
	content: attr(data-legende);
	position: absolute; inset: 0; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	padding: 10px 20px;
	background: rgba(88, 98, 50, .64);
	color: #fff;
	font: 600 18px/22px Poppins, var(--corps);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
	pointer-events: none;
}
.photo:hover::after,
.photo:focus-visible::after { opacity: 1; visibility: visible; }

/* Icône panier « Acheter cette photo » */
.photo-cadre { position: relative; }

.photo-acheter {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--encre);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: scale(.9);
	transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.photo-cadre:hover .photo-acheter,
.photo-acheter:focus-visible { opacity: 1; transform: none; }
.photo-acheter:hover { background: var(--vert); color: #fff; }
.photo-acheter:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }

/* écrans tactiles : pas de survol, l'icône reste visible */
@media (hover: none) {
	.photo-acheter { opacity: 1; transform: none; width: 38px; height: 38px; top: 8px; right: 8px; }
}

/* Mosaïque : sans JS, colonnes CSS ; avec JS, les photos sont réparties
   de gauche à droite dans la colonne la plus courte (comme l'ancien site). */
.photos--mosaique { columns: 4 220px; column-gap: var(--ecart-photos, 8px); }
.photos--mosaique .photo-cadre { break-inside: avoid; margin-bottom: var(--ecart-photos, 8px); }
.photos--mosaique.reparti { columns: auto; display: flex; gap: var(--ecart-photos, 8px); align-items: flex-start; }
.photos-colonne { flex: 1; min-width: 0; display: grid; gap: var(--ecart-photos, 8px); }
.photos--mosaique.reparti .photo-cadre { margin: 0; }

.photos--grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: var(--ecart-photos, 8px);
}

.photos--colonne {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	gap: clamp(16px, 3vw, 32px);
}

@media (max-width: 600px) {
	.galerie-entete { grid-template-columns: 1fr; text-align: center; }
	.galerie-entete h1 { grid-column: 1; }
	.galerie-retour { justify-self: start; }
	.photos--mosaique { columns: 2; }
	.galerie { --marge-galerie: var(--marge); --ecart-photos: 8px; }
}

/* ---------- Pages de texte (A propos, CGU, CGV…) ---------- */

.page-texte {
	max-width: 1000px;
	margin: 0 auto;
	padding: 32px var(--marge) 64px;
}

.page-texte--photo {
	max-width: none;
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	padding: 0;
}
.page-texte--photo .page-texte-contenu { padding: 24px var(--marge) 48px; }

.page-texte-photo img {
	width: 100%;
	height: 100%;
	max-height: calc(100vh - var(--entete));
	position: sticky; top: var(--entete);
	object-fit: cover;
}

@media (max-width: 860px) {
	.page-texte--photo { grid-template-columns: 1fr; }
	.page-texte-photo { order: -1; }
	.page-texte-photo img { position: static; max-height: 70vh; }
}

.texte { font-size: 16px; line-height: 24px; }
.texte p { margin: 0 0 1em; }
.texte a { color: var(--vert); text-underline-offset: 3px; }
.texte ul { padding-left: 1.2em; }

.blocs h2, .blocs h3 {
	color: var(--vert);
	text-transform: uppercase;
	text-shadow: 1px 1px 0 #2b2f18;
	margin: 1.2em 0 .6em;
}
.blocs h2 { font-size: 34px; }
.blocs h3 { font-size: 1.6rem; }
.blocs > :first-child { margin-top: 0; }

blockquote {
	margin: 2em 0;
	padding: 0 0 0 20px;
	border-left: 3px solid var(--vert);
	font-size: 1.15rem;
}

figure { margin: 2em 0; }
figcaption { margin-top: 8px; font-size: .85rem; color: var(--gris); }

.bloc-texte-image {
	display: grid; gap: clamp(24px, 4vw, 48px);
	grid-template-columns: 1fr 1fr; align-items: center;
	margin: 2.5em 0;
}
.bloc-texte-image--droite .bloc-texte-image-photo { order: 2; }
@media (max-width: 760px) {
	.bloc-texte-image { grid-template-columns: 1fr; }
	.bloc-texte-image--droite .bloc-texte-image-photo { order: 0; }
}

.video iframe, .bloc video { width: 100%; aspect-ratio: 16/9; border: 0; }

/* ---------- Formulaire de devis ---------- */

.devis {
	max-width: 1000px;
	margin: 0 auto;
	padding: 16px var(--marge) 64px;
}
.devis .formulaire, .devis-intro, .formulaire-succes, .formulaire-alerte { max-width: 850px; margin-inline: auto; }

.devis-intro { text-align: center; margin-bottom: 24px; }

.formulaire {
	display: grid;
	gap: 18px;
	padding: clamp(20px, 3vw, 32px);
	background: var(--fond-doux);
	border-radius: 20px;
}

.formulaire label {
	display: block;
	font-size: 16px; font-weight: 500;
}
.formulaire label > :is(input, select, textarea) { margin-top: 8px; }
.formulaire-erreur { display: block; margin-top: 6px; }
.formulaire abbr { color: #c0392b; text-decoration: none; }

.formulaire input,
.formulaire select,
.formulaire textarea {
	width: 100%;
	padding: 9px 16px;
	font: 400 .95rem var(--corps);
	color: var(--texte);
	background: #fff;
	border: 1px solid #9a9a9a;
	border-radius: 20px;
}
.formulaire textarea { resize: vertical; border-radius: 16px; }
.formulaire select { appearance: auto; }
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus { outline: 2px solid var(--vert); outline-offset: 1px; border-color: var(--vert); }

/* --- Choix des photos (grille de vignettes à cocher) --- */

.choix { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.choix legend { font-size: 16px; font-weight: 500; padding: 0; margin-bottom: 8px; }

.choix-resume {
	background: #fff;
	border: 1px solid #9a9a9a;
	border-radius: 16px;
	padding: 10px 12px;
	min-height: 52px;
}
.choix-resume-vide { margin: 4px 4px; color: var(--gris); font-size: .9rem; }
.choix-resume-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.choix-resume-liste li {
	display: flex; align-items: center; gap: 8px;
	padding: 3px 10px 3px 3px;
	background: #eef1e4;
	border-radius: 999px;
	font-size: .8rem;
	max-width: 100%;
}
.choix-resume-liste img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.choix-resume-liste span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choix-resume-liste button {
	border: 0; background: none; cursor: pointer; padding: 0 0 0 2px;
	font-size: 1rem; line-height: 1; color: var(--gris);
}
.choix-resume-liste button:hover { color: #a2281c; }

.choix-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.choix-filtres button {
	border: 1px solid #9a9a9a; background: #fff; color: var(--texte);
	border-radius: 999px; padding: 6px 14px;
	font: 500 .85rem var(--corps); cursor: pointer;
}
.choix-filtres button small { color: var(--gris); font-size: .75rem; margin-left: 2px; }
.choix-filtres button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.choix-filtres button[aria-pressed="true"] small { color: #ccc; }

.choix-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	align-content: start;
	/* sans ça, les lignes se compressent pour tenir dans la hauteur maximale */
	grid-auto-rows: max-content;
	position: relative;
	gap: 6px;
	max-height: 380px;
	overflow-y: auto;
	padding: 6px;
	background: #fff;
	border: 1px solid #9a9a9a;
	border-radius: 16px;
	overscroll-behavior: contain;
}

.formulaire .choix-photo {
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: var(--fond-doux);
}
.choix-photo[hidden] { display: none; }
.choix-photo input { position: absolute; opacity: 0; pointer-events: none; }
/* l'image (240×240) donne sa hauteur à la cellule : carré fiable même dans
   une grille à hauteur limitée qui défile */
.formulaire .choix-photo img {
	display: block;
	width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
	transition: transform .3s, opacity .2s;
}
.choix-photo:hover img { transform: scale(1.05); }

.choix-coche {
	position: absolute; top: 6px; right: 6px;
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(0, 0, 0, .25);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.choix-photo input:checked ~ img { opacity: .75; }
.choix-photo input:checked ~ .choix-coche {
	background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.choix-photo:has(input:checked) { box-shadow: inset 0 0 0 3px var(--vert); }
.choix-photo:has(input:focus-visible) { outline: 2px solid var(--vert); outline-offset: 2px; }

.choix-autre { font-size: .85rem !important; color: var(--gris); }

/* --- Aperçu « en situation » (taille, support, cadre) --- */

.apercu {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #9a9a9a;
	background: #fff;
}
.apercu[hidden] { display: none; }

.apercu-scene {
	position: relative;
	/* la hauteur s'ajuste au tirage (assets/js/site.js) ; au départ, celle de la photo */
	aspect-ratio: 1920 / 1080;
	overflow: hidden;
	transition: aspect-ratio .35s cubic-bezier(.2, .7, .2, 1);
	/* prolongement du mur au-dessus de la photo : mêmes teintes que son bord supérieur */
	background: linear-gradient(to right, #dddddf, #e8e8e8 50%, #f3f3f3);
}

/* la photo du salon, posée en bas de la scène */
.apercu-fond {
	position: absolute; left: 0; bottom: 0;
	width: 100%; height: auto;
	display: block;
	pointer-events: none;
}

.apercu-tableau {
	position: absolute;
	box-sizing: border-box;
	transition: all .35s cubic-bezier(.2, .7, .2, 1);
}
.apercu-tableau--cadre { background: #151515; }

.apercu-passe {
	width: 100%; height: 100%;
	box-sizing: border-box;
	background: #fbfaf6;
	box-shadow: inset 0 0 2px rgba(0, 0, 0, .25);
	transition: padding .35s cubic-bezier(.2, .7, .2, 1);
}
.apercu-tableau:not(.apercu-tableau--cadre) .apercu-passe { background: none; box-shadow: none; }

.apercu-tirage {
	position: relative;
	width: 100%; height: 100%;
	overflow: hidden;
	background: #d6d0c6;
}
.apercu-tableau--cadre .apercu-tirage { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.apercu-photo {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	/* papier mat : rendu doux, légèrement moins contrasté */
	filter: contrast(.94) saturate(.95) brightness(1.02);
	transition: filter .3s;
}
.apercu-photo[hidden] { display: none; }

/* verre (YellowKorner) : couleurs plus profondes + reflet brillant */
.apercu-tirage--verre .apercu-photo { filter: contrast(1.06) saturate(1.08); }
.apercu-reflet {
	position: absolute; inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s;
	background: linear-gradient(120deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .12) 28%, transparent 42%, transparent 70%, rgba(255, 255, 255, .1) 85%);
}
.apercu-tirage--verre .apercu-reflet { opacity: 1; }
.apercu-tableau:not(.apercu-tableau--cadre) .apercu-tirage--verre { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 2px rgba(0, 0, 0, .15); }

.apercu-echelle {
	position: absolute; left: 50%;
	transform: translateX(-50%);
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .75);
	font-size: .68rem; color: #5a5a5a;
	letter-spacing: .04em;
	white-space: nowrap;
}

.apercu-legende {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 10px 14px;
	font-size: .85rem;
	text-align: center;
	color: var(--texte);
	min-height: 44px;
}
.apercu-nav {
	flex-shrink: 0;
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1px solid #9a9a9a; background: #fff;
	font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.apercu-nav:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.apercu-nav[hidden] { display: none; }

.formulaire-ligne { display: grid; gap: 18px; }
.formulaire-ligne--2 { grid-template-columns: 1fr 1fr; }
.formulaire-ligne--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
	.formulaire-ligne--2, .formulaire-ligne--3 { grid-template-columns: 1fr; }
}

.formulaire-envoi { margin: 6px 0 0; text-align: center; }
.formulaire-envoi .bouton { min-width: min(100%, 360px); padding: 14px 32px; font: 500 16px/1 var(--corps); }

.formulaire-erreur { color: #c0392b; font-weight: 500; }

.formulaire-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire-succes,
.formulaire-alerte {
	padding: 20px 24px;
	border-radius: 16px;
	text-align: center;
}
.formulaire-succes { background: #eef1e4; color: var(--vert); font-weight: 700; }
.formulaire-alerte { background: #fbeaea; color: #a2281c; }

/* ---------- Visionneuse plein écran ---------- */

.visionneuse {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(12, 12, 12, .97);
	color: #f2f0ec;
	align-items: center; justify-content: center;
	padding: 56px 16px 72px;
	border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
}
.visionneuse[open] { display: flex; }
.visionneuse::backdrop { background: transparent; }

.visionneuse img {
	max-width: 100%; max-height: 100%;
	width: auto; height: auto;
	object-fit: contain;
	user-select: none;
}

.visionneuse button {
	position: absolute;
	border: 0; background: none; color: inherit; cursor: pointer;
	font: 300 2rem/1 var(--corps);
	padding: 16px;
	opacity: .7; transition: opacity .2s;
}
.visionneuse button:hover { opacity: 1; }
.visionneuse-fermer { top: 4px; right: 8px; }
.visionneuse-prec { left: 4px; top: 50%; transform: translateY(-50%); }
.visionneuse-suiv { right: 4px; top: 50%; transform: translateY(-50%); }

.visionneuse-legende {
	position: absolute; bottom: 20px; left: 0; right: 0;
	text-align: center; margin: 0;
	font-family: var(--titres); font-size: 1.3rem; letter-spacing: .03em; opacity: .85;
}

.visionneuse .visionneuse-acheter {
	position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
	padding: 8px 28px;
	font-size: 18px; line-height: 1.6;
	white-space: nowrap;
}
.visionneuse .visionneuse-acheter[hidden] { display: none; }

@media (max-width: 760px) {
	.visionneuse-prec, .visionneuse-suiv { display: none; }
}

/* ---------- Pied de page ---------- */

.pied {
	background: var(--pied);
	color: #fff;
	padding: 40px var(--marge) 32px;
	text-align: center;
}

.pied-menu ul {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
	margin: 0; padding: 0; list-style: none;
}
.pied-menu a {
	font-family: var(--titres);
	font-size: 25.6px;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .2s;
}
.pied-menu a:hover, .pied-menu a[aria-current] { color: var(--vert); }

.pied-instagram {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	margin: 18px 0;
	border-radius: 50%;
	background: #3a3a3a;
	transition: background .2s;
}
.pied-instagram:hover { background: var(--vert); }

.pied-copy { margin: 0; font: 400 15px/24px Roboto, var(--corps); color: #8a8a8a; }

/* ---------- Pages d'erreur et « bientôt en ligne » ---------- */

.page-erreur { text-align: center; padding: 80px var(--marge); }

.prive {
	min-height: 100vh;
	display: grid; place-items: center;
	text-align: center;
}
.prive-boite .logo { justify-content: center; font-size: 2.4rem; margin-bottom: 8px; }
.prive-boite p { margin: 0 0 24px; color: var(--gris); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ==========================================================================
   Page avec portrait (« A propos ») : mise en page éditoriale
   ========================================================================== */

.portrait { --ecart: clamp(24px, 5vw, 96px); }

/* --- Ouverture : la grande phrase et le portrait --- */

.portrait-ouverture {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--ecart);
	min-height: calc(100vh - var(--entete));
	padding: clamp(24px, 4vh, 56px) var(--ecart) clamp(40px, 7vh, 88px);
}

.portrait-sur-titre {
	margin: 0 0 clamp(16px, 2.5vh, 32px);
	font-family: var(--titres);
	font-size: clamp(18px, 1.5vw, 26px);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--vert);
	display: flex; align-items: center; gap: 14px;
}
.portrait-sur-titre::before {
	content: "";
	width: clamp(32px, 4vw, 72px); height: 2px;
	background: currentColor;
}

.portrait-phrase {
	margin: 0;
	font-family: var(--titres);
	font-size: clamp(46px, 5.6vw, 112px);
	line-height: .95;
	letter-spacing: .005em;
	text-transform: uppercase;
	color: var(--encre);
	text-wrap: balance;
}
.portrait-phrase em {
	font-style: normal;
	color: var(--vert);
}
.portrait-tiret { color: var(--vert); }

.portrait-suite {
	display: inline-flex; align-items: center; gap: 10px;
	margin-top: clamp(24px, 4vh, 48px);
	font-family: var(--titres);
	font-size: 22px;
	letter-spacing: .08em;
	text-decoration: none;
	color: var(--encre);
	border-bottom: 2px solid var(--vert);
	padding-bottom: 4px;
	transition: color .2s, gap .2s;
}
.portrait-suite:hover { color: var(--vert); gap: 16px; }

.portrait-photo {
	position: relative;
	margin: 0;
	padding: 0 clamp(18px, 2vw, 36px) clamp(18px, 2vw, 36px) 0;
	justify-self: end;
	width: min(100%, 620px);
}
/* le cadre olive décalé derrière le portrait */
.portrait-photo::before {
	content: "";
	position: absolute;
	inset: clamp(18px, 2vw, 36px) 0 0 clamp(18px, 2vw, 36px);
	background: var(--vert);
}
.portrait-cadre { position: relative; overflow: hidden; }
.portrait-cadre img {
	width: 100%;
	aspect-ratio: 4 / 5;
	max-height: calc(100vh - var(--entete) - 120px);
	object-fit: cover;
	object-position: 50% 30%;
}

/* le titre vertical, signature du site, le long du portrait */
.portrait-titre {
	position: absolute;
	left: 0; bottom: clamp(18px, 2vw, 36px);
	transform: translateX(calc(-100% - 14px)) rotate(180deg);
	writing-mode: vertical-rl;
	margin: 0;
	font-size: clamp(40px, 4vw, 84px);
	line-height: .8;
	color: var(--vert);
	text-transform: uppercase;
	white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
	.portrait-accroche > * { animation: portrait-monte .9s cubic-bezier(.2, .7, .2, 1) both; }
	.portrait-accroche > :nth-child(2) { animation-delay: .12s; }
	.portrait-accroche > :nth-child(3) { animation-delay: .3s; }
	.portrait-cadre { animation: portrait-devoile 1.2s cubic-bezier(.7, 0, .2, 1) both; }
	.portrait-photo::before { animation: portrait-glisse 1.2s .25s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes portrait-monte { from { opacity: 0; transform: translateY(24px); } }
@keyframes portrait-devoile { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes portrait-glisse { from { transform: translate(-18px, -18px); opacity: 0; } }

/* --- Sections numérotées --- */

.portrait-sections {
	padding: 0 var(--ecart);
	scroll-margin-top: var(--entete);
}

.portrait-section {
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
	gap: var(--ecart);
	padding: clamp(48px, 8vh, 104px) 0;
	border-top: 1px solid var(--trait);
}

.portrait-section-tete {
	align-self: start;
	position: sticky;
	top: calc(var(--entete) + 32px);
}
.portrait-numero {
	display: block;
	font-family: var(--titres);
	font-size: clamp(72px, 9vw, 168px);
	line-height: .8;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--vert);
	margin-bottom: 12px;
}
.portrait-section-tete h2 {
	margin: 0;
	font-size: clamp(34px, 3.4vw, 60px);
	line-height: .95;
	color: var(--vert);
	text-transform: uppercase;
}

.portrait-section-texte {
	max-width: 64ch;
	font-size: clamp(16px, 1.15vw, 19px);
	line-height: 1.75;
	color: #222;
}
.portrait-section-texte p { margin: 0 0 1.2em; }
.portrait-section-texte p:last-child { margin-bottom: 0; }

/* --- Fin : le travail et le contact --- */

.portrait-fin {
	margin-top: clamp(24px, 4vh, 48px);
	padding: clamp(56px, 9vh, 112px) var(--ecart);
	background: var(--fond-doux);
}

.portrait-fin-titre {
	margin: 0 0 clamp(24px, 4vh, 40px);
	font-size: clamp(40px, 4.5vw, 80px);
	color: var(--encre);
	text-transform: uppercase;
}

.portrait-rubriques {
	display: grid;
	grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 40px);
	max-width: calc(var(--n, 2) * 420px);
}

.portrait-rubrique {
	display: grid; gap: 14px;
	text-decoration: none;
	color: var(--encre);
}
.portrait-rubrique img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: grayscale(.35);
	transition: filter .5s, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.portrait-rubrique:has(img) { overflow: hidden; }
.portrait-rubrique > span {
	font-family: var(--titres);
	font-size: clamp(30px, 2.6vw, 46px);
	text-transform: uppercase;
	transition: color .2s;
}
.portrait-rubrique:hover img { filter: none; transform: scale(1.03); }
.portrait-rubrique:hover > span { color: var(--vert); }

.portrait-contact {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(48px, 8vh, 96px);
	padding-top: clamp(32px, 5vh, 56px);
	border-top: 1px solid var(--trait);
}
.portrait-contact p {
	margin: 0;
	font-family: var(--titres);
	font-size: clamp(32px, 3.2vw, 56px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--vert);
}
.portrait-contact-boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Tablette et téléphone --- */

@media (max-width: 960px) {
	.portrait-ouverture {
		grid-template-columns: 1fr;
		min-height: 0;
		padding-top: 8px;
	}
	.portrait-photo { order: -1; justify-self: center; width: min(100%, 520px); padding-left: 44px; }
	.portrait-photo::before { left: calc(44px + clamp(18px, 2vw, 36px)); }
	.portrait-titre { transform: rotate(180deg); left: 0; font-size: 44px; }
	.portrait-cadre img { max-height: 70vh; }
	.portrait-section { grid-template-columns: 1fr; gap: 20px; }
	.portrait-section-tete { position: static; display: flex; align-items: flex-end; gap: 16px; }
	.portrait-numero { margin: 0; font-size: 72px; }
}

@media (max-width: 600px) {
	.portrait-rubriques { grid-template-columns: 1fr; }
	.portrait-contact { flex-direction: column; align-items: flex-start; }
}

/* ---------- Protection des photos (dissuasive) ---------- */
/* pas de glisser-déposer, ni de menu « Enregistrer l'image » par appui long sur téléphone */
img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* information sur les données personnelles (RGPD), sous le bouton d'envoi */
.formulaire-rgpd {
	max-width: 640px;
	margin: 4px auto 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--gris);
	text-align: center;
}
.formulaire-rgpd a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
