/* === STYLES GÉNÉRAUX POUR TOUTES LES PUBLICATIONS === */
.publications-section {
    padding: 40px 20px;
    background: #f5f5f5;
    margin: 30px 0;
}

.publications-section:nth-child(even) {
    background: white;
}

/* En-têtes */
.publications-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}

.publications-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
}

.publications-header p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Grille de publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Carte de publication */
.publication-card {
    background: white;
    border: 3px solid #ce8215;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(206,130,21,0.3);
}

.publication-badge {
    padding: 8px 15px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.publication-content {
    padding: 25px;
}

.publication-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.publication-text {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin: 0 0 20px 0;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

/* === COULEURS SPÉCIFIQUES PAR TYPE === */

/* Condoléances */
#condoleances-container .publications-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
}

/* Communiqués */
#communiques-container .publications-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Remerciements */
#remerciements-container .publications-header {
    background: linear-gradient(135deg, #ce8215 0%, #d4921f 100%);
}

/* Témoignages */
#temoignages-container .publications-header {
    background: linear-gradient(135deg, #4B0082 0%, #6A0DAD 100%);
}

/* Messes */
#messes-container .publications-header {
    background: linear-gradient(135deg, #6A0DAD 0%, #8B2C9F 100%);
}

/* Zone spéciale pour les informations de messe */
.ceremony-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.ceremony-info p {
    margin: 5px 0;
}

/* États de chargement */
.loading {
    text-align: center;
    padding: 60px;
    color: #666;
}

.empty {
    text-align: center;
    padding: 60px;
    color: #999;
    font-style: italic;
}

/* Spinner de chargement */
.loading::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(206,130,21,0.3);
    border-radius: 50%;
    border-top-color: #ce8215;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
    .publications-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .publications-header h2 {
        font-size: 22px;
    }
    
    .publication-content {
        padding: 20px;
    }
}