html.calert-open { overflow: hidden; }

.calert-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}
.calert-overlay[hidden] { display: none; }

.calert-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    font-size: 16px;
    line-height: 1.5;
}
.calert-title {
    margin: 0 0 12px;
    font-size: 1.25em;
    line-height: 1.3;
}
.calert-text p { margin: 0 0 .8em; }
.calert-text a { text-decoration: underline; }

.calert-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.calert-btn {
    box-sizing: border-box;
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.calert-btn:hover, .calert-btn:focus { opacity: .85; }
.calert-envoi {
    background: #222;
    border-color: #222;
    color: #fff;
}

@media (max-width: 480px) {
    .calert-box { padding: 20px 16px; }
    .calert-actions { flex-direction: column-reverse; }
    .calert-btn { width: 100%; }
}
