:root {
  --navy: #001b38;
  --violet: #7d25ec;
  --violet-50: #f4edfe;
  --text: #19191a;
  --text-2: #3e3e40;
  --muted: #5d6068;
  --line: rgba(0, 0, 0, .08);
  --bg: #f7f7f9;
  --card: #fff;
  --radius: 14px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100% }
a { color: inherit; text-decoration: none }
h1, h2, h3 { line-height: 1.25 }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none }

/* ---------- en-tête */
.hdr { background: url(../kb-media/60be505b-4599-438c-b1d8-6dc0913ae2ee.jpeg) center/cover; color: var(--navy); padding: 14px 16px; position: relative; z-index: 5 }
.hdr-hero { padding-bottom: 72px }
.bar { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600 }
.brand img { height: 32px }
.sp { flex: 1 }
.btn { display: inline-flex; align-items: center; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; border: 1px solid rgba(0, 27, 56, .2); white-space: nowrap }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff }
.btn.ghost { background: rgba(255, 255, 255, .6) }
.hero { max-width: 720px; margin: 44px auto 0; text-align: center }
.hero h1 { font-size: 34px; margin: 0 0 20px }
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13px }
.chips a { background: rgba(255, 255, 255, .75); border: 1px solid rgba(0, 27, 56, .1); border-radius: 999px; padding: 5px 12px }
.chips a:hover { background: #fff }

/* ---------- recherche */
.search { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--muted); border-radius: 12px; padding: 0 14px; border: 1px solid rgba(0, 27, 56, .12) }
.search.big { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); border: 0 }
.search.big .search-input { height: 52px; font-size: 16px }
.search.compact { width: 300px; border-radius: 10px }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; height: 40px }
.search-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; text-align: left; z-index: 20 }
.search-drop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text) }
.search-drop a:hover, .search-drop a.active { background: var(--violet-50) }
.search-drop .t { display: block; font-weight: 600; font-size: 14px }
.search-drop .c { display: block; font-size: 12px; color: var(--muted) }
.search-drop .more { color: var(--violet); font-weight: 600; font-size: 14px }
.search-drop .empty { padding: 10px 12px; font-size: 14px; color: var(--muted) }

/* ---------- accueil */
main.home { max-width: 1080px; margin: -40px auto 0; padding: 0 16px 56px; position: relative }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.who-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; overflow: hidden; min-height: 190px; box-shadow: 0 4px 16px rgba(0, 0, 0, .05); transition: box-shadow .15s }
.who-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .1) }
.who-card .txt { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px }
.who-card .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet) }
.who-card h2 { margin: 0; font-size: 20px }
.who-card p { margin: 0; color: var(--muted); font-size: 14px }
.who-card .go { margin-top: auto; font-weight: 600; color: var(--violet); font-size: 14px; display: flex; gap: 6px; align-items: center }
.who-card .go svg { width: 16px; height: 16px }
.who-card .pic { width: 150px; background: var(--violet-50); display: flex; align-items: flex-end; justify-content: center; padding-top: 18px; flex: none }
.who-card .pic img { width: 118px; border-radius: 14px 14px 0 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .12) }
.who-card .pic.app { background: #e8edf5 }
.mock-app { width: 120px; height: 150px; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .12); padding: 10px; display: flex; flex-direction: column; gap: 6px }
.mock-app i { display: block; height: 6px; border-radius: 3px; background: #d7dce5 }
.mock-app b { display: block; margin-top: auto; height: 20px; border-radius: 6px; background: var(--violet) }
h2.sec { font-size: 18px; margin: 40px 0 14px }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; transition: box-shadow .15s }
.cat-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08) }
.cat-card h3 { margin: 0 0 4px; font-size: 15px }
.cat-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45 }
.cat-card .n { font-size: 12px; color: #8a8d94; margin-top: 6px }

/* ---------- icônes de rubrique */
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none }
.ico svg.i { width: 22px; height: 22px }
.ico.sm { width: 30px; height: 30px; border-radius: 8px }
.ico.sm svg.i { width: 16px; height: 16px }
.ico.lg { width: 56px; height: 56px; border-radius: 16px }
.ico.lg svg.i { width: 28px; height: 28px }
.c-violet { background: #f4edfe; color: #7d25ec }
.c-blue { background: #e7f0ff; color: #2563eb }
.c-green { background: #e6f7f1; color: #0f8a5f }
.c-orange { background: #fff3e3; color: #c26a00 }
.c-pink { background: #fdeef3; color: #c0265b }
.c-slate { background: #eef0f4; color: #3e4a5c }
.c-cyan { background: #e9f6fb; color: #0b7aa1 }
.c-lime { background: #f1f7e6; color: #4d7c0f }
.c-indigo { background: #eeeafe; color: #4f46e5 }
.c-brown { background: #f6efe6; color: #8a5a1f }
.c-red { background: #ffeceb; color: #c2261b }
.c-sky { background: #e0f2fe; color: #0369a1 }

/* ---------- listes de liens */
.link-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px }
.link-list a:first-child { border-top: 0 }
.link-list a:hover { color: var(--violet) }
.link-list a > svg:first-child { color: var(--muted) }
.link-list span:not(.tag) { flex: 1 }
.link-list .tag { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right }
.link-list .chev { color: #b0b3ba; width: 16px; height: 16px }
.link-list.flat { border: 0; background: none }
.link-list.flat a { padding: 10px 0 }

.help-box { margin-top: 40px; background: var(--navy); color: #fff; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 16px; justify-content: space-between }
.help-box p { margin: 4px 0 0; opacity: .8; font-size: 14px }

/* ---------- pages rubrique et recherche */
main.page { max-width: 880px; margin: 0 auto; padding: 24px 16px 56px }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px }
.crumb a:hover { color: var(--violet) }
.cat-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px }
.cat-head h1 { margin: 0 0 4px; font-size: 28px }
.cat-head p { margin: 0; color: var(--muted) }
.art-list { display: flex; flex-direction: column; gap: 10px }
.art-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 16px; transition: box-shadow .15s }
.art-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .07) }
.art-card > div { flex: 1; min-width: 0 }
.art-card h3 { margin: 0 0 4px; font-size: 16px }
.art-card p { margin: 0; font-size: 14px; color: var(--muted) }
.art-card .cat-label { font-size: 12px; color: var(--violet); margin-top: 6px }
.art-card .chev { color: #b0b3ba }
.other-cats { display: flex; flex-wrap: wrap; gap: 8px }
.other-cats a { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; font-size: 14px }
.search-title { font-size: 24px; margin: 0 0 20px }
.not-found h1 { font-size: 28px; margin: 12px 0 8px }
.not-found .search.big { margin: 8px 0 8px }
.not-found .back { margin: 28px 0 0 }
.search-empty { color: var(--muted) }

/* ---------- article */
.art-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 56px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px }
.side { position: sticky; top: 16px; align-self: start; font-size: 14px }
.side-cat { display: flex; gap: 10px; align-items: center; font-weight: 700; margin-bottom: 10px }
.side a:not(.side-cat) { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted) }
.side a:not(.side-cat):hover { color: var(--text) }
.side a.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .06) }
article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px }
article h1 { font-size: 28px; margin: 0 0 10px }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-bottom: 20px }
.meta span { background: #f1f2f4; border-radius: 999px; padding: 4px 10px; color: var(--muted) }
.meta .who-tag { background: var(--violet-50); color: var(--violet); font-weight: 600 }
.lead { font-size: 17px; color: var(--text-2); margin: 0 0 20px }
.toc { background: #fafafb; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 12px }
.toc b { display: block; margin-bottom: 4px }
.toc ol { margin: 0; padding-left: 18px; line-height: 1.9; color: var(--violet) }
.toc a:hover { text-decoration: underline }

.article-content { color: var(--text-2); font-size: 16px; line-height: 1.65 }
.article-content > :first-child { margin-top: 0 }
.article-content h2 { font-size: 20px; color: var(--text); margin: 32px 0 10px; scroll-margin-top: 16px }
.article-content h3 { font-size: 17px; color: var(--text); margin: 24px 0 8px }
.article-content p { margin: 0 0 12px }
.article-content ul, .article-content ol { margin: 0 0 12px; padding-left: 22px }
.article-content li { margin-bottom: 4px }
.article-content li > p { margin: 0 0 6px }
.article-content a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px }
.article-content strong, .article-content b { color: var(--text) }
.article-content img { max-width: 100%; height: auto !important }
.article-content .kb-image { display: block; margin: 12px auto; border-radius: 8px; border: 1px solid var(--line) }
.article-content blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #d4d6d9; background: #fafafb; border-radius: 0 8px 8px 0 }
.article-content blockquote p:last-child { margin: 0 }
.article-content .kb-video-embed { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 16px; border-radius: 12px; overflow: hidden; background: #000 }
.article-content .kb-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.article-content .table-wrapper { overflow-x: auto; margin: 16px 0 }
.article-content table { border-collapse: collapse; font-size: 13px; line-height: 18px; width: 100% }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px; vertical-align: middle }
.article-content th { background: #f5f5f7; text-align: left }
.article-content th:not(:first-child), .article-content td:not(:first-child) { text-align: center }
.article-content td:first-child, .article-content th:first-child { min-width: 165px }
.article-content kbd, .article-content code { background: #f1f2f4; border-radius: 4px; padding: 1px 5px; font-size: .9em }

.step { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px }
.step.no-figure { grid-template-columns: 1fr }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; margin-bottom: 10px }
.step h2 { font-size: 19px; margin: 0 0 8px }
.step-figure { margin: 0 }
.step-figure .shot { width: 200px; display: block; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); cursor: zoom-in }
.step-figure.pair { display: flex; flex-wrap: wrap; gap: 10px }
.step-figure.pair .shot { width: 95px; border-radius: 14px }
.step-figure.pair figcaption { width: 100% }
.step-figure figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px }
.step-figure:has(.shot[src*="ordinateur"]) .shot { border-radius: 10px }
.step.wide { grid-template-columns: 1fr; gap: 14px }
.step.wide .step-figure { justify-self: start; max-width: 100% }
.step.wide .shot, .article-content img.screen { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .07) }
.step.wide .step-figure figcaption { text-align: left }
.article-content img.screen { display: block; margin: 8px 0 18px }

.callout { display: flex; gap: 12px; border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.55; margin: 12px 0 }
.callout svg.i { margin-top: 2px }
.callout b { display: block; margin-bottom: 2px; color: inherit }
.callout p { margin: 0 0 6px }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0 }
.callout a { color: inherit }
.callout.tip { background: #e6f7f1; color: #0b5e41 }
.callout.warning { background: #fff3e3; color: #7a4300 }
.callout.info { background: var(--violet-50); color: #4c1d95 }

.related { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px }
.related h2 { font-size: 16px; margin: 0 0 4px }
.related a { color: var(--violet) }

/* ---------- agrandissement des images */
.lightbox { position: fixed; inset: 0; background: rgba(15, 23, 42, .8); display: grid; place-items: center; padding: 24px; z-index: 50; cursor: zoom-out }
.lightbox[hidden] { display: none }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; background: #fff }

/* ---------- pied de page */
.ftr { border-top: 1px solid var(--line); background: #fff }
.ftr-in { max-width: 1080px; margin: 0 auto; padding: 20px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 13px; color: var(--muted) }
.ftr-in a:hover { color: var(--violet) }
.socials { display: flex; gap: 12px; margin-right: auto }
.socials svg.i { width: 18px; height: 18px }

/* ---------- petits écrans */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr 1fr }
  .who { grid-template-columns: 1fr }
  .art-wrap { grid-template-columns: 1fr }
  .side { display: none }
  .search.compact { width: auto; flex: 1 }
}
@media (max-width: 600px) {
  .hide-sm { display: none }
  .brand span { display: none }
  .hero { margin-top: 28px }
  .hero h1 { font-size: 26px }
  .cat-grid { grid-template-columns: 1fr }
  .who-card .pic { width: 110px }
  .who-card .pic img { width: 90px }
  .who-card .txt { padding: 18px }
  article { padding: 20px }
  article h1 { font-size: 23px }
  .step { grid-template-columns: 1fr; gap: 16px }
  .step-figure { justify-self: center }
  .help-box { flex-direction: column; align-items: flex-start }
  .cat-head h1 { font-size: 23px }
}
