/* Demandes — plein écran, grandes affiches, sans cadres */

#demandesView.demandes-page,
#demandesView {
  min-height: 100vh;
  padding: calc(var(--header-h, 72px) + 1rem) 0 4rem !important;
  background:
    radial-gradient(70% 45% at 50% -5%, rgba(59, 130, 246, 0.14), transparent 55%),
    var(--bg, #0a0a12) !important;
}

.demandes-shell {
  width: min(1180px, calc(100% - 1.5rem)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.demandes-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.demandes-back {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.demandes-back:hover {
  color: #fff !important;
  background: rgba(59, 130, 246, 0.18) !important;
}

.demandes-hero {
  text-align: left !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.demandes-kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.65rem !important;
  padding: 0.28rem 0.7rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(59, 130, 246, 0.14) !important;
  color: #93c5fd !important;
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.demandes-kicker-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  background: #3b82f6 !important;
  animation: dem-kdot-pulse 2s infinite;
}

.demandes-hero-title {
  margin: 0 0 0.45rem !important;
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}
.demandes-hero-title span {
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

.demandes-hero-lead {
  margin: 0 0 1rem !important;
  max-width: 42rem;
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.demandes-stats {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem !important;
  margin: 0 !important;
  justify-content: flex-start !important;
}

.demandes-stat {
  display: flex !important;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 5.2rem;
  padding: 0.6rem 0.85rem !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}
.demandes-stat-num,
.demandes-stat-num.accent,
.demandes-stat-num.primary {
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}
.demandes-stat-label {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4) !important;
}

.demandes-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 !important;
  padding: 0.65rem 1.05rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #fff !important;
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s;
}
.demandes-cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}
.demandes-cta-btn.guest-hint {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* ── Podium Top 3 — sans cadres, affiches larges ── */
.demandes-podium {
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.5rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.demandes-podium[hidden] {
  display: none !important;
}
.demandes-podium-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 0.1rem;
}
.demandes-podium-title {
  margin: 0;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.demandes-podium-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}
.demandes-podium-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 2.25rem;
}

.dem-podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  text-align: left;
  min-height: 0;
  animation: dem-podium-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dem-podium-card--1 {
  order: 2;
  transform: none;
  animation-delay: 0.06s;
  margin-bottom: 2.75rem;
}
.dem-podium-card--2 {
  order: 1;
  animation-delay: 0s;
  margin-bottom: 1.15rem;
}
.dem-podium-card--3 {
  order: 3;
  animation-delay: 0.12s;
  margin-bottom: 0;
}
@keyframes dem-podium-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dem-podium-card--1 .dem-podium-poster {
  transform: none;
}
.dem-podium-rank {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0a0a12;
  background: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.dem-podium-card--1 .dem-podium-rank { background: #fbbf24; }
.dem-podium-card--3 .dem-podium-rank { background: #c4874a; color: #fff; }
.dem-podium-poster {
  width: 100%;
  max-width: none;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #12121c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  will-change: transform;
  animation: dem-podium-wave 5.5s ease-in-out infinite;
}
.dem-podium-card--1 .dem-podium-poster {
  animation-name: dem-podium-wave-1;
  animation-duration: 5.8s;
  animation-delay: 0s;
}
.dem-podium-card--2 .dem-podium-poster {
  animation-delay: 0.9s;
}
.dem-podium-card--3 .dem-podium-poster {
  animation-delay: 1.8s;
}
@keyframes dem-podium-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes dem-podium-wave-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.dem-podium-card:hover .dem-podium-poster {
  animation-play-state: paused;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s;
}
.dem-podium-card--1:hover .dem-podium-poster {
  transform: translateY(-8px);
}
.dem-podium-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dem-podium-poster-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.6rem;
  font-weight: 700;
}
.dem-podium-meta {
  width: 100%;
  min-width: 0;
  padding: 0 0.15rem;
}
.dem-podium-title {
  margin: 0;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dem-podium-sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.dem-podium-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
}
.dem-podium-votes svg {
  width: 12px;
  height: 12px;
}
.dem-podium-vote-btn {
  margin-top: 0.45rem;
  width: auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 0;
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.dem-podium-vote-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  transform: translateY(-1px);
}
.dem-podium-vote-btn.is-voted {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.22);
}

/* Filtres — sans cadre */
.demandes-filters--v2,
.demandes-filters {
  display: flex !important;
  flex-direction: column;
  gap: 0.65rem !important;
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.demandes-type-pills,
.demandes-sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.demandes-sort-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.demandes-sort-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.demandes-filter-btn,
.demandes-sort-btn {
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.42rem 0.85rem !important;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.demandes-filter-btn:hover,
.demandes-sort-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.demandes-filter-btn.active,
.demandes-sort-btn.active {
  color: #fff !important;
  background: rgba(59, 130, 246, 0.28) !important;
  box-shadow: none !important;
}

.demandes-list-head {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

/* Grille — taille correcte, pas monstrueuse */
.demandes-list--grid {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 1rem 0.8rem !important;
}
@media (min-width: 900px) {
  .demandes-list--grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
}
@media (min-width: 1200px) {
  .demandes-list--grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
  }
}

.dem-poster-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: dem-card-in 0.35s ease both;
}
@keyframes dem-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dem-poster-card-wrap .card,
.dem-poster-card-wrap .card.card--poster {
  flex: unset !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.dem-poster-card-wrap .card-clip {
  border-radius: 10px !important;
  overflow: hidden;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s;
}
.dem-poster-card-wrap:hover .card-clip {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}
.dem-poster-card-wrap .card-img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.dem-status-pill {
  border-radius: 8px;
  font-size: 0.68rem;
}

.dem-poster-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.2rem 0.1rem;
}
.dem-vote-up {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.dem-vote-up:hover {
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
  transform: translateY(-1px);
}
.dem-vote-up.voted {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.22);
}
.dem-vote-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Modal demande ── */
.dem-demand-overlay {
  z-index: 9999 !important;
  background: rgba(4, 6, 12, 0.82) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
}
.dem-demand-panel {
  position: relative;
  width: min(960px, 100%) !important;
  max-height: min(92vh, 900px);
  overflow: hidden;
  border-radius: 22px !important;
  border: 0 !important;
  background:
    radial-gradient(80% 50% at 10% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    linear-gradient(165deg, #151826 0%, #0b0d14 100%) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55) !important;
}
.dem-demand-overlay .search-top {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.15rem 1.25rem 0.95rem !important;
}
.dem-demand-overlay .search-kicker {
  color: #93c5fd !important;
}
.dem-demand-overlay .search-title {
  font-family: 'Outfit', var(--font), sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}
.dem-demand-overlay .dem-demand-desc {
  margin: 0.55rem 0 0.85rem !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.52) !important;
  max-width: 54ch;
}
.dem-demand-overlay .search-hd {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px !important;
}
.dem-demand-overlay #demSearchInput {
  color: #fff !important;
  caret-color: #60a5fa !important;
}
.dem-demand-overlay .search-filters .chip.active {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.dem-request-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35) !important;
}
.dem-demand-panel .dem-confirm-inner,
.dem-demand-panel .dem-thanks {
  border: 0 !important;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55) !important;
}
.dem-modal-submit {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32) !important;
}

@media (max-width: 720px) {
  .demandes-top {
    flex-wrap: wrap;
  }
  .demandes-cta-btn {
    width: 100%;
  }
  .demandes-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem 0.65rem !important;
  }
  .demandes-podium-track {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 0;
    max-width: none;
  }
  .dem-podium-card--1,
  .dem-podium-card--2,
  .dem-podium-card--3 {
    order: unset;
    margin-bottom: 0;
  }
  .dem-podium-card--1 .dem-podium-poster,
  .dem-podium-card--2 .dem-podium-poster,
  .dem-podium-card--3 .dem-podium-poster {
    animation: none;
  }
  .dem-podium-card {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
  .dem-podium-poster {
    width: 96px;
    flex-shrink: 0;
  }
  .dem-podium-meta {
    flex: 1;
  }
  .dem-podium-card:hover .dem-podium-poster,
  .dem-podium-card--1:hover .dem-podium-poster {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dem-poster-card-wrap,
  .dem-podium-card,
  .dem-poster-card-wrap .card-clip,
  .dem-poster-card-wrap .card-img,
  .dem-podium-poster,
  .dem-podium-poster img {
    animation: none !important;
    transition: none !important;
  }
}
