/* SERENITE.TECH — kit d'illustration des leçons de la formation Odoo (pages publiques et espace élève).
   Exemple d'utilisation de chaque bloc : tools/formation/kit-exemple.html. Préfixe : lx-. */

.lesson { --ink: #1D1D1F; --ink2: #424245; --line: #E3E3E8; --paper: #fff; --bg2: #F5F5F7; --odoo: #714B67; --odoo-h: #5E3D55;
  max-width: 760px; margin: 0 auto; color: var(--ink); font-size: 19px; line-height: 1.62; }
.lesson > * + * { margin-top: 18px; }
.lesson h2 { font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.03em; margin-top: 64px; }
.lesson h2:first-child { margin-top: 0; }
.lesson h3 { font-weight: 700; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; margin-top: 40px; }
.lesson p, .lesson li { color: #2b2b2e; }
.lesson ul, .lesson ol:not([class]) { padding-left: 1.3em; }
.lesson li + li { margin-top: 8px; }
.lesson a { color: var(--or-t, #C2551A); }
.lesson strong { color: var(--ink); }
.lesson code, .lx-kbd { font-family: var(--mono); font-size: .84em; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.lx-kbd { box-shadow: 0 2px 0 var(--line); }

/* Objectifs, à retenir */
.lx-goals, .lx-recap { background: var(--paper); border-radius: 20px; padding: 26px 28px; box-shadow: 0 1px 0 var(--line), 0 12px 30px rgb(0 0 0 / .04); }
.lx-goals > b, .lx-recap > b { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--or-t, #C2551A); margin-bottom: 12px; }
.lx-goals ul, .lx-recap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lx-goals li, .lx-recap li { position: relative; padding-left: 30px; margin: 0; }
.lx-goals li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: rgb(240 126 51 / .14); box-shadow: inset 0 0 0 2px var(--or, #F07E33); }
.lx-recap { background: var(--g1, #1D1D1F); color: var(--light, #F5F5F7); }
.lx-recap li { color: var(--soft, #D2D2D7); }
.lx-recap > b { color: var(--or, #F07E33); }
.lx-recap li::before { content: '✓'; position: absolute; left: 2px; color: var(--or, #F07E33); font-weight: 700; }

/* Chemin de menu : Ventes › Commandes › Devis */
.lx-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-family: var(--mono); font-size: .78em; background: var(--g1, #1D1D1F); color: var(--light, #F5F5F7); border-radius: 980px; padding: 4px 12px; vertical-align: .08em; line-height: 1.5; }
.lx-path i { font-style: normal; color: var(--or, #F07E33); }

/* Faux boutons Odoo */
.lx-btn { display: inline-block; font-family: var(--sans); font-size: .8em; font-weight: 600; line-height: 1.4; color: #fff; background: var(--odoo); border-radius: 5px; padding: 3px 10px; vertical-align: .08em; white-space: nowrap; }
.lx-btn.sec { color: var(--ink); background: #E9ECEF; }
.lx-btn.link { color: var(--odoo); background: none; padding: 0; text-decoration: underline; text-underline-offset: .2em; }

/* Étapes numérotées */
.lx-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.lx-steps > li { counter-increment: s; position: relative; background: var(--paper); border-radius: 18px; padding: 20px 22px 20px 74px; margin: 0; box-shadow: 0 1px 0 var(--line); }
.lx-steps > li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--g1, #1D1D1F); color: var(--or, #F07E33); font-family: var(--mono); font-weight: 500; font-size: 16px; }
.lx-steps > li > b:first-child { display: block; font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }
.lx-steps > li p { margin: 6px 0 0; font-size: 17px; color: var(--ink2); }
.lx-steps > li .lx-screen { margin-top: 16px; }

/* Encadrés */
.lx-tip, .lx-warn, .lx-info { position: relative; border-radius: 18px; padding: 20px 22px 20px 64px; font-size: 17px; line-height: 1.55; }
.lx-tip::before, .lx-warn::before, .lx-info::before { position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.lx-tip { background: #FFF4EC; box-shadow: inset 0 0 0 1px #F9D9C2; }
.lx-tip::before { content: '★'; background: var(--or, #F07E33); color: #fff; }
.lx-tip > b:first-child { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--or-t, #C2551A); margin-bottom: 6px; }
.lx-warn { background: #FFF1F0; box-shadow: inset 0 0 0 1px #F6CFCB; }
.lx-warn::before { content: '!'; background: #D93025; color: #fff; }
.lx-info { background: #EEF4FF; box-shadow: inset 0 0 0 1px #CFDDF6; }
.lx-info::before { content: 'i'; background: #2F6FDE; color: #fff; font-family: var(--mono); }
.lx-tip p, .lx-warn p, .lx-info p { margin: 0; }
.lx-tip p + p, .lx-warn p + p, .lx-info p + p { margin-top: 8px; }

/* Schéma de flux : Devis → Commande → Livraison → Facture */
.lx-flow { list-style: none; padding: 22px; margin: 28px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 0; background: var(--g1, #1D1D1F); border-radius: 22px; }
.lx-flow > li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 92px; margin: 0; color: var(--light, #F5F5F7); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.lx-flow > li img { width: 44px; height: 44px; border-radius: 22%; box-shadow: 0 6px 16px rgb(0 0 0 / .4); }
.lx-flow > li small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--mut, #86868B); }
.lx-flow > li:not(:first-child) { position: relative; padding-left: 34px; }
.lx-flow > li:not(:first-child)::before { content: '›'; display: block; position: absolute; left: 8px; top: 10px; font-size: 26px; color: var(--or, #F07E33); font-weight: 400; }

/* Fausse fenêtre Odoo */
.lx-screen { margin: 28px 0; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgb(0 0 0 / .08); font-size: 14px; line-height: 1.45; }
.lx-bar { display: flex; align-items: center; gap: 14px; background: var(--odoo); color: #fff; padding: 8px 14px; font-size: 13px; }
.lx-bar .lx-app { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.lx-bar .lx-app img { width: 20px; height: 20px; border-radius: 22%; background: #fff; }
.lx-bar .lx-menu { display: flex; gap: 14px; opacity: .85; flex-wrap: wrap; }
.lx-bar .lx-menu .on { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lx-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lx-crumb { font-size: 13px; color: var(--ink2); }
.lx-crumb b { color: var(--ink); }
.lx-ctrl .lx-search { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: #9a9aa0; font-size: 13px; }
.lx-body { padding: 16px 18px; }
.lx-screen figcaption, figure.lx-screen > figcaption { padding: 10px 16px; background: var(--bg2); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
/* Barre d'étapes d'un document (statusbar) */
.lx-status { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; padding: 0; margin: 0 0 14px; font-size: 12px; }
.lx-status li { margin: 0; padding: 4px 12px 4px 16px; background: #F1F1F4; color: var(--ink2); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.lx-status li:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.lx-status li.on { background: var(--odoo); color: #fff; font-weight: 700; }
/* Formulaire */
.lx-form h4 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; }
.lx-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 6px 28px; }
.lx-field { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid #F0F0F3; }
.lx-field > span:first-child { font-weight: 600; color: var(--ink); font-size: 13px; }
.lx-field > span:last-child { color: var(--ink2); }
.lx-tabs { display: flex; gap: 2px; margin: 14px 0 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lx-tabs span { padding: 6px 12px; color: var(--ink2); }
.lx-tabs span.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--odoo); }
/* Tableau (vue liste ou lignes de commande) */
.lx-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.lx-table th { text-align: left; font-weight: 700; color: var(--ink); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.lx-table td { padding: 6px 8px; border-bottom: 1px solid #F0F0F3; color: var(--ink2); }
.lx-table td.num, .lx-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lx-table tfoot td { font-weight: 700; color: var(--ink); border: 0; }
.lx-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 980px; padding: 1px 8px; background: #E9ECEF; color: var(--ink2); }
.lx-badge.ok { background: #DFF3E4; color: #15803D; }
.lx-badge.wait { background: #FFF1D6; color: #9A6200; }
.lx-badge.ko { background: #FDE2E0; color: #B42318; }
/* Kanban */
.lx-kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lx-col { background: #F6F6F8; border-radius: 10px; padding: 8px; }
.lx-col > b { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.lx-col > b em { font-style: normal; color: var(--ink2); font-weight: 400; }
.lx-card { background: #fff; border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .08); font-size: 12px; }
.lx-card + .lx-card { margin-top: 6px; }
.lx-card b { display: block; font-size: 13px; color: var(--ink); }
/* Mise en évidence de l'endroit où cliquer + bulle d'annotation */
.lx-hl { box-shadow: 0 0 0 3px var(--or, #F07E33) !important; border-radius: 6px; position: relative; }
.lx-note { display: inline-block; background: var(--or, #F07E33); color: #fff; font-size: 12px; font-weight: 700; border-radius: 980px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.lx-note[data-n]::before { content: attr(data-n); display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: #fff; color: var(--or-t, #C2551A); font-size: 10px; }

/* Exercice et corrigé */
.lx-exercise { position: relative; background: var(--g1, #1D1D1F); color: var(--light, #F5F5F7); border-radius: 24px; padding: 30px 30px 28px; margin-top: 56px; }
.lx-exercise > b:first-child { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--bg, #0B0B0C); background: var(--or, #F07E33); border-radius: 980px; padding: 3px 12px; margin-bottom: 14px; }
.lx-exercise h3 { color: #fff; margin-top: 0; }
.lx-exercise p, .lx-exercise li { color: var(--soft, #D2D2D7); font-size: 17px; }
.lx-exercise .lx-data { background: rgb(255 255 255 / .06); border-radius: 14px; padding: 14px 18px; margin-top: 14px; font-size: 15px; }
.lx-exercise .lx-data table { width: 100%; border-collapse: collapse; }
.lx-exercise .lx-data td, .lx-exercise .lx-data th { text-align: left; padding: 4px 8px; color: var(--soft, #D2D2D7); border-bottom: 1px solid rgb(255 255 255 / .08); }
.lx-exercise .lx-data th { color: #fff; }
.lx-exercise .lx-steps > li { background: rgb(255 255 255 / .06); box-shadow: none; }
.lx-exercise .lx-steps > li::before { background: var(--or, #F07E33); color: var(--bg, #0B0B0C); }
.lx-exercise .lx-steps > li p { color: var(--soft, #D2D2D7); }
.lx-solution { margin-top: 18px; background: var(--paper); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.lx-solution > summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lx-solution > summary::-webkit-details-marker { display: none; }
.lx-solution > summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--or-t, #C2551A); transition: transform .3s; }
.lx-solution[open] > summary::after { transform: rotate(45deg); }
.lx-solution > :not(summary) { margin: 0 22px; }
.lx-solution > :last-child { margin-bottom: 22px; }
.lx-solution > :not(summary) + :not(summary) { margin-top: 14px; }
.lx-locked { display: flex; align-items: center; gap: 16px; background: var(--bg2); border: 1px dashed #C9C9D1; border-radius: 20px; padding: 22px 24px; margin-top: 18px; font-size: 17px; color: var(--ink2); }
.lx-locked::before { content: '🔒'; font-size: 24px; }

/* Tableaux de comparaison dans le texte */
.lx-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.lx-tbl table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: 16px; overflow: hidden; font-size: 15px; line-height: 1.45; box-shadow: 0 0 0 1px var(--line); }
.lx-tbl th { text-align: left; background: var(--g1, #1D1D1F); color: var(--light, #F5F5F7); padding: 12px 14px; font-size: 14px; }
.lx-tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: #2b2b2e; }

@media (max-width: 640px) {
  .lesson { font-size: 18px; }
  .lx-steps > li { padding: 18px 18px 18px 62px; }
  .lx-steps > li::before { left: 14px; width: 32px; height: 32px; font-size: 14px; }
  .lx-tip, .lx-warn, .lx-info { padding: 18px 18px 18px 56px; }
  .lx-tip::before, .lx-warn::before, .lx-info::before { left: 14px; }
  .lx-exercise { padding: 24px 20px; border-radius: 20px; }
  .lx-field { grid-template-columns: 100px 1fr; }
  .lx-flow > li { min-width: 76px; font-size: 13px; }
  .lx-bar .lx-menu { display: none; }
}
@media print {
  .lx-solution > summary::after { display: none; }
}
