/* ==========================================================
   DEAUVILLE INSIDER — AGENDA V1
   ========================================================== */

.di-agenda-body {
    margin: 0;
    background: #f4f7f8;
    color: #071722;
}

.di-agenda-main {
    padding: 18px 0 80px;
}

/* ==========================================================
   TITRE
   ========================================================== */

.di-agenda-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 3px 0 22px;
    padding: 18px 18px 17px;
    background: #ffffff;
    border: 1px solid rgba(7, 23, 34, .07);
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(7, 23, 34, .055);
}

.di-agenda-heading-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eef5f3;
}

.di-agenda-heading-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: #193c36;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.di-agenda-kicker {
    margin-bottom: 3px;
    color: #758582;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
}

.di-agenda-heading h1 {
    margin: 0;
    color: #071722;
    font-size: clamp(25px, 6vw, 34px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.035em;
}

.di-agenda-heading p {
    margin: 6px 0 0;
    color: #677674;
    font-size: 14px;
    line-height: 1.4;
}


/* ==========================================================
   FILTRES
   ========================================================== */

.di-agenda-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -2px 14px;
    padding: 2px 2px 7px;
    scrollbar-width: none;
}

.di-agenda-filters::-webkit-scrollbar {
    display: none;
}

.di-agenda-filter {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(7, 23, 34, .09);
    border-radius: 999px;
    background: #ffffff;
    color: #53615f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(7, 23, 34, .035);
}

.di-agenda-filter.is-active {
    background: #193c36;
    border-color: #193c36;
    color: #ffffff;
}

.di-agenda-count {
    margin: 3px 2px 12px;
    color: #7b8987;
    font-size: 12px;
    font-weight: 650;
}


/* ==========================================================
   LISTE
   ========================================================== */

.di-agenda-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.di-event-card {
    --di-event-accent: #758582;
    --di-event-soft: #edf1f2;
    --di-event-text: #455451;

    overflow: hidden;
    position: relative;
    background: #ffffff;
    border-radius: 25px;
    border: 1px solid rgba(7, 23, 34, .055);
    box-shadow: 0 10px 30px rgba(7, 23, 34, .065);
}

.di-event-card--spectacle {
    --di-event-accent: #955ea7;
    --di-event-soft: #f3e9f6;
    --di-event-text: #684076;
}

.di-event-card--culture {
    --di-event-accent: #496da9;
    --di-event-soft: #e8effa;
    --di-event-text: #31517f;
}

.di-event-card--famille {
    --di-event-accent: #c79521;
    --di-event-soft: #fff2ca;
    --di-event-text: #755500;
}

.di-event-card--nature {
    --di-event-accent: #219487;
    --di-event-soft: #e0f4f0;
    --di-event-text: #15685f;
}

.di-event-card--sport {
    --di-event-accent: #2684ac;
    --di-event-soft: #e4f2f8;
    --di-event-text: #155b78;
}

.di-event-card--equestre {
    --di-event-accent: #91673f;
    --di-event-soft: #f3eadf;
    --di-event-text: #644628;
}

.di-event-card--gourmand {
    --di-event-accent: #cc6d50;
    --di-event-soft: #fae9e2;
    --di-event-text: #843f2a;
}

.di-event-media {
    position: relative;
    width: 100%;
    height: 215px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #e5eeec,
            #f5f8f7
        );
}

.di-event-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.di-event-image-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.di-event-image-empty svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: rgba(25, 60, 54, .32);
    stroke-width: 1.35;
}

.di-event-date {
    position: absolute;
    left: 13px;
    top: 13px;
    min-width: 61px;
    padding: 8px 9px 9px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    color: #071722;
    text-align: center;
    box-shadow: 0 7px 22px rgba(7, 23, 34, .14);
    backdrop-filter: blur(8px);
}

.di-event-date span {
    display: block;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.di-event-date strong {
    display: block;
    margin: 1px 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 850;
}

.di-event-ongoing {
    position: absolute;
    top: 15px;
    right: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(25, 60, 54, .94);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.di-event-content {
    padding: 17px 17px 18px;
}

.di-event-category {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 9px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--di-event-soft);
    color: var(--di-event-text);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.di-event-title {
    margin: 0;
    color: #071722;
    font-size: 19px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.018em;
}

.di-event-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}

.di-event-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #697774;
    font-size: 13px;
    line-height: 1.35;
}

.di-event-detail svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    fill: none;
    stroke: var(--di-event-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.di-event-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 15px;
    padding: 0 16px;
    border-radius: 14px;
    background: #193c36;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.di-event-link svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}


/* ==========================================================
   ETATS / PLUS
   ========================================================== */

.di-agenda-loading,
.di-agenda-empty {
    padding: 34px 20px;
    border-radius: 22px;
    background: #ffffff;
    color: #74817f;
    text-align: center;
    box-shadow: 0 8px 26px rgba(7, 23, 34, .05);
}

.di-agenda-spinner {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 10px;
    border: 2px solid #d6e0de;
    border-top-color: #193c36;
    border-radius: 50%;
    animation: di-agenda-spin .8s linear infinite;
}

@keyframes di-agenda-spin {
    to {
        transform: rotate(360deg);
    }
}

.di-agenda-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.di-agenda-more {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(25, 60, 54, .13);
    border-radius: 15px;
    background: #ffffff;
    color: #193c36;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(7, 23, 34, .045);
}

.di-agenda-source {
    margin-top: 24px;
    color: #96a19f;
    font-size: 10px;
    text-align: center;
}


@media (min-width: 720px) {

    .di-agenda-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 520px) {

    .di-agenda-main {
        padding-top: 10px;
        padding-bottom: 70px;
    }

    .di-agenda-heading {
        padding: 15px;
        border-radius: 21px;
    }

    .di-agenda-heading-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .di-event-media {
        height: 205px;
    }

}
