/* RESET SIMPLE-CALENDAR (tu peux garder mais non utilisé) */
.simple-calendar {
  width: 100%;
  border-collapse: collapse;
}

/* HEADER STRUCTURE */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-header-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* SELECT MOIS */
.jet-calendar .calendar-month-select {
    font-family: "Neo", sans-serif;
    font-size: clamp(14px, 2.2vw, 24px);
    font-weight: bold;

    color: #09953F;
    background: #fff;

    border: 2px solid #09953F;
    border-radius: 10px;

    padding: 6px 12px;

    cursor: pointer;
}


/* NAV */
.calendar-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}


/* ========================= */
/* HEADER JOURS (IMPORTANT)  */
/* ========================= */

.jet-calendar .jet-calendar-header__week-day {
    background: #fff !important;              /* ✅ fond blanc */
    color: #002E5E !important;                /* ✅ bleu */

    font-family: "Neo", sans-serif !important;
    font-size: clamp(14px, 2.2vw, 24px) !important;
    font-weight: bold !important;

    padding: 10px !important;

    border-top: 2px solid #002E5E !important;
    border-bottom: 2px solid #002E5E !important;
    border-left: 2px solid #002E5E !important;
    border-right: 0;

    text-align: center;
}

/* fermeture du cadre */
.jet-calendar .jet-calendar-header__week-day:last-child {
    border-right: 2px solid #002E5E !important;
}

/* coins arrondis */
.jet-calendar .jet-calendar-header__week-day:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.jet-calendar .jet-calendar-header__week-day:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}


/* ========================= */
/* CELLULE JOUR              */
/* ========================= */

.jet-calendar td {
    background: #f7f7f7;   /* ✅ léger gris */
    padding: 6px;
    border: none;
}


/* ========================= */
/* NUMERO JOUR               */
/* ========================= */

.calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    background: #09953F;
    color: #fff;

    font-weight: bold;

    border-radius: 8px;

    margin-bottom: 8px;

    flex-shrink: 0;
}

/* AUJOURD’HUI */
.calendar-day-number.is-today {
    background: #E30613; /* 🔴 rouge propre */
}


/* ========================= */
/* EVENTS                    */
/* ========================= */

.calendar-event {
    background: #fff;

    border-radius: 15px;

    padding: 12px 14px;
    margin-bottom: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.calendar-event a {
    color: #002E5E;
    text-decoration: none;
    font-weight: normal;
}

/* hover clean */
.calendar-event:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.calendar-day-outer {
    background: #f5f5f5;
    padding: 6px;
}

.calendar-day-cell {
    background: #fff;
    border-radius: 15px;

    padding: 10px;

    min-height: 140px; /* 👈 clé ici */
    display: flex;
    flex-direction: column;
}

/* CHEVRONS */
.jet-calendar .calendar-nav .calendar-nav-chevron {
    appearance: none !important;
    -webkit-appearance: none !important;

    font-family: "Neo", sans-serif !important;
    font-size: clamp(14px, 2.2vw, 24px) !important;
    font-weight: bold !important;
    line-height: 1 !important;

    color: #09953F !important;
    background: transparent !important;

    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;

    text-decoration: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer !important;
    transition: all 0.2s ease !important;
}


/* HOVER / FOCUS / ACTIVE */
.jet-calendar .calendar-nav .calendar-nav-chevron:hover,
.jet-calendar .calendar-nav .calendar-nav-chevron:focus,
.jet-calendar .calendar-nav .calendar-nav-chevron:active {
    color: #09953F !important;
    background: #f5f5f5 !important;

    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    transform: none !important;
}


.calendar-mobile-list {
    display: none;
}

@media (max-width: 768px) {

    .jet-calendar table {
        display: none;
    }

    .calendar-mobile-list {
        display: block;
    }

    .calendar-mobile-item {
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }

    .calendar-mobile-date {
        font-size: 13px;
        color: #666;
        margin-bottom: 5px;
    }

    .calendar-mobile-title a {
        color: #002E5E;
        text-decoration: none;
    }
}