/* =========================================================
   PAGE ÉVÉNEMENTS & ANNONCES
========================================================= */

#contenu {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.events-page {
    padding: 76px 0 92px;
    background: #10151a;
    color: #fff;
}

.events-page__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    align-items: end;
    gap: 50px;
    margin-bottom: 28px;
}

.events-page__header h1 {
    max-width: 830px;
    margin: 10px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5.6vw, 5rem);
    line-height: .98;
}

.events-page__header > p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 1rem;
    line-height: 1.7;
}

/* Onglets */

.events-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.events-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.events-tabs__link:hover {
    border-color: rgba(209, 164, 55, .7);
    background: rgba(209, 164, 55, .08);
}

.events-tabs__link--gold {
    border-color: #d1a437;
    background: #d1a437;
    color: #10151a;
}

.events-tabs__link--gold:hover {
    background: #e2b54a;
    color: #10151a;
}

/* Titres de sections */

.events-section,
.classifieds-section {
    scroll-margin-top: 110px;
}

.events-section {
    margin-bottom: 78px;
}

.events-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: 44px;
    align-items: end;
    margin-bottom: 28px;
}

.events-section__heading h2 {
    margin: 8px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.events-section__heading > p,
.classifieds-heading__action > p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    line-height: 1.65;
}

/* Événements */

.events-page__grid {
    display: grid;
    gap: 20px;
}

.event-page-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.event-page-card:hover {
    transform: translateY(-2px);
    border-color: rgba(209, 164, 55, .55);
    background: rgba(255, 255, 255, .05);
}

.event-page-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    border-radius: 12px;
    background: #d1a437;
    color: #10151a;
}

.event-page-card__day {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    line-height: 1;
}

.event-page-card__month {
    margin-top: 6px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.event-page-card__time {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 21, 26, .22);
    font-size: .82rem;
    font-weight: 800;
}

.event-page-card__content {
    align-self: center;
}

.event-page-card__type {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(209, 164, 55, .42);
    border-radius: 999px;
    color: #d1a437;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event-page-card__content h3 {
    margin: 0 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.event-page-card__description {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.event-page-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .64);
    font-size: .9rem;
}

.event-page-card__meta strong {
    color: #fff;
}

.events-page__empty {
    padding: 52px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    text-align: center;
}

.events-page__empty h3 {
    margin: 10px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.events-page__empty > p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .68);
}

/* =========================================================
   PETITES ANNONCES
========================================================= */

.classifieds-section {
    padding-top: 72px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.classifieds-heading__action {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.classifieds-deposit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid #d1a437;
    border-radius: 9px;
    background: #d1a437;
    color: #10151a;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease;
}

.classifieds-deposit:hover {
    transform: translateY(-1px);
    background: #e1b449;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 20px;
}

.classified-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: #171e24;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .16);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.classified-card:hover {
    transform: translateY(-3px);
    border-color: rgba(209, 164, 55, .55);
}

.classified-card__visual {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #0c1115;
}

.classified-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-card__no-photo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .20);
    font-size: 3rem;
}

.classified-card__photos {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(16, 21, 26, .88);
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
}

.classified-card__body {
    padding: 20px;
}

.classified-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 13px;
}

.classified-card__category {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(209, 164, 55, .40);
    border-radius: 999px;
    color: #d1a437;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.classified-card__price {
    color: #fff;
    font-size: 1.08rem;
}

.classified-card h3 {
    margin: 0 0 11px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.classified-card__description {
    min-height: 66px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .66);
    font-size: .86rem;
    line-height: 1.6;
}

.classified-card__seller {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .52);
    font-size: .75rem;
}

.classified-card__seller strong {
    color: rgba(255, 255, 255, .86);
}

.classified-card__contact {
    margin-top: 15px;
}

.classified-card__contact > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    border: 1px solid rgba(209, 164, 55, .48);
    border-radius: 8px;
    color: #e0b64c;
    font-size: .75rem;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.classified-card__contact > summary::-webkit-details-marker {
    display: none;
}

.classified-card__contact-box {
    display: grid;
    gap: 8px;
    margin-top: 9px;
    padding: 13px;
    border-radius: 8px;
    background: #10151a;
}

.classified-card__contact-box p {
    margin: 0 0 2px;
}

.classified-card__contact-box a {
    color: #d1a437;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.classifieds-empty {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.classifieds-empty h3 {
    margin: 8px 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.classifieds-empty p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .62);
}

.classifieds-note {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .46);
    font-size: .75rem;
    line-height: 1.6;
    text-align: center;
}

/* Responsive */

@media (max-width: 980px) {
    .classifieds-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 760px) {
    .events-page {
        padding: 54px 0 68px;
    }

    .events-page__header,
    .events-section__heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-page-card {
        grid-template-columns: 1fr;
    }

    .event-page-card__date {
        align-items: flex-start;
        min-height: auto;
        padding: 16px 18px;
    }

    .event-page-card__time {
        border-top: 0;
        padding-top: 0;
    }

    .classifieds-grid {
        grid-template-columns: 1fr;
    }

    .classifieds-empty {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   DÉTAIL D'UNE PETITE ANNONCE
========================================================= */

.classified-card__details {
    margin-top: 15px;
}

.classified-card__details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    font-size: .75rem;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.classified-card__details > summary::-webkit-details-marker {
    display: none;
}

.classified-card__details[open] > summary {
    border-color: rgba(209, 164, 55, .48);
    color: #e0b64c;
}

.classified-detail {
    display: grid;
    gap: 17px;
    margin-top: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: #10151a;
}

.classified-detail__gallery {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 8px;
}

.classified-detail__photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #0a0f13;
}

.classified-detail__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.classified-detail__photo:hover img {
    transform: scale(1.025);
}

.classified-detail__content {
    display: grid;
    gap: 13px;
}

.classified-detail__price {
    color: #d1a437;
    font-size: 1.25rem;
    font-weight: 900;
}

.classified-detail__content > p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .83rem;
    line-height: 1.65;
}

.classified-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .58);
    font-size: .71rem;
}

.classified-detail__meta strong {
    color: rgba(255, 255, 255, .86);
}

@media (max-width: 520px) {
    .classified-detail__gallery {
        grid-template-columns: 1fr;
    }
}
