
/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --white:     #FFFFFF;
  --off:       #F7F7F7;
  --border:    #E5E5E5;
  --text:      #111111;
  --text-2:    #555555;
  --text-3:    #999999;
  --accent:    #1B4CD8;
  --accent-dk: #1440B5;
  --font:      'DM Sans', system-ui, -apple-system, sans-serif;
  --max:       1160px;
  --pad:       clamp(20px, 5vw, 80px);
  --nav-h:     68px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ─── CONTAINER ───────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ─── SECTION HEADER ──────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
}

/* ─── SCROLL REVEAL ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.08s; }
.fade-in.d2 { transition-delay: 0.16s; }
.fade-in.d3 { transition-delay: 0.24s; }
.fade-in.d4 { transition-delay: 0.32s; }
.fade-in.d5 { transition-delay: 0.40s; }
.fade-in.d6 { transition-delay: 0.48s; }

/* ─── NAV ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
  transition: box-shadow 0.3s var(--ease);
}
#nav.elevated { box-shadow: 0 2px 24px rgba(0,0,0,0.4); }
/* Logo gauche — tous les liens à droite, même style */
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: var(--nav-h);
  display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-dk); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger[aria-expanded=true] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
#mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 99;
  flex-direction: column;
  padding: 32px var(--pad);
  gap: 28px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 20px;
}
#mobile-menu .mob-btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 6px;
  width: fit-content;
  border-bottom: none;
  padding-bottom: 14px;
}

/* ─── HERO ────────────────────────────────────────────── */
/* Section : fond clair, bannière sombre pleine largeur (bord à bord) */
#hero {
  background: var(--white);
  padding: clamp(40px, 6vh, 64px) 0;
  border-top: 1px solid var(--border);
}
/* Bannière sombre — 100% largeur */
.hero-banner {
  background: #0C1220;
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
/* Lueur bleue gauche */
.hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -5%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(27,76,216,0.18) 0%, transparent 60%);
  pointer-events: none;
}
/* Grid texte + visuel à l'intérieur du container */
.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
/* Visuel SVG droit */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg {
  width: 100%;
  height: auto;
  max-height: 380px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
}
.hero-h1 em { font-style: normal; color: #7BA3FF; }
.hero-p {
  font-size: 16px;
  color: rgba(255,255,255,0.58);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dk); }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
/* Stats sous les boutons */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.hero-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}


/* ─── ABOUT ───────────────────────────────────────────── */
#about {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.about-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--off);
  border-radius: 12px;
  overflow: hidden;
}
.about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.about-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off);
}
.about-img-placeholder p {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  padding: 20px;
  line-height: 1.8;
}
.about-xp-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.about-xp-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.about-xp-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
}
.about-text { }
.about-bio {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 300;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.about-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ─── SERVICES ────────────────────────────────────────── */
#services {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--off);
  border-top: 1px solid var(--border);
}
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service-card:hover { background: #FAFAFA; }
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.service-icon {
  font-size: 32px;
  line-height: 1;
}
.service-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.service-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  font-weight: 300;
}
/* Last row — only 3 cards spanning to complete the grid nicely */
.services-grid .service-card:nth-child(5),
.services-grid .service-card:nth-child(6),
.services-grid .service-card:nth-child(7) {
  /* Let them stretch naturally */
}

/* ─── PORTFOLIO ───────────────────────────────────────── */
#portfolio {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 5vw, 64px);
  gap: 24px;
  flex-wrap: wrap;
}
.portfolio-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pf-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.pf-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.pf-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--off);
}
.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pf-card:hover .pf-thumb img { transform: scale(1.04); }
.pf-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pf-thumb-placeholder p {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  padding: 0 16px;
}
.pf-cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--text);
  border-radius: 100px;
  padding: 5px 12px;
}
.pf-info {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--border);
}
.pf-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pf-sub {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}
.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
  transition: gap 0.2s;
}
.pf-link svg { flex-shrink: 0; }
.pf-card:hover .pf-link { gap: 10px; }

/* ─── CTA ─────────────────────────────────────────────── */
#cta {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.cta-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--accent); }
.cta-h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-white { background: var(--white); color: var(--text); }
.btn-white:hover { background: var(--off); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); }

/* ─── CONTACT ─────────────────────────────────────────── */
#contact {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-info { }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--off);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 16px; height: 16px; stroke: var(--text-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.contact-item-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}
.contact-item-val a:hover { color: var(--accent); }
.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  transition: background 0.2s, color 0.2s;
}
.social-pill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-pill:hover { background: var(--text); color: var(--white); border-color: var(--text); }
/* Form */
.contact-form {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 24px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text); }
.form-label span { color: var(--accent); }
.form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: var(--text); }
textarea.form-input { resize: vertical; min-height: 140px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  justify-content: center;
}
.form-submit:hover { background: var(--accent-dk); }
.form-submit:active { transform: scale(0.98); }
.form-note {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--text);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .services-header { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  /* Hero mobile */
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero-p { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 340px; }
  .about-xp-badge { right: 0; }
  .pf-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
