.f4hxn-contests {
    max-width: 1250px;
    margin: 24px auto;
    padding: 28px;
    color: #253746;
    background: #fff;
    border: 1px solid #e7eef3;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(24, 91, 137, .08);
}

.f4hxn-contests h2 {
    margin: 0 0 20px;
    color: #1976b9;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.f4hxn-contests__section + .f4hxn-contests__section {
    margin-top: 34px;
}

.f4hxn-contests__subtitle {
    margin: 0 0 14px;
    color: #17679e;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ==================================================================== */
/* Vue 1 : cartes (style d'origine)                                     */
/* ==================================================================== */

.f4hxn-contests__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.f4hxn-contests__item {
    position: relative;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e3edf4;
    border-radius: 11px;
    background: #fff;
}

.f4hxn-contests__item:hover {
    border-color: #8bc7ed;
    box-shadow: 0 6px 18px rgba(25, 118, 185, .12);
}

.f4hxn-contests__item h3 {
    margin: 8px 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.f4hxn-contests__title {
    color: #1976b9;
    text-decoration: none;
}

.f4hxn-contests__title:hover {
    text-decoration: underline;
}

.f4hxn-contests__type {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    color: #17679e;
    background: #eaf6fd;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.f4hxn-contests__date {
    margin: 0;
    color: #526b7d;
    font-size: .92rem;
}

/* ==================================================================== */
/* Vue 2 : calendrier                                                   */
/* ==================================================================== */

.f4hxn-cal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.f4hxn-cal__title {
    flex: 1;
    text-align: center;
    color: #17679e;
    font-size: 1.15rem;
    font-weight: 700;
}

.f4hxn-cal__btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: #1976b9;
    background: #eaf6fd;
    border: 1px solid #cfe6f7;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.f4hxn-cal__btn:hover {
    background: #d9eefb;
    border-color: #8bc7ed;
}

.f4hxn-cal__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.f4hxn-cal__weekdays,
.f4hxn-cal__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    gap: 6px;
    min-width: 700px;
}

.f4hxn-cal__weekday {
    padding: 6px 4px;
    text-align: center;
    color: #526b7d;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.f4hxn-cal__days {
    margin-top: 4px;
}

.f4hxn-cal__day {
    min-height: 104px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e7eef3;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.f4hxn-cal__day.is-other {
    background: #f6f9fb;
    color: #aab8c2;
}

.f4hxn-cal__day.is-today {
    border-color: #1976b9;
    box-shadow: inset 0 0 0 1px #1976b9;
}

.f4hxn-cal__day.has-events {
    background: #fbfdff;
}

.f4hxn-cal__number {
    align-self: flex-end;
    font-size: .82rem;
    font-weight: 700;
    color: inherit;
}

.f4hxn-cal__day.is-today .f4hxn-cal__number {
    color: #1976b9;
}

.f4hxn-cal__events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Événements — sans bordure gauche colorée, juste une pastille de fond */
.f4hxn-cal__event {
    display: block;
    padding: 4px 7px;
    border-radius: 6px;
    background: #eaf6fd;
    color: #17679e;
    font-size: .78rem;
    line-height: 1.25;
    text-decoration: none;
    overflow: hidden;
}

a.f4hxn-cal__event:hover {
    filter: brightness(.97);
    text-decoration: none;
}

.f4hxn-cal__event-time {
    display: block;
    font-weight: 700;
    font-size: .72rem;
    opacity: .85;
}

.f4hxn-cal__event-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Couleurs par type (fond uniquement) */
.f4hxn-cal__event--sprint       { background: #fff1e2; color: #b3600f; }
.f4hxn-cal__event--qso-party    { background: #e9f8ee; color: #1c7a41; }
.f4hxn-cal__event--championship { background: #f1ecfb; color: #5a3aa8; }
.f4hxn-cal__event--test         { background: #e4f6f6; color: #17706f; }
.f4hxn-cal__event--hunt         { background: #f4ede6; color: #7a5230; }
.f4hxn-cal__event--other        { background: #eef2f5; color: #4c5f6d; }

/* ==================================================================== */
/* États                                                                */
/* ==================================================================== */

.f4hxn-contests__loading,
.f4hxn-contests__notice {
    margin: 0;
    color: #526b7d;
    font-size: .92rem;
}

.f4hxn-contests__notice {
    margin-top: 16px;
    font-style: italic;
}

.f4hxn-contests__error {
    color: #a52a2a;
}

@media (max-width: 600px) {
    .f4hxn-contests {
        padding: 20px;
    }

    .f4hxn-cal__day {
        min-height: 92px;
    }
}
