/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #ffcb05;
  --bg1: #1a1a40;
  --bg2: #0f1029;
  --header-offset: 104px;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto;
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  color: white;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #ffcb05;
  outline-offset: 3px;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

@media (max-width: 640px) {
  .js .reveal {
    transform: translate3d(0, 18px, 0);
  }
}

.js .reveal[data-reveal="progress"] {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* FOND VIVANT */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,203,5,0.08), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(80,120,255,0.12), transparent 45%);
  animation: floatLights 22s ease-in-out infinite alternate;
}

/* Grain/pattern discret (nostalgie "carte") */
.ambient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,203,5,0.028) 0px,
      rgba(255,203,5,0.028) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,203,5,0.07), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(255,203,5,0.05), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(80,120,255,0.10), transparent 50%),

    /* motifs irréguliers (discrets mais notables) */
    radial-gradient(circle at 12% 65%, rgba(255,203,5,0.14) 0px, rgba(255,203,5,0.14) 2px, transparent 3px),
    radial-gradient(circle at 28% 40%, rgba(80,120,255,0.14) 0px, rgba(80,120,255,0.14) 2px, transparent 3px),
    radial-gradient(circle at 46% 18%, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px, transparent 3px),
    radial-gradient(circle at 78% 72%, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 2px),
    radial-gradient(circle at 92% 46%, rgba(255,203,5,0.12) 0px, rgba(255,203,5,0.12) 1px, transparent 2px),
    radial-gradient(circle at 70% 35%, rgba(80,120,255,0.10) 0px, rgba(80,120,255,0.10) 1px, transparent 2px),
    radial-gradient(circle at 8% 28%, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 2px),
    radial-gradient(circle at 18% 84%, rgba(80,120,255,0.12) 0px, rgba(80,120,255,0.12) 2px, transparent 3px),
    radial-gradient(circle at 36% 62%, rgba(255,203,5,0.10) 0px, rgba(255,203,5,0.10) 1px, transparent 2px),
    radial-gradient(circle at 54% 48%, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 2px),
    radial-gradient(circle at 66% 8%, rgba(255,203,5,0.12) 0px, rgba(255,203,5,0.12) 2px, transparent 3px),
    radial-gradient(circle at 88% 10%, rgba(80,120,255,0.12) 0px, rgba(80,120,255,0.12) 1px, transparent 2px),
    radial-gradient(circle at 96% 82%, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, transparent 2px);
  opacity: 0.68;
  pointer-events: none;
}

@keyframes floatLights {
  from { background-position: 20% 30%, 80% 60%; }
  to   { background-position: 30% 40%, 70% 50%; }
}

/* HEADER (clean) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 86px;
  background: rgba(18, 20, 60, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.header-inner {
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* LOGO */
.logo {
  margin: 0;
  height: 54px;
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
  transition: transform 0.2s ease;
  transform: translateZ(0);
}

.brand-link:hover .logo {
  transform: translateY(-1px);
}

/* BRAND */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
  transition: opacity 0.2s ease;
  text-shadow:
    0 0 18px rgba(255,203,5,0.18),
    0 0 42px rgba(255,203,5,0.06);
}

.brand-tagline {
  font-size: 0.85rem;
  opacity: 0.9;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.92;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.top-nav a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,203,5,0.18);
}

.top-nav a.nav-accent {
  color: var(--yellow);
  opacity: 1;
  border-color: rgba(255,203,5,0.22);
  background: rgba(255,203,5,0.08);
}

.top-nav a.nav-accent:hover {
  background: rgba(255,203,5,0.12);
  border-color: rgba(255,203,5,0.34);
}

/* Menu mobile (hamburger) */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: calc(50% - 6px); }
.menu-toggle span::after  { top: calc(50% + 6px); }

.site-header.nav-open .menu-toggle span { background: transparent; }
.site-header.nav-open .menu-toggle span::before { top: 50%; transform: translateX(-50%) rotate(45deg); }
.site-header.nav-open .menu-toggle span::after  { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* SECTIONS */
section {
  max-width: 920px;
  margin: 44px auto;
  padding: 0 20px;
}

/* Offset ancres (header sticky) */
section[id] {
  scroll-margin-top: var(--header-offset);
}

section h2 {
  font-size: 1.55em;
  font-weight: 700;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
  position: relative;
  text-shadow:
    0 0 16px rgba(255,203,5,0.14),
    0 0 36px rgba(255,203,5,0.05);
}

section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,203,5,0.85), transparent);
  box-shadow: 0 0 18px rgba(255,203,5,0.10);
}

.section-subtitle {
  text-align: center;
  margin: -6px 0 14px;
  opacity: 0.88;
}

main {
  display: block;
}

/* INTRO */
.intro {
  text-align: center;
  padding: 38px 20px;
}

/* CARD */
.card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 32px rgba(0,0,0,0.22);
}

/* léger reflet façon "holo" (statique, pas kitsch) */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,203,5,0.12), transparent 42%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 20%, transparent 40%);
  opacity: 0.55;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  border-color: rgba(255,203,5,0.20);
  box-shadow: 0 18px 38px rgba(0,0,0,0.25);
}

.card-center {
  text-align: center;
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step-card {
  border-color: rgba(255,255,255,0.12);
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255,203,5,0.06) inset,
    0 0 22px rgba(255,203,5,0.06);
  opacity: 0.65;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
}

.step-head::after {
  content: "";
  position: absolute;
  left: 38px;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,203,5,0.0), rgba(255,203,5,0.75), rgba(255,203,5,0.0));
  opacity: 0.35;
  transform: scaleX(0.75);
  transform-origin: left;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.step-card:hover .step-head::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--yellow);
  background: rgba(255,203,5,0.12);
  border: 1px solid rgba(255,203,5,0.30);
  box-shadow: 0 0 14px rgba(255,203,5,0.10);
  flex: 0 0 auto;
}

.step-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(255,203,5,0.10);
}

.step-card p {
  margin: 12px 0 0;
  opacity: 0.92;
  line-height: 1.6;
}

/* CTA */
.cta-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,203,5,0.4);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255,203,5,0.22), rgba(255,203,5,0.10));
  border-color: rgba(255,203,5,0.45);
  color: var(--yellow);
  box-shadow:
    0 0 0 1px rgba(255,203,5,0.05) inset,
    0 12px 26px rgba(0,0,0,0.20);
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,203,5,0.09) inset,
    0 0 22px rgba(255,203,5,0.10),
    0 14px 30px rgba(0,0,0,0.22);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
}

.instagram-embed {
  border: 0;
  border-radius: 14px;
}

/* PARTENAIRES */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.partner-card {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,203,5,0.10), transparent 40%),
    linear-gradient(to top, rgba(0,0,0,0.35), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border-color: rgba(255,203,5,0.25);
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: saturate(1.06) contrast(1.06);
}

.partner-card:hover img {
  transform: scale(1.04);
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px 14px 12px;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(8, 10, 30, 0.72), rgba(8, 10, 30, 0.0));
  transition: background 0.25s ease;
}

@media (hover: hover) {
  .partner-card:hover .partner-overlay {
    background:
      linear-gradient(to top, rgba(8, 10, 30, 0.92), rgba(8, 10, 30, 0.35));
  }
}

.partner-overlay {
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.partner-overlay h3 {
  margin-bottom: 2px;
}

.partner-overlay h3,
.partner-overlay h4 {
  line-height: 1.2;
}

.partner-overlay h3,
.partner-overlay h4 {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(8, 10, 30, 0.34);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

.partner-overlay h4 {
  margin-top: 6px;
}

.partner-overlay h4 {
  font-size: 0.95rem;
}

.partner-overlay h4 {
  opacity: 0.92;
  font-weight: 600;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

@media (hover: hover) {
  .partner-card:hover .badge-row {
    opacity: 1;
  }
}

@media (hover: none) {
  .partner-overlay {
    background:
      linear-gradient(to top, rgba(8, 10, 30, 0.86), rgba(8, 10, 30, 0.12));
  }

  .badge-row {
    opacity: 0.95;
  }

  .series-list {
    opacity: 0.70;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  color: var(--yellow);
  background: rgba(255,203,5,0.18);
  border: 1px solid rgba(255,203,5,0.42);
  box-shadow: 0 10px 18px rgba(0,0,0,0.20);
}

.series-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 4px;
  opacity: 0.62;
  font-size: 0.9rem;
  transition: opacity 0.25s ease;
}

@media (hover: hover) {
  .partner-card:hover .series-list {
    opacity: 0.82;
  }
}

.series-list li {
  position: relative;
  padding-left: 14px;
}

.series-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,203,5,0.85);
  box-shadow: 0 0 12px rgba(255,203,5,0.18);
}

.partner-overlay p {
  opacity: 0.9;
  font-size: 0.9rem;
}

.partner-overlay h3 {
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(255,203,5,0.10);
}

/* COMING SOON */
.coming-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.ribbon {
  position: absolute;
  top: 20px;
  right: -60px;
  transform: rotate(45deg);
  background: rgba(0,0,0,0.75);
  color: var(--yellow);
  padding: 10px 80px;
  font-weight: bold;
  border: 1px solid rgba(255,203,5,0.20);
}

/* CONTACT */
.contact-box {
  text-align: center;
}

.contact-links {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  font-weight: 700;
}

.contact-link:hover {
  border-color: rgba(255,203,5,0.22);
  background: rgba(255,255,255,0.07);
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--yellow);
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25));
}

.contact-box a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 26px 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-muted {
  opacity: 0.75;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
  font-weight: 800;
  opacity: 0.9;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,203,5,0.18);
}

.footer-note {
  margin: 12px 0 0;
  opacity: 0.7;
  line-height: 1.45;
}




/* Mobile  */

@media (max-width: 768px) {

  /* HEADER */
  .site-header {
    height: auto;
  }

  .logo {
    height: 48px;
  }

  .brand {
    gap: 0;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    display: none;
  }

  .top-nav {
    gap: 8px;
  }

  .top-nav a {
    font-size: 0.9rem;
    padding: 8px 8px;
  }

  /* TITRES */
  section h2 {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .intro {
    padding: 44px 20px;
  }

  /* CARDS */
  .card {
    padding: 18px;
  }

  /* PARTENAIRES */
  .partner-card {
    height: 270px;
  }
}

@media (max-width: 640px) {
  section {
    margin: 36px auto;
    padding: 0 16px;
  }

  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
  }

  .brand-link {
    width: auto;
    justify-content: flex-start;
  }

  .brand {
    align-items: flex-start;
    text-align: left;
  }

  .top-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(18, 20, 60, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 34px rgba(0,0,0,0.35);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-header.nav-open .top-nav {
    display: flex;
  }

  .top-nav a {
    white-space: nowrap;
    font-size: 0.92rem;
    padding: 10px 10px;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .partner-card.coming-soon {
    display: none;
  }

  .partner-card {
    height: 220px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .partner-overlay {
    padding: 12px 12px 10px;
  }

  .partner-overlay p {
    font-size: 0.88rem;
  }

  .instagram-embed {
    height: 520px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  section h2 {
    font-size: 1.3rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .top-nav a {
    font-size: 0.82rem;
    padding: 7px 8px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    height: 240px;
  }

  .instagram-embed {
    height: 460px;
  }
}