/* Guide d'aide de LDK Atelier : même identité que le logiciel (Geist, sarcelle, menu sombre), lecture confortable. */
@font-face { font-family: "Geist"; src: url("../../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --brand: #0f766e; --brand-fort: #115e59; --brand-vif: #14b8a6; --brand-doux: #e6f6f4; --brand-ligne: #a7e3dc;
  --fond: #ffffff; --fond-2: #f7f9fa; --fond-3: #eef2f5; --encre: #0f172a; --encre-2: #334155; --gris: #64748b; --pale: #94a3b8;
  --ligne: #e2e8f0; --ligne-2: #edf1f5;
  --menu: #0b1220; --menu-2: #131c2e; --menu-texte: #cbd5e1; --menu-gris: #7c889c;
  --ok: #047857; --ok-doux: #e8f7f0; --info: #1d4ed8; --info-doux: #ecf2ff; --alerte: #b45309; --alerte-doux: #fef6e7;
  --legal: #6d28d9; --legal-doux: #f3edff;
  --ombre: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.07); --ombre-l: 0 20px 60px rgba(15,23,42,.22);
  --haut: 60px; --menu-l: 268px; color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #2dd4bf; --brand-fort: #5eead4; --brand-doux: rgba(45,212,191,.12); --brand-ligne: rgba(45,212,191,.35);
  --fond: #0b1120; --fond-2: #0f1624; --fond-3: #1a2333; --encre: #e5e9f0; --encre-2: #c3cad6; --gris: #8f9bb0; --pale: #64708a;
  --ligne: #233044; --ligne-2: #1b2638; --menu: #070b14; --menu-2: #0f1626;
  --ok: #34d399; --ok-doux: rgba(52,211,153,.12); --info: #93b4ff; --info-doux: rgba(147,180,255,.12);
  --alerte: #fbbf24; --alerte-doux: rgba(251,191,36,.12); --legal: #c4b5fd; --legal-doux: rgba(196,181,253,.12);
  --ombre: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); --ombre-l: 0 20px 60px rgba(0,0,0,.55); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--haut) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15.5px; line-height: 1.65; color: var(--encre); background: var(--fond); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-fort); }
kbd { font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--gris); border: 1px solid var(--ligne); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--fond-2); white-space: nowrap; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--fond-3); border-radius: 5px; padding: 1px 5px; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,.4); border-radius: 6px; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--encre); color: var(--fond); padding: 8px 12px; border-radius: 8px; }
.evitement:focus { left: 8px; }
.muted { color: var(--gris); }
.grow { flex: 1; min-width: 0; }

/* Barre du haut */
.haut { position: sticky; top: 0; z-index: 40; height: var(--haut); display: flex; align-items: center; gap: 14px; padding: 0 20px; background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); border-bottom: 1px solid var(--ligne); }
.marque { display: flex; align-items: center; gap: 9px; color: var(--encre); text-decoration: none; font-weight: 700; flex: none; }
.marque-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #14b8a6, #0f766e); }
.marque-logo.logo-ldk { width: 32px; height: 32px; background: none; border-radius: 0; }
.marque-logo.logo-ldk img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.marque-nom { font-size: 17px; letter-spacing: -.02em; }
.marque-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); border: 1px solid var(--ligne); border-radius: 99px; padding: 1px 8px; font-weight: 650; }
.recherche-btn { margin-left: auto; display: flex; align-items: center; gap: 9px; width: min(380px, 36vw); height: 38px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond-2); color: var(--gris); font: inherit; font-size: 14px; cursor: pointer; }
.recherche-btn span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recherche-btn:hover { border-color: var(--pale); }
.haut-actions { display: flex; align-items: center; gap: 6px; }
.lien-app { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; color: var(--encre-2); text-decoration: none; padding: 7px 10px; border-radius: 9px; }
.lien-app:hover { background: var(--fond-3); color: var(--encre); }
.btn-icone { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--encre-2); border-radius: 9px; cursor: pointer; }
.btn-icone:hover { background: var(--fond-3); }
.menu-btn { display: none; }

/* Cadre à trois colonnes */
.cadre { display: grid; grid-template-columns: var(--menu-l) minmax(0, 1fr) 230px; min-height: calc(100vh - var(--haut)); }
.menu { position: sticky; top: var(--haut); height: calc(100vh - var(--haut)); overflow-y: auto; background: var(--menu); color: var(--menu-texte); padding: 14px 12px 20px; scrollbar-width: thin; scrollbar-color: #253047 transparent; }
.nav-groupe { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--menu-gris); font-weight: 650; margin: 16px 10px 6px; }
.nav-lien { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--menu-texte); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.3; position: relative; }
.nav-lien svg { color: #8b97ab; flex: none; }
.nav-lien:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-lien.actif { background: rgba(20,184,166,.14); color: #fff; }
.nav-lien.actif svg { color: #2dd4bf; }
.nav-lien.actif::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #2dd4bf; }
.menu-pied { margin-top: 18px; padding-top: 12px; border-top: 1px solid #1d2840; }
.principal { min-width: 0; padding: 36px 56px 80px; max-width: 860px; width: 100%; }
.sommaire { position: sticky; top: calc(var(--haut) + 28px); align-self: start; padding: 32px 20px 0 0; font-size: 13.5px; max-height: calc(100vh - var(--haut) - 40px); overflow-y: auto; }
.sommaire-titre { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); font-weight: 650; margin: 0 0 8px; }
.sommaire ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ligne); }
.sommaire li a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--gris); text-decoration: none; line-height: 1.35; }
.sommaire li a:hover { color: var(--encre); }
.sommaire li a.actif { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.sommaire-haut { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--gris); text-decoration: none; font-size: 13px; }

/* Article */
.fil { font-size: 13px; color: var(--gris); display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.fil a { color: var(--gris); text-decoration: none; }
.fil a:hover { color: var(--encre); }
.article-tete { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--ligne); }
.article-icone { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-doux); color: var(--brand); flex: none; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.025em; margin: 2px 0 8px; font-weight: 700; }
.chapo { font-size: 17.5px; color: var(--encre-2); margin: 0 0 10px; line-height: 1.55; }
.meta { font-size: 13px; color: var(--gris); margin: 0; }
.meta > svg { vertical-align: -2px; margin-right: 2px; }
.meta .btn-ouvrir { margin-left: 2px; }
.btn-ouvrir { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }
.texte h2 { font-size: 23px; letter-spacing: -.015em; line-height: 1.25; margin: 44px 0 12px; position: relative; }
.texte h3 { font-size: 18px; margin: 28px 0 8px; position: relative; }
.texte h4 { font-size: 15.5px; margin: 22px 0 6px; }
.texte > h2:first-child { margin-top: 0; }
.texte p { margin: 0 0 14px; }
.texte ul { margin: 0 0 16px; padding-left: 22px; }
.texte li { margin: 4px 0; }
.texte li::marker { color: var(--pale); }
.ancre { margin-left: 8px; color: var(--pale); text-decoration: none; opacity: 0; font-weight: 400; transition: opacity .12s; }
h2:hover .ancre, h3:hover .ancre, .ancre:focus-visible { opacity: 1; }
.ui { display: inline-flex; align-items: center; gap: 2px; font-size: .9em; font-weight: 600; color: var(--encre); background: var(--fond-2); border: 1px solid var(--ligne); border-bottom-width: 2px; border-radius: 7px; padding: 0 7px; white-space: nowrap; line-height: 1.6; }
.ui-sep { color: var(--pale); margin: 0 3px; font-weight: 400; }

/* Étapes numérotées : un titre, puis l'explication */
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 6px 0 22px; }
.etape { counter-increment: etape; position: relative; padding: 0 0 18px 48px; }
.etape::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: var(--brand); background: var(--brand-doux); border: 1px solid var(--brand-ligne); }
.etape::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--ligne); }
.etape:last-child::after { display: none; }
.etape-titre { font-weight: 650; margin: 3px 0 2px !important; }
.etape-corps > p:last-child { margin-bottom: 0; }

/* Encadrés */
.encadre { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin: 4px 0 20px; background: var(--brand-doux); border: 1px solid var(--brand-ligne); }
.encadre > svg { flex: none; color: var(--brand); margin-top: 2px; }
.encadre-titre { font-weight: 700; margin: 0 0 4px !important; font-size: 14px; }
.encadre p { margin-bottom: 8px; }
.encadre div > :last-child { margin-bottom: 0; }
.encadre-info { background: var(--info-doux); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.encadre-info > svg, .encadre-info .encadre-titre { color: var(--info); }
.encadre-attention { background: var(--alerte-doux); border-color: color-mix(in srgb, var(--alerte) 25%, transparent); }
.encadre-attention > svg, .encadre-attention .encadre-titre { color: var(--alerte); }
.encadre-legal { background: var(--legal-doux); border-color: color-mix(in srgb, var(--legal) 25%, transparent); }
.encadre-legal > svg, .encadre-legal .encadre-titre { color: var(--legal); }

/* Questions dépliables */
.faqs { margin: 6px 0 22px; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; }
.faq + .faq { border-top: 1px solid var(--ligne); }
.faq summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--gris); border-bottom: 2px solid var(--gris); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--fond-2); }
.faq-corps { padding: 0 16px 6px; color: var(--encre-2); }
.faq:target { box-shadow: inset 3px 0 0 var(--brand); }

/* Cartes et tableaux */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 22px; }
.carte { border: 1px solid var(--ligne); border-radius: 14px; padding: 14px 16px; background: var(--fond-2); }
.carte-titre { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 6px !important; }
.carte-titre svg { color: var(--brand); flex: none; }
.carte-inclus .carte-titre svg { color: var(--ok); }
.carte-attention .carte-titre svg { color: var(--alerte); }
.carte ul { padding-left: 18px; margin-bottom: 0; }
.carte p:last-child { margin-bottom: 0; }
.tableau { overflow-x: auto; margin: 4px 0 22px; border: 1px solid var(--ligne); border-radius: 12px; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; background: var(--fond-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); padding: 9px 12px; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 9px 12px; border-bottom: 1px solid var(--ligne-2); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }

/* Avis, suite */
.avis { margin-top: 48px; padding: 18px 20px; border: 1px solid var(--ligne); border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.avis p { margin: 0; font-weight: 600; }
.avis-boutons { display: flex; gap: 8px; }
.avis-boutons button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ligne); background: var(--fond); color: var(--encre); border-radius: 9px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.avis-boutons button:hover { border-color: var(--brand-ligne); background: var(--brand-doux); }
.avis-merci, .avis-plus { font-weight: 500 !important; color: var(--gris); }
.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.suite-lien { border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.suite-lien span { font-size: 12.5px; color: var(--gris); display: inline-flex; align-items: center; gap: 4px; }
.suite-lien b { color: var(--encre); }
.suite-lien:hover { border-color: var(--brand-ligne); background: var(--fond-2); }
.suiv { text-align: right; align-items: flex-end; }

/* Accueil */
.accueil-hero { text-align: center; padding: 24px 0 34px; }
.accueil-hero h1 { font-size: 36px; }
.accueil-hero p { color: var(--encre-2); font-size: 17px; margin: 0 auto 22px; max-width: 560px; }
.accueil-recherche { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); margin: 0 auto; height: 52px; padding: 0 16px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--fond); box-shadow: var(--ombre); color: var(--gris); font: inherit; font-size: 15.5px; cursor: pointer; }
.accueil-recherche span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.accueil-demarrer h2, .accueil-faq h2, .rubrique h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin: 0 0 12px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 34px; }
.tuile { border: 1px solid var(--ligne); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, transform .12s; }
.tuile:hover { border-color: var(--brand-ligne); transform: translateY(-1px); }
.tuile span:not(.tuile-icone) { color: var(--gris); font-size: 13.5px; line-height: 1.45; }
.tuile-icone { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-doux); color: var(--brand); margin-bottom: 4px; }
.rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 20px; margin-bottom: 36px; }
.rubrique ul { list-style: none; margin: 0; padding: 0; }
.rubrique li a { display: flex; align-items: center; gap: 9px; padding: 6px 0; text-decoration: none; color: var(--encre-2); font-weight: 500; }
.rubrique li a svg { color: var(--brand); flex: none; }
.rubrique li a:hover { color: var(--brand); }
.accueil-faq ul { list-style: none; margin: 0 0 34px; padding: 0; border: 1px solid var(--ligne); border-radius: 14px; }
.accueil-faq li { padding: 11px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.accueil-faq li + li { border-top: 1px solid var(--ligne-2); }
.accueil-faq li a { font-weight: 600; text-decoration: none; }
.accueil-faq .muted { font-size: 13px; }
.contact { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--fond-2); border: 1px solid var(--ligne); }
.contact svg { color: var(--brand); flex: none; margin-top: 2px; }
.contact p { margin: 2px 0 0; color: var(--encre-2); }

/* Recherche */
.recherche { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.45); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 14px 14px; }
.recherche[hidden] { display: none; }
.recherche-boite { width: 100%; max-width: 640px; background: var(--fond); border-radius: 18px; box-shadow: var(--ombre-l); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.recherche-champ { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ligne); color: var(--gris); }
.recherche-champ input { flex: 1; border: 0; outline: none; background: none; font: inherit; font-size: 16.5px; color: var(--encre); min-width: 0; }
.recherche-champ input:focus-visible { box-shadow: none; }
.recherche-resultats { overflow-y: auto; padding: 8px; }
.res { display: flex; gap: 12px; padding: 10px; border-radius: 11px; text-decoration: none; color: var(--encre); }
.res.actif { background: var(--brand-doux); }
.res-icone { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fond-3); color: var(--gris); flex: none; }
.res-titre { font-weight: 600; font-size: 14.5px; }
.res-titre small { color: var(--gris); font-weight: 500; }
.res-extrait { font-size: 13px; color: var(--gris); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res mark { background: color-mix(in srgb, #f59e0b 30%, transparent); color: inherit; border-radius: 3px; }
.res-groupe { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--pale); padding: 8px 10px 4px; font-weight: 650; }
.res-vide { padding: 28px; text-align: center; color: var(--gris); }
.recherche-pied { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--ligne); font-size: 12px; color: var(--gris); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--encre); color: var(--fond); padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 550; opacity: 0; pointer-events: none; transition: all .2s; z-index: 200; }
.toast.visible { opacity: 1; transform: translateX(-50%); }
.voile { display: none; }

/* Écrans moyens et petits */
@media (max-width: 1180px) { .cadre { grid-template-columns: var(--menu-l) minmax(0, 1fr); } .sommaire { display: none; } }
@media (max-width: 880px) {
  .cadre { grid-template-columns: minmax(0, 1fr); }
  .menu { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; width: 284px; z-index: 90; transform: translateX(-100%); transition: transform .22s ease; }
  body.menu-ouvert .menu { transform: none; box-shadow: var(--ombre-l); }
  body.menu-ouvert .voile { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(15,23,42,.45); }
  .menu-btn { display: inline-grid; }
  .haut { padding: 0 10px; gap: 6px; }
  .marque-tag, .lien-app span { display: none; }
  .recherche-btn { width: auto; margin-left: auto; }
  .recherche-btn span, .recherche-btn kbd { display: none; }
  .principal { padding: 22px 16px 60px; }
  h1 { font-size: 26px; }
  .accueil-hero h1 { font-size: 28px; }
  .article-tete { gap: 12px; }
  .article-icone { width: 42px; height: 42px; border-radius: 12px; }
  .suite { grid-template-columns: 1fr; }
  .suiv { text-align: left; align-items: flex-start; }
  .etape { padding-left: 42px; }
}
@media print {
  .haut, .menu, .sommaire, .avis, .suite, .recherche, .voile, .ancre { display: none !important; }
  .cadre { display: block; }
  .principal { padding: 0; max-width: none; }
  body { font-size: 11pt; }
  .faq { break-inside: avoid; }
  details.faq > .faq-corps { display: block; }
}
