/* ===================== DESIGN TOKENS ===================== */
:root {
  --bg: #ffffff;
  --text: #23212b;
  --muted-bg: #f7f7f8;
  --primary: #31285d;
  --primary-light: #4a3d86;
  --primary-dark: #241c45;
  --border: #ecebef;
  --radius: 16px;
  --radius-pill: 9999px;
  --container: 1200px;
  --shadow-sm: 0 1px 3px rgba(20, 16, 45, .06), 0 1px 2px rgba(20, 16, 45, .04);
  --shadow-md: 0 12px 30px rgba(20, 16, 45, .08);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-family: inherit;
  font-size: 16px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.btn--lg { padding: 15px 38px; font-size: 18px; font-weight: 600; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.brand__drop { color: var(--primary); flex: none; }
.brand__name { font-size: 22px; letter-spacing: -.02em; }
.brand__ink { color: var(--primary); }
.brand--light { color: #fff; }
.brand--light .brand__drop { color: #fff; }
.brand__ink--light { color: #b6abe6; }

.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  opacity: .82;
  transition: opacity .15s ease, color .15s ease;
}
.nav__links a:hover { opacity: 1; color: var(--primary); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 6px;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 26px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a { font-weight: 500; }
.mobile-menu .btn { align-self: flex-start; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 70% 10%, #2c2550 0%, #1c1838 55%, #14111f 100%);
  color: #fff;
}
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; }
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(20,17,31,.15) 0%, rgba(20,17,31,.75) 100%);
}
.hero__content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero__title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 auto;
  max-width: 14ch;
}
.hero__subtitle {
  margin: 26px auto 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  color: rgba(255,255,255,.82);
}
.hero .btn { margin-top: 42px; }
.hero__corner {
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 260px 260px;
  border-color: transparent transparent rgba(74,61,134,.35) transparent;
  z-index: 1;
}

/* ===================== SECTIONS ===================== */
.section { padding: 120px 0; }
.section--muted { background: var(--muted-bg); }
.section--cta { background: var(--primary); color: #fff; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section__title { font-size: clamp(32px, 4.5vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.section__lead { margin-top: 18px; font-size: 18px; color: #5a5766; }
.section--muted .section__lead { color: #5a5766; }

/* ===================== GRID ===================== */
.grid { display: grid; gap: 28px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== SERVICE CARDS ===================== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #ddd9ec; }
.card__icon {
  display: inline-flex;
  width: 60px; height: 60px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(49, 40, 93, .08);
  color: var(--primary);
  margin-bottom: 22px;
}
.card__icon svg { width: 30px; height: 30px; }
.card__title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card__text { color: #5a5766; font-size: 15px; }

/* ===================== FEATURES (POURQUOI) ===================== */
.feature { text-align: left; }
.feature__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 6px;
}
.feature__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature__text { color: #5a5766; font-size: 15px; }

/* ===================== STORY ===================== */
.story { text-align: center; }
.story .section__title { margin-bottom: 28px; }
.story__lead { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 20px; }
.story__text { font-size: 17px; color: #5a5766; margin-bottom: 18px; }
.story__note {
  margin-top: 26px;
  font-size: 14px;
  color: #8a8794;
  background: var(--muted-bg);
  border: 1px dashed #d8d6e0;
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-block;
}

/* ===================== CTA ===================== */
.cta { text-align: center; }
.cta__title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.cta__text { margin: 20px auto 38px; font-size: 19px; max-width: 540px; color: rgba(255,255,255,.85); }

/* ===================== FOOTER ===================== */
.footer { background: #14111f; color: #c9c6d6; padding: 64px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__tagline { margin-top: 16px; font-size: 15px; color: #908da0; max-width: 360px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.footer__col a:hover { color: #fff; }
.footer__muted { color: #6f6c80; font-size: 14px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
  color: #807d92;
}
.footer__bottom a:hover { color: #fff; }

/* ===================== REVEAL ANIMATION ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .section { padding: 84px 0; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
.mobile-menu[hidden] { display: none; }
