/* =========================================================================
   MAISON JOFMAN — frontend.css
   Charte : Beige #D9C6B0 / French Wine #591017 / Noir #000000
   Typos  : GFS Didot (Google Fonts, chargée dans View::Init)
            PP Editorial New (themes/font/Pen-Regular)
            Beyond Infinity (themes/font, version démo : licence à acquérir)
   Sommaire :
     01. Polices & variables
     02. Base
     03. Boutons, liens, titres
     04. Header & navigation
     05. Menu mobile
     06. Filigrane
     07. Hero accueil
     08. Manifeste (révélation au curseur)
     09. Histoire & cartes empilées
     10. Méga accroche (fenêtre qui s'ouvre)
     11. Éventail (deux cônes en vis-à-vis)
     12. Méthode (étapes)
     13. Ambiances (collage)
     14. Appel à l'action
     15. Footer & lettres géantes
     16. États d'animation (html.mj-anim)
     17. Utilitaires historiques du framework
     18. Contact : hero en arche
     19. Contact : formulaire
     20. Contact : états d'animation
     21. Particuliers : hero « planche matières »
     22. Particuliers : formules (cartes empilées)
     23. Questions fréquentes
     24. Particuliers : états d'animation & découpe en mots
     25. Professionnels : hero « lever de rideau »
     26. Professionnels : formules en vis-à-vis
     27. Professionnels : parcours client
     28. Professionnels : états d'animation
     29. Lettrages manuscrits (tracé de plume)
   ========================================================================= */


/* ================= 01. POLICES & VARIABLES ================= */

	@font-face {
		font-family: 'PP Editorial New';
		src: url('font/Pen-Regular.woff2') format('woff2'), url('font/Pen-Regular.woff') format('woff');
		font-weight: 400; font-style: normal; font-display: swap;
	}
	@font-face {
		font-family: 'Beyond Infinity';
		src: url('font/Beyond Infinity.woff2') format('woff2'), url('font/Beyond Infinity.woff') format('woff');
		font-weight: 400; font-style: normal; font-display: swap;
	}

	/* Variables animables (transition du survol de l'éventail) */
	@property --h { syntax: '<percentage>'; inherits: true; initial-value: 5%; }

	:root {
		--beige: #D9C6B0;
		--beige-40: #F0E8DF;
		--beige-20: #F7F4EF;
		--wine: #591017;
		--wine-light: #6E1820;
		--wine-deep: #2A0407;
		--noir: #000000;
		--noir-80: #333333;

		--f-didot: 'GFS Didot', 'Didot', 'Bodoni 72', Georgia, serif;
		--f-edito: 'PP Editorial New', Georgia, 'Times New Roman', serif;
		--f-script: 'Beyond Infinity', cursive;

		--gut: clamp(20px, 5vw, 72px);
		--header-h: 76px;
		--stick: calc(var(--header-h) + env(safe-area-inset-top, 0px));
		--ease: cubic-bezier(.7, 0, .2, 1);

		/* compat. anciennes règles */
		--font: var(--f-didot);
		--color-text: var(--noir);
		--color-bg: var(--beige-20);
	}


/* ================= 02. BASE ================= */

	*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
	html { scroll-padding-top: var(--stick); -webkit-text-size-adjust: 100%; }
	html, body { min-height: 100%; }
	body {
		font-family: var(--f-didot); font-size: 1.1875rem; line-height: 1.65;
		color: var(--noir); background: var(--beige-20);
		-webkit-font-smoothing: antialiased; overflow-x: clip;
	}
	body.menu-open { overflow: hidden; }
	a { text-decoration: none; color: inherit; }
	ul, ol { margin: 0; padding: 0; }
	li { list-style-type: none; }
	img, picture { display: block; max-width: 100%; }
	picture img { width: 100%; height: 100%; object-fit: cover; }
	h1, h2, h3, h4 { font-weight: 400; line-height: 1.08; }
	[hidden] { display: none !important; }
	:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
	.is-dark :focus-visible, .mj-menu :focus-visible, .mj-footer :focus-visible { outline-color: var(--beige); }

	.mj-skip {
		position: fixed; left: 12px; top: -60px; z-index: 6000; padding: 10px 18px;
		background: var(--wine); color: var(--beige-20); transition: top .2s;
	}
	.mj-skip:focus { top: 12px; }

	.mj-main { position: relative; z-index: 1; }
	body:not(#Page-Home) .mj-main { padding-top: var(--stick); } /* header en position fixe */
	.mj-main > section { position: relative; }

	.winecolor{color: var(--wine); }


/* ================= 03. BOUTONS, LIENS, TITRES ================= */

	.mj-btn {
		display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
		padding: 12px 26px; font: inherit; font-size: 1rem; letter-spacing: .04em; line-height: 1.2;
		border: 1px solid var(--wine); background: transparent; color: var(--wine); cursor: pointer;
		transition: background-color .25s, color .25s, border-color .25s;
	}
	.mj-btn--wine { background: var(--wine); color: var(--beige-20); }
	.mj-btn--wine:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
	.mj-btn--line:hover { background: var(--wine); color: var(--beige-20); }
	.mj-btn--light { border-color: var(--beige); color: var(--beige-20); }
	.mj-btn--light:hover { background: var(--beige); color: var(--noir); }

	.mj-link {
		display: inline-block; color: var(--wine); padding-bottom: 3px;
		background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
		transition: background-size .35s var(--ease);
	}
	a:hover .mj-link, .mj-link:hover { background-size: 30% 1px; }

	.mj-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

	.mj-head { margin-bottom: 56px; }
	.mj-head p { margin: 0; }
	.mj-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
	.mj-h2 { font-size: clamp(2rem, 2.5em, 2.5rem); margin-bottom: 16px; }
	.mj-lead { font-size: 1.35rem; }

	@media (max-width: 900px) {
		.mj-head--split { grid-template-columns: 1fr; gap: 12px; }
	}


/* ================= 04. HEADER & NAVIGATION ================= */

	.mj-header {
		position: fixed; top: 0; z-index: 50; width: 100vw;
		height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
		padding: env(safe-area-inset-top, 0px) var(--gut) 0;
		display: flex; align-items: center; justify-content: space-between; gap: 24px;
		background: rgba(247, 244, 239, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		border-bottom: 1px solid transparent;
		transition: border-color .3s, background-color .3s;
	}
	body.scrolled .mj-header { border-bottom-color: rgba(89, 16, 23, .14); }

	.mj-header__logo { transition: opacity .4s, visibility 0s; }
	.mj-header__logo img { height: 35px; width: auto; transition: opacity .3s; }

	/* Accueil : le logo est déjà dans le hero, il n'apparaît dans le header qu'au premier pixel de scroll */
	.js #Page-Home .mj-header__logo { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
	.js #Page-Home.scrolled .mj-header__logo { opacity: 1; visibility: visible; transition: opacity .5s .45s, visibility 0s; } /* délai : laisse le menu glisser avant d'afficher le logo */

	.mj-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
	.mj-nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
	.mj-nav__list a { position: relative; font-size: 1.02rem; padding: 6px 0; }
	.mj-nav__list a::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wine);
		transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
	}
	.mj-nav__list a:hover::after, .mj-nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
	.mj-nav__cta { min-height: 44px; padding: 9px 20px; }

	/* Filet fin entre les entrées du menu (centré dans l'espacement) */
	.mj-nav__list li { position: relative; }
	.mj-nav__list li + li::before {
		content: ""; position: absolute; top: 50%; left: calc(clamp(18px, 2.4vw, 36px) / -2);
		width: 1px; height: 1.1em; background: currentColor; opacity: .35; transform: translateY(-50%);
	}

	/* Accueil : cinématique du header (classes posées par frontend.js, section 03)
	   - en haut de page : fond invisible, menu centré au-dessus du grand logo du hero
	     (décalage --nav-dx calculé en JS), bouton « Prendre rendez-vous » masqué ;
	   - dès le premier pixel de scroll (classe scrolled) : le fond apparaît,
	     le menu glisse à sa place et le bouton apparaît. */
	.js #Page-Home .mj-header { transition: border-color .5s, background-color .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s; }
	.js #Page-Home:not(.scrolled) .mj-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

	@media (min-width: 901px) {
		.js #Page-Home .mj-nav__list { transform: translateX(var(--nav-dx, 0px)); transition: opacity .4s; }
		.js #Page-Home:not(.nav-pret) .mj-nav__list { opacity: 0; }
		.js #Page-Home.nav-anim .mj-nav__list { transition: opacity .4s, transform 1s var(--ease); }
		.js #Page-Home.scrolled .mj-nav__list { transform: none; }

		.js #Page-Home .mj-nav__cta {
			opacity: 0; visibility: hidden; transform: translateY(-8px);
			transition: opacity .4s, transform .5s var(--ease), visibility 0s .5s;
		}
		.js #Page-Home.scrolled .mj-nav__cta {
			opacity: 1; visibility: visible; transform: none;
			transition: opacity .5s .35s, transform .6s var(--ease) .35s, visibility 0s;
		}
	}

	.mj-burger {
		display: none; align-items: center; gap: 12px; position: relative; z-index: 2;
		font: inherit; font-size: 1rem; background: none; border: 0; color: var(--wine); cursor: pointer; padding: 10px 0;
	}
	.mj-burger__lines { position: relative; width: 30px; height: 12px; }
	.mj-burger__lines i {
		position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
		transition: transform .45s var(--ease), top .45s var(--ease);
	}
	.mj-burger__lines i:first-child { top: 0; }
	.mj-burger__lines i:last-child { top: 11px; }
	.mj-burger[aria-expanded="true"] { color: var(--beige-20); }
	.mj-burger[aria-expanded="true"] .mj-burger__lines i:first-child { top: 6px; transform: rotate(45deg); }
	.mj-burger[aria-expanded="true"] .mj-burger__lines i:last-child { top: 6px; transform: rotate(-45deg); }

	body.menu-open .mj-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
	body.menu-open .mj-header__logo img { opacity: 0; }

	@media (max-width: 900px) {
		:root { --header-h: 64px; }
		.mj-nav { display: none; }
		.mj-burger { display: inline-flex; }
		.mj-header__logo img { height: 22px; position: relative; top: 2px;}
	}


/* ================= 05. MENU MOBILE ================= */

	.mj-menu {
		position: fixed; inset: 0; z-index: 49; overflow-y: auto;
		background: radial-gradient(ellipse at 70% 20%, var(--wine-light) 0%, var(--wine) 45%, var(--wine-deep) 100%);
		color: var(--beige-20);
		clip-path: circle(0 at calc(100% - 44px) 38px);
		transition: clip-path .7s var(--ease);
	}
	.mj-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); }
	.mj-menu__inner {
		min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 40px;
		padding: calc(var(--stick) + 24px) var(--gut) calc(40px + env(safe-area-inset-bottom, 0px));
	}
	.mj-menu__logo { width: 220px; height: auto; }
	.mj-menu__list { display: flex; flex-direction: column; gap: 6px; }
	.mj-menu__list li { overflow: hidden; }
	.mj-menu__list a {
		display: inline-block; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.2;
		transform: translateY(105%); transition: transform .6s var(--ease);
	}
	.mj-menu.is-open .mj-menu__list a { transform: none; }
	.mj-menu.is-open .mj-menu__list li:nth-child(2) a { transition-delay: .06s; }
	.mj-menu.is-open .mj-menu__list li:nth-child(3) a { transition-delay: .12s; }
	.mj-menu.is-open .mj-menu__list li:nth-child(4) a { transition-delay: .18s; }
	.mj-menu__list a.is-active { color: var(--beige); }
	.mj-menu__coords { font-size: 1.05rem; line-height: 1.9; color: var(--beige); }


/* ================= 06. FILIGRANE ================= */

	.mj-watermark {
		position: fixed; z-index: 0; right: -8vw; top: 50%; pointer-events: none;
		width: min(62vw, 880px); aspect-ratio: 683.9 / 565;
		transform: translateY(-42%);
		background: url('../media/images/logo/maison-jofman-logotype.svg') center / contain no-repeat;
		opacity: .035;
	}



/* ================= 07. HERO ACCUEIL =================
   --hero-max : palier réglable. Au-delà, le hero ne grandit plus en hauteur et la
   photo n'est plus agrandie : elle reste calée à droite, sa partie gauche (le mur)
   se fond dans le fond beige. */

	.mj-hero {
		--hero-max: 1100px;
		min-height: min(100vh, var(--hero-max)); display: grid; grid-template-columns: minmax(0, 46%) 1fr;
		background: var(--beige); overflow: hidden;
	}
	.mj-hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--beige); } /* fond assombri avec la photo pendant l'intro */
	.mj-hero__img, .mj-hero__img img { width: 100%; height: 100%; }
	.mj-hero__img img { object-fit: cover; object-position: right 42%; }
	.mj-hero__halo {
		position: absolute; right: -6%; top: 6%; width: 58%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
		background: radial-gradient(circle, rgba(255, 176, 96, .32) 0%, rgba(255, 150, 80, .12) 38%, rgba(255, 150, 80, 0) 68%);
		mix-blend-mode: screen; opacity: 0;
	}
	.mj-hero__content {
		position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
		text-align: center; padding: clamp(75px, 8vh, 96px) var(--gut);
	}
	.mj-hero__logo { width: clamp(200px, 23vw, 330px); height: auto; margin-bottom: clamp(32px, 6vh, 64px); }
	.mj-hero__tagline { font-size: clamp(1.25rem, 2vw, 1.85rem); letter-spacing: .14em; text-transform: uppercase; }
	.mj-rule { display: block; width: 96px; height: 1px; background: currentColor; margin: 26px auto; }
	.mj-hero__title { font-size: 1.02rem; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
	.mj-hero__services { font-size: 1.05rem; margin-bottom: 36px; }
	.mj-hero .mj-actions { justify-content: center; }

	/* Desktop : la photo couvre toute la hauteur du hero, mais sa largeur est plafonnée
	   au palier (photo carrée 2400 × 2381, calée à droite, cadrage vertical à 42 %). */
	@media (min-width: 901px) {
		.mj-hero__media { container-type: size; }
		.mj-hero__img, .mj-hero__halo {
			--hero-w: max(100.8cqh, min(100cqw, var(--hero-max)));
			--hero-h: calc(var(--hero-w) * .992);
			--hero-top: calc((100cqh - var(--hero-h)) * .42);
		}
		.mj-hero__img {
			position: absolute; right: 0; top: var(--hero-top); width: var(--hero-w); height: var(--hero-h);
			-webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
			mask-image: linear-gradient(to right, transparent 0, #000 22%);
		}
		.mj-hero__img img { object-position: center; }
		.mj-hero__halo { right: calc(var(--hero-w) * -.06); top: calc(var(--hero-top) + var(--hero-h) * .06); width: calc(var(--hero-w) * .58); }
	}

	@media (max-width: 900px) {
		.mj-hero { grid-template-columns: 1fr; min-height: 0; }
		.mj-hero__media { position: relative; aspect-ratio: 4 / 5; }
		.mj-hero__img img { object-position: 88% center; }
		.mj-hero__halo { right: -30%; top: 0; width: 120%; }
	}




	
	
	@-webkit-keyframes arrow-jump{0%{opacity:1}50%{opacity:1;-webkit-transform:translateY(70px);-moz-transform:translateY(70px);-0-transform:translateY(70px);transform:translateY(70px)}100%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-0-transform:translateY(0px);transform:translateY(0px)}}
	@-webkit-keyframes arrow-jump-line{0%{opacity:1;height:0}50%{opacity:1;height:70px}100%{opacity:1;height:0}}
	
	.scroll-section {
		position: absolute;
		z-index: 50;
		text-align: center;
		bottom: 100px;
		left: calc(50vw - 15px);
		width: 30px;
	}   
	
	.scroll-section a {transition: all ease .5s; }
	.scroll-section a:after {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		margin: 0 auto;
		width: 7px;
		height: 7px;
		background: #000;
		border-radius: 100%;
		-webkit-border-radius: 100%;
		content: "";
		-webkit-animation: arrow-jump 5s infinite;
		-moz-animation: arrow-jump 5s infinite;
		-o-animation: arrow-jump 5s infinite;
		animation: arrow-jump 5s infinite;
		top: 100%;
	}
	.relative-block {
		position: relative;
	}
	.scroll-section span {
		writing-mode: tb-rl;
		-webkit-transform: rotate(180deg);
		-moz-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
		font-size: 10px;
		font-weight: 400;
		letter-spacing: 3px;
		color: #000;
		text-transform: uppercase;
	}
	.scroll-section a:after, .scroll-section:after {
		left: 1px;
	}
	.scroll-section a:after {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		margin: 0 auto;
		width: 5px;
		height: 5px;
		background: var(--wine);
		border-radius: 100%;
		-webkit-border-radius: 100%;
		content: "";
		-webkit-animation: arrow-jump 5s infinite;
		-moz-animation: arrow-jump 5s infinite;
		-o-animation: arrow-jump 5s infinite;
		animation: arrow-jump 5s infinite;
		top: 100%;
	}

	.scroll-section:after {
		-webkit-animation: arrow-jump-line 5s infinite;
		-moz-animation: arrow-jump-line 5s infinite;
		-o-animation: arrow-jump-line 5s infinite;
		animation: arrow-jump-line 5s infinite;
	}
	.scroll-section:after {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		margin: 0 auto;
		width: 1px;
		height: 70px;
		background: var(--wine);
		content: "";
		top: 100%;
	}


/* ================= 08. MANIFESTE (RÉVÉLATION AU CURSEUR) =================
   Deux calques identiques superposés sur toute la section : le calque du dessous
   (texte beige sur noir) et le calque révélé dans le cercle (texte bordeaux sur
   beige). Chaque calque contient les deux textes empilés dans la même cellule de
   grille (l'un masqué) : hauteurs identiques, lignes parfaitement superposées. */

	.mj-manifeste { background: var(--noir); color: var(--beige); overflow: hidden; }
	.mj-reveal { --r: clamp(110px, 13vw, 190px); --x: 64%; --y: 50%; position: relative; }
	.mj-reveal__layer { padding: clamp(110px, 16vh, 190px) var(--gut); }
	.mj-reveal__layer--back {
		position: absolute; inset: 0; background: var(--beige); color: var(--wine); pointer-events: none;
		clip-path: circle(var(--r) at var(--x) var(--y));
	}
	.mj-reveal__inner { max-width: 1060px; }
	.mj-reveal__stack { display: grid; }
	.mj-reveal__stack > * { grid-area: 1 / 1; }
	.mj-reveal__texte { font-size: clamp(2rem, 3.5em, 3.5rem); line-height: 1.12; }
	.mj-reveal__texte.is-ghost { visibility: hidden; }
	.mj-reveal__sign { margin-top: 32px; font-size: 1rem; color: rgba(217, 198, 176, .7); }
	.mj-reveal__layer--back .mj-reveal__sign { color: rgba(89, 16, 23, .7); }

/* ================= 09. HISTOIRE & CARTES EMPILÉES ================= */

	.mj-histoire {
		display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
		padding: clamp(96px, 14vh, 160px) var(--gut);
	}
	.mj-histoire__intro { position: sticky; top: calc(var(--stick) + 48px); align-self: start; }
	.mj-dropcap { display: flex; align-items: baseline; margin-bottom: 24px; font-size: clamp(2rem, 2.2vw, 3rem); line-height: 1; }
	.mj-dropcap span { font-size: 2.1em; line-height: .8; }
	.mj-histoire__texte { margin-top: 18px; }
	.mj-histoire__img { margin-top: 36px; max-width: 320px; aspect-ratio: 4 / 5; overflow: hidden; }

	.mj-stack { display: flex; flex-direction: column; gap: 14vh; }
	.mj-card {
		position: sticky; top: calc(var(--stick) + 24px + var(--i, 0) * 18px);
		display: grid; grid-template-columns: 1fr 1fr; min-height: min(68vh, 540px); overflow: hidden;
		transform-origin: 50% 0;
	}
	.mj-card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
	.mj-card__img { height: 100%; }
	.mj-card__text { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
	.mj-card h3 { font-size: clamp(1.7rem, 1.5em, 1.5em); line-height: 1.1; margin-bottom: 16px; }
	.mj-card p { font-size: 1.05rem; }
	.t-beige { background: var(--beige-40); color: var(--noir); }
	.t-wine { background: var(--wine); color: var(--beige-20); }
	.t-noir { background: var(--noir); color: var(--beige); }

	@media (max-width: 900px) {
		.mj-histoire { grid-template-columns: 1fr; }
		.mj-histoire__intro { position: static; }
		.mj-histoire__img { max-width: 220px; }
		.mj-stack { gap: 20px; }
		.mj-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; }
		.mj-card__img { aspect-ratio: 4 / 3; height: auto; }
	}


/* ================= 10. MÉGA ACCROCHE (FENÊTRE QUI S'OUVRE) =================
   Une fenêtre aux angles arrondis s'agrandit au scroll jusqu'au plein écran et
   découvre la photo. Le texte est doublé : bordeaux hors de la fenêtre, clair
   dedans (même découpe que la photo). Variables animées : --it, --is, --rad. */

	.mj-mega { --it: 24%; --is: 30%; --rad: 999px; }
	.mj-mega__sticky { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
	.mj-mega__frame { position: absolute; inset: 0; clip-path: inset(var(--it) var(--is) round var(--rad)); }
	.mj-mega__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .38)); }
	.mj-mega__photo { height: 100%; }
	.mj-mega__photo img { will-change: transform; }
	.mj-mega__text {
		position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
		padding: 0 var(--gut); text-align: center; pointer-events: none;
	}
	.mj-mega__line {
		max-width: 50vw; font-family: var(--f-edito); font-size: clamp(2.4rem, 5vw, 5.5rem);
		line-height: 1.04; letter-spacing: -.01em; color: var(--wine); text-wrap: balance;
	}
	.mj-mega__text--inv { clip-path: inset(var(--it) var(--is) round var(--rad)); }
	.mj-mega__text--inv .mj-mega__line { color: var(--beige-20); }

	/* Desktop animé : la section devient un long défilement, la scène reste collée à l'écran */
	@media (min-width: 901px) {
		.mj-anim .mj-mega { height: 150svh; --it: 50%; --is: 50%; }
		.mj-anim .mj-mega__sticky { position: sticky; top: 0; }
	}
	@media (max-width: 900px) {
		.mj-mega { --it: 18%; --is: 8%; }
		.mj-mega__sticky { height: 90svh; }
	}

/* ================= 11. ÉVENTAIL (DEUX CÔNES EN VIS-À-VIS) =================
   Deux cônes beiges symétriques, Particuliers à gauche et Professionnels à
   droite, se rejoignent par leur pointe au centre de la scène. Fermés, ce sont
   deux traits ; ouverts, chacun occupe exactement toute la hauteur côté bord.
   --o (0 → 1) est animé en JS sur la scène. */

	.mj-eventail {
		background: radial-gradient(ellipse at 50% 55%, var(--wine-light) 0%, var(--wine) 42%, var(--wine-deep) 100%);
		color: var(--beige-20); padding: clamp(80px, 18vh, 140px) 0 clamp(50px, 13vh, 100px); overflow: hidden;
	}
	.mj-eventail__trame {
		position: absolute; left: 50%; top: 50px; width: min(44vw, 540px); aspect-ratio: 683.9 / 565;
		transform: translateX(-50%); pointer-events: none;
		background: rgba(217, 198, 176, .2) ;
		-webkit-mask: url('../media/images/logo/maison-jofman-logotype.svg') center / contain no-repeat;
		mask: url('../media/images/logo/maison-jofman-logotype.svg') center / contain no-repeat;
	}
	.mj-eventail__title { position: relative; text-align: center; font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 var(--gut) 48px; }
	.mj-eventail__stage { --o: 1; position: relative; height: clamp(540px, 85vh, 760px); }

	.mj-cone {
		--l: calc(.5% + 49.5% * var(--o));   /* demi-ouverture côté bord : 50 % = toute la hauteur, sans débord */
		position: absolute; inset: 0; display: flex; align-items: center;
		background: var(--beige-20); color: var(--noir);
	}
	.mj-cone--left  { clip-path: polygon(0 calc(50% - var(--l)), 50% 50%, 0 calc(50% + var(--l))); }
	.mj-cone--right { clip-path: polygon(100% calc(50% - var(--l)), 50% 50%, 100% calc(50% + var(--l))); justify-content: flex-end; text-align: right; }
	.mj-cone__inner {
		display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
		width: min(30%, 400px); margin: 0 var(--gut);
		opacity: clamp(0, (var(--o) - .55) * 2.5, 1);
	}
	.mj-cone--right .mj-cone__inner { align-items: flex-end; }
	.mj-cone__titre { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; }
	.mj-cone__texte { font-size: 1.02rem; line-height: 1.6; }

	@media (max-width: 900px) {
		.mj-eventail__stage { height: auto; display: grid; gap: 14px; }
		.mj-cone { position: relative; inset: auto; padding: 88px var(--gut); }
		.mj-cone--left { clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%); }
		.mj-cone--right { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%); justify-content: flex-start; text-align: left; }
		.mj-cone--right .mj-cone__inner { align-items: flex-start; }
		.mj-cone__inner { width: auto; margin: 0; opacity: 1; }
		.mj-eventail__trame { width: 80vw; }
	}


/* ================= 12. MÉTHODE (ÉTAPES) ================= */

	.mj-methode { padding: clamp(96px, 14vh, 160px) var(--gut); }
	.mj-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
	.mj-steps__item { position: relative; padding-top: 20px; }
	.mj-steps__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; transform-origin: left; }
	.mj-steps__num { display: block; font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--wine); margin-bottom: 14px; }
	.mj-steps__titre { font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
	.mj-steps__texte { font-size: 1rem; }

	@media (max-width: 900px) { .mj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (max-width: 560px) { .mj-steps { grid-template-columns: 1fr; } }


/* ================= 13. AMBIANCES (COLLAGE) ================= */

	.mj-ambiances { padding: clamp(96px, 14vh, 160px) var(--gut); background: var(--beige-40); overflow: hidden; }
	.mj-collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(44px, 6vw, 84px); }
	.mj-collage figure { position: relative; overflow: hidden; }
	.mj-collage picture { height: 100%; }
	.c-salon    { grid-column: 1 / 6;   grid-row: 3 / 9;  z-index: 1; }
	.c-rouge    { grid-column: 5 / 7;   grid-row: 1 / 5;  z-index: 2; }
	.c-sdb      { grid-column: 7 / 10;  grid-row: 2 / 8;  z-index: 1; }
	.c-cuisine  { grid-column: 10 / 13; grid-row: 2 / 7;  z-index: 1; }
	.c-sequins  { grid-column: 9 / 11;  grid-row: 7 / 10; z-index: 3; }
	.c-chambre  { grid-column: 8 / 13;  grid-row: 9 / 13; z-index: 2; }
	.c-moutarde { grid-column: 5 / 7;   grid-row: 8 / 11; z-index: 3; }
	.c-bois     { grid-column: 2 / 5;   grid-row: 9 / 14; z-index: 2; }

	@media (max-width: 900px) {
		.mj-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
		.mj-collage figure { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1; }
	}


/* ================= 14. APPEL À L'ACTION ================= */

	.mj-cta { text-align: center; padding: clamp(96px, 14vh, 160px) var(--gut); }
	.mj-write { width: clamp(150px, 16vw, 220px); margin: 0 auto 28px; }
	.mj-write img { object-fit: contain; }
	.mj-cta__title {
		font-family: var(--f-edito); text-transform: uppercase; color: var(--wine);
		font-size: clamp(1.9rem, 2.3em, 2.3rem); line-height: 1.1em; max-width: 70vw; margin: 0 auto 40px;
	}
	.mj-cta .mj-actions { justify-content: center; }
	.mj-cta--dark { background: var(--noir); color: var(--beige); }
	.mj-cta--dark .mj-cta__title { color: var(--beige-20); }


/* ================= 15. FOOTER & LETTRES GÉANTES ================= */

	.mj-footer {
		position: relative; z-index: 1; overflow: hidden;
		background: var(--noir); color: var(--beige); padding-top: clamp(72px, 10vh, 120px);
	}
	.mj-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 0 var(--gut) 64px; }
	.mj-footer__logo { width: 170px; height: auto; }
	.mj-footer__titre { margin-bottom: 14px; font-size: 1rem; color: rgba(217, 198, 176, .6); }
	.mj-footer p, .mj-footer__menu a { font-size: 1rem; line-height: 1.75; }
	.mj-footer a:hover { color: var(--beige-20); text-decoration: underline; text-underline-offset: 3px; }
	.mj-footer__menu a { display: block; }
	.mj-footer__legal {
		display: flex; flex-direction: column; justify-content: flex-start; gap: 10px 28px; padding: 0;
		font-size: .8rem; color: rgba(217, 198, 176, .7); text-align: right;
	}
	.mj-footer__legal img {
		display: inline !important; 
	}
	/* Lettres du logo (SVG séparés, media/images/logo/lettres/) appliquées en masque :
	   la couleur vient du fond, les proportions du viewBox de chaque lettre (hauteur commune 174) */
	.mj-giant {
		display: flex; justify-content: space-between; align-items: flex-start; overflow: hidden;
		padding: 2vw calc(var(--gut) * .5) calc(2vw + env(safe-area-inset-bottom, 0px));
		user-select: none; position: relative; top: 125px; margin-top: -125px;
	}
	.mj-giant__l {
		display: block; height: 19.5vw; background: var(--beige); will-change: transform;
		-webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
		opacity: .2;
	}
	.mj-giant__l--j { aspect-ratio: 73.5 / 174;  --m: url('../media/images/logo/lettres/letter-j.svg'); }
	.mj-giant__l--o { aspect-ratio: 143.6 / 174; --m: url('../media/images/logo/lettres/letter-o.svg'); }
	.mj-giant__l--f { aspect-ratio: 101 / 174;   --m: url('../media/images/logo/lettres/letter-f.svg'); }
	.mj-giant__l--m { aspect-ratio: 175.9 / 174; --m: url('../media/images/logo/lettres/letter-m.svg'); }
	.mj-giant__l--a { aspect-ratio: 136.2 / 174; --m: url('../media/images/logo/lettres/letter-a.svg'); }
	.mj-giant__l--n { aspect-ratio: 138.9 / 174; --m: url('../media/images/logo/lettres/letter-n.svg'); }

	@media (max-width: 900px) { .mj-footer__top { grid-template-columns: 1fr 1fr; } }
	@media (max-width: 560px) { .mj-footer__top { grid-template-columns: 1fr; } }


/* ================= 16. ÉTATS D'ANIMATION (html.mj-anim) =================
   La classe mj-anim est posée par frontend.js seulement si GSAP est chargé
   et que l'utilisateur n'a pas demandé à réduire les animations.
   Sans elle, tout le contenu reste visible et statique. */

	.mj-anim .mj-hero__content > * { opacity: 0; }
	.mj-anim .mj-collage picture { clip-path: inset(100% 0 0 0); }
	.mj-anim .mj-hero__img { opacity: 0; }

	/* Écriture du lettrage : masque balayé de gauche à droite (--w animé en JS) */
	.mj-anim .mj-write {
		-webkit-mask-image: linear-gradient(100deg, #000 var(--w, 120%), transparent calc(var(--w, 120%) + 18%));
		mask-image: linear-gradient(100deg, #000 var(--w, 120%), transparent calc(var(--w, 120%) + 18%));
	}

	@media (prefers-reduced-motion: reduce) {
		*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
		html { scroll-behavior: auto; }
	}


/* ================= 17. UTILITAIRES HISTORIQUES DU FRAMEWORK ================= */

	.float { display: inline; float: left; }
	.awayText { text-indent: -9999px; overflow: hidden; }
	.hidden { display: none; }
	.away { position: absolute; left: -9999px; }

	.autoColor {
		--rouge: 255; --vert: 255; --bleu: 255;
		background: rgb(var(--rouge), var(--vert), var(--bleu));
		--luminosite: calc((var(--rouge) * 299 + var(--vert) * 587 + var(--bleu) * 114) / 1000);
		--couleur: calc((var(--luminosite) - 128) * -255000);
		color: rgb(var(--couleur), var(--couleur), var(--couleur));
	}

	.flexi { display: flex; }
	.flexilist { display: flex; flex-wrap: wrap; }
	.centered { text-align: center; }



/* ================= 18. CONTACT : HERO EN ARCHE ================= */

	.mj-carche {
		display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
		min-height: calc(100svh - var(--stick)); padding: 0 var(--gut);
	}
	.mj-carche__archwrap {
		--filet: 1;
		position: relative; align-self: end; justify-self: center;
		width: min(32vw, 460px); height: calc(100svh - var(--stick) - 72px); min-height: 520px; margin-top: 72px;
	}
	.mj-carche__archwrap::before {
		content: ""; position: absolute; inset: -18px -18px 0 -18px; pointer-events: none;
		border: 1px solid var(--wine); border-bottom: 0; border-radius: 1000px 1000px 0 0;
		opacity: var(--filet); transform: scale(calc(.96 + .04 * var(--filet))); transform-origin: 50% 100%;
	}
	.mj-carche__img { height: 100%; border-radius: 1000px 1000px 0 0; overflow: hidden; }
	.mj-carche__text { align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 64px 0; }
	.mj-carche__script { width: clamp(140px, 13vw, 200px); margin: 0 0 -8px; }
	.mj-carche__titre { font-size: 2.5em; line-height: 1; }
	.mj-carche__coords { font-size: 1.15rem; line-height: 1.8; }
	.mj-carche__coords a { border-bottom: 1px solid rgba(89, 16, 23, .35); transition: border-color .25s; }
	.mj-carche__coords a:hover { border-bottom-color: var(--wine); }
	.mj-carche__zone { color: var(--wine); }
	.mj-carche__texte { max-width: 44ch; font-size: 1.15rem; }

	@media (max-width: 900px) {
		.mj-carche { grid-template-columns: 1fr; min-height: 0; gap: 0; }
		.mj-carche__archwrap { width: 64vw; height: 52vh; min-height: 340px; margin-top: 32px; }
		.mj-carche__text { padding: 40px 0 56px; }
	}


/* ================= 19. CONTACT : FORMULAIRE =================
   Balisage produit par Form / HTMLInput (engine) :
   #ContactFormMainFieldset > .fieldsRow (label.lab + champ), #fieldsList-profil (.choice),
   #field-rgpd (.uniqueCheckboxield), .formButtons. */

	.mj-cform {
		display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px);
		padding: clamp(80px, 12vh, 140px) var(--gut); background: var(--beige-40);
	}
	.mj-cform__intro p { max-width: 36ch; }
	.mj-cform__note { margin-top: 18px; font-size: .95rem; color: var(--noir-80); }
	.mj-cform__form { max-width: 760px; }

	.mj-form__erreurs {
		margin-bottom: 32px; padding: 18px 22px; border-left: 3px solid var(--wine);
		background: rgba(89, 16, 23, .06); color: var(--wine); font-size: 1rem;
	}
	.mj-form__erreurs ul { margin-top: 6px; }
	.mj-form__erreurs li { list-style: disc; margin-left: 1.2em; }

	.mj-form fieldset { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
	.mj-form #fieldsList-profil, .mj-form #field-prestation, .mj-form #field-message,
	.mj-form #field-rgpd, .mj-form .formButtons { grid-column: 1 / -1; }

	/* Pot de miel */
	.mj-form #field-security { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

	.mj-form .lab { display: block; margin-bottom: 6px; font-size: .98rem; }
	.mj-form input[type=text], .mj-form input[type=email], .mj-form input[type=tel],
	.mj-form select, .mj-form textarea {
		width: 100%; padding: 10px 0; font: inherit; font-size: 1.08rem; color: inherit;
		background: transparent; border: 0; border-bottom: 1px solid var(--noir); border-radius: 0;
		transition: border-color .25s;
	}
	.mj-form select {
		-webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23591017' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
	}
	.mj-form textarea { min-height: 150px; resize: vertical; }
	.mj-form textarea::placeholder { color: transparent; }
	.mj-form input:focus, .mj-form select:focus, .mj-form textarea:focus { border-bottom-color: var(--wine); }
	.mj-form .missingField input, .mj-form .missingField textarea,
	.mj-form .invalidField input, .mj-form .invalidField textarea { border-bottom: 2px solid var(--wine); }
	.mj-form .missingField .lab, .mj-form .invalidField .lab { color: var(--wine); }

	/* Profil : boutons segmentés (input radio dans le label) */
	.mj-form .choice.inline { display: flex; flex-wrap: wrap; gap: 10px; }
	.mj-form .choice .opt {
		position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px;
		border: 1px solid var(--wine); color: var(--wine); cursor: pointer; transition: background-color .25s, color .25s;
	}
	.mj-form .choice .opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
	.mj-form .choice .opt:has(input:checked) { background: var(--wine); color: var(--beige-20); }
	.mj-form .choice .opt:has(input:focus-visible) { outline: 2px solid var(--wine); outline-offset: 3px; }

	/* Consentement */
	.mj-form #field-rgpd .opt { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.55; cursor: pointer; }
	.mj-form #field-rgpd input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wine); }
	.mj-form #field-rgpd.invalidField .opt { color: var(--wine); }

	.mj-form .formButtons { margin-top: 8px; }

	@media (max-width: 900px) {
		.mj-cform { grid-template-columns: 1fr; gap: 24px; }
		.mj-form fieldset { grid-template-columns: 1fr; }
	}


/* ================= 20. CONTACT : ÉTATS D'ANIMATION ================= */

	.mj-anim .mj-carche__text > *:not(.mj-script) { opacity: 0; }
	.mj-anim .mj-carche__img { clip-path: inset(100% 0 0 0); }
	.mj-anim .mj-carche__archwrap { --filet: 0; }


/* ================= 21. PARTICULIERS : HERO « PLANCHE MATIÈRES » ================= */

	.mj-planche { height: calc(100svh - var(--stick)); min-height: 620px; padding: 8px; overflow: hidden; }
	.mj-planche__grid {
		height: 100%; display: grid; gap: 8px;
		grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
		grid-template-areas: "a b c c d d" "a t t t t e" "f t t t t e" "f g g h i i";
	}
	.mj-planche__tile { position: relative; overflow: hidden; will-change: transform; }
	.mj-planche__tile picture { height: 100%; }
	.mj-planche__tile--a { grid-area: a; } .mj-planche__tile--b { grid-area: b; } .mj-planche__tile--c { grid-area: c; }
	.mj-planche__tile--d { grid-area: d; } .mj-planche__tile--e { grid-area: e; } .mj-planche__tile--f { grid-area: f; }
	.mj-planche__tile--g { grid-area: g; } .mj-planche__tile--h { grid-area: h; } .mj-planche__tile--i { grid-area: i; }

	.mj-planche__center {
		--cadre: 1;
		grid-area: t; position: relative; z-index: 1; background: var(--beige-20);
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
		text-align: center; padding: 32px clamp(24px, 5vw, 80px);
	}

	.mj-planche__kicker { font-size: 1.05rem; line-height: 1.4; color: var(--wine); }
	.mj-planche__display { max-width: 18ch; font-family: var(--f-edito); font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: 1.04; text-wrap: balance; }
	.mj-planche__intro { max-width: 52ch; font-size: 1.05rem; }
	.mj-planche__actions { margin-top: 6px; }

	@media (max-width: 900px) {
		.mj-planche { height: auto; min-height: 0; }
		.mj-planche__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: none; }
		.mj-planche__center { grid-area: auto; grid-column: 1 / -1; order: -1; padding: 56px 24px; }
		.mj-planche__tile { grid-area: auto !important; aspect-ratio: 1; }
		.mj-planche__tile.is-extra { display: none; }
	}


/* ================= 22. PARTICULIERS : FORMULES (CARTES EMPILÉES) =================
   Même mécanique que l'histoire de l'accueil : collage CSS + recul de la carte
   recouverte (frontend.js, section 09). */

	.mj-offers { padding: clamp(96px, 14vh, 160px) var(--gut); }
	.mj-offers__list { display: flex; flex-direction: column; gap: 14vh; }
	.mj-offer {
		position: sticky; top: calc(var(--stick) + 24px + var(--i, 0) * 18px);
		display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		min-height: min(72vh, 600px); overflow: hidden; transform-origin: 50% 0;
	}
	.mj-offer::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
	.mj-offer__media { height: 100%; }
	.mj-offer__body { padding: 0 clamp(28px, 4vw, 64px) 10vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
	.mj-offer__format { margin-bottom: 10px; font-size: 1rem; opacity: .75; }
	.mj-offer__titre { margin-bottom: 16px; font-size: clamp(2rem, 2em, 2.2rem); line-height: 1.05; }
	.mj-offer__texte { margin-bottom: 24px; font-size: 0.9em; }
	.mj-offer__sous-titre { margin-bottom: 10px; font-size: 1rem; opacity: .7; }
	.mj-offer__points { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
	.mj-offer__points li { padding: 5px 14px; font-size: .95rem; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
	.mj-offer__tarif { margin-bottom: 18px; font-size: 1.05rem; }
	.t-wine .mj-link, .t-noir .mj-link { color: var(--beige); }

	@media (max-width: 900px) {
		.mj-offers__list { gap: 20px; }
		.mj-offer { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; }
		.mj-offer__media { aspect-ratio: 16 / 10; height: auto; }
	}


/* ================= 23. QUESTIONS FRÉQUENTES ================= */

	:root { interpolate-size: allow-keywords; } /* ouverture fluide des <details> (navigateurs récents) */

	.mj-faq {
		display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px;
		padding: clamp(96px, 14vh, 160px) var(--gut); background: var(--beige-40);
	}
	.mj-faq__item { border-top: 1px solid rgba(0, 0, 0, .2); }
	.mj-faq__item:last-child { border-bottom: 1px solid rgba(0, 0, 0, .2); }
	.mj-faq__q {
		position: relative; display: block; list-style: none; cursor: pointer;
		padding: 24px 48px 24px 0; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.3;
	}
	.mj-faq__q::-webkit-details-marker { display: none; }
	.mj-faq__q::after {
		content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
		font-size: 1.8rem; line-height: 1; color: var(--wine); transition: transform .4s var(--ease);
	}
	.mj-faq__item[open] .mj-faq__q::after { transform: translateY(-50%) rotate(45deg); }
	.mj-faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
	.mj-faq__item[open]::details-content { block-size: auto; }
	.mj-faq__r p {  padding-bottom: 26px; color: #555;}

	@media (max-width: 900px) { .mj-faq { grid-template-columns: 1fr; gap: 16px; } }


/* ================= 24. PARTICULIERS : ÉTATS D'ANIMATION & DÉCOUPE EN MOTS ================= */

	.mj-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mj-split__w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
	.mj-split__w > span { display: inline-block; will-change: transform; }

	.mj-anim .mj-planche__tile picture { clip-path: inset(100% 0 0 0); }
	.mj-anim .mj-planche__center > * { opacity: 0; }
	.mj-anim .mj-planche__center { --cadre: 0; }


/* ================= 25. PROFESSIONNELS : HERO « LEVER DE RIDEAU » =================
   Un voile bordeaux à bord oblique couvre la photo. --tx / --bx : position du
   bord en haut / en bas ; --off (0 → 1) : retrait supplémentaire au scroll. */

	.mj-rideau {
		--tx: 60%; --bx: 47%; --off: 0;
		height: calc(100svh - var(--stick)); min-height: 620px; overflow: hidden; color: var(--beige-20);
	}
	.mj-rideau__photo { position: absolute; inset: 0; }
	.mj-rideau__photo picture { height: 100%; }
	.mj-rideau__voile {
		position: absolute; inset: 0;
		background: radial-gradient(ellipse at 20% 45%, var(--wine-light) 0%, var(--wine) 45%, var(--wine-deep) 100%);
		clip-path: polygon(0 0, calc(var(--tx) - 10% * var(--off)) 0, calc(var(--bx) - 10% * var(--off)) 100%, 0 100%);
	}
	.mj-rideau__text {
		position: relative; z-index: 1; height: 100%; width: min(36vw, 540px); margin-left: var(--gut);
		display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
	}
	.mj-rideau__kicker { font-size: 1.05rem; line-height: 1.4; color: var(--beige); }
	.mj-rideau__display { font-family: var(--f-edito); font-size: clamp(2.6rem, 3.5em, 3.5rem); line-height: 1.02; text-wrap: balance; }
	.mj-rideau__intro { max-width: 44ch; font-size: 1.05rem; }
	.mj-rideau__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

	@media (max-width: 900px) {
		.mj-rideau { height: auto; min-height: 0; display: flex; flex-direction: column; }
		.mj-rideau__photo { position: relative; inset: auto; aspect-ratio: 4 / 3; }
		.mj-rideau__voile { display: none; }
		.mj-rideau__text {
			width: auto; height: auto; margin: -48px 0 0; padding: 96px var(--gut) 64px;
			background: radial-gradient(ellipse at 20% 30%, var(--wine-light) 0%, var(--wine) 45%, var(--wine-deep) 100%);
			clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
		}
	}


/* ================= 26. PROFESSIONNELS : FORMULES EN VIS-À-VIS =================
   Deux cartes côte à côte, écartées et inclinées au départ, qui convergent au
   scroll jusqu'à se chevaucher légèrement (frontend.js, section 21). */

	.mj-offers--duo { overflow: clip; }
	.mj-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
	.mj-duo__card {
		position: relative; top: auto; min-height: 0; will-change: transform;
		grid-template-columns: 1fr; grid-template-rows: clamp(260px, 28vw, 400px) auto;
	}
	.mj-duo__card + .mj-duo__card { z-index: 1; }
	.mj-duo__card .mj-offer__body { padding: clamp(28px, 3.4vw, 56px); justify-content: flex-start; }

	@media (max-width: 900px) {
		.mj-duo { grid-template-columns: 1fr; }
		.mj-duo__card { grid-template-rows: auto auto; }
		.mj-duo__card .mj-offer__media { aspect-ratio: 16 / 10; }
	}


/* ================= 27. PROFESSIONNELS : PARCOURS CLIENT =================
   Quatre étapes en cartes photo, découvertes de bas en haut en décalé
   au fil du scroll (frontend.js, section 22). */

	.mj-parcours { padding: clamp(96px, 14vh, 160px) var(--gut); background: var(--beige-40); }
	.mj-parcours .mj-head p{ max-width: 30vw; }
	.mj-parcours__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: clamp(440px, 64vh, 640px); }
	.mj-parcours__card { position: relative; overflow: hidden; color: var(--beige-20); list-style: none; }
	.mj-parcours__card picture { position: absolute; inset: 0; height: 100%; }
	.mj-parcours__card::after {
		content: ""; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .75) 100%);
	}
	.mj-parcours__txt { position: absolute; left: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px); z-index: 1; }
	.mj-parcours__num { display: block; margin-bottom: 10px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; color: var(--beige); }
	.mj-parcours__titre { margin-bottom: 8px; font-family: var(--f-edito); font-size: clamp(1.3rem, 1.5em, 1.5rem); line-height: 1.05; }
	.mj-parcours__texte { font-size: .98rem; line-height: 1.55; color: rgba(247, 244, 239, .9); }

	@media (max-width: 900px) {
		.mj-parcours__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
		.mj-parcours__card { aspect-ratio: 3 / 4; }
	}
	@media (max-width: 560px) {
		.mj-parcours__grid { grid-template-columns: 1fr; }
		.mj-parcours__card { aspect-ratio: 4 / 3; }
	}



/* ================= 28. PROFESSIONNELS : ÉTATS D'ANIMATION ================= */

	.mj-anim .mj-rideau__text > * { opacity: 0; }
	.mj-anim .mj-parcours__card { clip-path: inset(100% 0 0 0); }
	@media (min-width: 901px) {
		.mj-anim .mj-rideau { --tx: 100%; --bx: 100%; }
	}


/* ================= 29. LETTRAGES MANUSCRITS (TRACÉ DE PLUME) =================
   SVG inline (View::Lettrage) : les formes pleines du lettrage sont révélées par
   un masque de traits qui suivent la ligne de plume, dessinés un à un en JS
   (frontend.js, section 14). La couleur vient de currentColor. */

	.mj-script { color: var(--wine); line-height: 0; }
	.mj-script--clair { color: var(--beige-20); }
	.mj-script__svg { display: block; width: 100%; height: auto; overflow: visible; }
	.mj-cta .mj-cta__script { width: clamp(150px, 16vw, 220px); margin: 0 auto 28px; }

	/* En attente de préparation par le JS : rien n'est affiché (pas de flash du lettrage complet) */
	.mj-anim .mj-script:not(.est-pret) .mj-script__svg { visibility: hidden; }




/* ================= 30. SIGNATURE ================= */

	.mj-signature__nom { letter-spacing: .06em; }
	.mj-signature__role { font-style: italic; }


/* ================= 31. ACCUEIL : ACCROCHE DU HERO ================= */

	.mj-hero__accroche {
		max-width: 34ch; margin: 22px auto 0; text-wrap: balance;
		font-family: var(--f-edito); font-size: clamp(1.15rem, 1.45vw, 1.45rem); line-height: 1.35; color: var(--wine);
	}


/* ================= 32. ACCUEIL : HISTOIRE AVEC PORTRAIT =================
   Portrait collant à gauche ; à droite, le texte de Jordy puis les cartes
   empilées (même mécanique qu'avant, section 09). */

	.mj-histoire__portrait { position: sticky; top: calc(var(--stick) + 48px); align-self: start; }
	.mj-histoire__photo {
		width: min(100%, calc((100svh - var(--stick) - 96px) * .8)); aspect-ratio: 4 / 5; overflow: hidden;
	}
	.mj-histoire__photo img { object-position: 50% 30%; }
	.mj-histoire__contenu .mj-lead { margin-bottom: 18px; }
	.mj-histoire__contenu .mj-histoire__texte { max-width: 62ch; margin-top: 0; }
	.mj-histoire__texte p + p { margin-top: 1em; }
	.mj-histoire__contenu .mj-stack { margin-top: clamp(72px, 12vh, 140px); }

	@media (max-width: 900px) {
		.mj-histoire__portrait { position: static; }
		.mj-histoire__photo { width: min(100%, 380px); }
	}


/* ================= 33. PARTICULIERS : MAISON JOFMAN ATELIER ================= */

	.mj-atelier {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		background: radial-gradient(ellipse at 75% 40%, var(--wine-light) 0%, var(--wine) 45%, var(--wine-deep) 100%);
		color: var(--beige-20);
	}
	.mj-atelier__media { position: relative; min-height: 100%; }
	.mj-atelier__photo { position: absolute; inset: 0; }
	.mj-atelier__photo img { object-position: 40% 50%; }
	.mj-atelier__body {
		display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
		padding: clamp(72px, 12vh, 140px) var(--gut);
	}
	.mj-atelier__kicker { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); }
	.mj-atelier__titre { font-family: var(--f-edito); font-size: clamp(2.4rem, 3vw, 3.5rem); line-height: 1; }
	.mj-atelier__accroche { font-family: var(--f-edito); font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.25; }
	.mj-atelier__body p { max-width: 54ch; }
	.mj-atelier__sujets { margin: 0; }
	.mj-atelier__tarif {
		margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(217, 198, 176, .4);
		font-family: var(--f-edito); font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--beige);
	}
	.mj-atelier .mj-actions { margin-top: 8px; }

	@media (max-width: 900px) {
		.mj-atelier { grid-template-columns: 1fr; }
		.mj-atelier__media { aspect-ratio: 3 / 2; min-height: 0; }
	}


/* ================= 34. QUESTIONS FRÉQUENTES : IDÉES REÇUES =================
   Questions en citations (visuels du questionnaire), réponses en deux temps
   (constat + chute en bordeaux), conclusion pleine largeur avec pictos. */

	.mj-faq--idees { display: block; }
	.mj-faq__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
	.mj-faq__intro { position: sticky; top: calc(var(--stick) + 40px); align-self: start; }
	.mj-faq__accroche { margin-bottom: 10px; font-family: var(--f-edito); font-size: clamp(1.5rem, 2.1vw, 2.1rem); line-height: 1.15; color: var(--wine); }
	.mj-faq__r { padding-bottom: 26px; color: #555; }
	.mj-faq__r p { padding-bottom: 0; }
	.mj-faq__r p + p { margin-top: .6em; }
	.mj-faq__r strong { font-weight: 400; color: var(--wine); }
	.mj-faq__chute { color: var(--wine); }

	.mj-faq__fin {
		text-align: center;
		margin-top: clamp(56px, 9vh, 110px); padding-top: clamp(56px, 9vh, 110px); border-top: 1px solid rgba(89, 16, 23, .2);
	}
	.mj-faq__fin-texte { max-width: 50vw; margin: 0 auto 18px; }
	.mj-faq__fin-titre { font-family: var(--f-edito); font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.04; }
	.mj-faq__criteres { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px clamp(28px, 5vw, 80px); margin: clamp(36px, 6vh, 56px) 0; }
	.mj-faq__criteres li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 1rem; color: var(--noir-80); }
	.mj-faq__criteres svg {
		width: 56px; height: 56px; fill: none; stroke: var(--wine); stroke-width: 1.3;
		stroke-linecap: round; stroke-linejoin: round;
	}
	.mj-faq__budget { max-width: 32ch; margin: 0 auto; font-family: var(--f-edito); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.25; }

	@media (max-width: 900px) {
		.mj-faq__grille { grid-template-columns: 1fr; gap: 16px; }
		.mj-faq__intro { position: static; }
		.mj-faq__criteres { display: grid; grid-template-columns: 1fr 1fr; }
	}


/* ================= 35. PROFESSIONNELS : MANIFESTE LONG, CADRAGES ================= */

	#Page-Professionnels .mj-reveal__texte { font-size: clamp(1.7rem, 2.9vw, 3rem); line-height: 1.16; }
	#Page-Professionnels .mj-reveal__inner { max-width: 1180px; }

	/* Hero : photo de la chambre témoin (format portrait), recentrée dans la partie visible */
	@media (min-width: 901px) {
		#Page-Professionnels .mj-rideau__photo { left: 42%; } /* la photo n'occupe que la partie découverte par le voile */
		#Page-Professionnels .mj-rideau__photo img { object-position: 50% 60%; }
	}

	/* Parcours client : illustrations au format paysage, cadrage sur le sujet de chaque scène */
	.mj-parcours--illustre .mj-parcours__card:nth-child(1) img { object-position: 6% 50%; }
	.mj-parcours--illustre .mj-parcours__card:nth-child(2) img { object-position: 46% 50%; }
	.mj-parcours--illustre .mj-parcours__card:nth-child(3) img { object-position: 28% 50%; }
	.mj-parcours--illustre .mj-parcours__card:nth-child(4) img { object-position: 42% 50%; }


/* ================= 36. MENU MOBILE : 5E ENTRÉE ================= */

	.mj-menu.is-open .mj-menu__list li:nth-child(5) a { transition-delay: .24s; }


/* ================= 37. RÉALISATIONS : EN-TÊTE ET LIVRE (MODE DÉFILEMENT) =================
   Sans JS et sur mobile : les pages se suivent à l'horizontale (scroll-snap),
   dans l'ordre de lecture (les feuillets s'effacent : display: contents). */

	.mj-realisations { padding: clamp(40px, 6vh, 95px) var(--gut) clamp(40px, 7vh, 95px); background: var(--beige-40); overflow: clip; }
	.mj-realisations .mj-head { margin-bottom: clamp(32px, 5vh, 56px); }

	.mj-book { --pw: min(84vw, 420px); --ph: calc(var(--pw) / .69); position: relative; }
	.mj-book__inner {
		position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
		margin: 0 calc(var(--gut) * -1); padding: 8px calc((100vw - var(--pw)) / 2) 28px;
		scrollbar-width: none; overscroll-behavior-x: contain;
	}
	.mj-book__inner::-webkit-scrollbar { display: none; }
	.mj-book__leaf { display: contents; }
	.mj-book__face {
		display: flex; flex: 0 0 var(--pw); min-height: var(--ph); scroll-snap-align: center; container-type: inline-size;
		box-shadow: 0 14px 34px rgba(42, 4, 7, .14);
	}
	.mj-book__face > .mj-page { flex: 1; height: auto; }

	/* Petites pages (mobile) : tailles de texte plancher pour rester lisible */
	.mj-book:not(.is-flip) .mj-page__texte { font-size: max(3.45cqw, 15px); }
	.mj-book:not(.is-flip) .mj-page__lieu { font-size: max(3cqw, 12px); }
	.mj-book:not(.is-flip) .mj-page__badge { font-size: max(2.4cqw, 10.5px); }
	.mj-book:not(.is-flip) .mj-page__folio { font-size: max(2.5cqw, 10px); }
	.mj-book:not(.is-flip) .mj-page .mj-page__galerie { font-size: max(3.2cqw, 14px); }
	.mj-book:not(.is-flip) .mj-page__surtitre,
	.mj-book:not(.is-flip) .mj-page__consigne { font-size: max(3cqw, 11px); }
	.mj-book:not(.is-flip) .mj-page--dos p:not(.mj-page__grand) { font-size: max(3.4cqw, 15px); }


/* ================= 38. RÉALISATIONS : LIVRE FEUILLETÉ (DESKTOP) =================
   Classe is-flip posée par frontend.js (section 23) au-delà de 900 px.
   Chaque feuillet est posé sur la moitié droite et tourne autour de la reliure
   (rotateY). Fermé (couverture) ou terminé (dos), le livre se recentre (--shift). */

	@media (min-width: 901px) {
		.mj-book { --pw: min(42vw, calc((100svh - var(--stick) - 200px) * .69), 520px); }
	}

	.mj-book.is-flip { width: calc(var(--pw) * 2); height: var(--ph); margin: 0 auto; perspective: 2800px; }
	.mj-book.is-flip[data-etat="debut"] { --shift: calc(var(--pw) * -.5); }
	.mj-book.is-flip[data-etat="fin"] { --shift: calc(var(--pw) * .5); }

	.is-flip .mj-book__inner {
		display: block; overflow: visible; margin: 0; padding: 0; width: 100%; height: 100%;
		transform: translateX(var(--shift, 0px)); transition: transform 1s var(--ease); transform-style: preserve-3d;
	}
	.is-flip .mj-book__leaf {
		display: block; position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
		transform-origin: left center; transform-style: preserve-3d;
		transition: transform 1.2s cubic-bezier(.645, .045, .355, 1);
	}
	.is-flip .mj-book__leaf.is-flipped { transform: rotateY(-180deg); }
	.is-flip .mj-book__leaf.is-peek { transform: rotateY(-24deg); transition-duration: .7s; }
	.is-flip .mj-book__face {
		position: absolute; inset: 0; display: block; min-height: 0; box-shadow: none;
		-webkit-backface-visibility: hidden; backface-visibility: hidden;
	}
	.is-flip .mj-book__face--verso { transform: rotateY(180deg); }
	.is-flip .mj-book__face > .mj-page { height: 100%; }
	.is-flip .mj-book__face--recto { cursor: pointer; }
	.is-flip .mj-book__face--verso { cursor: pointer; }

	/* Ombre portée du livre + ombre de reliure sur chaque page */
	.is-flip .mj-book__face::after {
		content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
		background: linear-gradient(to right, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 9%);
	}
	.is-flip .mj-book__face--verso::after { background: linear-gradient(to left, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 9%); }
	.is-flip .mj-book__inner::before {
		content: ""; position: absolute; top: 1%; bottom: 1%; left: 50%; width: 50%; z-index: -1;
		box-shadow: 0 30px 60px rgba(42, 4, 7, .28); transition: left 1s var(--ease), width 1s var(--ease);
	}
	.is-flip:not([data-etat="debut"]):not([data-etat="fin"]) .mj-book__inner::before { left: 0; width: 100%; }
	.is-flip[data-etat="fin"] .mj-book__inner::before { left: 0; }


/* ================= 39. RÉALISATIONS : PAGES DU LIVRE =================
   Tailles en cqw (largeur de la page) : la mise en page reste identique
   quelle que soit la taille du livre. */

	.mj-page {
		position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column;
		padding: 9cqw 9cqw 14cqw; background: var(--beige-20); color: var(--noir);
	}
	.mj-page button:not(.mj-link) { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: zoom-in; }
	.mj-page picture { width: 100%; height: 100%; overflow: hidden; }
	.mj-page picture img { transition: transform .8s var(--ease); }
	.mj-page button:hover picture img { transform: scale(1.04); }

	.mj-page__folio {
		position: absolute; left: 9cqw; right: 9cqw; bottom: 5.5cqw;
		font-size: 2.5cqw; letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 0, 0, .5);
	}
	.mj-page--texte .mj-page__folio { text-align: right; }

	/* Couverture */
	.mj-page--couverture {
		align-items: center; justify-content: center; gap: 4cqw; text-align: center; color: var(--beige-20);
		background: radial-gradient(ellipse at 50% 35%, var(--wine-light) 0%, var(--wine) 50%, var(--wine-deep) 100%);
	}
	.mj-page--couverture::before {
		content: ""; position: absolute; inset: 4.5cqw; border: 1px solid rgba(217, 198, 176, .45); pointer-events: none;
	}
	.mj-page__logo { width: 34cqw; height: auto; margin-bottom: 4cqw; }
	.mj-page__surtitre { font-size: 3cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--beige); }
	.mj-page__grand { font-family: var(--f-edito); font-size: 12.5cqw; line-height: 1; }
	.mj-page__consigne { margin-top: 6cqw; font-size: 3cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); }
	.mj-page__consigne::after { content: " →"; display: inline-block; animation: mj-feuilleter 2.4s var(--ease) infinite; }
	@keyframes mj-feuilleter { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.2em); } }

	/* Page photos : photo principale + encart « avant » façon tirage photo */
	.mj-page--photos { padding: 8cqw 8cqw 14cqw; }
	.mj-page__cadre--principal { flex: 1; min-height: 0; width: 100%; }
	.mj-page__avant {
		position: absolute; right: 4.5cqw; bottom: 12cqw; z-index: 1; width: 38cqw; aspect-ratio: 3 / 4;
		padding: 2.2cqw 2.2cqw 8cqw; background: #FFFDF9; box-shadow: 0 1.6cqw 4.5cqw rgba(0, 0, 0, .28);
		transform: rotate(3.5deg);
	}
	.mj-page__avant .mj-page__cadre { width: 100%; height: 100%; }
	.mj-page__etiquette {
		position: absolute; left: 0; right: 0; bottom: 2cqw; text-align: center;
		font-family: var(--f-edito); font-size: 4.2cqw; color: var(--wine);
	}
	.mj-page--photos.is-paysage { justify-content: center; gap: 5cqw; }
	.mj-page__cadre--paysage { width: 100%; aspect-ratio: 16 / 10; flex: none; }

	/* Page texte */
	.mj-page__num { font-family: var(--f-edito); font-size: 17cqw; line-height: .9; color: var(--wine); }
	.mj-page__badges { display: flex; flex-wrap: wrap; gap: 1.8cqw; margin: 3.5cqw 0 4cqw; }
	.mj-page__badge {
		padding: .7cqw 2.4cqw; border: 1px solid currentColor; font-size: 2.4cqw; letter-spacing: .12em; text-transform: uppercase;
	}
	.mj-page__badge--wine { background: var(--wine); border-color: var(--wine); color: var(--beige-20); }
	.mj-page__titre { font-family: var(--f-edito); font-size: 8.4cqw; line-height: 1; }
	.mj-page__lieu { margin: 1.6cqw 0 4.5cqw; font-size: 3cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
	.mj-page__texte { font-size: 3.45cqw; line-height: 1.55; }
	.mj-page__vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqw; margin-top: auto; padding-top: 5cqw; }
	.mj-page__vignettes button { width: 100%; aspect-ratio: 1; overflow: hidden; }
	.mj-page .mj-page__galerie { align-self: flex-start; padding: 0 0 3px; border: 0; font-family: inherit; margin-top: 3.5cqw; font-size: 3.2cqw; color: var(--wine); cursor: pointer; }

	/* Dos */
	.mj-page--dos {
		align-items: center; justify-content: center; gap: 5cqw; text-align: center;
		background: var(--noir); color: var(--beige);
	}
	.mj-page--dos .mj-page__grand { font-size: 8.6cqw; color: var(--beige-20); text-wrap: balance; }
	.mj-page--dos p:not(.mj-page__grand) { max-width: 32ch; font-size: 3.4cqw; }
	.mj-page--dos .mj-btn { margin-top: 2cqw; }


/* ================= 40. RÉALISATIONS : NAVIGATION DU LIVRE ================= */

	.mj-book__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: clamp(20px, 4vh, 40px); }
	.mj-book__btn {
		display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
		border: 1px solid var(--wine); background: transparent; color: var(--wine); font: inherit; font-size: 1.3rem; cursor: pointer;
		transition: background-color .25s, color .25s, opacity .25s;
	}
	.mj-book__btn:hover:not(:disabled) { background: var(--wine); color: var(--beige-20); }
	.mj-book__btn:disabled { opacity: .3; cursor: default; }
	.mj-book__etat { min-width: 20ch; text-align: center; font-size: 1rem; }




/* ================= 41. RÉALISATIONS : GALERIE PLEIN ÉCRAN (AVANT / APRÈS) =================
   <dialog> natif (showModal) : focus piégé, Échap pour fermer.
   is-duo : avant et après côte à côte ; empilés sur écran en portrait.
   Une seule photo : elle prend toute la place. */

	.mj-lb {
		width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
		border: 0; background: transparent; color: var(--beige);
	}
	.mj-lb[open] { display: block; }
	.mj-lb::backdrop { background: rgba(20, 3, 5, .94); }
	.mj-lb__scene {
		--lb-h: calc(100dvh - 150px);
		height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
		padding: 24px 84px;
	}
	.mj-lb__duo { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); width: 100%; }
	.mj-lb__volet { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
	.mj-lb__volet picture, .mj-lb__volet img { width: auto; height: auto; }
	.mj-lb__volet img { max-width: min(100%, 1400px); max-height: var(--lb-h); object-fit: contain; }
	.is-duo .mj-lb__volet { flex: 1 1 0; }
	.is-duo .mj-lb__volet img { max-width: 100%; max-height: calc(var(--lb-h) - 36px); }

	.mj-lb__etat {
		order: -1; padding: 3px 14px; border: 1px solid currentColor;
		font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--beige-20);
	}
	.mj-lb__volet[data-lb-volet="apres"] .mj-lb__etat { background: var(--wine); border-color: var(--wine); }

	.mj-lb__legende { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; max-width: 900px; font-size: .95rem; text-align: center; }
	.mj-lb__compteur { opacity: .6; }
	.mj-lb__btn, .mj-lb__close {
		position: fixed; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
		border: 1px solid rgba(217, 198, 176, .5); background: rgba(0, 0, 0, .25); color: var(--beige-20); font: inherit; font-size: 1.3rem; cursor: pointer;
		transition: background-color .25s, color .25s;
	}
	.mj-lb__btn:hover, .mj-lb__close:hover { background: var(--beige); color: var(--noir); }
	.mj-lb__btn { top: 50%; transform: translateY(-50%); }
	.mj-lb__btn--prev { left: 14px; }
	.mj-lb__btn--next { right: 14px; }
	.mj-lb__close { top: 14px; right: 14px; font-size: 1.7rem; }
	.mj-lb :focus-visible { outline-color: var(--beige); }

	/* Écran en portrait (mobile) : avant au-dessus, après en dessous, étiquettes sur les photos */
	@media (max-aspect-ratio: 1/1) {
		.mj-lb__scene { padding: 72px 12px 84px; }
		.is-duo .mj-lb__duo { flex-direction: column; }
		.is-duo .mj-lb__volet { flex: none; }
		.is-duo .mj-lb__volet img { max-height: calc((100dvh - 240px) / 2); }
		.is-duo .mj-lb__etat { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 1; background: rgba(0, 0, 0, .6); border-color: transparent; }
		.is-duo .mj-lb__volet[data-lb-volet="apres"] .mj-lb__etat { background: var(--wine); }
	}
	@media (max-width: 700px) {
		.mj-lb__btn { top: auto; bottom: 14px; transform: none; }
	}


	
/* ================= 42. AJUSTEMENTS MOBILES (≤ 900 PX) =================
   - Accueil : le logo se pose sur le mur, à gauche du zèbre ; burger clair
     tant que le header est transparent (au-dessus de la photo).
   - Footer : contenus centrés.
   - Réalisations : en mode défilement, les visuels en paysage remplissent
     la page comme les photos en portrait (recadrage object-fit: cover). */

	@media (max-width: 900px) {

		/* Accueil : logo à côté du zèbre (photo en 4/5, zèbre calé à droite) */
		#Page-Home .mj-hero__logo {
			position: absolute; z-index: 2; left: 3vw; top: calc(100vw * 1.4 * .5);
			width: 55vw; max-width: 220px; margin: 0; transform: translateY(-50%);
		}
		#Page-Home .mj-hero__content { position: static; padding-top: 40px; padding-bottom: 150px; } /* le logo se cale sur le hero */

		/* Accueil : burger blanc sur la photo, bordeaux dès que le header prend son fond */
		.js #Page-Home:not(.scrolled):not(.menu-open) .mj-burger { color: var(--beige-20); }
		.js #Page-Home:not(.scrolled):not(.menu-open) .mj-burger__label { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
		.js #Page-Home .mj-burger { transition: color .4s; }

		.mj-parcours .mj-head p {    max-width: unset; }
	}

	@media (max-width: 560px) {

		/* Footer centré */
		.mj-footer__top { justify-items: center; text-align: center; }
		.mj-footer__logo { margin: 0 auto; }
		.mj-footer__menu a { display: block; }
		.mj-footer__legal { align-items: center; text-align: center; }

		.mj-reveal__texte {
			font-size: 1.8em;
			line-height: 1.12;
		}

		.mj-offer__body{ padding-top: 30px; padding-bottom: 30px;}


	}

	/* Réalisations (mode défilement) : visuels en paysage plein cadre */
	.mj-book:not(.is-flip) .mj-page--photos.is-paysage { justify-content: flex-start; }
	.mj-book:not(.is-flip) .mj-page__cadre--paysage { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }




	/* ==========================================================
   Page Mentions légales / Politique de confidentialité
   À poser sur le conteneur du contenu : <div class="legal">
   ========================================================== */
.legal {
  --legal-bg: #F7F4EF;
  --legal-ink: #2B2622;
  --legal-muted: #6E655C;
  --legal-line: rgba(43, 38, 34, .14);
  --legal-accent: #9C7A5B; /* à remplacer par ta couleur d'accent */

  max-width: 70vw;
  margin: 0 auto;
  padding: 100px clamp(1.25rem, 5vw, 2rem) clamp(4rem, 10vw, 7rem);
  color: var(--legal-ink);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.75;
  counter-reset: legal;
}

/* Titre principal */
.legal h2 {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--legal-line);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* Paragraphes d'introduction (avant le premier h3) */
.legal h2 ~ p:not(h3 ~ p) {
  color: var(--legal-muted);
}
.legal h2 + p {
  font-size: 1.12em;
  color: var(--legal-ink);
}

/* Sous-titres numérotés */
.legal h3 {
  counter-increment: legal;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  margin: clamp(2.5rem, 6vw, 3.75rem) 0 1rem;
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--legal-line);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
}
.legal h3::before {
  content: counter(legal, decimal-leading-zero);
  font-size: .7em;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--legal-accent);
}
.legal h3 ~ p,
.legal h3 ~ ul {
  margin-left: 2.75rem;
}

/* Texte courant */
.legal p {
  margin: 0 0 1.1em;
}

/* Listes */
.legal ul {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}
.legal li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .55em;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: .7rem;
  height: 1px;
  background: var(--legal-accent);
}

/* Liens */
.legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--legal-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  overflow-wrap: anywhere; /* adresses mail longues */
  transition: color .25s ease, text-decoration-color .25s ease;
}
.legal a:hover,
.legal a:focus-visible {
  color: var(--legal-accent);
  text-decoration-color: currentColor;
}

/* Mobile : on supprime le retrait lié à la numérotation */
@media (max-width: 600px) {

  .legal  {  max-width: 95vw; }
  .legal h3 { grid-template-columns: 2.25rem 1fr; }
  .legal h3 ~ p,
  .legal h3 ~ ul { margin-left: 0; }
  
}