/* ----- Section Animations de l'accueil -----
   En-tête (texte + accès à l'agenda), publics visés en bandeau, puis une
   animation mise en avant à côté de la liste des autres. */

.animations__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
}

.animations__head .section-head {
  margin-bottom: 0;
  max-width: 44rem;
}

.animations__intro {
  margin-top: var(--space-3);
  color: var(--ink-soft);
}

.animations__intro p:last-child {
  margin-bottom: 0;
}

.animations__agenda {
  flex: none;
}

.animations__agenda i {
  margin-right: 0.4em;
}

/* Publics visés : pastilles avec pictogramme */
.animations__audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-7);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.animations__audience-title {
  font-size: var(--text-base);
  color: var(--primary-dark);
}

.animations__audience ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.animations__audience li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: var(--text-sm);
  font-weight: 600;
}

.animations__audience li i {
  color: var(--primary);
}

/* Vitrine : grande carte + liste */
.animations__showcase {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .animations__showcase {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: stretch;
  }
}

.animations__feature,
.animations__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.animations__feature:hover,
.animations__item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Toute la carte est cliquable */
.animations .card__title-link {
  color: inherit;
  text-decoration: none;
}

.animations .card__title-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.animations__feature {
  display: flex;
  flex-direction: column;
}

.animations__feature-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

/* À côté de la liste, l'image occupe la hauteur restante (pas sa hauteur propre) */
@media (min-width: 900px) {
  .animations__feature-media {
    position: relative;
    flex: 1;
    aspect-ratio: auto;
    min-height: 14rem;
  }

  .animations__feature-media img {
    position: absolute;
    inset: 0;
  }
}

.animations__feature-media img,
.animations__item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animations__feature-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.animations__feature-title {
  font-size: var(--text-2xl);
}

.animations__excerpt {
  color: var(--ink-soft);
  margin: 0;
}

.animations__more {
  margin-top: auto;
  padding-top: var(--space-2);
  font-weight: 700;
  color: var(--secondary);
}

.animations__more i,
.animations__item-arrow {
  transition: transform var(--transition);
}

.animations__feature:hover .animations__more i,
.animations__item:hover .animations__item-arrow {
  transform: translateX(4px);
}

/* Liste : cartes horizontales, image à gauche */
.animations__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.animations__item {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.animations__item-media {
  position: relative;
  flex: 0 0 34%;
  min-height: 8.5rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.animations__item-media img {
  position: absolute;
  inset: 0;
}

.animations__item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  padding: var(--space-4) var(--space-7) var(--space-4) var(--space-4);
}

.animations__item-title {
  font-size: var(--text-lg);
  line-height: 1.25;
}

.animations__item .animations__excerpt {
  font-size: var(--text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.animations__item-arrow {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  margin-top: -0.5em;
  color: var(--secondary);
}

.animations__tags--compact .badge {
  padding: 0.15em 0.6em;
  font-size: 0.75rem;
}

@media (max-width: 479px) {
  .animations__item {
    flex-direction: column;
  }

  .animations__item-media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .animations__item-body {
    padding: var(--space-4);
  }

  .animations__item-arrow {
    display: none;
  }
}

/* Utilisés par la fiche animation */
.animations__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
}

.animations__tags:empty {
  display: none;
}

/* Fiche animation */
.anim-sheet__back {
  margin-bottom: var(--space-4);
}

.anim-sheet__head {
  max-width: 46rem;
  margin-bottom: var(--space-6);
}

.anim-sheet__layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 900px) {
  .anim-sheet__layout {
    grid-template-columns: minmax(0, 7fr) 4fr;
  }
}

.anim-sheet__main p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: var(--text-lg);
}

.anim-sheet__media img {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

.anim-sheet__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: baseline;
}

.anim-sheet__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.anim-sheet__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.anim-sheet__card h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.anim-sheet__card h2 i {
  color: var(--primary);
  margin-right: 0.35em;
}

.anim-sheet__partners {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
