.res-hero {
  padding-block: var(--space-lg) var(--space-md);
  text-align: center;
}

.res-hero h1 {
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-inline: auto;
}

.res-hero p {
  margin-inline: auto;
}

.res-hero + .section {
  padding-block-start: var(--space-md);
}

.res-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.res-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  text-decoration: none;
  display: block;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.res-card:hover {
  transform: translateY(-4px);
}

.res-card__tag {
  display: inline-block;
  background: var(--color-accent-strong);
  color: var(--color-accent-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xs);
}

.res-card h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
}

.res-empty {
  grid-column: 1 / -1;
  max-width: 32rem;
  margin-inline: auto;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.res-single {
  padding-block: var(--space-lg) var(--space-section);
}

.res-back {
  margin-bottom: var(--space-lg);
}

.res-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.55em 1.1em 0.55em 0.9em;
  transition: transform var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo),
    color var(--duration-fast) var(--ease-out-expo);
}

.res-back__link:hover {
  transform: translateX(-3px);
  border-color: var(--color-action);
  color: var(--color-action);
}

.res-single__header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--space-lg);
}

.res-single__header h1 {
  font-size: var(--text-2xl);
}

.res-single__body {
  background: var(--color-bg-raised);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  max-width: 46rem;
  margin-inline: auto;
}

.res-single__cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* Sur ordinateur, « à ton rythme » reste groupé sur la même ligne (pas de « rythme » seul) */
@media (min-width: 860px) {
  .nowrap-desktop {
    white-space: nowrap;
  }
}
