/* Styles spécifiques pour la page d'accueil */

/* Fix pour la section news avec Bootstrap */
.news-section .container {
    max-width: 1200px;
}

/* Override Bootstrap row class in news section */
.news-section .row {
    display: flex;
    margin-right: -15px;
    margin-left: -15px;
}

/* News layout grid sans conflit Bootstrap */
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    width: 100%;
}

.news-main {
    min-width: 0; /* Prevent content overflow */
}

.news-aside {
    min-width: 0; /* Prevent content overflow */
}

/* Ensure proper spacing */
.news-section h2 {
    font-size: 32px;
    color: #00587C;
    margin-bottom: 30px;
}

/* News grid for communiques */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Publish zone in aside */
.publish-zone {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publish-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.publish-item:hover {
    background: #009FDA;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.publish-item:hover i,
.publish-item:hover h3,
.publish-item:hover p,
.publish-item:hover .btn {
    color: #fff;
}

.publish-item i {
    font-size: 48px;
    color: #00587C;
    margin-bottom: 15px;
    display: block;
}

.publish-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.publish-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.publish-item .btn {
    display: inline-block;
    padding: 8px 20px;
    background: #00587C;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.publish-item:hover .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-aside {
        order: -1; /* Put aside content first on mobile */
    }
    
    .publish-zone {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .publish-zone {
        grid-template-columns: 1fr;
    }
    
    .publish-item {
        padding: 20px;
    }
    
    .publish-item i {
        font-size: 36px;
    }
    
    .publish-item h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .news-layout {
        gap: 20px;
    }
    
    .news-section h2 {
        font-size: 24px;
    }
}