/* Studio 90 — feuille de styles */

/* Police : Helvetica Condensed si elle est installée ou fournie (voir LISEZMOI),
   sinon une police condensée libre hébergée sur le site (aucun appel à Google). */
@font-face { font-family: "S90 Condensed"; src: url("fonts/s90cond-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "S90 Condensed"; src: url("fonts/s90cond-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --papier: #F1EEE8;
  --encre: #000;
  --police: "Helvetica Neue Condensed", "Helvetica Condensed", "HelveticaNeue-Condensed", "Helvetica Neue LT Std", "S90 Condensed", "Arial Narrow", sans-serif;
}

html, body { margin: 0; background: var(--papier); color: var(--encre); }
body { font-family: var(--police); font-size: 16px; line-height: 1.25; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover, a:focus-visible, a[aria-current="page"] { text-decoration: underline; }
img, video { display: block; max-width: 100%; }

/* Barre de défilement : petit trait noir, fond transparent */
* { scrollbar-width: thin; scrollbar-color: #000 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { min-height: 30px; background: linear-gradient(#000, #000) center / 1.5px 30px no-repeat; }

/* Cadre commun */
.frame { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 48px 24px 32px; }
.logo { display: block; height: 108px; flex-shrink: 0; }
.logo img { height: 100%; width: auto; }

.menu { flex-shrink: 0; display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; margin-top: 40px; font-size: 17px; }
.menu a { padding: 12px 4px; }
.menu .bar { display: block; height: 0.7em; width: 2px; stroke: currentColor; stroke-width: 1.2; }

/* Accueil */
.home { background: #111; }
.home-main { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 520px; overflow: hidden; }
.home-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.home-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .16); }
.home-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; height: min(58vh, 90vw); max-height: 560px; }
.home-logo img { height: 100%; width: auto; max-width: none; }

/* Index des projets */
.page-index { overflow: hidden; }
.index-frame { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.index-frame .menu { margin-top: 0; }
.index-scroll { flex: 1 1 auto; min-height: 0; max-width: 100%; margin: 24px 0 104px; overflow: auto; display: flex; flex-direction: column; }
.index-grid { margin-block: auto; display: grid; grid-template-columns: repeat(4, max-content); column-gap: 40px; align-items: start; }
.index-head { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; position: sticky; top: 0; z-index: 1; background: var(--papier); margin-bottom: 4px; }
.index-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; padding: 3px 0; }
.index-row:hover, .index-row:focus-visible { text-decoration: none; }
.index-row:hover span, .index-row:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.index-row .montant { font-variant-numeric: tabular-nums; }
.sort { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left; display: flex; gap: 5px; align-items: baseline; line-height: 1.2; }
.sort:hover, .sort:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sort svg { display: block; height: 0.7em; width: 0.5em; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; }
.court { display: none; }

/* Page projet */
.projet { width: 100%; max-width: 1180px; margin-top: 56px; flex-grow: 1; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; font-size: 15px; line-height: 1.3; }
.side-left { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.side-left h1 { margin: 0; font-size: 15px; font-weight: 700; }
.side-left h1 span { font-weight: 400; }
.facts, .teams { margin: 0; display: flex; flex-direction: column; text-align: left; }
.facts { gap: 2px; }
.facts dt, .facts dd { display: inline; margin: 0; }
.teams { gap: 10px; }
.teams dd { margin: 0; }
dt { font-weight: 700; }
.viewer { flex: 999 1 520px; min-width: 0; height: calc(100vh - 340px); min-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.viewer::-webkit-scrollbar { display: none; }
.viewer figure { margin: 0; flex: 0 0 auto; }
.viewer img, .viewer video { width: 100%; height: auto; }
.side-right { flex: 1 1 160px; max-width: 200px; align-self: flex-end; display: flex; flex-direction: column; gap: 8px; }
.side-right p { margin: 0; }
.counter { font-variant-numeric: tabular-nums; font-weight: 700; }
.links { display: flex; flex-direction: column; margin-top: -6px; }
.links a { padding: 6px 0; }
.arrow { display: inline-block; width: 1.3em; text-align: center; text-decoration: none; }

/* Contact & mentions */
.contact { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; padding: 48px 0; font-size: 17px; line-height: 1.35; }
.contact h1 { margin: 0; font-size: 17px; font-weight: 700; }
.contact p, .contact address { margin: 0; font-style: normal; }
.contact .small { font-size: 14px; }
.legal { max-width: 520px; }

/* Smartphone */
@media (max-width: 640px) {
  .menu { gap: 20px; }
  .index-scroll { margin-bottom: 24px; }
  .index-grid { grid-template-columns: repeat(3, max-content); column-gap: 20px; }
  .index-row { padding: 6px 0; }
  .hide-m { display: none !important; }
  .long { display: none; }
  .court { display: inline; }
  .viewer { height: auto; min-height: 0; overflow: visible; }
  .side { max-width: none; }
  .hint { display: none; }
}
