/* =====================================================================
   EDIT.CSS - Styles pour le mode edition
   ===================================================================== */

/* ========================================
   BARRE DE MENU EDITION
   ======================================== */

.edit-menu-bar {
    position: fixed;
    display: flex;
    flex-direction: row;
    gap: 4px;
    z-index: 1000;
    padding: 2px;
}

.edit-menu-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.edit-menu-btn:hover {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.edit-menu-btn:active {
    transform: scale(0.95);
}

.edit-menu-btn img,
.edit-menu-btn svg {
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.edit-menu-btn-active {
    background: #d4edfa;
    border: 2px solid #3498db;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.6);
}

/* ========================================
   POPUP D'INFORMATION (bandeau bas de carte)
   ======================================== */

.popup {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #27ae60;
    border-radius: 6px;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    z-index: 10002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    cursor: pointer;
    display: none;
}

/* ========================================
   BOITE DE CONFIRMATION DE DEPLACEMENT
   ======================================== */

#move-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    min-width: 350px;
    max-width: 500px;
    display: none;
}

#move-confirmation .confirmation-title {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

#move-confirmation .confirmation-message {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

#move-confirmation .confirmation-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#move-confirmation .confirmation-buttons button {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#move-confirmation .btn-no {
    background-color: #95a5a6;
    color: white;
}

#move-confirmation .btn-no:hover {
    background-color: #7f8c8d;
}

#move-confirmation .btn-yes {
    background-color: #27ae60;
    color: white;
}

#move-confirmation .btn-yes:hover {
    background-color: #229954;
}

@media print {
    .popup,
    #move-confirmation {
        display: none !important;
    }
}
