.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 20px;
}

.site-header {
  position: relative;
  z-index: 3000;
}

.name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.name a {
  text-decoration: none;
  color: inherit;
}

.name a:hover {
  opacity: 0.5;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
  padding: 40px;
}

a {
  color: inherit;
  text-decoration: none;
}

nav {
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

h1 {
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 40px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.category {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
}

.music-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
}

.release {
  width: 320px;
  text-align: center;
}

.release img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  margin-bottom: 24px;
}

.release h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.release .meta {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.release p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.artist-section {
  margin-bottom: 120px;
}

.artist-title {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 60px;
}

.listen-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #999;
  padding-bottom: 2px;
}

.listen-link:hover {
  color: #111;
  border-color: #111;
}

.project {
  margin-bottom: 140px;
}

.project h2 {
  margin-bottom: 20px;
  font-weight: 400;
}

.project p {
  max-width: 800px;
  margin-bottom: 40px;
}

.project-gallery {
  margin-left: -40px;
  margin-right: -40px;

  padding: 20px 40px;

  display: flex;
  gap: 20px;

  overflow-x: auto;
  overflow-y: hidden;

  box-sizing: border-box;
}

.project-gallery::-webkit-scrollbar {
  display: none;
}

.project-gallery img {
  height: 350px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.project-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 320px);
  gap: 80px;
  justify-content: center;
}

.project-card img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  display: block;
}

.project-card {
  width: 320px;
  display: flex;
  flex-direction: column;
}

.project-preview {
  cursor: pointer;
}

.project-preview img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.project-preview h2 {
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 5px;
}

.project-preview .meta {
  font-size: 14px;
  color: #777;
}

.project-details {
  z-index: 1000;
}

.project-card.active .project-details {
  display: block;
}
.project-card.active .project-preview {
  width: 320px;
}

.project-details {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.project-card.active .project-details {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery iframe {
  height: 350px;
  width: 80vh; /* garde un ratio propre */
  flex-shrink: 0;
  border: none;
}

.project-gallery video {
  height: 350px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.project-text-image {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
}

.project-text {
  flex: 1;
  min-width: 0;
}

.project-side-image {
  flex: 0 0 320px;
}

.project-side-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .project-text-image {
    flex-direction: column;
  }

  .project-side-image {
    width: 100%;
  }
}

.project-gallery img,
.project-gallery iframe,
.project-gallery video {
  flex-shrink: 0;
  display: block;
  height: 320px;
  width: auto;
}

.video-container {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-bottom: 60px;
}

.video-container iframe {
  width: 100%;
  height: 60vh;
  border: 0;
}

.pdf-container {
  width: calc(100% + 80px);
  margin-left: -40px;
}

.pdf-container iframe {
  width: 100%;
  height: 90vh;
  border: none;
}

.soundcloud-container {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-bottom: 60px;
}

html, body {
  overflow-x: hidden;
}

.photo-category {
  margin-bottom: 80px;
}

.photo-toggle {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;

  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 12px;

  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.photo-toggle .year {
  color: #888;
  font-size: 14px;
}

.year {
  color: #888;
  font-size: 14px;
}

.arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.photo-category.active .arrow {
  transform: rotate(180deg);
}


.photo-content {
  display: none;
  width: 100%;
}

.project-card.active .photo-content {
  display: block;
}

.project-card.active {
  width: 100%;
  flex-basis: 100%;
}

.photo-category.active .photo-content {
  display: block;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Portrait = garde sa proportion, mais visuellement plus “vertical” */
.photo-grid img.portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Landscape = plus large visuellement */
.photo-grid img.landscape {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-footer {
  margin-top: 120px;
}

.footer-line {
  border-top: 1px solid #ddd;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 13px;
  color: #666;
  text-align: right;
  padding-bottom: 10px;
}

.project-text,
.project-text p,
.project {
  column-count: 1 !important;
  column-width: auto !important;
}

.bandcamp-player {
  max-width: 500px;
  margin: 20px auto 0;
}

.bandcamp-player iframe {
  width: 100%;
  border: 0;
}