:root {
  --bg: #000000;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.62);
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-strong: rgba(28, 28, 32, 0.72);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px) saturate(180%);
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 60px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Halos de couleur diffuse ---------- */

.aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.blob-layer {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  left: -18%;
  top: -18%;
  transform-origin: 50% 50%;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  animation: orbit 140s linear infinite;
}

/* Brume colorée : opacité basse, flou très large, rotation lente. */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.3;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.blob-1 {
  width: 70vmax;
  height: 70vmax;
  top: -6%;
  left: 6%;
  background: radial-gradient(circle, #3b6cff 0%, #2a4fd6 42%, rgba(42, 79, 214, 0) 68%);
}

.blob-2 {
  width: 66vmax;
  height: 66vmax;
  top: -4%;
  left: 52%;
  background: radial-gradient(circle, #ff4db8 0%, #e445a8 42%, rgba(228, 69, 168, 0) 68%);
}

.blob-3 {
  width: 64vmax;
  height: 64vmax;
  top: 42%;
  left: 48%;
  background: radial-gradient(circle, #ffd056 0%, #e8c04a 42%, rgba(232, 192, 74, 0) 70%);
}

.blob-4 {
  width: 68vmax;
  height: 68vmax;
  top: 36%;
  left: -8%;
  background: radial-gradient(circle, #3eecff 0%, #2ad4e8 42%, rgba(42, 212, 232, 0) 68%);
}

.sheen {
  position: absolute;
  inset: -30% -10%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.028) 50%,
    rgba(255, 255, 255, 0) 62%
  );
  will-change: transform;
  animation: sweep 48s linear infinite;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.4;
}

@keyframes orbit {
  from {
    transform: translateZ(0) rotate(0deg);
  }
  to {
    transform: translateZ(0) rotate(360deg);
  }
}

@keyframes sweep {
  from {
    transform: translate3d(-38%, 0, 0);
  }
  to {
    transform: translate3d(38%, 0, 0);
  }
}

@media (min-width: 769px) {
  .blob {
    width: 78vmax;
    height: 78vmax;
    filter: blur(220px);
    opacity: 0.2;
  }

  .hero-title {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.9),
      0 2px 14px rgba(0, 0, 0, 0.65);
  }
}

@media (max-width: 768px) {
  .hero-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 2px 16px rgba(0, 0, 0, 0.75);
  }

  .blob-layer {
    animation-duration: 160s;
  }

  /* Écran plus petit : il faut plus d'opacité pour la même présence de couleur. */
  .blob {
    filter: blur(110px);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob-layer,
  .sheen {
    animation: none;
  }
}

/* ---------- Surfaces verre ---------- */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow);
}

.glass-pill {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.glass-pill:hover,
.glass-pill:focus-visible {
  transform: translateY(-1px);
  background: var(--glass-strong);
}

/* ---------- Navigation ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
}

.navbar-inner {
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Le fond de l'insigne est déjà en #121212 : un léger contour suffit à le
   poser sur le verre, sans cadre qui alourdirait la barre. */
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  font-size: 0.98rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pastille de navigation avec icône : même gabarit que la cloche. */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-pill-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Cloche de notifications ---------- */

.notif-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}

.notif-toggle:disabled {
  opacity: 0.55;
  cursor: default;
}

.notif-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sur mobile le libellé disparaît : la barre oblique devient le seul repère
   entre « abonné » et « pas abonné ». Elle s'efface donc à l'activation. */
.notif-slash {
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}

.notif-toggle[data-state="on"] .notif-slash {
  opacity: 0;
}

.notif-toggle[data-state="on"] {
  background: var(--glass-strong);
  color: #ffffff;
}

.notif-toggle[data-state="on"] .notif-icon {
  fill: rgba(255, 255, 255, 0.16);
}

/* ---------- Vues SPA ---------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.view {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.view-active {
  opacity: 1;
  transform: none;
}

/* ---------- Accueil ---------- */

.hero {
  padding: 68px 4px 46px;
  max-width: 720px;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 12px 0 18px;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero-lede {
  margin: 0;
  font-size: 1.03rem;
  color: rgba(245, 245, 247, 0.78);
  font-weight: 300;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.stat {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.82rem;
  color: rgba(245, 245, 247, 0.85);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.albums-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.album-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    box-shadow 0.4s var(--ease);
}

.album-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.album-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.album-cover img,
.album-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}

.album-card:hover .album-cover img {
  transform: scale(1.05);
}

.album-cover-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.album-body {
  padding: 16px 18px 20px;
}

.album-body h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.album-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-count {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.5);
}

/* ---------- Vue album ---------- */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 18px;
  cursor: pointer;
}

.album-header {
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin-bottom: 20px;
}

.album-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.album-header p {
  margin: 0;
  color: rgba(245, 245, 247, 0.76);
  font-weight: 300;
}

.album-meta {
  margin-top: 14px !important;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.45) !important;
}

.download-album {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 18px;
  cursor: pointer;
}

.download-album svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-album.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.media-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.media-link {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.media-link img,
.media-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.media-link:hover img {
  transform: scale(1.04);
}

.media-type {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
}

.media-caption {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: rgba(245, 245, 247, 0.72);
}

.placeholder {
  margin: 40px 4px;
  padding: 26px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px calc(48px + env(safe-area-inset-bottom));
  color: rgba(245, 245, 247, 0.4);
  font-size: 0.82rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-link {
  color: rgba(245, 245, 247, 0.55);
  border-bottom: 1px solid rgba(245, 245, 247, 0.2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: rgba(245, 245, 247, 0.9);
  border-bottom-color: rgba(245, 245, 247, 0.5);
}

@media (max-width: 768px) {
  main {
    padding-bottom: 24px;
  }

  .footer {
    padding-top: 12px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  /* La barre n'a pas la place pour tous les libellés : les icônes suffisent. */
  .notif-toggle span,
  .nav-pill-label {
    display: none;
  }

  .notif-toggle,
  .nav-pill {
    padding: 9px 12px;
  }
}

/* Sous cette largeur, le nom de marque et trois pastilles ne tiennent plus
   sur une ligne : l'insigne identifie déjà le site. */
@media (max-width: 430px) {
  .brand-text {
    display: none;
  }
}

/* ---------- Pages légales ---------- */

.legal-card {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 34px 34px 30px;
  border-radius: var(--radius-lg);
}

.legal-card h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* Ouvre une seconde partie dans la même carte : la numérotation repart à 1. */
.legal-card .legal-part {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.legal-card h3 {
  margin: 26px 0 10px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.legal-card p {
  margin: 0;
  color: rgba(245, 245, 247, 0.82);
  font-weight: 300;
  line-height: 1.7;
}

/* Les pages légales enchaînent titre + paragraphe ; « À propos » aligne
   plusieurs paragraphes de suite et a besoin de sa propre respiration. */
.legal-card p + p {
  margin-top: 18px;
}

.legal-card .about-lede {
  margin: 0 0 26px;
  font-size: 1.06rem;
  color: rgba(245, 245, 247, 0.62);
}

.about-mail {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.legal-card .about-note {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(245, 245, 247, 0.5);
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: rgba(245, 245, 247, 0.82);
  font-weight: 300;
  line-height: 1.7;
}

.legal-list strong {
  color: #ffffff;
  font-weight: 500;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .legal-card {
    margin-top: 24px;
    padding: 26px 20px 24px;
  }

  .legal-card h2 {
    margin-top: 26px;
  }

  .legal-card .legal-part {
    margin-top: 34px;
    padding-top: 24px;
  }

  .legal-card h3 {
    margin-top: 22px;
  }

  .legal-list {
    padding-left: 18px;
  }
}

/* ---------- PhotoSwipe ---------- */

.pswp {
  --pswp-bg: rgba(8, 8, 10, 0.94);
}

.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #f5f5f7;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pswp__custom-caption[hidden] {
  display: none;
}

.pswp__button--download svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bouton texte, à l'inverse des icônes de la barre : l'action mérite d'être
   explicite puisqu'elle déclenche un téléchargement lourd. */
.pswp__button--original {
  width: auto;
  padding: 0 14px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease);
}

.pswp__button--original:hover,
.pswp__button--original:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.pswp__button--original[hidden] {
  display: none;
}

.pswp-video-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pswp-video-wrap video {
  max-width: 100%;
  max-height: 100%;
}
