/* Styles pour la page Annonces FNM */
:root {
    --fnm-100: #fff3e0;
    --fnm-200: #ffe0b2;
    --fnm-300: #ffcc80;
    --fnm-400: #ffb74d;
    --fnm-500: #ffa726;
    --fnm-600: #fb8c00;
    --fnm-700: #f57c00;
    --fnm-800: #ef6c00;
    --fnm-900: #e65100;
}

.announcements-container {
    background-color: #fff;
    position: relative;
    min-height: 100vh;
}

.announcements-header {
    background: linear-gradient(to right, var(--fnm-700), var(--fnm-900));
    color: #fff;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.announcements-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/pattern-dots.png');
    background-size: 100px;
    opacity: 0.1;
    z-index: 0;
}

/* Style pour les filtres */
.filter-section {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--fnm-500), var(--fnm-700));
}

.filter-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.filter-title svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.filter-tag:hover {
    border-color: var(--fnm-400);
    color: var(--fnm-700);
    transform: translateY(-1px);
}

.filter-tag.active {
    background-color: var(--fnm-500);
    border-color: var(--fnm-500);
    color: white;
    box-shadow: 0 2px 5px rgba(245, 124, 0, 0.2);
}

.filter-tag svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.filter-reset {
    background-color: transparent;
    border: none;
    color: var(--fnm-600);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.filter-reset:hover {
    color: var(--fnm-800);
    text-decoration: underline;
}

.filter-reset svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

/* Style pour les cartes d'annonces */
.announcement-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--fnm-500), var(--fnm-700));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-card:hover::before {
    opacity: 1;
}

.announcement-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.announcement-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--fnm-800);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.announcement-badge.high {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}

.announcement-badge.medium {
    background-color: rgba(245, 158, 11, 0.9);
    color: white;
}

.announcement-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.announcement-category {
    display: inline-block;
    background-color: var(--fnm-100);
    color: var(--fnm-800);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.announcement-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.announcement-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
}

.announcement-date {
    display: flex;
    align-items: center;
}

.announcement-date svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.announcement-museum {
    display: flex;
    align-items: center;
}

.announcement-museum svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    color: var(--fnm-600);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: color 0.2s ease;
}

.announcement-link:hover {
    color: var(--fnm-800);
}

.announcement-link svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.announcement-link:hover svg {
    transform: translateX(3px);
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        overscroll-behavior-x: contain;
    }
    
    /* Styles pour les barres de défilement sur WebKit (Chrome, Safari) */
    .filter-tags::-webkit-scrollbar {
        height: 6px;
    }
    
    .filter-tags::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .filter-tags::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }
    
    .filter-tags::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }
    
    .filter-tag {
        flex-shrink: 0;
    }
    
    .announcement-image {
        height: 150px;
    }
}

/* Style pour la page de détail */
.announcement-detail {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.announcement-detail-header {
    margin-bottom: 2rem;
    position: relative;
}

.announcement-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.announcement-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.announcement-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.announcement-detail-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.announcement-detail-meta-item svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    color: var(--fnm-600);
}

.announcement-detail-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.announcement-detail-content p {
    margin-bottom: 1.5rem;
}

.announcement-detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-detail-back {
    display: inline-flex;
    align-items: center;
    color: var(--fnm-600);
    font-weight: 500;
    transition: color 0.2s ease;
}

.announcement-detail-back:hover {
    color: var(--fnm-800);
}

.announcement-detail-back svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}
