/* =============================================================================
   Polices
============================================================================= */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./assets/fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./assets/fonts/Plus_Jakarta_Sans/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/IBM_Plex_Mono/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Annapurna SIL';
  src: url('./assets/fonts/Annapurna_SIL/AnnapurnaSIL-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* =============================================================================
   Base
============================================================================= */

body {
  margin: 0;
  margin-top: 70px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* =============================================================================
   Header
============================================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.header-content {
  width: min(90%, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.maestro-x {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  padding: 0 2rem;
}

.header-nav .nav-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Dropdown */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: flex;
  padding: 0.5rem 3rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: -6px 6px 0px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  flex-direction: column;
  display: flex;
  gap: 2.5rem;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, margin-top 0.18s ease;
  margin-top: -6px;
  z-index: 200;
  white-space: nowrap;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  margin-top: 10%;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-dropdown-label {
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 0.25rem;
}

.nav-dropdown-link {
  font-size: 0.875rem;
  color: inherit !important;
  text-decoration: none !important;
  padding: 0 !important;
  display: block;
  transition: color 0.15s ease;
}

.nav-dropdown-link:hover {
  color: #FF1A1A !important;
}

.language-theme-container {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.language-theme-container .nav-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 0 3rem;
}

.language-select,
.theme-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: inherit;
  cursor: pointer;
}

.language-select:hover,
.theme-select:hover {
  color: #FF1A1A;
}

.language-select:focus,
.theme-select:focus {
  outline: none;
}

/* =============================================================================
   Layout — Frames
============================================================================= */

.frame-layout {
  display: flex;
  flex-direction: column;
}

.frame {
  width: 100%;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.frame::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translate(-30%, 30%);
  animation: light-sweep 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
  z-index: 5;
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  position: absolute;
}

/* =============================================================================
   Frame 1 — Héro avec rangées défilantes
============================================================================= */

#frame1 {
  background-color: #FF1A1A;
  height: 100vh;
  margin-top: -70px;
}

.frame1-texture {
  opacity: 0.2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.frame1-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.frame1-row {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.frame1-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: flex;
  align-items: center;
}

.frame1-track--ltr {
  animation: scroll-right 34s linear infinite;
}

.frame1-track--rtl {
  animation: scroll-left 34s linear infinite;
}

.frame1-track img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.frame1-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem;
  box-sizing: border-box;
  pointer-events: none;
}

.frame1-headline {
  font-size: 4rem;
  font-family: 'Annapurna SIL', monospace;
  font-weight: 300;
  color: #FFFFFF;
  margin: 0;
  max-width: 50%;
}

.frame1-butterfly {
  width: 600px;
  height: auto;
  object-fit: contain;
}

.frame1-cta {
  position: absolute;
  bottom: 2rem;
  left: 6rem;
  z-index: 25;
  padding: 0.5rem 2rem;
}

/* =============================================================================
   Frame 2 — Carrousel avec zoom au défilement
============================================================================= */

#frame2-spacer {
  height: 150vh;
  position: relative;
}

#frame2 {
  background-color: #FFF8E5;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

/* =============================================================================
   Carrousel
============================================================================= */

.carousel-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  transform-origin: center center;
  z-index: 30;
  display: flex;
  align-items: center;
  transition: transform 0.1s ease-out;
}

.carousel-content {
  width: 90vw;
  height: 61vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  display: block;
  flex: 0 0 70%;
  height: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  position: relative;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-slide-actions {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  right: 3rem;
  z-index: 25;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.carousel-btn {
  background: #FFFFFF;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: -6px 6px 0px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: #FF1A1A;
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-prev { left: 6rem; }
.carousel-next { right: 6rem; }

.carousel-indicators {
  position: absolute;
  bottom: -4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 40;
  background-color: #FFFFFF;
  padding: 3px 6px;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: -6px 6px 0px 0px rgba(0, 0, 0, 0.15);
}

.carousel-dot {
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0);
  transition: color 0.3s ease, transform 0.2s ease;
  filter: saturate(0);
}

.carousel-dot svg {
  width: 100%;
  height: 100%;
}

.carousel-dot:hover {
  opacity: 0.8;
}

.carousel-dot.active {
  filter: saturate(1);
}



/* =============================================================================
   Frame 4
============================================================================= */

.frame {
  background: #FF1A1A;
  height: 100vh;
}

.frame-bg {
  width: auto;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
/* =============================================================================
   Banner Frame Component
============================================================================= */

:root {
  --banner-bg: #ffffff;
  --banner-text-main: #000000;
  --banner-text-muted: rgba(0, 0, 0, 0.7);
  --border-radius: 10px;
}

#banner-frame {
  background: var(--banner-bg);
  height: 34rem;
  position: relative;
  margin: 60px auto;
  width: min(1200px, calc(80% - 40px));
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.banner-frame-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center; 
  justify-content: flex-end;
  width: 100%; 
  height: 100%;
  margin: 0; 
  gap: 0;
}

.banner-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 4rem); 
  padding: 2rem 3rem 2rem 2rem;
}

.banner-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.banner-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.banner-title h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 2.25rem;
  margin: 0;
  color: var(--banner-text-main);
}

.banner-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--banner-text-muted);
  margin: 0;
  max-width: 480px;
}

.banner-slide-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.banner-badges {
  display: flex;
  gap: 0.5rem;
}

.info {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--banner-text-main);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.banner-right {
  flex: 0 0 34rem;
  width: auto;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  #banner-frame {
    height: auto;
    margin: 20px;
    width: calc(100% - 40px);
  }

  .banner-frame-content {
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .banner-right {
    width: 100%;
    height: 200px;
    flex: none;
  }

  .banner-left {
    height: auto;
    gap: 2rem;
  }
}

/* =============================================================================
   Frame Separator (Nouveau Titre Centré)
============================================================================= */
.frame-separator {
  width: 100%;
  background: #FFF8E5;
  text-align: center;
  padding: 0 auto;
}

.frame-separator h2 {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 2.5rem;
  font-weight: 400;
  color: #000000;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.02em;
}

/* =============================================================================
   Composants partagés
============================================================================= */

.btn {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: -6px 6px 0px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'IBM Plex Mono', sans-serif;
  color: #FF1A1A;
}

.btn-icon {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: -6px 6px 0px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'IBM Plex Mono', sans-serif;
  color: #FF1A1A;
}

.btn:hover {
  box-shadow: -9px 9px 0px 0px rgba(0, 0, 0, 0.25);
}

.info {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: -6px 6px 0px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'IBM Plex Mono', sans-serif;
  color: #000000;
}

/* =============================================================================
   Footer
============================================================================= */

.mon-footer {
  padding: 4rem 0 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer-contenu {
  width: min(90%, calc(100% - 2rem));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  position: relative;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.footer-icon {
  width: 2.5rem;
  height: auto;
}

.footer-tagline {
  font-family: 'Annapurna SIL', monospace;
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
  color: #000000;
}

.footer-links-grid {
  display: flex;
  gap: 4rem;
  flex: 2;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-label {
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #FF1A1A;
}

.footer-butterfly {
  width: 140px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: 'IBM Plex Mono', monospace;
}

.footer-liens {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.footer-liens a {
  color: inherit;
  text-decoration: none;
}

.footer-liens a:hover {
  color: #FF1A1A;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-butterfly {
    position: absolute;
    top: 1rem;
    right: 0;
    width: 80px;
    opacity: 0.3;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* =============================================================================
   Animations
============================================================================= */

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@keyframes light-sweep {
  0%   { transform: translate(-30%, 30%); }
  60%  { transform: translate(30%, -30%); }
  100% { transform: translate(30%, -30%); }
}