/*! © 2026 Pierre-Alexis de Munter, demunter.fr. Tous droits réservés : reproduction interdite sans accord écrit. */
.demo{background:var(--surface);border-radius:var(--rayon);padding:clamp(22px,3.6vw,44px);margin:0}.demo > p{color:var(--muted);max-width:52em}.demo > p strong{color:var(--text)}.demo-titre{margin-bottom:12px}.demo-titre h2{margin:0;font-size:clamp(1.7rem,3.4vw,2.5rem);letter-spacing:-.04em}.decodeur .recherche{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.decodeur .champ{flex:0 1 360px}.decodeur button,.puces button,.parcours button{font:inherit;cursor:pointer;border-radius:10px;min-height:44px}.decodeur .recherche button{background:var(--accent);color:var(--bg);border:1px solid var(--accent);padding:8px 18px;font-weight:700}.puces{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px;padding:0;list-style:none}.puces button{background:var(--bg);color:var(--text);border:1px solid var(--line);padding:4px 11px;min-height:36px;font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:.84rem;transition:border-color .2s,background-color .2s,transform .2s}.puces button:hover{transform:translateY(-1px);border-color:var(--accent-2)}.puces button[aria-pressed="true"]{border-color:var(--accent-2);background:var(--accent-soft);font-weight:800}.puces .rejet::before,.puces .avert::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;vertical-align:middle}.puces .rejet::before{background:var(--warn)}.puces .avert::before{background:var(--accent-2)}.fiche-grille{display:grid;gap:20px;grid-template-columns:1fr}@media (min-width:940px){.fiche-grille{grid-template-columns:1fr 1fr}}.fiche h3{font-family:var(--mono);font-size:1.25rem;margin-bottom:8px}.gravite{display:inline-block;font-size:.8rem;font-weight:800;border-radius:99px;padding:2px 11px;margin-bottom:8px}.gravite.rejet{background:var(--warn-soft);color:var(--warn)}.gravite.avert{background:var(--accent-soft);color:var(--accent)}.fiche dl{margin:0}.fiche dt{font-weight:650;font-size:.92rem;margin-top:14px;color:var(--muted)}.fiche dd{margin:3px 0 0}.piege{margin-top:14px;border-left:4px solid var(--warn);background:var(--warn-soft);padding:10px 14px;border-radius:0 10px 10px 0;font-size:.95rem}.xml-cadre{min-width:0}.xml-titre{font-size:.82rem;font-weight:700;color:var(--muted);margin:0 0 6px}pre{background:var(--code-bg);color:#d9e3dc;border-radius:16px;border:0;padding:16px 18px;overflow-x:auto;font-size:.78rem;line-height:1.6;margin:0;max-width:100%;font-family:ui-monospace,"Cascadia Mono",Consolas,"Liberation Mono",monospace}pre code{font-family:inherit}pre:focus-visible{border-radius:16px}.t-balise{color:#a9b8ff}.t-attribut{color:#f9d38a}code{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:.9em}pre.xml{margin:0}pre.xml .l{display:block;padding:0 8px;margin:0 -8px;border-left:3px solid transparent}pre.xml .l.fautive{background:rgba(240,136,62,.16);border-left-color:#f0883e}pre.xml .l.bonne{background:rgba(95,208,150,.13);border-left-color:#5fd096}@media (prefers-reduced-motion:no-preference){pre.xml.neuf .l{animation:ligne .35s ease both;animation-delay:calc(var(--i) * 45ms)}}@keyframes ligne{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}.liste-regles{list-style:none;margin:0;padding:0;display:grid;gap:12px}.liste-regles li{background:var(--surface);border:1px solid var(--ligne);border-radius:var(--rayon-petit);padding:18px 22px}.liste-regles a{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;text-decoration:none;color:var(--encre);font-weight:700}.liste-regles .code{font-family:var(--mono);background:var(--accent-pale);color:var(--accent-texte);padding:2px 8px;border-radius:6px}.liste-regles .gravite{margin:0}.liste-regles a:hover .titre{text-decoration:underline;text-underline-offset:4px}.liste-regles p{margin:8px 0 0;color:var(--texte-2)}.sous-xml{margin-top:8px}.voisins .suivante{margin-left:auto}.ouverture-page .gravite{margin-bottom:14px}.fiche-grille .fiche h2,.xml-cadre h2{font-size:1rem;margin:18px 0 6px}.fiche-grille .fiche h2:first-child{margin-top:0}
