/* ==========================================================================
   ANNONCES — Shortcode [annonces_list]
   Même look que les Events, mais en violet
   ========================================================================== */

.annonces-blog-shortcode h2.annonces-title,
.annonces-blog-shortcode p.annonces-intro {
    text-align: center;
}
.annonces-blog-shortcode h2.annonces-title {
    color: #af0b57;
    font-size: 2rem;
    font-weight: 600;
}
.annonces-blog-shortcode p.annonces-intro {
    margin-bottom: 3vh;
    font-size: 1.2rem !important;
}
.annonces-blog-shortcode .annonces-empty {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 2rem 0;
}

/* ==========================================================================
   ANNONCES – Container & Items (clone de events-container)
   ========================================================================== */

.annonces-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.annonces-container .annonce-item {
    flex: 1;
    max-width:300px;
    position: relative;
}

.annonces-container .annonce-item .annonce-link {
    display: flex;
    position: relative;
    overflow: hidden;
    max-height: 40vh;
    height: 40vh;
    width: 100%;
}

.annonces-container .annonce-item img.annonce-image {
    display: block;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.annonces-container .annonce-item:hover img.annonce-image {
    transform: scale(1.05);
}

/* ==========================================================================
   ANNONCES – Overlay & Card content
   ========================================================================== */

.annonce-overlay-cust {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 1vw;
    background: linear-gradient(359deg, #000000b8, transparent);
}

/* Bloc top : date à gauche, badge type à droite */
.annonce-overlay-cust .annonce-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.annonce-overlay-cust .annonce-date {
    background-color: white;
    display: flex;
    flex-direction: column;
    max-width: fit-content;
    text-align: center;
    padding: 1%;
}
.annonce-overlay-cust .annonce-date .annonce-day {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #af0b57;
}
.annonce-overlay-cust .annonce-date .annonce-month {
    font-size: 1rem;
    color: #3f3f3f;
    font-weight: 600;
}
.annonce-overlay-cust .annonce-date .annonce-year {
    font-size: 1.3rem;
    font-weight: 600;
    color: #af0b57;
}

/* Badge type d'annonce (Job / Bénévolat / Autre) */
.annonce-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    color: #af0b57;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
.annonce-badge-job       { background: #af0b57; color: white; }
.annonce-badge-benevolat { background: #af0b57; color: white; }
.annonce-badge-autre     { background: #af0b57; color: #4a148c; }

/* Content bottom : titre + bouton */
.annonce-overlay-cust .annonce-title {
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
    margin-bottom: 10px;
}

.annonce-overlay-cust .annonce-button {
    background-color: #af0b57;
    padding: 3% 2%;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2vw;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.annonce-overlay-cust .annonce-button:hover {
    background-color: white;
    color: #af0b57;
}

.content-annonce-cust {
    /* placeholder pour cohérence avec events */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .annonces-container .annonce-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media screen and (max-width: 767px) {
    .annonces-container {
        flex-direction: column;
    }
    .annonces-container .annonce-item {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .annonces-container .annonce-item .annonce-overlay-cust {
        padding: 4%;
    }
}
