* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent: #c9a66b;
  --accent-light: #e0c088;
  --text-primary: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.1);
}

html {
  background: var(--bg-primary);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ========== INTRO SCREEN ========== */
.intro-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  position: relative;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-screen::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 166, 107, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.intro-screen.hidden {
  display: none;
}

.intro-screen h1 {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.intro-screen > p {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.15s forwards;
}

.btn-discover {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.9rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-discover:active {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(0.98);
}

.btn-discover.hidden {
  display: none;
}

/* Password form */
.password-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.password-form.hidden {
  display: none;
}

.password-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.15em;
  border-radius: 0;
  outline: none;
  width: 220px;
  transition: all 0.3s ease;
}

.password-form input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.password-form input::placeholder {
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.password-error {
  color: #c0392b;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  height: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-error.visible {
  opacity: 1;
}

/* Bouton après validation */
#btnDiscover {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* Bouton installation */
.btn-install {
  position: absolute;
  bottom: 2rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-install:hover,
.btn-install:active {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-install.hidden {
  display: none;
}

/* ========== CALENDAR ========== */
.calendar-container {
  display: none;
  padding: 1.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-primary);
  opacity: 0;
}

.calendar-container.active {
  display: block;
  animation: calendarIn 0.8s ease 0.2s forwards;
}

@keyframes calendarIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ========== DAY CARDS ========== */
.day-card {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.day-card .day-number {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
}

.day-card .day-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Locked */
.day-card.locked {
  opacity: 0.25;
  cursor: not-allowed;
}

.day-card.locked .day-number {
  color: var(--text-secondary);
}

/* Unlocked */
.day-card.unlocked {
  border-color: var(--accent);
  background: rgba(201, 166, 107, 0.08);
  box-shadow: 0 0 20px rgba(201, 166, 107, 0.15);
}

.day-card.unlocked .day-number {
  color: var(--accent-light);
}

.day-card.unlocked .day-label {
  opacity: 1;
}

/* Opened */
.day-card.opened {
  opacity: 0.5;
  border-color: var(--border-subtle);
  background: var(--bg-card);
  box-shadow: none;
}

.day-card.opened .day-number {
  color: var(--text-secondary);
}

.day-card.opened .day-label {
  opacity: 0;
}

.day-card:active:not(.locked) {
  transform: scale(0.96);
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

.modal-close:active {
  background: rgba(255, 255, 255, 0.2);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header .day-number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.modal-header .day-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 3px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-body p {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Lazy loading images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Polaroid a sa propre animation */
.polaroid-image .lazy-image {
  opacity: 1;
  transition: none;
}

.modal-body video {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.modal-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: none;
}

.caption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

.media-intro {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.media-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ========== WELCOME ========== */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.welcome-greeting {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: welcomeGreeting 1s ease forwards;
}

@keyframes welcomeGreeting {
  0% {
    opacity: 0;
    transform: scale(0.9);
    letter-spacing: 0.1em;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.02em;
  }
}

.welcome-paragraph {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 320px;
  opacity: 0;
  animation: welcomeFadeIn 0.6s ease forwards;
}

.welcome-paragraph:last-of-type {
  margin-bottom: 0;
}

@keyframes welcomeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 2rem;
  opacity: 0;
  animation: welcomeSignature 0.8s ease forwards;
}

@keyframes welcomeSignature {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== SLIDER ========== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  touch-action: pan-y pinch-zoom;
  background: rgba(0, 0, 0, 0.3);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.96);
  animation: sliderReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sliderReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slider-slide.active {
  opacity: 1;
  transform: scale(1);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  margin-bottom: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
}

.slider:hover .slider-arrow:not(.hidden) {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 1.2rem 0 0.8rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
  opacity: 1;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 166, 107, 0.5);
}

.slider-caption.slider-caption {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  min-height: 1.2em;
  padding: 0 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem !important;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.3s forwards;
}

.slider-caption:empty {
  display: none;
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  margin-bottom: 0;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* ========== VIDEOS (multi) ========== */
.videos-item {
  margin-bottom: 2rem;
}

.videos-item:last-child {
  margin-bottom: 0;
}

.videos-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  text-align: center;
}

.videos-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.8rem;
  font-style: italic;
}

/* ========== VIDEO PLAYER ========== */
.video-player {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.video-player video {
  width: 100%;
  display: block;
  vertical-align: bottom;
  margin-bottom: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-player.playing .video-overlay {
  opacity: 0;
}

.video-player.playing .video-overlay:hover {
  opacity: 1;
}

.video-player.hide-controls .video-overlay,
.video-player.hide-controls .video-controls {
  opacity: 0 !important;
  pointer-events: none;
}

.video-player.hide-controls {
  cursor: none;
}

.video-play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 3px;
}

.video-overlay:hover .video-play-btn {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.video-player.playing .video-play-btn svg path {
  d: path("M6 4h4v16H6V4zm8 0h4v16h-4V4z");
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player:hover .video-controls,
.video-player.playing .video-controls {
  opacity: 1;
}

.video-progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.video-mute-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.video-mute-btn:hover {
  opacity: 1;
}

.video-mute-btn svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.video-mute-btn.muted svg path {
  d: path("M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z");
}

.video-fullscreen-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.video-fullscreen-btn:hover {
  opacity: 1;
}

.video-fullscreen-btn svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* Fullscreen mode */
.video-player:fullscreen,
.video-player:-webkit-full-screen {
  background: #000;
}

.video-player:fullscreen video,
.video-player:-webkit-full-screen video {
  height: 100%;
  object-fit: contain;
}

.video-player:fullscreen .video-controls,
.video-player:-webkit-full-screen .video-controls {
  padding: 1.5rem 2rem;
}

/* ========== POLAROID ========== */
.polaroid-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.polaroid {
  background: linear-gradient(165deg, #fefefa 0%, #f5f2e8 100%);
  padding: 10px 10px 22px 10px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.08);
  transform: rotate(var(--rotation, 0deg)) translateY(30px);
  opacity: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  max-width: 82%;
  position: relative;
}

.polaroid.polaroid-visible {
  animation: polaroidReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.polaroid::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.polaroid:hover {
  transform: rotate(calc(var(--rotation, 0deg) * 0.5)) scale(1.03) translateY(-4px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.1);
}

.polaroid-image {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
}

.polaroid-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 40%,
      transparent 60%,
      rgba(0, 0, 0, 0.06) 100%
    );
  pointer-events: none;
  z-index: 2;
}

.polaroid-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

.polaroid-image img {
  width: 100%;
  display: block;
  animation: photoReveal 2.5s ease forwards;
  filter: sepia(8%) saturate(95%) brightness(98%);
  margin-bottom: 0;
}

.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: #4a4540;
  text-align: center;
  padding-top: 10px;
  min-height: 1.4em;
  letter-spacing: 0.02em;
}

@keyframes polaroidReveal {
  0% {
    opacity: 0;
    transform: rotate(var(--rotation, 0deg)) translateY(40px) scale(0.92);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(var(--rotation, 0deg)) translateY(0) scale(1);
  }
}

@keyframes photoReveal {
  0% {
    filter: sepia(100%) brightness(0.2) contrast(0.7) saturate(60%);
  }
  25% {
    filter: sepia(70%) brightness(0.4) contrast(0.85) saturate(70%);
  }
  50% {
    filter: sepia(40%) brightness(0.7) contrast(0.95) saturate(85%);
  }
  75% {
    filter: sepia(20%) brightness(0.9) contrast(1) saturate(92%);
  }
  100% {
    filter: sepia(8%) saturate(95%) brightness(98%);
  }
}

/* ========== PLAYLIST ========== */
.playlist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.playlist-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 80px;
  padding: 1rem 0;
}

.playlist-bar {
  width: 6px;
  height: 3%;
  background: linear-gradient(to top, var(--accent), var(--accent-light));
  border-radius: 3px;
  transition: height 0.05s ease;
  opacity: 0.4;
}

.playlist.playing .playlist-bar {
  opacity: 1;
}

.playlist-now-playing {
  text-align: center;
}

.playlist-track-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.playlist-track-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.playlist-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.playlist-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.playlist-nav-btn:active {
  transform: scale(0.95);
}

.playlist-nav-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.playlist-next-btn svg {
  transform: scaleX(-1);
}

.playlist-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.playlist-play-btn:hover {
  transform: scale(1.05);
  background: var(--accent-light);
}

.playlist-play-btn:active {
  transform: scale(0.95);
}

.playlist-play-btn svg {
  width: 26px;
  height: 26px;
  color: var(--bg-primary);
  margin-left: 3px;
}

.playlist.playing .playlist-play-btn svg {
  margin-left: 0;
}

.playlist-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 0.5rem;
}

.playlist-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.playlist-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 6px;
  transition: width 0.1s linear;
  pointer-events: none;
}

.playlist-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 35px;
  font-variant-numeric: tabular-nums;
}

.playlist-time:first-child {
  text-align: right;
}

.playlist-time:last-child {
  text-align: left;
}

.playlist-tracks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.5rem;
}

.playlist-track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-track-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.playlist-track-item.active {
  background: rgba(201, 166, 107, 0.1);
  border-left: 2px solid var(--accent);
}

.playlist-track-num {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 1.5rem;
}

.playlist-track-item.active .playlist-track-num {
  color: var(--accent);
}

.playlist-track-info {
  flex: 1;
  min-width: 0;
}

.playlist-track-name {
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-track-artist-small {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ========== DONTCLICK ========== */
.dontclick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  position: relative;
  min-height: 300px;
}

.dontclick-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.dontclick-chaos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dontclick-head {
  position: absolute;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(var(--scale, 1));
  animation: headPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  z-index: 1;
}

@keyframes headPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(calc(var(--scale, 1) * 1.2));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(var(--scale, 1));
  }
}

.dontclick-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-subtle);
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.dontclick-btn:hover {
  border-color: var(--text-secondary);
}

.dontclick-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.05);
}

.dontclick-message {
  position: fixed;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
  max-width: 80%;
}

.dontclick-message.visible {
  opacity: 1;
}

/* ========== JOURNAL ========== */
.journal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journal-prompt {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.journal-prompt p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.journal-prompt p:first-child {
  font-size: 1.25rem;
  font-style: normal;
  color: var(--accent-light);
}

.journal-prompt p:last-child {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.journal-textarea {
  width: 100%;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.journal-textarea::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.journal-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.journal-saved {
  font-size: 0.75rem;
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 1rem;
}

.journal-saved.visible {
  opacity: 1;
}

/* ========== LETTER ========== */
.letter {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.5rem 0;
}

.letter-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  opacity: 0;
  animation: letterLineIn 0.8s ease forwards;
}

.letter-context {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
}

.letter-fear {
  color: var(--text-primary);
  padding-left: 0.5rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
}

.letter-conclusion {
  font-size: 1.15rem;
  font-weight: 500;
  font-style: normal;
  color: var(--accent-light);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

@keyframes letterLineIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== POETIC ========== */
.poetic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.poetic-dropcap {
  font-size: 2.2em;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  margin-right: 0.03em;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: dropCapIn 0.6s ease forwards;
}

.poetic-text {
  display: inline;
}

.poetic-word {
  opacity: 0;
  animation: wordFadeIn 0.3s ease forwards;
}

@keyframes dropCapIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wordFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========== MIXED DELAYED (après poetic) ========== */
.mixed-delayed {
  opacity: 0;
  animation: mixedFadeIn 1s ease forwards;
  animation-delay: 3.5s;
}

@keyframes mixedFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  cursor: zoom-out;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.lightbox.has-gallery .lightbox-prev,
.lightbox.has-gallery .lightbox-next {
  display: block;
}

.lightbox-prev {
  left: 0;
  cursor: w-resize;
}

.lightbox-next {
  right: 0;
  cursor: e-resize;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
