/* site.css — style minimal sans Squarespace, fidèle au rendu */

:root {
  --container: 1100px;
  --gap: 32px;
  --bg: #010001;
  --fg: #fefeff;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: .9em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand a {
  font-weight: 700;
  text-decoration: none;
  color: #000;
  font-size: 20px;
  letter-spacing: .3px
}

.main-nav {
  display: flex;
  gap: 18px
}

.nav-link {
  color: #000;
  text-decoration: none;
  opacity: .75;
  font-weight: 500
}

.nav-link.active,
.nav-link:hover {
  opacity: 1
}

/* Hero section */
.hero {
  padding: 4vw 0 1vw
}

.hero-grid {
  display: grid;
  /* grid-template-columns: 3fr 1fr; */
  gap: var(--gap)
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700
}

.subtitle {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end
}

.subtitle em {
  font-size: clamp(16px, 2.2vw, 22px)
}

.byline {
  margin-top: 2em;
  font-size: 1.5em;
}

.byline pre {
  margin: 0;
  white-space: pre-wrap;
  text-align: center
}

.byline .small {
  font-size: .9rem;
  margin: .5rem 0
}

.right {
  text-align: right
}

/* Blocks */
.block {
  padding: 3em 0;
  border-top: 1px solid rgba(0, 0, 0, .06)
}

.block p {
  margin: .7rem 0
}

/* Video & captions */
.video {
  max-width: 100%
}

.ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%
}

.ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

.caption {
  margin-top: .6rem;
  font-weight: 500
}

/* SoundCloud wrapper */
.soundcloud {
  margin-top: 1rem
}

/* Section Contact : parallax compatible desktop + mobile (sans attachment:fixed) */
.contact-bg {
  position: relative;
  margin: 6vw 0 0;
  /* réduit la hauteur -> moins “zoomé” */
  color: #fff;
  overflow: hidden;
  /* évite bandes au scroll */
}

/* Calque image dédié au parallax (passe par transform, pas par background-attachment) */
.contact-bg::before {
  content: "";
  position: absolute;
  inset: -8% 0 -8% 0;
  /* débord léger pour éviter bords visibles */
  background: #000 url('/assets/photo-contact.png') center 35% / cover no-repeat;
  transform: translateY(var(--py, 0)) scale(1.08);
  /* léger scale pour sécurité */
  will-change: transform;
  z-index: 0;
}

.contact-bg,
.contact-bg .overlay {
  min-height: clamp(420px, 60vh, 500px);
  /* plus haut, adaptable selon écran */
}

/* Mobile/tablette : désactive le parallax + recadre l'image */
@media (max-width: 1024px),
(hover: none) {
  .contact-bg {
    background-attachment: scroll;
    /* évite le zoom bug */
    background-position: center 25%;
    /* recadre un peu si besoin */
    background-size: cover;
    /* évite que l’image soit énorme */
  }
}


/* Contenu au-dessus */
.contact-bg .overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, .35);
  min-height: clamp(320px, 67vh, 560px) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vw 5vw;
}

.contact-bg h2 {
  margin: 0 0 .6rem;
  font-size: clamp(24px, 4vw, 40px);
}

.contact-bg a {
  color: #fff;
}

/* Mobile/tablette : parallax plus doux + hauteur ajustée */
@media (max-width: 1024px),
(hover: none) {
  /* .contact-bg {
    min-height: clamp(280px, 33vh, 460px) !important;
  } */

  .contact-bg .overlay {
    min-height: clamp(370px, 55vh, 465px) !important;
  }

  .contact-bg::before {
    background-position: center 30%;
    transform: translateY(var(--py, 0)) scale(1.04);
    /* parallax plus léger */
  }
}

.contact-bg::before {
  inset: -15% 0 -15% 0;                 /* l’image déborde plus haut et bas */
  transform: translateY(var(--py, 0)) scale(1.25); /* plus grande marge */
}

@media (max-width: 1024px), (hover: none) {
  .contact-bg,
  .contact-bg .overlay {
    min-height: clamp(360px, 55vh, 600px);
  }
  .contact-bg::before {
    transform: translateY(var(--py, 0)) scale(1.2);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 18px 0;
  font-size: .95rem
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.block h2 {
  margin: 0 0 .75rem
}

.video {
  margin-bottom: .5rem
}

P {
  font-weight: 200;
}

/* Style générique pour les liens sur fond sombre */
a.link {
  color: #9b5de5;
  /* Violet élégant, lisible sur noir */
  text-decoration: none;
  /* Enlève le soulignement par défaut */
  font-weight: 600;
  /* Rend le lien un peu plus visible */
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a.link:hover,
a.link:focus {
  color: #ffffff;
  /* Devient blanc au survol pour contraste */
  text-shadow: 0 0 6px rgba(155, 93, 229, 0.8);
  /* Glow violet subtil */
}

a.link:active {
  color: #f15bb5;
  /* Rose flashy en cas de clic */
}

.site-header {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.hide {
  transform: translateY(-100%);
  /* glisse vers le haut */
  opacity: 0;
  /* disparaît en douceur */
}

/* Mobile tweaks */
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .subtitle {
    justify-content: flex-start
  }
}