/* Linier Labs — feuille de style unique. CSP stricte : aucun style en ligne, tout est ici. */

:root {
  --ink: #0f1222;
  --ink-2: #2a2f45;
  --muted: #5d6378;
  --line: #e3e5ee;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --accent: #4353ff;
  --accent-ink: #2b38c9;
  --accent-soft: #eceeff;
  --ok: #138a55;
  --night: #0b0e1c;
  --night-2: #151a33;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 18, 34, 0.04), 0 8px 24px rgba(15, 18, 34, 0.06);
  --max: 1160px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--ink);
}

.logo img {
  width: 30px;
  height: 30px;
}

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

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.935rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav .btn {
  margin-left: 8px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary,
.nav a.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover,
.nav a.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(67, 83, 255, 0.1), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(67, 83, 255, 0.06), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(19, 138, 85, 0.14);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 700;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin-top: 24px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* ---------- Bandeau de compétences ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin: 0;
  padding: 22px 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 550;
}

.strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--bg-soft);
}

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

.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Expertises ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #cfd3f5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 550;
}

/* ---------- Produits ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.product-art {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-art svg {
  width: 100%;
  height: 100%;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 32px 32px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-live {
  background: rgba(19, 138, 85, 0.1);
  color: var(--ok);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-soon {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.product p {
  color: var(--muted);
}

.product-upcoming {
  border-style: dashed;
  border-color: #cfd3e6;
}

.product .tags {
  padding-top: 18px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.product-links .btn {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ---------- Méthode ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  padding: 32px 28px 8px 0;
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.steps li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.steps h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Studio ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 72px;
}

.about .section-head {
  margin-bottom: 0;
}

.about-text {
  margin-top: 28px;
}

.about-text p + p {
  margin-top: 16px;
}

.about-text p {
  color: var(--ink-2);
  font-size: 1.05rem;
}

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

.values li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.values svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
}

.values strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.values span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.cta {
  padding: 0 0 104px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
  padding: 64px;
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(67, 83, 255, 0.55), transparent 60%),
    linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

.cta-box p {
  margin-top: 16px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  justify-self: end;
}

.cta-side .mail {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  text-decoration: none;
}

.cta-side .mail:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  margin-top: 12px;
  max-width: 36ch;
}

.footer-grid h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom a {
  color: var(--muted);
}

/* ---------- Pages de texte (mentions légales, 404) ---------- */

.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
}

.page-hero p {
  margin-top: 12px;
  color: var(--muted);
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.prose {
  max-width: 760px;
  padding: 56px 0 96px;
}

.prose h2 {
  margin: 48px 0 14px;
  font-size: 1.35rem;
  font-weight: 650;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li,
.prose dd {
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 6px;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
  margin: 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.prose dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose dd {
  margin: 0;
  font-weight: 500;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 68px - 160px);
  place-items: center;
  padding: 96px 0;
  text-align: center;
}

.not-found .code {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.not-found h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
}

.not-found p {
  margin: 16px auto 32px;
  max-width: 44ch;
  color: var(--muted);
}

/* ---------- Adaptation ---------- */

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
    border-top: 0;
    gap: 8px 32px;
  }

  .steps li {
    border-top: 1px solid var(--line);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 340px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 44px 32px;
  }

  .cta-side {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 80px 0;
  }

  .cta {
    padding-bottom: 80px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .strip ul {
    justify-content: flex-start;
  }

  .product-body {
    padding: 26px 24px 28px;
  }

  .prose dl {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 20px;
  }

  .prose dd + dt {
    margin-top: 12px;
  }
}
