/* ==============================
   Uniform Cards — White + Modern
   ============================== */

.ap-page {
    margin-top: -40px;
}

header {
    all: unset;
    /* reset total */
    display: block;
    /* remet un comportement normal */
    text-align: center;
}


/* HERO */

.ap-hero {
    z-index: 20;
}

.ap-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    display: block;
}

.ap-title {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.04em;
    font-size: clamp(26px, 3vw, 44px);
    text-transform: uppercase;
    line-height: 1.05;
}

.ap-subtitle {
    margin: 8px 0 0;
    color: rgba(15, 23, 42, .65);
    font-size: 14px;
}

.dot {
    margin: 0 8px;
    opacity: .6;
}


/* Faux surlignage */

.marker {
    position: relative;
    display: inline-block;
    padding: 0 6px;
}

.marker::before {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 4px;
    height: 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(99, 102, 241, .22), rgba(16, 185, 129, .16), rgba(244, 63, 94, .16));
    z-index: -1;
    transform: rotate(-1.2deg);
}


/* Updates */

.ap-updates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chipUpdate {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(15, 23, 42, .10);
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, .06);
}


/* Content */

.ap-content {
    padding: 18px 16px 44px;
}


/* Grid uniform */

.grid {
    max-width: 1550px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 950px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1250px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* Card = same height */

.card {
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 22px 70px rgba(2, 6, 23, .09);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    display: flex;
    flex-direction: column;
    height: 590px;
    margin-bottom: 50px;
    /* ✅ toutes les cards mêmes dimensions */
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px rgba(2, 6, 23, .14);
    filter: saturate(1.04);
}


/* Media fixed height */

.cardMedia {
    position: relative;
    height: 350px;
    /* ✅ image même hauteur */
    background: #f1f5f9;
}

.cardMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ✅ recadre joliment */
    display: block;
}

.mediaOverlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    background: linear-gradient(to top, rgba(2, 6, 23, .22), transparent 70%);
    pointer-events: none;
}


/* Tags */

.mediaTop {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mediaBottom {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 25px rgba(2, 6, 23, .10);
}

.tagType {
    background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(16, 185, 129, .10));
    border-color: rgba(99, 102, 241, .18);
}

.tagCity {
    background: rgba(255, 255, 255, .90);
}


/* Body uses flex to keep footer bottom */

.cardBody {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.titleRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.name {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.02em;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1.1;
}


/* small highlight */

.markerSmall {
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.markerSmall::before {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: 3px;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(244, 63, 94, .16), rgba(99, 102, 241, .14));
    z-index: -1;
    transform: rotate(-1deg);
}

.miniHeart {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 63, 94, .10);
    border: 1px solid rgba(244, 63, 94, .14);
    color: rgba(244, 63, 94, .85);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .06);
    flex: 0 0 auto;
}

.meta {
    margin: 0;
    color: rgba(15, 23, 42, .62);
    font-size: 13px;
}


/* Alert limited height so cards stay even */

.alert {
    margin: 4px 0 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(244, 63, 94, .08);
    border: 1px solid rgba(244, 63, 94, .12);
    color: rgba(15, 23, 42, .80);
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* ✅ limite pour garder hauteur uniforme */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Footer pinned bottom */

.footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.cta {
    font-weight: 950;
    font-size: 13px;
    color: rgba(15, 23, 42, .78);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.arrow {
    font-size: 16px;
    transition: transform .18s ease;
}

.card:hover .arrow {
    transform: translateX(4px);
}


/* Empty */

.empty {
    max-width: 720px;
    margin: 22px auto 0;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 26px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: 0 22px 70px rgba(2, 6, 23, .08);
}

.emptyEmoji {
    font-size: 42px;
    margin-bottom: 8px;
}

.empty p {
    color: rgba(15, 23, 42, .65);
}

.btnPrimary {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 900;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(2, 6, 23, .15);
}

.btnPrimary:hover {
    filter: brightness(1.05);
}