/* ==========================================================================
   SWVERTEX : Design system
   ========================================================================== */

:root {
  --ink: #0b0e14;
  --ink-soft: #343b4a;
  --muted: #6b7080;
  --paper: #faf9f7;
  --surface: #ffffff;
  --line: #e7e4de;
  --line-strong: #d7d3cb;

  --blue: #1b3bf0;
  --blue-dark: #1230c9;
  --blue-ink: #0a0e1a;

  --ok: #0a9b5c;
  --ok-bg: #e9f8f1;
  --beta: #b5690a;
  --beta-bg: #fdf1e2;
  --soon: #565c6b;
  --soon-bg: #eeede9;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Theme clair/sombre (bascule manuelle via data-theme) ---------- */
:root[data-theme="dark"] {
  --ink: #f1f2f5;
  --ink-soft: #c2c6d1;
  --muted: #8b90a0;
  --paper: #11141c;
  --surface: #191d28;
  --line: #262b38;
  --line-strong: #343b4a;

  --ok: #2fd98c;
  --ok-bg: #0f3324;
  --beta: #e2a355;
  --beta-bg: #3a2a14;
  --soon: #9aa0b2;
  --soon-bg: #232733;
}

body,
.nav,
.page-hero,
.service-card,
.sector-card,
.expertise__item,
.product-card,
.real-card,
.about,
.products,
.section-surface,
footer.site-footer {
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  body, .nav, .page-hero, .service-card, .sector-card, .expertise__item,
  .product-card, .real-card, .about, .products, .section-surface,
  footer.site-footer { transition: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 112px 0; }

@media (max-width: 960px) {
  section { padding: 76px 0; }
  .wrap { padding: 0 22px; }
}

/* ---------- Brand wordmark ---------- */
.sw { color: var(--blue); }
.vertex { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(27,59,240,0.5); }

.btn-outline { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-dark { color: #0b0e14; background: #fff; }
.btn-dark:hover { background: #ececea; transform: translateY(-1px); }

.btn-ghost-light { color: #fff; background: transparent; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { border-color: #fff; transform: translateY(-1px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

h1, h2, h3 { letter-spacing: -0.025em; font-weight: 800; line-height: 1.08; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }

/* ---------- Badges / status ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-live { color: var(--ok); background: var(--ok-bg); }
.badge-beta { color: var(--beta); background: var(--beta-bg); }
.badge-soon { color: var(--soon); background: var(--soon-bg); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav.is-scrolled { border-color: var(--line); }

:root[data-theme="dark"] .nav { background: rgba(17, 20, 28, 0.82); }
:root[data-theme="dark"] .nav__toggle { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
:root[data-theme="dark"] .window-card__bar { background: #242938; border-bottom-color: var(--line); }
:root[data-theme="dark"] .window-card__bar span { background: #3a4254; }
:root[data-theme="dark"] .spotlight-card__media,
:root[data-theme="dark"] .product-card__media,
:root[data-theme="dark"] .real-card__media,
:root[data-theme="dark"] .real-hero__shot { background: #1d2230; }

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav__brand span { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--blue); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.08s linear;
}

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  position: relative;
  z-index: 210;
}

.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 16px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -5px; }
.nav__toggle span::after { position: absolute; top: 5px; }

.nav__toggle.is-active span { background: transparent; }
.nav__toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.nav__toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Mobile drawer (vertical sidebar) ---------- */

.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.nav__backdrop.is-open { opacity: 1; pointer-events: auto; }

.nav__drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(84vw, 380px);
  background: var(--blue-ink);
  color: #fff;
  box-shadow: -24px 0 60px -20px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.19,1,.22,1);
  flex-direction: column;
  overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); }

.nav__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav__drawer-head .nav__brand span { color: #fff; }
.nav__drawer-head .nav__brand .sw { color: #6c93ff; }

.nav__drawer-close {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav__drawer-close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

.nav__drawer-links {
  list-style: none;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nav__drawer-links li {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--i) * 0.05s);
}
.nav__drawer.is-open .nav__drawer-links li { opacity: 1; transform: translateX(0); }

.nav__drawer-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.nav__drawer-links a:hover,
.nav__drawer-links a.is-active { color: #fff; padding-left: 10px; }
.nav__drawer-links a .n { font-size: 0.78rem; font-weight: 700; color: #4c6bd6; letter-spacing: 0.04em; }

.nav__drawer-foot {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav__drawer-mail {
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.nav__drawer-mail:hover { color: #fff; }

body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__drawer { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__drawer, .nav__backdrop, .nav__drawer-links li { transition: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 176px;
  padding-bottom: 96px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, black 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, black 35%, transparent 85%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.6rem, 5vw, 3.9rem);
}

.hero__sub {
  margin-top: 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
}

.hero__text {
  margin-top: 24px;
  max-width: 480px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.trust-strip { margin-top: 44px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust-strip__stack { display: flex; }
.trust-strip__stack img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--surface);
  object-fit: cover;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(10,14,26,0.12);
}
.trust-strip__stack img:first-child { margin-left: 0; }
.trust-strip__text { font-size: 0.86rem; color: var(--muted); font-weight: 600; }

.trust-strip--center { justify-content: center; margin: 0 auto 28px; }
.trust-strip--center .trust-strip__stack img { border-color: var(--blue-ink); }
.trust-strip__text--light { color: rgba(255,255,255,0.6); }

.hero__visual {
  position: relative;
  height: 420px;
}

.window-card {
  position: absolute;
  width: 280px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(10, 14, 26, 0.22);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  will-change: transform;
}

.window-card__bar {
  height: 28px;
  background: #f1efea;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
}
.window-card__bar span { width: 7px; height: 7px; border-radius: 50%; background: #d8d4cb; }

.window-card img { width: 100%; height: 150px; object-fit: cover; object-position: top; }

.window-card--a { top: 0; left: 16px; width: 300px; transform: rotate(-4deg) translate3d(var(--tx, 0px), var(--ty, 0px), 0); z-index: 3; }
.window-card--b { top: 120px; right: 0; width: 260px; transform: rotate(3deg) translate3d(var(--tx, 0px), var(--ty, 0px), 0); z-index: 2; }
.window-card--c { bottom: 0; left: 70px; width: 240px; transform: rotate(-2deg) translate3d(var(--tx, 0px), var(--ty, 0px), 0); z-index: 1; }

.hero__badge {
  position: absolute;
  top: 44%;
  left: 40%;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -16px rgba(10, 14, 26, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.hero__badge img { width: 38px; height: 38px; }

@media (max-width: 960px) {
  .hero { padding-top: 140px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__text { max-width: 100%; }
  .hero__visual { height: 320px; max-width: 360px; margin: 0 auto; }
  .window-card--a { width: 220px; left: 0; }
  .window-card--b { width: 190px; }
  .window-card--c { width: 170px; left: 30px; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 20px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 32px;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__track span.dot { color: var(--line-strong); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about__copy p { font-size: 1.15rem; line-height: 1.75; color: var(--ink-soft); }
.about__copy p + p { margin-top: 20px; }

.about__stats { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); }

.about__stat { padding: 0 0 0 24px; margin-bottom: 28px; }
.about__stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.about__stat--plus strong::before { content: "+"; color: var(--blue); }
.about__stat span { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__stats { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 2px solid var(--line); padding-top: 24px; gap: 28px; }
  .about__stat { padding-left: 0; margin-bottom: 0; }
}

.name-origin {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 40px;
}

.name-origin__mark {
  flex-shrink: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.name-origin__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}
.name-origin__text strong { color: var(--ink); }
.name-origin__text em { color: var(--blue); font-style: normal; font-weight: 600; }

@media (max-width: 760px) {
  .name-origin { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ==========================================================================
   Expertise (bento)
   ========================================================================== */

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 18px;
}

.expertise__item {
  position: relative;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.expertise__item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.expertise__item > * { position: relative; z-index: 1; }
.expertise__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(27, 59, 240, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.expertise__item:hover::before { opacity: 1; }

.expertise__item--lg { grid-column: span 4; }
.expertise__item--sm { grid-column: span 2; }

@media (min-width: 860px) {
  .expertise__item--sm:nth-of-type(3),
  .expertise__item--sm:nth-of-type(4) { grid-column: span 2; }
}

.expertise__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.expertise__icon svg { width: 22px; height: 22px; }

.expertise__item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.expertise__item p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

.expertise__item--lg .expertise__inner { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.expertise__item--lg p { max-width: 460px; }

@media (max-width: 860px) {
  .expertise__grid { grid-template-columns: 1fr 1fr; }
  .expertise__item, .expertise__item--lg, .expertise__item--sm { grid-column: span 2; }
  .expertise__item--lg .expertise__inner { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .expertise__grid { grid-template-columns: 1fr; }
  .expertise__item, .expertise__item--lg, .expertise__item--sm { grid-column: span 1; }
}

/* ==========================================================================
   Products
   ========================================================================== */

.products { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.spotlight { display: flex; flex-direction: column; gap: 22px; margin-bottom: 22px; }

.spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.spotlight-card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -32px rgba(10,14,26,0.2); }
.spotlight-card__media, .spotlight-card__body { position: relative; z-index: 1; }
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(27, 59, 240, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.spotlight-card:hover::before { opacity: 1; }

.spotlight-card--reverse { grid-template-columns: 0.9fr 1.1fr; }
.spotlight-card--reverse .spotlight-card__media { order: 2; }
.spotlight-card--reverse .spotlight-card__body { order: 1; }

.spotlight-card__media { position: relative; background: #eeece6; min-height: 280px; }
.spotlight-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.spotlight-card__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }

.spotlight-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.spotlight-card__head img { width: 36px; height: 36px; border-radius: 9px; }
.spotlight-card__head h3 { font-size: 1.4rem; }

.spotlight-card__body p.desc { color: var(--muted); font-size: 1.02rem; line-height: 1.65; margin-bottom: 24px; }
.spotlight-card__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .spotlight-card, .spotlight-card--reverse { grid-template-columns: 1fr; }
  .spotlight-card--reverse .spotlight-card__media,
  .spotlight-card--reverse .spotlight-card__body { order: initial; }
  .spotlight-card__media { min-height: 200px; }
  .spotlight-card__body { padding: 30px; }
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(10,14,26,0.22); border-color: var(--line-strong); }
.product-card__media, .product-card__body { position: relative; z-index: 1; }
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(27, 59, 240, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }

.product-card__media { height: 160px; background: #eeece6; display: flex; align-items: center; justify-content: center; }
.product-card__media img.shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-card__media.icon-forward { background: var(--blue-ink); position: relative; overflow: hidden; }
.product-card__media.icon-forward::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: url("/favicon/favicon.svg") center / 180px no-repeat;
  opacity: 0.08;
  filter: brightness(0) invert(1);
}
.product-card__media.icon-forward img.icon { width: 68px; height: 68px; border-radius: 16px; position: relative; z-index: 1; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5); }

.product-card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card__body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.product-card__body p.desc { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin-bottom: 14px; }

.check-list { list-style: none; margin-bottom: 18px; }
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ok-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a9b5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-repeat: no-repeat;
  background-position: center;
}
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-card__links { display: flex; gap: 12px; }
.product-card__links a { font-size: 0.84rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.product-card__links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .products__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Approach (process)
   ========================================================================== */

.approach__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.approach__steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line-strong);
}

.approach__step {
  position: relative;
  padding: 0 14px;
  text-align: left;
}

.approach__num {
  position: relative;
  z-index: 1;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.approach__step.is-active .approach__num { background: var(--blue); border-color: var(--blue); color: #fff; }

.approach__badge {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(10,14,26,0.18);
  transition: transform 0.3s var(--ease), background 0.2s, color 0.2s;
}
.approach__badge svg { width: 11px; height: 11px; }
.approach__step.is-active .approach__badge { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.1) rotate(-6deg); }

.approach__step h3 { font-size: 1rem; margin-bottom: 8px; }
.approach__step p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 860px) {
  .approach__steps { grid-template-columns: 1fr; gap: 28px; }
  .approach__steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .approach__step { padding-left: 14px; }
}

/* ==========================================================================
   Founder
   ========================================================================== */

.founder { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.founder__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.founder__photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }

.founder__photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 60%), var(--blue-ink);
}
.founder__initials {
  font-size: clamp(3.2rem, 8vw, 4.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}
.founder__initials-r { color: #6c93ff; }
.founder__initials-w { color: #fff; }

.founder__name { font-size: 1.6rem; }
.founder__role { margin-top: 6px; color: var(--blue); font-weight: 700; font-size: 0.95rem; }
.founder__bio { margin-top: 20px; color: var(--ink-soft); line-height: 1.75; font-size: 1.04rem; max-width: 560px; }
.founder__link { margin-top: 10px; display: inline-flex; font-size: 0.92rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.founder__link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .founder__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .founder__photo { max-width: 260px; margin: 0 auto; }
  .founder__bio { margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--blue-ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: url("/favicon/favicon.svg") center / contain no-repeat;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.contact > .wrap { position: relative; z-index: 1; }

.contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 620px; margin: 0 auto; }
.contact p { margin-top: 18px; color: rgba(255,255,255,0.68); font-size: 1.08rem; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.contact__grid {
  margin-top: 56px;
  text-align: left;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 36px; } }

.contact__info { padding-top: 8px; }
.contact__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact__secondary-link {
  display: inline-block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.contact__secondary-link:hover { color: #fff; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.contact-form h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form button { width: 100%; justify-content: center; margin-top: 4px; }
.contact-form__status { margin-top: 14px; font-size: 0.88rem; min-height: 1.2em; }
.contact-form__status[data-state="ok"] { color: var(--ok); }
.contact-form__status[data-state="error"] { color: #d0453c; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  background: var(--blue-ink);
  color: #fff;
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue) 0%, #6c93ff 50%, var(--blue) 100%) 1;
}
footer.site-footer::before {
  content: "";
  position: absolute;
  bottom: -140px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: url("/favicon/favicon.svg") center / contain no-repeat;
  opacity: 0.06;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
footer.site-footer > .wrap { position: relative; z-index: 1; }

.footer-columns {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 18px; }
.footer__brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer__brand span { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer__brand .vertex { color: #fff; }
.footer__desc { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.65; max-width: 320px; }

.footer-col__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: #fff; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer__bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
.footer__bottom a[href^="mailto:"] { display: inline-flex; align-items: center; gap: 6px; }
.footer__bottom a[href^="mailto:"]::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='m4 6 8 7 8-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='m4 6 8 7 8-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer__sep { width: 1px; height: 14px; background: rgba(255,255,255,0.2); margin: 0 6px; }

@media (max-width: 860px) {
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-columns .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-columns { grid-template-columns: 1fr; text-align: left; }
  .footer__sep { display: none; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; filter: blur(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .window-card { transition: none !important; }
  .marquee__track { animation: none !important; }
  * { animation: none !important; }
}

/* ==========================================================================
   Bascule theme clair / sombre
   ========================================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__drawer-foot .theme-toggle {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  gap: 8px;
}
.nav__drawer-foot .theme-toggle:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.nav__drawer-foot .theme-toggle::after { content: "Theme clair / sombre"; font-size: 0.86rem; font-weight: 600; }

