/* ── Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@100..900&display=swap');

@font-face {
  font-family: 'ClashDisplay';
  src: url('../assets/fonts/ClashDisplay-Variable.woff2') format('woff2'),
       url('../assets/fonts/ClashDisplay-Variable.woff')  format('woff');
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: 'ClashGrotesk';
  src: url('../assets/fonts/ClashGrotesk-Variable.woff2') format('woff2'),
       url('../assets/fonts/ClashGrotesk-Variable.woff')  format('woff');
  font-weight: 200 700;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────── */
:root {
  --black:  #131619;
  --violet: #6630F9;
  --slate:  #A6B6CC;
  --mint:   #93FF8C;
  --white:  #F2F4F7;

  --ff-base:    'ClashGrotesk', system-ui, sans-serif;
  --ff-display: 'ClashDisplay', system-ui, sans-serif;
  --ff-accent:  'Smooch Sans', 'ClashGrotesk', sans-serif;
  --ff-mono:    'Courier New', monospace;

  --nav-h: 64px;
  --max-w: 1100px;
  --gap:   clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-base);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utilities ─────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.btn {
  display: inline-block;
  padding: .8rem 1.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: background .2s, color .2s, transform .15s;
}
.btn--primary {
  background: var(--mint);
  color: var(--black);
}
.btn--primary:hover {
  background: #7deb76;
  transform: translateY(-1px);
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(19, 22, 25, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(166, 182, 204, .1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.nav__logo img { height: 32px; width: auto; }

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(102, 48, 249, .6)); }
  50%       { filter: drop-shadow(0 0 28px rgba(102, 48, 249, 1)) drop-shadow(0 0 55px rgba(102, 48, 249, .8)); }
}

@keyframes glow-pulse-mobile {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(102, 48, 249, .9)) drop-shadow(0 0 20px rgba(102, 48, 249, .6)); }
  50%       { filter: drop-shadow(0 0 30px rgba(102, 48, 249, 1)) drop-shadow(0 0 50px rgba(102, 48, 249, 1)) drop-shadow(0 0 70px rgba(102, 48, 249, .7)); }
}

.logo--glitch {
  animation: glow-pulse 3s ease-in-out infinite;
}

@media (max-width: 720px) {
  .logo--glitch {
    animation-name: glow-pulse-mobile;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: .03em;
  transition: color .2s;
}
.nav__links a:hover { color: var(--white); }

.lang-toggle {
  font-size: .8rem;
  font-weight: 500;
  font-family: var(--ff-mono);
  color: var(--mint);
  letter-spacing: .08em;
  border: 1px solid var(--mint);
  padding: .25rem .6rem;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.lang-toggle:hover {
  background: var(--mint);
  color: var(--black);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ────────────────────────────────────── */
@media (max-width: 720px) {
  .nav__burger { display: flex; }

  .nav.menu-open {
    backdrop-filter: none;
    background: #131619;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    bottom: 50%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #131619;
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
    transform: translateX(100%);
    transition: transform .3s ease;
    border-top: 1px solid rgba(166, 182, 204, .1);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a {
    font-size: 1.2rem;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(166, 182, 204, .08);
    color: var(--white);
  }
  .lang-toggle { margin-top: 1.5rem; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--nav-h) - 32px) 2rem;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(166,182,204,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166,182,204,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 680px;
}

.hero__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(102, 48, 249, .4));
}

.hero__label {
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--mint);
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.hero__sub {
  font-family: var(--ff-accent);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--slate);
  font-weight: 400;
  max-width: 480px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Sections ──────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 10vw, 7rem);
}
.section--alt {
  background: rgba(255,255,255,.025);
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section__num {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--violet);
  letter-spacing: .1em;
  flex-shrink: 0;
}
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -.02em;
}

/* ── Cards (Services) ──────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(166,182,204,.1);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, background .2s;
}
.card:hover {
  border-color: var(--violet);
  background: rgba(102,48,249,.06);
}
.card__icon {
  font-size: 1.4rem;
  color: var(--mint);
  line-height: 1;
}
.card__title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
}
.card__body {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ── Pillars (Pourquoi) ────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--violet);
}
.pillar__title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
}
.pillar__body {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ── W background ──────────────────────────────────── */
.section--w-bg {
  position: relative;
  overflow: hidden;
}
.section--w-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/bg-w-lines.webp') center / cover no-repeat;
  opacity: .06;
  pointer-events: none;
}

/* ── About ─────────────────────────────────────────── */
.about {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about__text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate);
  line-height: 1.75;
}
.about__tag {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: rgba(166,182,204,.35);
  letter-spacing: .05em;
}

/* ── Contact ───────────────────────────────────────── */
.section--contact {
  background: rgba(102,48,249,.07);
  border-top: 1px solid rgba(102,48,249,.2);
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.contact__sub {
  color: var(--slate);
  font-size: 1rem;
  max-width: 460px;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(166,182,204,.08);
  padding-block: 2rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: .8rem;
  color: rgba(166,182,204,.4);
}
