/* Diego Jarak — « Une pratique, cinq voix » */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-wdth-italic.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #EEEEEA; --ink: #121212; --mute: #55554F; --soft: #3A3A36; --rule: rgba(18,18,18,.25);
  --accent: #2533F5; --accent-light: #8F97FF;
  --sans: "Archivo", system-ui, sans-serif; --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --row: 64px; --wrap: 1360px; --pad: clamp(1.1rem, 3vw, 2rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 8px; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.mute { color: var(--mute); }
.accent { color: var(--accent); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.sitenav { display: flex; align-items: center; gap: 12px 36px; }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav { gap: 0 26px; font-family: var(--mono); font-size: .85rem; text-transform: lowercase; }
.nav a { display: block; padding: 12px 0; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 1px; }
.langs { gap: 2px; font-family: var(--mono); font-size: .8rem; }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 0 16px; min-height: 40px; font-family: var(--mono); font-size: .8rem; cursor: pointer; }

/* ---- type ---- */
.kicker, .h-mono, .note, .r-year, .chip, .voice, .num, dt, .p-crumb, .score-axis, .foot-small { font-family: var(--mono); }
.kicker { margin: 0; font-size: .85rem; color: var(--mute); }
.h-mono { margin: 0; font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.h-big { margin: 0; font-weight: 800; font-stretch: 125%; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.02em; line-height: 1; }
.h-mid { margin: 0; font-weight: 750; font-stretch: 118%; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.note { margin: 0; font-size: .8rem; color: var(--mute); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; }
.lead p { margin: 0 0 .8em; }
.prose p { margin: 0 0 1em; max-width: 68ch; }
.prose a { text-decoration: underline; text-underline-offset: .2em; }
.prose em { font-style: italic; }

/* ---- hero ---- */
.hero { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: 3.5rem; display: flex; flex-direction: column; gap: 2.6rem; }
.hero-title { margin: 0; font-weight: 850; font-stretch: 125%; font-size: clamp(3rem, 9.2vw, 8.5rem); line-height: .88; letter-spacing: -.035em; }
.hero-text { align-items: end; }
.hero-text .mute p { margin: 0 0 .8em; max-width: 32rem; }

/* ---- sections ---- */
.sec { padding-top: 2.6rem; padding-bottom: 4.5rem; }
.sec, .page-head + .sec-tight { border-top: 1px solid var(--ink); }
.sec-tight { padding-top: 1.5rem; padding-bottom: 1rem; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: 2rem; }
.page-head { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.page-head.two { display: grid; }

/* ---- partition ---- */
.score { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; }
.score-labels { display: flex; flex-direction: column; }
.voice { height: var(--row); display: flex; align-items: center; padding: 0 10px 0 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: .85rem; white-space: nowrap; }
.voice:hover, .voice[aria-pressed="true"] { color: var(--accent); }
.voice[aria-pressed="true"] { font-weight: 500; }
.score-field { position: relative; height: calc(var(--row) * 5); }
.staff .line { position: absolute; left: 0; right: 0; top: calc(var(--row) * (var(--i) + .5)); height: 1px; background: var(--ink); opacity: .4; transition: opacity .2s, background .2s; }
.dur { position: absolute; left: var(--x); width: var(--w); top: calc(var(--row) * (var(--i) + .5) - 1.5px); height: 3px; background: var(--ink); opacity: .4; transition: opacity .2s, background .2s; pointer-events: none; }
.dur.hot { background: var(--accent); opacity: 1; }
.mark { position: absolute; left: var(--x); top: calc(var(--row) * (var(--a) + .5)); height: calc(var(--row) * (var(--b) - var(--a))); width: 18px; margin-left: -9px; transition: opacity .2s; }
.mark.chord::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: currentColor; opacity: .85; }
.mark .nd { position: absolute; left: 3px; top: calc(var(--row) * var(--i) - 6px); width: 12px; height: 12px; background: currentColor; }
.mark.chord .nd { border-radius: 50%; }
.mark:hover, .mark.hot { color: var(--accent); z-index: 3; }
.mark:hover .nd, .mark.hot .nd { transform: scale(1.35); }
.score-axis { grid-column: 2; position: relative; height: 26px; margin-top: 10px; font-size: .72rem; color: var(--mute); }
.score-axis span { position: absolute; left: var(--x); transform: translateX(-50%); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .75rem; padding: 6px 10px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
/* filtre actif */
.score[data-filter]:not([data-filter=""]) .mark, .score[data-filter]:not([data-filter=""]) .dur { opacity: .12; }
.score[data-filter="ens"] .mark[data-voices~="ens"], .score[data-filter="rec"] .mark[data-voices~="rec"], .score[data-filter="cur"] .mark[data-voices~="cur"], .score[data-filter="as"] .mark[data-voices~="as"], .score[data-filter="cre"] .mark[data-voices~="cre"] { opacity: 1; }
.score[data-filter="ens"] .dur[data-v="ens"], .score[data-filter="rec"] .dur[data-v="rec"], .score[data-filter="cur"] .dur[data-v="cur"], .score[data-filter="as"] .dur[data-v="as"], .score[data-filter="cre"] .dur[data-v="cre"] { opacity: .9; background: var(--accent); }
.score[data-filter="ens"] .nd[data-v="ens"], .score[data-filter="rec"] .nd[data-v="rec"], .score[data-filter="cur"] .nd[data-v="cur"], .score[data-filter="as"] .nd[data-v="as"], .score[data-filter="cre"] .nd[data-v="cre"] { background: var(--accent); }
.score[data-filter="ens"] .line[data-v="ens"], .score[data-filter="rec"] .line[data-v="rec"], .score[data-filter="cur"] .line[data-v="cur"], .score[data-filter="as"] .line[data-v="as"], .score[data-filter="cre"] .line[data-v="cre"] { background: var(--accent); opacity: 1; }

/* ---- filtres + index ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-size: .8rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.index { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 320px) 104px; gap: 24px; align-items: center; padding: 17px 0; min-height: 44px; }
.row-head { padding: 0 0 10px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: .72rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.row-li { border-bottom: 1px solid var(--rule); transition: opacity .2s; }
.row-li .row:hover, .row-li.hot .row { color: var(--accent); }
.r-year { font-size: .85rem; }
.r-title { font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.r-ctx { font-size: .92rem; color: var(--mute); line-height: 1.35; }
.dots { display: flex; gap: 6px; }
.dot { width: 14px; height: 14px; border: 1.5px solid currentColor; }
.dot.on { background: currentColor; }
.filterable[data-filter]:not([data-filter=""]) .row-li { opacity: .22; }
.filterable[data-filter="ens"] .row-li[data-voices~="ens"], .filterable[data-filter="rec"] .row-li[data-voices~="rec"], .filterable[data-filter="cur"] .row-li[data-voices~="cur"], .filterable[data-filter="as"] .row-li[data-voices~="as"], .filterable[data-filter="cre"] .row-li[data-voices~="cre"] { opacity: 1; }
.filterable[data-filter="ens"] .dot.on[data-v="ens"], .filterable[data-filter="rec"] .dot.on[data-v="rec"], .filterable[data-filter="cur"] .dot.on[data-v="cur"], .filterable[data-filter="as"] .dot.on[data-v="as"], .filterable[data-filter="cre"] .dot.on[data-v="cre"] { background: var(--accent); border-color: var(--accent); }
.empty { color: var(--mute); }

/* ---- recherche ---- */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.lines article { padding: 28px 28px 34px 0; border-bottom: 1px solid var(--ink); }
.lines .num { font-size: .8rem; color: var(--accent); }
.lines h2 { margin: .5rem 0 .6rem; font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.lines p { margin: 0; color: var(--soft); }
.pill-links { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: .85rem; }
.pill-links a { display: inline-block; padding: 12px 0; border-bottom: 1px solid var(--ink); }

/* ---- parcours ---- */
.bio { padding-bottom: 4rem; }
.bio-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.portrait img { width: min(100%, 340px); aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.statement p { font-size: 1.15rem; line-height: 1.5; }
.credits { margin: 1.2rem 0 0; border-top: 1px solid var(--ink); }
.credits div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.credits dt { font-family: var(--sans); font-weight: 600; }
.credits dd { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--mute); text-align: right; }
.credits .solo dd { text-align: left; font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.pubs p { padding-bottom: 1em; border-bottom: 1px solid var(--rule); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--paper); border: 0; font-family: var(--mono); font-size: .85rem; cursor: pointer; }
.btn:hover { background: var(--accent); color: #fff; }

/* ---- projet ---- */
.p-head { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 2.6rem; display: flex; flex-direction: column; gap: 1.8rem; }
.p-crumb { margin: 0; font-size: .85rem; }
.p-voices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: .8rem; }
.p-voices a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--mute); }
.p-voices .on a { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p-title { margin: 0; font-weight: 850; font-stretch: 125%; font-size: clamp(2.6rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.035em; overflow-wrap: anywhere; hyphens: auto; }
.p-sub { margin: 0; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.2; color: var(--accent); max-width: 44rem; }
.p-cover { margin-top: 0; margin-bottom: 0; }
.p-cover img { width: auto; max-width: 100%; max-height: 78vh; }
figcaption { font-family: var(--mono); font-size: .75rem; color: var(--mute); margin-top: 8px; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); padding-top: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--ink); }
.p-facts { margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: .95rem; }
.p-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.p-facts dd { margin: 4px 0 0; }
.p-facts .credits { margin-top: .3rem; border-top: 0; }
.p-facts .credits div { padding: 4px 0; border: 0; display: block; }
.p-facts .credits dt { font-family: var(--mono); font-weight: 400; font-size: .72rem; color: var(--mute); text-transform: none; letter-spacing: 0; }
.p-facts .credits dd { text-align: left; font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.links { list-style: none; margin: 0; padding: 0; }
.links a { display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: .2em; }
.p-body { font-size: 1.08rem; }
.p-body > p:first-child { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; }
.p-audio { margin-top: 2rem; display: flex; flex-direction: column; gap: 12px; }
.p-audio audio { width: 100%; }
.p-videos { display: flex; flex-direction: column; gap: 24px; padding-top: 3rem; }
.p-videos video, .embed { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 3rem; padding-bottom: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #DADAD4; }
.p-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 2.5rem; padding-bottom: 5rem; }
.p-nav a { font-weight: 700; font-size: 1.25rem; padding: 12px 0; max-width: 45%; }
.p-nav a span { display: block; font-family: var(--mono); font-weight: 400; font-size: .75rem; color: var(--mute); }
.pn-next { text-align: right; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(18,18,18,.96); display: grid; place-items: center; padding: 4vh 4vw; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox p { color: #CCC; font-family: var(--mono); font-size: .8rem; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; min-width: 56px; min-height: 56px; cursor: pointer; }
.lb-close { top: 8px; right: 8px; } .lb-prev { left: 8px; top: 50%; } .lb-next { right: 8px; top: 50%; }

/* ---- contact ---- */
.contact { padding-bottom: 5rem; border-top: 1px solid var(--ink); padding-top: 2.6rem; }
.c-mail { font-weight: 800; font-stretch: 118%; font-size: clamp(1.3rem, 2.6vw, 2rem); overflow-wrap: anywhere; }
.c-form { display: flex; flex-direction: column; gap: 16px; }
.c-form label span { display: block; font-family: var(--mono); font-size: .75rem; color: var(--mute); margin-bottom: 6px; }
.c-form input, .c-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--ink); background: #F8F8F5; border-radius: 0; }
.c-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border: 1px solid var(--ink); }
.notice.ok { background: #E6E8FF; } .notice.err { background: #FCE7E3; }
.nf { min-height: 50vh; align-content: start; flex-direction: column; align-items: flex-start; }

/* ---- footer ---- */
.foot { background: var(--ink); color: var(--paper); }
.foot a:hover { color: var(--accent-light); }
.foot-in { padding-top: 5rem; padding-bottom: 2.6rem; display: flex; flex-direction: column; gap: 3rem; }
.foot-mail { font-weight: 850; font-stretch: 125%; font-size: clamp(2rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.03em; overflow-wrap: anywhere; }
.foot-mail span { color: var(--accent-light); font-size: .55em; letter-spacing: -.01em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; font-family: var(--mono); font-size: .85rem; }
.foot-links a { display: inline-block; padding: 10px 0; }
.foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .78rem; color: #B8B8B0; }
.foot-small a { text-decoration: underline; }

/* ---- petits écrans ---- */
@media (max-width: 900px) {
  .row { grid-template-columns: 70px minmax(0, 1fr) 96px; }
  .row .r-ctx { display: none; }
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --row: 46px; }
  .menu-btn { display: inline-block; }
  .top-in { flex-wrap: wrap; }
  .sitenav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .sitenav.open { display: flex; }
  .nav { flex-direction: column; }
  .two, .p-grid { grid-template-columns: minmax(0, 1fr); }
  .lines, .gallery { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 58px minmax(0, 1fr); gap: 6px 14px; }
  .row .r-dots { grid-column: 2; }
  .row-head .r-dots { display: none; }
  .voice { font-size: .72rem; }
  .score-scroll { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; }
  .score { column-gap: 10px; min-width: 640px; }
  .credits div { flex-direction: column; gap: 2px; }
  .credits dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .score, .chips { display: none; } body { background: #fff; } }
