:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7bd389;
  --accent-2: #6fb3ff;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --text-light: #e6eef6;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

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

html, body {
  height: 100%;
  background: linear-gradient(180deg,#071021 0%, #071827 60%);
  color: var(--text-light);
  overflow-x: hidden; /* empêche le scroll horizontal */
}

a { color: var(--accent-2); text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 36, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
header.shrink {
  padding: 12px 28px;
  background: rgba(15, 23, 36, 0.95);
  transition: all 0.25s ease;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #04222a;
}

nav { display: flex; gap: 16px; align-items: center; }

/* Hamburger menu */
#menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
#menu-btn .bar {
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
#menu-btn.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menu-btn.active .bar:nth-child(2) { opacity: 0; }
#menu-btn.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}
.hero-card {
  background: var(--glass);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(2,6,23,0.6);
}
h1 { font-size: 36px; line-height: 1.05; margin-bottom: 12px; }
.lead { color: var(--muted); margin-top: 12px; }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { background: rgba(255,255,255,0.03); padding: 6px 10px; border-radius: 999px; font-size: 13px; }

/* Producers */
.producers { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.producer { display: flex; gap: 12px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.pink { background: linear-gradient(135deg,#ffb6c4,#ff8fa3); color: #2b1020; }
.avatar.blue { background: linear-gradient(135deg,#b8d7ff,#7fb7ff); color: #052239; }

/* ===== Podcasts ===== */

.podcast-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.podcard {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--glass);
  align-items: center;
}
.pod-thumb { width: 86px; height: 86px; border-radius: 10px; background: linear-gradient(135deg,#20394a,#11323d); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pod-meta { flex: 1; }
.small { font-size: 13px; color: var(--muted); }

/* Podcast grid */
#podcastGrid .card {
  background: var(--glass);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
}
#podcastGrid .card div:first-child { display: flex; gap: 12px; align-items: center; }

/* Play buttons */
.play {
  width: 32px; height: 32px;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(123,211,137,0.15);
  border-radius: 50%;
  border: none;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s ease;
}
.play:hover { background: rgba(123,211,137,0.35); }

/* ===== Sur nos platines ===== 
#playlistSelect {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: #0f1b23;
  border: 1px solid #243944;
  color: var(--text-light);
}

#playlistEmbed {
  width: 100%;
  max-width: 660px;
  border-radius: 12px;
  overflow: hidden;
}

#playlistEmbed iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
}
*/

/* Conteneur flex podcasts + playlist */
#podcasts-and-player .container-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap; /* permet l'empilement sur mobile */
}

#podcasts-and-player .col {
  flex: 1 1 260px; /* min-width pour éviter de trop réduire */
  min-width: 260px;
}

#playlistSelect {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #243944;
  background: #0f1b23;
  color: var(--text-light);
}

/* Media queries : mobile empile les colonnes */
@media (max-width: 800px) {
  #podcasts-and-player .container-flex {
    flex-direction: column;
  }
  #podcasts-and-player .col {
    width: 100%;
    min-width: 0;
  }
  #playlistEmbed iframe {
    width: 100%;
    height: 300px;
  }
}



/* ===== Projets / Ateliers ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 22px;
}
.ateliers-grid { display: grid; grid-template-columns: 1fr 320px; gap: 12px; margin-top: 12px; }
.card, .ateliers-grid .card { background: var(--glass); padding: 18px; border-radius: 12px; }

/* Map et images */
#map, .project-image {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  object-fit: cover;
}
.project-image:hover { transform: scale(1.02); transition: 0.3s; }

/* ===== Footer ===== */
footer { margin-top: 28px; padding: 28px; border-top: 1px solid rgba(255,255,255,0.03); color: var(--muted); }

/* ===== Formulaire ===== */
form { display: grid; gap: 8px; }
input, textarea { background: transparent; border: 1px solid rgba(255,255,255,0.06); padding: 10px; border-radius: 8px; color: inherit; }
button[type=submit] { background: var(--accent-2); color: #04222a; padding: 10px; border-radius: 10px; border: none; font-weight: 700; }

/* ===== Modale ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}
.modal.active { display: flex; }
.modal-content {
  background: var(--card);
  color: var(--text-light);
  padding: 30px 36px;
  border-radius: var(--radius);
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  position: relative;
}
.close-btn { position: absolute; top: 18px; right: 22px; background: transparent; border: none; color: var(--muted); font-size: 26px; cursor: pointer; }

/* ===== Soutien Patreon / Tipeee ===== */
.support-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.btn-support {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn-support:hover { transform: scale(1.05); }
.btn-support.patreon { background: #ff424d; }
.btn-support.patreon:hover { background: #f96854; }
.btn-support.tipeee { background: #ff9d00; }
.btn-support.tipeee:hover { background: #ffb84d; }

/* ===== Responsive ===== */
@media(max-width:1000px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .grid, .ateliers-grid { grid-template-columns: 1fr; }
}

@media(max-width:800px) {
  .hero { gap: 20px; }
  .hero-card { padding: 24px; }
  .ateliers-grid { grid-template-columns: 1fr; }
  
  nav {
    position: fixed; top:0; right:-100%; width:70%; height:100vh;
    background: rgba(10,16,26,0.97);
    flex-direction: column; justify-content: center; align-items: center; gap:26px;
    transition: right 0.3s ease;
    z-index:1000;
  }
  nav.open { right:0; }
  nav a { font-size:1.2rem; font-weight:600; }
  #menu-btn { display:flex; }

  /* Podcasts + playlist : colonne */
  #podcasts-and-player {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  #podcasts, #playlistEmbed { width: 100%; }
  #playlistEmbed iframe { height: 300px; }

  /* Podcast podcards */
  .podcard { flex-direction: column; align-items: flex-start; }
  .pod-thumb { margin-bottom: 8px; }

  /* Support buttons : empilés */
  .support-buttons { flex-direction: column; gap: 12px; }
  .btn-support { width: 100%; padding: 12px 0; text-align:center; }

  /* Footer padding réduit */
  footer { padding: 20px; }

  /* Hero chips et producers */
  .chips, .producers { flex-wrap: wrap; gap: 10px; }
}
.btn-support.yumi {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04222a;
  border-radius: 20px;
  padding: 12px 20px;
  font-weight: 700;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-support.yumi:hover {
  transform: scale(1.05);
}
