/* Variables de couleurs */
:root {
    --primary-color: #f69314;
    --primary-hover: #e88609;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --background-light: #f8f8f8;
    --white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* All Annonces Page Styles */

/* Section Title */
.section-title {
    font-family: 'Yeseva One', cursive;
    color: #01083B;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Filters Section */
.filters-section {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    font-family: 'Yeseva One', cursive;
    color: #01083B;
    margin-bottom: 5px;
    display: block;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Libre Baskerville', serif;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 147, 20, 0.1);
}

.filter-select option {
    font-weight: normal;
    padding: 10px;
}

.filter-button {
    font-family: 'Yeseva One', cursive;
    background-color: #F7A73E;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-button:hover {
    background-color: #f8b55f;
}

/* Announcements Grid */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.announcement-card {
    position: relative;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border-color);
    font-family: 'Libre Baskerville', serif;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    padding: 1.5rem;
    padding-top: 3rem;
    padding-right: 5rem;
}

.announcement-meta {
    margin-top: 2rem;
    font-family: 'Libre Baskerville', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.announcement-price {
    font-family: 'Yeseva One', cursive;
    color: #F7A73E;
    font-size: 1.2rem;
    font-weight: bold;
}

.announcement-date {
    color: var(--text-light);
}

.announcement-description {
    margin: 15px 0;
    line-height: 1.6;
    font-family: 'Libre Baskerville', serif;
}

.announcement-details {
    font-family: 'Libre Baskerville', serif;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.announcement-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.announcement-details i {
    color: #F7A73E;
}

/* Modal Styles */
.modal-content {
    font-family: 'Libre Baskerville', serif;
    border-radius: 10px;
    border: none;
    max-height: 90vh;
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.annonce-details {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.annonce-details-wrapper {
    position: relative;
    filter: none;
    transition: filter 0.3s ease;
}

.annonce-details-wrapper.blurred {
    filter: blur(2px);
    pointer-events: none;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.51);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.btn-login-redirect {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    background-color: #F7A73E;
    border-color: #F7A73E;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(247, 167, 62, 0.3);
}

.btn-login-redirect:hover {
    background-color: #e88609;
    border-color: #e88609;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(247, 167, 62, 0.4);
}

.annonce-source {
    font-family: 'Yeseva One', cursive;
    color: #F7A73E;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.annonce-text {
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

/* Pagination Styles */
.pagination-modern {
    margin-top: 40px;
}

.page-link {
    font-family: 'Libre Baskerville', serif;
    color: #01083B;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 5px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f8b55f;
    color: white;
    border-color: #f8b55f;
}

.page-link.active {
    background-color: #F7A73E;
    border-color: #F7A73E;
    color: white;
}

.page-link.dots {
    border: none;
    padding: 8px 5px;
}

/* Empty State */
.text-center.py-5 {
    padding: 3rem 0;
}

.text-center.py-5 i {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Badges */
.announcement-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

.badge-new {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-featured {
    background: #fff3e0;
    color: var(--primary-color);
}

/* Promotion Badge */
.badge-promotion {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F7A73E;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(247, 167, 62, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.badge-promotion i {
    font-size: 0.9rem;
}

.announcement-card:hover .badge-promotion {
    background: #f69314;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .announcements-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-section .row > div {
        margin-bottom: 1rem;
    }

    .filter-button {
        margin-top: 10px;
    }

    .announcement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

body.all-annonces-page #all-lots-section {
    margin-top: 0 !important;
    padding-top: 40px !important; /* Ajustez selon la hauteur de votre nav */
}

/* Style moderne pour le popup d'alerte personnalisé */
#alertModal .modal-content {
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 0.5rem 0 1.5rem 0;
}
#alertModal .modal-header {
    border-bottom: none;
    background: #f8f9fa;
    border-radius: 1.2rem 1.2rem 0 0;
    padding-top: 1.2rem;
    padding-bottom: 0.5rem;
}
#alertModal .form-select {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-size: 1.08rem;
    padding: 0.6rem 1.2rem;
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#alertModal .form-select:focus {
    border-color: #F7A73E;
    box-shadow: 0 0 0 2px #ffe5c2;
    background-color: #fff;
}
#alertModal .form-select option {
    padding: 0.5rem 1rem;
}
#alertModal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
    letter-spacing: 0.01em;
}
#alertModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
#alertModal .form-group,
#alertModal .mb-3 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem !important;
}
#alertModal .form-select,
#alertModal input[type="date"] {
    width: 260px;
    min-width: 160px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#alertModal .row {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 0.5rem;
}
#alertModal .col-md-6 {
    flex: 1 1 0;
    padding: 0;
}
#alertModal .form-check {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.2rem;
}
#alertModal .modal-footer {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
#alertModal .form-check-label {
    color: #555;
    font-size: 1rem;
}
#alertModal .btn-primary {
    background: #F7A73E;
    border: none;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.6rem 1.5rem;
    transition: background 0.2s;
}
#alertModal .btn-primary:hover, #alertModal .btn-primary:focus {
    background: #e08c1f;
}
#alertModal .btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 0.7rem;
    font-weight: 500;
    font-size: 1.08rem;
    padding: 0.6rem 1.5rem;
    transition: background 0.2s;
}
#alertModal .btn-secondary:hover, #alertModal .btn-secondary:focus {
    background: #495057;
}
#alertModal .modal-title {
    text-align: center;
    width: 100%;
} 