/* ZeroRules — feuille de style.
   Langage emprunté à revtap.fr : bleu électrique plein, accent lime, titres
   Unbounded, boutons pilule, cartes très arrondies, vagues entre sections,
   héros en deux colonnes avec un fragment produit vivant à droite. */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --rt-primary: #0241ff;
  --rt-primary-hover: #0234cc;
  --rt-primary-soft: #e6ecff;
  --rt-accent: #d9ff66;
  --rt-dark: #0b0e1a;
  --rt-dark-soft: #161a2b;
  --rt-white: #ffffff;
  --rt-surface: #f4f5f9;
  --rt-surface-2: #e9ebf3;
  --rt-border: #e1e4ee;
  --rt-text: #0b0e1a;
  --rt-text-muted: #5b6377;
  --rt-text-faint: #667085;

  --font-heading: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --h1: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --h2: clamp(1.625rem, 1.15rem + 2.3vw, 2.875rem);

  --leading-tight: 1.05;
  --leading-normal: 1.55;
  --tracking-tight: -.03em;
  --tracking-wide: .08em;

  --radius-pill: 999px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;

  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;

  --container: 1280px;
  --container-narrow: 820px;
  --gutter: 1.25rem;
  --control-height: 3.25rem;

  --shadow-primary: 0 12px 28px -8px rgba(2, 65, 255, .45);
  --shadow-lg: 0 24px 48px -16px rgba(11, 14, 26, .24);
  --duration: .22s;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }
@media (min-width: 1100px) { :root { --gutter: 2.5rem; } }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--rt-text);
  background: var(--rt-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--rt-primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); text-wrap: balance; }
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }

/* ── Boutons : pilules, comme la référence ─────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; min-height: var(--control-height); padding: 0 1.75rem;
  border: 0; border-radius: var(--radius-pill);
  background: var(--rt-primary); color: var(--rt-white);
  font: inherit; font-size: var(--text-base); font-weight: 600;
  cursor: pointer; transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  box-shadow: var(--shadow-primary);
}
.btn:hover { background: var(--rt-primary-hover); color: var(--rt-white); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }

.btn--accent { background: var(--rt-accent); color: var(--rt-dark); box-shadow: none; }
.btn--accent:hover { background: #c9f24a; color: var(--rt-dark); }


.btn--ghost { background: var(--rt-white); color: var(--rt-dark); box-shadow: none; border: 1.5px solid var(--rt-border); }
.btn--ghost:hover { background: var(--rt-surface); color: var(--rt-dark); }

/* ── Bandeau ───────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 50; background: var(--rt-white); }
.bar-inner { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }

.wordmark { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.0625rem; letter-spacing: -.02em; }
.wordmark img { width: 30px; height: 30px; border-radius: 9px; }

.bar nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.bar nav a { font-size: var(--text-sm); font-weight: 550; color: var(--rt-text-muted); transition: color var(--duration); }
.bar nav a:hover { color: var(--rt-text); }

.lang { display: inline-flex; gap: .5rem; align-items: center; }
.lang button { border: 0; background: none; font: inherit; font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; color: var(--rt-text-faint); cursor: pointer; padding: .25rem; }
.lang button.on { color: var(--rt-primary); }

/* ── Héros en deux colonnes ────────────────────────────────────────────── */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }

.hero__title { margin-bottom: .6em; }
.hero__say { font-size: var(--text-lg); color: var(--rt-text-muted); max-width: 34ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero__trust { margin-top: 1.5rem; font-size: var(--text-sm); color: var(--rt-text-faint); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

/* ── Plateformes : eyebrow + marquee de logos noirs ────────────────────── */
.platforms { padding-block: 0 1.5rem; }
.platforms__label {
  font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--rt-text-faint); margin-bottom: 1rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 3rem;
  width: max-content; animation: slide 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: flex; align-items: center; gap: .7rem; list-style: none; white-space: nowrap; opacity: .8; transition: opacity var(--duration); }
.marquee__track li:hover { opacity: 1; }
.marquee__track img { width: 22px; height: 22px; filter: brightness(0); }
.marquee__track span { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee__track { animation: none; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--surface { background: var(--rt-surface); }
.section__head { max-width: 44ch; margin-bottom: 2.5rem; }
.section__head p { color: var(--rt-text-muted); margin-top: .75rem; }

/* ── Carte du simulateur (fragment produit) ────────────────────────────── */
.sim-card {
  background: var(--rt-dark); color: var(--rt-white);
  border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}
.sim-card__label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: #9aa3b8; }
.sim-card__field { margin-top: 1rem; }
.sim-card select {
  font: inherit; font-size: var(--text-sm); font-weight: 550;
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-md);
  border: 1px solid #2a3048; background: var(--rt-dark-soft); color: var(--rt-white); cursor: pointer;
}
.sim-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.sim-card__box { background: #ffffff14; border-radius: var(--radius-md); padding: .8rem .9rem; }
.sim-card__box.zairo { background: var(--rt-primary); }
.sim-card__box b { display: block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #b9c0d2; }
.sim-card__box.zairo b { color: #cfd9ff; }
.sim-card__num { font-family: var(--font-heading); font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: .3rem; }
.sim-card__line { font-size: .6875rem; color: #9aa3b8; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.sim-card__box.zairo .sim-card__line { color: #cfd9ff; }
.sim-card__pct { margin-top: 1.1rem; display: flex; align-items: baseline; gap: .5rem; }
.sim-card__pct strong { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--rt-accent); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sim-card__pct span { font-size: var(--text-sm); color: #b9c0d2; }
.sim-card__note { font-size: .6875rem; color: #7d8798; margin-top: .9rem; }

/* ── Collection de modèles : cartes produit ────────────────────────────── */
.models { display: grid; gap: 1.75rem; }

.models__group {
  display: flex; align-items: baseline; gap: .6rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--rt-border);
  margin-bottom: .9rem;
}
.models__group span {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  letter-spacing: -.02em;
}
.models__group i {
  font-style: normal; font-size: var(--text-xs); font-weight: 700;
  color: var(--rt-text-faint); font-variant-numeric: tabular-nums;
}

.models__row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: .75rem;
}

.model {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--rt-white);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.model:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Zone visuelle : le logo de la famille, sur un fond teinté par famille. */
.model__media {
  display: grid; place-items: center; height: 84px;
  background: var(--rt-surface-2);
}
.model__media img { width: 30px; height: 30px; opacity: .82; }
.fam-text { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; color: var(--rt-text-faint); }

.model.f-anthropic .model__media { background: #f6ede1; }
.model.f-openai .model__media { background: #e7efe9; }
.model.f-google .model__media { background: #e5edfb; }
.model.f-deepseek .model__media { background: #e6ecfa; }
.model.f-xai .model__media { background: #eceef0; }
.model.f-zhipu .model__media { background: #eee9f9; }
.model.f-moonshot .model__media { background: #e9eff9; }
.model.f-xiaomi .model__media { background: #fbeceb; }

.model__body { padding: .75rem .85rem 1rem; display: flex; flex-direction: column; gap: .35rem; }

.model .name {
  font-family: var(--font-heading); font-size: .7188rem; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.3; word-break: break-word;
  min-height: 2.6em;
}

.model__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.model .price {
  font-family: var(--font-heading); font-size: .9375rem; font-weight: 800;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--rt-text);
}
.model .price small { font-size: .5625rem; font-weight: 600; color: var(--rt-text-faint); margin-left: .1rem; }

.model .score {
  flex: none; font-size: .6875rem; font-weight: 700;
  color: var(--rt-primary); background: var(--rt-primary-soft);
  padding: .15rem .4rem; border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}
.model .score--none { color: var(--rt-text-faint); background: var(--rt-surface); }

.model__sub { font-size: .6875rem; color: var(--rt-text-faint); font-variant-numeric: tabular-nums; }

/* Badge d'angle sur la zone visuelle. */
.model .tag {
  position: absolute; top: .5rem; left: .5rem; z-index: 1;
  font-size: .5625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #4c3d00; background: var(--rt-accent);
  padding: .18rem .4rem; border-radius: var(--radius-pill);
}

.models__count { font-size: var(--text-sm); color: var(--rt-text-faint); font-variant-numeric: tabular-nums; }

/* ── Étapes ────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: .75rem; counter-reset: s; list-style: none; max-width: var(--container-narrow); }
.steps li {
  counter-increment: s; background: var(--rt-white); border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem; display: grid; grid-template-columns: 2rem 1fr; gap: 0 1rem;
}
.steps li::before {
  content: counter(s); grid-row: span 2; width: 2rem; height: 2rem;; border-radius: var(--radius-pill);
  background: var(--rt-primary); color: var(--rt-white);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.0625rem; margin: .2rem 0 .3rem; }
.steps p { font-size: var(--text-sm); color: var(--rt-text-muted); }

pre {
  grid-column: 2; margin-top: .9rem; padding: 1rem 1.1rem;
  background: var(--rt-dark); color: #dfe4ee; border-radius: var(--radius-md);
  overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem; line-height: 1.6;
  max-width: 100%; min-width: 0;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em; overflow-wrap: anywhere; }
p code, li code { background: var(--rt-primary-soft); color: var(--rt-primary-hover); padding: .05rem .35rem; border-radius: 5px; font-weight: 600; }

/* Tableaux : wrapper scrollable horizontalement sur petit écran. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 320px; }
.table-scroll th, .table-scroll td { text-align: left; padding: .55rem .75rem .55rem 0; vertical-align: top; white-space: nowrap; }
.table-scroll th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--rt-text-faint); }
.table-scroll tr + tr td { border-top: 1px solid var(--rt-border); }

/* ── Guides (/m/) : rythme vertical du contenu ───────────────────────────
   `.narrow` n'est utilisé que par les pages de guides, on peut donc y définir
   un vrai rythme éditorial sans toucher au landing ni à la doc. */
.narrow > h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.narrow .lead { font-size: var(--text-lg); color: var(--rt-text-muted); line-height: var(--leading-normal); margin: 0 0 2rem; max-width: 60ch; }
.narrow .crumbs { font-size: var(--text-sm); color: var(--rt-text-faint); margin-bottom: 1.5rem; }
.narrow .crumbs a { color: var(--rt-primary); font-weight: 550; }
.narrow > p { margin-bottom: 1.25rem; color: var(--rt-text-muted); line-height: var(--leading-normal); }
.narrow h2 { font-size: 1.5rem; margin: 3rem 0 1rem; }
.narrow h3 { font-size: 1.0625rem; margin: 2rem 0 .5rem; }
.narrow ul, .narrow ol { margin: 0 0 1.25rem 1.25rem; color: var(--rt-text-muted); line-height: var(--leading-normal); }
.narrow li { margin-bottom: .5rem; }
.narrow li > p, .narrow li > ul { margin-bottom: .5rem; }
.narrow .table-scroll { margin: 1.5rem 0 2rem; }
.narrow pre { margin: 1.25rem 0 1.75rem; }
.narrow .btn { margin-top: .75rem; }
.narrow p a { color: var(--rt-primary); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.narrow p a.btn { color: var(--rt-white); text-decoration: none; }

/* ── Appel final ───────────────────────────────────────────────────────── */
.cta { background: var(--rt-primary); color: var(--rt-white); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta h2 { color: var(--rt-white); max-width: 26ch; margin-inline: auto; }
.cta p { color: #d3ddff; margin: 1rem auto 1.75rem; max-width: 46ch; }
.cta .btn { background: var(--rt-accent); color: var(--rt-dark); box-shadow: none; }
.cta .btn:hover { background: #c9f24a; color: var(--rt-dark); }

/* ── Pied ──────────────────────────────────────────────────────────────── */
.foot { background: var(--rt-dark); color: #9aa3b8; padding-block: 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.foot-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: var(--text-sm); }
.foot a { color: #9aa3b8; }
.foot a:hover { color: var(--rt-white); }

/* ── Documentation ─────────────────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); max-width: 1100px; margin-inline: auto; padding: 2.5rem var(--gutter) 4rem; }
.doc nav { position: sticky; top: 5.5rem; align-self: start; min-width: 0; }
.doc-body { min-width: 0; }
.doc nav ul { list-style: none; }
.doc nav a { display: block; font-size: var(--text-sm); color: var(--rt-text-muted); padding: .3rem 0; }
.doc nav a:hover, .doc nav a.on { color: var(--rt-primary); font-weight: 600; }
.doc nav .sep { margin-top: 1.4rem; font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--rt-text); }
.doc-body h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.doc-body .lead { color: var(--rt-text-muted); font-size: var(--text-lg); margin: .75rem 0 2.5rem; max-width: 52ch; }
.doc-body section + section { margin-top: 3rem; }
.doc-body h2 { font-size: 1.375rem; margin-bottom: .75rem; }
.doc-body p { color: var(--rt-text-muted); margin-bottom: .8rem; max-width: 68ch; }
.doc-body ul, .doc-body ol { margin: 0 0 .8rem 1.25rem; color: var(--rt-text-muted); }
.doc-body li { margin-bottom: .3rem; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-top: 1rem; }
.doc-body th, .doc-body td { text-align: left; padding: .6rem .75rem .6rem 0; vertical-align: top; }
.doc-body th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--rt-text-faint); }
.doc-body tr + tr td { border-top: 1px solid var(--rt-border); }
.doc-body pre { grid-column: auto; margin-top: .9rem; }
.doc-body p a, .doc-body li a, .doc-body td a {
  color: var(--rt-primary); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 2px; font-weight: 550;
}

/* ── Adaptatif ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc nav { position: static; }
}
@media (max-width: 720px) {
  .bar-inner { gap: 1rem; height: 4rem; }
  .bar nav { gap: 1rem; }
  .bar nav a[href^="#"] { display: none; }
  .steps li { grid-template-columns: 2rem 1fr; min-width: 0; }
  pre { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .models__row { grid-template-columns: 1fr; }
  .wordmark span { display: none; }
  .bar nav { gap: .85rem; }
  .lang button { padding: .15rem; }
}

/* ── Rejoindre le Discord ──────────────────────────────────────────────── */
.join {
  background: var(--rt-dark); color: var(--rt-white);
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.join__logo { width: 44px; height: 44px; margin: 0 auto 1.25rem; filter: brightness(0) invert(1); opacity: .9; }
.join h2 { color: var(--rt-white); max-width: 24ch; margin: 0 auto .9rem; }
.join p { color: #b9c0d2; max-width: 48ch; margin: 0 auto; }
.join__list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem; margin: 1.5rem 0 1.9rem;
}
.join__list li {
  font-size: var(--text-sm); font-weight: 550; color: #dfe4ee;
  background: #ffffff14; padding: .4rem .9rem; border-radius: var(--radius-pill);
}
.join__btn { gap: .55rem; }
.join__btn img { filter: brightness(0); }
.join__note { font-size: var(--text-xs); color: #8d96a8 !important; margin-top: 1rem !important; }
