/* ==========================================================================
   Deville Alerte Occasion - Front Office Styles
   ========================================================================== */

.deville-alerte-block {
    margin: 25px 0;
    border: 2px solid #c0392b;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.deville-alerte-inner {
    padding: 25px 30px;
    position: relative;
}

.deville-alerte-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #c0392b;
    opacity: 0.3;
}

.deville-alerte-block h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.deville-alerte-block > .deville-alerte-inner > p {
    margin: 0 0 15px;
    color: #555;
    font-size: 14px;
}

/* Form layout */
.deville-alerte-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.deville-alerte-input {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.deville-alerte-input:focus {
    border-color: #c0392b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.deville-alerte-btn {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deville-alerte-btn:hover {
    background-color: #a93226;
    border-color: #a93226;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.deville-alerte-btn:active {
    transform: translateY(0);
}

/* Filters */
.deville-alerte-filters {
    margin-top: 12px;
}

.deville-alerte-filters-label a {
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.deville-alerte-filters-label a:hover {
    color: #c0392b;
}

.deville-alerte-filters-list {
    margin-top: 10px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deville-alerte-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.deville-alerte-filter-item:hover {
    border-color: #c0392b;
    background: #fff5f5;
}

.deville-alerte-filter-item input:checked + span {
    color: #c0392b;
    font-weight: 600;
}

.deville-alerte-filters-hint {
    width: 100%;
    margin: 5px 0 0;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Messages */
.deville-alerte-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.deville-alerte-message.success {
    background-color: #d5f5e3;
    color: #1e8449;
    border: 1px solid #82e0aa;
}

.deville-alerte-message.error {
    background-color: #fadbd8;
    color: #c0392b;
    border: 1px solid #f1948a;
}

/* Already subscribed */
.deville-alerte-subscribed {
    padding: 10px 0;
}

.deville-alerte-subscribed h4 {
    color: #1e8449;
}

.deville-alerte-subscribed p {
    color: #666;
}

/* Privacy notice */
.deville-alerte-privacy {
    margin: 12px 0 0;
    font-size: 11px;
    color: #aaa;
}

/* Loading animation */
@keyframes rotating {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotating 1s linear infinite;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .deville-alerte-inner {
        padding: 18px;
    }

    .deville-alerte-row {
        flex-direction: column;
    }

    .deville-alerte-input {
        min-width: 100%;
    }

    .deville-alerte-btn {
        width: 100%;
        justify-content: center;
    }

    .deville-alerte-icon {
        display: none;
    }
}
