:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #767676;
  --line: #eaeaea;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  padding-bottom: 90px; /* Espace pour le player fixe */
  -webkit-font-smoothing: antialiased;
}

/* Layout Galerie : Navigation à gauche sur Desktop, en haut sur Mobile */
.layout {
  max-width: 1150px;
  margin: 0 auto;
  padding: 60px 30px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
}

header h1 { font-size: 18px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 4px; }
header p.subtitle { font-size: 13px; color: var(--muted); margin-bottom: 40px; }

nav { display: flex; flex-direction: column; gap: 12px; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s;
  cursor: pointer;
}
nav a:hover, nav a.active { color: var(--text); font-weight: 400; }

.contact-block { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.contact-block a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 6px; }
.contact-block a:hover { color: var(--text); }

/* Contenu principal */
main { max-width: 720px; }
.view { display: none; animation: fadeIn 0.25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.intro-text { font-size: 20px; line-height: 1.5; white-space: pre-line; margin-bottom: 40px; font-weight: 300; }

/* Boutons minimalistes */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn:hover, .btn.playing { background: var(--text); color: var(--bg); }
.btn-muted { border-color: var(--line); color: var(--muted); }
.btn-muted:hover { border-color: var(--text); color: var(--text); background: none; }

/* Grille / Liste Projets & Collabs */
.item-card {
  border-top: 1px solid var(--line);
  padding: 35px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: start;
}
.item-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f5f5f5;
  cursor: pointer;
  filter: grayscale(15%);
  transition: opacity 0.2s;
}
.item-card img:hover { opacity: 0.85; }
.item-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.item-title { font-size: 18px; font-weight: 400; cursor: pointer; }
.item-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.item-year { font-size: 13px; color: var(--muted); }
.item-desc { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Sous-page Projet Détaillé + Player intégré (Option 2) */
.detail-img { width: 100%; max-height: 460px; object-fit: cover; margin: 25px 0; }
.detail-desc { white-space: pre-line; margin-bottom: 30px; font-size: 16px; }
.inline-player {
  border: 1px solid var(--line);
  padding: 20px;
  margin: 25px 0;
  background: #fafafa;
}
.inline-player-top { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.inline-scrubber { width: 100%; accent-color: var(--text); cursor: pointer; height: 3px; }

/* CV & Bio */
.cv-list { margin-top: 35px; border-top: 1px solid var(--line); }
.cv-row { display: grid; grid-template-columns: 80px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cv-year { color: var(--muted); }

/* Barre Player Persistante (Option 1) */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 58px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 20px;
  z-index: 100;
  font-size: 13px;
}
.player-play-btn { background: none; border: none; font-size: 14px; cursor: pointer; width: 28px; text-align: left; color: var(--text); }
.player-track-title { min-width: 180px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-scrubber { flex: 1; accent-color: var(--text); height: 2px; cursor: pointer; }
.player-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; gap: 40px; padding: 30px 20px; }
  header p.subtitle { margin-bottom: 20px; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
  .contact-block { margin-top: 20px; padding-top: 0; border: none; display: flex; gap: 15px; }
  .item-card { grid-template-columns: 1fr; gap: 15px; }
  .player-bar { padding: 0 15px; gap: 12px; }
  .player-track-title { min-width: 90px; max-width: 130px; }
}