:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --ink: #0a0f2c;
  --ink-soft: #4a5068;
  --brand: #0b1f8a;
  --brand-deep: #060f4a;
  --brand-accent: #2a4bff;
  --line: #e6e8f0;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(6, 15, 74, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* -------- Header -------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Archivo Narrow', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--brand);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background-color: #05081e;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(5, 8, 30, 0.92) 0%, rgba(5, 8, 30, 0.55) 40%, rgba(5, 8, 30, 0.15) 70%, rgba(5, 8, 30, 0) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
.hero__content {
  padding: 80px 24px 100px;
  max-width: 880px;
  position: relative;
  z-index: 3;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin: 0 0 16px;
}
.eyebrow--light { color: #a8b4ff; }

.hero__tagline {
  font-size: clamp(18px, 2vw, 24px);
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 40px;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: #fff;
  color: var(--brand-deep);
}
.btn--primary:hover { transform: translateY(-2px); background: #e9ecff; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* -------- Sections -------- */
.section {
  padding: 120px 0;
}
.section--dark {
  background: var(--brand-deep);
  color: #fff;
}
.section__title {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 64px;
  max-width: 640px;
  line-height: 1.15;
}
h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.section--dark .lead { color: rgba(255, 255, 255, 0.8); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

/* -------- Services -------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--brand-deep);
  padding: 40px 36px;
  transition: background 0.3s ease;
}
.service:hover { background: #0a166a; }
.service__num {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #6d84ff;
  margin-bottom: 20px;
}
.service h3 {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 600;
}
.service p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 15.5px;
}

/* -------- Contact -------- */
.contact {
  max-width: 720px;
}
.form {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form label {
  display: grid;
  gap: 8px;
}
.form label > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.form label > span em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 400;
}
.form input,
.form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.form .btn { justify-self: start; }

.contact__direct {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact__direct p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
}
.contact__direct a {
  color: var(--brand);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.contact__direct a:hover { text-decoration: underline; }

.contact__methods {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact__method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.contact__method:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-alt);
  text-decoration: none;
  transform: translateY(-1px);
}
.contact__method svg { flex-shrink: 0; }

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.footer__linkedin:hover { text-decoration: underline; }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 860px) {
  .footer__meta { align-items: flex-start; }
}

/* -------- Footer -------- */
.footer {
  background: var(--bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin: 0 0 4px;
  font-size: 18px;
}
.footer__small {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer__meta {
  text-align: right;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer__meta p { margin: 0 0 4px; }

/* -------- Legal pages (mentions, confidentialité) -------- */
.legal {
  padding: 100px 0 120px;
  background: var(--bg);
}
.legal__inner {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.legal__date {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 48px;
}
.legal section {
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--brand);
}
.legal p { margin: 0 0 12px; color: var(--ink-soft); }
.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-soft);
}
.legal ul li { margin-bottom: 6px; }
.legal a {
  color: var(--brand);
  text-decoration: underline;
}
.legal a:hover { text-decoration: none; }
.legal strong { color: var(--ink); }
.legal em {
  background: #fff4c2;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.95em;
}
.legal__back {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Honeypot field (hidden from real users) */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------- Thank-you page -------- */
.thanks {
  padding: 120px 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--brand);
  margin: 0 auto 32px;
}
.thanks h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.15;
}
.thanks .lead { max-width: 520px; margin: 0 auto 16px; }
.thanks__meta {
  color: var(--ink-soft);
  margin: 0 0 40px;
  font-size: 15px;
}
.thanks__meta a { color: var(--brand); font-weight: 500; }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero__content { padding: 60px 24px 80px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }

  /* Mobile hero: show full image (contain) instead of cropped (cover) */
  .hero {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .hero__bg {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    transform: none;
    animation: none;
  }
  .hero__overlay {
    display: none;
  }
  .hero__content {
    background: var(--brand-deep);
    padding: 40px 24px 56px;
  }
  .hero__tagline { color: rgba(255, 255, 255, 0.9); }

  /* Contact methods stack vertically on mobile */
  .contact__methods {
    flex-direction: column;
    align-items: stretch;
  }
  .contact__method {
    justify-content: center;
    padding: 14px 20px;
  }

  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open a:last-child { border-bottom: 0; }
}
