/*!
Theme Name: Kadence
Theme URI: https://www.kadencewp.com/kadence-theme/
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: Kadence Theme is a lightweight yet full featured WordPress theme for creating beautiful fast loading and accessible websites, easier than ever. It features an easy to use drag and drop header and footer builder to build any type of header in minutes. It features a full library of gorgeous starter templates that are easy to modify with our intelligent global font and color controls. With extensive integration with the most popular 3rd party plugins, you can quickly build impressive ecommerce websites, course websites, business websites, and more.
Version: 1.3.4
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence
Requires at least: 6.3
Tested up to: 6.8.2
Tags: translation-ready, accessibility-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share
what you've learned with others.
*/

/*
Theme Name: Kadence Child
Theme URI: https://www.latisee.com
Description: Thème enfant pour Kadence
Author: Sylvain Bourdeau
Template: kadence
Version: 1.0
*/

/* ====== INDEX (section "Derniers articles" rendue par ton shortcode) ====== */
.dernier-articles {
  margin: 3rem auto;
}
.dernier-articles h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 3rem;
}

.dernier-articles .articles-grid {
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* Ajuste si tu veux 4 colonnes sur l’index */
  gap: 24px;
}
.dernier-articles .article-item .thumb,
.dernier-articles .article-item .thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
}
.dernier-articles .article-item .thumb--fallback {
  width: 100%;
  aspect-ratio: 16/9;
  background: #eee;
  border-radius: 12px;
}
.dernier-articles .article-item .meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
.dernier-articles .article-item .title {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.dernier-articles .article-item .excerpt {
  margin: 0;
}
.dernier-articles .read-more-wrap {
  margin-top: 0.4rem;
}
.dernier-articles .read-more {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}
.dernier-articles .read-more:hover,
.dernier-articles .read-more:focus {
  text-decoration: underline;
}

/* Responsive index */
@media (max-width: 1024px) {
  .dernier-articles .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .dernier-articles .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== ACCUEIL (si tu utilises wrap_class="home-latest" dans le shortcode) ====== */
.home .home-latest {
  margin: 3rem 0;
}
.home .home-latest h2 {
  margin-bottom: 1rem;
}

.home .home-latest .articles-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home .home-latest .article-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.home .home-latest .thumb img {
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}
.home .home-latest .excerpt {
  margin: 0.35rem 0 0 0;
}
.home .home-latest .read-more-wrap {
  margin-top: 0.35rem;
}
.home .home-latest .read-more {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.home .home-latest .read-more:hover,
.home .home-latest .read-more:focus {
  text-decoration: underline;
}

@media (max-width: 1400px) {
  .home .home-latest .articles-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1024px) {
  .home .home-latest .articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .home .home-latest .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .home .home-latest .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .home .home-latest .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== PAGE "ARTICLES" (archive Kadence) ====== */
.blog #archive-container.kadence-posts-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 par rangée desktop */
}
.blog .post-thumbnail-inner img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.blog .entry.content-bg.loop-entry {
  border-radius: 12px;
  overflow: hidden;
}

/* Remplacer l’icône par " --> " sur l’archive */
.blog .post-more-link .kadence-svg-iconset {
  display: none;
}
.blog .post-more-link::after {
  content: " -->";
}

/* Responsive archive */
@media (max-width: 1400px) {
  .blog #archive-container.kadence-posts-list {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1200px) {
  .blog #archive-container.kadence-posts-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .blog #archive-container.kadence-posts-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .blog #archive-container.kadence-posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .blog #archive-container.kadence-posts-list {
    grid-template-columns: 1fr;
  }
}

/* Divers */
img {
  border-radius: 10px;
}
.parution-sommaire {
  margin-top: 16px;
}
.parution-actions {
  text-align: center;
}
.btn-parution {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: #00b7e8;
  color: #fff;
  font-weight: 600;
}
.btn-parution:hover {
  opacity: 0.9;
}
