/* Page /projets/ : vitrine au défilement. À gauche, les noms des projets défilent ; à droite, une carte montre
   le point de départ et les livrables reliés comme des nœuds ; en fond, la photo du projet.
   Couleurs fixes (scène nocturne dans les deux thèmes). Sans script ou mouvement réduit : projets empilés. */
.vitrine { position: relative; color: #F3EEEA; --vt-len: 4; }
.vt-fond, .vt-noms, .vt-points { display: none; }
.vt-cartes { display: grid; gap: clamp(48px, 7vw, 96px); padding: 0 var(--marge) clamp(48px, 7vw, 96px); }

/* ---------- carte : visuel + texte ---------- */
.vt-visuel { margin: 0; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #050506; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(0, 0, 0, .8); }
.vt-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.is-live .vt-visuel { aspect-ratio: 16 / 9; }
.is-live .vt-visuel img { transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .9, .25, 1); }
.is-live .vt-carte.actif .vt-visuel img { transform: none; }
.vt-carte { display: grid; gap: 22px; max-width: 980px; }
.vt-graphe { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #050506;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 14px 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 120px -30px rgba(0, 0, 0, .8); }
.vt-liens { position: absolute; inset: 0; width: 100%; height: 100%; }
.vt-liens path { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vt-noeud { position: absolute; margin: 0; width: 26%; transform: translateY(-50%); }
.vt-source { left: 7%; top: 50%; }
.vt-sortie { left: 64%; }
.vt-s1 { top: 18%; } .vt-s2 { top: 50%; } .vt-s3 { top: 82%; }
.vt-noeud figcaption { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font: 400 clamp(8px, .62vw, 10px)/1.2 var(--mono); letter-spacing: .04em; color: #cfc8d2; white-space: nowrap; }
.vt-noeud figcaption span:last-child { color: #7f7884; }
.vt-noeud img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 34px rgba(0, 0, 0, .55); background: #111; }
.vt-sortie img { aspect-ratio: 16 / 10; }

.vt-secteur { font: 400 11px/1.4 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: #F3A395; }
.vt-texte h2 { margin: 8px 0 10px; font: 600 clamp(22px, 1.8vw, 30px)/1.1 var(--serif); letter-spacing: -.01em; }
.vt-texte h2 em { color: #F3A395; }
.vt-lien { color: #F3EEEA; text-decoration: none; }
.vt-accroche { max-width: 52ch; color: #cfc8d2; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; }
.vt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vt-tags li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 12px; color: #e9e2ea; background: rgba(255, 255, 255, .04); }
.vt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.vt-cta { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; border-radius: 999px; background: #F3A395; color: #1a1210; font: 600 14px/1 var(--sans); text-decoration: none; transition: padding .5s cubic-bezier(.2, .9, .25, 1), background .3s; }
.vt-cta i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1a1210; color: #F3A395; font-style: normal; font-size: 18px; transition: transform .5s cubic-bezier(.2, .9, .25, 1); }
.vt-cta:hover { padding-left: 28px; background: #ffb9ad; }
.vt-cta:hover i { transform: translateX(4px) rotate(-45deg); }
.vt-cta:focus-visible, .vt-lien:focus-visible, .vt-externe:focus-visible { outline: 2px solid #F3A395; outline-offset: 4px; }
.vt-externe { font-size: 13px; color: #cfc8d2; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .3); }
.vt-externe:hover { color: #F3A395; }

/* ---------- mode vivant : scène fixe pendant le défilement ---------- */
.vitrine.is-live { height: calc(var(--vt-len) * 100vh); height: calc(var(--vt-len) * 100svh); background: transparent; }
/* fondus d'entrée et de sortie : la vitrine se fond dans le fond de la page, en haut comme en bas */
.vitrine.is-live::before { content: ""; position: absolute; left: 0; right: 0; z-index: 4; height: 45vh; pointer-events: none; }
.vitrine.is-live::before { top: 0; background: linear-gradient(180deg, rgb(var(--nuit-rgb)) 0%, rgba(var(--nuit-rgb), .85) 25%, rgba(var(--nuit-rgb), .4) 60%, rgba(var(--nuit-rgb), 0) 100%); }
/* sortie : la vitrine entière s'efface dans le fond de la page après le dernier projet (vitrine.js) */
.is-live .vt-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-live .vt-fond { display: block; position: absolute; inset: 0; z-index: 0; }
.vt-fond-img { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; opacity: 0; filter: blur(4px) brightness(.42) saturate(.9); transform: scale(1.04); transition: opacity 1s ease, transform 6s ease-out; }
.vt-fond-img.actif { opacity: 1; transform: scale(1); }
.vt-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 10, .78) 0%, rgba(7, 6, 10, .35) 45%, rgba(7, 6, 10, .55) 100%), linear-gradient(0deg, rgba(7, 6, 10, .6), transparent 30%); }

.is-live .vt-noms { display: block; position: absolute; z-index: 1; left: var(--marge); top: 0; width: 44vw; margin: 0; padding: 0; list-style: none; will-change: transform; }
.vt-noms li { height: var(--vt-h, 150px); display: flex; align-items: center; }
.vt-noms button { all: unset; cursor: pointer; font: 500 clamp(40px, 4.4vw, 80px)/1 var(--sans); letter-spacing: -.03em; color: #F3EEEA; opacity: .26; white-space: nowrap; transition: opacity .5s ease, color .5s ease; }
.vt-noms button:hover { opacity: .5; }
.vt-noms li.actif button { opacity: 1; }

.is-live .vt-cartes { display: block; position: absolute; z-index: 2; left: 50vw; right: calc(var(--marge) + 24px); top: calc(50% + 40px); transform: translateY(-50%); padding: 0; max-width: min(720px, calc((100svh - 260px) * 1.78)); }
.is-live .vt-graphe { aspect-ratio: 16 / 9; }
.is-live .vt-carte { gap: 16px; }
.is-live .vt-actions { margin-top: 16px; }
.is-live .vt-tags { margin-top: 12px; }
.is-live .vt-carte { position: absolute; left: 0; right: 0; top: 0; opacity: 0; visibility: hidden; transform: translate3d(0, 24px, 0); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .9, .25, 1), visibility 0s .55s; max-width: none; }
.is-live .vt-carte:first-child { position: relative; }
.is-live .vt-carte.actif { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease .1s, transform .7s cubic-bezier(.2, .9, .25, 1) .1s, visibility 0s; }
/* nœuds et liens qui s'animent à l'arrivée de la carte */
.is-live .vt-noeud { opacity: 0; transform: translateY(-50%) scale(.9); transition: opacity .5s ease, transform .7s cubic-bezier(.2, 1.3, .4, 1); }
.is-live .vt-liens path { stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
.is-live .vt-carte.actif .vt-noeud { opacity: 1; transform: translateY(-50%); }
.is-live .vt-carte.actif .vt-source { transition-delay: .15s; }
.is-live .vt-carte.actif .vt-liens path { stroke-dashoffset: 0; transition-delay: .35s; }
.is-live .vt-carte.actif .vt-s1 { transition-delay: .7s; }
.is-live .vt-carte.actif .vt-s2 { transition-delay: .8s; }
.is-live .vt-carte.actif .vt-s3 { transition-delay: .9s; }
.is-live .vt-texte h2 { display: none; }                      /* le nom est déjà à gauche, en grand */

.is-live .vt-points { display: flex; position: absolute; z-index: 3; right: calc(var(--marge) * .45); top: 50%; transform: translateY(-50%); flex-direction: column; gap: 12px; }
.vt-points span { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #F3A395; transition: background .3s, transform .3s; }
.vt-points span.actif { background: #F3A395; transform: scale(1.4); }

@media (max-width: 900px) {
  .is-live .vt-noms { width: auto; right: var(--marge); }
  .vt-noms button { font-size: clamp(34px, 10vw, 60px); }
  .vt-noms li.loin button { opacity: 0; }
  .is-live .vt-cartes { left: var(--marge); top: auto; bottom: max(20px, env(safe-area-inset-bottom)); transform: none; }
  .is-live .vt-tags { display: none; }
  .is-live .vt-accroche { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .is-live .vt-actions { margin-top: 14px; }
  .is-live .vt-points { display: none; }
  .vt-voile { background: linear-gradient(180deg, rgba(7, 6, 10, .75) 0%, rgba(7, 6, 10, .35) 40%, rgba(7, 6, 10, .8) 100%); }
  .vt-noeud figcaption span:last-child { display: none; }
}
@media (max-width: 600px) {
  .vt-noeud figcaption { font-size: 8px; }
}
