/**
 * ce-soir.css — Outil « Ce soir on joue »
 * Palette et variables issues de style.css (charte du thème).
 */

.ce-soir {
  background: var(--cream);
  min-height: 100vh;
  padding: 0;
}

/* Force le masquage natif de l'attribut [hidden] (résultats cachés au départ),
   non négociable face aux display: des composants ci-dessous. */
[hidden] {
  display: none !important;
}

/* === HERO === */
.ce-soir__hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-lt) 100%);
  color: #fff;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.ce-soir__dices {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.ce-soir__dices span {
  display: inline-block;
  animation: ce-soir-wobble 3s ease-in-out infinite;
}

.ce-soir__dices span:nth-child(2) { animation-delay: 0.3s; }
.ce-soir__dices span:nth-child(3) { animation-delay: 0.6s; }

@keyframes ce-soir-wobble {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-4px); }
}

.ce-soir__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
}

.ce-soir__title span {
  color: var(--yellow);
}

.ce-soir__subtitle {
  margin: var(--spacing-sm) 0 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* === CONTAINER === */
.ce-soir__container {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
}

/* === FILTRES === */
.ce-soir__filtres {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
}

.ce-soir__section-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: var(--spacing-md);
}

.ce-soir__group {
  margin-bottom: var(--spacing-lg);
}

.ce-soir__group--last {
  margin-bottom: 0;
}

.ce-soir__label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
}

.ce-soir__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.ce-soir-chip {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  transition: all 0.18s ease;
}

.ce-soir-chip:hover {
  border-color: var(--orange-lt);
  background: rgba(232, 98, 42, 0.08);
  color: var(--orange);
}

.ce-soir-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(232, 98, 42, 0.3);
}

/* === SLIDER ÂGE === */
.ce-soir__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.ce-soir__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(232, 98, 42, 0.4);
  cursor: pointer;
}

.ce-soir__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(232, 98, 42, 0.4);
  cursor: pointer;
}

.ce-soir__range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xs);
  font-size: 0.78rem;
  color: var(--muted);
}

.ce-soir__range-value {
  margin-top: var(--spacing-xs);
  text-align: center;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.95rem;
}

/* === CTA === */
.ce-soir__cta {
  width: 100%;
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-md);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 98, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-soir__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 98, 42, 0.45);
}

.ce-soir__cta:active {
  transform: translateY(0);
}

/* === RÉSULTATS === */
.ce-soir__results {
  margin-top: var(--spacing-xl);
}

.ce-soir__results-header {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  color: var(--brown);
  margin: 0 0 var(--spacing-lg);
}

.ce-soir__results-header span {
  color: var(--orange);
}

.ce-soir__results-grid {
  display: grid;
  gap: var(--spacing-md);
}

.ce-soir-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: ce-soir-slide-up 0.4s ease both;
}

.ce-soir-card:nth-child(2) { animation-delay: 0.08s; }
.ce-soir-card:nth-child(3) { animation-delay: 0.16s; }

@keyframes ce-soir-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ce-soir-card:hover {
  border-color: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61, 43, 31, 0.14);
}

.ce-soir-card__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 3;
}

.ce-soir-card:nth-child(3) .ce-soir-card__rank { background: var(--muted); }
.ce-soir-card:nth-child(4) .ce-soir-card__rank { background: var(--orange-lt); }

.ce-soir-card__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--beige);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.ce-soir-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ce-soir-card__body {
  flex: 1;
  min-width: 0;
}

.ce-soir-card__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: var(--spacing-xs);
}

.ce-soir-card__desc {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
}

.ce-soir-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ce-soir-tag {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.ce-soir-tag--players { background: rgba(45, 122, 82, 0.12); color: var(--green); }
.ce-soir-tag--time    { background: rgba(245, 200, 66, 0.18); color: #d9a800; }
.ce-soir-tag--level   { background: rgba(232, 98, 42, 0.1); color: var(--orange); }

/* === NO RESULT === */
.ce-soir__no-result {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  color: var(--brown);
}

.ce-soir__no-result-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.ce-soir__no-result p {
  line-height: 1.6;
}

/* === RESET === */
.ce-soir__reset {
  display: block;
  margin: var(--spacing-lg) auto 0;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ce-soir__reset:hover {
  border-color: var(--orange);
  color: var(--orange);
}
