/* ============================================
   ALERTES IMMOBILIÈRES — Elite Luxe
   ============================================ */

/* Bouton "Créer une alerte" dans le hero */
.btn-create-alerte {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.btn-create-alerte:hover {
    background: #d4af37;
    color: #070d1b;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.btn-create-alerte i { font-size: 14px; }

/* Badge compteur alertes */
.alerte-count-badge {
    background: #d4af37;
    color: #070d1b;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ============================================
   MODAL
   ============================================ */
.alerte-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 27, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.alerte-modal-backdrop.show { display: flex; }

.alerte-modal {
    background: linear-gradient(135deg, #0b142a 0%, #111d3b 100%);
    border: 1px solid #d4af37;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: alerteModalIn 0.3s ease;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
@keyframes alerteModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.alerte-modal-header {
    padding: 26px 28px 18px;
    border-bottom: 1px solid #1e2d55;
    position: relative;
}
.alerte-modal-header h3 {
    color: #f5d76e;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alerte-modal-header h3 i { color: #d4af37; font-size: 22px; }
.alerte-modal-header p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
.alerte-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.alerte-modal-close:hover { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.alerte-modal-body {
    padding: 22px 28px 26px;
}

/* Récap des critères */
.alerte-recap {
    background: rgba(7, 13, 27, 0.6);
    border: 1px solid #1e2d55;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.alerte-recap-title {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.alerte-recap-title i { color: #d4af37; }
.alerte-recap-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.alerte-recap-chip {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f5d76e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.alerte-recap-chip.empty {
    background: rgba(148, 163, 184, 0.08);
    border-color: #233a70;
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

/* Form */
.alerte-form-group {
    margin-bottom: 16px;
}
.alerte-form-group label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.alerte-form-group input {
    width: 100%;
    background: #070d1b;
    border: 1px solid #233a70;
    color: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
}
.alerte-form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.alerte-form-group input::placeholder { color: #64748b; }
.alerte-form-group .hint {
    color: #64748b;
    font-size: 11.5px;
    margin-top: 5px;
    display: block;
}

.alerte-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.alerte-btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.alerte-btn-primary {
    background: linear-gradient(135deg, #d4af37, #b45309);
    color: #070d1b;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.alerte-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
.alerte-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.alerte-btn-cancel {
    background: transparent;
    border: 1px solid #233a70;
    color: #94a3b8;
    flex: 0 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.alerte-btn-cancel:hover { border-color: #d4af37; color: #d4af37; }

/* Success state */
.alerte-success {
    text-align: center;
    padding: 20px 0;
}
.alerte-success .success-ico {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    border: 2px solid #34d399;
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 20px;
    animation: popSuccess 0.5s ease;
}
@keyframes popSuccess {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.alerte-success h3 {
    color: #34d399;
    font-size: 20px;
    margin: 0 0 10px;
}
.alerte-success p {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.6;
}
.alerte-success .email-highlight {
    color: #f5d76e;
    font-weight: 700;
    font-family: monospace;
}
.alerte-success .small {
    color: #94a3b8;
    font-size: 12.5px;
    margin-top: 14px;
}

/* Toast */
.alerte-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alerte-toast.show { opacity: 1; transform: translateY(0); }
.alerte-toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }

@media (max-width: 575px) {
    .alerte-modal-header { padding: 20px 20px 16px; }
    .alerte-modal-body { padding: 18px 20px 22px; }
    .alerte-modal-close { top: 14px; right: 14px; width: 30px; height: 30px; }
    .alerte-form-actions { flex-direction: column; }
    .alerte-btn-cancel { flex: 1; }
}