
.calendar-wraper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 auto;
    /*position: relative;*/
    /*width: 100%;*/
    margin-top: 10px;
    /*overflow: hidden;*/
    /*padding: 20px 20px;*/
}

.calendar-container {
    position: relative;
    width: 90%;
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-radius: 10px;
    background-color: #fff;
}

.calendar-day {
    flex: 0 0 calc(50% - 1rem); /* 2 jours visibles sur mobile */
    scroll-snap-align: start;
    min-width: 90px;
    padding-left: 6px;
    padding-right: 6px;
}



@media (min-width: 1024px) {
    .calendar-day {
        flex: 0 0 calc(33.333% - 1rem); /* 3 jours visibles sur tablette */
    }

    .periode-item-content {
        /*flex-grow: 1;*/
        font-size: 16px;
        min-width: 40%;
    }
}

@media (min-width: 1400px) {
    .calendar-day {
        flex: 0 0 calc(25% - 1.1rem); /* 4 jours visibles sur desktop */
    }

    /*.periode-item-content {*/
    /*    min-width: 35%;*/
    /*}*/
}

@media (max-width: 800px) {
    .periode-item-content {
        min-width: 85%;
    }
}

/* Contenu interne */
.calendar-day-header {
    text-align: left;
    padding: 1rem;
    /*background-color: ;*/
    color: var(--okofen-green);
    font-family: "Plus Jakarta Sans ExtraBold", sans-serif;
    /*border-bottom: 1px solid #eee;*/
}

.easypell .calendar-day-header{
    color: #008FC4;
}

.calendar-day-header.disabled{
    color: var(--dark-grey);
}

.calendar-cell {
    margin-bottom: 0.4rem;
    padding: 0.4rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff;
    font-weight: bold;
    border: 1px solid var(--dark-green);
}

.easypell .calendar-cell{
    border-color: #008FC4;
}

.calendar-cell.selected {
    /*border-color: var(--okofen-legacy-green);*/
    background: var(--okofen-green);
    color: #fff;
    font-weight: bold;
    border: 1px solid var(--okofen-green);
}

.easypell .calendar-cell.selected {
    border-color: var(--dark-easypell-blue);
    background: var(--dark-easypell-blue);
    /*background: var(--easypell-light-blue);*/
    font-weight: bold;
}



.calendar-cell.disabled {
    background: var(--dark-grey);
    color: #fff;
    cursor: not-allowed;
    border: 1px solid var(--dark-grey);
}

/* Boutons de navigation */
.calendar-nav {
    flex-shrink: 0;
    top: 50%;
    border: none;
    font-size: 2rem;
    background-color: transparent;
    color: var(--okofen-green);
}

/* Boutons de navigation */
.easypell .calendar-nav {
    color: var(--easypell-blue);
}

#periodes-list {
    /*display: flex;*/
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

#periodes-list:empty::before {
    content: "Aucune période ajoutée";
    color: #999;
    font-style: italic;
    display: block;
    padding: 10px;
    text-align: center;
    /*background: #f5f5f5;*/
    border-radius: 4px;
}

.periode-item {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    /*padding: 12px 15px;*/
    margin-bottom: 5px;
    /*border-radius: 20px;*/
}

.periode-item-content {
    /*flex-grow: 1;*/
    background: var(--okofen-green);
    font-size: 14px;
    font-family: "Plus Jakarta Sans ExtraBold", sans-serif;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    min-width: 35%;
}

.easypell .periode-item-content {
    /*flex-grow: 1;*/
    background: var(--easypell-blue);
}

.periode-item .close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    background: white;
    color: var(--dark-green);
    cursor: pointer;
    display: grid; /* Plus fiable que flex pour certains caractères */
    place-items: baseline; /* Centre horizontal ET vertical */
    /*font-size: 28px;*/
    /*line-height: 1;*/
    padding-left: 6px;
    margin-left: 5px;
}

