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

:root {
  color-scheme: dark;
  --red: #c0304a;
  --red-dim: #7a1a2e;
  --bg: #060000;
  --text: #f0ebe8;
  --text-muted: rgba(240, 235, 232, 0.4);
  --text-dim: rgba(240, 235, 232, 0.65);
  --border: rgba(240, 235, 232, 0.08);
  --sidebar-w: 200px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  --font-futuristic: 'Orbitron', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow: hidden;
}

/* CANVAS GALAXIE */
#galaxy {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* GRAIN */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* SIDEBAR */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  backdrop-filter: blur(2px);
}

.logo {
  font-family: var(--font-futuristic);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0.95;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--red);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.nav-link.active::before {
  opacity: 1;
}

.sidebar-footer {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 2rem;
}

/* MAIN CONTENT */
#content {
  position: fixed;
  left: var(--sidebar-w);
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  overflow-y: auto;
  padding: 4rem 5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dim) transparent;
}

#content::-webkit-scrollbar {
  width: 3px;
}
#content::-webkit-scrollbar-thumb {
  background: var(--red-dim);
}

/* PAGES */
.page {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-height: 100%;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* PAGE HEADER */
.page-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}

.page-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* POSTS */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.post-card:first-child {
  border-top: 1px solid var(--border);
}

.post-card::after {
  content: '';
  position: absolute;
  left: -5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.3s;
}

.post-card:hover::after {
  opacity: 1;
}

.post-card:hover .post-title {
  color: var(--text);
}

.post-meta {
  margin-bottom: 0.5rem;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.post-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  transition: color 0.25s;
}

.post-excerpt {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 1rem;
}

.post-read {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}

/* POST COMPLET */
.back-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 3rem;
  padding: 0;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--text);
}

.post-full h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.post-body {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  line-height: 2;
  color: var(--text-dim);
  max-width: 560px;
}

.post-body p {
  margin-bottom: 1.5rem;
}

/* SECTION LABELS */
.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* PLATFORMS */
.platforms {
  margin-bottom: 4rem;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.platform-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: all 0.25s;
  background: transparent;
}

.platform-btn:hover {
  border-color: var(--red);
  color: var(--text);
}

/* AUDIO */
.audio-section {
  margin-bottom: 4rem;
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.audio-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.audio-item:first-child {
  border-top: 1px solid var(--border);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.audio-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
}

.audio-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 2px 6px;
}

.audio-tag.unreleased {
  color: var(--text-muted);
  border-color: var(--border);
}

.audio-tag.soon {
  color: #a08060;
  border-color: #5a4030;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.waveform {
  flex: 1;
  position: relative;
  height: 28px;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.progress-track {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.1s linear;
}

.audio-duration {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* CONTACT */
.socials-section {
  margin-bottom: 4rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: all 0.25s;
}

.social-link:first-child {
  border-top: 1px solid var(--border);
}

.social-link::after {
  content: '↗';
  margin-left: auto;
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.social-link:hover {
  color: var(--text);
  padding-left: 0.5rem;
}

.social-link:hover::after {
  color: var(--red);
}

/* FORM */
.form-section {
  max-width: 480px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--red);
}

.submit-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
}

.submit-btn:hover {
  border-color: var(--red);
  color: var(--text);
}

.form-confirm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--red);
  min-height: 1rem;
}

/* SCROLLBAR */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--red-dim) transparent;
}

/* ANIMATIONS D'ENTRÉE */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card, .audio-item, .social-link, .platform-btn {
  animation: fadeUp 0.5s ease both;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.12s; }
.post-card:nth-child(3) { animation-delay: 0.19s; }

.audio-item:nth-child(1) { animation-delay: 0.05s; }
.audio-item:nth-child(2) { animation-delay: 0.12s; }
.audio-item:nth-child(3) { animation-delay: 0.19s; }

/* RESPONSIVE */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; --topbar-h: 52px; }

  /* sur téléphone, le menu devient une barre en haut */
  #sidebar {
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 0, 0, 0.88);
    overflow-x: auto;
    scrollbar-width: none;
  }
  #sidebar::-webkit-scrollbar { display: none; }
  .logo { margin-bottom: 0; flex: none; }
  .nav-links { flex-direction: row; gap: 1.1rem; flex: none; }
  .nav-link::before { display: none; }
  .sidebar-footer { display: none; }

  #content {
    left: 0;
    top: var(--topbar-h);
    padding: 2rem 16px;
  }
  .page-header h1 { font-size: 38px; }
  .game-frame { height: 780px; }
}

/* PAGE ACCUEIL — vide intentionnellement */
#page-home {
  pointer-events: none;
}

/* NOSTALGIE */
.nostalgie-years {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-bottom: 4rem;
}

.year-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.year-label {
  font-family: var(--font-futuristic);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}

.photo-slot {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.4s;
}

.photo-slot:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.photo-slot:hover {
  border-color: var(--red-dim);
}

/* Upload placeholder */
.photo-upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-direction: column;
  gap: 6px;
}

.photo-upload-hint span {
  font-size: 20px;
  opacity: 0.3;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 0, 2, 0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  animation: fadeUp 0.3s ease;
}

#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

#lightbox-close:hover {
  color: var(--text);
}


/* HISTOIRE */
.story, .universe { margin-bottom: 4rem; }
.story-close { color: var(--text); }
.story-close em { color: var(--red); font-style: italic; }
.colors { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; max-width: 560px; margin-top: 1rem; }
.colors li { display: grid; grid-template-columns: 28px 90px minmax(0, 1fr); align-items: center; gap: 14px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); }
.sw-red { background: #c8232c; }
.sw-yellow { background: #f2c318; }
.sw-beige { background: #d9c3a5; }
.c-name { font-family: var(--font-futuristic); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); }
.c-desc { font-family: var(--font-display); font-size: 17px; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 480px) {
  .colors li { grid-template-columns: 28px minmax(0, 1fr); }
  .c-desc { grid-column: 2; }
}

/* JEU */

.game-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-bottom: 3rem; }
.game-frame { width: 100%; max-width: 440px; height: 800px; border: 0; border-radius: 22px; background: transparent; }
.game-full { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; }
.game-full:hover { color: var(--text); }

.audio-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--text-muted); margin-left: 6px; }
.waveform { cursor: pointer; }

/* EMAIL */
.mail-section { margin-bottom: 4rem; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mail-address { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--text); user-select: all; overflow-wrap: anywhere; }
.copy-btn { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); background: none; border: 1px solid var(--border); padding: 6px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--red-dim); }


/* ============================================================
   V4.1 — tout en Orbitron, texte plus grand et plus affirmé
   ============================================================ */
:root {
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-mono: 'Orbitron', system-ui, sans-serif;
  --text-muted: rgba(240, 235, 232, 0.66);
  --text-dim: rgba(240, 235, 232, 0.86);
  --border: rgba(240, 235, 232, 0.16);
  --sidebar-w: 240px;
  --yellow: #f2c318;
  --yellow-dim: #8a6a00;
}
body { font-family: var(--font-display); }

.logo { font-size: 16px; font-weight: 900; letter-spacing: 0.24em; }
.nav-links { gap: 0.6rem; }
.nav-link { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--text-muted); padding: 8px 0; }
.nav-link.active, .nav-link:hover { color: #fff; }
.nav-link::before { left: -16px; width: 8px; height: 2px; }
.sidebar-footer { font-size: 11px; }

.page-header h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; font-style: normal; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.1; }
.page-sub { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--text-muted); }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--red); }

.post-body { font-size: 16px; font-weight: 400; line-height: 1.95; letter-spacing: 0.01em; color: var(--text-dim); max-width: 680px; }
.post-date { font-size: 11px; }
.post-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-style: normal; }
.post-excerpt { font-family: var(--font-display); font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.post-read { font-size: 11px; color: var(--red); }
.post-full h1 { font-size: 30px; font-weight: 900; font-style: normal; }
.back-btn { font-size: 12px; }

.platform-btn { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; padding: 14px 22px; color: var(--text); border-color: var(--border); }
.platform-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.audio-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; font-style: normal; color: var(--text); }
.audio-sub { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.audio-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; }
.audio-duration { font-size: 13px; color: var(--text-dim); }
.play-btn { width: 52px; height: 52px; font-size: 16px; color: var(--text); border-color: var(--text-muted); }
.play-btn:hover { border-color: var(--red); color: var(--red); }

.social-link { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.social-link:hover { color: var(--red); }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--text-muted); }
.field input, .field textarea { font-family: var(--font-display); font-size: 15px; color: var(--text); }
.submit-btn { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--text); }
.form-confirm { font-size: 12px; line-height: 1.7; }
.mail-address { font-size: clamp(16px, 4.4vw, 22px); font-weight: 700; font-style: normal; }
.copy-btn { font-size: 11px; font-weight: 700; color: var(--text); }

.c-name { font-size: 13px; }
.c-desc { font-size: 14px; }
.colors li { grid-template-columns: 30px 110px minmax(0, 1fr); }
.year-label { font-size: 13px; }
.photo-upload-hint { font-size: 11px; }
.game-full { font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* ——— section BABYDAN : tout passe au jaune ——— */
.nav-babydan { color: var(--yellow); }
.nav-babydan.active, .nav-babydan:hover { color: var(--yellow); }
.nav-babydan::before { background: var(--yellow) !important; }
.page-yellow { --red: var(--yellow); --red-dim: var(--yellow-dim); }
.page-yellow .page-header h1 { color: var(--yellow); }
body.yellow #content { scrollbar-color: var(--yellow-dim) transparent; }
body.yellow .logo:hover { color: var(--yellow); }

.sub-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: -2rem 0 3rem; }
.sub-link, .mode-btn {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: transparent; border: 1px solid var(--border); padding: 12px 18px; cursor: pointer;
}
.sub-link:hover { border-color: var(--yellow); color: var(--yellow); }
.sub-link:focus-visible, .mode-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.mode-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.mode-btn.active { background: var(--yellow); border-color: var(--yellow); color: #151528; }
.mode-desc { font-size: 13px; line-height: 1.7; color: var(--text-dim); margin-bottom: 1.5rem; max-width: 560px; }
.bd-block { margin-bottom: 5rem; scroll-margin-top: 2rem; }
.tracklist { margin-top: 2rem; border: 1px solid var(--yellow-dim); padding: 20px 24px; max-width: 420px; }
.tl-head { font-size: 13px; font-weight: 900; letter-spacing: 0.14em; color: var(--yellow); margin-bottom: 12px; }
.tracklist ol { margin: 0; padding-left: 1.6em; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.tracklist li::marker { color: var(--yellow); font-weight: 900; }
.bd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.bd-photo { margin: 0; cursor: pointer; }
.bd-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--yellow-dim); transition: transform 0.3s; }
.bd-photo:hover img { transform: scale(1.02); }
.bd-photo figcaption { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

@media (max-width: 768px) {
  :root { --topbar-h: 58px; }
  .logo { font-size: 14px; }
  .nav-link { font-size: 12px; padding: 6px 0; }
  .sub-nav { margin-top: -1.5rem; }
  .post-body { font-size: 14px; }
  .colors li { grid-template-columns: 30px minmax(0, 1fr); }
  /* sur téléphone : BABYDAN juste après le logo, et un fondu à droite pour montrer que le menu défile */
  .nav-links li:has(.nav-babydan) { order: -1; }
  #sidebar { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 40px; }
}
@media (prefers-reduced-motion: reduce) { .bd-photo img { transition: none; } }


/* menu et boutons en rouge (jaune dans la section BABYDAN) */
.nav-link { color: var(--red); }
.nav-link.active, .nav-link:hover { color: #fff; }
.nav-babydan, .nav-babydan.active, .nav-babydan:hover { color: var(--yellow); }
.nav-babydan.active { text-shadow: 0 0 12px rgba(242, 195, 24, 0.45); }
.platform-btn, .sub-link, .copy-btn, .submit-btn, .back-btn { color: var(--red); border-color: var(--red-dim); }
.platform-btn:hover { color: #fff; }
.sub-link:hover { color: var(--yellow); border-color: var(--yellow); }
.social-link { color: var(--red); }
.social-link:hover { color: #fff; }
.play-btn { color: var(--red); border-color: var(--red-dim); }
.play-btn:hover { color: #fff; border-color: var(--red); }

/* trilogie BABYDAN */
.trilogy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; align-items: start; }
.album { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--yellow-dim); cursor: pointer; transition: transform 0.3s; }
.album img:hover { transform: scale(1.02); }
.album-name { font-size: 20px; font-weight: 900; letter-spacing: 0.06em; color: var(--yellow); }
.album-date { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); }
.album-desc { font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.album ol { margin: 0; padding-left: 1.7em; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.album li::marker { color: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .album img { transition: none; } }
.album-info { display: flex; flex-direction: column; gap: 10px; }


/* accueil BABYDAN 3 */
.hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.hero-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--yellow); box-shadow: 0 0 60px rgba(242, 195, 24, 0.18); cursor: pointer; }
.hero-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 900; letter-spacing: 0.03em; line-height: 1; color: var(--yellow); }
.hero-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: 0.06em; }
.hero-count { font-size: 13px; font-weight: 700; color: #151528; background: var(--yellow); padding: 4px 10px; letter-spacing: 0.1em; }
.hero-count:empty { display: none; }
.hero-tracks { margin: 0; padding-left: 1.7em; display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.hero-tracks li::marker { color: var(--yellow); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-play { align-self: flex-start; background: var(--yellow); color: #151528; border-color: var(--yellow); }
.hero-play:hover { background: transparent; color: var(--yellow); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-cover { max-width: 360px; }
}
.page-yellow .sub-nav { margin-top: 0; }

/* textes à lire en Montserrat, titres et menus en Orbitron */
:root { --font-body: 'Montserrat', system-ui, sans-serif; }
.post-body, .post-body p, .post-excerpt, .album-desc, .mode-desc, .c-desc,
.field input, .field textarea, .form-confirm, .album ol, .hero-tracks, .tracklist ol {
  font-family: var(--font-body);
  letter-spacing: 0;
}
.post-body { font-size: 17px; line-height: 1.8; font-weight: 500; }
.post-excerpt, .album-desc { font-size: 15px; line-height: 1.7; font-weight: 500; }
.mode-desc, .c-desc { font-size: 15px; font-weight: 500; }
.album ol, .hero-tracks { font-weight: 700; font-size: 16px; }
@media (max-width: 768px) { .post-body { font-size: 16px; } }

/* textes en Montserrat gras (lisibilité), titres et menu en Orbitron */
:root { --font-text: 'Montserrat', system-ui, sans-serif; }
.post-body, .post-excerpt, .album-desc, .mode-desc, .c-desc, .form-confirm,
.field input, .field textarea, .page-sub {
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0;
}
.post-body { font-size: 16px; line-height: 1.8; }
.post-excerpt, .album-desc, .c-desc, .mode-desc { font-size: 15px; line-height: 1.7; }
.page-sub { font-size: 13px; letter-spacing: 0.04em; }
.field input::placeholder, .field textarea::placeholder { font-weight: 500; }

.story + .story { margin-top: -1rem; }
.post-body em { font-style: italic; color: var(--text); }

.story-listen { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 14px; }

/* Nostalgie : photos datées */
.year-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.photo-item { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo-slot { aspect-ratio: 4 / 5; border: 1px solid var(--border); }
.photo-slot img { opacity: 1; object-position: 50% 30%; }
.photo-item figcaption { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.year-label { font-size: 22px; font-weight: 900; color: var(--red); }
@media (max-width: 480px) { .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.journal-soon{font-family:var(--font-text);font-weight:700;font-size:clamp(18px,3vw,26px);color:#f0ebe8;opacity:.85;margin:24px 0}

.story-photo{display:block;width:min(100%,440px);max-width:100%;height:auto;border-radius:10px;margin:14px 0 22px;box-shadow:0 12px 30px rgba(0,0,0,.45)}

.wave-bars{justify-content:space-between;width:100%}

.form-confirm.form-blocked{color:var(--red)}

.story-hero{display:block;width:min(100%,520px);max-width:100%;height:auto;border-radius:12px;margin:18px 0 6px;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.story .post-body + .story-photo{margin:6px 0 28px}

/* ——— ÉCRAN D'ENTRÉE JAUNE ——— */
html.splashing, html.splashing body{overflow:hidden}
#splash{position:fixed;inset:0;z-index:10000;background:#f2c318;color:#0d0f24;display:flex;align-items:center;justify-content:center;cursor:pointer;
  padding:0 max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));transition:opacity .6s ease, visibility .6s}
#splash.out{opacity:0;visibility:hidden}
.splash-in{display:flex;flex-direction:column;align-items:center;gap:.15em;font-family:'Orbitron',sans-serif;font-weight:900;text-align:center;line-height:1}
.splash-in span{display:block;opacity:0;transform:translateY(14px);animation:splashIn .5s cubic-bezier(.2,.8,.2,1) forwards}
.splash-in .s1{font-size:clamp(46px,13vw,150px);letter-spacing:.02em;animation-delay:.1s}
.splash-in .s2{font-size:clamp(20px,5.2vw,56px);letter-spacing:.14em;animation-delay:.55s}
.splash-in .s3{font-size:clamp(40px,11vw,128px);letter-spacing:.06em;color:#e8343c;animation:splashIn .5s cubic-bezier(.2,.8,.2,1) .95s forwards, splashShake .35s steps(2) 1.5s 2}
@keyframes splashIn{to{opacity:1;transform:none}}
@keyframes splashShake{0%{transform:translate(0,0)}25%{transform:translate(-4px,2px)}50%{transform:translate(4px,-2px)}75%{transform:translate(-2px,-2px)}100%{transform:none}}
@media (prefers-reduced-motion: reduce){.splash-in span{animation:none!important;opacity:1;transform:none}}
