* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { display: flex; flex-direction: column; background: #E9F1FC; }
header { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #4C97FF; color: #fff; }
header .logo { font-weight: 700; font-size: 18px; margin-right: 12px; }
header .espace { flex: 1; }
header button { background: rgba(255,255,255,.15); color: #fff; border: 0; }
header button:hover { background: rgba(255,255,255,.3); }
header input { border: 0; border-radius: 6px; padding: 6px 8px; font-size: 14px; width: 160px; }
button { font: inherit; font-size: 14px; border-radius: 6px; border: 1px solid #ccc; padding: 6px 10px; cursor: pointer; background: #fff; }
button:disabled { opacity: .4; cursor: default; }
main { flex: 1; display: flex; min-height: 0; }
#blockly { flex: 1; min-width: 0; }
aside { width: 360px; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: #fff; border-left: 1px solid #ddd; }
.carte { display: flex; flex-direction: column; gap: 6px; }
.carte .actions { display: flex; gap: 6px; }
.carte .actions button { flex: 1; font-size: 18px; padding: 10px; }
#connecter { background: #FFAB19; color: #fff; border: 0; font-weight: 600; }
#connecter.actif { background: #855CD6; }
.vert { background: #0FBD8C; color: #fff; border: 0; }
.rouge { background: #FF6680; color: #fff; border: 0; }
#televerser { background: #4C97FF; color: #fff; border: 0; }
progress { width: 100%; }
details summary { cursor: pointer; font-weight: 600; color: #575E75; }
#code { max-height: 30vh; overflow: auto; background: #F4F6FA; padding: 8px; font-size: 12px; margin: 4px 0 0; }
.titre-console { font-weight: 600; color: #575E75; }
#copier, #vider { border: 0; padding: 0 4px; background: none; }
#console { flex: 1; margin: 0; overflow: auto; background: #1E1E2E; color: #A6E3A1; padding: 8px; font-size: 13px; white-space: pre-wrap; min-height: 80px; }
.discret { border: 0; background: none; color: #888; font-size: 12px; text-decoration: underline; }
dialog { border: 0; border-radius: 12px; min-width: 320px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog ul { list-style: none; padding: 0; max-height: 50vh; overflow: auto; }
dialog li button { width: 100%; text-align: left; margin: 2px 0; }
dialog li.vide { color: #888; }
