.annonces-page {
    padding: 40px 0;
    background: #f8f9fa;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #334D6C;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #5a5a5c;
}


.filters-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #5a5a5c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #334D6C;
    border-color: #334D6C;
    color: white;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #334D6C;
    outline: none;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a5a5c;
}


.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.annonce-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.annonce-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.annonce-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.annonce-badge-officielle {
    background: #F97316;
    color: white;
}

.annonce-badge-evenement {
    background: #28a745;
    color: white;
}

.annonce-badge-academique {
    background: #007bff;
    color: white;
}

.annonce-badge-international {
    background: #6f42c1;
    color: white;
}

.annonce-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.annonce-card:hover .annonce-image img {
    transform: scale(1.1);
}

.annonce-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.annonce-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #334D6C;
}

.annonce-date .month {
    display: block;
    font-size: 0.9rem;
    color: #F97316;
    font-weight: 600;
}

.annonce-content {
    padding: 25px;
}

.annonce-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #334D6C;
    margin-bottom: 12px;
    line-height: 1.4;
}

.annonce-excerpt {
    color: #5a5a5c;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.annonce-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #8a8a8a;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F97316;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 12px;
    color: #334D6C;
}


.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #5a5a5c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: #334D6C;
    border-color: #334D6C;
    color: white;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    border-color: #334D6C;
    color: #334D6C;
}

.pagination-info {
    color: #5a5a5c;
    font-size: 0.9rem;
}

.newsletter-card {
    background: linear-gradient(135deg, #334D6C 0%, #2c3e50 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(51, 77, 108, 0.3);
}

.newsletter-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    width: 300px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.subscribe-btn {
    background: #F97316;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: #fd7e14;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .annonces-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .annonce-content {
        padding: 20px;
    }
    
    .annonce-meta {
        flex-direction: column;
        gap: 10px;
    }
}