/* Carnet : salle de classe en visio. Utilise les variables de couleur de la page. */
html.vz-ouvert{overflow:hidden}
.vz{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;background:#0f0d24;color:#f4f2ff}
.vz-tete{display:flex;align-items:center;gap:10px;padding:10px max(16px,env(safe-area-inset-left,0px));background:#17143a;border-bottom:1px solid #2b2660;min-width:0}
.vz-titre{display:flex;flex-direction:column;min-width:0;flex:1}
.vz-titre b{font:700 1rem var(--f-display,system-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vz-titre span{font-size:.82rem;color:#b9b4e6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vz-etat{font:600 .78rem var(--f-body,system-ui);padding:3px 10px;border-radius:999px;background:#2b2660;color:#d9d5ff;white-space:nowrap}
.vz-etat:empty{display:none}
.vz-etat.direct{background:#1d5a3d;color:#c9f5dc}.vz-etat.direct::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#5fd19a;margin-right:6px;vertical-align:1px}
.vz-etat.attente{background:#5a4512;color:#ffe2a6}.vz-etat.demo{background:#3a2f7a;color:#e3ddff}
.vz-btn{font:600 .9rem var(--f-body,system-ui);display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:8px 12px;cursor:pointer;border:1px solid #3d3780;background:#221e4f;color:#f4f2ff;white-space:nowrap}
.vz-btn:hover{border-color:#a58bff}
.vz-btn:focus-visible{outline:2px solid #a58bff;outline-offset:2px}
.vz-fin{background:#c62828;border-color:#c62828}.vz-fin:hover{background:#d93a3a;border-color:#d93a3a}
.vz-prim{background:#5b33f0;border-color:#5b33f0;padding:12px 18px;font-size:1rem}.vz-prim:hover{background:#6b45ff}
.vz-corps{flex:1;display:flex;min-height:0;position:relative}
.vz-scene{flex:1;min-width:0;display:flex;align-items:stretch;justify-content:center;position:relative;background:#0f0d24}
.vz-scene iframe{border:0;width:100%;height:100%;display:block}
.vz-panneau{width:340px;flex:none;background:var(--sheet,#fff);color:var(--ink,#1a0b5c);border-left:1px solid #2b2660;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:14px}
.vz-msg{margin:auto;max-width:440px;text-align:center;padding:24px;display:flex;flex-direction:column;gap:10px;align-items:center}
.vz-msg h2{margin:0;font:700 1.25rem var(--f-display,system-ui)}
.vz-msg p{margin:0;color:#d4d0f5;line-height:1.5}
.vz-note{font-size:.85rem;color:#b9b4e6;line-height:1.5;margin:0}
.vz-anim{width:46px;height:46px;border-radius:50%;border:4px solid #3d3780;border-top-color:#a58bff;animation:vz-tour 1s linear infinite}
@keyframes vz-tour{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.vz-anim{animation-duration:3s}}
.vz-pre{margin:auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:center;padding:24px;max-width:980px;width:100%}
.vz-apercu{position:relative;aspect-ratio:16/9;background:#1b1845;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.vz-apercu video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.vz-pas-cam{position:absolute;color:#b9b4e6;font-size:.9rem}
.vz-niveau{position:absolute;left:12px;right:12px;bottom:12px;height:6px;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden}
.vz-niveau i{display:block;height:100%;width:0;background:#5fd19a;transition:width .08s}
.vz-pre-txt{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.vz-pre-txt h2{margin:0;font:700 1.4rem var(--f-display,system-ui)}
.vz .vz-case{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:.95rem;font-weight:500;color:inherit;cursor:pointer;margin:0}
.vz .vz-case input{width:18px;height:18px;min-height:0;padding:0;flex:none;accent-color:#a58bff;margin:0}
.vz-demo{margin:auto;width:100%;max-width:900px;padding:24px;display:flex;flex-direction:column;gap:16px}
.vz-tuiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.vz-tuile{aspect-ratio:16/10;border-radius:14px;background:#221e4f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;position:relative;animation:vz-entre .4s ease-out}
.vz-tuile b{font-size:.9rem;font-weight:600}
.vz-tuile.vz-moi{background:#2d2766;outline:2px solid #5b33f0}
.vz-av{width:64px;height:64px;border-radius:50%;background:#5b33f0;color:#fff;display:grid;place-items:center;font:700 1.6rem var(--f-display,system-ui);text-transform:uppercase}
@keyframes vz-entre{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.vz-demo-note{margin:0;text-align:center;font-size:.88rem;color:#b9b4e6}
.vz-ppanneau{display:none}
@media (max-width:860px){
  .vz-pre{grid-template-columns:1fr;gap:16px;padding:16px;margin:0 auto}
  .vz-panneau{position:absolute;inset:auto 0 0 0;width:auto;max-height:70%;border-left:0;border-top:1px solid #2b2660;border-radius:16px 16px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.4);transform:translateY(105%);transition:transform .2s;z-index:2}
  .vz-panneau-ouvert .vz-panneau{transform:none}
  .vz-ppanneau{display:inline-flex}
}
@media (max-width:560px){
  .vz-tete{flex-wrap:wrap;padding:8px 12px;gap:8px}
  .vz-titre{flex-basis:100%}
  .vz-btn{padding:7px 10px;font-size:.85rem}
  .vz-ppanneau span{display:none}
  .vz-fin{margin-left:auto}
  .vz-tuiles{grid-template-columns:1fr 1fr}
  .vz-av{width:44px;height:44px;font-size:1.1rem}
}

.vz-termine .vz-panneau,.vz-termine .vz-ppanneau{display:none}
.vz-panneau textarea{min-height:76px;max-height:160px}
