@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg:        #0B0C10;
  --bg-2:      #0F1117;
  --bg-3:      #14161E;
  --bg-4:      #1A1D28;
  --purple:    #8B7CF6;
  --purple-dim:#5A50B0;
  --lilac:     #C4B8FF;
  --white:     #EEEEF5;
  --muted:     rgba(238,238,245,0.55);
  --faint:     rgba(238,238,245,0.28);
  --line:      rgba(238,238,245,0.08);
  --radius:    14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── TYPO ── */
h1, h2, h3 { font-family: 'Syne', sans-serif; letter-spacing: -0.025em; line-height: 1.1; }
.t-display  { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 800; }
.t-headline { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; }
.t-body     { font-size: 1rem; font-weight: 300; color: var(--muted); line-height: 1.8; }
.t-label    { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.t-accent   { color: var(--lilac); }

/* ── LAYOUT ── */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); }

/* ── NAV ── */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  padding: 1.2rem 0;
  background: rgba(11,12,16,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s;
}
nav.scrolled {
  padding: 1rem 0;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  max-width: 100%;
}

.nav-wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white); transition: color .2s;
  justify-self: start;
}
.nav-wordmark:hover { color: var(--lilac); }

/* Bouton close mobile : invisible sur desktop */
.nav-mobile-close { display: none; }

/* Masquer le bouton Nous contacter dans les nav-links */
.mobile-cta-item { display: none !important; }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-size: 1rem; font-weight: 400;
  color: var(--white);
  opacity: 0.55;
  transition: opacity .2s;
  position: relative;
}
.nav-links a:hover { opacity: 1; }

/* Page active */
.nav-links a.active {
  opacity: 1;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--purple);
  border-radius: 999px;
}

.nav-right {
  justify-self: end;
}

.nav-cta {
  /* Design unique : pas de fond violet, juste une bordure blanche lumineuse */
  background: rgba(255,255,255,0.06);
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  padding: .52rem 1.35rem;
  border-radius: 8px; /* carré au lieu d'ovale comme les autres */
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: 1 !important;
  transition: background .25s, border-color .25s, transform .2s;
  display: inline-block;
  backdrop-filter: blur(4px);
}
.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.55) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 201;
}
.nav-burger span { display: block; width: 26px; height: 1.5px; background: var(--white); transition: all .3s; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500;
  padding: .9rem 2.2rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: all .25s; cursor: pointer; white-space: nowrap;
}

/* Boutons du hero : largeur identique forcée */
.hero-actions .btn {
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
  width: 260px;
  justify-content: center;
}
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover { background: var(--lilac); border-color: var(--lilac); color: #111; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139,124,246,.35); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(238,238,245,.35); }
.btn-secondary:hover { border-color: var(--purple); color: var(--lilac); transform: translateY(-2px); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,1,.4,1), transform .7s cubic-bezier(.2,1,.4,1); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .32s; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line); padding: 1.8rem 0; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-left  { justify-self: start; }
.footer-mid   { justify-self: center; }
.footer-right { justify-self: end; }
.footer-inner a, .footer-inner span { font-size: .8rem; color: var(--faint); transition: color .2s; }
.footer-inner a:hover { color: var(--muted); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 768px) {
  .nav-inner { grid-template-columns: 1fr auto; padding: 0 1.25rem; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }
  /* burger reste visible — il devient la croix */

  /* Nav-links : panel pleine largeur qui slide depuis le haut, z-index au-dessus de la nav */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    background: rgba(11,12,16,1); /* totalement opaque */
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 201; /* au-dessus de la nav (200) */
    padding-top: 0;
    transform: translateY(-110%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    display: flex;
  }
  .nav-links.open { transform: translateY(0); }

  /* Premier li : Accueil + bouton X sur la même ligne */
  .nav-links li:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .nav-links li:first-child a {
    text-align: center;
    padding: 1.3rem 1.75rem;
    flex: 1;
    border-bottom: none;
  }

  /* nav-mobile-close reste caché sur mobile — c'est le burger qui fait la croix */

  /* Burger → croix quand menu ouvert */
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Autres items */
  .nav-links li {
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav-links .mobile-cta-item { display: none; }
  .nav-links a {
    display: block;
    font-size: 1.1rem;
    padding: 1.2rem 1.75rem;
    opacity: 0.7;
    text-align: center;
    width: 100%;
  }
  .nav-links a:hover,
  .nav-links a.active { opacity: 1; }
  .nav-links a.active::after { display: none; }

}  /* fin @media 768px */

@media (max-width: 600px) {
  /* Footer : copyright à gauche, mentions légales à droite, Contact masqué */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0;
  }
  .footer-left  { display: none; } /* Cache Contact */
  .footer-mid   { justify-self: start; }
  .footer-right { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; }
}
