/* --- CARROUSEL HÉRO --- */
.hero-carousel-wrapper { position: relative; width: 100%; height: 550px; overflow: hidden; background: #000; }
.hero-carousel { width: 100%; height: 100%; position: relative; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: flex-end; z-index: 1; }
.carousel-slide.active { opacity: 1; z-index: 2; }
.carousel-content { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%); color: white; padding: 60px 10%; width: 100%; }
.carousel-content h1 { font-size: 2.5rem; margin-bottom: 15px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.post-meta { font-size: 0.95rem; margin-bottom: 15px; display: flex; gap: 20px; color: #ffd700; }
.carousel-summary { font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px; max-width: 800px; color: #e0e0e0; }
.btn-read { background: #003366; color: #fff; padding: 12px 30px; display: inline-block; text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s; }
.btn-read:hover { background: #00509e; }

.carousel-controls { position: absolute; bottom: 40px; right: 5%; z-index: 10; display: flex; gap: 15px; }
.carousel-btn { background: rgba(0, 0, 0, 0.6); color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s ease; }
.carousel-btn:hover { background: #ffd700; color: #003366; border-color: #ffd700; transform: scale(1.1); }

/* --- LAYOUT GLOBAL --- */
.home-layout { display: grid; grid-template-columns: 1fr 350px; gap: 40px; padding: 50px 5%; max-width: 1300px; margin: 0 auto; }
.filter-bar { margin-bottom: 30px; border-bottom: 2px solid #eaeaea; padding-bottom: 15px; display: flex; gap: 20px; }
.filter-bar a { text-decoration: none; color: #777; font-weight: 600; padding: 5px 10px; transition: 0.3s; }
.filter-bar a.active, .filter-bar a:hover { color: #003366; border-bottom: 2px solid #003366; }

/* --- GRILLE DES ARTICLES --- */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s ease; }
.post-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-content h2 { margin-bottom: 10px; color: #111; font-size: 1.3rem; line-height: 1.3; }
.summary { color: #555; margin-bottom: 20px; line-height: 1.6; font-size: 0.95rem; flex-grow: 1; }
.read-more { display: inline-block; padding: 8px 18px; border: 2px solid #003366; color: #003366; text-decoration: none; border-radius: 4px; font-weight: 600; text-align: center; transition: 0.3s; align-self: flex-start; }
.read-more:hover { background: #003366; color: #fff; }

/* --- SIDEBAR --- */
.sidebar h3 { margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #003366; color: #003366; }
.side-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.side-item img { width: 100px; height: 75px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.side-item h4 { font-size: 0.95rem; line-height: 1.4; color: #333; }

/* =========================================================
   NOUVELLE SECTION : VOUS AVEZ PEUT-ÊTRE MANQUÉ
   ========================================================= */
.missed-posts-section {
    max-width: 1300px;
    margin: 0 auto 60px auto;
    padding: 0 5%;
}

.missed-posts-section h2 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.missed-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.missed-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    /* Masquer la scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.missed-carousel::-webkit-scrollbar { display: none; }

.missed-card {
    flex: 0 0 240px; /* Largeur fixe de la carte */
    display: flex;
    flex-direction: column;
}

.missed-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.missed-meta {
    font-size: 0.75rem;
    color: #777;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.missed-meta span i { margin-right: 5px; }
.comments-count { color: #999; }

.missed-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.3;
}

.missed-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.missed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.missed-tags a {
    font-size: 0.75rem;
    color: #00aaff; /* Couleur bleu ciel de votre maquette */
    text-decoration: none;
}
.missed-tags a:hover { text-decoration: underline; }

/* Flèches de navigation */
.missed-arrow {
    position: absolute;
    top: 35%; /* Centré par rapport à l'image */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.missed-arrow:hover { background: rgba(0, 0, 0, 0.8); }
.prev-missed { left: -15px; }
.next-missed { right: -15px; }


/* --- RESPONSIVE --- */
@media (max-width: 1024px) { .home-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .hero-carousel-wrapper { height: 400px; } 
    .posts-grid { grid-template-columns: 1fr; } 
    .missed-arrow { display: none; } /* On masque les flèches sur mobile car on peut scroller au doigt */
}

.post-meta-header { font-size: 0.8rem; color: #888; display: flex; justify-content: space-between; margin-bottom: 10px; }
.post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.comment-count { font-size: 0.85rem; color: #555; }
.author small { font-style: italic; color: #aaa; }



/* --- SECTION : INFORMATIONS PRIORITAIRES (LAYOUT VERTICAL ÉPURÉ) --- */

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espace large entre les articles pour aérer */
    margin-top: 30px;
}

/* Carte de l'article */
.priority-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-bottom: 1px solid #e0e0e0; /* La fameuse barre de séparation grise */
    padding-bottom: 30px;
}

/* Image */
.priority-img-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Hauteur harmonisée */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.priority-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.priority-card:hover .priority-img-wrapper img {
    transform: scale(1.02); /* Effet zoom subtil */
}

/* Badge Priorité */
.badge-priority {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d32f2f; /* Rouge professionnel */
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 2;
}

/* Contenu textuel */
.priority-content h3 {
    font-size: 1.6rem;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Métadonnées (Date, Rédacteur) */
.post-meta-detailed {
    font-size: 0.85rem;
    color: #757575;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    font-style: italic;
}

.meta-item i {
    margin-right: 6px;
    color: #d32f2f; /* Rappel du rouge du badge */
}

/* Paragraphe résumé */
.priority-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limite à 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lien Lire la suite */
/*.read-more {
    display: inline-block;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #000;
    text-decoration: underline;
}*/

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .priority-img-wrapper {
        height: 220px; /* Plus petit sur mobile */
    }
    .priority-content h3 {
        font-size: 1.3rem;
    }
}


/* Widget latéral "Les plus lus" */
.side-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee; /* Ligne de séparation discrète */
}

.side-item:last-child {
    border-bottom: none; /* Enlève la ligne pour le dernier élément */
}

/* Vignette de l'image */
.side-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.side-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.side-content h4 a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.side-content h4 a:hover {
    color: #d32f2f; /* Rouge au survol */
}

/* Compteur de vues */
.side-views {
    font-size: 0.8rem;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.side-views i {
    color: #d32f2f;
}



/* Rend le lien invisible visuellement mais actif sur toute la carte */
.missed-card-link {
    text-decoration: none;
    color: inherit; /* Conserve la couleur d'origine du texte */
    display: block;
    height: 100%;
}

/* Optionnel : Un effet de zoom léger sur l'image au survol de la carte */
.missed-card {
    overflow: hidden;
}

.missed-card:hover img {
    transform: scale(1.04);
    transition: transform 0.3s ease;
}

.missed-card img {
    transition: transform 0.3s ease;
}

/* Optionnel : Changement de couleur du titre au survol */
.missed-card:hover .missed-title {
    color: #d32f2f; /* Ou votre couleur principale */
    transition: color 0.2s ease;
}



/* Conteneur principal en ligne */
.missed-meta-inline {
    display: flex;
    align-items: center;
    gap: 12px; /* Espace horizontal entre chaque bloc d'info */
    font-size: 0.78rem;
    color: #777;
    margin-top: 8px;
    white-space: nowrap; /* Force la donnée à rester sur une seule ligne */
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long pour la carte */
}

/* Style de chaque élément (icône + texte) */
.missed-meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.missed-meta-inline i {
    color: #d32f2f; /* Rappel de la couleur accent */
}

/* Style spécifique pour le rédacteur dans la ligne */
.missed-meta-inline .meta-author {
    font-style: italic;
    color: #666;
    /* Optionnel : décommentez la ligne ci-dessous si vous voulez pousser le nom du rédacteur tout à droite de la carte */
    /* margin-left: auto; */
}

.meta-author {
    font-style: italic;
    color: #666;
    font-size: 13px;
    /* Optionnel : décommentez la ligne ci-dessous si vous voulez pousser le nom du rédacteur tout à droite de la carte */
    /* margin-left: auto; */
}

/* Ajustement mineur du titre pour laisser respirer la ligne du bas */
.missed-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 10px 0 2px 0;
    font-weight: 600;
}