/* Styles Responsive Améliorés pour le Blog */
.body {
    font-family: Arial, sans-serif;
    background: url(../images/blog2.png) no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
    padding: 40px 20px;
    width: 100% !important;
    box-sizing: border-box;
}
/* 
.tu {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
} */

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-subtitle {
    color: #ffa000;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    color: #020202;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: 1fr repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    width: 100%;
}

.cardd {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardd:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.904);
}

.cardd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
            filter: blur(5px);
    display: block;
    transition: transform 0.5s ease;
}

.cardd:hover img {
    transform: scale(1.05);
}

/* Carte principale sur la gauche */
.cardd.big {
    grid-row: 1 / 3;
}

/* Positionnement de l'auteur */
.author {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffa000;
    color: #000;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
    font-size: 0.9em;
}

/* Auteur spécifique pour la carte BIG */
.cardd.big .author {
    top: auto;
    bottom: 15px;
    left: 15px;
    right: auto;
    border-radius: 0 5px 5px 0;
    padding: 5px 15px 5px 10px;
}

.content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(
        to top,
        /* rgba(0, 0, 0, 0.9) 30%,
        rgba(0, 0, 0, 0.7) 60%, */
        transparent
    );
    color: #fff;
    padding: 20px 15px;
    box-sizing: border-box;
    z-index: 5;
}

.cardd.big .content {
    padding-top: 50px;
    background: linear-gradient(
        to top,
        /* rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 30%, */
        transparent 60%
    );
}

.cardd.big .content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.content h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

.content p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.category {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #f5f5f5;
    font-weight: 600;
}

.category i {
    color: #ffa000;
    margin-right: 5px;
    font-size: 0.9em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.tags i {
    /* content: "\f084";
    font-family: "Font Awesome 6 Solid"; */
    color: #ffa000;
    /* font-size: 0.9rem;
    margin-right: 3px;
    font-weight: 900; */
}

.tag {
    color: #f5f5f5;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.9;
}

.tag::after {
    content: "...";
}

.tags .tag:nth-child(5)::after {
    content: "";
}

/* Media Queries Améliorées */
@media (max-width: 1200px) {
    .tu {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 30px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .cardd.big {
        grid-row: auto;
        grid-column: 1 / -1;
        height: 400px;
    }
    
    .cardd.big .author {
        top: 15px;
        bottom: auto;
        left: auto;
        right: 15px;
        border-radius: 5px;
    }
    
    .cardd.big .content {
        padding-top: 20px;
        /* background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent); */
    }
    
    .cardd.big .content h3 {
        font-size: 1.5rem;
    }
    
    .content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .body {
        background-attachment: scroll;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cardd {
        height: 300px;
    }
    
    .cardd.big {
        height: 350px;
    }
    
    .cardd.big .content h3 {
        font-size: 1.3rem;
    }
    
    .content h3 {
        font-size: 1.1rem;
    }
    
    .content {
        padding: 15px 10px;
    }
    
    .author {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 5px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .grid {
        gap: 12px;
    }
    
    .cardd {
        height: 250px;
    }
    
    .cardd.big {
        height: 280px;
    }
    
    .cardd.big .content h3 {
        font-size: 1.1rem;
    }
    
    .content h3 {
        font-size: 1rem;
    }
    
    .content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .category {
        font-size: 0.75rem;
    }
    
    .tags {
        gap: 3px;
    }
    
    .tag {
        font-size: 0.75rem;
    }
    
    .author {
        font-size: 0.75em;
        padding: 3px 6px;
    }
}

@media (max-width: 360px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .cardd {
        height: 220px;
    }
    
    .cardd.big {
        height: 250px;
    }
    
    .content {
        padding: 12px 8px;
    }
    
    .cardd.big .content h3 {
        font-size: 1rem;
    }
}

/* Amélioration de la lisibilité sur petits écrans */
@media (max-width: 768px) {
    .content {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 20%,
            rgba(0, 0, 0, 0.8) 50%,
            transparent
        );
    }
}

/* Correction pour les très grands écrans */
@media (min-width: 1600px) {
    .tu {
        max-width: 1400px;
    }
    
    .grid {
        grid-template-rows: repeat(2, 350px);
    }
}