.lp{--ink:#16483c;--gold:#ad874d;background:#fff9ed;color:#352f25;border:1px solid #ac8249;border-radius:12px;overflow:hidden;font:16px/1.45 system-ui,sans-serif;box-shadow:0 8px 26px #59361918}.lp *{box-sizing:border-box}.lp-head,.lp footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.lp-head{background:#f3e6ca;border-bottom:1px solid #bd995a;padding:16px 22px}.lp-head small,.lp-board small,.lp figcaption{font:600 11px/1.4 system-ui;letter-spacing:.13em}.lp h2{font:500 clamp(22px,3vw,34px)/1.18 Georgia,serif;color:#20493c;margin:4px 0}.lp select,.lp button,.lp-train{color:var(--ink,#16483c);background:#fffbef;border:1px solid #b99056;border-radius:7px;padding:8px 12px;font:inherit;cursor:pointer}.lp-head label{font-size:13px}.lp-body{padding:18px;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);gap:20px;align-items:start}.lp figure{margin:0;border:1px solid #be9860;padding:5px;background:#fffcf4;border-radius:7px}.lp figure img{width:100%;aspect-ratio:1.12;object-fit:cover;border-radius:3px;display:block}.lp figcaption{padding:10px 4px;color:#805b32;letter-spacing:.055em}.lp [lang=ar]{font-family:'Noto Naskh Arabic','Amiri',serif;line-height:1.65}.lp-tags{display:flex;align-items:center;justify-content:space-between;color:var(--ink);margin-bottom:6px}.lp-tags span{font-weight:650;font-size:13px}.lp-tags bdi{font-size:23px}.lp-board{border:18px solid transparent;border-image:url(cadre.webp) 145 fill /18px/0 stretch;color:#fff6dd;text-align:center;padding:3px 6px;min-height:106px}.lp-board small{color:#ffebc5}.lp-from,.lp-to{font-size:27px;line-height:1.55}.lp-to{font-weight:600}.lp-to em{color:#ffda80;font-style:normal}.lp-board:has(.lp-to:not([hidden])) .lp-from{font-size:19px}.lp-q{margin:12px 0 8px;font-weight:600}.lp-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.lp-options button{min-height:45px;padding:3px 7px}.lp-options bdi{font-size:25px}.lp button:disabled{cursor:default}.lp .lp-right,.lp footer [data-next]{background:#174c3c;color:white}.lp .lp-wrong{background:#fbebde;border-color:#a55030}.lp-right:after{content:' ✓'}.lp-wrong:after{content:' ×'}.lp-msg{min-height:22px;font-size:14px;color:#4d3925;margin-top:5px}.lp-replay{font-size:13px!important}.lp footer{border-top:1px solid #dac6a1;padding:10px 18px}.lp footer small{font-size:12px}.lp footer button:disabled{opacity:.48}.lp button:focus-visible,.lp select:focus-visible{outline:3px solid #568479;outline-offset:2px}.lp-pending{box-shadow:inset 0 0 0 2px #906e42}.lp-train{display:block;margin:8px auto}.lp [hidden]{display:none!important}@media(max-width:700px){.lp-body{grid-template-columns:1fr;gap:8px;padding:10px}.lp figure img{aspect-ratio:2.65;max-height:160px}.lp figcaption{padding:4px}.lp-head{padding:10px;flex-wrap:wrap}.lp-head label{font-size:12px}.lp select{max-width:145px;padding:5px}.lp-board{min-height:85px}.lp footer{padding:8px}.lp footer button{font-size:13px}.lp-options button{min-height:44px}}
.lp-restart:not(:empty){padding:8px 16px;display:flex;gap:12px}.lp-restart button{font-size:12px;border:0;text-decoration:underline;background:transparent}

.lp .lp-pronom{display:inline-block;background:#f2e5c8;color:#123f32;border-bottom:2px solid #ab8849;border-radius:4px;padding:0 .33em}.lp .lp-pronom bdi{font-size:1.55em;line-height:1.55}

.lp-person{display:grid;place-items:center;align-self:stretch;min-height:170px;background:#fcf4e3;border:1px solid #bd995a;border-radius:8px;color:#174c3c}.lp-person bdi[lang=ar]{font-size:clamp(68px,8vw,112px);line-height:1.6}
@media(max-width:700px){.lp-person{min-height:88px}.lp-person bdi[lang=ar]{font-size:54px}}
.lp-list-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.lp-list-title h2{font:normal clamp(22px,4vw,32px) Georgia}article:has(>.lp)+article:has(>.lp){margin-top:16px}.lp-body{grid-template-columns:minmax(0,.38fr) minmax(0,1fr)}@media(max-width:700px){.lp-body{grid-template-columns:1fr}.lp-person{min-height:70px}}

/* Attamayouz : résultat de la carte active */
.lp .lp-options button:is(.lp-right,.lp-wrong){display:flex;align-items:center;justify-content:center;gap:.55em;opacity:1;border-width:2px}
.lp .lp-options button.lp-right{background:#09543d;color:#fff;border-color:#073e2e;box-shadow:inset 0 0 0 1px #e7ca83}
.lp .lp-options button.lp-wrong{background:#fbeae4;color:#832e20;border-color:#ad5139}
.lp .lp-options button.lp-right::after,.lp .lp-options button.lp-wrong::after{display:inline-grid;place-items:center;flex:none;width:1.18em;height:1.18em;border-radius:50%;font:800 clamp(25px,3vw,34px)/1 system-ui}
.lp .lp-options button.lp-right::after{content:'✓';background:#fff9e7;color:#0a543c}
.lp .lp-options button.lp-wrong::after{content:'×';background:#923c2b;color:#fff}
.lp .lp-msg[data-result]{margin:8px 0 0;padding:7px 14px;display:flex;align-items:center;gap:12px;border-radius:7px;font:700 clamp(18px,2.4vw,24px)/1.3 system-ui;min-height:52px}
.lp .lp-msg[data-result]::before{font:800 clamp(36px,5vw,48px)/1 system-ui}
.lp .lp-msg[data-result=ok]{background:#09543d;color:#fff9e7}
.lp .lp-msg[data-result=ok]::before{content:'✓'}
.lp .lp-msg[data-result=err]{background:#fbebe4;color:#832e20;border:1px solid #c58d7b}
.lp .lp-msg[data-result=err]::before{content:'×'}
@media(prefers-reduced-motion:no-preference){.lp .lp-msg[data-result=ok]::before{animation:atm-sign-in .22s ease-out}@keyframes atm-sign-in{from{transform:scale(.72)}to{transform:scale(1)}}}

.lp .lp-options button bdi[lang=ar],.lp .lp-to[lang=ar]{font-family:'Noto Naskh Arabic','Amiri','Geeza Pro','Traditional Arabic',serif;font-size:clamp(30px,3vw,40px);line-height:1.9;overflow:visible}
.lp .lp-ending{display:block;font:600 16px/1.8 system-ui;color:#fff6df;letter-spacing:normal}
.lp .lp-ending bdi[lang=ar]{display:inline-block;color:#ffda80;font:normal 32px/1.8 'Noto Naskh Arabic','Amiri',serif}
