/* === BODY & WRAPPER === */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;

}

body::before {
  content: "";
  position: fixed;       /* couvre tout l’écran, même au scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/Images/Login/600.png") center/cover no-repeat;
  opacity: 0.7;          /* 60 % d’opacité sur l’image seule */
  z-index: -1;           /* derrière tout le contenu */
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    display: block;
    object-position: center;
    border-radius: 10px;
    transition: object-fit 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

.swiper-pagination-bullet {
    background: #bbb;
}

.swiper-pagination-bullet-active {
    background: #3366ff;
}

.news-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* === HEADER BAR === */
.news-header-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-left: 4px solid #b9bbc3;
}

.news-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #0036ff;
    margin: 0;
}

.news-search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.news-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* === GRILLES === */
.top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* === CARTES MODERNES === */
.card-main,
.card-side,
.card-small {
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #b9bbc3;
    transition: all 0.3s ease-in-out;
}

.card-main:hover,
.card-side:hover,
.card-small:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-left-color: #8a8a8a;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-position: center center;
    display: block;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

    /* Optimisation de la qualité */
    image-rendering: -webkit-optimize-contrast; /* Chrome/WebKit */
    image-rendering: crisp-edges;               /* fallback */
    image-rendering: high-quality;              /* compatibilité générale */

    /* Optionnel : pour garder un bon ratio visuel */
    aspect-ratio: 2.45 / 1;
}

.card-body {
    padding: 16px;
}

.card-body h2,
.card-body h3,
.card-body h4 {
    margin: 10px 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.card-body p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* === META & LIEN === */
.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 12px;
}

.read-more {
    color: #0036ff;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* === IMAGES FIXÉES === */
#img_principale {
    height: 300px !important;
}

#img_droit {
    height: 300px !important;
}

/* === BADGES (si utilisés) === */
.badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.badge-main {
    background-color: #1e40af;
    color: white;
}

.badge-type {
    background-color: #6b7280;
    color: white;
}

/* === ✅ RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .top-grid {
        grid-template-columns: 1fr;
    }

    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-search-input {
        width: 100%;
        margin-top: 10px;
    }

    .news-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .card-image img,
    #img_principale,
    #img_droit {
        height: 200px !important;
    }

    .news-title {
        font-size: 18px;
    }

    .card-body h2,
    .card-body h3,
    .card-body h4 {
        font-size: 1rem;
    }
}


.swiper-slide img {
    width: 100%;
    height: 400px;
    object-position: center center;
    display: block;
    border-radius: 10px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

    /* Optimisation qualité */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;

    transition: object-fit 0.3s ease;
}

/* Pagination stylée */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #3366ff;
}

.swiper-container {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f0f0f0;
    border-radius: 14px;
    transition: opacity 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ✅ Pagination placée dans le cadre */
/* === PAGINATION === */
.pagination-wrapper{
    margin-top:40px;
    display:flex;
    justify-content:center;
}

.pagination-wrapper nav{
    display:flex;
}

.pagination-wrapper nav .page-item + .page-item{
    margin-left:8px;
}
