/* ========================================
   LUDO'SPHÈRE - STYLES
   ======================================== */

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  font-family: "Instrument Sans", sans-serif;
  background-color: #f9f8f6;
  color: #0d0d0d;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #f0ede8;
}

::-webkit-scrollbar-thumb {
  background: #c7bfb3;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

/* Amélioration lisibilité des chiffres */
#month-title,
#next-date,
#calendar-grid,
.today-pill,
.event-card,
#partnerships-list {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 500;
}

/* Chiffres en gras dans les éléments critiques */
#next-date,
.today-pill {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Header */
header {
  border-bottom: 1px solid #e2ddd7;
  background: rgba(249, 248, 246, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(4px);
}

header .max-w-5xl {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 3.5rem;
  width: auto;
}

header a {
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2ddd7;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  transition: all 200ms;
  text-decoration: none;
  color: #0d0d0d;
}

header a:hover {
  background-color: #0d0d0d;
  color: #f9f8f6;
  border-color: #0d0d0d;
}

/* Pills & Badges */
.today-pill {
  background: #2563eb;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 0.4rem;
  text-transform: uppercase;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  border: 1px solid #e2ddd7;
  color: #888;
  margin-bottom: 0.3rem;
}

/* Event Card */
.event-card {
  border-left: 2px solid #e2ddd7;
  transition: border-color 0.2s, background 0.2s;
}

.event-card:hover {
  border-left-color: #2563eb;
  background: #f0ede8;
}

/* Skeleton Loading */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #ede9e2 25%, #f5f3ef 50%, #ede9e2 75%);
  background-size: 600px 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}

/* Photo Cards */
.photo-card {
  overflow: hidden;
  border-radius: 12px;
}

.photo-card img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card:hover img {
  transform: scale(1.04);
}

/* Animations */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.45s ease both;
}

.animate-fade-up-2 {
  animation: fadeUp 0.45s 0.1s ease both;
}

.animate-fade-up-3 {
  animation: fadeUp 0.45s 0.2s ease both;
}

.animate-fade-up-4 {
  animation: fadeUp 0.45s 0.3s ease both;
}

/* Utilities */
.text-accent {
  color: #2563eb;
}

.bg-paper {
  background-color: #f9f8f6;
}

.text-ink {
  color: #0d0d0d;
}

.border-line {
  border-color: #e2ddd7;
}

.bg-mist {
  background-color: #f0ede8;
}

.font-display {
  font-family: "Syne", sans-serif;
}

/* Partnership Banner */
#partnerships-banner {
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid #bfdbfe;
  padding: 1rem 0;
}

#partnerships-banner h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 0.75rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  header .max-w-5xl {
    padding: 1rem;
  }

  header img {
    height: 3rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  .photo-card {
    height: 12rem;
  }
}
