/* FICHIER : shared/css/session-modal.css */
/* Modales : reprise de session + choix de langue */

/* ===== OVERLAY COMMUN ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== BOITE MODALE COMMUNE ===== */
.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-box .modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.modal-box h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

/* ===== MODALE REPRISE DE SESSION ===== */
.resume-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.25s ease;
}

.resume-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.resume-box h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.resume-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume-actions .btn-primary {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    border: none;
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.resume-actions .btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.resume-actions .btn-secondary {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.resume-actions .btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modal-box, .resume-box {
        padding: 28px 20px;
        max-width: 95%;
    }

    .resume-actions .btn-primary,
    .resume-actions .btn-secondary {
        padding: 14px 20px;
    }
}
