/* Styles pour la page de blog NEOPOLIS */

/* Outils du blog (recherche et filtres) */
.blog-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 400px;
    margin-right: 15px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    margin: 0;
}

.categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 15px 0;
}

.categories span {
    margin-right: 10px;
    font-weight: 600;
}

.categories a {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.categories a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.categories a.active {
    background-color: #0056b3;
    color: white;
}

.reset-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background-color: #f0f0f0;
}

.reset-filters i {
    margin-right: 5px;
}

/* Message pas de résultats */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

/* Animation de transition pour les articles */
.article-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link.active {
    background-color: #0056b3;
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 15px;
}

.page-link:hover:not(.active) {
    background-color: #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-tools {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .categories {
        margin-bottom: 15px;
    }
    
    .reset-filters {
        align-self: flex-start;
    }
}

/* Styles pour la page en construction */
.construction-badge {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.construction-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #ff9800;
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 4px;
    text-align: center;
}

.construction-icon {
    margin-bottom: 20px;
}

.construction-icon i {
    font-size: 48px;
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 25px;
    border-radius: 50%;
}

.construction-notice h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.construction-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.5;
    font-size: 18px;
}

/* Cartes de thématiques */
.coming-topics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0;
}

.topic-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.topic-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0056b3;
    background-color: rgba(0, 86, 179, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.topic-card h3 {
    margin: 10px 0;
    color: #333;
    font-size: 20px;
}

.topic-card p {
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
    font-size: 15px;
}

.coming-soon {
    font-size: 18px;
    margin: 25px auto 15px;
    color: #0056b3;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    padding: 15px 0;
}

.construction-date {
    font-style: italic;
    color: #777;
    font-size: 14px;
    margin-top: 15px;
}

/* Responsive pour les cartes de thématiques */
@media (max-width: 992px) {
    .coming-topics {
        gap: 20px;
    }
    
    .topic-card {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .coming-topics {
        flex-direction: column;
        align-items: center;
    }
    
    .topic-card {
        width: 100%;
        max-width: 400px;
    }
}

.placeholder-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 10px;
}

.article-placeholder .btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #777;
}

.construction-articles {
    opacity: 0.8;
}

/* Newsletter */
.blog-newsletter {
    background: linear-gradient(135deg, #0056b3, #003366);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
}

.blog-newsletter h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.blog-newsletter p {
    margin-bottom: 25px;
    opacity: 0.9;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.5;
}

.newsletter-form .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
}

/* Animation pour le message "Revenez nous voir" */
@keyframes highlight-text {
    0% {
        transform: scale(1);
        color: #0056b3;
    }
    50% {
        transform: scale(1.05);
        color: #ff9800;
    }
    100% {
        transform: scale(1);
        color: #0056b3;
    }
}

.animated-message {
    animation: highlight-text 3s infinite;
    background: linear-gradient(90deg, rgba(0,86,179,0.05) 0%, rgba(255,152,0,0.1) 50%, rgba(0,86,179,0.05) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    position: relative;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.animated-message:before {
    content: '✨';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

.animated-message:after {
    content: '✨';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: bounce 2s infinite;
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.3);
    }
}