/* =========================================================
   MAAD AVENUE — styles du site
   Polices : Unbounded (titres) + Space Grotesk (texte)
   ========================================================= */

:root {
  --black: #000;
  --white: #fff;
  --grey: #bab5b5;        /* fond de la section album */
  --gutter: 4vw;
  --max: 1500px;
  --header-h: 100px;
  --font-title: "Unbounded", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.site-header .container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav { display: flex; gap: 50px; }

.nav a {
  text-decoration: none;
  font-size: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

.logo img { height: 56px; width: auto; }

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 54px;
}

.socials a { display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover { opacity: .6; }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  width: 36px;
}

.burger span {
  display: block;
  height: 1px;
  background: var(--black);
  margin: 7px 0;
  transition: transform .3s, opacity .3s;
}

.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  background: var(--white);
  padding: 40px var(--gutter);
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu a {
  font-size: 28px;
  text-decoration: none;
}

.mobile-menu .socials { gap: 32px; margin-top: 24px; }
.mobile-menu .socials svg { width: 22px; height: 22px; }

.menu-open .mobile-menu { display: flex; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 480px;
  display: grid;
  place-items: end center;
  padding-bottom: 12vh;
  color: var(--white);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  object-position: center 30%;
  filter: contrast(110%) saturate(107%) sepia(28%) hue-rotate(3deg) blur(0.5px);
}

/* Teinte kaki puis voile noir par-dessus la photo du hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background: #577029;
  opacity: .39;
  mix-blend-mode: color;
}

.hero::after { background: rgba(0, 0, 0, .23); }

.hero h1 {
  position: relative;
  font-size: clamp(40px, 6vw, 86px);
  text-align: center;
  padding-inline: var(--gutter);
}

/* ---------- Présentation ---------- */

.intro { padding: 60px 0 80px; text-align: center; }

.intro .big-logo {
  width: min(900px, 100%);
  margin: 0 auto 40px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 70px;
  align-items: center;
}

.intro-text h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 30px;
}

.intro-text .lead {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 30px;
}

.intro-text p { margin: 0 0 16px; }

.portrait {
  width: 100%;
  aspect-ratio: 1023 / 1537;
  object-fit: cover;
  border-radius: 10px;
}

.intro-grid .portrait { align-self: end; }

/* ---------- Album ---------- */

.album {
  position: relative;
  background: var(--grey);
  color: var(--white);
  padding: 100px 0 120px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.album canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.album h2 {
  font-size: clamp(40px, 6vw, 80px);
  margin-bottom: 160px;
}

.album .cover {
  display: inline-block;
  width: min(620px, 100%);
  transition: transform .4s;
}

.album .cover:hover { transform: scale(1.02); }

.album .listen {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid currentColor;
  padding: 14px 36px;
  transition: background .3s, color .3s;
}

.album .listen:hover { background: var(--white); color: var(--black); }

/* ---------- Live (vidéo) ---------- */

.live {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 830px;
  overflow: hidden;
}

.live video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live .container {
  position: relative;
  padding-top: 130px;
}

.live h2 { font-size: clamp(28px, 2.6vw, 38px); }

.live p {
  font-size: 22px;
  font-weight: 500;
  margin: 18px 0 0;
}

/* ---------- Live large (Studio Seul Le Regard) ---------- */

/* Bandeau pleine largeur au format 2:1, texte en bas */
.live-wide {
  min-height: 0;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: flex-end;
}

/* Léger flou pour adoucir la pixelisation de l'extrait agrandi */
.live-wide .live-wide-bg {
  filter: blur(2.5px) brightness(.72) contrast(1.05);
  transform: scale(1.04); /* cache le bord adouci par le flou */
}

/* Dégradé pour la lisibilité du texte */
.live-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 55%);
}

.live-wide .container {
  z-index: 1;
  padding: 0 0 clamp(30px, 4vw, 70px);
}

.live-wide h2 { font-size: clamp(26px, 3.6vw, 60px); }

.live-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  background: none;
  border: 2px solid currentColor;
  color: inherit;
  cursor: pointer;
  padding: 14px 26px;
  font: 500 15px var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

/* Triangle « lecture » dessiné en CSS (le caractère ▶ s'affiche en emoji sur iPhone) */
.live-play::before {
  content: "";
  width: 10px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.live-play:hover { background: var(--white); color: var(--black); }

/* Lecteur plein écran */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .92);
}

.lightbox[hidden] { display: none; }

.lightbox video {
  /* Vidéo verticale : la largeur se déduit de 90 % de la hauteur d'écran */
  width: min(100%, 90vh * 9 / 16);
  width: min(100%, 90dvh * 9 / 16);
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--black);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open { overflow: hidden; }

/* ---------- Bannière ---------- */

.banner {
  background: var(--black);
}

.banner img {
  width: 100%;
  height: clamp(300px, 31vw, 520px);
  object-fit: cover;
  object-position: center 40%;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 220px;
  text-align: center;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.2;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer a:hover { opacity: .6; }

.site-footer .photo-credit {
  margin: 40px 0 0;
  font-size: 13px;
  letter-spacing: .04em;
  opacity: .6;
}

.site-footer .photo-credit a {
  font: inherit;
  text-transform: none;
}

/* ---------- Press kit ---------- */

.press { padding: 100px 0 200px; }

.press h1 {
  font-size: clamp(40px, 4vw, 56px);
  margin-bottom: 110px;
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.press h2 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 120px; }

.btn-outline {
  display: inline-block;
  border: 4px solid #777;
  color: #777;
  padding: 18px 56px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .02em;
  transition: background .3s, color .3s;
}

.btn-outline:hover { background: #777; color: var(--white); }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  :root { --gutter: 6vw; --header-h: 70px; }

  .site-header .nav,
  .site-header .socials { display: none; }

  .burger { display: block; }
  .logo img { height: 40px; }

  /* Hero et live : un écran entier (moins l'en-tête) ; svh = hauteur visible avec les barres du navigateur */
  .hero { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); padding-bottom: 10vh; }
  .hero h1 { font-size: 40px; }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid .portrait { aspect-ratio: 16 / 10; object-position: center 30%; }
  .intro-text { order: 2; }
  .intro-grid .portrait:last-child { order: 3; }

  .album { padding: 50px 0 70px; }
  .album h2 { margin-bottom: 50px; }

  .live { min-height: 420px; }
  .live .container { padding-top: 40px; }
  .live-wide { aspect-ratio: auto; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .live-wide .container { padding: 0 0 10vh; }

  .banner img { height: 60vh; height: 60svh; }
  .live-wide p { font-size: 15px; letter-spacing: .04em; margin-top: 12px; }
  .live-wide .live-play { margin-top: 24px; }

  .site-footer { padding-bottom: 100px; }
  .site-footer a { font-size: 22px; }

  .press { padding: 60px 0 100px; }
  .press h1 { margin-bottom: 50px; }
  .press-grid { grid-template-columns: 1fr; gap: 40px; }
  .press h2 { margin-bottom: 40px; }
}

/* ---------- Effets de scroll ---------- */

/* Fondu d'apparition (classe ajoutée par main.js, donc tout reste visible sans JS) */
.reveal {
  opacity: 0;
  transition: opacity .9s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible { opacity: 1; }

/* Parallax du hero : l'image dépasse pour pouvoir glisser */
.hero img {
  height: 130%;
  top: -15%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transition: none; }
}

/* Hero sur mobile : la photo (paysage) est moins zoomée pour garder les deux visages,
   calée en haut et fondue dans le noir vers le bas, sous le titre.
   130vw de haut = l'image fait ~195 % de la largeur d'écran (un peu plus de la moitié de la photo). */
@media (max-width: 900px) {
  .hero {
    background: var(--black);
    isolation: isolate;
  }

  .hero img {
    top: 0;
    height: 130vw;
    object-position: 43% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
  }
}
