/* Styles de Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* Styles d'en-tête (désactivés) */
header {
    display: none;
}

/* Section Héro */
.hero {
    background: linear-gradient(rgba(0, 44, 132, 0.9), rgba(0, 44, 132, 0.7)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Section Filtres */
.filters {
    padding: 30px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.filters .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f1f3f5;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #002C84;
    color: #fff;
}

.search-container {
    display: flex;
    align-items: center;
}

#search-news {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    width: 250px;
    font-size: 14px;
}

#search-btn {
    background-color: #002C84;
    color: #fff;
    padding: 10px 15px;
    border-radius: 0 30px 30px 0;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background-color: #001f5e;
}

/* Grille d'Actualités */
.news-grid {
    padding: 50px 0;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-category.academic { background-color: #4cc9f0; color: #fff; }
.news-category.events { background-color: #f72585; color: #fff; }
.news-category.conference { background-color: #7209b7; color: #fff; }
.news-category.student { background-color: #002C84; color: #fff; }

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #adb5bd;
}

.read-more {
    color: #002C84;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Section Newsletter */
.newsletter {
    background-color: #002C84;
    color: #fff;
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

#newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

#newsletter-form button {
    background-color: #333;
    color: #fff;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#newsletter-form button:hover {
    background-color: #222;
}

/* Pied de page (désactivé) */
footer {
    display: none;
}

/* Styles Responsifs */
@media (max-width: 992px) {
    /* Styles responsifs pour les grands écrans */
    .hero-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* Styles responsifs pour les écrans moyens */
    .filters .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        width: 100%;
    }
    
    #search-news {
        width: 100%;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    #newsletter-form button {
        border-radius: 5px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    /* Styles responsifs pour les petits écrans */
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Animation de Chargement */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #002C84;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Aucun Résultat */
.no-results {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f1f3f5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: #002C84;
    color: #fff;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.modal-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-share h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.email { background-color: #ea4335; }

/* Bouton Retour en Haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #002C84;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #001f5e;
    transform: translateY(-5px);
}