/*
 Theme Name: Hello Elementor Child
 Template:   hello-elementor
 Version:    1.0.0
 Text Domain: hello-elementor-child
*/

/* =========================================
   Archive Actualités — En-tête hero
   ========================================= */

body {
    overflow-x: hidden;
}

.archive-hero {
    background-image: linear-gradient(130deg, #1712B0 0%, #00f2ff 89%);
    min-height: 217px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Breakout du container .site-main pour être full width */
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

/* Overlay image à 15% d'opacité (identique à la FAQ) */
.archive-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: url("https://omniplusouest.com/wp-content/uploads/2021/07/BG-contact-hero-New.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.15;
    pointer-events: none;
}

/* Contenu centré par-dessus l'overlay */
.archive-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px 100px;
}

.archive-hero__content h1 {
    font-family: "Varela Round", sans-serif;
    font-size: 60px;
    font-weight: 300;
    color: #fff;
    margin: 0;
}

@media (max-width: 767px) {
    .archive-hero__content h1 {
        font-size: 36px;
    }
}

/* Vague en bas — full width */
.archive-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.archive-hero__wave svg {
    display: block;
    width: calc(260% + 1.3px);
    height: 120px;
    transform: translateX(-50%) rotate(180deg);
}

/* =========================================
   Archive Actualités — Grille responsive
   ========================================= */

/* Variante homepage : 3 col desktop, 2 col tablette, 1 col mobile */
@media (min-width: 768px) and (max-width: 991px) {
    .actualites-grid--home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .actualites-grid--home {
        grid-template-columns: repeat(3, 1fr);
    }
}

.actualites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .actualites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .actualites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Carte actualité */
.actualite-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.actualite-card__image a {
    display: block;
    overflow: hidden;
}

.actualite-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.actualite-card:hover .actualite-card__image img {
    transform: scale(1.04);
}

.actualite-card__image--placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.actualite-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    gap: 12px;
}

.actualite-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
}

.actualite-card__title a {
    color: inherit;
    text-decoration: none;
}

.actualite-card__title a:hover {
    text-decoration: underline;
}

.actualite-card__footer {
    margin-top: auto;
    text-align: center;
}

.actualite-card__btn {
    display: inline-block;
    padding: 8px 22px;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background-color: #00dafc;
    border-radius: 30px;
    text-shadow: rgba(0, 0, 0, 0.3) 0 0 10px;
    box-shadow: rgba(0, 0, 0, 0.5) 0 0 0 0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.actualite-card__btn:hover,
.actualite-card__btn:focus {
    color: #fff;
    background-color: #4632da;
}

/* =========================================
   Pagination numérique
   ========================================= */

.actualites-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}

.actualites-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.actualites-pagination .page-numbers:hover {
    background: #f5f5f5;
}

.actualites-pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 600;
}

.actualites-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
