/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: 'Akira Expanded Demo';
  src: url("/assets/akira_expanded_demo-a31e80d2.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

.text-anton {
  font-family: 'Anton', sans-serif;
}

.text-inter {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, .text-bebas {
  font-family: 'Bebas Neue', sans-serif;
}

a, .text-oswald {
  font-family: 'Oswald', sans-serif;
}

body, p {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fade-in {
  opacity: 0;
}

.fade-in.show {
  opacity: 1;
}

.underline-animate {
  width: 0;
  transition: width 0.6s ease-out;
}

.underline-animate.animate {
  width: 4rem; /* équivalent à w-16 */
}

input[type="checkbox"]:checked {
  accent-color: #b91c1c; /* Tailwind red-700 */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #111;
}

.site-header--home {
  position: absolute;
  min-height: 6.2rem;
  padding: 1.35rem 2.65rem;
  background: transparent;
  color: #fff;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: currentColor;
  text-decoration: none;
}

.site-header__logo-image {
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-header--home .site-header__logo-image {
  width: 4.25rem;
  height: 4.25rem;
}

.site-header__brand-text {
  display: none;
  flex-direction: column;
  justify-content: center;
  color: currentColor;
  line-height: 1;
}

.site-header__brand-title {
  font-family: 'Akira Expanded Demo', 'Anton', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.site-header__brand-subtitle {
  margin-top: 0.42rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  word-spacing: 0.2rem;
}

.site-header__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2.55rem;
}

.site-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  color: currentColor;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header__nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after,
.site-header__nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  display: none;
  justify-self: end;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  min-width: 13.75rem;
  border: 1px solid currentColor;
  padding: 0.75rem 1.55rem;
  color: currentColor;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
  background: currentColor;
  color: #fff;
  transform: translateY(-1px);
}

.site-header--home .site-header__cta:hover,
.site-header--home .site-header__cta:focus-visible {
  background: #fff;
  color: #090909;
}

.site-header__menu-button {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  color: currentColor;
}

.site-header--home {
  background: #111;
}

.mobile-nav {
  z-index: 60;
}

.mobile-menu__item {
  opacity: 0;
  transform: translateY(-2.2rem);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.mobile-nav.is-open .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--mobile-menu-index, 0) * 70ms);
}

.mobile-nav.is-closing .mobile-menu__item {
  opacity: 0;
  transform: translateY(-2.2rem);
  transition-delay: calc((var(--mobile-menu-count, 1) - var(--mobile-menu-index, 0) - 1) * 45ms);
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 86vh;
  overflow: hidden;
  background: #050505;
  color: #fff;
}

.hero-section__image,
.hero-section__shade,
.hero-section__grain {
  position: absolute;
  inset: 0;
}

.hero-section__image {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  filter: grayscale(1) contrast(1.04) brightness(1.08);
}

.hero-section__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.25) 38%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.24) 100%);
}

.hero-section__grain {
  z-index: 2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.04;
  pointer-events: none;
}

.hero-section__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: inherit;
  padding: 8.2rem 1.45rem 4.5rem;
}

.hero-section__copy {
  width: min(100%, 52rem);
}

.hero-section__title {
  margin: 0;
  color: #fff;
  font-family: 'Akira Expanded Demo', 'Anton', sans-serif;
  font-size: 3.35rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-align: left;
  text-transform: uppercase;
}

.hero-section__title span {
  display: block;
}

.hero-section__subtitle {
  margin-top: 1.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
  word-spacing: 0.45rem;
}

.hero-section__text {
  max-width: 33rem;
  margin-top: 1.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.55;
  text-transform: lowercase;
}

.hero-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 4.25rem;
  min-width: 18.8rem;
  margin-top: 3.05rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 1.05rem 1.65rem;
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.hero-section__cta:hover,
.hero-section__cta:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #090909;
  transform: translateY(-1px);
}

.hero-section__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 640px) {
  .site-header__brand-text {
    display: flex;
  }

  .hero-section__content {
    padding: 8.5rem 3rem 5.5rem;
  }

  .hero-section__title {
    font-size: 5.35rem;
  }

  .hero-section__subtitle {
    font-size: 1.18rem;
  }

  .hero-section__text {
    font-size: 1.16rem;
  }
}

@media (min-width: 768px) {
  .hero-section__content {
    padding-inline: 4rem;
  }

  .hero-section__title {
    font-size: 6.25rem;
  }
}

@media (min-width: 1024px) {
  .site-header {
    grid-template-columns: minmax(15.5rem, 1fr) auto minmax(15.5rem, 1fr);
    padding: 0.85rem 1.8rem;
  }

  .site-header--home {
    padding: 1.55rem 2.7rem;
  }

  .site-header__nav,
  .site-header__actions {
    display: flex;
  }

  .site-header__menu-button {
    display: none;
  }

  .hero-section__content {
    padding: 9rem 4.8rem 5.8rem;
  }

  .hero-section__title {
    font-size: 7.35rem;
  }

  .hero-section__subtitle {
    margin-top: 1.85rem;
    font-size: 1.38rem;
    word-spacing: 0.65rem;
  }

  .hero-section__text {
    font-size: 1.35rem;
  }
}

@media (min-width: 1280px) {
  .hero-section__content {
    padding-inline: 4.8rem;
  }

  .hero-section__title {
    font-size: 8.45rem;
  }
}

@media (max-width: 420px) {
  .site-header--home {
    padding-inline: 1rem;
  }

  .hero-section__title {
    font-size: 2.85rem;
  }
}

.home-showcase-image {
  background-position: var(--home-showcase-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
}

.home-showcase-card {
  display: flex;
  min-height: 5.75rem;
  width: 100%;
  flex-direction: column;
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  padding: 1rem 0 0;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, padding 180ms ease, transform 180ms ease;
}

.home-showcase-card[data-active="true"] {
  border-top-color: #fff;
  background: #fff;
  color: #111;
  padding: 1.1rem 1.25rem 1.2rem;
}

.home-showcase-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-showcase-card__text {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.25;
}

.home-showcase-card[data-active="true"] .home-showcase-card__text {
  color: #222;
}

.home-showcase-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (hover: hover) {
  .home-showcase-card:hover {
    transform: translateY(-2px);
  }
}

@media (orientation: portrait) {
  .home-showcase-image {
    background-position: var(--home-showcase-mobile-position, center center);
  }
}

@media (max-width: 639px) {
  .home-showcase-card {
    min-height: 4.75rem;
    padding-top: 0.75rem;
  }

  .home-showcase-card[data-active="true"] {
    padding: 0.9rem 1rem;
  }
}

.home-actu {
  margin: 4.5rem 0;
  overflow: hidden;
  background: #fff;
  color: #111;
}

.home-actu__inner {
  margin: 0 auto;
  max-width: none;
  padding: 0;
}

.home-actu__header {
  margin: 0 auto 3.5rem;
  max-width: 850px;
  padding: 0 1.5rem;
  text-align: center;
}

.home-actu__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.home-actu__intro {
  margin-top: 1.35rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-actu__rail {
  --home-actu-gap: clamp(1.75rem, 4vw, 3.05rem);
  --home-actu-card-width: clamp(20rem, 41vw, 31rem);
  --home-actu-side-peek: clamp(1rem, 4vw, 4rem);
  box-sizing: border-box;
  display: flex;
  gap: var(--home-actu-gap);
  width: min(100%, 78rem);
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 var(--home-actu-side-peek) 0.25rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-actu__rail::-webkit-scrollbar {
  display: none;
}

.home-actu__rail--single {
  justify-content: center;
}

.home-actu__rail--static {
  justify-content: center;
}

.home-actu-card {
  flex: 0 0 var(--home-actu-card-width);
  min-width: 0;
  text-align: center;
  scroll-margin-left: 0;
}

.home-actu__rail--single .home-actu-card {
  flex-basis: min(100%, 34rem);
}

.home-actu-card__image {
  aspect-ratio: 1.54 / 1;
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.home-actu-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.05rem;
}

.home-actu-card__date {
  color: #222;
  font-size: 0.98rem;
  text-transform: capitalize;
}

.home-actu-card__title {
  margin-top: 0.9rem;
  max-width: 25rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.65rem, 2.15vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.home-actu-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.55rem;
  border-bottom: 1px solid #111;
  padding: 0 0.55rem 0.65rem;
  color: #111;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}

.home-actu-card__link:hover,
.home-actu-card__link:focus-visible {
  color: #b91c1c;
  border-bottom-color: #b91c1c;
}

.home-actu__footer {
  display: grid;
  grid-template-columns: 3.5rem auto 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: min(100%, 78rem);
  margin-right: auto;
  margin-left: auto;
  margin-top: 3.2rem;
}

.home-actu__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.home-actu__arrow:disabled {
  color: #b9b9b9;
  cursor: default;
  opacity: 0.8;
}

.home-actu__arrow:not(:disabled):hover,
.home-actu__arrow:not(:disabled):focus-visible {
  color: #b91c1c;
  transform: translateX(2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 2px solid #111;
  padding: 0.55rem 1.35rem;
  color: #111;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus-visible {
  background: #111;
  color: #fff;
}

.btn-link--white {
  gap: 0.9rem;
  min-width: 18.8rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 0.55rem 1.65rem;
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.btn-link--white:hover,
.btn-link--white:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #090909;
  transform: translateY(-1px);
}

.btn-link--white:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .home-actu {
    margin: 3rem 0 3.5rem;
  }

  .home-actu__inner {
    max-width: none;
    padding: 0;
  }

  .home-actu__header {
    box-sizing: border-box;
    margin: 0 auto 1.55rem;
    max-width: 20rem;
    padding: 0 1.5rem;
  }

  .home-actu__title {
    font-size: 2.05rem;
    line-height: 0.95;
  }

  .home-actu__intro {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .home-actu__rail {
    --home-actu-card-width: min(82vw, 16.6rem);
    --home-actu-gap: 1.5rem;
    --home-actu-side-peek: 0;
    display: flex;
    overflow-x: auto;
    padding: 0 calc((100% - var(--home-actu-card-width)) / 2) 0.25rem;
    scroll-padding-inline: calc((100% - var(--home-actu-card-width)) / 2);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-actu__rail::-webkit-scrollbar {
    display: none;
  }

  .home-actu-card {
    flex: 0 0 var(--home-actu-card-width);
    scroll-snap-align: center;
    scroll-margin-left: 0;
  }

  .home-actu__rail--single .home-actu-card {
    flex-basis: var(--home-actu-card-width);
  }

  .home-actu-card__image {
    aspect-ratio: 1 / 1;
  }

  .home-actu-card__content {
    padding-top: 1rem;
  }

  .home-actu-card__date {
    font-size: 0.8rem;
  }

  .home-actu-card__title {
    max-width: 15rem;
    margin-top: 0.75rem;
    font-size: 1.65rem;
    line-height: 1;
  }

  .home-actu-card__link {
    margin-top: 1.45rem;
    padding-bottom: 0.55rem;
    font-size: 0.78rem;
  }

  .home-actu__footer {
    grid-template-columns: 2.4rem 2.4rem;
    gap: 0.75rem 0.65rem;
    justify-content: center;
    justify-items: center;
    margin-top: 1.35rem;
    padding: 0;
    width: 100%;
  }

  .btn-link {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 2.4rem;
    width: min(68vw, 13.8rem);
    justify-self: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
  }

  .home-actu__arrow {
    font-size: 2.15rem;
  }
}
