/* ============================================================
   Soleillent — 2b "Veille / natural night"
   Full-screen, edge-to-edge, mobile-first.
   ============================================================ */

:root {
  --bg-page:    #0b0806;
  --ink:        #d9c9b2;
  --amber:      #e8963c;   /* accent / "next" */
  --amber-soft: #c09462;   /* section labels, links */
  --amber-dim:  #a88a64;   /* concert text */
  --amber-mute: #8a6f4e;   /* footer labels */
  --title:      #f3e2c4;   /* wordmark */
  --line:       rgba(232, 150, 60, 0.26);
  --line-soft:  rgba(232, 150, 60, 0.10);
  --hover:      rgba(255, 150, 40, 0.05);
  --pad:        clamp(20px, 5vw, 56px);   /* shared horizontal gutter */

  /* Two type roles. The font switcher (fontswitcher.js, dev-only) overrides
     these on :root to preview pairings; the defaults below are what ships. */
  --font-display: 'Cormorant Garamond', Georgia, serif;   /* wordmark, venues */
  --font-ui:      'IBM Plex Mono', ui-monospace, monospace; /* labels, text */

  --wordmark-opacity: 1;  /* title "soleillent" — its opacity breathes up to this level */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }

img { max-width: 100%; }

/* ---------- Full-bleed shell ---------- */
.site {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-page);
}

/* ---------- Language switcher ---------- */
.lang {
  position: absolute;
  top: max(clamp(14px, 3vw, 22px), env(safe-area-inset-top));
  right: max(clamp(14px, 3vw, 22px), env(safe-area-inset-right));
  z-index: 4;
  display: flex;
}
.lang__btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  padding: 7px 11px;
  color: var(--amber-soft);
  background: rgba(10, 6, 3, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(232, 150, 60, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang__btn + .lang__btn { border-left: none; }
.lang__btn:hover { color: var(--title); }
.lang__btn[aria-pressed="true"] {
  background: rgba(232, 150, 60, 0.18);
  color: var(--title);
}

/* ---------- Full-screen hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.hero__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.wordmark {
  position: absolute;
  left: var(--pad);
  bottom: max(clamp(20px, 5vh, 48px), env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 12vw, 104px);
  line-height: 1;
  color: var(--title);
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  letter-spacing: 0.03em;
  opacity: var(--wordmark-opacity, 1);
}
@media (prefers-reduced-motion: no-preference) {
  /* Tracking breathes on one cadence; opacity evolves slowly on a longer,
     separate one, so the two drift in and out of phase. */
  .wordmark {
    animation: breathe 16s ease-in-out infinite alternate,
               lull 22s ease-in-out infinite alternate;
  }
}
@keyframes breathe {
  from { letter-spacing: 0.03em; }
  to   { letter-spacing: 0.16em; }
}
@keyframes lull {
  from { opacity: calc(var(--wordmark-opacity, 1) * 0.01); }
  to   { opacity: var(--wordmark-opacity, 1); }
}

/* ---------- Collapsible sections ---------- */
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px var(--pad);
  font-family: var(--font-ui);
  font-size: clamp(10px, 1.4vw, 11px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.26em;
  color: var(--amber-soft);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.section__head:hover { background: var(--hover); }
.glyph { flex: none; font-size: 13px; }

/* ---------- Player ---------- */
.player {
  display: grid;
  gap: 12px;
  padding: 12px var(--pad) 24px;
}
/* Each track sits in a fixed-height slot. A centred spinner shows first; once
   the iframe fires 'load' (JS adds [data-loaded]) the player fades in over it. */
.player__slot {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;   /* Bandcamp large player, artwork=none + tracklist=false */
}
.player__loading {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-soft);
  border-top-color: var(--amber);
  animation: player-spin 0.85s linear infinite;
  transition: opacity 0.3s ease;
}
.player__slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.player__slot[data-loaded] iframe { opacity: 1; }
.player__slot[data-loaded] .player__loading { opacity: 0; }
@keyframes player-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .player__loading { animation: player-pulse 1.5s ease-in-out infinite; }
  @keyframes player-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
}

/* ---------- Concerts ---------- */
/* City / venue / acts are told apart by typography, not labels:
   mono-metadata (city + date) · serif-anchor (venue) · dim-mono (acts). */
.concerts { padding: 2px var(--pad) 24px; }
.concert {
  display: grid;
  grid-template-columns: minmax(72px, 130px) 1fr;
  gap: 14px 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.concert:last-child { border-bottom: none; }

/* Temporal grouping label (à venir / passés) — quiet, wide-tracked */
.concert__tag {
  align-self: start;
  padding-top: 4px;
  font-size: clamp(10px, 1.4vw, 11px);
  letter-spacing: 0.24em;
  color: var(--amber-mute);
}
.concert__tag--next { color: var(--amber); }

/* The stacked block holding the three registers */
.concert__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* 1) city + date — small, wide-tracked mono; the "coordinates" line.
   Grouped at the left (not spread) so the date stays beside the city at any width. */
.concert__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: clamp(10px, 1.35vw, 11px);
  letter-spacing: 0.2em;
  color: var(--amber-mute);
}
.concert__date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.concert__date::before {
  content: "·";
  margin: 0 0.9em;
  color: var(--amber-soft);
  opacity: 0.55;
}

/* 2) venue — the anchor: serif italic, larger, bright (echoes the wordmark) */
.concert__venue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(21px, 3.4vw, 27px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--title);
}
.concert--past .concert__venue { color: var(--amber-soft); }

/* 3) other acts — small dim mono, quiet support ("avec …") */
.concert__with {
  font-size: clamp(11px, 1.5vw, 12px);
  letter-spacing: 0.06em;
  color: var(--amber-dim);
}

/* ---------- Ground ---------- */
.ground {
  display: block;
  width: 100%;
  height: clamp(280px, 52vh, 620px);
  object-fit: cover;
  object-position: 50% 50%;
  border-top: 1px solid var(--line);
  filter: brightness(0.72) saturate(0.9);
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  gap: 10px;
  padding: 24px var(--pad) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: clamp(10px, 1.4vw, 11px);
  letter-spacing: 0.2em;
  color: var(--amber-mute);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.footer__row a { color: var(--amber-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .concert {
    grid-template-columns: 66px 1fr;
    gap: 12px 14px;
  }
  .footer__row { flex-direction: column; gap: 4px; }
  .footer__row a { align-self: flex-start; }
}
