/* Lex Duana — landing (lot S). Palette du kit : marine #0D1B2A, or #C9A35C.
   Propriétés logiques uniquement (RTL arabe) ; aucune ressource externe. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/assets/fonts/noto-kufi-arabic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FEFF;
}

/* Charte de la refonte (maquettes docs/design/connexion-mcp/maquettes-landing/).
   Thème sombre selon le réglage du système, sans bouton. Jamais d'or en texte sur
   fond clair : l'or ne sert de couleur de texte que sur les fonds marine. */
:root {
  --bg: #FFFFFF;
  --alt: #F7F4EE;
  --card: #FFFFFF;
  --bd: #E2DBCD;
  --tx: #0D1B2A;
  --tx2: #3A4D63;
  --tile: #F1E8D6;
  --tileic: #0D1B2A;
  --btn: #0D1B2A;
  --btntx: #FFFFFF;
  --hero: #0D1B2A;
  --focus: #8C7038;
  --font: "Inter", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 24px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1B2A;
    --alt: #0A1622;
    --card: #1A2F4A;
    --bd: #243B55;
    --tx: #F3F5F8;
    --tx2: #B9C6D8;
    --tile: #243B55;
    --tileic: #D4B574;
    --btn: #C9A35C;
    --btntx: #0D1B2A;
    --hero: #06101A;
    --focus: #F1D79B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] { --font: "Noto Kufi Arabic", "Inter", system-ui, sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
img, svg { max-inline-size: 100%; block-size: auto; }
picture { display: contents; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  inset-block-start: -80px;
  inset-inline-start: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btntx);
  font-weight: 600;
}
.skip-link:focus { inset-block-start: 8px; }

.w { max-inline-size: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: 88px; }
.alt { background: var(--alt); }
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx2);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.h2 { font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.lead { margin-block-start: 14px; max-inline-size: 680px; font-size: 18px; color: var(--tx2); }
.fine { margin-block-start: 20px; font-size: 14px; color: var(--tx2); }
.body { margin-block-start: 40px; }

.ic {
  inline-size: 24px;
  block-size: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.tile {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 14px;
  background: var(--tile);
  color: var(--tileic);
  display: grid;
  place-items: center;
  flex: none;
}
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--bd);
  border-radius: 20px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { font-size: 15.5px; color: var(--tx2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 52px;
  padding: 8px 24px;
  border: 0;
  border-radius: 26px;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-s { min-block-size: 44px; padding: 6px 20px; border-radius: 22px; font-size: 15px; }
.b1 { background: var(--btn); color: var(--btntx); }
.b2 { border: 1px solid var(--bd); color: var(--tx); background: transparent; }
.gold { background: #C9A35C; color: #0D1B2A; }
.ghost { border: 1px solid #3A526E; color: #F3F5F8; background: transparent; }
.off { border: 1px dashed #3A526E; color: #9FB0C5; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.b1:hover, .gold:hover { filter: brightness(1.08); }
.b2:hover { background: var(--alt); }
.ghost:hover { background: rgba(255, 255, 255, .06); }

.chip {
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  padding: 2px 14px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  font-size: 14px;
  background: var(--card);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-block-size: 26px;
  padding: 2px 12px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: #C9A35C;
  color: #0D1B2A;
}
.soft {
  display: inline-flex;
  align-items: center;
  min-block-size: 26px;
  padding: 2px 12px;
  border: 1px solid var(--bd);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tx2);
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 56px;
  padding: 4px 18px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--card);
  font-weight: 600;
  font-size: 15px;
}
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
/* Logos des outils IA : fichiers des kits, jamais recolorés ; hauteur = LOGO_HEIGHT de build.py. */
.tool-logo img, .card-logo img { display: block; block-size: 24px; inline-size: auto; }
.card-logo img { margin-block-end: 14px; }
.tool-tile img { box-sizing: content-box; padding: 6px 10px; border-radius: 8px; background: #FFFFFF; }
.tools + .trademarks { padding-block: 12px 0; }
.lis { display: grid; gap: 12px; }
.li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.li svg { inline-size: 20px; block-size: 20px; margin-block-start: 2px; }
.shot { border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; background: var(--card); }
.shot img { display: block; inline-size: 100%; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.shots figcaption { margin-block-start: 12px; font-size: 15px; font-weight: 600; }
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 6;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx2);
  border: 1px dashed var(--tx2);
  border-radius: 20px;
}
.ph-wide { aspect-ratio: auto; min-block-size: 120px; }
.mono { font: 500 15px/1.5 var(--mono); overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }

/* En-tête */
.hd { position: sticky; inset-block-start: 0; z-index: 50; background: var(--bg); border-block-end: 1px solid var(--bd); }
.hd-in { display: flex; align-items: center; gap: 28px; min-block-size: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { display: block; block-size: 44px; inline-size: auto; }
.brand .brand-word img { block-size: 22px; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; margin-inline-start: auto; font-size: 15px; font-weight: 500; }
.nav a, .menu-list a { color: var(--tx2); text-decoration: none; }
.nav a:hover, .menu-list a:hover, .nav a[aria-current] { color: var(--tx); text-decoration: underline; text-underline-offset: 6px; }
.hd-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.nav + .hd-end { margin-inline-start: 0; }
.lang-switch, .menu { position: relative; }
.lang-switch summary, .menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.lang-switch summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .menu summary:hover { background: var(--alt); }
.lang-switch .ic { inline-size: 20px; block-size: 20px; }
.menu { display: none; }
.menu summary { inline-size: 44px; padding: 0; justify-content: center; border: 0; }
.lang-menu, .menu-list {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-inline-size: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(13, 27, 42, .18);
}
.lang-menu a, .menu-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--tx);
}
.lang-menu a:hover, .menu-list a:hover { background: var(--alt); }
.lang-menu a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--tx2); }
[dir="rtl"] .lang-menu a[aria-current] { box-shadow: inset -3px 0 0 var(--tx2); }
.lang-menu a[lang="ar"] { font-family: "Noto Kufi Arabic", var(--font); }

/* Héros (fond marine dans les deux thèmes) */
.hero, .final, .keybox { --focus: #F1D79B; }
.hero { background: var(--hero); color: #F3F5F8; padding-block: 80px 0; overflow: hidden; }
.hero-page { padding-block: 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; }
.hero-text { padding-block-end: 80px; }
.hero-page .hero-text { padding-block-end: 0; max-inline-size: 760px; }
.hero .eyebrow { color: #D4B574; }
.hero h1 { font-size: 60px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.hero-page h1 { font-size: 52px; }
html[lang="ar"] .hero h1 { line-height: 1.4; letter-spacing: 0; }
.hero-lead { margin-block-start: 20px; max-inline-size: 640px; font-size: 19px; color: #C5D0DE; }
.hero-note { margin-block-start: 20px; max-inline-size: 620px; font-size: 13.5px; color: #9FB0C5; }
.hero-art { position: relative; align-self: end; max-inline-size: 400px; margin-inline: auto; }
.hero-frame { border: 6px solid #243B55; border-block-end: 0; border-radius: 28px 28px 0 0; overflow: hidden; background: #FFFFFF; }
.hero-frame img { display: block; inline-size: 100%; }
.hero-card {
  position: absolute;
  inset-block-end: 32px;
  inset-inline-start: -56px;
  inline-size: 290px;
  max-inline-size: 80%;
  padding: 16px 18px;
  border-radius: 16px;
  background: #FFFFFF;
  color: #0D1B2A;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.hero-card strong { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #3A4D63; }
.hero-card small { font-size: 12.5px; color: #3A4D63; }
.addr-label { margin-block-start: 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9FB0C5; }
html[lang="ar"] .addr-label { letter-spacing: 0; }
.addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-start: 10px;
  padding: 10px;
  padding-inline-start: 20px;
  border-radius: 18px;
  background: #FFFFFF;
  color: #0D1B2A;
  max-inline-size: 620px;
}
.addr .mono { flex: 1 1 220px; }
.addr .btn { background: #0D1B2A; color: #FFFFFF; }
.copied { font-size: 13px; font-weight: 600; }

/* Bandeau de chiffres */
.facts { border-block-end: 1px solid var(--bd); padding-block: 36px; }
.facts ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.facts strong { display: block; font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.facts span { font-size: 15px; color: var(--tx2); }

/* Étapes, offres, tableau */
.step-n { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); }
html[lang="ar"] .step-n { letter-spacing: 0; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px)); justify-content: center; gap: 20px; }
.offer { gap: 16px; }
.offer-reco { border: 2px solid var(--tx); }
.offer-reco .tag { position: absolute; inset-block-start: -13px; inset-inline-start: 28px; }
.price { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--tx); }
.card .price { font-size: 36px; color: var(--tx); }
.offer .btn { margin-block-start: auto; }
.offer-mcp { padding-block-start: 14px; border-block-start: 1px solid var(--bd); }
.tb-wrap { overflow-x: auto; border: 1px solid var(--bd); border-radius: 20px; background: var(--card); }
.tb { inline-size: 100%; border-collapse: collapse; font-size: 15.5px; }
.tb th { padding: 14px 18px; text-align: start; font-size: 13px; font-weight: 600; color: var(--tx2); border-block-end: 1px solid var(--bd); }
.tb td { padding: 16px 18px; text-align: start; border-block-end: 1px solid var(--bd); }
.tb tr:last-child td { border-block-end: 0; }
.tb td:first-child, .tb tbody th { font-weight: 600; color: var(--tx); font-size: 15.5px; }
.keybox { padding: 28px; border-radius: 20px; background: #0D1B2A; color: #F3F5F8; display: grid; gap: 12px; align-content: start; border: 1px solid #243B55; }
.keybox .step-n, .keybox small { color: #9FB0C5; }
.keybox small { font-size: 13.5px; }

/* Couverture, questions */
.communities { margin-block-start: 10px; }
.zones { margin-block-start: 28px; display: grid; gap: 10px; }
.zone { border: 1px solid var(--bd); border-radius: 14px; background: var(--card); }
.zone summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.zone summary::-webkit-details-marker { display: none; }
.zone[open] summary .ic { transform: rotate(180deg); }
.zone .chips { padding: 0 18px 18px; }
/* Page « Outils IA connectés ». */
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: stretch; }
.asks { margin-block-start: 20px; }
.asks .lis { margin-block-start: 16px; }
.sub { margin-block: 40px 16px; font-size: 20px; font-weight: 600; }
.steps + .q { margin-block-start: 24px; }
.card .mono, .card .btn { margin-block-start: 16px; }
.card .soft { flex: none; }
.final-more { margin-block-start: 12px; }
.trademarks { padding-block: 24px; margin-block-start: 0; }
.q { padding-block: 22px; border-block-end: 1px solid var(--bd); }
.q h3 { font-size: 17px; font-weight: 600; }
.q p { margin-block-start: 8px; max-inline-size: 760px; font-size: 15.5px; color: var(--tx2); }

/* Appel final */
.final { background: var(--hero); color: #F3F5F8; padding-block: 88px; text-align: center; }
.final img { block-size: 72px; inline-size: auto; }
.final h2 { margin-block-start: 20px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.final p { margin: 14px auto 0; max-inline-size: 620px; font-size: 18px; color: #C5D0DE; }
.final .btns { justify-content: center; }

/* Pied */
.ft { border-block-start: 1px solid var(--bd); padding-block: 56px 40px; font-size: 14.5px; color: var(--tx2); }
.ft-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.ft img { block-size: 44px; inline-size: auto; }
.ft h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx); margin-block-end: 12px; }
html[lang="ar"] .ft h2 { letter-spacing: 0; }
.ft ul { display: grid; gap: 8px; }
.ft p { margin-block-start: 12px; max-inline-size: 420px; }
.ft-end { margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid var(--bd); display: grid; gap: 8px; }
.ft-end p { max-inline-size: none; margin: 0; }

/* Pages juridiques, 404, racine */
.narrow { max-inline-size: 46rem; }
.prose h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.02em; margin-block-end: 20px; }
.prose h2 { font-size: 22px; margin-block: 32px 10px; }
.prose h3 { font-size: 18px; margin-block: 24px 8px; }
.prose p, .prose ul, .prose ol { margin-block-end: 12px; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li { margin-block-end: 6px; }
.notfound h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.root-page { min-block-size: 100vh; display: grid; place-items: center; background: var(--alt); }
.root-main { inline-size: 100%; max-inline-size: 720px; padding: 40px var(--gutter); }
.root-logo img { block-size: 56px; inline-size: auto; margin-block-end: 24px; }
.root-title { font-size: 17px; font-weight: 600; color: var(--tx2); line-height: 1.7; margin-block-end: 20px; }
.root-langs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: 0; }
.root-lang {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
}
.root-lang:hover { border-color: var(--tx2); }
.root-lang span { color: var(--tx2); font-size: 14px; }
.root-lang[lang="ar"] { font-family: "Noto Kufi Arabic", var(--font); text-align: start; }

/* Téléphone (maquette Mobile) */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .hd-open { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-text { padding-block-end: 0; }
  .hero-card { inset-inline-start: 0; }
  .ft-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-block-start: 76px; }
  .hd-in { min-block-size: 64px; gap: 8px; }
  .brand img { block-size: 38px; }
  .brand .brand-word img { block-size: 19px; }
  .sec { padding-block: 48px; }
  .h2 { font-size: 26px; }
  .lead { font-size: 16px; margin-block-start: 10px; }
  .body { margin-block-start: 24px; }
  .card { padding: 20px; border-radius: 18px; gap: 8px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 15px; }
  .tile { inline-size: 44px; block-size: 44px; border-radius: 12px; }
  .hero { padding-block-start: 40px; }
  .hero-page { padding-block: 40px; }
  .hero h1, .hero-page h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
  .hero-lead { font-size: 16.5px; margin-block-start: 14px; }
  .hero .btns { flex-direction: column; }
  .hero-art { margin-inline: 24px; }
  .hero-frame { border-radius: 24px 24px 0 0; max-block-size: 300px; }
  .facts { padding-block: 24px; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .facts strong { font-size: 28px; }
  .final { padding-block: 48px; }
  .final h2 { font-size: 28px; }
  .final .btns, .btns-col { flex-direction: column; }
  .tool { min-block-size: 48px; font-size: 14px; border-radius: 12px; }
  .q { padding-block: 18px; }
  .q h3 { font-size: 16px; }
  .notfound h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
