/* ===================== 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; scroll-padding-top: 80px; }
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;
  /* Barre indigo translucide, assortie au hero — toujours lisible */
  background: rgba(28, 24, 56, .72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav--scrolled {
  background: rgba(20, 17, 31, .92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}
/* Tout le contenu de la barre en blanc, en permanence */
.nav .brand,
.nav .brand__drop,
.nav .brand__ink,
.nav .nav__links a,
.nav .nav__burger { color: #fff; }
.nav .nav__links a { opacity: .85; }
.nav .nav__links a:hover { opacity: 1; color: #fff; }
.nav .nav__cta { background: #fff; color: var(--primary); }
.nav .nav__cta:hover { background: #ece9f6; color: var(--primary); }
.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; font-weight: 600; }
.brand__ink { color: var(--primary); font-weight: 800; }
.brand--light { color: #fff; }
.brand--light .brand__drop { color: #fff; }
.brand__ink--light { color: #fff; }

.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;
  /* Remonte sous la barre de nav (sticky, 72px) pour que le fond sombre
     soit présent dès le haut — supprime le liseré blanc derrière la nav translucide. */
  margin-top: -72px;
  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: .22; }
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(75% 65% at 50% 45%, rgba(20,17,31,.05) 0%, rgba(20,17,31,.55) 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__drop {
  position: absolute;
  right: -70px; bottom: -90px;
  width: 380px; height: 380px;
  color: rgba(150, 136, 214, .38);
  filter: blur(18px);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero__drop { width: 240px; height: 240px; right: -50px; bottom: -60px; }
}

/* ===================== 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); }
.grid--3 { grid-template-columns: repeat(3, 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; }

/* ===================== 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; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07);
  color: #c9c6d6;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}
.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; }

/* ===================== RÉALISATIONS (WORK) ===================== */
.work {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #ddd9ec; }
.work__thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #2c2550, #1c1838);
}
.work__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .3s ease;
}
.work:hover .work__thumb img { transform: scale(1.04); }
.work__link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.work:hover .work__link { text-decoration: underline; text-underline-offset: 3px; }
.work__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 6px;
}
.work__title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.work__text { color: #5a5766; font-size: 15px; }
.work__note { text-align: center; margin-top: 36px; font-size: 14px; color: #908da0; }

/* ===================== TARIFS (PRICING) ===================== */
/* ===================== TARIFS (épuré) ===================== */
.plans {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 720px; margin: 0 auto;
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.plan--accent { border-color: var(--primary); box-shadow: 0 18px 40px rgba(49,40,93,.16); }
.plan__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary); margin-bottom: 20px;
}
.plan__rows { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.plan__rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan__row-name { font-size: 16px; color: var(--text); }
.plan__row-price { font-size: 26px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.plan__big { font-size: 46px; font-weight: 800; color: var(--primary); line-height: 1; margin: 2px 0 8px; }
.plan__per { font-size: 18px; font-weight: 600; color: #5a5766; }
.plan__incl { font-size: 13px; color: #908da0; margin: 0 0 20px; }
.plan__chips { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: rgba(49,40,93,.08);
  padding: 5px 11px; border-radius: var(--radius-pill);
}

.plans__abo {
  max-width: 720px; margin: 22px auto 0;
  text-align: center; font-size: 15px; color: var(--text);
  background: rgba(49,40,93,.05); border-radius: var(--radius);
  padding: 16px 22px;
}
.plans__abo strong { color: var(--primary); }
.plans__abo p { margin: 0; }
.plans__abo p + p { margin-top: 8px; }
.plans__foot { text-align: center; margin-top: 28px; }
.plans__note { font-size: 13px; color: #908da0; margin-top: 16px; }

/* ===================== CONTACT FORM ===================== */
.contact-form {
  margin: 8px auto 0;
  max-width: 560px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__hp { position: absolute; left: -9999px; opacity: 0; }
.contact-form__row { display: flex; gap: 16px; }
.contact-form__row .contact-form__field { flex: 1; }
.contact-form__field { display: flex; flex-direction: column; gap: 7px; }
.contact-form__field span { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9); }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 16px;
  width: 100%;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9b98a8; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form__submit { align-self: flex-start; margin-top: 6px; }
.contact-form__status { font-size: 15px; min-height: 1.2em; }
.contact-form__status.is-ok { color: #c7f0d8; }
.contact-form__status.is-error { color: #ffd2d2; }
.cta__fallback { margin-top: 26px; font-size: 15px; color: rgba(255,255,255,.8); }
.cta__fallback a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== 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); }
  .grid--3 { 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; }
  .grid--3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .contact-form__row { flex-direction: column; gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
.mobile-menu[hidden] { display: none; }
