/* LuA Peyraud — contrôle sonore premium global */
.lua-audio{position:fixed;bottom:24px;left:24px;z-index:2147482000;font:500 11px/1.35 'Open Sans',Inter,system-ui,sans-serif;color:#f4eaf5;isolation:isolate}
.lua-audio *{box-sizing:border-box}
.lua-audio__main{display:flex;align-items:center;gap:13px;min-height:48px;padding:10px 15px;border:1px solid rgba(231,199,239,.27);border-radius:999px;background:rgba(18,12,28,.83);color:inherit;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 8px 32px rgba(0,0,0,.24);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.lua-audio__main:hover,.lua-audio__main:focus-visible{border-color:rgba(238,183,239,.7);background:rgba(34,21,46,.94)}
.lua-audio__visual{height:22px;width:25px;display:flex;align-items:center;justify-content:center;gap:3px}
.lua-audio__visual i{display:block;width:3px;height:4px;border-radius:8px;background:linear-gradient(#ffe8fa,#a76bc4);transform-origin:center;transition:opacity .2s}
.lua-audio--playing .lua-audio__visual i{animation:lua-audio-wave 1.05s ease-in-out infinite alternate}
.lua-audio--playing .lua-audio__visual i:nth-child(2){animation-delay:-.65s}
.lua-audio--playing .lua-audio__visual i:nth-child(3){animation-delay:-.28s}
.lua-audio--playing .lua-audio__visual i:nth-child(4){animation-delay:-.88s}
.lua-audio--playing .lua-audio__visual i:nth-child(5){animation-delay:-.42s}
@keyframes lua-audio-wave{0%,100%{height:4px}40%{height:18px}70%{height:10px}}
.lua-audio__caption{letter-spacing:.15em;white-space:nowrap;font-size:9px}.lua-audio__caption strong{font-weight:700;color:#efc1f2}
.lua-audio__chevron{font-size:16px;opacity:.65;transition:transform .2s}.lua-audio--open .lua-audio__chevron{transform:rotate(180deg)}
.lua-audio__panel{position:absolute;bottom:calc(100% + 10px);left:0;width:min(320px,calc(100vw - 32px));padding:18px;border:1px solid rgba(231,199,239,.23);border-radius:16px;background:rgba(18,12,28,.96);box-shadow:0 16px 48px rgba(0,0,0,.38);backdrop-filter:blur(18px);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(7px);transition:opacity .18s,transform .18s,visibility .18s}
.lua-audio--open .lua-audio__panel{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.lua-audio__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;font-size:12px;letter-spacing:.04em}
.lua-audio__close{font-size:23px;line-height:1;color:#e8c9eb;border:0;background:none;cursor:pointer}
.lua-audio__controls{display:flex;align-items:center;gap:13px}.lua-audio__mute{height:32px;width:32px;flex-shrink:0;border:1px solid rgba(231,199,239,.28);border-radius:50%;background:rgba(255,255,255,.06);color:#f7ddf8;cursor:pointer}
.lua-audio__range{flex:1;min-width:0;appearance:none;-webkit-appearance:none;height:4px;border-radius:9px;cursor:pointer;background:linear-gradient(to right,#d4a2e2 var(--lua-fill,38%),rgba(255,255,255,.18) var(--lua-fill,38%))}
.lua-audio__range::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#f3d8f7;box-shadow:0 0 0 3px rgba(226,180,234,.16)}
.lua-audio__range::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#f3d8f7}
.lua-audio__value{min-width:40px;text-align:right;font-size:10px;color:#d9b8de}.lua-audio__hint{margin:14px 0 0;font-size:9px;color:rgba(242,223,246,.55)}
.lua-audio--error .lua-audio__visual i{background:#f1a6a6}
@media(max-width:640px){.lua-audio{bottom:max(16px,env(safe-area-inset-bottom));left:16px}.lua-audio__main{min-height:44px;padding:8px 12px}.lua-audio__caption{font-size:8px}}
@media(prefers-reduced-motion:reduce){.lua-audio__visual i{animation:none!important}.lua-audio__main,.lua-audio__panel{transition:none}}

/* V15.63 — contrôle audio intégré dans le header, immédiatement à gauche du menu. */
body .nav .nav-controls .lua-audio{position:relative!important;inset:auto!important;left:auto!important;bottom:auto!important;z-index:2147483203!important;flex:0 0 auto;pointer-events:auto!important;isolation:auto}
body .nav .nav-controls .lua-audio__main{width:42px;height:42px;min-height:42px;padding:0;display:flex;align-items:center;justify-content:center;gap:0;border-color:rgba(255,238,220,.18);background:rgba(255,238,220,.045);box-shadow:none}
body .nav .nav-controls .lua-audio__main:hover{background:rgba(255,238,220,.085);border-color:rgba(255,238,220,.32)}
body .nav .nav-controls .lua-audio__visual{width:25px;height:22px}
body .nav .nav-controls .lua-audio__panel{left:auto;right:0;bottom:auto;top:calc(100% + 10px)}
body .nav .nav-controls .lua-audio__caption,body .nav .nav-controls .lua-audio__chevron{display:none!important}
@media(max-width:560px){body .nav .nav-controls .lua-audio__main{width:38px;height:42px;min-height:42px}}

/* V15.64 — lecteur immédiatement reconnaissable et réglage distinct, sans interférence curseur. */
body .nav .nav-controls .lua-audio__toolbar{display:flex;align-items:center;gap:5px}
body .nav .nav-controls .lua-audio__main{width:61px;gap:5px;padding:0 8px;border-radius:24px;position:relative;overflow:visible}
body .nav .nav-controls .lua-audio__speaker{width:19px;height:19px;flex-shrink:0;color:#f1d8ed;opacity:.85}
body .nav .nav-controls .lua-audio__visual{width:20px;height:19px;gap:2px}
body .nav .nav-controls .lua-audio__visual i{width:2px}
body .nav .nav-controls .lua-audio__settings{display:grid;place-items:center;width:33px;height:42px;padding:0;border:1px solid rgba(255,238,220,.18);border-radius:22px;background:rgba(255,238,220,.045);color:#f1d8ed;cursor:pointer;transition:background .2s,border-color .2s}
body .nav .nav-controls .lua-audio__settings svg{width:17px;height:17px}
body .nav .nav-controls .lua-audio__settings:hover,body .nav .nav-controls .lua-audio__settings:focus-visible,body .nav .nav-controls .lua-audio--open .lua-audio__settings{background:rgba(226,171,231,.15);border-color:rgba(242,197,244,.48)}
body .nav .nav-controls .lua-audio__main:hover,body .nav .nav-controls .lua-audio__main:focus-visible{border-color:rgba(242,197,244,.48);box-shadow:0 0 18px rgba(204,126,216,.14)}
body .nav .nav-controls .lua-audio__main::after{content:attr(title);position:absolute;top:calc(100% + 11px);right:0;white-space:nowrap;padding:7px 10px;border:1px solid rgba(241,208,244,.24);border-radius:9px;background:rgba(22,12,30,.96);color:#f6eaf6;font-size:10px;letter-spacing:.03em;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none}
body .nav .nav-controls .lua-audio__main:hover::after,body .nav .nav-controls .lua-audio__main:focus-visible::after{opacity:1;visibility:visible;transform:none}
.lua-audio__speaker .lua-audio__slash{display:block}
.lua-audio__speaker .lua-audio__soundwave{display:none}
.lua-audio--playing .lua-audio__speaker .lua-audio__slash{display:none}
.lua-audio--playing .lua-audio__speaker .lua-audio__soundwave{display:block}
body .nav .nav-controls .lua-audio__panel{right:0;top:calc(100% + 12px);z-index:2147483205}
body .nav .nav-controls .lua-audio__main:focus-visible,body .nav .nav-controls .lua-audio__settings:focus-visible{outline:2px solid #efc1f2;outline-offset:3px}
@media(max-width:560px){body .nav .nav-controls .lua-audio__main{width:53px;height:40px;min-height:40px;padding:0 6px}body .nav .nav-controls .lua-audio__settings{width:30px;height:40px}body .nav .nav-controls .lua-audio__toolbar{gap:3px}}
