html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* supprime scrollbars */
    font-family: sans-serif;
}

/* Bandeau */
#banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* réduit de 50px à 40px */
    background-color: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-weight: bold;
    z-index: 20;
}

/* Boutons dans le bandeau */
#banner-buttons button {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* Drop area */
#drop-area {
    position: fixed;
    top: 60px; /* juste sous le bandeau (40px) + 10px marge */
    left: 10%;
    width: 80%;
    height: 60px; /* réduit de 80px à 60px */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #999;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    z-index: 15;
    text-align: center;
}

#drop-area.hover {
    border-color: #333;
    background: #e0e0e0;
}

#canvas {
    position: fixed;
    top: 125px;      /* bandeau + drop-area */
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    z-index: 1;
}

#modeBtn {
    display: inline-block;
    width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Mesures - bouton mode supprimé, donc pas besoin ici */
#modeBtn.active {
    background-color: #FFD700;
    border-radius: 4px;        /* facultatif, mais sécurise la constance */
    color: #222;
}

#spaceBtn {
    display: inline-block;
    width: 20px;          /* espace voulu */
    height: 100%;          /* même que le bandeau */
    margin: 0;
    padding: 0;
    border: none;
    background: none;      /* rien de visible */
    color: transparent;    /* texte invisible */
    pointer-events: none;  /* non cliquable */
    box-shadow: none;
    line-height: normal;
    vertical-align: middle; /* alignement avec les autres boutons */
    font-size: 0;           /* texte invisible */
}

.first-letter {
    text-decoration: underline;
}

body.dark-mode {
    background-color: #333;
    color: #fff;
}

body.dark-mode #canvas {
    background-color: #333;
}

body.dark-mode #drop-area {
    background-color: #555;
    border-color: #aaa;
}

/* Hover pour le dark mode */
body.dark-mode #drop-area.hover,
body.dark-mode #drop-area:hover {
    border-color: #fff;        /* plus contrasté */
    background-color: #666;    /* un peu plus clair que le fond normal #555 */
}

