@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/fonts/GoogleSansFlex-latin-wght.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f8fafd;
  --surface-2: #f0f4f9;
  --text: #1f1f1f;
  --text-2: #444746;
  --text-3: #5e6368;
  --outline: #c4c7c5;
  --outline-2: #e1e3e1;
  --primary: #0b57d0;
  --primary-hover: #0842a0;
  --primary-soft: #d3e3fd;
  --on-primary-soft: #041e49;
  --state: rgba(11, 87, 208, 0.08);
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #34a853;
  --radius-l: 28px;
  --radius-m: 16px;
  --shadow-1: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-2: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --font: "Google Sans Flex", "Google Sans", Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: var(--on-primary-soft);
  background: var(--primary-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 500;
  color: var(--text);
}

.sprite {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  top: 0;
  left: -999px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Barre d'application */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.appbar.is-scrolled {
  border-bottom-color: var(--outline-2);
}

.appbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  min-height: 56px;
}

/* Logo Metanaps : éclair + « Meta » en dégradé bleu. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.appbar .logo {
  margin-right: auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-word {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-accent {
  background: linear-gradient(135deg, var(--g-blue), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.logo-sm .logo-mark {
  width: 24px;
  height: 24px;
}

.logo-sm .logo-word {
  font-size: 1.125rem;
}

.tabs {
  position: relative;
  display: flex;
  order: 3;
  width: calc(100% + 40px);
  margin-inline: -20px;
  padding-inline: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs a {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.tabs a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a.is-active {
  color: var(--primary);
}

.tabs a.is-active::after {
  transform: scaleX(1);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang:hover {
  background: var(--surface-2);
}

.lang svg {
  width: 18px;
  height: 18px;
}

/* En-tête */
.hero {
  padding: 48px 0 24px;
  text-align: center;
  background: radial-gradient(900px 420px at 50% 0%, #e9f0fc 0%, rgba(233, 240, 252, 0.6) 35%, rgba(233, 240, 252, 0.2) 55%, rgba(233, 240, 252, 0) 75%);
}

.avatar-ring {
  display: inline-block;
  margin-bottom: 24px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--g-blue) 0 25%, var(--g-red) 0 50%, var(--g-yellow) 0 75%, var(--g-green) 0 100%);
}

.avatar {
  width: 112px;
  height: 112px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.role {
  margin: 14px 0 0;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--primary);
}

.founder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 5px 16px 5px 6px;
  border: 1px solid var(--outline-2);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  background: #fff;
}

.founder img {
  width: 24px;
  height: 24px;
}

.founder .logo-word {
  font-size: 1rem;
}

.lead {
  max-width: 38rem;
  margin: 16px auto 0;
  font-size: clamp(1.0625rem, 2.1vw, 1.25rem);
  line-height: 1.55;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-tinted {
  background: var(--surface);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 40px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.875rem, 4.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 14px 0 0;
  font-size: clamp(1.0625rem, 1.9vw, 1.1875rem);
  line-height: 1.6;
}

/* À propos */
.about {
  display: grid;
  gap: 24px;
}

.about-text p {
  margin: 0 0 16px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
}

.facts strong {
  flex: none;
  min-width: 2ch;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.facts span {
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* Expertises : quatre étapes reliées */
.steps {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: start;
  column-gap: 20px;
}

.step > :not(.step-icon) {
  grid-column: 2;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-row: 1 / span 4;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--c);
  background: var(--c-soft);
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 68px;
  bottom: -24px;
  left: 27px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--line), var(--next));
}

.step-label {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-strong);
}

.step-title {
  margin: 4px 0 0;
  font-size: 1.375rem;
  line-height: 1.3;
}

.step-text {
  margin: 8px 0 14px;
}

.step-blue {
  --c: #1a73e8;
  --c-soft: #e8f0fe;
  --c-strong: #1967d2;
  --line: #8ab4f8;
  --next: #f28b82;
}

.step-red {
  --c: #d93025;
  --c-soft: #fce8e6;
  --c-strong: #c5221f;
  --line: #f28b82;
  --next: #fdd663;
}

.step-yellow {
  --c: #e37400;
  --c-soft: #fef7e0;
  --c-strong: #b06000;
  --line: #fdd663;
  --next: #81c995;
}

.step-green {
  --c: #1e8e3e;
  --c-soft: #e6f4ea;
  --c-strong: #137333;
  --line: #81c995;
  --next: #81c995;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 10px;
  border: 1px solid var(--outline-2);
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
  background: #fff;
}

/* Produits */
.features {
  display: grid;
  gap: 72px;
}

.feature {
  display: grid;
  align-items: center;
  gap: 28px;
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.feature-body > p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Illustrations : capture posée sur un fond teinté. */
.media {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 0;
  border-radius: var(--radius-l);
  background: var(--tint, var(--surface-2));
}

.media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16), 0 10px 30px rgba(60, 64, 67, 0.14);
  transform-origin: 50% 100%;
  transition: transform 0.3s ease;
}

.media.media-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 0;
}

.media.media-icon img {
  width: 30%;
  max-width: 160px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(60, 64, 67, 0.2));
  transform-origin: 50% 50%;
}

.tint-teal {
  --tint: linear-gradient(150deg, #e7f4f2 0%, #c9e7e1 100%);
}

.tint-green {
  --tint: linear-gradient(150deg, #eef7ee 0%, #cfe9d4 100%);
}

.tint-slate {
  --tint: linear-gradient(150deg, #eef1f6 0%, #d3dbe8 100%);
}

.tint-sand {
  --tint: linear-gradient(150deg, #f8f4ec 0%, #e9dfc9 100%);
}

.tint-gray {
  --tint: linear-gradient(150deg, #eceff3 0%, #cfd5dd 100%);
}

.tint-mint {
  --tint: linear-gradient(150deg, #e9f6f1 0%, #c5e8db 100%);
}

.tint-sky {
  --tint: linear-gradient(150deg, #e8f5fd 0%, #c3e5f9 100%);
}

.tint-blue {
  --tint: linear-gradient(150deg, #eef3fd 0%, #d3e3fd 100%);
}

.initials {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.chip-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip-live {
  color: #146c2e;
  background: #c4eed0;
}

.chip-dev {
  color: #7a4f01;
  background: #ffe8a3;
}

.chip-oss {
  color: #0842a0;
  background: #d3e3fd;
}

.chip-kind {
  color: var(--text-2);
  background: var(--surface-2);
}

.card-title {
  margin: 0;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.related {
  align-self: stretch;
  margin-top: 8px;
  padding: 20px 22px;
  border: 1px solid var(--outline-2);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.related-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.related-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.related p {
  margin: 8px 0 12px;
  font-size: 0.9375rem;
}

.related-item + .related-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--outline-2);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Shown only on the admin preview of unpublished changes. */
.preview-bar {
  margin: 0;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: #7a4f01;
  background: #ffe8a3;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Boutons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.actions-center {
  justify-content: center;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.btn-filled {
  color: #fff;
  background: var(--primary);
}

.btn-filled:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-1);
}

.btn-tonal {
  color: var(--on-primary-soft);
  background: var(--primary-soft);
}

.btn-tonal:hover {
  background: #c2d7fb;
  box-shadow: var(--shadow-1);
}

.btn-outlined {
  color: var(--primary);
  background: #fff;
  border-color: var(--outline);
}

.btn-outlined:hover {
  background: #f3f6fc;
}

.btn-text {
  padding: 0 14px;
  color: var(--primary);
}

.btn-text:hover {
  background: var(--state);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline);
  border-radius: 50%;
  color: var(--text-2);
  background: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Projets */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--outline-2);
  border-radius: var(--radius-l);
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card .media {
  border-radius: 0;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
}

.card-body > p:not(.meta) {
  margin: 0;
}

.card-body .actions {
  margin-top: auto;
  padding-top: 6px;
}

.card-wide {
  margin-bottom: 24px;
}

.cards {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text);
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e6f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23137333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.meta:empty {
  display: none;
}

.lang-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, #8b949e);
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: #f9ab00;
}

.more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin: 40px 0 0;
}

.sync {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* Contact */
.cta {
  padding: 56px 24px;
  border-radius: 32px;
  text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, #eef3fd 0%, #d3e3fd 100%);
}

.cta .section-lead {
  max-width: 36rem;
  margin-inline: auto;
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--outline-2);
  font-size: 0.875rem;
  color: var(--text-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer p {
  margin: 0;
}

@media (hover: hover) {
  .card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-2);
  }

  .feature:hover .media img,
  .card:hover .media img {
    transform: scale(1.015);
  }

  .card:hover .media.media-icon img {
    transform: scale(1.06);
  }
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 32px;
  }

  .tabs {
    width: calc(100% + 64px);
    margin-inline: -32px;
    padding-inline: 18px;
  }

  .facts li {
    display: block;
    padding: 24px;
  }

  .facts span {
    display: block;
    margin-top: 10px;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-body {
    padding: 28px 32px 32px;
  }

  .media {
    padding: 32px 32px 0;
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* An odd last card takes the whole row instead of leaving a hole. */
  .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: 80px;
  }

  .appbar-inner {
    min-height: 64px;
  }

  .tabs {
    order: 0;
    width: auto;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .tabs a {
    height: 64px;
  }

  .hero {
    padding: 72px 0 40px;
  }

  .section {
    padding: 104px 0;
  }

  .section-head {
    margin-bottom: 56px;
  }

  .about {
    grid-template-columns: 1fr 2fr;
    column-gap: 64px;
  }

  .about-text,
  .facts {
    grid-column: 2;
  }

  .facts strong {
    font-size: 3rem;
  }

  .features {
    gap: 104px;
  }

  .feature {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }

  .feature:nth-child(even) {
    grid-template-columns: 5fr 7fr;
  }

  .feature:nth-child(even) .media {
    order: 2;
  }

  .media {
    padding: 44px 44px 0;
  }

  .card .media:not(.media-icon) {
    padding: 32px 32px 0;
  }

  .card-wide,
  .cards > .card:last-child:nth-child(odd) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .card.card-wide .media,
  .cards > .card:last-child:nth-child(odd) .media:not(.media-icon) {
    display: flex;
    align-items: center;
    padding: 48px;
  }

  .card.card-wide .media img,
  .cards > .card:last-child:nth-child(odd) .media:not(.media-icon) img {
    border-radius: 12px;
  }

  .card-wide .card-body,
  .cards > .card:last-child:nth-child(odd) .card-body {
    justify-content: center;
    padding: 48px 48px 48px 40px;
  }

  .card-wide .card-body .actions,
  .cards > .card:last-child:nth-child(odd) .card-body .actions {
    margin-top: 8px;
  }

  .cta {
    padding: 88px 48px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .step {
    display: block;
  }

  .step-icon {
    margin-bottom: 20px;
  }

  .step:not(:last-child)::after {
    top: 27px;
    right: -16px;
    bottom: auto;
    left: 72px;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--line), var(--next));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
