/* JeuPays.fr – jeux maison : cartes de France (départements, régions, fleuves, villes), régions du monde, cartes à imprimer. 21.09.2026 */
.lqg{--b:#3f5bd9;--bd:#2f47b8;--ink:#1f2430;--mut:#667085;--line:#e4e7ef;--soft:#f5f7fc;--ok:#1f9d63;--okbg:#e4f6ed;--bad:#dc3d43;--badbg:#fdecec;width:100%;max-width:1000px;margin:0 auto;padding:12px 8px 6px;box-sizing:border-box;color:var(--ink);font-size:16px;line-height:1.45;text-align:left;min-height:520px}
/* Réserver la place pour que le texte sous le jeu ne saute pas au chargement */
.lqg[data-lq-game="map"]{min-height:820px}
.lqg[data-lq-game="place"]{min-height:860px}
.lqg *,.lqg *:before,.lqg *:after{box-sizing:border-box}
.lqg [hidden]{display:none!important}
.lqg-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 1px 2px rgba(16,24,40,.05),0 10px 28px rgba(16,24,40,.07);overflow:hidden}
.lqg-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:var(--soft);border-bottom:1px solid var(--line)}
.lqg-name{font-weight:800;font-size:16px;line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lqg-stats{display:flex;gap:6px;flex:0 0 auto}
.lqg-pill{display:inline-block;min-width:44px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--mut);font-size:14px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.lqg-pill--ok{color:var(--ok)}
.lqg-progress{height:4px;background:#eceff6}
.lqg-progress i{display:block;width:0;height:100%;background:var(--b);transition:width .3s ease}
.lqg-body{padding:14px 14px 16px}
.lqg-prompt{margin:0 0 4px;font-size:21px;line-height:1.3;font-weight:750;text-align:center;overflow-wrap:anywhere}
.lqg-prompt b{color:var(--b);font-weight:800}
.lqg-sub{min-height:22px;margin:0 0 10px;color:var(--mut);font-size:14px;text-align:center}
.lqg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:0;padding:10px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-weight:650;line-height:1.25;text-align:center;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .1s}
.lqg-btn:active{transform:translateY(1px)}
.lqg-btn:focus-visible{outline:3px solid rgba(63,91,217,.35);outline-offset:2px}
.lqg-btn--primary{background:var(--b);border-color:var(--b);color:#fff}
.lqg-btn--ghost{background:transparent;border-color:transparent;color:var(--b)}
.lqg-btn[disabled]{cursor:default;transform:none}
/* survol : seulement avec une souris (sur écran tactile, il resterait « collé » au bouton touché) */
@media (hover:hover){
.lqg-btn:hover{border-color:#b8c3f2;box-shadow:0 4px 14px rgba(16,24,40,.08)}
.lqg-btn--primary:hover{background:var(--bd);border-color:var(--bd)}
.lqg-btn--ghost:hover{background:#eef1ff;border-color:#eef1ff;box-shadow:none}
.lqg-btn[disabled]:hover{box-shadow:none}
}
.lqg-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:6px 0 2px}
.lqg-mode{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:74px;padding:12px 16px;text-align:left}
.lqg-mode b{font-size:17px;font-weight:750}
.lqg-mode small{color:var(--mut);font-size:13.5px;font-weight:500;line-height:1.3}
.lqg-mode em{color:var(--ok);font-size:12.5px;font-style:normal;font-weight:650}
.lqg-mode.is-main{border-color:#b8c3f2;background:#f3f5ff}
.lqg-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.lqg-opt{min-height:56px;padding:8px 12px;font-size:16.5px}
.lqg-opt.is-ok{background:var(--okbg);border-color:var(--ok);color:#0d6b40}
.lqg-opt.is-bad{background:var(--badbg);border-color:var(--bad);color:#a3262a}
.lqg-kbd{display:inline-block;min-width:20px;padding:0 5px;border:1px solid var(--line);border-radius:6px;color:var(--mut);font-size:12px;font-weight:600;line-height:18px}
.lqg-feedback{min-height:24px;margin:12px 0 0;font-size:15.5px;text-align:center}
.lqg-feedback.is-ok{color:var(--ok)}
.lqg-feedback.is-bad{color:var(--bad)}
.lqg-next{display:flex;justify-content:center;margin-top:10px;min-height:46px}
.lqg-result{padding:6px 0 2px;text-align:center}
.lqg-result-title{margin:0;font-size:22px;font-weight:800}
.lqg-score{margin:4px 0 2px;color:var(--b);font-size:52px;font-weight:850;line-height:1.1;font-variant-numeric:tabular-nums}
.lqg-line{margin:0 0 4px;color:var(--ink);font-size:16px}
.lqg-best{margin:0;color:var(--mut);font-size:14px}
.lqg-best.is-new{color:var(--ok);font-weight:700}
.lqg-mistakes{max-width:680px;margin:12px auto 0;padding:10px 14px;border-radius:12px;background:var(--soft);color:var(--mut);font-size:14.5px;text-align:left}
.lqg-mistakes b{color:var(--ink)}
.lqg-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px}
.lqg-note{margin:10px 0 0;color:var(--mut);font-size:13px;text-align:center}
/* Carte */
.lqg-map{position:relative;margin:0 auto}
.lqg-svg{display:block;width:100%;height:auto;max-height:min(62vh,640px);margin:0 auto;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.lqg-region{fill:#dde4f5;stroke:#fff;stroke-width:1.3px;fill-rule:evenodd;transition:fill .2s ease}
.lqg-lake{fill:#bcd9f4;stroke:#a3c7ea;stroke-width:.6px;pointer-events:none}
.lqg-bg{fill:#e8eaf0;stroke:#fff;stroke-width:.8px;pointer-events:none}
.lqg-frame{fill:#fff;stroke:#b4bccd;stroke-width:1.2px;pointer-events:none}
.lqg-line{fill:none;stroke:#56627c;stroke-width:1.5px;stroke-linejoin:round;pointer-events:none}
.lqg-prompt--flag{display:flex;flex-direction:column;align-items:center;gap:8px}
.lqg-flag{display:block;width:120px;height:90px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 2px 8px rgba(16,24,40,.12);object-fit:cover}
.lqg-flag--mini{display:inline-block;width:36px;height:27px;margin:0 4px 0 0;border-radius:3px;box-shadow:none;vertical-align:-8px}
.lqg-hit{fill:transparent;stroke:transparent;stroke-width:20px;pointer-events:none}
.lqg-hit.is-active{pointer-events:all}
.lqg-marker{fill:none;stroke:#1f2430;stroke-width:2.5px;stroke-dasharray:5 4;pointer-events:none}
.lqg.is-click .lqg-region,.lqg.is-click .lqg-hit{cursor:pointer}
.lqg.is-click .lqg-region.is-hover{fill:#b5c3f2}
.lqg-region.is-1{fill:#43b97f}
.lqg-region.is-2{fill:#f3c64b}
.lqg-region.is-3{fill:#f0913f}
.lqg-region.is-miss{fill:#e0484e}
.lqg-region.is-wrong{fill:#f5a3a6}
.lqg-region.is-target{fill:var(--b)}
.lqg-region.is-picked{fill:#8fa2ec}
.lqg-region.is-reveal{animation:lqgBlink .45s ease-in-out 4}
@keyframes lqgBlink{50%{fill:#ffd23f}}
.lqg-toast{position:absolute;left:50%;top:8px;z-index:2;max-width:94%;padding:6px 14px;border-radius:999px;background:rgba(31,36,48,.9);color:#fff;font-size:14.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;opacity:0;transform:translate(-50%,-4px);transition:opacity .18s,transform .18s}
.lqg-toast.is-on{opacity:1;transform:translate(-50%,0)}
.lqg-toast.is-ok{background:rgba(22,130,80,.94)}
.lqg-toast.is-bad{background:rgba(190,45,50,.94)}
.lqg-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin:10px 0 0;color:var(--mut);font-size:13px}
.lqg-legend span{white-space:nowrap}
.lqg-legend i{display:inline-block;width:11px;height:11px;margin-right:5px;border-radius:3px;vertical-align:-1px}
.lqg-info{min-height:22px;margin:8px 0 0;font-size:15.5px;text-align:center}
/* Cours d'eau, mer, étiquettes */
.lqg-sea{fill:#e3eef9;pointer-events:none}
.lqg-land{fill:#dde4f5;stroke:#9aa6c0;stroke-width:1px;pointer-events:none}
.lqg-line--thin{stroke:#fff;stroke-width:.7px;opacity:.75}
.lqg-river{fill:none;stroke:#3a7bd5;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s ease}
.lqg-riverhit{fill:none;stroke:transparent;stroke-width:16px;stroke-linecap:round;stroke-linejoin:round;pointer-events:stroke}
.lqg.is-click .lqg-riverhit{cursor:pointer}
.lqg.is-click .lqg-river.is-hover{stroke:#1d4ea8;stroke-width:3.4px}
.lqg-river.is-1{stroke:#1f9d63;stroke-width:3.6px}
.lqg-river.is-2{stroke:#d9a514;stroke-width:3.6px}
.lqg-river.is-3{stroke:#e0772a;stroke-width:3.6px}
.lqg-river.is-miss{stroke:#e0484e;stroke-width:3.6px}
.lqg-river.is-wrong{stroke:#f08a8e;stroke-width:3.6px}
.lqg-river.is-target{stroke:#e0484e;stroke-width:4.6px}
.lqg-river.is-picked{stroke:#e0484e;stroke-width:4.2px}
.lqg-river.is-reveal{animation:lqgBlinkLine .45s ease-in-out 4}
@keyframes lqgBlinkLine{50%{stroke:#ffd23f}}
.lqg-label{fill:#8a93a6;font-size:13px;font-weight:600;font-style:italic;pointer-events:none;text-anchor:middle}
.lqg-label--sea{fill:#7fa3cc;font-size:15px;letter-spacing:.04em}
.lqg-num{display:inline-block;min-width:30px;padding:0 6px;border-radius:6px;background:#eef1ff;color:#3f5bd9;font-weight:800;text-align:center}
/* Jeu «placer les villes» */
.lqg-dot{fill:#1f2430;stroke:#fff;stroke-width:1.5px}
.lqg-pin{fill:#e0484e;stroke:#fff;stroke-width:2px}
.lqg-truth{fill:#1f9d63;stroke:#fff;stroke-width:2px}
.lqg-dist{stroke:#1f2430;stroke-width:1.6px;stroke-dasharray:5 4;fill:none}
.lqg-city{fill:#1f2430;font-size:22px;font-weight:750;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;pointer-events:none}
.lqg-past{fill:#8a93a6;stroke:#fff;stroke-width:1px}
.lqg.is-place .lqg-svg{cursor:crosshair}
.lqg-levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:6px 0 2px}
.lqg-round{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 16px;max-width:680px;margin:12px auto 0;padding:10px 14px;border-radius:12px;background:var(--soft);font-size:14.5px;text-align:left}
.lqg-round span{display:flex;justify-content:space-between;gap:8px}
.lqg-round em{color:var(--mut);font-style:normal;font-variant-numeric:tabular-nums}
/* Cartes à imprimer : tuiles de téléchargement */
.lqd{width:100%;max-width:1000px;margin:0 auto;padding:14px 8px 6px;box-sizing:border-box;color:#1f2430;text-align:left}
.lqd *{box-sizing:border-box}
.lqd-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:2px 0 12px}
.lqd-head b{font-size:21px;font-weight:800}
.lqd-head span{color:#667085;font-size:15px}
.lqd-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.lqd-item{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e4e7ef;border-radius:16px;color:#1f2430;text-decoration:none;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.lqd-item:hover,.lqd-item:focus-visible{transform:translateY(-3px);box-shadow:0 14px 30px rgba(16,24,40,.12);border-color:#b8c3f2;outline:none}
.lqd-prev{display:flex;align-items:center;justify-content:center;height:236px;padding:14px;background:#eef1f7}
.lqd-prev img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;background:#fff;box-shadow:0 3px 10px rgba(16,24,40,.18)}
.lqd-t{display:block;padding:12px 14px 3px;font-size:17px;font-weight:750;line-height:1.25}
.lqd-d{display:block;flex:1;padding:0 14px;color:#667085;font-size:14px;line-height:1.4}
.lqd-btn{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;min-height:44px;margin:12px 14px 14px;padding:6px 10px;border-radius:10px;background:#3f5bd9;color:#fff;font-size:15px;font-weight:700;text-align:center}
.lqd-item:hover .lqd-btn{background:#2f47b8}
.lqd-btn small{font-size:12.5px;font-weight:500;opacity:.9}
.lqd-note{margin:14px 2px 0;color:#667085;font-size:15px}
.lqd-note a{color:#3f5bd9;font-weight:650}
.lqd-grid+.lqd-head{margin-top:30px;padding-top:18px;border-top:1px solid #e4e7ef}
@media (max-width:860px){.lqd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lqd-prev{height:210px;padding:10px}}
@media (max-width:420px){.lqd-prev{height:170px}.lqd-t{font-size:15.5px;padding:10px 10px 2px}.lqd-d{padding:0 10px;font-size:13px}.lqd-btn{margin:10px;font-size:14px}}
@media (max-width:640px){
.lqg{padding:8px 0 4px}
.lqg[data-lq-game="map"]{min-height:660px}
.lqg[data-lq-game="place"]{min-height:700px}
.lqg-flag{width:96px;height:72px}
.lqg-card{border-radius:14px}
.lqg-body{padding:12px 10px 14px}
.lqg-prompt{font-size:19px}
.lqg-options{gap:8px}
.lqg-modes{grid-template-columns:1fr 1fr;gap:8px}
.lqg-mode{min-height:68px;padding:10px 12px}
.lqg-mode b{font-size:15.5px}
.lqg-mode small{font-size:12.5px}
.lqg-opt{min-height:52px;padding:8px;font-size:15.5px}
.lqg-svg{max-height:58vh}
.lqg-score{font-size:44px}
.lqg-kbd{display:none}
}
/* Carte du monde avec zoom (monde-quiz.js : pays du monde, pays d'Europe) */
.lqg[data-lq-game="map"][data-set="monde"]{min-height:840px;--land:#f7f5ef;--edge:#9aa5bb;--edge-w:.6px;--bgland:#e3e1da;--bgedge:#b3b9c6;--sea:#cfe2f5}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-modes{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region{fill:var(--land);stroke:var(--edge);stroke-width:var(--edge-w)}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-bg{fill:var(--bgland);stroke:var(--bgedge)}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot{fill:var(--land);stroke:#56627c;stroke-width:1px;transition:fill .2s ease}
.lqg[data-lq-game="map"][data-set="monde"].is-click .lqg-dot{cursor:pointer}
.lqg[data-lq-game="map"][data-set="monde"].is-click .lqg-region.is-hover,.lqg[data-lq-game="map"][data-set="monde"].is-click .lqg-dot.is-hover{fill:#b5c3f2}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-1,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-1{fill:#43b97f}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-2,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-2{fill:#f3c64b}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-3,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-3{fill:#f0913f}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-miss,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-miss{fill:#e0484e}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-wrong,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-wrong{fill:#f5a3a6}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-target,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-target{fill:var(--b)}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-region.is-picked,.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-picked{fill:#8fa2ec}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-dot.is-reveal{animation:lqgBlink .45s ease-in-out 4}
.lqg-svg--zoom{background:var(--sea);border-radius:12px;touch-action:pan-y}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-svg{aspect-ratio:2/1}
.lqg[data-lq-game="map"][data-set="monde"][data-zone] .lqg-svg{aspect-ratio:auto}
.lqg.is-zoomed .lqg-svg{cursor:grab}
.lqg.is-drag .lqg-svg,.lqg.is-drag .lqg-svg *{cursor:grabbing!important}
.lqg-zoom{position:absolute;right:8px;top:8px;z-index:1;display:flex;flex-direction:column;gap:6px}
.lqg-zoom button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.94);color:var(--ink);font:inherit;font-size:22px;font-weight:600;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(16,24,40,.12);-webkit-tap-highlight-color:transparent}
.lqg-zoom button:disabled{color:#b9bfcc;cursor:default}
.lqg-zoom button:focus-visible{outline:3px solid rgba(63,91,217,.35);outline-offset:1px}
@media (hover:hover){.lqg-zoom button:hover{border-color:#b8c3f2}}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-levels{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;margin:6px 0 8px;color:var(--mut);font-size:14px;font-weight:650}
.lqg-seg{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.lqg-seg button{display:flex;flex-direction:column;align-items:center;min-width:96px;margin:0;padding:6px 12px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:750;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lqg-seg button small{color:var(--mut);font-size:12px;font-weight:600}
.lqg-seg button[aria-pressed="true"]{background:#fff;color:var(--b);box-shadow:0 1px 3px rgba(16,24,40,.16)}
.lqg-seg button:focus-visible{outline:3px solid rgba(63,91,217,.35);outline-offset:1px}
@media (max-width:640px){
.lqg[data-lq-game="map"][data-set="monde"]{min-height:730px}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-modes{grid-template-columns:1fr 1fr}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-svg{aspect-ratio:3/2}
.lqg[data-lq-game="map"][data-set="monde"][data-zone] .lqg-svg{aspect-ratio:auto}
.lqg-zoom{right:6px;top:6px;gap:5px}
.lqg-zoom button{width:34px;height:34px}
.lqg-seg button{min-width:0;padding:6px 10px;font-size:14px}
.lqg-lvl{display:none}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-stats{gap:4px}
.lqg[data-lq-game="map"][data-set="monde"] .lqg-pill{min-width:0;padding:3px 8px;font-size:13px}
}
