/* Thesr pour les éditeurs juridiques (templates/publishers/index.html),
   26 septembre 2026. Une page à part : le marine de la marque, poussé vers
   l'encre, le papier d'une maison d'édition, une pointe d'or ; Source Serif
   pour les titres, IBM Plex pour le reste. */

.pub-page {
  --p-ink: #0a1730;
  --p-ink-2: #11264a;
  --p-navy: #17356b;
  --p-paper: #f6f4ee;
  --p-white: #ffffff;
  --p-gold: #c9a45c;
  --p-gold-soft: rgba(201, 164, 92, 0.22);
  --p-text: #0f172a;
  --p-soft: #475569;
  --p-muted: #64748b;
  --p-line: #e4e1d8;
  --p-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --p-sans: "IBM Plex Sans", "Inter", system-ui, -apple-system, sans-serif;
  --p-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
  background: var(--p-white);
  color: var(--p-text);
  font-family: var(--p-sans);
  -webkit-font-smoothing: antialiased;
}
/* style.css makes html and body the height of the screen: the sticky bar
   stuck for one screen, then scrolled away with it. */
html:has(body.pub-page), body.pub-page { height: auto; min-height: 100%; }
@media (prefers-reduced-motion: no-preference) { html:has(.pub-page) { scroll-behavior: smooth; } }
/* The height of the bar (69px at every width): a section reached from the
   menu starts right under it, with no strip of the one before. */
.pub-page [id] { scroll-margin-top: 68px; }

.pub-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* style.css sets every heading in Plex, !important: the serif is stated the
   same way, as the landing does. */
.pub-page h1, .pub-page h2 { font-family: var(--p-serif) !important; font-weight: 500; letter-spacing: -0.015em; }
.pub-page h3 { font-family: var(--p-sans) !important; }

/* ---- top bar ------------------------------------------------------------- */
.pub-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 23, 48, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pub-top__inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.pub-brand:hover { color: #fff; text-decoration: none; }
.pub-brand img { border-radius: 8px; }
.pub-brand span { font: 600 17px/1 var(--p-sans); letter-spacing: -0.01em; }
.pub-brand em { font: italic 400 16px/1 var(--p-serif); color: rgba(255, 255, 255, 0.72); }
.pub-nav { display: none; gap: 24px; margin-left: auto; }
.pub-nav a { color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; text-decoration: none; }
.pub-nav a:hover { color: #fff; }
.pub-top__end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.pub-lang { display: inline-flex; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; }
.pub-lang a { padding: 4px 9px; border-radius: 999px; color: rgba(255, 255, 255, 0.7); font: 600 11.5px/1.2 var(--p-sans); letter-spacing: 0.05em; text-decoration: none; }
.pub-lang a:hover { color: #fff; }
.pub-lang a.is-current { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---- buttons ------------------------------------------------------------- */
.pub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--p-gold); color: var(--p-ink);
  font: 600 15px/1 var(--p-sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgba(201, 164, 92, 0.9);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.pub-btn:hover { background: #d6b36c; color: var(--p-ink); text-decoration: none; transform: translateY(-1px); }
.pub-btn--small { min-height: 38px; padding: 0 16px; font-size: 13.5px; box-shadow: none; }
.pub-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none; }
.pub-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pub-btn--light { background: #fff; color: var(--p-ink); box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.6); }
.pub-btn--light:hover { background: var(--p-paper); color: var(--p-ink); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pub-actions--center { justify-content: center; }

/* ---- hero ---------------------------------------------------------------- */
.pub-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(58, 99, 168, 0.35), transparent 60%),
    radial-gradient(700px 480px at 6% 90%, rgba(201, 164, 92, 0.12), transparent 60%),
    linear-gradient(180deg, var(--p-ink) 0%, var(--p-ink-2) 100%);
}
.pub-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.pub-hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.pub-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  color: var(--p-gold); font: 600 12.5px/1.2 var(--p-sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.pub-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--p-gold); }
.pub-hero h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.3rem); line-height: 1.02; }
.pub-hero h1 em { display: block; margin-top: 10px; font-style: italic; color: rgba(255, 255, 255, 0.74); }
.pub-lead { max-width: 560px; margin: 26px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 17.5px; line-height: 1.6; }

/* the console: a search, its filters, what it found */
.pub-console {
  position: relative; border-radius: 20px; padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pub-console__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.pub-console__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.pub-console__bar em { margin-left: 10px; color: rgba(255, 255, 255, 0.6); font: italic 400 14px var(--p-serif); }
.pub-console__query {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px;
  background: rgba(3, 10, 24, 0.55); border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.08);
}
.pub-console__query i { color: var(--p-gold); }
.pub-console__query code { color: #f3ead6; font: 500 13.5px/1.4 var(--p-mono); white-space: normal; text-wrap: balance; }
.pub-console__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pub-console__chips span { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.62); font-size: 12px; }
.pub-console__chips span.is-on { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: transparent; }
.pub-console__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub-console__results li { padding: 13px 15px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.pub-console__results strong { display: block; color: #fff; font: 500 15px/1.35 var(--p-serif); }
.pub-console__results p { margin: 5px 0 6px; color: rgba(255, 255, 255, 0.68); font-size: 13px; line-height: 1.5; }
.pub-console__results mark { padding: 0 3px; border-radius: 4px; background: var(--p-gold-soft); color: #f7e6c2; }
.pub-console__results small { color: rgba(255, 255, 255, 0.46); font-size: 11.5px; letter-spacing: 0.02em; }
.pub-console__ai {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px;
  border-radius: 12px; background: rgba(201, 164, 92, 0.1); border: 1px dashed rgba(201, 164, 92, 0.45);
  color: #f3ead6; font-size: 13px;
}
.pub-console__ai i { color: var(--p-gold); }
.pub-console__ai em { margin-left: auto; color: var(--p-gold); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }

.pub-proof {
  position: relative; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px;
  margin-top: 64px; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72); font-size: 14px;
}
.pub-proof li { display: flex; align-items: center; gap: 10px; }
.pub-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p-gold); }

/* ---- sections ------------------------------------------------------------ */
.pub-section { padding: clamp(72px, 9vw, 120px) 0; }
.pub-section--paper { background: var(--p-paper); }
.pub-section--ink { background: linear-gradient(180deg, var(--p-ink) 0%, var(--p-ink-2) 100%); color: #fff; }
.pub-kicker { margin: 0 0 14px; color: var(--p-navy); font: 600 12.5px/1.2 var(--p-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.pub-section--ink .pub-kicker { color: var(--p-gold); }
.pub-section h2 { margin: 0; color: var(--p-text); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; }
.pub-section--ink h2 { color: #fff; }
.pub-h2-wide { max-width: 860px; }
.pub-text { max-width: 560px; margin: 22px 0 0; color: var(--p-soft); font-size: 17px; line-height: 1.65; }
.pub-section--ink .pub-text { color: rgba(255, 255, 255, 0.76); }
.pub-split { display: grid; gap: 48px; align-items: center; }
.pub-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 580px; }
.pub-list li { position: relative; padding-left: 26px; color: var(--p-soft); font-size: 15.5px; line-height: 1.55; }
.pub-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 2px; background: var(--p-gold); }
.pub-list strong { color: var(--p-text); }
.pub-section--ink .pub-list li { color: rgba(255, 255, 255, 0.74); }
.pub-section--ink .pub-list strong { color: #fff; }

/* the syntax card */
.pub-syntax { border-radius: 20px; padding: 10px; background: var(--p-ink); box-shadow: 0 40px 80px -40px rgba(10, 23, 48, 0.6); }
.pub-syntax__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 12px; color: rgba(255, 255, 255, 0.66); font-size: 14px;
}
.pub-syntax__row + .pub-syntax__row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pub-syntax__row code { color: #f3ead6; font: 500 14.5px var(--p-mono); white-space: nowrap; }
.pub-syntax__row span { text-align: right; }

/* the assistant conversation */
.pub-chat { display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.pub-chat__msg { max-width: 92%; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.86); font-size: 14.5px; line-height: 1.55; }
.pub-chat__msg--user { justify-self: end; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--p-ink); }
.pub-chat__tool { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(201, 164, 92, 0.45); color: var(--p-gold); font-size: 12.5px; font-weight: 500; }
.pub-chat__cite { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--p-gold); font-size: 12.5px; font-weight: 500; }

/* cards */
.pub-cards { display: grid; gap: 18px; margin-top: 44px; }
.pub-card { padding: 30px 28px; border-radius: 20px; background: var(--p-paper); border: 1px solid var(--p-line); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pub-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(10, 23, 48, 0.35); }
.pub-card > i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--p-ink); color: var(--p-gold); font-size: 18px; }
.pub-card h3 { margin: 22px 0 10px; color: var(--p-text); font-size: 19px; font-weight: 600; }
.pub-card p { margin: 0; color: var(--p-soft); font-size: 15px; line-height: 1.6; }

/* security */
.pub-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pub-checks li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--p-line); color: var(--p-soft); font-size: 15px; line-height: 1.55; }
.pub-checks i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--p-ink); color: var(--p-gold); font-size: 15px; }
.pub-checks strong { color: var(--p-text); }

/* steps */
.pub-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.pub-steps li { position: relative; padding: 26px 24px; border-radius: 18px; border: 1px solid var(--p-line); background: #fff; }
.pub-steps span { color: var(--p-gold); font: 500 28px/1 var(--p-serif); }
.pub-steps h3 { margin: 16px 0 8px; color: var(--p-text); font-size: 17px; font-weight: 600; }
.pub-steps p { margin: 0; color: var(--p-soft); font-size: 14.5px; line-height: 1.55; }

/* ---- call to action and footer --------------------------------------------- */
.pub-cta {
  padding: clamp(80px, 10vw, 128px) 0; color: #fff; text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(201, 164, 92, 0.16), transparent 70%),
    linear-gradient(180deg, var(--p-ink-2), var(--p-ink));
}
.pub-cta h2 { margin: 0; color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.pub-cta p { max-width: 560px; margin: 18px auto 0; color: rgba(255, 255, 255, 0.76); font-size: 17px; line-height: 1.6; }
.pub-cta__mail { margin-top: 18px !important; color: rgba(255, 255, 255, 0.55) !important; font-size: 14px !important; letter-spacing: 0.02em; }
.pub-foot { padding: 26px 0; background: var(--p-ink); color: rgba(255, 255, 255, 0.55); font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pub-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pub-foot a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.pub-foot a:hover { color: #fff; }

/* ---- wider screens ------------------------------------------------------- */
@media (min-width: 720px) {
  .pub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .pub-nav { display: flex; }
  .pub-top__end { margin-left: 8px; }
  .pub-hero { padding-top: 96px; }
  .pub-hero__grid { grid-template-columns: 1.02fr 0.98fr; gap: 64px; }
  .pub-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .pub-split--reverse > :first-child { order: 2; }
  .pub-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pub-brand em { display: none; }
  .pub-btn--small { display: none; }
  .pub-syntax__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pub-syntax__row span { text-align: left; }
}
