/*
Template:       neeon
Theme Name:     Neeon Child Theme
Theme URI:      http://radiustheme.com/demo/wordpress/themes/neeon
Author:         RadiusTheme
Author URI:     http://radiustheme.com
Description:    Neeon is a Responsive News, Blog & Magazine WordPress Theme.
Version:        1.0
Text Domain:    Neeon
Tags: theme-options, featured-images, post-formats, one-column, two-columns, right-sidebar, custom-background, custom-header, editor-style, sticky-post, threaded-comments, translation-ready
License:   	  Envato split License
License URI:  https://themeforest.net/licenses/terms/regular
*/

/* ====== Mise en page articles ====== */
.magazine-layout {
  margin-top: 30px;
}

.article-card {
  background: #fff;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
}

.article-title {
  font-size: 18px;
  margin: 10px 0;
}

.excerpt {
  color: #555;
  font-size: 14px;
}

/* Couleurs par catégorie */
.category-economie .article-card {
  background-color: #f9f9f9;
  border-color: #cfcfcf;
}

.category-environnement .article-card {
  background-color: #e8f5e9; /* vert clair pour environnement */
  border-color: #c8e6c9;
}

/* ====== Footer ====== */
.site-footer {
  background: #222;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #07853B;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}
.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 14px;
}

/* ====== Carrousel ====== */
.carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
}

/* ====== Grille ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.grid-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
}

/* ====== Responsive ====== */
@media(max-width:768px){
  .pub { font-size: 14px; padding: 15px 0; }
}

/* ====== Publicité ====== */
.pub {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== Liens articles ====== */
.article-title a:hover {
  color: #0B8137;
}

/* ====== Cartes & images ====== */
.card-hover img {
  object-fit: cover;
  height: 200px;
  width: 100%;
}

/* Uniformiser toutes les images d’article et position relative pour badge */
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;       /* hauteur uniforme pour toutes les cartes */
  overflow: hidden;    /* coupe ce qui dépasse */
  border-radius: 8px;
  margin: 0;
  padding: 0;
}

.card-img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* recadrage uniforme */
}

/* ====== Badge catégorie collé en haut à gauche ====== */
.category-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #0B8137;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 0 0 4px 0; /* arrondi seulement en bas à droite */
    z-index: 10;
    text-transform: uppercase;
    margin: 0 !important; /* aucun décalage */
}
/* Masquer breadcrumb uniquement dans la catégorie "À la une" */
.category-a-la-une .breadcrumb-area {
    display: none !important;
}





