/* Edition 11 · réglages professionnels et sélection visuelle de l’univers. */
.settings-trigger{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin-left:auto;padding:0;border:1px solid rgba(68,97,73,.22);border-radius:16px;color:var(--ink);background:var(--paper);box-shadow:0 5px 14px rgba(25,59,49,.10);transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease}
.settings-trigger svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.settings-trigger:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(25,59,49,.14)}
.settings-shade{position:fixed;inset:0;z-index:13000;display:flex;justify-content:flex-end;overflow:auto;overscroll-behavior:contain;background:rgba(12,21,17,.56);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);animation:settings-shade-in .22s ease-out both}
.settings-shade[hidden]{display:none!important}
.settings-dialog{width:min(100%,590px);height:100%;max-height:100dvh;overflow:auto;overscroll-behavior:contain;padding:max(24px,env(safe-area-inset-top)) clamp(18px,4vw,36px) max(22px,env(safe-area-inset-bottom));color:var(--ink);background:var(--cream);box-shadow:-22px 0 65px rgba(0,0,0,.25);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;animation:settings-panel-in .28s cubic-bezier(.2,.75,.25,1) both}
.settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:5px 0 24px;border-bottom:1px solid var(--line)}
.settings-eyebrow{margin:0 0 7px!important;color:var(--green)!important;font-size:10px;font-weight:800;letter-spacing:1.6px}
.settings-header h2{margin:0;color:var(--ink);font-size:clamp(27px,7vw,36px);line-height:1.1;letter-spacing:-1.1px}
.settings-header p:last-child{margin:8px 0 0;font-size:13px;line-height:1.55;color:var(--muted)}
.settings-close{flex:0 0 48px;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:var(--paper);font:400 28px/1 system-ui,sans-serif}
.settings-section{padding:22px 0;border-bottom:1px solid var(--line)}
.settings-section h3{margin:0;color:var(--ink);font-size:17px;letter-spacing:-.3px}
.settings-section>p{margin:6px 0 14px;color:var(--muted);font-size:12px;line-height:1.55}
.settings-appearance{display:flex;align-items:center;min-height:48px}
.settings-appearance .appearance-trigger{position:static;inset:auto;min-height:46px;min-width:130px;padding:10px 18px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--paper);box-shadow:0 4px 12px rgba(0,0,0,.10);font:700 13px/1.2 system-ui,sans-serif}
.settings-appearance .appearance-trigger:hover{transform:translateY(-1px)}
.settings-duration-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.settings-field{min-width:0;margin:0;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 4px 14px rgba(26,52,40,.045)}
.settings-field label{display:block;margin:0 0 8px;color:var(--ink);font-size:11px;line-height:1.4;font-weight:750}
.settings-field select{width:100%;min-width:0;min-height:44px;padding:9px 11px;border-radius:12px;font-size:13px}
.settings-help{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.settings-motion-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:50px;padding:0 14px;border:1px solid var(--line);border-radius:15px;background:var(--paper)}
.settings-motion-row label{margin:0;color:var(--ink);font-size:13px;font-weight:700}
.settings-motion-row input{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:0;padding:0;accent-color:var(--green)}
.settings-motion-section>.settings-help{margin-bottom:0}
.settings-audio-section .sound-controls{justify-content:flex-start;gap:8px;margin:12px 0;padding:10px;border-radius:15px}
.settings-audio-section .sound-controls label{min-height:40px;margin:0;padding:5px 8px;border-radius:10px;font-size:11px}
.settings-audio-section .sound-controls #sound-toggle{width:19px;height:19px;min-height:19px;margin:0;accent-color:var(--green)}
.settings-audio-section .sound-controls #test-sound{min-height:40px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-size:11px}
.settings-legacy-duplicate{display:none!important}
.settings-audio-section .audio-settings-panel{position:static;inset:auto;z-index:auto;width:100%;max-height:none;overflow:visible;margin:12px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.settings-audio-section .audio-settings-panel h2{margin:0 0 10px;font-size:13px}
.settings-audio-section .audio-settings-panel .audio-row{min-height:44px;padding:10px 0;font-size:12px}
.settings-audio-section .audio-settings-panel .audio-row input[type=range]{max-width:42%;min-height:28px}
.settings-audio-section .audio-settings-panel details{margin-top:8px}
.settings-audio-section .audio-settings-panel summary{min-height:46px;padding:12px 0}
.settings-audio-section .audio-settings-panel .audio-kind-list{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;padding-left:0}
.settings-footer{padding:20px 0 max(14px,env(safe-area-inset-bottom))}
.settings-done{width:100%;min-height:50px;border:0;border-radius:15px;color:#fff;background:var(--green);box-shadow:0 5px 12px rgba(23,78,60,.2);font-size:14px;font-weight:800;transition:transform .18s ease,filter .18s ease}
.settings-done:hover{filter:brightness(1.08);transform:translateY(-1px)}
.settings-dialog :focus-visible{outline:3px solid #8b5e1d;outline-offset:3px}
html[data-appearance="dark"] .settings-trigger{color:rgba(255,255,255,.9);border-color:transparent;background:#151515;box-shadow:-4px -4px 9px #292929,6px 6px 12px rgba(0,0,0,.45)}
html[data-appearance="dark"] .settings-shade{background:rgba(0,0,0,.72)}
html[data-appearance="dark"] .settings-dialog{color:rgba(255,255,255,.9);background:#0d0d0d;box-shadow:-18px 0 60px rgba(0,0,0,.55)}
html[data-appearance="dark"] .settings-header,html[data-appearance="dark"] .settings-section{border-color:rgba(255,255,255,.10)}
html[data-appearance="dark"] .settings-header h2,html[data-appearance="dark"] .settings-section h3,html[data-appearance="dark"] .settings-field label,html[data-appearance="dark"] .settings-motion-row label{color:rgba(255,255,255,.9)}
html[data-appearance="dark"] .settings-eyebrow{color:#81c784!important}
html[data-appearance="dark"] .settings-header p:last-child,html[data-appearance="dark"] .settings-section>p,html[data-appearance="dark"] .settings-help{color:rgba(255,255,255,.62)}
html[data-appearance="dark"] .settings-close,html[data-appearance="dark"] .settings-field,html[data-appearance="dark"] .settings-motion-row{border-color:transparent;background:#151515;color:rgba(255,255,255,.9);box-shadow:-3px -3px 7px #252525,4px 4px 8px rgba(0,0,0,.34)}
html[data-appearance="dark"] .settings-field select{color:rgba(255,255,255,.9);border:0;background:#151515;box-shadow:inset -3px -3px 7px rgba(42,42,42,.72),inset 4px 4px 8px rgba(0,0,0,.4)}
html[data-appearance="dark"] .settings-motion-row input{accent-color:#81c784}
html[data-appearance="dark"] .settings-appearance .appearance-trigger{color:rgba(255,255,255,.9);border:0;background:#151515;box-shadow:-3px -3px 7px #252525,4px 4px 8px rgba(0,0,0,.4)}
html[data-appearance="dark"] .settings-audio-section .sound-controls{border:0;background:transparent;box-shadow:none}
html[data-appearance="dark"] .settings-audio-section .sound-controls label{color:rgba(255,255,255,.9);background:#151515;box-shadow:-2px -2px 5px #252525,3px 3px 6px rgba(0,0,0,.32)}
html[data-appearance="dark"] .settings-audio-section .sound-controls #test-sound{border:0;color:rgba(255,255,255,.9);background:#151515;box-shadow:var(--shadow-raised)}
html[data-appearance="dark"] .settings-audio-section .audio-settings-panel{border:0;background:transparent;box-shadow:none}
html[data-appearance="dark"] .settings-done{color:#fff;background:#004d40;box-shadow:-3px -3px 8px #145e52,5px 5px 12px rgba(0,0,0,.45)}

/* Quatre univers en cartes compactes, illustrées par les symboles SVG du composant. */
.setup-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 22px;padding:13px 15px;border:1px solid rgba(64,94,73,.17);border-radius:16px;background:rgba(255,253,247,.65);color:var(--muted);font-size:11px;font-weight:700}
.setup-progress>*{min-width:0}
.setup-progress [aria-current="step"],.setup-progress .is-current{color:var(--green)}
.universe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 20px}
.universe-tile{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:12px;row-gap:5px;width:100%;min-width:0;min-height:132px;padding:17px 14px;border:1px solid rgba(64,94,73,.18);border-radius:19px;color:var(--ink);background:linear-gradient(145deg,rgba(255,255,251,.96),rgba(243,246,232,.91));box-shadow:0 5px 0 rgba(214,222,203,.65),0 12px 25px rgba(24,57,45,.06);text-align:left;transition:transform .23s cubic-bezier(.2,.7,.25,1),box-shadow .23s,border-color .2s,background-color .2s;}
.universe-tile:hover{transform:translateY(-3px);border-color:#93aa7d;box-shadow:0 8px 0 rgba(214,222,203,.58),0 17px 30px rgba(24,57,45,.12)}
.universe-tile:active{transform:translateY(1px)}
.universe-tile[aria-pressed="true"],.universe-tile.is-selected{border-color:#5f805e;background:linear-gradient(145deg,#e6edcf,#f9f9ef);box-shadow:inset 0 0 0 1px rgba(62,103,69,.2),0 5px 12px rgba(32,82,57,.08)}
.universe-symbol{grid-column:1;grid-row:1 / span 2;display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(64,94,73,.12);border-radius:14px;color:#28664b;background:#e9efdb;}
.universe-symbol svg{display:block;width:30px;height:30px;max-width:100%;max-height:100%;}
.universe-tile strong{grid-column:2;grid-row:1;display:block;min-width:0;color:var(--ink);font-size:clamp(12px,3.5vw,15px);line-height:1.25;letter-spacing:-.25px;overflow-wrap:anywhere}
.universe-tile small{grid-column:2;grid-row:2;display:block;min-width:0;color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.universe-tile>span:last-child{position:absolute;top:9px;right:10px;color:#6a8a63;font-size:14px}
.step-actions{display:flex;align-items:stretch;gap:10px;margin-top:18px}
.step-actions>*{flex:1;min-width:0}
.step-actions button{min-height:48px}
html[data-appearance="dark"] .setup-progress{border-color:transparent;border-radius:16px;background:#151515;color:rgba(255,255,255,.62);box-shadow:var(--shadow-raised)}
html[data-appearance="dark"] .setup-progress [aria-current="step"],html[data-appearance="dark"] .setup-progress .is-current{color:#81c784}
html[data-appearance="dark"] .universe-tile{border:0;border-radius:19px;color:rgba(255,255,255,.9);background:#151515;box-shadow:-4px -4px 9px #252525,6px 6px 12px rgba(0,0,0,.4)}
html[data-appearance="dark"] .universe-tile:hover{border:0;background:#191919;box-shadow:-4px -4px 9px #292929,6px 6px 12px rgba(0,0,0,.46)}
html[data-appearance="dark"] .universe-tile[aria-pressed="true"],html[data-appearance="dark"] .universe-tile.is-selected{background:#004d40;box-shadow:var(--shadow-inset)}
html[data-appearance="dark"] .universe-symbol{border:0;border-radius:14px;color:#81c784;background:#151515;box-shadow:-2px -2px 5px #252525,3px 3px 6px rgba(0,0,0,.35)}
html[data-appearance="dark"] .universe-tile strong{color:rgba(255,255,255,.9)}
html[data-appearance="dark"] .universe-tile small{color:rgba(255,255,255,.64)}
html[data-appearance="dark"] .universe-tile>span:last-child{color:#81c784}
html[data-appearance="dark"] .step-actions .secondary{background:#151515}
@keyframes settings-shade-in{from{opacity:0}to{opacity:1}}
@keyframes settings-panel-in{from{opacity:.88;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@keyframes gm-enter{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.gm-enter{animation:gm-enter .3s cubic-bezier(.2,.75,.25,1) both}
@media(max-width:420px){.settings-duration-grid{gap:9px}.settings-field{padding:11px 9px}.settings-field label{font-size:10px}.settings-dialog{padding-right:16px;padding-left:16px}.settings-audio-section .audio-settings-panel .audio-kind-list{grid-template-columns:1fr}.universe-grid{gap:9px}.universe-tile{grid-template-columns:34px minmax(0,1fr);column-gap:8px;min-height:123px;padding:14px 10px}.universe-symbol{width:34px;height:34px;border-radius:12px}.universe-symbol svg{width:27px;height:27px}.universe-tile strong{font-size:12px}.universe-tile small{font-size:9px}.setup-progress{gap:6px;padding:11px 9px;font-size:10px}}
@media(max-width:350px){.settings-duration-grid{grid-template-columns:1fr}.settings-field{padding:12px}.universe-grid{gap:8px}.universe-tile{min-height:119px;padding:12px 8px;grid-template-columns:30px minmax(0,1fr);column-gap:7px}.universe-symbol{width:30px;height:30px}.universe-symbol svg{width:24px;height:24px}.universe-tile strong{font-size:11px}.universe-tile small{font-size:9px}.step-actions{gap:7px}}
@media(prefers-reduced-motion:reduce){.settings-shade,.settings-dialog,.settings-trigger,.settings-done,.universe-tile,.gm-enter{animation:none!important;transition:none!important;scroll-behavior:auto!important}.settings-trigger:hover,.settings-done:hover,.universe-tile:hover,.universe-tile:active{transform:none!important}}
html[data-motion="reduce"] *,html[data-motion="reduce"] *::before,html[data-motion="reduce"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
html[data-motion="reduce"] .universe-tile:hover,html[data-motion="reduce"] .settings-trigger:hover,html[data-motion="reduce"] .settings-done:hover{transform:none!important}

/* Édition 12 — choix directs, badges cohérents et alignements optiques. */
.settings-trigger{display:grid;place-items:center;line-height:0}
.settings-trigger svg{display:block;width:24px;height:24px;margin:0;flex:none}
.settings-appearance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.settings-theme-option{display:flex;align-items:center;justify-content:center;min-width:0;min-height:54px;padding:11px 12px;border:1px solid var(--line);border-radius:15px;color:var(--ink);background:var(--paper);box-shadow:0 4px 12px rgba(26,52,40,.06);font:700 13px/1.25 system-ui,sans-serif;text-align:center;transition:transform .16s ease,background-color .18s ease,box-shadow .18s ease}
.settings-theme-option[aria-pressed="true"]{border-color:#63845e;color:#205642;background:#e7edd8;box-shadow:inset 0 0 0 1px rgba(62,103,69,.14)}
html[data-appearance="dark"] .settings-theme-option{border:0;color:rgba(255,255,255,.9);background:#151515;box-shadow:var(--shadow-raised)}
html[data-appearance="dark"] .settings-theme-option[aria-pressed="true"]{color:#81c784;background:#004d40;box-shadow:var(--shadow-inset)}
.settings-theme-option:hover{transform:translateY(-1px)}
.settings-audio-section .sound-controls{align-items:center;justify-content:center;gap:10px}
.settings-audio-section .sound-controls label,.settings-audio-section .sound-controls #test-sound{display:inline-flex;align-items:center;justify-content:center;min-height:42px;gap:7px;text-align:center;line-height:1.1}
.settings-audio-section .sound-controls input{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;vertical-align:middle;accent-color:#65865f}
.settings-audio-section .sound-controls #test-sound{min-width:76px;padding:8px 12px}
.universe-grid{grid-template-columns:minmax(0,1fr);gap:12px}
.universe-tile{grid-template-columns:48px minmax(0,1fr);min-height:104px;padding:18px 17px;border-radius:18px}
.universe-symbol{width:46px;height:46px}
.universe-tile strong{font-size:clamp(14px,4vw,17px)}
.universe-tile small{font-size:11px}
.step-actions{align-items:stretch;gap:12px}
.step-actions button{display:flex;align-items:center;justify-content:center;min-height:50px;padding:12px 14px;text-align:center;line-height:1.2}
.setup-progress{justify-content:center;flex-wrap:wrap;text-align:center}
@media(max-width:350px){.settings-appearance{gap:8px}.settings-theme-option{padding-inline:8px;font-size:12px}.universe-tile{min-height:96px;padding:14px 12px}}
@media(prefers-reduced-motion:reduce){.settings-theme-option{transition:none!important}.settings-theme-option:hover{transform:none!important}}
.settings-trigger{border-radius:50%}

/* Finition après inspection réelle : l’intitulé reste au centre de sa pastille. */
.settings-audio-section .audio-settings-panel details > summary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;padding:12px 16px;text-align:center;list-style:none;border-radius:13px;background:var(--paper);border:1px solid var(--line)}
.settings-audio-section .audio-settings-panel details > summary::-webkit-details-marker{display:none}
.settings-audio-section .audio-settings-panel details > summary::before{content:'▸';font-size:12px;line-height:1}
.settings-audio-section .audio-settings-panel details[open] > summary::before{transform:rotate(90deg)}
.settings-audio-section .sound-controls label:has(#sound-toggle),.settings-audio-section .sound-controls #test-sound{box-sizing:border-box;width:92px;min-width:92px;height:44px;min-height:44px;padding:8px;gap:6px;font-size:11px;font-weight:600}
.settings-appearance{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px}
.settings-theme-option{display:grid;grid-template-columns:56px minmax(0,1fr);justify-content:stretch;align-content:center;align-items:center;gap:10px;min-height:74px;padding:9px 11px;text-align:left}
.settings-theme-option>span:last-child{overflow-wrap:anywhere}
.theme-preview{position:relative;display:flex;align-items:center;justify-content:center;gap:3px;width:56px;height:48px;overflow:hidden;border:1px solid rgba(20,40,30,.18);border-radius:11px;background:linear-gradient(135deg,#f6f3e9,#e8edda)}
.theme-preview i{display:block;width:10px;height:25px;border-radius:6px;background:#174e3c;box-shadow:0 2px 4px rgba(0,0,0,.16)}
.theme-preview i:nth-child(2){height:34px;background:#a8c777}.theme-preview i:nth-child(3){height:19px;background:#dce7c8}
.theme-preview[data-preview="dark"]{background:linear-gradient(135deg,#0d0d0d,#252525);border-color:#424242}.theme-preview[data-preview="dark"] i{background:#004d40}.theme-preview[data-preview="dark"] i:nth-child(2){background:#81c784}.theme-preview[data-preview="dark"] i:nth-child(3){background:#3d3d3d}
.theme-preview[data-preview="glass"]{background:linear-gradient(135deg,#087e9b,#1942a6);border-color:rgba(255,255,255,.7)}.theme-preview[data-preview="glass"] i{background:rgba(255,255,255,.8)}.theme-preview[data-preview="glass"] i:nth-child(2){background:#a9fbdd}.theme-preview[data-preview="glass"] i:nth-child(3){background:#92bdff}
.theme-preview[data-preview="brutal"]{background:#ffd000;border:2px solid #101010;border-radius:5px}.theme-preview[data-preview="brutal"] i{border-radius:2px;background:#fff;border:1px solid #101010}.theme-preview[data-preview="brutal"] i:nth-child(2){background:#39ff14}.theme-preview[data-preview="brutal"] i:nth-child(3){background:#111}
.settings-theme-option[aria-pressed="true"]{border-color:#63845e;box-shadow:inset 0 0 0 2px rgba(62,103,69,.23),0 5px 12px rgba(32,82,57,.08)}
html[data-appearance="dark"] .settings-theme-option[aria-pressed="true"]{color:#fff;background:#004d40}
html[data-appearance="glass"] .settings-theme-option{color:#fff;border-color:rgba(255,255,255,.42);background:rgba(10,42,96,.7);box-shadow:0 5px 16px rgba(0,0,0,.18)}
html[data-appearance="glass"] .settings-theme-option[aria-pressed="true"]{background:rgba(172,255,226,.18);box-shadow:inset 0 0 0 2px rgba(255,255,255,.72)}
html[data-appearance="brutal"] .settings-theme-option{color:#111;border:3px solid #111;border-radius:6px;background:#fff;box-shadow:4px 4px 0 #111}
html[data-appearance="brutal"] .settings-theme-option[aria-pressed="true"]{background:#ffd000;box-shadow:inset 0 0 0 2px #111,4px 4px 0 #111}
.settings-theme-option:focus-visible{outline:3px solid #176444;outline-offset:4px}
html[data-appearance="glass"] .settings-theme-option:focus-visible{outline-color:#fff}
html[data-appearance="brutal"] .settings-theme-option:focus-visible{outline-color:#111;outline-offset:3px}
@media(max-width:380px){.settings-appearance{gap:8px}.settings-theme-option{grid-template-columns:46px minmax(0,1fr);gap:7px;min-height:68px;padding:8px 7px;font-size:11px}.theme-preview{width:46px;height:42px}.theme-preview i{width:8px;height:21px}.theme-preview i:nth-child(2){height:29px}.theme-preview i:nth-child(3){height:16px}}
@media(prefers-reduced-motion:reduce){.settings-theme-option{transition:none!important}.settings-theme-option:hover{transform:none!important}}
