/**
 * Styles pour la section des nouvelles sur la page d'accueil
 */

.omc-nouvelles-home-section {
    width: 100%;
    padding: 80px 20px;
    background-color: #fff;
}

.omc-nouvelles-header {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.omc-nouvelles-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.omc-nouvelles-view-all {
    font-size: 14px;
    color: #8b6f47;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.omc-nouvelles-view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #8b6f47;
    transition: width 0.3s ease;
}

.omc-nouvelles-view-all:hover {
    color: #6b5433;
}

.omc-nouvelles-view-all:hover::after {
    width: 100%;
}

/* Grille de cartes */
.omc-nouvelles-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Carte individuelle */
.omc-nouvelle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    min-height: 200px;
}

.omc-nouvelle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.omc-nouvelle-card-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Contenu principal */
.omc-nouvelle-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.omc-nouvelle-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.omc-nouvelle-card:hover .omc-nouvelle-card-title {
    color: #8b6f47;
}

/* Image : dimensions fixes pour un rendu identique sur chaque carte */
.omc-nouvelle-image {
    width: 100%;
    min-height: 150px;
    max-height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.omc-nouvelle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.omc-nouvelle-card:hover .omc-nouvelle-image img {
    transform: scale(1.05);
}


.omc-nouvelles-empty {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 968px) {
    .omc-nouvelles-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .omc-nouvelles-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .omc-nouvelles-home-section {
        padding: 60px 15px;
    }
    
    .omc-nouvelles-header {
        margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .omc-nouvelles-title {
        font-size: 32px;
    }
    
    .omc-nouvelles-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .omc-nouvelle-card {
        min-height: 180px;
    }
    
    .omc-nouvelle-content {
        padding: 20px;
    }
    
    .omc-nouvelle-card-title {
        font-size: 16px;
    }
    
    .omc-nouvelle-image {
        min-height: 120px;
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .omc-nouvelles-home-section {
        padding: 40px 15px;
    }
    
    .omc-nouvelles-title {
        font-size: 28px;
    }
    
    .omc-nouvelle-card {
        flex-direction: column;
        min-height: auto;
    }
}

