.home-module .rounded-3xl,
[data-route="home"] .rounded-3xl {
  border-radius: 20px;
}

.home-module img,
[data-route="home"] img {
  max-width: 100%;
}

.home-module iframe,
[data-route="home"] iframe {
  display: block;
}

body[data-route="home"] main.layout.container.py-6 {
  padding-bottom: .75rem;
}

body[data-route="home"] .site-footer {
  margin-top: .5rem;
}

[data-route="home"] .home-hero-card {
  padding-bottom: 4.25rem;
}

[data-route="home"] .home-hero-card::after {
  content: "Image générée par IA";
  position: absolute;
  right: 1rem;
  bottom: .75rem;
  z-index: 2;
  padding: .25rem .5rem;
  background: #000;
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
  pointer-events: none;
}

.home-events-planning {
  min-height: 240px;
}

.home-events-calendar.fullcalendar-theme {
  margin-top: 0;
}

.home-events-calendar .fc .fc-list {
  border-radius: 12px;
  overflow: hidden;
}

.home-events-calendar .fc .fc-list-event-title,
.home-events-calendar .fc .fc-list-event-time {
  font-size: .82rem;
}

.home-events-calendar .fc .fc-list-day-cushion {
  padding: .45rem .65rem;
}

.home-tool-day .tool-panel {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: none;
}

[data-route="home"] .home-tool-day-title,
[data-route="home"] .home-tool-day .tool-panel h2 {
  font-family: inherit;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

[data-route="home"] .home-tool-day .tool-panel h2 {
  margin-top: 0;
  margin-bottom: .85rem;
}

.home-media-carousel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgb(226 232 240);
  border-radius: 16px;
  background: rgb(248 250 252);
}

.home-media-track {
  height: 100%;
  min-height: inherit;
}

.home-media-slide {
  display: flex;
  min-height: inherit;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: rgb(51 65 85);
  text-align: center;
}

.home-media-slide img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

.home-media-slide span {
  margin-top: .75rem;
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: rgb(30 41 59);
}

.home-sponsor-carousel .home-media-slide,
.home-trophy-carousel .home-media-slide {
  flex-direction: column;
}

.home-sponsor-carousel .home-media-slide img,
.home-trophy-carousel .home-media-slide img {
  max-height: none;
  width: auto;
  height: auto;
}

.home-sponsor-carousel.is-ready .home-media-slide,
.home-trophy-carousel.is-ready .home-media-slide {
  display: none;
}

.home-sponsor-carousel.is-ready .home-media-slide.is-active,
.home-trophy-carousel.is-ready .home-media-slide.is-active {
  display: flex;
  animation: homeSponsorFade .45s ease both;
}

@keyframes homeSponsorFade {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .home-module .text-4xl,
  [data-route="home"] .text-4xl {
    font-size: 2rem;
    line-height: 1.1;
  }

  .home-media-carousel {
    min-height: 170px;
  }

  .home-media-slide img {
    max-height: 130px;
  }
}
