/* =====================================================================
   LAIION Labs — feuille de style
   Couleurs : modifiez les variables ci-dessous (mode clair puis sombre).
   ===================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-300.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }

:root {
  --bg: #f6f7f9;
  --bg-alt: #eef0f3;
  --surface: #ffffff;
  --text: #0d1117;
  --muted: #4a5361;
  --border: #dde1e7;
  --border-strong: #c7cdd6;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --on-accent: #ffffff;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --sk: #e3e7ec;
  --sk-soft: #eef1f4;
  --grid-line: rgba(13, 17, 23, 0.05);
  --shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 8px 24px -12px rgba(13, 17, 23, 0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e12;
    --bg-alt: #0f1318;
    --surface: #12171d;
    --text: #e8ebef;
    --muted: #9ba5b3;
    --border: #222a33;
    --border-strong: #303a46;
    --accent: #7aa2ff;
    --accent-hover: #9cbaff;
    --on-accent: #0b0e12;
    --accent-soft: rgba(122, 162, 255, 0.1);
    --sk: #1f2730;
    --sk-soft: #182028;
    --grid-line: rgba(232, 235, 239, 0.045);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
address { font-style: normal; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-accent); }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------------------------------------------------------------- marque */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__top { font-weight: 400; font-size: 15px; letter-spacing: 0.07em; }
.brand__bottom { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-top: 2px; }

/* ---------------------------------------------------------------- en-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav__list a, .nav__panel a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__list a:hover, .nav__panel a:hover { color: var(--text); background: var(--bg-alt); }
.nav__list a[aria-current="page"], .nav__panel a[aria-current="page"] { color: var(--text); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.lang-switch:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.lang-switch--footer { min-height: 36px; min-width: 40px; }

.nav__mobile { position: relative; }
.nav__mobile summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; border: 1px solid var(--border);
}
.nav__mobile summary::-webkit-details-marker { display: none; }
.nav__mobile summary .icon:last-child { display: none; }
.nav__mobile[open] summary .icon:first-child { display: none; }
.nav__mobile[open] summary .icon:last-child { display: block; }
.nav__panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
}
.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel a { display: flex; width: 100%; color: var(--text); }

@media (min-width: 760px) {
  .nav__list { display: flex; }
  .nav__mobile { display: none; }
}

/* ---------------------------------------------------------------- boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.18s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--text); }
.btn:active { transform: translateY(1px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
a[target="_blank"] > .icon { display: inline-block; width: 14px; height: 14px; margin-left: 3px; vertical-align: -1px; opacity: 0.7; }
.btn[target="_blank"] > .icon { width: 16px; height: 16px; margin-left: 0; opacity: 1; }

/* ---------------------------------------------------------------- héros et en-têtes */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero { position: relative; padding: 88px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -140px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid var(--border); box-shadow: inset 0 0 0 64px transparent, 0 0 0 64px transparent;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
}
.hero__title { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4rem); font-weight: 650; letter-spacing: -0.035em; max-width: 17ch; }
.hero__lead { margin-top: 24px; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }

.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; max-width: 20ch; }
.page-head .lead, .page-head > .container > .muted { margin-top: 18px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 80px 0; }
.section--first { padding-top: 48px; }
.section--tight { padding: 24px 0 96px; }
.section--muted { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.section__head .muted { margin-top: 14px; font-size: 1.0625rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* cartes produits */
.product-card { display: flex; flex-direction: column; gap: 20px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-card__name { font-size: 1.625rem; margin-top: 14px; }
.product-card__tagline { margin-top: 6px; font-weight: 500; }
.product-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 8px; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.checks .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* approche */
.feature h3 { font-size: 1.0625rem; margin: 18px 0 8px; letter-spacing: -0.01em; }
.feature p { font-size: 0.9375rem; }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent);
}
.feature__icon .icon { width: 20px; height: 20px; }

/* appel à l'action */
.cta {
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid var(--border); pointer-events: none; }
.cta__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 8px; }
.cta .btn { position: relative; z-index: 1; }
@media (min-width: 760px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; } }

/* ---------------------------------------------------------------- page produits */
.product { scroll-margin-top: var(--header-h); }
.product + .product { border-top: 1px solid var(--border); }
.product__grid { display: grid; gap: 40px; align-items: start; }
.product__text h2 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); margin-top: 14px; }
.product__text .lead { margin-top: 12px; }
.product__text .btn { margin-top: 32px; }
.specs { margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.specs > div { padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.specs dt { font-weight: 600; font-size: 0.9375rem; }
.specs dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 600px) { .specs > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.product__media { margin: 0; }
.product__media figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); text-align: center; }
@media (min-width: 960px) {
  .product__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .product__media { position: sticky; top: calc(var(--header-h) + 32px); }
  .product--alt .product__media { order: -1; }
}

/* maquettes neutres */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sk); }
.mock__url { flex: 1; height: 18px; margin-left: 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); max-width: 60%; }
.mock__body { padding: 18px; display: grid; gap: 14px; }
.sk { display: block; height: 10px; border-radius: 6px; background: var(--sk); }
.sk--soft { background: var(--sk-soft); height: 8px; }
.sk--pill { height: 22px; border-radius: 999px; background: var(--sk-soft); border: 1px solid var(--border); }
.sk--accent { background: var(--accent); opacity: 0.35; }
.sk--lg { height: 16px; }
.m-search { display: flex; gap: 8px; }
.m-input { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.m-btn { width: 80px; height: 38px; border-radius: 10px; background: var(--accent); opacity: 0.85; }
.m-chips { display: flex; gap: 8px; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-card { display: grid; gap: 8px; padding-bottom: 4px; }
.m-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--sk), var(--sk-soft)); }
.mock__body--dash { grid-template-columns: 26% 1fr; gap: 16px; }
.m-side { display: grid; gap: 14px; align-content: start; padding-right: 14px; border-right: 1px solid var(--border); }
.m-main { display: grid; gap: 14px; min-width: 0; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-stat { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.m-table { display: grid; border: 1px solid var(--border); border-radius: 10px; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; }
.m-row + .m-row { border-top: 1px solid var(--border); }
.m-row .sk:nth-child(2) { flex: none; }
.m-row .sk:nth-child(3) { margin-left: auto; }
.m-thumb { flex: none; width: 28px; height: 22px; border-radius: 6px; background: var(--sk); }

/* ---------------------------------------------------------------- à propos, textes légaux */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 340px; gap: 64px; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.facts dl, .kv { margin: 0; display: grid; }
.facts dl > div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts dl > div:first-child { padding-top: 0; }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt, .kv dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facts dd, .kv dd { margin: 4px 0 0; }
.kv { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.kv > div { padding: 14px 20px; }
.kv > div + div { border-top: 1px solid var(--border); }
@media (min-width: 640px) { .kv > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; } .kv dd { margin: 0; } }
.kv dd { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- contact */
.contact__item { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
a.contact__item:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); }
.contact__item .feature__icon { margin-bottom: 14px; background: var(--bg-alt); }
.contact__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.notes { margin-top: 40px; display: grid; gap: 10px; }

/* ---------------------------------------------------------------- pied de page */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg); }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 34ch; }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.site-footer li a:hover { color: var(--accent); }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; padding: 64px 0; }
.notfound .brand { margin-bottom: 48px; }
.notfound__code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--muted); margin-bottom: 16px; }
.notfound h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); margin-bottom: 10px; }
.notfound h2 { font-size: 1.375rem; margin-bottom: 8px; }
.notfound hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0 32px; max-width: 480px; }
.notfound .actions { margin-top: 24px; }

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- captures dans des téléphones */
.phones { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; padding: 8px 0 4px; isolation: isolate; }
.phones::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; max-width: 100%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--border); background: radial-gradient(circle, var(--accent-soft), transparent 68%);
}
.phone {
  position: relative; border-radius: 26px; padding: 6px; background: #0d1014;
  box-shadow: 0 0 0 1px var(--border-strong), 0 24px 48px -24px rgba(13, 17, 23, 0.45);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 12px; left: 50%; width: 22%; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); transform: translateX(-50%); }
.phone--0 { transform: translate(14%, 6%) rotate(-4deg); z-index: 0; }
.phone--1 { z-index: 2; }
.phone--2 { transform: translate(-14%, 6%) rotate(4deg); z-index: 1; }
@media (min-width: 960px) {
  .product__media--phones { position: static; }
}
@media (prefers-color-scheme: dark) {
  :root .phone { background: #000; box-shadow: 0 0 0 1px var(--border-strong), 0 24px 48px -24px rgba(0, 0, 0, 0.8); }
}

/* logos produits */
.product-card__top, .product__brand { display: flex; align-items: center; gap: 14px; }
.product-logo { flex: none; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(13, 17, 23, 0.12)); }
.product-card__top .tag, .product__brand .tag { margin: 0; }
