/* ==========================================================================
   Romain Constant — feuille de style unique
   Sommaire : 1. Réglages  2. Base  3. Cases (chips)  4. En-tête  5. Filtres
              6. Grille  7. Page projet  8. Page About  9. Contact
              10. Pied de page  11. Mobile

   Polices :
   - Syne (400 / 500)      : titres de projets & identité (h1, h2)
   - Plus Jakarta Sans (300 / 400) : texte courant & biographies (test, remplace DM Sans)
   - DM Mono (400)         : filtres, tags & repères techniques (test, remplace Space Mono)
   ========================================================================== */

/* 1. Réglages ------------------------------------------------------------ */
:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --fg: #e6e6e3;
  --text: #c4c4c0;                    /* texte courant, un peu plus doux */
  --muted: #7c7c78;
  --line: #232323;
  --accent: #f2b8cf;                  /* rose très léger, uniquement au survol */
  --accent-line: rgba(242, 184, 207, .6);
  --chip-line: rgba(255, 255, 255, .2);
  --gap: 6px;                         /* espace entre les vignettes */
  --pad: clamp(14px, 2vw, 28px);      /* marges latérales */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Syne", "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --fs: 16px;
  --fs-small: 13px;
  --fs-mono: 11.5px;
  --header-h: 64px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 60px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; font-weight: 300; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { transition: color .25s; }
.link:hover { color: var(--accent); }

/* 3. Cases (chips) : navigation, filtres, réseaux, boutons ----------------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--chip-line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .78);
  transition: color .25s, border-color .25s, background-color .25s;
}
.chip:hover { color: var(--accent); border-color: var(--accent-line); background: rgba(242, 184, 207, .05); }
.chip[aria-current="page"] { color: var(--fg); border-color: rgba(255, 255, 255, .55); }
.chip.is-active { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.chip.is-active:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.icon-list { display: flex; gap: 6px; }
.icon-box {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--chip-line);
  border-radius: 3px;
  color: rgba(255, 255, 255, .72);
  transition: color .25s, border-color .25s, background-color .25s;
}
.icon-box svg { width: 15px; height: 15px; fill: currentColor; }
.icon-box:hover { color: var(--accent); border-color: var(--accent-line); background: rgba(242, 184, 207, .05); }

/* 4. En-tête ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px var(--pad);
  /* Légère transparence : l'image passe derrière, floutée, le texte reste lisible */
  background: rgba(10, 10, 10, .68);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: transform .45s var(--ease);
}
/* Pages projet et About : le bandeau flotte au-dessus de la grande image au lieu de la repousser */
.is-project .site-header,
.is-about .site-header { position: fixed; left: 0; right: 0; top: 0; }
/* Pages projet : le bandeau glisse vers le haut quand on descend */
.site-header.is-hidden { transform: translateY(-100%); }
.brand { line-height: 1.25; }
.brand strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15em; }
.brand span { display: block; color: var(--muted); font-weight: 300; }
.brand .hide-md { display: inline; }
.site-nav { justify-self: center; }
.site-nav .chip { font-family: var(--font); font-size: 14px; letter-spacing: 0; }
.site-social { justify-self: end; }

/* 5. Barre de filtres ---------------------------------------------------- */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px var(--pad);
}
.view-toggle { justify-self: end; display: flex; gap: 10px; }
.view-toggle button { display: grid; place-items: center; width: 22px; height: 22px; opacity: .45; transition: opacity .2s, color .2s; }
.view-toggle button:hover { opacity: 1; color: var(--accent); }
.view-toggle button.is-active { opacity: 1; }
.view-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* 5b. Écran d'accueil (vidéo en filigrane) ------------------------------- */
html { scroll-behavior: smooth; }
.intro {
  position: relative;
  display: grid; place-items: center;
  height: 100svh;
  min-height: 460px;
  overflow: hidden;
  text-align: center;
}
/* Vidéo nette au centre ; la vignette (halo) assombrit progressivement vers les bords.
   Elle reste invisible jusqu'à ce que site.js l'ait placée à un moment au hasard. */
.intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}
.intro-video.is-ready { opacity: 1; }
.intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* Filigrane simple et uniforme (réglable avec --intro-veil),
     + dégradé uniquement en haut : noir derrière le nom et les réseaux, puis fondu profond vers l'image */
  background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg) 7%, rgba(10,10,10,.75) 16%, rgba(10,10,10,.3) 28%, rgba(10,10,10,0) 40%),
    rgba(10, 10, 10, var(--intro-veil, .55));
}
.intro-content { position: relative; z-index: 1; padding: 0 var(--pad); }
.intro-sub { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3.4vw, 46px); line-height: 1.12; color: #fff; text-shadow: 0 2px 28px rgba(0,0,0,.55); }
.intro-sub span { display: block; animation: reveal 1.6s var(--ease) both; }
.intro-sub span:nth-child(1) { animation-delay: .3s; }
.intro-sub span:nth-child(2) { animation-delay: .6s; }
.intro-sub span:nth-child(3) { animation-delay: .9s; }
.intro-logo { display: inline-block; margin-top: 10px; animation: reveal 1.5s var(--ease) 1.2s both; }
.intro-logo img { width: clamp(140px, 14vw, 190px); opacity: .85; transition: opacity .25s; }
.intro-logo:hover img { opacity: 1; }
.intro-scroll { position: absolute; z-index: 1; bottom: 28px; left: 50%; transform: translateX(-50%); animation: fade 1s ease 2s both; }
.intro-scroll { width: 36px; height: 36px; padding: 0; font-size: 15px; }
.intro-scroll span { display: inline-block; animation: nudge 2s ease-in-out 3s infinite; }

/* Accueil : bandeau transparent au départ, qui apparaît en fondu flou quand on descend.
   --p va de 0 (haut de page) à 1 (bandeau complet) ; il est réglé par site.js. */
.has-intro .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: rgba(10, 10, 10, calc(.68 * var(--p, 0)));
  backdrop-filter: blur(calc(16px * var(--p, 0)));
  -webkit-backdrop-filter: blur(calc(16px * var(--p, 0)));
  border-bottom-color: rgba(35, 35, 35, var(--p, 0));
}
.has-intro .brand strong { opacity: calc(.55 + .45 * var(--p, 0)); }
.has-intro .brand > span,
.has-intro .site-nav {
  opacity: var(--p, 0);
  filter: blur(calc((1 - var(--p, 0)) * 8px));
  transform: translateY(calc((1 - var(--p, 0)) * -4px));
}
.has-intro:not(.header-on) .site-nav { pointer-events: none; }
@keyframes reveal { from { opacity: 0; filter: blur(14px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }

/* 6. Grille -------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
}
.grid.is-small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile[hidden] { display: none; }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 920 / 760;
  overflow: hidden;
  background: var(--bg-raised);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
.tile-info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s;
}
.tile-info strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.15; }
.tile-info span { font-family: var(--font-mono); font-size: var(--fs-mono); color: rgba(255, 255, 255, .7); margin-top: 6px; }
.tile-info .ext { font-family: var(--font); font-size: var(--fs-small); margin-left: .2em; }
.tile:hover img, .tile:focus-visible img { filter: blur(14px) brightness(.4); transform: scale(1.06); }
.tile:hover .tile-info, .tile:focus-visible .tile-info { opacity: 1; transform: none; }
.grid.is-small .tile-info span { display: none; }
.grid.is-small .tile-info strong { font-size: var(--fs-small); }

/* Sur écran tactile : pas de survol, le titre est toujours lisible sous l'image */
@media (hover: none) {
  .tile-info { opacity: 1; transform: none; justify-content: flex-end; align-items: flex-start; text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 60%); }
  .tile:hover img { filter: none; transform: none; }
}

/* 7. Page projet --------------------------------------------------------- */
.project-hero {
  position: relative;
  height: min(72vh, 56.25vw);
  min-height: 320px;
  overflow: hidden;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,.15) 100%);
}
.project-head {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 0 var(--pad) clamp(20px, 4vw, 48px);
}
.back { display: inline-block; margin-bottom: 14px; font-family: var(--font-mono); font-size: var(--fs-mono); color: rgba(255,255,255,.7); transition: color .25s; }
.back:hover { color: var(--accent); }
.project-head h1 { font-size: clamp(30px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; }
/* Titre remplacé par un logo (ex. PARFUM) : même hauteur visuelle que le titre texte */
.project-head .title-logo { display: block; height: clamp(36px, 6.2vw, 82px); width: auto; max-width: 100%; }
.project-head .subtitle { margin-top: 10px; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.6vw, 20px); }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px) var(--pad);
}
.project-meta { font-size: var(--fs-small); }
.project-meta dl { margin: 0; }
.project-meta dt { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.project-meta dd { margin: 2px 0 14px; }
.project-meta .logo { max-width: 180px; margin-bottom: 28px; }
.project-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.project-links .chip::after { content: " ↗"; white-space: pre; }
.project-links .chip.dl::after { content: " ↓"; }

.project-text { max-width: 720px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--text); }
.project-text .lead { font-weight: 400; color: var(--fg); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; }
.quote { margin: 0 0 1.4em; }
.quote blockquote { margin: 0 0 8px !important; }
.quote figcaption { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.inline-link { color: var(--fg); border-bottom: 1px solid rgba(255, 255, 255, .25); transition: color .25s, border-color .25s; }
.inline-link:hover { color: var(--accent); border-color: var(--accent-line); }
/* Bande des devices Max for Live (GIF, même format, effet 3D au survol) */
.devices { margin: clamp(24px, 3vw, 36px) 0; }
.device-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; perspective: 800px; }
.device-card { display: block; transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
.device-gif {
  display: block; aspect-ratio: 8 / 7; overflow: hidden;   /* format proche des GIF d'origine (≈ 1,1) */
  border: 1px solid var(--chip-line); border-radius: 3px; background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: border-color .25s, box-shadow .5s var(--ease);
}
.device-gif img { width: 100%; height: 100%; object-fit: cover; }
.device-name { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); transition: color .25s; }
.device-card:hover .device-gif { border-color: var(--accent-line); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.device-card:hover .device-name { color: var(--accent); }
.project-text .label { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); margin-bottom: 10px; }
/* Citation de presse mise en avant */
.press { margin: clamp(32px, 4vw, 48px) 0 0; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .25); }
.press blockquote { margin: 0 0 14px !important; font-family: var(--font-display); font-style: normal !important; font-weight: 400 !important; font-size: clamp(17px, 1.5vw, 21px) !important; line-height: 1.55 !important; color: var(--fg); }
.press.italic blockquote { font-style: italic !important; }
.project-text .context { font-size: .9em; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 1.4em; }
.press figcaption { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.press figcaption a { color: rgba(255, 255, 255, .75); transition: color .25s; }
.press figcaption a:hover { color: var(--accent); }
.project-text blockquote { margin: 0 0 1.2em; font-weight: 300; color: var(--fg); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; font-style: italic; }

.media { display: grid; gap: var(--gap); padding: 0 var(--gap); }
.media + .media { margin-top: var(--gap); }
.media.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Deux vidéos portrait (9:16) côte à côte, centrées */
.media.duo { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.embed.portrait { aspect-ratio: 9 / 16; }
/* Vidéo verticale sans habillage YouTube : image + bouton, puis lecteur rogné (titre et logo cachés) */
.yt-facade { overflow: hidden; background: #000; }
.yt-start { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; }
.yt-start img, .yt-play { transition: opacity .4s ease; }
.yt-facade.is-playing .yt-start img,
.yt-facade.is-playing .yt-play { opacity: 0; }
.yt-start img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: filter .5s var(--ease), transform .9s var(--ease); }
.yt-start:hover img { filter: brightness(1); transform: scale(1.03); }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55); background: rgba(10,10,10,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .25s, background-color .25s;
}
.yt-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; transition: fill .25s; }
.yt-start:hover .yt-play { border-color: var(--accent-line); background: rgba(242,184,207,.12); }
.yt-start:hover .yt-play svg { fill: var(--accent); }
/* Le lecteur est plus haut que le cadre : la vidéo 9:16 remplit le cadre et les bandes du haut
   (titre, logo) et du bas (barre YouTube) sortent du cadre. */
.yt-facade iframe { top: -70px; height: calc(100% + 140px); bottom: auto; }
/* Playlist : lecteurs Spotify compacts empilés */
.playlist { max-width: calc(760px + var(--gap)); width: 100%; justify-self: center; display: grid; gap: var(--gap); }
.embed.bandcamp-list { aspect-ratio: auto; height: 250px; background: none; }
.playlist-title { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); margin: 18px 0 4px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--bg-raised); }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.audio { aspect-ratio: auto; height: 352px; background: none; }
.embed.audio.short { height: 152px; }
.embed.soundcloud { aspect-ratio: auto; height: 300px; }
.embed.insta { aspect-ratio: auto; height: 620px; max-width: 420px; width: 100%; justify-self: center; background: none; }
/* Instagram recadré : on masque l'en-tête et le pied blancs de l'intégration */
.embed.insta-crop { --ig-top: 54px; --ig-bottom: 120px; aspect-ratio: 4 / 5; width: 100%; max-width: 440px; justify-self: center; overflow: hidden; background: #000; }
.embed.insta-crop iframe { top: calc(-1 * var(--ig-top)); height: calc(100% + var(--ig-top) + var(--ig-bottom)); bottom: auto; }
.media .insta-intro { justify-self: center; width: 100%; max-width: 440px; margin-bottom: var(--gap); }
.media .insta-intro .embed { max-width: none; }
.media .insta-intro figcaption { text-align: center; padding-left: 0; padding-right: 0; }
.embed.bandcamp { aspect-ratio: auto; height: 470px; max-width: 350px; justify-self: center; background: none; }
.media figure { margin: 0; }
.media figcaption { padding: 8px var(--pad) 0; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.media .still img { width: 100%; }
.media .doc { max-width: 900px; justify-self: center; }

.project-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.project-nav a { padding: 22px var(--pad); transition: background .2s, color .25s; font-family: var(--font-display); font-size: 1.15em; }
.project-nav a:hover { background: var(--bg-raised); color: var(--accent); }
.project-nav span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-mono); margin-bottom: 4px; }
.project-nav .next { text-align: right; border-left: 1px solid var(--line); }

/* 8. Page About ---------------------------------------------------------- */
/* Photo de scène en grand, qui se fond dans le noir */
.about-hero { position: relative; height: min(60vh, 50vw); min-height: 280px; overflow: hidden; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(10,10,10,0) 60%); }

/* Bloc titre compact : nom, métiers, logo */
.about-title { position: relative; z-index: 1; margin: calc(-1 * clamp(40px, 6vw, 90px)) 0 clamp(48px, 7vw, 96px); }
.about-title h1 { font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -.01em; }
.about-sub { margin: 8px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.3; color: rgba(255, 255, 255, .78); }
.about-title .ableton { display: block; width: 180px; margin-top: 16px; opacity: .9; transition: opacity .25s; }
.about-title a:hover .ableton { opacity: 1; }

/* Biographie */
.bio-lead { max-width: 900px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--fg) !important; }
/* Trait sous la biographie, puis colonnes séparées par un filet vertical très léger */
.bio-cols { margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.bio-cols > div + div,
.collab > div + div,
.about-duo > div + div { border-left: 1px solid rgba(255, 255, 255, .06); padding-left: clamp(20px, 3vw, 48px); }

/* Réalisateur artistique (gauche) et LIVE SET (droite) */
.about-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }

.about { padding: 0 var(--pad) clamp(24px, 4vw, 56px); }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.about h2 { font-size: 1.25em; margin-bottom: 12px; }
.about h3 { font-size: var(--fs); margin-bottom: 8px; }
.about p, .about-cols li { color: var(--text); }
.about-cols li { margin-bottom: 8px; font-weight: 300; }
.about-cols small { display: block; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.about-section { margin-top: clamp(40px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); }

/* Bloc LIVE SET */
.text-col { max-width: 820px; }
.about h3.stack { margin-top: 24px; }

/* LIVE SET, dans le même bloc que « Réalisateur artistique » */
.liveset h2 { margin-bottom: 4px; }
.liveset-tag { font-family: var(--font-display); font-size: 1.05em; color: var(--fg) !important; margin-bottom: 14px; }

/* Collaborations en 3 colonnes */
/* Même présentation que les diplômes : nom discret + repère en Space Mono */
.collab li { margin-bottom: 8px; }
.collab a, .collab .name { display: inline; font-weight: 300; color: var(--text); transition: color .25s; }
.collab a:hover { color: var(--accent); }
.collab a[target="_blank"]::after { content: " ↗"; font-size: .85em; color: var(--muted); }
.collab small { margin-top: 1px; }

/* 9. Contact (panneau) --------------------------------------------------- */
.contact-panel {
  width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; padding: 0;
  background: var(--bg-raised); color: var(--fg);
  border: 0; border-left: 1px solid var(--line);
}
.panel-inner { min-height: 100%; padding: var(--pad); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact-panel[open] { animation: panel-in .45s var(--ease); }
.contact-panel::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } }
.contact-panel .close { align-self: flex-end; margin-bottom: 40px; }
.contact-panel .mail { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.contact-panel .mail:hover { color: var(--accent); border-color: var(--accent-line); }
.contact-panel .ableton { width: 170px; opacity: .85; transition: opacity .25s; }
.contact-panel a:hover .ableton { opacity: 1; }

/* 10. Pied de page ------------------------------------------------------- */
.site-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end;
  padding: 40px var(--pad) 28px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.site-footer .right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-ableton img { width: 150px; opacity: .8; transition: opacity .25s; }
.footer-ableton:hover img { opacity: 1; }
.copyright { grid-column: 1 / -1; margin: 24px 0 0; font-family: var(--font-mono); font-size: 10px; color: var(--muted); opacity: .6; }

/* 11. Mobile & accessibilité --------------------------------------------- */
@media (max-width: 1100px) {
  .brand .hide-md { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.is-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --fs: 15px; }
  /* Bandeau téléphone : plus fin, nom et métiers sur une seule ligne */
  :root { --header-h: 48px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: var(--header-h); padding: 6px var(--pad); }
  .brand { line-height: 1.15; min-width: 0; white-space: nowrap; }
  .brand strong { font-size: 13px; }
  .brand span { font-size: 10px; }
  .site-nav { justify-self: end; }
  .site-nav .chip { padding: 4px 7px; font-size: 12px; }
  .site-social { display: none; }
  .toolbar { align-items: start; }
  .grid { grid-template-columns: 1fr; }
  .grid.is-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-body, .about-cols, .about-duo { grid-template-columns: 1fr; }
  .bio-cols > div + div, .collab > div + div, .about-duo > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 20px; }
  .project-meta { order: 2; }
  .media.two, .media.duo { grid-template-columns: 1fr; }
  .device-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embed.portrait { width: 100%; max-width: 360px; justify-self: center; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .right { justify-self: start; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
