/* v7.41 : dialogue de sélection des trois modes ; indépendant du thème actif. */
.theme-choice-overlay[hidden]{display:none!important}
.theme-choice-overlay{position:fixed;inset:0;z-index:2500;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(7,14,26,.70)}
.theme-choice-panel{width:min(750px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;background:#172235;color:#f8fafc;border:1px solid #4c5b73;border-radius:16px;box-shadow:0 22px 72px rgba(0,0,0,.42);padding:22px}
.theme-choice-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.theme-choice-heading h2{font-size:22px;color:#fff;margin:0}
.theme-choice-close{border:0;background:#394a62;color:#fff;font-size:22px;line-height:1;width:32px;height:32px;border-radius:8px;cursor:pointer}
.theme-choice-help{color:#c2cedd;margin:12px 0 18px;font-size:13px}
.theme-choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-choice-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;text-align:center;border:2px solid #526178;background:#25344a;color:#fff;border-radius:12px;padding:16px 12px;margin:0;min-width:0}
.theme-choice-option:has(input:checked){border-color:#b784ff;background:#352a54;box-shadow:0 0 0 1px #b784ff}
.theme-choice-option input{position:absolute;top:12px;right:12px;width:16px;height:16px;accent-color:#a855f7;cursor:pointer}
.theme-choice-symbol{font-size:28px;line-height:1.2}
.theme-choice-option strong{font-size:16px;color:#fff}
.theme-choice-option small{font-size:12px;min-height:45px;color:#c2ccdc;line-height:1.4}
.theme-choice-mini{display:block;width:100%;height:60px;border-radius:6px;border:1px solid #68788f;background:linear-gradient(90deg,#f3f6fa 0 27%,#fff 27%);box-shadow:inset 0 13px rgba(0,0,0,.025)}
.theme-mini-gray{background:linear-gradient(90deg,#566477 0 27%,#d0d7e1 27%);box-shadow:inset 0 14px rgba(255,255,255,.13)}
.theme-mini-dark{background:linear-gradient(90deg,#08111f 0 27%,#111827 27%);box-shadow:inset 0 14px rgba(255,255,255,.04)}
.theme-choice-buttons{margin-top:18px;display:flex;justify-content:flex-end;gap:10px}
.theme-choice-buttons button{padding:10px 22px;min-height:40px}
.theme-choice-error{margin:12px 0 0;color:#fca5a5;font-size:13px}
body.theme-dialog-open{overflow:hidden}
@media(max-width:620px){.theme-choice-options{grid-template-columns:1fr}.theme-choice-option{padding:12px;display:grid;grid-template-columns:35px 1fr 65px;grid-template-rows:auto auto;text-align:left;gap:4px 8px}.theme-choice-option input{right:8px;top:8px}.theme-choice-symbol{grid-row:1/3}.theme-choice-option small{min-height:0;grid-column:2}.theme-choice-mini{grid-column:3;grid-row:1/3;height:48px}.theme-choice-panel{padding:14px}}
