/* ─────────────────────────────────────────
   RESET et BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #fdf6e3;
  --paper:       #fffef7;
  --card:        #ffffff;
  --border:      #d4b896;
  --accent1:     #e84545;   /* rouge vif */
  --accent2:     #2d6a4f;   /* vert montagne */
  --accent3:     #f4a261;   /* orange chaleureux */
  --accent4:     #264653;   /* bleu ardoise */
  --text:        #2c1810;
  --muted:       #8b6914;
  --tag-bg:      #fde8cc;
  --tag-text:    #7a4f1d;
  --font-hand:   'Permanent Marker', cursive;
  --font-caveat: 'Caveat', cursive;
  --font-body:   'Nunito', sans-serif;
  --radius:      16px;
  --shadow:      4px 4px 0px #2c181033;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      #e8d5b7 28px
    );
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1rem;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--accent4);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 50%, #3a7ca5 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 50%, #1a3a4a 0%, transparent 60%);
  padding: 5rem 2rem 4rem;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-wobble-bg {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  position: relative;
  max-width: 680px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--accent1);
  color: #fff;
  font-family: var(--font-caveat);
  font-size: 1rem;
  font-weight: 700;
  padding: .3em 1em;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  transform: rotate(-1deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,.3);
  letter-spacing: .05em;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-hand);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--accent3);
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0,0,0,.3);
  display: block;
}

.hero-sub-title {
  font-family: var(--font-caveat);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #a8d8ea;
  font-weight: 600;
  display: block;
}

.hero-tagline {
  font-family: var(--font-caveat);
  font-size: 1.2rem;
  color: #d4e8f0;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .5rem .9rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-num {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--accent3);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: .72rem;
  color: #a8d8ea;
  font-family: var(--font-body);
  margin-top: .2rem;
}

.stat-sep {
  color: rgba(255,255,255,.3);
  font-size: 1.5rem;
}

.hero-scroll-hint {
  font-family: var(--font-caveat);
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Dahu dans le coin du hero */
.hero-dahu {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  z-index: 3;
  text-align: center;
  animation: sway 4s ease-in-out infinite;
}

.hero-dahu img {
  width: 160px;
  filter: drop-shadow(4px 4px 8px rgba(0,0,0,.4));
}

.dahu-caption {
  font-family: var(--font-caveat);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: .3rem;
  font-style: italic;
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2deg); }
}

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ─────────────────────────────────────────
   INTRO NOTEBOOK
───────────────────────────────────────── */
.intro-section {
  margin-bottom: 4rem;
}

.notebook-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2rem 4rem;
  transform: rotate(.4deg);
}

.notebook-card::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 0; bottom: 0;
  width: 2px;
  background: #f4a26166;
}

.notebook-card h2 {
  font-family: var(--font-caveat);
  font-size: 1.8rem;
  color: var(--accent1);
  margin-bottom: 1rem;
}

.notebook-card p {
  margin-bottom: .8rem;
  font-size: .97rem;
  color: var(--text);
}

.notebook-card strong { color: var(--accent2); }

.notebook-note {
  font-family: var(--font-caveat);
  font-size: .9rem !important;
  color: var(--muted) !important;
  border-top: 1px dashed var(--border);
  padding-top: .8rem;
  margin-top: 1rem;
}

/* ─────────────────────────────────────────
   SECTION TITLE
───────────────────────────────────────── */
.section-title {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--accent4);
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
}

/* ─────────────────────────────────────────
   SONG CARD
───────────────────────────────────────── */
.song-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s;
}

.song-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px #2c181033;
}

.song-card-coming {
  opacity: .75;
  background: var(--bg);
}

.song-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.track-num {
  font-family: var(--font-hand);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  min-width: 3.5rem;
}

.song-title-block { flex: 1; }

.song-title-block h3 {
  font-family: var(--font-caveat);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent1);
  margin-bottom: .2rem;
}

.song-subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .4rem;
}

.song-tags {
  font-size: .72rem;
  color: var(--tag-text);
  font-family: var(--font-body);
}

.song-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   IMAGE PLACEHOLDER
───────────────────────────────────────── */
.song-image-block {
  margin-bottom: 1.5rem;
}

.image-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #f5ead8,
    #f5ead8 10px,
    #fdf6e3 10px,
    #fdf6e3 20px
  );
  border: 2px dashed var(--border);
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 2rem;
}

.image-placeholder.tall { min-height: 220px; }

.image-placeholder-icon { font-size: 3rem; }

.image-placeholder-text {
  font-family: var(--font-caveat);
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.image-caption {
  font-family: var(--font-caveat);
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

/* ─────────────────────────────────────────
   SONG DESC
───────────────────────────────────────── */
.song-desc {
  border-left: 4px solid var(--accent3);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  font-size: .97rem;
  color: #4a3020;
}

/* ─────────────────────────────────────────
   LECTEUR CUSTOM
───────────────────────────────────────── */
.player-wrap { margin-bottom: 1.2rem; }

.player {
  background: var(--accent4);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 3px 3px 0 rgba(0,0,0,.15);
}

.player-info {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .8rem;
}

.vinyl-wrap {
  flex-shrink: 0;
}

.vinyl-icon {
  width: 36px;
  height: 36px;
  color: var(--accent3);
}

.vinyl-spin { animation: none; }
.vinyl-spin.playing { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-info strong {
  display: block;
  font-size: .95rem;
  color: #fff;
  font-family: var(--font-caveat);
  font-size: 1.1rem;
}

.player-info span {
  font-size: .72rem;
  color: #a8d8ea;
}

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

.btn-play {
  background: var(--accent3);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  transition: transform .15s, background .15s;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}

.btn-play:hover { transform: scale(1.1); background: #e8914a; }
.btn-play svg { width: 18px; height: 18px; }

.progress-wrap { flex: 1; }

.progress-bar {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: .35rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent3);
  border-radius: 3px;
  pointer-events: none;
}

.progress-range {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  height: 22px;
  margin: 0;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
}

.loading-bar {
  margin-top: .6rem;
  font-size: .74rem;
  color: rgba(255,255,255,.6);
  font-family: var(--font-caveat);
}

.loading-progress {
  margin-top: .3rem;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: var(--accent3);
  border-radius: 2px;
  transition: width .3s;
}

/* ─────────────────────────────────────────
   DETAILS  PAROLES et DAHU
───────────────────────────────────────── */
details {
  border-top: 2px dashed var(--border);
  padding-top: .8rem;
  margin-top: .8rem;
}

summary {
  font-family: var(--font-caveat);
  font-size: 1.1rem;
  color: var(--accent2);
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent1); }

.lyrics-content {
  padding: 1.2rem 0 .4rem;
  font-size: .95rem;
  color: var(--text);
}

.lyrics-content p {
  margin-bottom: 1rem;
  white-space: pre-line;
  line-height: 1.7;
}

.lyrics-spoken {
  font-family: var(--font-caveat);
  font-size: 1rem !important;
  color: var(--muted) !important;
  background: var(--bg);
  border-left: 3px solid var(--accent3);
  padding: .6rem 1rem !important;
  border-radius: 0 8px 8px 0;
}

/* DAHU BLOCK */
.dahu-content {
  display: flex;
  gap: 1.5rem;
  padding: 1.2rem 0 .4rem;
  align-items: flex-start;
}

.dahu-image-wrap img {
  width: 180px;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.dahu-facts h4 {
  font-family: var(--font-caveat);
  font-size: 1.2rem;
  color: var(--accent2);
  margin-bottom: .6rem;
  font-style: italic;
}

.dahu-facts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .9rem;
  margin-bottom: .8rem;
}

.dahu-note {
  font-family: var(--font-caveat);
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px dashed var(--border);
  padding-top: .6rem;
}

/* ─────────────────────────────────────────
   COMING SOON
───────────────────────────────────────── */
.coming-soon-banner {
  background: var(--bg);
  border: 2px dashed var(--accent3);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-caveat);
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ─────────────────────────────────────────
   GALERIE
───────────────────────────────────────── */
.gallery-section {
  margin-top: 4rem;
}

.gallery-intro {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-caveat);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
}

.gallery-caption {
  font-family: var(--font-caveat);
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
  margin-top: .4rem;
  font-style: italic;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--accent4);
  color: #a8d8ea;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-dahu img {
  width: 80px;
  opacity: .7;
  filter: grayscale(.3);
}

.footer-title {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--accent3);
}

.footer-small {
  font-size: .78rem;
  opacity: .6;
  font-style: italic;
  margin-top: .3rem;
}

.tag {
  display: inline-block;
  background: rgba(255,255,255,.1);
  color: #a8d8ea;
  padding: .2em .6em;
  border-radius: 4px;
  font-size: .75rem;
  margin: .15rem;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 650px) {
  .hero-dahu { display: none; }
  .hero { padding: 3rem 1.2rem 3rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .dahu-content { flex-direction: column; }
  .dahu-image-wrap img { width: 100%; }
  .song-card { padding: 1.2rem; }
  .hero-stats { gap: .5rem; }
}

/* Navigation hero tracklist */
.hero-tracklist {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-track {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .4em 1em;
  border-radius: 20px;
  font-family: var(--font-caveat);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.hero-track:hover {
  background: rgba(255,255,255,.25);
  text-decoration: none;
}

/* Dahu showcase dans la card 3  */
.dahu-showcase {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fdf0d5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 1rem;
}

.dahu-showcase img {
  max-height: 180px;
  width: auto;
}

.dahu-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: .5rem 1rem;
  font-family: var(--font-caveat);
  font-size: .95rem;
  display: flex;
  flex-direction: column;
}

.dahu-sublabel {
  font-size: .75rem;
  opacity: .7;
  font-style: italic;
}
