/* ── Help Center — charte Axel : accent #E0241B · Inter Tight (titres) ·
   Plus Jakarta Sans (corps) · JetBrains Mono (chiffres/code). Header éditorial
   sombre, corps clair (même logique que landing / pages détail). ── */
:root {
  --accent: #E0241B;
  --accent-soft: rgba(224, 36, 27, .08);
  --ink: #111114;
  --ink2: #3c3c43;
  --muted: #6e6e76;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e7e7ea;
  --border2: #d9d9de;
  --dark: #0a0a0a;
  --dark2: #141416;
  --radius: 14px;
  --font-head: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* Footer collé en bas même sur les pages courtes (colonne flex pleine hauteur,
   le main prend l'espace restant). */
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 15.5px; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; }

/* ── Header — bandeau « feu liquide » (image Google Flow, DA signature) sous
   un léger voile sombre pour la lisibilité ; contenu au-dessus (z-index). ── */
/* Pas d'overflow:hidden : le menu de résultats de recherche doit pouvoir
   déborder du bandeau (sinon il est rogné sur les pages internes). */
.hd { position: relative; background: var(--dark); color: #fff; }
.hd::before { content: ''; position: absolute; inset: 0; background: url('img/hero-liquid.jpg') center/cover no-repeat; }
.hd::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.30), rgba(5,5,5,.52)); }
.hd-inner, .hero { position: relative; z-index: 1; }
/* Recherche active → le conteneur passe AU-DESSUS de la bulle « Most viewed »
   (elle est en z-index:1 aussi, et après dans le DOM) ; il redescend dès que
   le champ perd le focus, pour ne jamais bloquer les clics sur la bulle. */
.hero:focus-within, .hd-inner:focus-within { z-index: 40; }
.hd-inner { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 18px; }
/* Lockup Axel — mêmes vecteurs que la top bar de la landing : œil accent,
   lettres blanches (fond sombre), « Help Center » atténué à côté. */
.ax-lockup { display: inline-flex; align-items: center; }
.hd-logo { display: inline-flex; align-items: center; white-space: nowrap; }
.hd-logo .ax-eye { width: 54px; height: auto; flex-shrink: 0; }
.hd-logo .ax-eye path { fill: var(--accent); }
.hd-logo .ax-word { height: 17px; width: auto; margin-left: 2px; }
.hd-logo .ax-word path { fill: #fff; }
.hd-logo-label { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: rgba(255,255,255,.72); margin-left: 12px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.28); line-height: 1.2; }
/* ── Sélecteur de langue — trois liens vers la MÊME page dans l'autre langue.
   Segmenté compact : la langue active est une pastille pleine, les autres des
   liens atténués. Pas de menu déroulant : trois langues tiennent en ligne. ── */
.hd-lang { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: rgba(8,8,8,.45); backdrop-filter: blur(6px); flex-shrink: 0; }
.hd-lang a, .hd-lang .hd-lang-on { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; line-height: 1; padding: 6px 10px; border-radius: 99px; transition: color .15s, background .15s; }
.hd-lang a { color: rgba(255,255,255,.6); }
.hd-lang a:hover { color: #fff; background: rgba(255,255,255,.1); }
.hd-lang .hd-lang-on { color: #fff; background: var(--accent); }
/* Le sélecteur prend la place de « margin-left:auto » : le lien retour suit. */
.hd-lang + .hd-back { margin-left: 0; }
.hd-back { margin-left: auto; font-size: 13px; color: rgba(255,255,255,.72); transition: color .15s; white-space: nowrap; }
.hd-back:hover { color: #fff; }
.hero { max-width: 720px; margin: 0 auto; padding: 48px 24px 68px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
/* Dégradé « feu » rouge → or sur un fragment de titre — MÊME effet que
   .grad-fire de la landing (« One workspace. »). text-shadow annulé : sur un
   texte clippé transparent, l'ombre baverait à travers le dégradé. */
.grad-fire { display: inline-block; background: linear-gradient(100deg, var(--accent) 10%, #E0A41B 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; text-shadow: none; }
.hero-sub { color: rgba(255,255,255,.78); margin: 10px 0 26px; font-size: 16px; text-shadow: 0 1px 14px rgba(0,0,0,.5); }

/* ── Search ── */
.hd-search { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.hd-search input { width: 100%; padding: 15px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #fff; color: var(--ink); font-size: 15px; font-family: var(--font-body); outline: none; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.hd-search input:focus { border-color: var(--accent); }
.hd-search-small { margin: 0; flex: 1; max-width: 440px; }
.hd-search-small input { padding: 10px 16px; font-size: 13.5px; box-shadow: none; background: rgba(8,8,8,.55); border: 1px solid rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px); }
.hd-search-small input::placeholder { color: rgba(255,255,255,.45); }
.q-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--border2); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.18); overflow: hidden; z-index: 60; max-height: 380px; overflow-y: auto; text-align: left; }
.q-hit { display: block; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.q-hit:last-child { border-bottom: none; }
.q-hit:hover, .q-hit.sel { background: var(--accent-soft); }
.q-hit-t { font-weight: 700; font-size: 14px; color: var(--ink); }
.q-hit-c { font-size: 12px; color: var(--muted); margin-top: 1px; }
.q-empty { padding: 14px 16px; font-size: 13.5px; color: var(--muted); }

/* ── Home ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
/* Bulle à cheval sur la fin de bannière (position d'origine, validée) —
   ombre appuyée pour la détacher nettement de l'image au premier plan. */
.pop { position: relative; z-index: 1; margin-top: -66px; margin-bottom: 40px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.pop-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.pop-link { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.pop-link::before { content: '›'; color: var(--accent); margin-right: 8px; font-weight: 800; }
.pop-link:hover { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 7px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.card-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; font-family: var(--font-mono); margin-bottom: 6px; }
/* Icônes venues de l'APP — mêmes PNG que la sidebar, teintés par masque CSS
   (technique identique à .nav-ic de l'app : la couleur vient du fond). */
.ic-mask { display: block; width: 22px; height: 22px; background: var(--accent); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-img { display: block; width: 26px; height: 26px; border-radius: 50%; }
.col-ic .ic-mask { width: 27px; height: 27px; }
.col-ic .ic-img { width: 31px; height: 31px; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 17.5px; letter-spacing: -.01em; }
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.card-count { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 8px; font-family: var(--font-mono); }

/* ── Breadcrumb ── */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; }
.crumb a:hover { color: var(--accent); }
.crumb-sep { margin: 0 8px; opacity: .6; }
.crumb span:last-child { color: var(--ink2); }

/* ── Collection ── */
.wrap-narrow { max-width: 820px; }
.col-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.col-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 700; font-family: var(--font-mono); }
.col-head h1 { font-size: 27px; font-weight: 800; }
.col-desc { color: var(--ink2); margin-top: 4px; }
.col-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.art-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.art-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t a" "d a"; padding: 15px 22px; border-bottom: 1px solid var(--border); align-items: center; column-gap: 14px; transition: background .12s; }
.art-row:last-child { border-bottom: none; }
.art-row:hover { background: var(--accent-soft); }
.art-row-title { grid-area: t; font-weight: 700; font-size: 15px; }
.art-row-desc { grid-area: d; font-size: 13px; color: var(--muted); }
.art-row-arrow { grid-area: a; color: var(--accent); font-size: 19px; font-weight: 800; }

/* ── Article ── */
.art-wrap { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 48px; justify-content: center; }
.art h1 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.art-desc { color: var(--ink2); font-size: 16.5px; margin-top: 10px; }
.art-meta { font-size: 12.5px; color: var(--muted); margin: 12px 0 8px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.art-body { padding-top: 6px; }
.art-body h2 { font-size: 21px; font-weight: 700; margin: 34px 0 12px; }
.art-body h3 { font-size: 16.5px; font-weight: 700; margin: 24px 0 8px; }
.art-body p { margin: 12px 0; }
.art-body ul, .art-body ol { margin: 12px 0 12px 4px; padding-left: 22px; }
.art-body li { margin: 7px 0; }
.art-body li::marker { color: var(--accent); font-weight: 700; }
.art-body strong { font-weight: 700; }
.art-body code { font-family: var(--font-mono); font-size: .86em; background: #f0f0f2; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.art-body img { border: 1px solid var(--border2); border-radius: 10px; margin: 14px 0 6px; display: block; box-shadow: 0 8px 26px rgba(0,0,0,.08); }
/* Captures de ZONE (recadrées) — affichage à taille contenue, pas pleine page. */
.art-body img.shot-sm { max-width: 420px; width: 100%; }
.art-body img.shot-md { max-width: 620px; width: 100%; }
.art-body .shot-cap { font-size: 12.5px; color: var(--muted); margin: 2px 0 16px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.art-body th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--border2); padding: 8px 10px; }
.art-body td { border-bottom: 1px solid var(--border); padding: 9px 10px; vertical-align: top; }
.art-body td:first-child { font-weight: 600; white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }
.tip, .warn { border-radius: 10px; padding: 13px 16px; margin: 16px 0; font-size: 14px; line-height: 1.65; }
.tip { background: var(--accent-soft); border: 1px solid rgba(224, 36, 27, .18); }
.warn { background: #fff7ed; border: 1px solid #fed7aa; }
.tip::before { content: '💡 '; }
.warn::before { content: '⚠️ '; }
.kbd { font-family: var(--font-mono); font-size: .82em; border: 1px solid var(--border2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: #fff; }

/* ── TOC ── */
.toc { position: sticky; top: 30px; align-self: start; font-size: 13px; border-left: 1px solid var(--border2); padding-left: 18px; }
.toc-title { font-weight: 700; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0; color: var(--ink2); }
.toc a:hover { color: var(--accent); }

/* ── Bas d'article ── */
.art-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; }
.art-nav-link { color: var(--ink2); font-weight: 600; }
.art-nav-link:hover { color: var(--accent); }
.art-related { margin-top: 30px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.art-related-title { font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.art-related a { display: block; padding: 5px 0; font-weight: 600; font-size: 14.5px; }
.art-related a:hover { color: var(--accent); }
.art-feedback { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.art-feedback a { color: var(--accent); font-weight: 600; }

/* ── Footer ── */
.foot { background: var(--dark); color: rgba(255,255,255,.6); margin-top: 40px; }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 34px 24px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
/* Logo du footer — même lockup que le header (œil accent + lettres blanches). */
.foot-brand .ax-eye { width: 48px; height: auto; }
.foot-brand .ax-eye path { fill: var(--accent); }
.foot-brand .ax-word { height: 14px; width: auto; margin-left: 2px; }
.foot-brand .ax-word path { fill: #fff; }
.foot-links { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; }
.foot-links a:hover { color: #fff; }
.foot-copy { margin-left: auto; font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .art-wrap { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
  .hd-inner { flex-wrap: wrap; gap: 10px; }
  .hd-search-small { order: 3; max-width: none; flex-basis: 100%; }
  .hd-back { display: none; }
  /* Le sélecteur reste visible en mobile (le lien retour, lui, disparaît). */
  .hd-lang { margin-left: auto; }
  .hd-lang a, .hd-lang .hd-lang-on { padding: 6px 9px; font-size: 11px; }
  .hero { padding: 30px 18px 54px; }
  .pop { margin-top: -50px; }
  .pop-row { flex-direction: column; gap: 8px; }
  .wrap { padding: 28px 16px 60px; }
  .art h1 { font-size: 24px; }
  .col-head { gap: 12px; }
  .art-row { padding: 13px 16px; }
  .foot-copy { margin-left: 0; }
}
