/* Site TrueGlide XPro : couleurs du logiciel (vert-jaune de la marque sur fond graphite), thème clair et sombre.
   Mise en page : bande d'en-tête, colonne de lecture de 1120 px, grilles qui passent à une colonne sur téléphone. */
:root {
  --fond: #f4f5f2; --fond-2: #ffffff; --carte: #ffffff; --bord: #d7d9d2;
  --texte: #1b1d18; --doux: #5a5d55; --tres-doux: #8b8e86;
  --accent: #4b5e0b; --accent-vif: #c6f700; --accent-texte: #ffffff; --accent-doux: rgba(75, 94, 11, 0.10);
  --code-fond: #eceee8;
  --titre: "Saira Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --corps: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #121212; --fond-2: #181817; --carte: #1c1c1b; --bord: #2f302d;
    --texte: #ececea; --doux: #a7a9a2; --tres-doux: #7c7e78;
    --accent: #c6f700; --accent-texte: #121212; --accent-doux: rgba(198, 247, 0, 0.10); --code-fond: #232321;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #121212; --fond-2: #181817; --carte: #1c1c1b; --bord: #2f302d;
  --texte: #ececea; --doux: #a7a9a2; --tres-doux: #7c7e78;
  --accent: #c6f700; --accent-texte: #121212; --accent-doux: rgba(198, 247, 0, 0.10); --code-fond: #232321;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.6 var(--corps); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.large { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; text-wrap: balance; letter-spacing: 0.01em; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--code-fond); border-radius: 4px; padding: 1px 5px; }
kbd { border: 1px solid var(--bord); border-bottom-width: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* en-tête */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--fond-2); border-bottom: 1px solid var(--bord); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--fond-2); }
.entete .large { display: flex; align-items: center; gap: 22px; padding-block: 10px; flex-wrap: wrap; }
.entete .marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font-family: var(--titre); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.entete .marque img { width: 38px; height: 38px; }
.entete .marque span { color: var(--accent); }
.entete nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.entete nav a { color: var(--doux); text-decoration: none; font-weight: 500; }
.entete nav a:hover, .entete nav a[aria-current] { color: var(--texte); }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1.5px solid var(--bord); color: var(--texte); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.plein { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }

/* pied */
.pied { border-top: 1px solid var(--bord); margin-top: 64px; color: var(--tres-doux); font-size: 14px; }
.pied .large { padding-block: 26px; display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; }

/* documentation */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-block: 34px; }
.doc aside { position: sticky; top: 80px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 100px); overflow-y: auto; }
.doc aside h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tres-doux); margin: 0 0 8px; }
.doc aside ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 4px; }
.doc aside a { color: var(--doux); text-decoration: none; }
.doc aside a[aria-current], .doc aside a:hover { color: var(--accent); }
.doc article { min-width: 0; max-width: 780px; }
.doc article h1 { font-size: 40px; margin: 0 0 10px; }
.doc article h2 { font-size: 26px; margin: 42px 0 10px; padding-bottom: 6px; border-bottom: 1.5px solid var(--bord); }
.doc article h3 { font-size: 20px; margin: 28px 0 8px; }
.doc .chapeau { font-size: 18px; color: var(--doux); }
.doc figure { margin: 18px 0 24px; }
.doc figure img { border: 1px solid var(--bord); border-radius: 8px; display: block; }
.doc figcaption { font-size: 13.5px; color: var(--tres-doux); margin-top: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc .tableau { overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.doc th { color: var(--doux); font-weight: 600; }
.encart { border-left: 3px solid var(--accent); background: var(--accent-doux); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; }
.etapes { counter-reset: e; list-style: none; padding: 0; display: grid; gap: 10px; }
.etapes li { counter-increment: e; padding-left: 38px; position: relative; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-texte); font: 700 14px/26px var(--titre); text-align: center; }
@media (max-width: 820px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doc aside { position: static; max-height: none; }
  .doc article h1 { font-size: 32px; }
}

/* captures du logiciel dans les deux thèmes : <img class="t-sombre"> et <img class="t-clair"> côte à côte, une seule
   affichée selon le thème (système, ou choix data-theme) */
:root img.t-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.t-sombre { display: block; }
  :root:not([data-theme="light"]) img.t-clair { display: none; }
}
:root[data-theme="dark"] img.t-sombre { display: block; }
:root[data-theme="dark"] img.t-clair { display: none; }
