/* ===== VARIABLES - CORAL NIGHTS PALETTE ===== */
:root {
  /* Palette principale */
  --night-deep: #0A0E27;
  --night-blue: #1B2B4A;
  --teal-deep: #0D7377;
  --turquoise-electric: #14FFEC;
  --mint-fresh: #C7F0DB;
  --white-off: #FAFBFC;
  --slate-gray: #4A5568;
  --border-light: #E2E8F0;

  /* Coral (conservé de Tibo) */
  --accent-coral: #E85A6B;
  --accent-coral-dark: #D64A5B;
  --accent-coral-light: #F2A5AD;

  /* Manquants (corrigés) */
  --sage-light: #E2E8F0;
  --text-muted: #718096;
  --cream: #F7F5F0;

  /* Effets */
  --shadow-sm: 0 1px 3px rgba(10, 14, 39, 0.1);
  --shadow-md: 0 4px 12px rgba(10, 14, 39, 0.15);
  --shadow-lg: 0 8px 24px rgba(10, 14, 39, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--night-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 72px;
  --hero-overlay: rgba(10, 14, 39, 0); /* défaut nuit, override via JS */
}

/* Overlay couleur heure du jour */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
  transition: background 3s ease;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(20, 255, 236, 0.4);
  border-radius: 999px;
  color: var(--turquoise-electric);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(20, 255, 236, 0.06);
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--white-off);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(250, 251, 252, 0.65);
  min-height: 2.5em;
  line-height: 1.5;
  transition: opacity 0.4s ease;
  max-width: 480px;
}

.hero-tagline.fade-out {
  opacity: 0;
}

/* Barre date + météo */
.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: 500;
  color: rgba(250, 251, 252, 0.45);
  letter-spacing: 0.3px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-datetime {
  font-variant-numeric: tabular-nums;
}

.hero-meta-sep {
  opacity: 0.3;
}

.hero-weather {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-weather-icon {
  font-size: 1em;
  line-height: 1;
  /* shimmer pendant le chargement */
  filter: grayscale(1);
  opacity: 0.3;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.hero-weather-icon.loaded {
  filter: none;
  opacity: 1;
}

/* Carte événement aléatoire */
.hero-event-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(20, 255, 236, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: left;
  width: 100%;
  max-width: 420px;
  animation: heroCardFadeIn 0.6s ease forwards;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-event-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(20, 255, 236, 0.45);
}

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

.hero-event-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-coral);
  margin-bottom: 6px;
}

.hero-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white-off);
  margin-bottom: 6px;
  line-height: 1.3;
}

.hero-event-meta {
  font-size: 0.82rem;
  color: rgba(250, 251, 252, 0.55);
}

/* Skeleton loader */
.hero-event-skeleton {
  width: 100%;
  max-width: 420px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite;
  width: 100%;
}

.skeleton-line--short { width: 35%; height: 10px; }
.skeleton-line--medium { width: 60%; }

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Bouton CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent-coral);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(232, 90, 107, 0.35);
  margin-top: 4px;
}

.hero-cta:hover {
  background: var(--accent-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 90, 107, 0.45);
}

.hero-cta-arrow {
  display: inline-block;
  animation: heroBounce 1.4s ease-in-out infinite;
}

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

/* Scroll hint (point en bas) */
.hero-scroll-hint {
  display: none;
}

.hero-scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 255, 236, 0.5);
  animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    padding: 60px 16px 56px;
  }

  .hero-content {
    gap: 16px;
  }

  .hero-title {
    letter-spacing: -0.5px;
  }

  .hero-event-card,
  .hero-event-skeleton {
    max-width: 100%;
  }

  .hero-cta {
    padding: 12px 26px;
    font-size: 0.95rem;
  }
}

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

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F0F4F8;
  color: var(--night-deep);
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 72px;
}

/* ===== SITE HEADER / NAVBAR ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  background: rgba(10, 14, 39, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 255, 236, 0.12);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(10, 14, 39, 0.6);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}

.site-nav__logo img {
  height: 52px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.site-nav__links li {
  display: flex;
}


.site-nav__link {
  padding: 8px 14px;
  color: rgba(250, 251, 252, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--turquoise-electric);
  background: rgba(20, 255, 236, 0.07);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--accent-coral);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.site-nav__cta:hover {
  background: var(--accent-coral-dark);
  transform: translateY(-1px);
}

.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white-off);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-nav__hamburger {
    display: flex;
  }

  .site-nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    border-bottom: 1px solid rgba(20, 255, 236, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 2px;
    display: none;
    z-index: 190;
  }

  .site-nav__links.open {
    display: flex;
  }

  .site-nav__link {
    font-size: 1rem;
    padding: 13px 16px;
  }

  .site-nav__cta {
    font-size: 0.78rem;
    padding: 7px 12px;
  }
}


/* ===== BANNIÈRE SOUMISSION ===== */
.submit-banner {
  background: #F0F4F8;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.submit-banner__text {
  font-size: 0.875rem;
  color: var(--slate-gray);
  font-weight: 500;
}

.submit-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.submit-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal-deep);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.submit-banner__btn:hover {
  background: var(--night-blue);
}

.submit-banner__link {
  background: none;
  border: none;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.submit-banner__link:hover {
  color: var(--night-deep);
}

@media (max-width: 600px) {
  .submit-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    text-align: center;
  }

  .submit-banner__actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SECTION FAQ ===== */
.faq-section {
  background: #F0F4F8;
  border-top: 1px solid var(--border-light);
  padding: 64px 24px;
}

.faq-content {
  max-width: 720px;
  margin: 0 auto;
}

.faq-heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--night-deep);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== ACCORDÉON FAQ (partagé intro + section FAQ) ===== */
.how-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.how-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--night-deep);
  text-align: left;
  transition: background 0.15s ease;
}

.how-faq-q:hover {
  background: var(--cream);
}

.how-faq-arrow {
  font-size: 0.65rem;
  color: var(--teal-deep);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.how-faq-q[aria-expanded="true"] .how-faq-arrow {
  transform: rotate(180deg);
}

.how-faq-a {
  padding: 0 18px 16px;
}

.how-faq-a p {
  font-size: 0.85rem;
  color: var(--slate-gray);
  line-height: 1.65;
}

/* ===== CTA NAVBAR — texte responsive ===== */
.site-nav__cta .cta-short { display: none; }

@media (max-width: 768px) {
  .site-nav__cta .cta-full { display: none; }
  .site-nav__cta .cta-short { display: inline; }
}

/* ===== NAVIGATION ONGLETS ===== */
.tab-nav {
  display: flex;
  justify-content: center;
  background: var(--night-blue);
  border-top: 2px solid var(--teal-deep);
  border-bottom: 1px solid rgba(20, 255, 236, 0.15);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10, 14, 39, 0.3);
}

.tab-btn {
  flex: 1;
  max-width: 200px;
  padding: 16px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(250, 251, 252, 0.55);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  font-family: inherit;
}

.tab-btn:hover {
  background: rgba(20, 255, 236, 0.06);
  color: var(--turquoise-electric);
}

.tab-btn.active {
  color: var(--white-off);
  border-bottom-color: var(--turquoise-electric);
  background: rgba(20, 255, 236, 0.05);
}

.tab-icon {
  font-size: 1.1rem;
}

/* ===== LOADING & ERROR ===== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--mint-fresh);
  border-top-color: var(--turquoise-electric);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.error-message {
  color: var(--accent-coral);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.retry-btn {
  padding: 12px 24px;
  background: var(--accent-coral);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: var(--accent-coral-dark);
}

/* ===== CONTENU ===== */
.content {
  flex: 1;
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ===== CALENDRIER ===== */
.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Filtres de catégories */
.category-filters-wrapper {
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-deep) var(--mint-fresh);
}

.category-filters-wrapper::-webkit-scrollbar {
  width: 6px;
}

.category-filters-wrapper::-webkit-scrollbar-track {
  background: var(--mint-fresh);
  border-radius: 3px;
}

.category-filters-wrapper::-webkit-scrollbar-thumb {
  background: var(--teal-deep);
  border-radius: 3px;
}

.category-filters-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--turquoise-electric);
}

.category-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-btn {
  padding: 10px 16px;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--slate-gray);
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  text-align: left;
  display: flex;
  align-items: center;
  width: 100%;
}

.category-btn:hover {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
  transform: translateY(-1px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--night-deep) 0%, var(--night-blue) 100%);
  border-color: rgba(20, 255, 236, 0.4);
  color: var(--turquoise-electric);
  box-shadow: 0 2px 8px rgba(10, 14, 39, 0.2);
}

.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--night-deep) 0%, var(--night-blue) 100%);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 255, 236, 0.15);
  box-shadow: 0 4px 16px rgba(10, 14, 39, 0.25);
}

.month-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.today-btn {
  padding: 4px 14px;
  background: transparent;
  color: var(--accent-coral);
  border: 1.5px solid var(--accent-coral);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.today-btn:hover {
  background: var(--accent-coral);
  color: white;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-coral);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-btn:hover {
  background: var(--accent-coral-dark);
  transform: translateY(-1px);
}

.month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-off);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, auto);
  gap: 8px;
  background: transparent;
  padding: 20px;
  border-radius: var(--radius-lg);
  animation: calendarFadeIn 0.25s ease;
}

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

/* État vide du calendrier */
.calendar-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--slate-gray);
  font-size: 1rem;
}

.calendar-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.weekday-header {
  background: var(--night-blue);
  color: var(--turquoise-electric);
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.day {
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  min-height: 120px;
  transition: all 0.2s ease;
  border: 1px solid #D6E4EF;
}

.day:hover {
  border-color: var(--turquoise-electric);
  box-shadow: 0 2px 10px rgba(20, 255, 236, 0.15);
}

.day.empty {
  background: transparent;
  border: none;
  min-height: 120px;
  pointer-events: none;
}

.day.today {
  background: linear-gradient(135deg, #E8F9F7 0%, #D4F5EF 100%);
  border: 2px solid var(--accent-coral);
}

.day.selected {
  border: 2px solid var(--turquoise-electric);
  box-shadow: 0 0 0 3px rgba(20, 255, 236, 0.2);
}

.day.selected .day-number {
  color: var(--teal-deep);
  font-weight: 700;
}

.day.has-events {
  background: white;
  border-color: rgba(20, 255, 236, 0.5);
  box-shadow: 0 2px 8px rgba(20, 255, 236, 0.1);
}

.day-number {
  font-weight: 600;
  color: var(--night-deep);
  font-size: 1rem;
  margin-bottom: 8px;
}

.event {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.08) 0%, rgba(20, 255, 236, 0.06) 100%);
  padding: 6px 8px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid var(--teal-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.event-time {
  color: var(--accent-coral);
  font-weight: 600;
  font-size: 0.7rem;
}

.event-title {
  color: var(--night-deep);
  font-weight: 500;
}

.event-more {
  font-size: 0.75rem;
  color: var(--accent-coral);
  font-weight: 600;
  padding: 4px;
  text-align: center;
  cursor: pointer;
}

/* ===== FILTRE CATÉGORIES (CALENDRIER) ===== */
.category-filter-wrapper {
  margin-top: 16px;
  margin-bottom: 24px;
  position: relative;
}

/* --- Dropdown toggle --- */
.category-dropdown-toggle {
  display: flex;
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--night-deep);
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.category-dropdown-toggle:hover {
  border-color: var(--teal-deep);
}

.category-dropdown-toggle.open {
  border-color: var(--teal-deep);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dropdown-label {
  flex: 1;
  text-align: left;
}

.dropdown-arrow {
  font-size: 0.7rem;
  color: var(--slate-gray);
  transition: transform 0.2s ease;
}

.category-dropdown-toggle.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Badge catégorie sélectionnée dans le toggle */
.dropdown-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(74, 85, 104, 0.15);
  color: var(--slate-gray);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.dropdown-reset:hover {
  background: var(--accent-coral);
  color: white;
}

/* --- Dropdown menu (mobile only) --- */
.category-dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--teal-deep);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.category-dropdown-menu.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--night-deep);
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--mint-fresh);
}

.dropdown-item.active {
  background: rgba(13, 115, 119, 0.08);
  color: var(--teal-deep);
  font-weight: 600;
}

.dropdown-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dropdown-item-check {
  margin-left: auto;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* ===== COMPTEUR DANS LES FILTRES ===== */
.filter-count {
  font-size: 0.8em;
  opacity: 0.75;
  font-weight: 400;
}

/* ===== BADGE CATÉGORIE (VUE LISTE) ===== */
.list-event-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid;
}

/* ===== MODAL LISTE DU JOUR ===== */
#dayEventsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-events-content {
  max-width: 420px;
}

.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.day-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  transition: all 0.15s ease;
}

.day-event-item:hover {
  filter: brightness(0.96);
  transform: translateX(2px);
}

.day-event-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-coral);
  min-width: 42px;
  flex-shrink: 0;
}

.day-event-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--night-deep);
}

.day-event-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Dot dans les boutons de filtre catégorie */
.cat-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ===== BARRE DE RECHERCHE ===== */
.search-section {
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  color: var(--slate-gray);
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--night-deep);
  transition: border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--teal-deep);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.15s ease;
  display: none;
}

.search-clear.visible {
  display: block;
}

.search-clear:hover {
  color: var(--accent-coral);
  background: rgba(232, 90, 107, 0.08);
}

/* Recherche calendrier */
.search-section--calendar {
  margin-bottom: 16px;
  position: relative;
}

/* ===== RÉSULTATS RECHERCHE CALENDRIER ===== */
.calendar-search-results {
  margin-top: 8px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cal-search-section-label {
  padding: 10px 16px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal-deep);
}

.cal-search-suggestion-label {
  color: var(--accent-coral);
  border-top: 1px dashed var(--border-light);
  margin-top: 4px;
  padding-top: 12px;
}

.cal-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-left: 3px solid var(--teal-deep);
  cursor: pointer;
  transition: background 0.15s ease;
}

.cal-search-item:hover {
  background: var(--mint-fresh);
}

.cal-search-item--suggestion {
  opacity: 0.75;
  background: var(--white-off);
}

.cal-search-item--suggestion:hover {
  opacity: 1;
  background: var(--mint-fresh);
}

.cal-search-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-gray);
  min-width: 38px;
  flex-shrink: 0;
}

.cal-search-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--night-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-search-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-coral);
  flex-shrink: 0;
}

.cal-search-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--accent-coral);
  background: rgba(232, 90, 107, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.cal-search-item--past {
  opacity: 0.6;
}

.cal-search-item--past:hover {
  opacity: 0.85;
}

.cal-search-badge--past {
  color: var(--slate-gray);
  background: rgba(74, 85, 104, 0.1);
}

.cal-search-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cal-search-more {
  padding: 8px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== SUGGESTIONS FORMATIONS (VUE LISTE) ===== */
.list-suggestions-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed var(--border-light);
}

.list-suggestions-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-coral);
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-suggestions-header::before {
  content: '💡';
}

.list-event--suggestion {
  opacity: 0.8;
  background: var(--white-off);
}

.list-event--suggestion:hover {
  opacity: 1;
  background: white;
}

.list-suggestion-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--accent-coral);
  background: rgba(232, 90, 107, 0.1);
  border: 1px solid rgba(232, 90, 107, 0.2);
}

/* ===== VUE LISTE ===== */
.list-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

/* Filtres */
.filter-section {
  margin-bottom: 24px;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--night-deep);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.list-filters {
  display: flex;
  gap: 8px;
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-gray);
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--night-deep) 0%, var(--night-blue) 100%);
  border-color: rgba(20, 255, 236, 0.4);
  color: var(--turquoise-electric);
  box-shadow: 0 2px 8px rgba(10, 14, 39, 0.2);
}

.list-month-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--night-deep);
  padding: 16px 0 12px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
  margin-top: 24px;
}

.list-month-header:first-child {
  margin-top: 0;
}

.list-event {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal-deep);
  border-top: 1px solid #D6E4EF;
  border-right: 1px solid #D6E4EF;
  border-bottom: 1px solid #D6E4EF;
}

.list-event:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(20, 255, 236, 0.12);
  border-top-color: rgba(20, 255, 236, 0.3);
  border-right-color: rgba(20, 255, 236, 0.3);
  border-bottom-color: rgba(20, 255, 236, 0.3);
}

.list-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: 12px;
  background: linear-gradient(135deg, var(--night-deep) 0%, var(--night-blue) 100%);
  border-radius: var(--radius-sm);
  color: white;
  border: 1px solid rgba(20, 255, 236, 0.2);
}

.list-event-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.list-event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.list-event-info {
  flex: 1;
}

.list-event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--night-deep);
  margin-bottom: 6px;
}

.list-event-meta {
  display: flex;
  gap: 16px;
  color: var(--slate-gray);
  font-size: 0.9rem;
}

.list-event-arrow {
  color: var(--accent-coral);
  font-size: 1.25rem;
  font-weight: bold;
}

.no-events {
  text-align: center;
  color: var(--slate-gray);
  padding: 48px;
  font-size: 1.1rem;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 58, 47, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--night-blue);
  color: var(--turquoise-electric);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--night-deep);
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.modal-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.07) 0%, rgba(20, 255, 236, 0.04) 100%);
  border: 1px solid rgba(20, 255, 236, 0.15);
  border-radius: var(--radius-sm);
}

.modal-icon {
  font-size: 1.25rem;
}

.modal-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.modal-value {
  font-weight: 500;
  color: var(--night-deep);
}

.modal-description {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.modal-description p {
  color: var(--slate-gray);
  line-height: 1.7;
  margin-top: 8px;
}

.modal-image-container {
  margin-top: 20px;
}

.modal-image-container img {
  width: 100%;
  border-radius: var(--radius-md);
}

.modal-source-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--primary, #2563eb);
  border-radius: var(--radius-md, 8px);
  color: var(--primary, #2563eb);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.modal-source-link:hover {
  background: var(--primary, #2563eb);
  color: #fff;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--night-deep) 0%, var(--night-blue) 100%);
  color: var(--white-off);
  text-align: center;
  padding: 28px 20px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(20, 255, 236, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer p {
  opacity: 0.4;
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  opacity: 0.35;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sep {
  opacity: 0.5;
}

.footer-credit-link {
  color: var(--turquoise-electric);
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.footer-credit-link:hover {
  opacity: 0.75;
}

.footer-conditions-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-conditions-link:hover {
  color: var(--turquoise-electric);
}

.faq-inline-link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-inline-link:hover {
  color: var(--night-deep);
}

/* ===== HERO LOGO ===== */
.hero-logo {
  height: 56px;
  width: auto;
  margin-bottom: -4px;
  filter: drop-shadow(0 2px 8px rgba(20, 255, 236, 0.2));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tab-btn {
    max-width: 150px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .calendar-grid {
    gap: 6px;
  }

  .day {
    padding: 8px;
    min-height: 100px;
  }

  .event {
    font-size: 0.7rem;
    padding: 4px 6px;
  }
}

@media (max-width: 768px) {
  .filter-section {
    margin-bottom: 16px;
  }

  .filter-title {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .category-filters-wrapper {
    padding: 10px;
  }

  .category-filters {
    gap: 6px;
  }

  .category-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .tab-nav {
    padding: 0;
  }

  .tab-btn {
    max-width: none;
    padding: 12px 14px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .tab-label {
    display: none;
  }

  .tab-icon {
    font-size: 1.1rem;
  }

  .calendar-container,
  .list-container {
    padding: 12px;
  }

  .search-section--calendar {
    margin-bottom: 12px;
  }

  .calendar-search-results {
    max-height: 300px;
  }

  .cal-search-item {
    padding: 8px 12px;
    gap: 8px;
  }

  .cal-search-title {
    font-size: 0.82rem;
  }

  .cal-search-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .list-suggestions-section {
    margin-top: 24px;
    padding-top: 16px;
  }

  .month-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .month-nav-center {
    width: 100%;
    order: -1;
  }

  .month-title {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
  }

  .today-btn {
    margin: 4px auto 0;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .nav-btn span {
    display: none;
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .weekday-header {
    display: none;
  }

  .day {
    min-height: auto;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .day.empty {
    display: none;
  }

  /* Masquer les jours sans événements en mobile */
  .day:not(.has-events):not(.today):not(.empty) {
    display: none;
  }

  .day-number {
    min-width: 50px;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .event {
    flex: 1;
    min-width: 120px;
    font-size: 0.7rem;
    padding: 5px 6px;
    margin: 0;
  }

  .event-time {
    display: block;
    margin-bottom: 2px;
  }

  .event-title {
    display: block;
  }

  .filter-section {
    margin-bottom: 12px;
  }

  .filter-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .list-filters {
    gap: 6px;
    padding: 10px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .category-filters-wrapper {
    padding: 8px;
  }

  .category-filters {
    gap: 6px;
  }

  .list-event {
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .list-event-date {
    min-width: 50px;
    padding: 8px;
  }

  .list-event-day {
    font-size: 1.3rem;
  }

  .list-event-month {
    font-size: 0.7rem;
  }

  .list-event-info {
    flex: 1;
    min-width: 150px;
  }

  .list-event-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .list-event-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
  }

  .list-event-arrow {
    font-size: 1rem;
  }

  .modal-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-content {
    padding: 20px;
    margin: 12px;
    max-width: 95%;
  }

  .modal h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .modal-field {
    padding: 10px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .tab-icon {
    font-size: 1rem;
  }

  .calendar-container,
  .list-container {
    padding: 8px;
  }

  .month-nav {
    padding: 10px;
    gap: 8px;
  }

  .month-title {
    font-size: 1rem;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .calendar-grid {
    padding: 8px;
    gap: 6px;
  }

  .day {
    padding: 10px;
    gap: 8px;
  }

  .day-number {
    min-width: 40px;
    font-size: 0.85rem;
  }

  .event {
    font-size: 0.65rem;
    padding: 4px 5px;
    min-width: 100px;
  }

  .list-filters {
    gap: 4px;
    padding: 8px;
    margin-bottom: 12px;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .list-event {
    padding: 10px;
    gap: 10px;
  }

  .list-event-date {
    min-width: 45px;
    padding: 6px;
  }

  .list-event-day {
    font-size: 1.2rem;
  }

  .list-event-info {
    min-width: 120px;
  }

  .list-event-title {
    font-size: 0.85rem;
  }

  .list-event-meta {
    font-size: 0.7rem;
    gap: 6px;
  }

  .modal-content {
    padding: 16px;
    margin: 8px;
  }

  .modal h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .modal-close {
    width: 28px;
    height: 28px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }

  .footer {
    padding: 16px;
  }

  .footer p {
    font-size: 0.8rem;
  }
}
