/* VARIANTE B3·3 « POCHOIR » : fond plâtre, encre noire, capitales très grasses et serrées */
.v-b33 { --noir: #ebe9e4; --encre: #121212; --gris: #77756f; --filet: rgba(18,18,18,.14); background: var(--noir); color: var(--encre); }
.v-b33 .m-massif { font-weight: 900; letter-spacing: -.055em; }
.v-b33 .b-fond, .v-b33 .m-donnees dd, .v-b33 .m-duo span { color: #3c3b38; }
.v-b33 .m-etiquette { color: var(--gris); }
.v-b33 .k-encours li { color: #4a4945; }
.v-b33 .m-filtres button { color: var(--encre); border-color: var(--filet); }
.v-b33 .m-filtres button[aria-pressed="true"] { background: var(--encre); color: var(--noir); }
.v-b33 .k-complet, .v-b33 .b-complet { color: var(--encre); }
.v-b33 .m-contact .mail { color: var(--encre); }
.v-b33 .m-indice span { color: var(--encre); }
.v-b33 .m-indice i { background: var(--encre); }
.v-b33 ::selection { background: var(--encre); color: var(--noir); }

/* ---------- Splash : pochoir au rouleau ---------- */
.v3-splash { background: var(--noir); transition: opacity .9s ease; }
.v3-splash.fin { opacity: 0; }
.v3-splash .cadre { position: absolute; left: 50%; top: 47%; width: min(88vw, 980px); aspect-ratio: 800 / 238; transform: translate(-50%, -50%); }
@media (min-width: 761px) { .v3-splash .cadre { width: min(70vw, 980px); } }
.v3-splash .encre { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 100% 0 0); animation: v3-pose 1.1s cubic-bezier(.65,0,.25,1) .25s forwards; filter: drop-shadow(0 0 .6px rgba(0,0,0,.6)); }
@keyframes v3-pose { to { clip-path: inset(0 0 0 0); } }
.v3-splash .photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  -webkit-mask: url("../img/logo/mascherpa-juppe-noir.png") center / 100% 100% no-repeat; mask: url("../img/logo/mascherpa-juppe-noir.png") center / 100% 100% no-repeat;
  animation: v3-remplit 1s ease 1.6s forwards; }
@keyframes v3-remplit { to { opacity: 1; } }
.v3-splash .rouleau { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--encre); opacity: 0; animation: v3-roule 1.1s cubic-bezier(.65,0,.25,1) .25s forwards; }
@keyframes v3-roule { 0% { opacity: 1; transform: translateX(calc(50vw - min(44vw, 490px))); } 99% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(50vw + min(44vw, 490px))); } }

/* ---------- Accueil : la photo vue à travers le logo ---------- */
.v3-hero { height: 300vh; }
.v3-hero .stage { background: var(--noir); }
.v3-fenetre { position: absolute; inset: 0; overflow: hidden; }
.v3-fenetre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.v3-fenetre img.on { opacity: 1; }
.v3-sous { position: absolute; left: 0; right: 0; top: calc(47% + min(88vw, 980px) * .19); display: flex; justify-content: center; gap: 2.2em; font: 600 10px var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gris); }
@media (min-width: 761px) { .v3-sous { top: calc(47% + min(70vw, 980px) * .19); } }
.v3-legende { color: #fff; }

/* ---------- Aiguillage : mots-pochoirs ---------- */
.v3-seuil { padding: 18vh var(--m) 14vh; }
.v3-entree { display: block; position: relative; padding: 2vh 0 3vh; border-top: 1px solid var(--filet); }
.v3-mot { --encre: 100%; display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: -.06em; line-height: .84; white-space: nowrap; padding-right: .06em;
  background-image: linear-gradient(var(--encre-c, #121212), var(--encre-c, #121212)), var(--img);
  background-size: 100% var(--encre), cover; background-position: 0 0, center; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform 1s var(--ease); transform-origin: 0 60%; }
.v3-entree:nth-child(3) .v3-mot { text-align: right; transform-origin: 100% 60%; }
.v3-entrer { display: table; margin-left: auto; margin-right: 0; margin-top: 1.4vh; font: 500 11px var(--sans); letter-spacing: .28em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.v3-entree:nth-child(2) .v3-entrer { margin-left: 0; }
.v3-entree:nth-child(3) { text-align: right; }
.v3-entree.part .v3-mot { transform: scale(1.08); }

/* ---------- Index ---------- */
.v3-sel { position: relative; isolation: isolate; padding: 0 var(--m) 16vh; }
.v3-fond { position: sticky; top: 0; height: 100svh; margin: 0 calc(-1 * var(--m)) -100svh; overflow: hidden; z-index: -1; pointer-events: none; }
.v3-fond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s ease, transform 1.4s var(--ease); }
.v3-fond img.on { opacity: 1; transform: none; }
.v3-sel-tete { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; padding: 14vh 0 5vh; }
.v3-index { list-style: none; mix-blend-mode: difference; color: #ebe9e4; }
.v3-index li { border-top: 1px solid rgba(235,233,228,.35); }
.v3-index li.cachee { display: none; }
.v3-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 1.6vh 0; }
.v3-index strong { font: 900 clamp(26px, 4.6vw, 70px)/.95 var(--sans); letter-spacing: -.045em; text-transform: uppercase; transition: transform .6s var(--ease), letter-spacing .6s var(--ease); }
.v3-index span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.v3-index a.actif strong { transform: translateX(1.2vw); }
.v3-sel .m-massif, .v3-sel .m-etiquette { mix-blend-mode: difference; color: #ebe9e4; }
@media (max-width: 760px) { .v3-index a { flex-direction: column; gap: 6px; padding: 2.2vh 0; } }

/* ---------- Rouleau ---------- */
.v3-rouleau { position: relative; overflow: hidden; }
.v3-rouleau > i { position: absolute; left: 0; right: 0; background: var(--noir); will-change: transform; z-index: 2; }
.k-atelier .ph { clip-path: none; }

/* ---------- Liste : plaques ---------- */
.v3-intro .m-massif { font-size: clamp(56px, 16vw, 250px); }
.v3-plaque { display: block; padding: 10vh var(--m) 4vh; max-width: 1500px; margin: 0 auto; }
.v3-plaque-titre { font: 900 clamp(34px, 7vw, 112px)/.88 var(--sans); letter-spacing: -.05em; text-transform: uppercase; margin-bottom: 3vh; max-width: 14ch; }
.v3-plaque.d .v3-plaque-titre { margin-left: auto; text-align: right; }
.v3-plaque-ph { aspect-ratio: 16 / 9; }
.v3-plaque-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.v3-plaque:hover .v3-plaque-ph img { transform: scale(1.03); }
.v3-plaque-ctx { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.v3-plaque-ctx em { font-style: normal; color: var(--encre); white-space: nowrap; }
@media (max-width: 760px) { .v3-plaque-ph { aspect-ratio: 4 / 5; } .v3-plaque-ctx { flex-direction: column; gap: 8px; } }

/* ---------- Projet : le titre comme fenêtre ---------- */
.v3-cover { height: 220vh; position: relative; }
.v3-cover .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--noir); cursor: zoom-in; }
.v3-plein { position: absolute; inset: 0; opacity: 0; }
.v3-plein img { width: 100%; height: 100%; object-fit: cover; }
.v3-titre-fen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--m); background-size: cover; background-position: center; -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }
.v3-titre-fen span { font: 900 clamp(46px, 12.5vw, 170px)/.84 var(--sans); letter-spacing: -.06em; text-transform: uppercase; text-align: center; text-wrap: balance; }
.v3-ctx-cover { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gris); padding: 0 var(--m); }
.v3-galerie { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 34px); padding: 30px var(--m) 110px; max-width: 1500px; margin: 0 auto; }
.v3-fig { cursor: zoom-in; }
.v3-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-fig:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 760px) { .v3-galerie { grid-template-columns: 1fr; } }

/* Pio : textes de l'index lisibles. Plus d'effet « difference » : texte blanc sur fond sombre, la photo du projet actif derrière. */
.v3-sel { background: #0b0b0a; color: #fff; }
.v3-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 70%, rgba(0,0,0,.15)); }
.v3-index, .v3-sel .m-massif, .v3-sel .m-etiquette { mix-blend-mode: normal; color: #fff; }
.v3-index strong, .v3-index span { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.v3-index li { border-top-color: rgba(255,255,255,.28); }
.v3-index a:not(.actif) strong { opacity: .78; }
.v3-index a.actif strong { opacity: 1; }
.v3-sel .m-filtres button { color: #fff; border-color: rgba(255,255,255,.45); }
.v3-sel .m-filtres button[aria-pressed="true"] { background: #fff; color: #0b0b0a; }

/* Pio : l'aiguillage Particulier / Public reprend celui de S2 (« Ombre portée »), plus clair.
   Titre « Deux entrées » crème sur fond terre d'ombre, capitales verticales crème sur les photos assombries. */
.v-b33 .m-titre-seuil { color: #f2e8d5; background: #14110d; box-shadow: 0 0 0 100vmax #14110d; clip-path: inset(0 -100vmax); }
.v-b33 .m-titre-seuil .m-etiquette { color: #9a8f7e; font-family: 'Plex Mono', ui-monospace, monospace; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.v-b33 .m-titre-seuil .m-massif { color: #f2e8d5; font-weight: 800; letter-spacing: -.035em; text-shadow: .03em .03em 0 rgba(0,0,0,.35), .06em .06em 0 rgba(0,0,0,.25), .09em .09em 0 rgba(0,0,0,.15); }
.v-b33 .k-seuil { background: #14110d; color: #f2e8d5; }
