/*
 * Styles pour les boîtes de dialogue générées par js/dialogue.js.
 * Fichier autonome (aucune dépendance externe) : reprend directement
 * les couleurs et l'esprit visuel du reste du site (voir keyboard.css).
 */

.dlg-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    padding: 15px;
    box-sizing: border-box;
    animation: dlg-fade-in 0.15s ease-out;
}

@keyframes dlg-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dlg-box {
    background: #2c3e50;
    color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 32em;
    max-width: 100%;
    padding: 1.75em 1.75em 1.5em;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Inter', sans-serif;
    animation: dlg-pop-in 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dlg-pop-in {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dlg-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.dlg-icon-success { border-color: #2ecc71; }
.dlg-icon-error { border-color: #ff4757; }
.dlg-icon-warning { border-color: #f39c12; }
.dlg-icon-info,
.dlg-icon-question { border-color: #00d2ff; }

/* Coche de succès (même technique que .check-box.checked dans keyboard.css) */
.dlg-check {
    width: 16px;
    height: 30px;
    border: solid #2ecc71;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg) translate(-3px, -5px);
}

/* Croix d'erreur */
.dlg-x {
    position: relative;
    width: 32px;
    height: 32px;
}
.dlg-x span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: #ff4757;
    transform-origin: center;
}
.dlg-x span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.dlg-x span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.dlg-icon-text {
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
}
.dlg-icon-warning .dlg-icon-text { color: #f39c12; }
.dlg-icon-info .dlg-icon-text,
.dlg-icon-question .dlg-icon-text { color: #00d2ff; }

.dlg-title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 0.5em;
    color: #ffffff;
}

.dlg-content {
    font-size: 1.05em;
    line-height: 1.5;
    color: #bdc3c7;
    margin-bottom: 1.5em;
}

.dlg-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dlg-btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}
.dlg-btn:hover {
    transform: scale(1.05);
}

.dlg-btn-confirm {
    background: #ff4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.dlg-btn-confirm:hover {
    background: #ff6b81;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.dlg-btn-cancel {
    background: #34495e;
}
.dlg-btn-cancel:hover {
    background: #3d566e;
}
