/* --- SLIDER (carré) --- */
.articles-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
@media (max-width: 768px) {
    .articles-nav .swiper-button-prev, .articles-nav .swiper-button-next {
        width: 24px !important;
        height: 24px !important;
    }
}

.articles-swiper .swiper-slide {
    flex-shrink: 0;
    width: auto;
    max-width: 295px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    box-sizing: border-box;
}

@media (min-width: 600px) {
  .articles-swiper .swiper-slide { width: 50%; }
}
@media (min-width: 900px) {
  .articles-swiper .swiper-slide { width: 33.3333%; }
}
@media (min-width: 1200px) {
  .articles-swiper .swiper-slide { width: 25%; }
}
/* Plus de max-width qui casse la largeur fixe */
.article-item {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px;
    border-radius:15px;
}

/* Conteneur carré */
.article-img-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius:15px;
}

/* L’image remplit le carré */
.article-img-wrap img {
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius:15px;
}

/* Carte flottante (carrée) */
.article-overlay-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 16px 22px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    color: #111;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.article-overlay-title {
    color:var(--ast-global-color-8) !important;
    font-size: 1.1em !important;
    margin-bottom: 5px !important;
}
.article-overlay-date {
    display: block;
    font-size: .80rem !important;
    color: #555;
    margin-bottom: 0;
}

.article-clickable { display: block; color: inherit; text-decoration: none; }
.article-clickable:hover .article-overlay-card {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(0,0,0,.18);
}

/* Bandes transparentes + flèches */
.articles-nav {
    position: absolute;
    top: 0;
    width: 4%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.articles-nav-prev {
    left: 0;
    background: rgba(0,0,0,0.1);
}
.articles-nav-next {
    right: 0;
    background: rgba(0,0,0,0.1);
}
.articles-nav .swiper-button-prev,
.articles-nav .swiper-button-next {
    position: static;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    pointer-events: auto;
    transition: transform .15s;
}
.articles-nav .swiper-button-prev:after,
.articles-nav .swiper-button-next:after {
    content: none !important;
}
.articles-nav .swiper-button-prev:hover,
.articles-nav .swiper-button-next:hover { transform: scale(1.07); }

/* Bullets */
.articles-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,.6);
    opacity: 1;
}
.articles-swiper .swiper-pagination-bullet-active { background: #111; }

.articles-swiper .swiper-pagination {
    display: none !important;
}

/* --- GRILLE (inchangée) --- */
.articles-grid-wrapper { width: 100%; }
.articles-filter-form { margin-bottom: 20px; display: flex; gap: 10px; }
.articles-grid { display: grid; gap: 20px; }
.articles-grid-wrapper[data-columns="2"] .articles-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.articles-grid-wrapper[data-columns="3"] .articles-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.articles-grid-wrapper[data-columns="4"] .articles-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.article-card { border-radius: 15px;border: 1px solid #eee; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.article-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.article-card-img img { width: 100%; height: 180px; object-fit: cover; object-position: top center;}
.article-card-content { padding: 15px; }
.article-card-title { margin: 0 0 8px; font-size: 1.1rem; }
.article-card-date { font-size: 0.85rem; color: #666; }
.articles-pagination { margin-top: 25px; }
.articles-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.articles-pagination li a, .articles-pagination li span {
    display: block; padding: 8px 12px; border: 1px solid #ddd; border-radius: 0; text-decoration: none;
}
.articles-pagination li .current { background: #333; color: #fff; border-color: #333; }

.postform {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #fff;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;         
    padding: 10px 14px;      
    height: auto;  
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

/* Sur focus */
.postform:focus {
    outline: none;
    border-color:transparent;
    box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.2);
}

/* Ajouter une flèche custom */
.postform {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

/* Pour cacher la vraie flèche sur certains navigateurs */
select::-ms-expand {
    display: none;
}