/* YY Architecture — site. Feuille blanche, gris de la charte, photos en grand.
   Lexend Zetta seulement pour le logo ; Lexend fin pour tout le reste ; Geist Mono pour les données. */
:root {
  --white: #FFFFFF;
  --ink: #333333;
  --text: #5C5959;
  --label: #676767;
  --grey: #969595;
  --line: #E4E3E3;
  --wash: #F6F6F6;
  --f-logo: "Lexend Zetta", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Lexend", "Helvetica Neue", Arial, sans-serif;
  --f-data: "Geist Mono", ui-monospace, Menlo, monospace;
  --hdr: 68px;
  --gut: clamp(16px, 3.2vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 300 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.gut { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--max); margin: 0 auto; }
.data { font-family: var(--f-data); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--label); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.hdr {
  position: sticky; top: 0; z-index: 20; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--white); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, color .3s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.logo { font-family: var(--f-logo); font-size: 13px; letter-spacing: .26em; color: var(--ink); white-space: nowrap; }
.logo b { font-weight: 400; }
.logo span { color: var(--grey); }
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); font-size: 14px; }
.nav a { color: var(--text); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Accueil : en-tête posé sur la photo */
.home .hdr { position: fixed; inset: 0 0 auto; background: transparent; color: #fff; }
.home .hdr .logo, .home .hdr .nav a { color: #fff; }
.home .hdr .logo span { color: rgba(255,255,255,.7); }
.home .hdr .nav a[aria-current="page"] { border-bottom-color: #fff; }

/* Diaporama */
.show { position: relative; height: 100vh; height: 100svh; min-height: 480px; background: #1d1c1c; overflow: hidden; color: #fff; }
.show::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 2; pointer-events: none; background: linear-gradient(rgba(0,0,0,.38), transparent); }
.show::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.42)); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.show-cap {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-block: 0 max(28px, env(safe-area-inset-bottom, 0px));
}
.show-cap a { display: grid; gap: 4px; min-width: 0; }
.show-name { font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; line-height: 1.15; color: #fff; }
.show-meta { font-family: var(--f-data); font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.8); }
.show-ctl { display: flex; align-items: center; gap: 14px; font-family: var(--f-data); font-size: 12px; color: rgba(255,255,255,.85); flex: none; }
.show-ctl button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); color: #fff; transition: background .2s, border-color .2s; }
.show-ctl button:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.show-ctl svg { width: 16px; height: 16px; }
.show-bar { position: absolute; z-index: 3; left: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.85); width: 0; }
.show-bar.run { width: 100%; transition: width var(--dur, 5.5s) linear; }

/* Bas de page */
.foot { border-top: 1px solid var(--line); margin-top: 120px; padding-block: 32px max(32px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--label); }
.foot .data { color: var(--label); }

/* Titres de page */
.ph { padding-block: clamp(40px, 7vw, 96px) 24px; display: grid; gap: 10px; }
.ph h1 { margin: 0; font-weight: 300; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.ph p { margin: 0; max-width: 56ch; }

/* Index des projets */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 8px 20px; border-bottom: 1px solid var(--ink); position: sticky; top: var(--hdr); z-index: 10; background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.filters button { color: var(--label); padding-block: 4px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters button sup { font-family: var(--f-data); font-size: 10px; margin-left: 3px; color: var(--grey); }
.tools .sep { width: 1px; height: 18px; background: var(--line); }
.views { margin-left: auto; display: flex; gap: 4px; }
.views button { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); color: var(--label); }
.views button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

.group-h { display: flex; align-items: baseline; justify-content: space-between; padding-block: 36px 10px; border-bottom: 1px solid var(--line); }
.group-h h2 { margin: 0; font-size: 14px; font-weight: 400; color: var(--ink); }

/* Vue liste */
.rows { list-style: none; margin: 0; padding: 0; }
.row a {
  display: grid; grid-template-columns: 76px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) 20px;
  align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line);
  transition: color .2s, padding .3s var(--ease);
}
.row .yr { font-family: var(--f-data); font-size: 13px; color: var(--label); font-variant-numeric: tabular-nums; }
.row .nm { font-size: 18px; color: var(--ink); line-height: 1.3; }
.row .ty, .row .lc { font-size: 14px; color: var(--label); }
.row .ar { color: var(--grey); transition: transform .3s var(--ease), color .2s; }
.row .th { display: none; }
.row a:hover .ar { transform: translateX(4px); color: var(--ink); }
.row a:hover .nm { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.peek { position: fixed; z-index: 30; left: 0; top: 0; width: 340px; pointer-events: none; opacity: 0; transform: translate3d(0,0,0); transition: opacity .25s; background: var(--wash); }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Vue grille */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; padding-top: 28px; }
.card a { display: grid; gap: 12px; }
.card .im { aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.card a:hover img { transform: scale(1.03); }
.card .cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card .nm { font-size: 16px; color: var(--ink); line-height: 1.3; }
.card .data { flex: none; }
.card .ty { font-size: 13px; color: var(--label); margin-top: -8px; }

.empty { padding-block: 48px; color: var(--label); }

/* Fiche projet : fiche fixe à gauche, photos qui défilent à droite */
.p-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 72px); padding-top: clamp(24px, 3vw, 40px); align-items: start; }
.p-info { position: sticky; top: calc(var(--hdr) + 24px); max-height: calc(100svh - var(--hdr) - 40px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 24px; }
.p-info h1 { margin: 0; font-weight: 300; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; color: var(--ink); text-wrap: balance; }
.p-info .kick { margin: 10px 0 28px; }
.p-desc { margin: 0 0 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--ink); max-width: 40ch; }
.p-data { margin: 0; display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); border-top: 1px solid var(--line); }
.p-data dt, .p-data dd { margin: 0; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 13px; }
.p-data dt { color: var(--label); padding-right: 14px; }
.p-data dd { color: var(--ink); }
.p-prizes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--ink); }
.p-prizes li { padding-left: 22px; position: relative; }
.p-prizes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--ink); }
.p-todo { margin-top: 16px; font-size: 13px; color: var(--label); border-left: 1px solid var(--grey); padding-left: 12px; }
.p-photos { display: grid; gap: clamp(16px, 2vw, 32px); }
.p-photos figure { margin: 0; background: var(--wash); }
.p-photos figure.portrait { background: none; }
.p-photos figure.portrait img { width: auto; max-width: 100%; max-height: calc(100svh - var(--hdr) - 48px); margin: 0 auto; }
.p-photos img { width: 100%; height: auto; }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--ink); }
.p-nav a { display: grid; gap: 4px; padding-block: 16px; min-width: 0; }
.p-nav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 16px; }
.p-nav .nm { font-size: 16px; color: var(--ink); }
.p-nav a:hover .nm { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Bureau */
.office { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); padding-top: 24px; }
.office .lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink); margin: 0; max-width: 34ch; }
.people { display: grid; gap: 56px; }
.person h2 { margin: 0; font-size: 22px; font-weight: 300; color: var(--ink); }
.person .role { margin: 4px 0 18px; }
.cv { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); border-top: 1px solid var(--line); }
.cv dt, .cv dd { margin: 0; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cv dt { font-family: var(--f-data); font-size: 12px; color: var(--label); padding-top: 12px; }
.cv dd { color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
.contact > div { display: grid; gap: 6px; align-content: start; padding-top: 20px; font-size: 16px; color: var(--ink); }
.contact h2 { margin: 0 0 6px; font-size: 13px; font-weight: 400; color: var(--label); }
.contact a { border-bottom: 1px solid var(--line); justify-self: start; transition: border-color .2s; }
.contact a:hover { border-bottom-color: var(--ink); }

/* Bouton de comparaison A / B (provisoire) */
.ab { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; background: var(--white); border: 1px solid var(--ink); font-family: var(--f-data); font-size: 12px; }
.ab a { padding: 7px 12px; color: var(--ink); }
.ab a[aria-current="true"] { background: var(--ink); color: var(--white); }

/* B : diaporama cadré */
.show.framed { height: auto; min-height: 0; background: none; color: var(--text); overflow: visible; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 4vw, 64px); padding-block: clamp(24px, 4vw, 56px) 0; }
.show.framed::before, .show.framed::after { display: none; }
.framed .intro { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.intro-lead { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; color: var(--ink); max-width: 22ch; text-wrap: balance; }
.framed .show-cap { position: static; display: grid; gap: 18px; padding: 0; border-top: 1px solid var(--ink); padding-top: 16px; }
.framed .show-name { color: var(--ink); font-size: clamp(20px, 1.8vw, 26px); }
.framed .show-meta { color: var(--label); }
.framed .show-ctl { color: var(--label); }
.framed .show-ctl button { border-color: var(--line); color: var(--ink); }
.framed .show-ctl button:hover { background: var(--wash); border-color: var(--ink); }
.framed .frame { position: relative; aspect-ratio: 3 / 2; max-height: 74svh; width: 100%; overflow: hidden; background: var(--wash); }
.framed .show-bar { background: var(--white); height: 2px; }

/* B : accueil, les noms pilotent la photo */
.names { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); padding-block: clamp(24px, 3vw, 40px); min-height: calc(100svh - var(--hdr)); align-items: stretch; }
.names-list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.names-kick { margin: 0 0 8px; }
.names ol { list-style: none; margin: 0; padding: 0; display: grid; }
.names ol a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 3px; color: var(--grey); transition: color .25s; }
.names ol .nm { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.2; font-weight: 300; }
.names ol .data { opacity: 0; transition: opacity .25s; white-space: nowrap; }
.names ol a.on, .names ol a:hover { color: var(--ink); }
.names ol a.on .data { opacity: 1; }
.names .more { align-self: flex-start; margin-top: auto; }
.names-im { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-width: 0; }
.pics { position: relative; background: var(--wash); min-height: 320px; overflow: hidden; }
.pic { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.pic.on { opacity: 1; }
.pic img { width: 100%; height: 100%; object-fit: cover; }

/* C : accueil, la frise (ligne de cote) */
.fr { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; height: calc(100svh - var(--hdr)); min-height: 560px; padding-block: 16px 20px; }
.stage { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.stage .pics { min-height: 0; }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.stage-name { font-size: clamp(22px, 2.2vw, 32px); color: var(--ink); line-height: 1.15; }
.stage-name:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.frise { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
.frise ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; min-width: max-content; }
.yc { display: flex; flex-direction: column; align-items: stretch; flex: none; }
.yc .th { display: flex; flex-direction: column-reverse; gap: 6px; padding: 0 5px 10px; }
.yc .th a { display: block; width: 72px; }
.yc .th img { width: 72px; height: 54px; object-fit: cover; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.yc .th a:hover img, .yc .th a.on img { filter: none; opacity: 1; }
.yc .th a.on { outline: 1px solid var(--ink); outline-offset: 2px; }
.yc .tk { position: relative; border-top: 1px solid var(--ink); padding-top: 9px; text-align: center; font-family: var(--f-data); font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.yc .tk::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 9px; background: var(--ink); }
.yc.empty { width: 38px; }
.yc.empty .tk { color: var(--grey); font-size: 10px; }
.yc.wide { margin-left: 24px; }
.yc.wide .tk { border-top-style: dashed; }

/* C : le tableau des projets */
.mx { border-top: 1px solid var(--ink); }
.mx-h, .mx-r { display: grid; grid-template-columns: 76px repeat(4, minmax(0, 1fr)); gap: 0 clamp(14px, 1.8vw, 28px); }
.mx-h { position: sticky; top: var(--hdr); z-index: 5; background: var(--white); padding-block: 12px; border-bottom: 1px solid var(--ink); font-size: 14px; color: var(--ink); }
.mx-h sup { font-size: 10px; color: var(--grey); }
.mx-r { padding-block: 18px; border-bottom: 1px solid var(--line); }
.mx-y { padding-top: 2px; color: var(--ink); }
.mx-c { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-content: start; }
.mx-p { display: grid; gap: 6px; align-content: start; }
.mx-p .im { aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.mx-p img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mx-p:hover img { transform: scale(1.04); }
.mx-p .nm { font-size: 14px; color: var(--ink); line-height: 1.3; }
.mx-p:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mx-p .ty { display: none; font-size: 12px; color: var(--label); }

/* C : planche contact dans la fiche */
.sheet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.sheet a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--wash); }
.sheet img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.sheet a:hover img { opacity: 1; }
.p-photos figure { scroll-margin-top: calc(var(--hdr) + 24px); }
html { scroll-behavior: smooth; }

/* B : mosaïque */
.feat { margin-top: clamp(64px, 9vw, 128px); }
.more { font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.more:hover { border-bottom-color: var(--ink); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 32px); padding-top: 32px; }
.tile[data-s="w"] { grid-column: 1 / -1; }
.tile[data-s="l"] { grid-column: span 7; }
.tile[data-s="s"] { grid-column: span 5; }
.tile a { display: grid; gap: 12px; }
.tile .im { overflow: hidden; background: var(--wash); }
.tile[data-s="w"] .im { height: clamp(280px, 40vw, 640px); }
.tile[data-s="l"] .im, .tile[data-s="s"] .im { height: clamp(260px, 34vw, 560px); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile a:hover img { transform: scale(1.025); }
.tile .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tile .nm { font-size: clamp(20px, 1.9vw, 28px); color: var(--ink); line-height: 1.2; }
.tile[data-s="w"] .nm { font-size: clamp(24px, 2.6vw, 36px); }
.tile .ty { font-size: 14px; color: var(--label); margin-top: -6px; }
.tile a:hover .nm { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

@media (max-width: 900px) {
  .fr { height: auto; min-height: 0; }
  .stage .pics { aspect-ratio: 4 / 3; }
  .mx-h { display: none; }
  .mx-r { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .mx-y { grid-column: 1 / -1; }
  .mx-c { display: contents; }
  .mx-p .ty { display: block; }
  .names { grid-template-columns: 1fr; min-height: 0; }
  .names-im { order: -1; }
  .pics { aspect-ratio: 4 / 3; min-height: 0; }
  .names ol .data { opacity: 1; }
  .names ol a { color: var(--ink); }
  .names ol a.on .nm { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  .show.framed { grid-template-columns: 1fr; }
  .framed .frame { order: -1; }
  .intro-lead { max-width: none; }
  .tile[data-s] { grid-column: 1 / -1; }
  .tile[data-s] .im { height: auto; aspect-ratio: 4 / 3; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row a { grid-template-columns: 56px 64px minmax(0, 1fr) 16px; gap: 14px; padding-block: 12px; }
  .row .th { display: block; width: 56px; height: 42px; object-fit: cover; background: var(--wash); }
  .row .ty, .row .lc { display: none; }
  .row .nm { font-size: 16px; }
  .row .sub { display: block; font-size: 12px; color: var(--label); margin-top: 2px; }
  .office { grid-template-columns: 1fr; }
  .p-split { grid-template-columns: 1fr; }
  .p-info { position: static; max-height: none; overflow: visible; }
  .contact { grid-template-columns: 1fr; gap: 8px; }
}
@media (min-width: 901px) { .row .sub { display: none; } }
@media (max-width: 560px) {
  :root { --hdr: 60px; }
  .logo { font-size: 11px; letter-spacing: .2em; }
  .logo span { display: none; }
  .nav { gap: 16px; font-size: 13px; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .tools { gap: 10px 16px; }
  .tools .sep { display: none; }
  .views { margin-left: 0; }
  .show-ctl .count { display: none; }
  .p-data { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
