:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

body.participation {
  font-family: var(--font-body);
  background-color: var(--color-warm-50);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(37, 99, 235, 0.02) 0%, transparent 60%);
  color: var(--color-ink);
}

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.survey-card {
  background: white;
  border: 1px solid var(--color-warm-200);
  border-radius: 1rem;
  box-shadow:
    0 1px 2px rgba(30, 26, 22, 0.04),
    0 4px 16px rgba(30, 26, 22, 0.03);
}

.survey-card-elevated {
  box-shadow:
    0 1px 2px rgba(30, 26, 22, 0.06),
    0 8px 32px rgba(30, 26, 22, 0.06);
}

.option-card {
  border: 1.5px solid var(--color-warm-200);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  transition: all 0.15s ease;
  cursor: pointer;
  background: white;
}
.option-card:hover {
  border-color: var(--color-warm-300);
  background: var(--color-warm-50);
}
.option-card.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Carte d'option illustrée : l'image occupe toute la surface cliquable. */
.image-option-card {
  position: relative;
  display: block;
  border: 2px solid var(--color-warm-200);
  border-radius: 0.875rem;
  overflow: hidden;
  background: white;
  transition: all 0.15s ease;
  cursor: pointer;
}
.image-option-card:hover {
  border-color: var(--color-warm-300);
}
.image-option-card.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}
.image-option-badge {
  opacity: 0;
  transform: scale(0.8);
  background: transparent;
  transition: all 0.15s ease;
}
.image-option-card.selected .image-option-badge {
  opacity: 1;
  transform: scale(1);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.progress-track {
  height: 3px;
  background: var(--color-warm-200);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field {
  width: 100%;
  border: 1.5px solid var(--color-warm-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: white;
  outline: none;
  transition: all 0.15s ease;
  resize: vertical;
}
.input-field::placeholder {
  color: var(--color-warm-400);
}
.input-field:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Contenu rich text composé par les admins (message de fin…) : le preflight
   Tailwind neutralise listes, titres et liens — on les rétablit ici, dans
   l'esprit éditorial du design participation. */
.lexxy-content {
  text-align: left;
}
.lexxy-content > * + * {
  margin-top: 0.625rem;
}
.lexxy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.lexxy-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
}
.lexxy-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lexxy-content h1,
.lexxy-content h2,
.lexxy-content h3,
.lexxy-content h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
}
.lexxy-content h1 { font-size: 1.25rem; }
.lexxy-content h2 { font-size: 1.125rem; }
.lexxy-content h3,
.lexxy-content h4 { font-size: 1rem; }
.lexxy-content blockquote {
  border-left: 3px solid var(--color-warm-300);
  padding-left: 1rem;
  font-style: italic;
}
.lexxy-content pre {
  background: var(--color-warm-100);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875em;
  overflow-x: auto;
}
.lexxy-content table {
  width: 100%;
  border-collapse: collapse;
}
.lexxy-content th,
.lexxy-content td {
  border: 1px solid var(--color-warm-200);
  padding: 0.375rem 0.625rem;
}
.lexxy-content hr {
  border: 0;
  border-top: 1px solid var(--color-warm-200);
}
.lexxy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}
.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.1s; }
.animate-delay-3 { animation-delay: 0.15s; }
