/* ===================================================================
   thanaelfontaine.eu · Direction artistique « Une journée »
   Accueil. La page se visite comme une journée, de 06:00 à minuit : chaque
   section a son heure, son lieu et son tableau, et le fond suit le ciel.
   Règles : docs/design/charte-une-journee.md
   =================================================================== */

:root {
  /* Papiers */
  --paper: #EFE8DC;        /* Vélin, paper.base */
  --mat: #F6F1E8;          /* Crème, paper.mat */
  --lin: #E4D9C6;          /* Lin, paper.alt */
  --noon: #F5F1E8;         /* Midi, sky.noon */
  --letter: #F3EBDD;       /* Papier à lettre */
  /* Encres & accents */
  --ink: #1C1B1F;
  --ink-soft: #3A3631;
  --ink-muted: #6B5E52;    /* Terre d'ombre */
  --sienna: #B4532F;       /* accent de jour */
  --sienna-deep: #8B3A1E;
  --gold: #E8B77E;         /* accent de nuit */
  --peach: #F3B585;
  --sun: #F0A060;
  /* Nuit & matières */
  --salon: #5E2620;
  --nocturne: #1C2540;
  --midnight: #0D1322;
  --moon: #C9D1DE;
  --moon-dim: #AEB6C8;
  --frame-gold: #C7A765;
  --cream-light: #F4EEE3;
  --night-ink: #EFE8DC;

  --serif: "Cormorant Garamond", "Cormorant Secours", Georgia, serif;
  --label: "IBM Plex Sans Condensed", "Plex Secours", "Plex Secours Large", sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);      /* ease.lumière */
  --tide: cubic-bezier(.65,0,.35,1);     /* ease.marée */

  --padX: clamp(28px, 5vw, 88px);
  --padXr: clamp(128px, 11vw, 170px);    /* réserve de l'horloge : elle ne mord jamais sur le contenu */
  --padY: clamp(80px, 9vw, 140px);
  --acc: var(--sienna);
}
@media (max-width: 859px) {
  :root { --padX: 20px; --padXr: 20px; --padY: 64px; }
}

/* ----------------------------------------------------------- langue
   Sur le site buildé chaque page n'a qu'une langue ; sur les sources
   bilingues, on masque l'autre. Jamais de `display: revert` ici : il
   écraserait le display des composants (flex, grid). */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* ----------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Défilement doux seulement une fois la page posée (journee.js ajoute la classe) :
   une arrivée directe sur /#contact saute à l'heure au lieu de dérouler la journée. */
html.j-smooth { scroll-behavior: smooth; }
body.j-body {
  margin: 0;
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
em { font-style: italic; }
::selection { background: var(--sienna); color: var(--cream-light); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sienna); outline-offset: 3px; }
.j-hero :focus-visible, .j-projects :focus-visible, .j-podcast :focus-visible,
.j-testi :focus-visible, .j-notes :focus-visible, .j-stack :focus-visible,
.j-contact :focus-visible, .j-foot :focus-visible, .j-clock :focus-visible,
.j-menu :focus-visible { outline-color: var(--gold); }

.j-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream-light);
  padding: 12px 16px; font-family: var(--label); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
}
.j-skip:focus { top: 12px; }

/* ----------------------------------------------------------- ciel
   Sans JavaScript, chaque section porte sa propre couleur (--sky) ; avec
   JavaScript, les sections deviennent transparentes et le calque fixe
   s'interpole entre les escales (journee.js). */
.j-sky { position: fixed; inset: 0; z-index: 0; background-color: #E8D6CB; pointer-events: none; }
main, .j-foot { position: relative; z-index: 1; }
main { overflow: clip; }
[data-sky] { background-color: var(--sky); }
.js .j-sec, .js .j-work { background-color: transparent; }

/* ----------------------------------------------------------- étiquette d'heure */
.j-hour {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--label); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-muted);
}
.j-hour .h { font-size: 15px; letter-spacing: .06em; color: var(--ink); }
.j-hour .rule { display: block; width: 40px; height: 1px; background: currentColor; flex: none; }
.j-hour--light, .j-hour--light .h { color: var(--cream-light); }
.j-hour--night { color: #E5C3A8; }
.j-hour--night .h { color: var(--cream-light); }
.j-hour--warm { color: #5E4E40; }
.j-hour--moon { color: var(--moon-dim); }
.j-hour--moon .h { color: var(--night-ink); }

/* ----------------------------------------------------------- titres */
.j-h1, .j-h2 { margin: 0; font-family: var(--serif); font-weight: 300; text-wrap: balance; }
.j-h1 { font-size: clamp(60px, 7vw, 124px); line-height: .92; letter-spacing: -.015em; }
.j-h2 { font-size: clamp(40px, 4.8vw, 80px); line-height: 1; letter-spacing: -.01em; }
.j-h2 em, .j-h1 em { color: var(--acc); }
@media (max-width: 859px) {
  .j-h1 { font-size: 46px; }
  .j-h2 { font-size: 38px; }
}

.j-sec { position: relative; padding: var(--padY) var(--padXr) var(--padY) var(--padX); }

.j-head { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; align-items: end; }
.j-head-main { display: flex; flex-direction: column; gap: 14px; }
.j-aside { margin: 0; font-family: var(--label); font-size: 11.5px; line-height: 1.6; color: var(--ink-muted); max-width: 360px; }
@media (max-width: 859px) { .j-head { grid-template-columns: 1fr; } }

.j-cap { margin: 0; font-family: var(--label); font-size: 10.5px; line-height: 1.5; color: var(--ink-muted); }
.j-cap--light { color: #D9D0C3; }
.j-cap--moon { color: var(--moon-dim); }

.j-link {
  align-self: flex-start; font-family: var(--label); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.j-tlink { border-bottom: 1px solid var(--sienna); }

/* ----------------------------------------------------------- boutons
   Coins droits, jamais arrondis. 52px de haut (48 mobile). */
.j-btn {
  min-height: 52px; display: grid; place-items: center; padding: 0 24px;
  font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; transition: background .45s, color .45s, opacity .45s;
}
.j-btn:hover { opacity: 1; }
.j-btn--paper { background: var(--cream-light); color: var(--ink); }
.j-btn--paper:hover { background: var(--sienna); color: var(--cream-light); }
.j-btn--line { border: 1px solid var(--cream-light); color: var(--cream-light); }
.j-btn--line:hover { background: rgba(244,238,227,.14); }
.j-btn--gold { background: var(--gold); color: var(--ink); min-height: 54px; }
.j-btn--gold:hover { background: #F3C995; }
.j-btn--night { border: 1px solid var(--night-ink); background: rgba(13,19,34,.4); color: var(--night-ink); min-height: 54px; }
.j-btn--night:hover { background: rgba(239,232,220,.12); }
.j-btn--mail { letter-spacing: .06em; text-transform: none; }

.j-lang { display: inline-flex; align-items: center; gap: 4px; }
.j-lang button {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  letter-spacing: inherit; text-transform: inherit; font-size: inherit; font-family: inherit;
  opacity: .7; border-bottom: 1px solid transparent;
}
.j-lang button[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }

/* ----------------------------------------------------------- 06:00 hero */
.j-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: #2A3346; color: var(--cream-light);
}
.j-hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%; transform-origin: 60% 45%;
  animation: j-breathe 26s ease-in-out infinite alternate;
}
@keyframes j-breathe { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.2%, -1%); } }
/* la barque qui vogue (journee.js, tools/art_bateau.py) : même boîte, même respiration
   que le tableau, pour ne jamais s'en décaler ; l'eau posée à la place de la barque, puis
   la toile où le script peint la pièce du kit et la bande d'eau festonnée, placées dans
   le recadrage réel du tableau (l'image de la pièce ne sert que de source) */
.j-boat {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  transform-origin: 60% 45%; animation: j-breathe 26s ease-in-out infinite alternate;
}
.j-boat img, .j-boat-toile { position: absolute; left: 0; top: 0; max-width: none; height: auto; will-change: transform; }
.j-boat .j-boat-barque { display: none; }
.j-boat:not(.is-placed) img { visibility: hidden; }
.j-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,36,.35) 0%, rgba(20,24,36,0) 30%, rgba(20,24,36,.1) 55%, rgba(22,24,32,.8) 100%); }
.j-dawn { position: absolute; inset: 0; background: var(--midnight); pointer-events: none; animation: j-dawn 2.6s ease-out .15s forwards; }
@keyframes j-dawn { to { opacity: 0; } }
/* z-index 3 : au-dessus de .j-hero-grid (2, plus tardive dans le DOM), qui interceptait sinon le clic
   de la langue et des liens quand le hero dépasse l'écran (moins de ~810 px de haut) */
.j-hero-tag { position: absolute; left: var(--padX); top: 44px; z-index: 3; }
.j-toplinks {
  position: absolute; right: var(--padXr); top: 40px; z-index: 3;
  display: flex; align-items: center; gap: 26px;
  font-family: var(--label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
}
.j-toplinks .j-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0; text-transform: none; }
.j-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.7fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: 150px var(--padXr) 56px var(--padX);
}
.j-hero-text { display: flex; flex-direction: column; gap: 26px; }
.j-hero .j-h1 { text-shadow: 0 2px 30px rgba(10,14,24,.35); }
.j-hero .j-h1 em { color: var(--peach); }
.j-available {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.j-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px var(--sun); flex: none; }
.j-lead { margin: 0; max-width: 600px; font-size: 22px; line-height: 1.45; color: #EDE4D6; text-wrap: pretty; }
.j-lead strong { font-weight: 600; color: #fff; }
.j-hero-cta { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px; max-width: 520px; }
.j-hero-card { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.j-polaroid {
  width: 230px; background: var(--mat); padding: 10px 10px 12px; color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(1.5deg);
  transition: transform .6s var(--ease);
}
.j-polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.j-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.85); }
.j-polaroid-cap { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; }
.j-polaroid-cap span:first-child { font-style: italic; font-size: 16px; }
.j-polaroid-cap span:last-child { font-family: var(--label); font-size: 10px; color: var(--sienna); }
.j-hero-card .j-cap { text-align: right; max-width: 280px; }
.j-crossed {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  padding: 16px var(--padX); background: rgba(20,22,30,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #E6DDCF; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.j-crossed::-webkit-scrollbar { display: none; }
.j-crossed-l { flex: none; font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; text-transform: none; }
/* Chemins croisés : la liste défile doucement en boucle (deux copies bout à bout, la
   seconde cachée aux lecteurs d'écran), s'arrête au survol ; immobile et repliée sur
   plusieurs lignes en « mouvement réduit » */
.j-crossed { overflow: hidden; }
.j-crossed-track { display: flex; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.j-crossed-run { display: flex; flex: none; gap: 22px; padding-right: 22px; animation: j-crossed 70s linear infinite; }
.j-crossed:hover .j-crossed-run { animation-play-state: paused; }
@keyframes j-crossed { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .j-crossed { white-space: normal; }
  .j-crossed-track { -webkit-mask: none; mask: none; }
  .j-crossed-run { flex-wrap: wrap; animation: none; row-gap: 8px; }
  .j-crossed-run + .j-crossed-run { display: none; }
}

@media (max-width: 859px) {
  .j-hero { min-height: 92vh; min-height: 92svh; }
  .j-hero-tag { top: 22px; }
  .j-toplinks { display: none; }
  .j-hero-grid { grid-template-columns: 1fr; padding: 90px 20px 26px; }
  .j-hero-text { gap: 18px; }
  .j-lead { font-size: 18.5px; }
  .j-hero-cta { grid-template-columns: 1fr 1fr; max-width: none; }
  .j-hero-card { align-items: flex-start; }
  .j-polaroid { width: 140px; }
  .j-hero-card .j-cap { text-align: left; }
}

/* ----------------------------------------------------------- cadre (accrochage A) */
.j-frame {
  background: var(--mat); padding: 14px; border: 1px solid var(--frame-gold);
  box-shadow: inset 0 0 0 4px var(--mat), inset 0 0 0 5px rgba(199,167,101,.55), 0 40px 60px -36px rgba(60,40,20,.5);
}
.j-frame--night { padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.j-unveil { overflow: hidden; }
.j-unveil img { display: block; width: 100%; height: auto; }
.j-cartel { display: flex; flex-direction: column; gap: 3px; }
.j-cartel .t { font-style: italic; font-size: 18px; }
.j-cartel .m { font-family: var(--label); font-size: 11px; line-height: 1.5; color: var(--ink-muted); }

/* ----------------------------------------------------------- 08:00 à propos */
.j-about > .j-hour { margin-bottom: 40px; }
.j-about-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.j-about-text { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 56px); }
.j-quote-big { margin: 0; font-weight: 300; font-size: clamp(36px, 4vw, 66px); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.j-quote-big em { color: var(--sienna); }
.j-about-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 44px;
  font-size: 19.5px; line-height: 1.6; color: var(--ink-soft);
}
.j-about-cols p { margin: 0; text-wrap: pretty; }
.j-about-cols strong { font-weight: 600; color: var(--ink); }
.j-about-last { display: flex; flex-direction: column; gap: 22px; }
.j-sign { display: flex; align-items: center; gap: 14px; font-style: italic; font-size: 21px; color: var(--ink); }
.j-seal {
  width: 38px; height: 38px; flex: none; background: var(--sienna); color: var(--cream-light);
  display: grid; place-items: center; padding-top: .08em;
  font-style: normal; font-weight: 600; font-size: 16px; border-radius: 2px; transform: rotate(-3deg);
}
.j-about-fig { margin: 0; position: sticky; top: 60px; display: flex; flex-direction: column; gap: 12px; }
.j-about-fig img { aspect-ratio: 2/3; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 859px) {
  .j-about-grid, .j-about-cols { grid-template-columns: 1fr; }
  .j-quote-big { font-size: 32px; }
  .j-about-cols { font-size: 18px; }
  .j-about-fig { position: static; }
  .j-about-fig img { aspect-ratio: 4/5; }
}

/* ----------------------------------------------------------- 10:00 en ce moment (triptyque) */
.j-now { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.j-oval { perspective: 1200px; display: flex; padding: 10px 0 30px; margin-inline: clamp(14px, 2vw, 28px); }
.j-oval-card {
  flex: 1 1 0; position: relative; min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
  box-shadow: 0 40px 70px -40px rgba(40,50,40,.6);
  transition: transform .9s var(--ease);
}
.j-oval-card--l { transform: rotateY(22deg); transform-origin: 100% 50%; }
.j-oval-card--c { transform: translateZ(-60px); }
.j-oval-card--r { transform: rotateY(-22deg); transform-origin: 0% 50%; }
.j-oval-card:hover { transform: none; }
.j-oval-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-oval-card--l .j-oval-art { object-position: 0% 50%; }
.j-oval-card--r .j-oval-art { object-position: 100% 50%; }
.j-card {
  position: relative; width: 100%; background: rgba(246,241,232,.95);
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px;
}
.j-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.j-card-top .n { font-style: italic; font-size: 28px; color: var(--sienna); line-height: 1; }
.j-card-top .k { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-align: right; }
.j-card h3 { margin: 0; font-weight: 500; font-size: 25px; line-height: 1.1; }
.j-card p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.j-card .tags { font-family: var(--label); font-size: 10.5px; color: var(--ink-muted); }
.j-card h3, .j-card p { overflow-wrap: break-word; hyphens: auto; }
/* Tablette : trois cartes étroites, on resserre la typo pour qu'aucun mot ne déborde. */
@media (min-width: 860px) and (max-width: 1180px) {
  .j-card { padding: 18px 16px 16px; }
  .j-card h3 { font-size: 21px; }
  .j-card p { font-size: 15.5px; }
}
@media (max-width: 859px) {
  .j-oval { perspective: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 10px 20px 30px; }
  .j-oval::-webkit-scrollbar { display: none; }
  .j-oval-card { flex: 0 0 86%; min-height: 460px; scroll-snap-align: center; transform: none !important; }
  .j-oval-card--l .j-oval-art { object-position: 20% 50%; }
  .j-oval-card--r .j-oval-art { object-position: 80% 50%; }
}

/* ----------------------------------------------------------- interludes (accrochage B) */
.j-interlude { position: relative; height: 82vh; min-height: 520px; overflow: hidden; }
.j-px { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; }
.j-px img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-veil { position: absolute; inset: 0; }
.j-veil--left { background: linear-gradient(90deg, rgba(20,22,30,.62), rgba(20,22,30,.1) 60%); }
.j-veil--bottom { background: linear-gradient(0deg, rgba(40,30,20,.66), rgba(40,30,20,0) 55%); }
.j-veil--night { background: linear-gradient(90deg, rgba(14,18,30,.7), rgba(14,18,30,.1) 65%); }
.j-veil--pod { background: linear-gradient(180deg, rgba(28,37,64,.1) 0%, rgba(18,26,46,.35) 55%, rgba(18,26,46,.94) 100%); }
.j-veil--midnight { background: radial-gradient(ellipse at 50% 55%, rgba(13,19,34,.55), rgba(13,19,34,.9) 75%); }
.j-il-text {
  position: absolute; left: var(--padX); bottom: clamp(36px, 6vw, 80px); max-width: 640px;
  display: flex; flex-direction: column; gap: 12px; color: var(--cream-light);
}
.j-il-text--right { left: auto; right: var(--padXr); align-items: flex-end; text-align: right; }
.j-il-hour { font-weight: 300; font-size: clamp(110px, 15vw, 240px); line-height: .8; letter-spacing: -.03em; }
.j-il-line { font-style: italic; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; }
.j-il-text .j-cap { color: #E0D6C8; }
.j-il-text .j-cap--moon { color: var(--moon); }
@media (max-width: 859px) {
  .j-interlude { height: 520px; min-height: 0; }
  .j-il-text { right: 20px; }
  .j-il-hour { font-size: 96px; }
  .j-il-line { font-size: 24px; }
}

/* ----------------------------------------------------------- 12:00 parcours */
.j-gare {
  position: relative; height: 60vh; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.j-gare .j-px { top: -10%; bottom: -10%; }
.j-gare img { object-position: 50% 45%; }
.j-plate {
  position: absolute; left: var(--padX); top: 40px; background: #1B1C1F; color: #F2E6C4;
  padding: 10px 16px; display: flex; align-items: center; gap: 14px;
  font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.j-plate .h { font-size: 15px; letter-spacing: .06em; }
.j-work-body {
  position: relative; margin-top: -60px; padding: 0 var(--padXr) var(--padY) var(--padX);
  display: flex; flex-direction: column; gap: 30px;
}
.j-board { background: #1B1C1F; color: #F2E6C4; padding: 26px 30px 14px; box-shadow: 0 40px 60px -40px rgba(0,0,0,.6); }
.j-board-head, .j-dep-row { display: grid; grid-template-columns: 120px minmax(0,1.2fr) minmax(0,1.3fr) 150px 110px; }
.j-board-head {
  gap: 16px; padding: 0 0 12px; border-bottom: 1px solid rgba(242,230,196,.3);
  font-family: var(--label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #A89D82;
}
.j-dep-row {
  width: 100%; gap: 6px 16px; align-items: baseline; padding: 13px 0; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(242,230,196,.12);
  text-align: left; cursor: pointer; transition: background .3s;
}
.j-dep.is-on .j-dep-row { background: rgba(240,179,94,.1); }
.j-dep-row .c-when { font-family: var(--label); font-size: 13px; letter-spacing: .06em; color: #F0B35E; }
.j-dep-row .c-org { font-family: var(--label); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.j-dep-row .c-role { font-family: var(--serif); font-style: italic; font-size: 19px; color: #E8DDC0; }
.j-dep-row .c-place { font-family: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #C9BD9E; }
.j-dep-row .c-state { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8E8670; }
.j-dep--cur .c-state { color: #F0B35E; }
.j-dep-detail { padding: 6px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.j-dep-detail .d-meta, .j-dep-detail .d-tags { font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #A89D82; }
.j-dep-detail .d-desc { margin: 0; font-size: 18px; line-height: 1.5; color: #EDE4D0; }
.js .j-dep-detail { display: none; }
.js .j-dep.is-open .j-dep-detail { display: flex; }

.j-ticket { display: none; }
.js .j-ticket:not([hidden]) {
  display: grid; grid-template-columns: auto minmax(0,1fr); max-width: 980px;
  background: var(--mat); border: 1px solid rgba(28,27,31,.18); box-shadow: 0 20px 40px -30px rgba(60,40,20,.5);
}
.j-ticket-stub {
  padding: 22px 26px; border-right: 2px dashed rgba(28,27,31,.25); min-width: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.j-ticket-stub .k { font-family: var(--label); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.j-ticket-stub .n { font-style: italic; font-size: 44px; line-height: 1; color: var(--sienna); }
.j-ticket-stub .dur { font-family: var(--label); font-size: 11px; color: var(--ink-muted); }
.j-ticket-body { padding: 22px 28px; display: flex; flex-direction: column; gap: 8px; }
.j-ticket-body .role { font-size: 28px; line-height: 1.1; }
.j-ticket-body .role em { color: var(--sienna); }
.j-ticket-body .desc { margin: 0; font-size: 18.5px; line-height: 1.5; color: var(--ink-soft); }
.j-ticket-body .tags { font-family: var(--label); font-size: 11px; letter-spacing: .06em; color: var(--ink-muted); }
@media (min-width: 860px) {
  .js .j-dep.is-open .j-dep-detail { display: none; }
}
@media (max-width: 859px) {
  .j-gare { height: 280px; }
  .j-plate { top: 16px; }
  .j-board { padding: 16px 16px 6px; }
  .j-board-head { display: none; }
  .j-dep-row { grid-template-columns: 1fr; }
  .j-dep-row .c-org { font-size: 14px; }
  .j-dep-row .c-place, .j-dep-row .c-state { display: none; }
  .js .j-ticket:not([hidden]) { display: none; }
}

/* ----------------------------------------------------------- 15:00 projets (Salon) */
.j-projects {
  --acc: var(--peach);
  color: var(--cream-light);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,220,180,.16), transparent 60%);
  display: flex; flex-direction: column; gap: clamp(36px, 5vw, 60px);
}
.j-projects .j-aside { color: #E5C3A8; }
.j-salon {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr));
  grid-auto-rows: clamp(120px, 11vw, 170px); grid-auto-flow: dense; gap: 14px;
}
.j-canvas {
  position: relative; display: block; background: var(--mat); padding: 10px;
  border: 2px solid var(--frame-gold);
  box-shadow: inset 0 0 0 4px var(--mat), inset 0 0 0 5px rgba(199,167,101,.6), 0 30px 40px -24px rgba(0,0,0,.6);
  transition: opacity .5s;
}
.j-canvas:hover { opacity: 1; }
.j-canvas--1 { grid-column: 1 / span 3; grid-row: 1 / span 4; padding: 18px; }
.j-canvas--2 { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.j-canvas--3 { grid-column: 6 / span 1; grid-row: 1 / span 2; }
.j-canvas--4 { grid-column: 4 / span 1; grid-row: 3 / span 2; }
.j-canvas--5 { grid-column: 5 / span 2; grid-row: 3 / span 2; }
.j-canvas--6 { grid-column: 1 / span 3; grid-row: 5 / span 2; }
.j-canvas--7 { grid-column: 4 / span 3; grid-row: 5 / span 2; }
.j-canvas .j-unveil { position: relative; width: 100%; height: 100%; }
.j-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-canvas-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  background: rgba(246,241,232,.96); color: var(--ink);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.j-canvas:hover .j-canvas-cap, .j-canvas:focus-visible .j-canvas-cap { transform: none; }
.j-canvas-cap .top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--label); font-size: 10.5px; color: var(--ink-muted); }
.j-canvas-cap .top .k { letter-spacing: .14em; text-transform: uppercase; color: var(--sienna); }
.j-canvas-cap .name { font-size: 22px; line-height: 1.05; }
.j-canvas--1 .j-canvas-cap .name { font-size: 34px; }
.j-canvas-cap .desc { font-size: 15.5px; line-height: 1.4; color: var(--ink-soft); }
.j-canvas-cap .art { font-family: var(--label); font-size: 10px; line-height: 1.45; color: var(--ink-muted); }
/* toiles étroites (une colonne, cadres 3 et 4) : le cartel compact du mobile, pour
   qu'il tienne dans son cadre ; entre 860 et 1279 px, toutes les petites toiles s'y
   mettent, et sous 1100 px la toile étroite ne garde que son nom */
@media (min-width: 860px) {
  .j-canvas--3 .j-canvas-cap, .j-canvas--4 .j-canvas-cap { padding: 10px 11px; max-height: 100%; overflow: hidden; overflow-wrap: anywhere; }
  .j-canvas--3 .j-canvas-cap .top, .j-canvas--4 .j-canvas-cap .top { flex-direction: column; gap: 0; }
  .j-canvas--3 .j-canvas-cap .name, .j-canvas--4 .j-canvas-cap .name { font-size: 19px; }
  .j-canvas--3 .j-canvas-cap .desc, .j-canvas--4 .j-canvas-cap .desc {
    font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .j-canvas--3 .j-canvas-cap .art, .j-canvas--4 .j-canvas-cap .art {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
@media (min-width: 860px) and (max-width: 1279px) {
  .j-canvas:not(.j-canvas--1) .j-canvas-cap { padding: 10px 11px; }
  .j-canvas:not(.j-canvas--1) .j-canvas-cap .desc {
    font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .j-canvas:not(.j-canvas--1) .j-canvas-cap .art {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .j-canvas--3 .j-canvas-cap .desc, .j-canvas--4 .j-canvas-cap .desc { -webkit-line-clamp: 2; }
  .j-canvas--3 .j-canvas-cap .art, .j-canvas--4 .j-canvas-cap .art { display: none; }
}
@media (min-width: 860px) and (max-width: 1099px) {
  .j-canvas--3 .j-canvas-cap .desc, .j-canvas--4 .j-canvas-cap .desc { display: none; }
}
@media (hover: hover) and (min-width: 860px) {
  .j-salon:hover .j-canvas:not(:hover) { opacity: .45; }
}
@media (hover: none) { .j-hover-hint { display: none; } }
@media (hover: none), (max-width: 859px) {
  .j-canvas-cap { transform: none; }
}
@media (max-width: 859px) {
  .j-salon { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 120px; gap: 10px; }
  .j-canvas { grid-column: auto; grid-row: span 3; }
  .j-canvas--1 { grid-column: 1 / span 2; grid-row: span 4; padding: 12px; }
  .j-canvas-cap { padding: 10px 11px; }
  .j-canvas-cap .top { flex-direction: column; gap: 0; }
  .j-canvas-cap .name { font-size: 19px; }
  .j-canvas--1 .j-canvas-cap .name { font-size: 28px; }
  .j-canvas:not(.j-canvas--1) .j-canvas-cap .desc {
    font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .j-hover-hint { display: none; }
}

/* ----------------------------------------------------------- 16:00 esquisses : la section des cas POC, générée au build
   (invisible tant qu'aucun cas n'est publié ; aucun nom de section ici, exprès :
   à zéro cas, la sortie ne doit porter aucune trace de la section). */
.j-sketch-room { --acc: var(--peach); color: var(--cream-light); display: flex; flex-direction: column; gap: clamp(30px, 4vw, 48px); }
.j-sketch-room .j-aside { color: #E5C3A8; }
.j-sketch-room .j-aside a { border-bottom: 1px solid currentColor; }


/* ----------------------------------------------------------- lettres (notes, esquisses) */
.j-letters { display: flex; flex-direction: column; gap: 18px; }
.j-letter {
  display: flex; flex-direction: column; gap: 10px; background: var(--letter); color: var(--ink);
  padding: 24px 26px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
  transform: rotate(var(--r, 0deg)); margin-left: var(--ml, 0px);
  transition: transform .6s var(--ease);
}
.j-letter:hover { opacity: 1; transform: rotate(0deg) translateX(8px); }
.j-letters .j-letter:nth-child(1) { --r: -1.6deg; }
.j-letters .j-letter:nth-child(2) { --r: 1.2deg; --ml: 48px; }
.j-letters .j-letter:nth-child(3) { --r: -.6deg; --ml: 16px; }
.j-letter .top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sienna-deep); }
.j-letter .t { font-size: 27px; line-height: 1.12; }
.j-letter .f { font-family: var(--label); font-size: 11px; color: var(--ink-muted); }
.j-letters.j-sketches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.j-letters.j-sketches .j-letter { --ml: 0px; }
@media (max-width: 859px) {
  .j-letters .j-letter { --r: 0deg; --ml: 0px; }
  .j-letter .t { font-size: 24px; }
}

/* ----------------------------------------------------------- 18:00 interventions */
.j-events {
  --acc: var(--sienna-deep);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(30px, 4.4vw, 72px); align-items: start;
}
.j-events-side { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 60px; }
.j-events-side .j-cap { color: #5E4E40; max-width: 420px; }
.j-poster {
  position: relative; transform: rotate(-1.2deg); background: var(--ink); color: var(--cream-light);
  aspect-ratio: 3/4; max-width: 420px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; box-shadow: 0 40px 60px -30px rgba(40,20,10,.7); overflow: hidden;
}
.j-poster > * { position: relative; }
.j-poster .j-poster-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.j-poster .j-poster-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,31,.2), rgba(28,27,31,.7)); }
.j-poster-logos { display: flex; align-items: center; gap: 14px; }
.j-poster-logos img { height: 28px; width: auto; filter: brightness(0) invert(.95); }
.j-poster-logos span { font-size: 22px; }
.j-poster-big { font-weight: 300; font-size: clamp(50px, 5vw, 80px); line-height: .9; }
.j-poster-big em { color: var(--peach); }
.j-poster-foot { display: flex; justify-content: space-between; gap: 10px; font-family: var(--label); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.j-program { display: flex; flex-direction: column; background: #F6EFE3; border: 1px solid rgba(28,27,31,.18); box-shadow: 0 30px 50px -36px rgba(60,40,20,.5); }
.j-program-head { padding: 26px 28px; border-bottom: 3px double var(--ink); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.j-program-head .k { font-family: var(--label); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); }
.j-program-head .t { font-size: 30px; line-height: 1.1; }
.j-program-head .t em { color: var(--sienna-deep); }
.j-program-head p { margin: 0; font-size: 17.5px; line-height: 1.5; color: var(--ink-soft); }
.j-stats { display: flex; justify-content: center; gap: 28px; padding-top: 6px; }
.j-stats > div { display: flex; flex-direction: column; }
.j-stats .n { font-size: 38px; line-height: 1; }
.j-stats .l { font-family: var(--label); font-size: 10.5px; color: var(--ink-muted); }
.j-ev { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 14px; padding: 18px 28px; border-bottom: 1px solid rgba(28,27,31,.14); transition: background .4s; }
.j-ev:last-child { border-bottom: 0; }
.j-ev:hover { background: rgba(180,83,47,.06); }
.j-ev .y { font-style: italic; font-weight: 300; font-size: 40px; line-height: .9; color: var(--sienna-deep); }
.j-ev > div { display: flex; flex-direction: column; gap: 4px; }
.j-ev .t { font-size: 20px; line-height: 1.2; }
.j-ev .s { font-size: 16px; line-height: 1.4; color: var(--ink-soft); }
.j-ev .g { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
/* Mentions (PORT-31) : une coupure de presse posée sous le programme, mêmes rangées .j-ev */
.j-events-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.j-press { background: var(--letter); border: 1px solid rgba(28,27,31,.18); box-shadow: 0 30px 50px -36px rgba(60,40,20,.5); transform: rotate(.5deg); transform-origin: 30% 0; }
.j-press-head { padding: 22px 28px 18px; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; text-align: center; }
.j-press-head .k { font-family: var(--label); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); }
.j-press-head .t { margin: 0; font-weight: 300; font-size: 30px; line-height: 1.1; }
.j-press-head .t em { color: var(--sienna-deep); }
.j-press-head p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); }
.j-ev--m .y.nd { font-size: 26px; padding-top: 6px; }
.j-ev--m > div { gap: 8px; }
.j-ev--m .t { font-weight: 500; }
.j-ev--m .ti { font-style: italic; font-size: 16.5px; line-height: 1.35; color: var(--ink-soft); }
.j-cite { position: relative; margin: 4px 0 0; padding-left: 26px; font-style: italic; font-size: 18.5px; line-height: 1.45; color: var(--ink); }
.j-cite::before { content: "\201C"; position: absolute; left: 0; top: -6px; font-size: 40px; line-height: 1; color: var(--sienna); font-style: normal; }
.j-cite-tr { margin: 0; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--ink-muted); }
.j-cite-tr .lb { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
.j-ev--m .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 2px; }
.j-ev--m .j-link { align-self: auto; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; padding: 0; color: var(--sienna-deep); }
.j-ev--m .j-link span.u { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 859px) {
  .j-events { grid-template-columns: 1fr; }
  .j-events-side { position: static; }
  .j-program-head, .j-ev { padding-left: 18px; padding-right: 18px; }
  .j-ev { grid-template-columns: 56px minmax(0,1fr); }
  .j-events-main { gap: 26px; }
  .j-press { transform: none; }
  .j-press-head { padding-left: 18px; padding-right: 18px; }
  .j-press-head .t { font-size: 26px; }
  .j-cite { font-size: 17.5px; padding-left: 22px; }
  .j-cite-tr { padding-left: 22px; }
  .j-ev--m .foot { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* ----------------------------------------------------------- 21:00 podcast */
.j-podcast { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--night-ink); --acc: var(--gold); }
.j-podcast .j-px { top: -8%; bottom: -8%; }
.j-podcast .j-px img { object-position: 50% 30%; }
.j-pod-grid {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: 120px var(--padXr) 70px var(--padX);
}
.j-pod-text { display: flex; flex-direction: column; gap: 20px; }
.j-pod-p { margin: 0; max-width: 560px; font-size: 19.5px; line-height: 1.55; color: #DCE0E8; }
.j-pod-p strong { font-weight: 600; color: #fff; }
.j-pod-text .j-cap { max-width: 520px; }
.j-pod-player { display: flex; flex-direction: column; gap: 12px; }
.j-pod-frame { background: rgba(239,232,220,.96); padding: 10px; }
.j-pod-frame iframe { display: block; border: 0; }
.j-pod-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--moon); }
@media (max-width: 859px) {
  .j-podcast { min-height: 720px; }
  .j-pod-grid { grid-template-columns: 1fr; padding: 90px 20px 36px; }
  .j-pod-p { font-size: 18px; }
}

/* ----------------------------------------------------------- 22:00 témoignages (table ronde) */
.j-testi { color: var(--night-ink); --acc: var(--gold); display: flex; flex-direction: column; gap: clamp(30px, 4vw, 56px); }
.j-testi .j-aside { color: var(--moon-dim); }
.j-js-only { display: none; }
.js .j-js-only { display: inline; }
.js .j-q-nav.j-js-only { display: flex; }
.j-testi-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.j-table {
  position: relative; aspect-ratio: 1/1; container-type: size;
  /* Tout se mesure depuis le centre, en cqmin : la table (diamètre --d) et l'anneau
     des invités (rayon --R) restent des cercles concentriques, et chaque portrait est
     exactement à la même distance du bord de la table (--gap), où qu'il soit. */
  --d: 62cqmin; --img: 52px; --img-on: 78px; --gap: 24px;
  --R: calc(var(--d) / 2 + var(--gap) + var(--img) / 2);
}
.j-table-art {
  position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); translate: -50% -50%;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(232,183,126,.5); box-shadow: 0 0 80px rgba(232,183,126,.18);
}
.j-table-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block;
  opacity: 0; transition: opacity .9s var(--ease);
}
/* un tableau par invité : celui de la personne qui parle apparaît en fondu */
.j-table-art img.is-on { opacity: .8; }
.j-guest {
  /* la boîte du bouton est le portrait seul : il est centré pile sur l'anneau ;
     le prénom est posé à côté, sans décaler le centre */
  position: absolute; left: calc(50% + var(--R) * cos(var(--a))); top: calc(50% + var(--R) * sin(var(--a)));
  width: var(--img-on); height: var(--img-on); translate: -50% -50%;
  display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer;
}
.j-guest img {
  flex: none; width: var(--img); height: var(--img); border-radius: 50%; object-fit: cover; filter: grayscale(1);
  box-shadow: 0 0 0 0 var(--gold); transition: all .5s var(--ease);
}
.j-guest span {
  position: absolute; left: 50%; top: calc(50% + var(--img) / 2 + 6px); translate: -50% 0;
  font-family: var(--label); font-size: 10px; letter-spacing: .08em; white-space: nowrap; opacity: .6; transition: opacity .4s, top .5s var(--ease), bottom .5s var(--ease);
}
/* moitié haute de la table : le prénom passe au-dessus du portrait, loin du bord */
.j-guest--up span { top: auto; bottom: calc(50% + var(--img) / 2 + 6px); }
.j-guest.is-on img { width: var(--img-on); height: var(--img-on); filter: none; box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(232,183,126,.5); }
.j-guest.is-on span { top: calc(50% + var(--img-on) / 2 + 6px); }
.j-guest--up.is-on span { top: auto; bottom: calc(50% + var(--img-on) / 2 + 6px); }
.j-guest.is-on span, .j-guest:hover span { opacity: 1; }
.j-quotes { display: flex; flex-direction: column; gap: 22px; }
/* Avec JS, les témoignages sont empilés dans la même case de grille : la case prend
   la hauteur du plus long, et le trait, le nom et les flèches restent à la même place
   quel que soit le nombre de lignes. Idem pour les cartels des tableaux. */
.js .j-quotes { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
.js .j-quotes > * { grid-column: 1; }
.js .j-quote-mark { grid-row: 1; }
.js .j-q, .js .j-q-nav { grid-row: 2; }
.js .j-caps { grid-row: 3; }
.js .j-q { display: flex; flex-direction: column; }
.js .j-q blockquote { margin-bottom: 22px; }
.js .j-q figcaption { margin-top: auto; }
.js .j-q, .js .j-caps .j-cap { visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s; }
.js .j-q.is-on, .js .j-caps .j-cap.is-on { visibility: visible; opacity: 1; transition: opacity .6s var(--ease) .15s, visibility 0s; }
.js .j-q-nav { align-self: end; justify-self: end; margin: 0 0 8px; position: relative; z-index: 1; }
.j-caps { display: grid; }
.j-caps .j-cap { grid-area: 1 / 1; margin: 0; }
html:not(.js) .j-caps .j-cap:not(:first-child) { display: none; }
.j-quote-mark { font-size: 100px; line-height: .5; height: 36px; color: var(--gold); }
.j-q { margin: 0; }
.j-q blockquote { margin: 0; font-style: italic; font-weight: 300; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.32; text-wrap: pretty; }
.j-q figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; padding: 16px 110px 0 0; border-top: 1px solid rgba(239,232,220,.25); }
.j-q .nm { font-size: 22px; }
.j-q .rl { font-family: var(--label); font-size: 11px; color: var(--moon-dim); }
.j-q-nav { justify-content: flex-end; gap: 8px; }
.j-round {
  width: 44px; height: 44px; border: 1px solid rgba(239,232,220,.6); border-radius: 50%;
  background: none; display: grid; place-items: center; font-size: 18px; cursor: pointer; transition: background .3s;
}
.j-round:hover { background: rgba(239,232,220,.12); }
.j-quotes .j-cap { color: #8E97AB; }
html:not(.js) .j-q + .j-q { padding-top: 22px; }
@media (max-width: 859px) {
  .j-testi-grid { grid-template-columns: 1fr; }
  .j-table { --d: 56cqmin; --img: 40px; --img-on: 58px; --gap: 18px; }
  .j-q blockquote { font-size: 21px; }
}

/* ----------------------------------------------------------- 23:00 notes */
.j-notes {
  color: var(--night-ink); --acc: var(--gold);
  background-image: radial-gradient(circle at 22% 34%, rgba(240,190,120,.3), rgba(240,190,120,.05) 32%, transparent 55%);
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(30px, 4.4vw, 72px); align-items: start;
}
.j-notes-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 60px; }
.j-notes-fig img { aspect-ratio: 5/6; object-fit: cover; }
.j-alive .j-cut { aspect-ratio: auto !important; }
.j-notes-body { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 859px) {
  .j-notes { grid-template-columns: 1fr; background-image: radial-gradient(circle at 30% 12%, rgba(240,190,120,.3), rgba(240,190,120,.05) 32%, transparent 55%); }
  .j-notes-fig { position: static; order: 2; }
}

/* ----------------------------------------------------------- 23:30 stack (le casier de l'atelier)
   Le tableau montre des artisans et leurs outils : l'arsenal est rangé comme dans
   un casier d'atelier. Des compartiments séparés d'un filet, chacun avec son
   porte-étiquette à deux rivets (le numéro et le titre), sur le fond de la nuit.
   Pas de dorure : le cadre doré a été retiré (demande de Thanaël). */
.j-stack { color: var(--night-ink); --acc: var(--gold); display: flex; flex-direction: column; gap: clamp(30px, 4vw, 56px); }
.j-stack .j-aside { color: var(--moon-dim); }
.j-stack-art { aspect-ratio: 21/9; object-fit: cover; }
/* Les Raboteurs au travail (tools/art_raboteurs.py) : la scène en papier découpé
   recouvre le tableau, recadrée comme lui (object-fit: cover, centré). Pièces
   rigides : chaque groupe pivote sur son articulation (--ox, --oy), les angles
   sont dans raboteurs.css. Sans JavaScript ou en mouvement réduit, le tableau reste
   seul ; hors écran, les gestes sont suspendus (is-live). */
.j-rab { position: relative; container-type: inline-size; --bar: 21 / 9; }
.rb-stage {
  display: none; position: absolute; pointer-events: none;
  --sw: max(100cqw, calc(100cqw * 1.42302 / (var(--bar))));
  width: var(--sw); aspect-ratio: 1867 / 1312;
  left: calc((100cqw - var(--sw)) / 2); top: calc((100cqw / (var(--bar)) - var(--sw) / 1.42302) / 2);
}
/* pièces différées (journee.js) : invisibles tant que toute la scène n'est pas prête */
.js [data-defer]:not(.is-ready) [data-src] { visibility: hidden; }
/* la scène ne remplace le tableau qu'une fois toutes ses pièces décodées (journee.js) :
   jamais de plaque trouée ; ?raboteurs=repos fige la pose neutre (contrôle) */
.js .rb-stage { display: block; opacity: 0; transition: opacity .5s; }
.js .rb-stage.is-ready { opacity: 1; }
.rb-stage.rb-repos .rb-g { animation: none; }
.rb-stage img { position: absolute; height: auto; max-width: none; }
.rb-w { position: absolute; inset: 0; }
.rb-g {
  position: absolute; inset: 0; transform-origin: var(--ox) var(--oy);
  animation-duration: var(--dur); animation-delay: var(--del);
  animation-timing-function: linear; animation-iteration-count: infinite;
}
.rb-stage:not(.is-live) .rb-g { animation-play-state: paused; }
@media (max-width: 859px) { .j-rab { --bar: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .js .rb-stage { display: none; } }
.j-casier { display: flex; flex-direction: column; gap: 12px; }
.j-box {
  /* les filets du casier : l'espace d'un pixel entre les cases laisse voir ce fond */
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: rgba(214,190,150,.24); border: 1px solid rgba(214,190,150,.32);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.8);
}
.j-pan {
  position: relative; background: #151D33; padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.2vw, 30px) clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 18px; transition: background .5s var(--ease);
}
/* le fond de chaque case, un peu plus sombre en bas, comme un tiroir */
.j-pan::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(239,232,220,.035), rgba(0,0,0,.18)); }
.j-pan:hover { background: #1A2440; }
.j-pan-top {
  /* le porte-étiquette */
  position: relative; align-self: flex-start; display: flex; align-items: baseline; gap: 10px;
  padding: 7px 26px 6px; border: 1px solid rgba(214,190,150,.55); background: rgba(239,232,220,.04);
  box-shadow: inset 0 1px 0 rgba(239,232,220,.08), 0 1px 0 rgba(0,0,0,.4);
}
.j-pan-top::before, .j-pan-top::after {
  content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #EDE2CC, #9C8A6C 60%, #4B4131);
}
.j-pan-top::before { left: 9px; }
.j-pan-top::after { right: 9px; }
.j-pan .n { font-style: italic; font-size: 20px; line-height: 1; color: var(--gold); }
.j-pan .t { margin: 0; font-weight: 400; font-size: 21px; line-height: 1.1; color: var(--night-ink); }
.j-pan .i { position: relative; margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.6; color: #C9CEDA; }
.j-pan .i li { display: inline; }
.j-pan .i li:not(:last-child)::after { content: "\00a0· "; color: rgba(232,183,126,.7); }
.j-pan .i--list li { display: block; padding-left: 14px; position: relative; }
.j-pan .i--list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: rgba(232,183,126,.7); }
.j-pan .i--list li:not(:last-child)::after { content: none; }
.j-casier-note { align-self: flex-end; font-family: var(--label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--moon-dim); }
@media (max-width: 1100px) { .j-box { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 859px) {
  .j-stack-art { aspect-ratio: 4/3; }
  .j-pan { padding: 18px 16px 20px; gap: 14px; }
  .j-pan .t { font-size: 19px; }
  .j-pan .i { font-size: 15.5px; }
}
@media (max-width: 560px) { .j-box { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- 00:00 contact */
.j-contact {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; color: var(--night-ink); --acc: var(--gold);
}
.j-contact .j-px { top: -8%; bottom: -8%; }
.j-contact-inner {
  position: relative; width: 100%; padding: 90px var(--padXr) 90px var(--padX);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.j-contact .j-h1 { max-width: 1100px; line-height: .94; }
.j-contact-p { margin: 0; max-width: 600px; font-size: 21px; line-height: 1.5; color: #DCE0E8; }
.j-contact-cta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; width: 100%; max-width: 880px; }
.j-contact-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--moon); }
.j-contact-meta .gold { color: var(--gold); }
.j-contact .j-cap { max-width: 560px; }
.j-back-dawn { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.j-moon-sun { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, var(--peach), var(--sienna)); box-shadow: 0 0 24px var(--sun); }
@media (max-width: 859px) {
  .j-contact { min-height: 760px; }
  .j-contact-inner { padding: 70px 20px; }
  .j-contact-cta { grid-template-columns: 1fr; }
  .j-contact-p { font-size: 19px; }
}

/* ----------------------------------------------------------- crédits */
.j-foot {
  background: var(--midnight); color: var(--moon-dim);
  padding: 40px var(--padXr) 30px var(--padX); display: flex; flex-direction: column; gap: 18px;
  border-top: 1px solid rgba(174,182,200,.2);
}
.j-foot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.j-foot-head .t { font-size: 24px; color: var(--night-ink); }
.j-foot-head .c { font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.j-credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 36px; }
.j-credits li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(174,182,200,.15); }
.j-credits .h { font-family: var(--label); font-size: 11px; color: var(--gold); padding-top: 2px; }
.j-credits .w { font-size: 15.5px; color: #DCE0E8; }
.j-credits small { font-family: var(--label); font-size: 10px; color: #8E97AB; }
/* le plan du site (généré au build, tools/site_footer.py), sous les crédits */
.j-foot .tf-map { padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid rgba(174,182,200,.15); }
.j-foot-end { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--label); font-size: 10.5px; letter-spacing: .08em; }
.j-foot-end .links a { border-bottom: 1px solid rgba(174,182,200,.4); }

/* ----------------------------------------------------------- horloge (desktop) */
.j-clock { display: none; }
.js .j-clock:not([hidden]) {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 10px 14px 10px 16px; transition: color .35s;
}
.j-clock { color: #F4EEE3; text-shadow: 0 1px 8px rgba(10,14,24,.6); }
.js .j-clock.is-light { color: var(--ink); text-shadow: none; }
.j-clock::before { content: ""; position: absolute; right: 5px; top: 10px; bottom: 10px; width: 1px; background: currentColor; opacity: .35; }
.j-sun { position: absolute; right: 0; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); transform: translateY(-50%); box-shadow: 0 0 14px rgba(240,160,96,.9); }
.j-clock a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 26px; }
.j-clock a:hover { opacity: 1; }
/* Le nom de l'heure ne vit plus sur le rail (il chevauchait le contenu) : il
   apparaît au survol ou au focus, sur une étiquette opaque posée à gauche. */
.j-clock .l {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
  padding: 5px 9px; background: rgba(13,19,34,.9); color: var(--night-ink); text-shadow: none;
  font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.j-clock.is-light .l { background: rgba(246,241,232,.95); color: var(--ink); box-shadow: 0 0 0 1px rgba(28,27,31,.12); }
.j-clock a:hover .l, .j-clock a:focus-visible .l { opacity: 1; transform: translate(0, -50%); }
.j-clock .hh { font-family: var(--label); font-size: 11px; letter-spacing: .06em; opacity: .5; transition: opacity .4s; }
/* Le trait garde une largeur fixe et s'allonge par transformation : la colonne des
   heures ne bouge jamais, l'heure courante ne glisse plus vers le contenu. */
.j-clock .tk { display: block; width: 24px; height: 1px; background: currentColor; transform: scaleX(.42); transform-origin: right center; transition: transform .6s var(--ease); }
.j-clock a.is-cur .hh, .j-clock a:hover .hh { opacity: 1; }
.j-clock a.is-cur .tk { transform: none; }
@media (max-width: 859px) { .js .j-clock:not([hidden]) { display: none; } }

/* ----------------------------------------------------------- barre haute, plan des heures, barre contact (mobile) */
.j-bar, .j-cbar { display: none; }
@media (max-width: 859px) {
  /* affichée dès le premier rendu (la classe .js est posée dans le <head>) : sa place
     est réservée tout de suite, la page ne descend plus de 54 px au démarrage */
  .js .j-bar {
    position: sticky; top: 0; z-index: 40; height: 54px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
    background: rgba(245,241,232,.92); color: var(--ink);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(128,120,110,.25); transition: background .8s, color .8s;
  }
  .js .j-cbar.is-shown:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245,241,232,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    display: flex; gap: 10px; border-top: 1px solid rgba(128,120,110,.25); transition: background .8s;
  }
  .js .j-foot { padding-bottom: 96px; }
}
html.is-night .j-bar, html.is-night .j-cbar { background: rgba(18,26,46,.92) !important; color: var(--night-ink) !important; }
.j-bar-brand { display: flex; align-items: center; gap: 10px; }
.j-bar-brand span:last-child { font-size: 19px; }
.j-orb { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 14px var(--sun); transition: background .8s, box-shadow .8s; }
html.is-night .j-orb { background: var(--moon); box-shadow: 0 0 14px var(--moon); }
.j-bar-hour {
  background: none; border: 0; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.j-bar-hour .j-cur-h { font-size: 14px; letter-spacing: .04em; }
.j-cbar-main {
  flex: 1; background: var(--sienna); color: var(--cream-light); min-height: 48px; display: grid; place-items: center;
  font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.j-cbar-hour {
  min-width: 62px; min-height: 48px; border: 1px solid currentColor; background: none; cursor: pointer;
  display: grid; place-items: center; font-family: var(--label); font-size: 13px;
}
.j-menu { display: none; }
.j-menu:not([hidden]) {
  position: fixed; inset: 0; z-index: 60; overflow: auto;
  background: linear-gradient(180deg, #E8D6CB 0%, #F5F1E8 30%, #D8BFA3 52%, #5E2620 64%, #1C2540 78%, #0D1322 100%);
  display: flex; flex-direction: column; padding: 16px 22px 26px; color: var(--ink);
}
.j-menu-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.j-menu-close { background: none; border: 0; cursor: pointer; font-family: var(--serif); font-size: 32px; min-width: 44px; min-height: 44px; text-align: right; }
.j-menu-list { display: flex; flex-direction: column; margin-top: 14px; }
.j-menu-list a { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; min-height: 50px; padding: 8px 0; border-bottom: 1px solid rgba(128,120,110,.25); }
.j-menu-list a.is-night { color: var(--night-ink); }
.j-menu-list .hh { font-family: var(--label); font-size: 13px; }
.j-menu-list .l { font-size: 25px; }
.j-menu-foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--night-ink); font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ----------------------------------------------------------- tableaux vivants
   Esprit « Please Touch the Artwork » : un personnage respire, travaille, et
   répond quand on le touche. Technique du papier découpé : chaque partie qui
   bouge (tête, main gauche, main droite) est une pièce détourée, une image
   pleine toile transparente hors de la pièce, qui tourne seule autour de son
   articulation (cou, poignet). Sous les pièces, un fond repeint (« -fond ») cache
   les parties d'origine : ce qu'une pièce découvre en bougeant, c'est le mur ou
   le col, jamais un double. Au repos, les calques recomposent exactement le
   tableau (sans JavaScript aussi). Les pivots sont en % du cadre et tiennent
   compte du recadrage (object-fit: cover, 5/6). Pièces générées par
   tools/art_cutout.py. Règles : docs/design/charte-une-journee.md, section 9. */
.j-alive { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.j-alive:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.j-alive .j-cut {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.j-alive .j-cut:not(.j-cut--fill) { will-change: transform; }
.j-alive-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(44% 38% at 52% 40%, rgba(255,210,140,.75), transparent 72%);
  opacity: .55;
}
/* Pivots : cou (470,465), poignet droit (500,600), poignet gauche (640,560) en
   pixels de l'œuvre 1000×1147, ramenés au cadre 5/6 recadré. */
.j-alive--lace .j-cut--head { --ox: 46.86%; --oy: 40.54%; }
.j-alive--lace .j-cut--lh { --ox: 50%; --oy: 52.31%; }
.j-alive--lace .j-cut--rh { --ox: 64.65%; --oy: 48.82%; }
@media (prefers-reduced-motion: no-preference) {
  .js .j-alive.is-in .j-cut--head { animation: j-head 7s ease-in-out infinite; }
  .js .j-alive.is-in .j-cut--lh { animation: j-hand-l 2.3s ease-in-out infinite; }
  .js .j-alive.is-in .j-cut--rh { animation: j-hand-r 1.7s ease-in-out -.6s infinite; }
  .js .j-alive.is-in .j-alive-glow { animation: j-lamp 5s ease-in-out infinite; }
  .js .j-alive.is-poked .j-cut--head { animation: j-lookup 2s var(--ease) 1; }
  .js .j-alive.is-poked .j-cut--lh, .js .j-alive.is-poked .j-cut--rh { animation: j-hands-rest 2s var(--ease) 1; }
  /* loin de l'écran, elle s'arrête (is-live, comme les scènes) : hors écran, Chrome
     faisait tourner ces animations sur le fil principal, ~10 % du processeur en continu */
  .js .j-alive:not(.is-live) .j-cut, .js .j-alive:not(.is-live) .j-alive-glow { animation-play-state: paused; }
}
/* La tête suit l'ouvrage ; les deux mains lancent les fuseaux, chacune à son
   rythme (2,3 s et 1,7 s, décalées) : jamais en miroir. */
@keyframes j-head { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(1.4deg); } 62% { transform: rotate(1.2deg); } }
@keyframes j-hand-l { 0%, 100% { transform: none; } 25% { transform: rotate(-4deg) translate(1px, -2px); } 45% { transform: rotate(-3.2deg) translate(1px, -1.5px); } 72% { transform: rotate(1.5deg) translate(-1px, 1px); } }
@keyframes j-hand-r { 0%, 100% { transform: none; } 30% { transform: rotate(3.4deg) translate(-1px, 1px); } 52% { transform: rotate(2.6deg); } 80% { transform: rotate(-2deg) translate(1px, -1.5px); } }
@keyframes j-hands-rest { 0% { transform: none; } 30%, 72% { transform: rotate(-1deg) translateY(-3px); } 100% { transform: none; } }
@keyframes j-lamp { 0%, 100% { opacity: .35; } 28% { opacity: .9; } 36% { opacity: .6; } 62% { opacity: 1; } 80% { opacity: .55; } }
@keyframes j-lookup { 0% { transform: rotate(0deg); } 30% { transform: rotate(-4deg) translate(-2px, -4px); } 72% { transform: rotate(-3.6deg) translate(-2px, -3.5px); } 100% { transform: rotate(0deg); } }

/* ----------------------------------------------------------- scènes vivantes (interludes)
   Des passants découpés dans le tableau traversent la toile en boucle, chacun à
   sa vitesse et à sa profondeur, avec un balancement de pas façon papier
   découpé. Sous eux, un fond repeint (« -fond ») efface leur place d'origine.
   La scène se cale sur le recadrage du tableau (object-fit: cover) grâce aux
   unités de conteneur : .j-px est le conteneur, .j-scene reproduit l'image.
   Au départ, chaque passant est exactement à sa place (délai négatif calculé) :
   aucun saut quand la scène apparaît. Sans JavaScript ou en mouvement réduit,
   la scène n'existe pas, le tableau reste tel quel. Pièces : tools/art_cutout.py.
   Règles : docs/design/charte-une-journee.md, section 9. */
.j-px:has(.j-scene) { container-type: size; }
.j-scene {
  display: none; position: absolute; left: 50%; top: 50%; pointer-events: none;
  width: max(100cqw, calc(100cqh * var(--ar))); aspect-ratio: var(--ar);
  transform: translate(-50%, -50%); container: scene / inline-size;
}
.j-scene--rue { --ar: 1440 / 1092; opacity: 0; transition: opacity 1.2s var(--ease); }
.js .j-scene--rue.is-live { opacity: 1; }
.j-scene img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; }
.j-sc-fill, .j-walk, .j-still { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
/* 11:30 : l'ordre des calques fait l'occlusion (immeuble rouge, réverbère, couple et
   homme de droite par-dessus) ; la rue lointaine s'arrête aux immeubles. */
.j-scene--rue .j-walkers { position: absolute; inset: 0; }
.j-scene--rue .j-walkers--far { clip-path: inset(0 17.71% 0 4.86%); }
/* la place et l'attelage : derrière l'immeuble d'angle de droite (arête à x = 990) */
.j-scene--rue .j-walkers--deep { clip-path: inset(0 31.25% 0 4.86%); }
/* le milieu n'a pas de découpe : l'immeuble rouge (calque au-dessus) cache les entrées et sorties */
.j-breath { transform-origin: 50% 100%; }
.j-breath img { transform-origin: 50% 100%; }
.j-walk > img, .j-fig { transform-origin: 50% 100%; }
/* marcheur articulé : le haut donne la taille, les deux jambes pivotent à la hanche */
.j-fig { display: block; position: relative; }
.j-fig .j-top { position: relative; }
.j-fig .j-leg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: var(--px) var(--py); }
/* Jeune homme à sa fenêtre : l'homme ne bouge pas, la rue vit en bas. Le cadre
   recadre l'œuvre (2/3 puis 4/5, object-position 50% 30%) : la scène reprend ce
   recadrage en % du cadre. Passants cachés par le balcon voisin, son support,
   la boutique de droite et la balustrade ; oiseaux limités à la baie. */
.j-window { position: relative; }
.j-scene--win { left: -1.311%; top: 0; width: 102.623%; height: 100%; aspect-ratio: auto; transform: none; }
@media (max-width: 859px) { .j-scene--win { left: 0; width: 100%; top: -5.08%; height: 116.93%; } }
.j-scene--win .j-walkers { position: absolute; inset: 0; clip-path: polygon(24.33% 31.64%, 39.17% 31.64%, 39% 35.23%, 38.33% 35.46%, 38.5% 42.3%, 21.83% 42.3%, 21.83% 39.22%, 24.33% 39.22%); }
/* les oiseaux sont au plus loin : seulement dans le ciel, ils passent derrière les toits
   (bord des toits relevé sur l'œuvre) ; les pigeons, tout près, traversent la baie */
.j-birds { position: absolute; inset: 0; clip-path: polygon(17% 0, 39.08% 0, 39.08% 3.88%, 37.5% 3.99%, 37.5% 7.07%, 38.75% 7.3%, 39% 8.55%, 37.92% 8.84%, 20.83% 8.55%, 17% 8.55%); }
/* les pigeons passent devant les façades et disparaissent derrière le jeune homme : le
   masque suit le montant de la fenêtre, sa tête et son épaule (repère du tableau) */
.j-pigeons { position: absolute; inset: 0; clip-path: polygon(9.33% 0, 63.8% 0, 63.8% 17.5%, 63.3% 17.5%, 60% 16.4%, 56% 16.6%, 53% 18%, 52.3% 20%, 52.4% 23.5%, 54% 25%, 51.5% 27%, 49.5% 28.6%, 48% 30.5%, 46.7% 34.2%, 45.4% 39.3%, 45.2% 42.47%, 9.33% 42.47%); }
.j-pigeon { position: absolute; left: 0; top: 0; width: var(--bw); aspect-ratio: 64 / 40; background: url("../images/scene/pigeon.svg") 0 0 / 200% 100% no-repeat; transform: translate(-10cqw, 0); }
.j-bird { position: absolute; left: 0; top: var(--by); width: var(--bw); aspect-ratio: 20 / 12; background: url("../images/scene/oiseau.svg") 0 0 / 200% 100% no-repeat; opacity: .82; transform: translateX(-10cqw); }
@media (prefers-reduced-motion: no-preference) {
  .js .j-scene { display: block; }
  .js .j-walk { animation: j-walk var(--dur) linear var(--del) infinite; }
  .js .j-walk > img, .js .j-fig { animation: j-step var(--step) ease-in-out infinite; }
  .js .j-leg--a { animation: j-leg-a var(--step) ease-in-out infinite; }
  .js .j-leg--b { animation: j-leg-b var(--step) ease-in-out infinite; }
  .js .j-walk--gap { animation-name: j-walk-gap; }
  .js .j-breath { animation: j-swell 7s ease-in-out infinite alternate; }
  .js .j-breath img { animation: j-toward var(--step) ease-in-out infinite; }
  .js .j-bird { animation: j-fly var(--dur) linear var(--del) infinite, j-flap var(--flap) linear infinite; }
  .js .j-pigeon { animation: j-pigeon var(--dur) cubic-bezier(.4,.1,.6,.9) var(--del) infinite, j-flap .17s linear infinite; }
  .js .j-scene:not(.is-live) .j-walk, .js .j-scene:not(.is-live) .j-walk img, .js .j-scene:not(.is-live) .j-fig, .js .j-scene:not(.is-live) .j-bird,
  .js .j-scene:not(.is-live) .j-breath, .js .j-scene:not(.is-live) .j-breath img, .js .j-scene:not(.is-live) .j-leg, .js .j-scene:not(.is-live) .j-pigeon { animation-play-state: paused; }
}
@keyframes j-walk { from { transform: translateX(calc(var(--from) * 1cqw)); } to { transform: translateX(calc(var(--to) * 1cqw)); } }
/* trajet puis attente hors champ (un fiacre ne passe pas en file continue) */
@keyframes j-walk-gap {
  0% { transform: translateX(calc(var(--from) * 1cqw)); }
  66%, 100% { transform: translateX(calc(var(--to) * 1cqw)); }
}
@keyframes j-fly {
  0% { transform: translate(calc(var(--x0) * 1cqw), 0); }
  12% { transform: translate(calc((var(--x0) + (var(--x1) - var(--x0)) * .25) * 1cqw), calc(var(--wave) * -1cqw)); }
  24% { transform: translate(calc((var(--x0) + (var(--x1) - var(--x0)) * .5) * 1cqw), 0); }
  36% { transform: translate(calc((var(--x0) + (var(--x1) - var(--x0)) * .75) * 1cqw), calc(var(--wave) * 1cqw)); }
  48%, 100% { transform: translate(calc(var(--x1) * 1cqw), 0); }
}
/* le couple avance vers nous : un pas, et il grandit à peine (100 à 101,5 %) */
@keyframes j-swell { from { transform: scale(1); } to { transform: scale(1.015); } }
@keyframes j-toward { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--bob) * -1)); } }
/* un passage en diagonale de 3,5 s, puis plus rien pendant une vingtaine de secondes */
@keyframes j-pigeon {
  0% { transform: translate(calc(var(--x0) * 1cqw), calc(var(--y0) * 1cqw)) rotate(24deg); }
  16.5%, 100% { transform: translate(calc(var(--x1) * 1cqw), calc(var(--y1) * 1cqw)) rotate(30deg); }
}
@keyframes j-flap { 0%, 50% { background-position: 0 0; } 50.01%, 100% { background-position: 100% 0; } }
/* les jambes se croisent (25 %), échangent leur place (50 %), reviennent : le corps
   est au plus haut quand elles se croisent, comme dans un vrai pas */
@keyframes j-leg-a { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(calc(var(--sw) * -1)); } }
@keyframes j-leg-b { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(var(--sw)); } }
@keyframes j-step {
  0%, 100% { transform: translateY(0) rotate(var(--rk)); }
  25% { transform: translateY(calc(var(--bob) * -1)) rotate(0deg); }
  50% { transform: translateY(0) rotate(calc(var(--rk) * -1)); }
  75% { transform: translateY(calc(var(--bob) * -1)) rotate(0deg); }
}

/* ----------------------------------------------------------- mouvement
   Lent, continu, sans rebond. Rien n'est masqué sans JavaScript. */
.js [data-rv] { transition: opacity 1.1s var(--ease), translate .95s var(--ease), clip-path 1.5s var(--ease), transform .7s var(--ease); }
@media (max-width: 859px) { [data-room] { scroll-margin-top: 54px; } }
.js [data-rv="up"]:not(.is-in) { opacity: 0; translate: 0 36px; }
.js [data-rv="fade"]:not(.is-in) { opacity: 0; }
.js [data-rv="unveil"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.js [data-rv="unveil"] img { transition: scale 2.4s var(--ease); }
.js [data-rv="unveil"]:not(.is-in) img { scale: 1.18; }
/* tableaux vivants (fenêtre de 08:00, Dentellière, Raboteurs) : dévoilement seul, sans le
   recul d'apparition. Chaque pièce découpée grossirait autour de son propre centre et
   se décollerait du tableau : les corps paraissaient étirés avant de se mettre au travail */
.js .j-window[data-rv="unveil"] img, .js .j-alive[data-rv="unveil"] img, .js .j-rab[data-rv="unveil"] img { transition: none; scale: none; }

@media (prefers-reduced-motion: reduce) {
  html.j-smooth { scroll-behavior: auto; }
  .j-hero-art { animation: none; transform: none; }
  .j-boat { display: none; }
  .j-dawn { display: none; }
  .js [data-rv] { transition: none; }
  .js [data-rv]:not(.is-in) { opacity: 1 !important; translate: none !important; clip-path: none !important; }
  .js [data-rv] img { scale: 1 !important; }
  .j-oval-card, .j-letter, .j-pan, .j-polaroid, .j-canvas-cap, .j-guest img { transition: none; }
}

/* ----------------------------------------------------------- fenêtre de réservation (book-modal.js) */
.book-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.book-modal[hidden] { display: none; }
.book-modal.open { pointer-events: auto; }
.book-backdrop { position: absolute; inset: 0; background: rgba(13,19,34,.55); opacity: 0; transition: opacity .3s var(--ease); cursor: pointer; }
.book-modal.open .book-backdrop { opacity: 1; }
.book-panel {
  position: relative; background: var(--mat); width: 100%; max-width: 720px; max-height: 90vh;
  border: 1px solid var(--frame-gold); box-shadow: 0 -24px 60px rgba(0,0,0,.35);
  display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s var(--ease); overflow: hidden;
}
.book-modal.open .book-panel { transform: translateY(0); }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid rgba(28,27,31,.12); flex-shrink: 0; }
.book-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.book-close { width: 36px; height: 36px; border: 1px solid rgba(28,27,31,.2); background: none; border-radius: 50%; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.book-close:hover { background: rgba(28,27,31,.06); }
.book-body { flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.book-iframe { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; }
@media (min-width: 760px) {
  .book-modal { padding: 24px; justify-content: flex-end; }
  .book-panel { max-width: 440px; max-height: 80vh; transform: translateY(calc(100% + 24px)); }
  .book-iframe { min-height: 560px; }
}

/* « Voir tous mes projets » sous le Salon : la page /projets/ accroche toutes les études de cas */
.j-salon-all { color: var(--cream-light); min-height: 44px; display: inline-flex; align-items: flex-end; }

/* Lien sortant : la petite flèche vers le haut à droite. Même règle et même
   dessin que assets/css/styles.css (pages intérieures), qui explique le choix. */
:where(a[href^="http"]:not([href^="https://thanaelfontaine.eu"]))::after {
  /* une espace insécable, pas une boîte : la flèche ne part jamais seule à la ligne */
  content: "\00a0";
  padding-right: .6em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M1.5 8.5 8.5 1.5M3 1.5h5.5V7'/%3E%3C/svg%3E") right center / .58em .58em no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M1.5 8.5 8.5 1.5M3 1.5h5.5V7'/%3E%3C/svg%3E") right center / .58em .58em no-repeat;
}
/* bouton en grille : la flèche se range à côté du texte, pas dessous */
.j-btn[href^="http"] { grid-auto-flow: column; justify-content: center; column-gap: .55em; }
.j-btn[href^="http"]::after { content: ""; width: .58em; height: .58em; padding: 0; }
/* dans une barre de liens en capitales, la flèche est une petite boîte à part :
   en ligne, WebKit peignait toute l'espace insécable au lieu du seul masque */
.j-toplinks a[href^="http"]:not([href^="https://thanaelfontaine.eu"])::after, .j-menu-foot a[href^="http"]:not([href^="https://thanaelfontaine.eu"])::after { content: ""; display: inline-block; width: .58em; height: .58em; padding: 0; margin-left: .4em; }
@media (forced-colors: active) {
  :where(a[href^="http"]:not([href^="https://thanaelfontaine.eu"]))::after { forced-color-adjust: none; background: LinkText; }
}

/* Salon de l'accueil : cartel sous l'image sur téléphone, filet doré. Ces règles vivaient
   dans collection.css, injecté seulement quand une œuvre animée est présente. */
@media (max-width: 859px) {
  .j-salon { grid-auto-rows: auto; grid-auto-flow: row; align-items: start; }
  .j-salon > a.j-canvas { grid-row: auto; grid-column: auto; }
  .j-salon > a.j-canvas:first-child { grid-column: 1 / -1; }
  .j-salon .j-canvas :is(.j-frame-in, .j-unveil) { display: block; height: auto; }
  .j-salon .j-canvas :is(.j-frame-in, .j-unveil) > :is(img, .art-scene) { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; }
  .j-salon .j-canvas .art-scene > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
  .j-salon .j-canvas .j-canvas-cap { position: relative; transform: none; }
}
@media (max-width: 539px) {
  .j-salon { grid-template-columns: minmax(0, 1fr); }
}
.j-salon > a.j-canvas { padding: 3px; border: 1px solid #c7a765; box-shadow: 0 16px 28px -22px rgba(50,26,18,.55); }
@media (max-width: 859px) {
  .j-salon .j-canvas[href*="wildkit"] :is(.j-frame-in, .j-unveil) > .art-scene { aspect-ratio: 4 / 5; }
  .j-salon > a.j-canvas { padding: 2px; }
}
