/* calendar.css v1.5.5 */

/* sous-menu des catégories */
.cdsa-cal-subnav ul{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    list-style:none;
    padding:0;
    margin:0 0 1rem;
}
.cdsa-cal-subnav a{
    display:block;
    padding:.5rem .75rem;
    border:2px solid var(--bd,#999);
    border-radius:.5rem;
    font-size:.9rem;
    font-weight:600;
    text-decoration:none;
    color:#1f2937;
    background:var(--bg,#f3f4f6);
}

/* bloc titre catégorie */
.cdsa-cal-block{
    font-size:1.25rem;
    font-weight:700;
    margin:2rem 0 1rem;
    border:2px solid #1e3a8a;
    color:#1e3a8a;
    text-align:center;
    padding:.5rem 1rem;
    border-radius:.5rem;
}

/* grille des cartes d'événements */
.cdsa-cal-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));
    gap:1rem;
}
.cdsa-cal-card{
    border:1px solid #d1d5db;
    border-radius:1rem;
    box-shadow:0 10px 20px rgba(0,0,0,.07);
    background:#fff;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}
.cdsa-cal-media img{
    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
    object-position:center;
}
.cdsa-cal-placeholder{
    width:100%;
    height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    color:#64748b;
    font-size:.9rem;
    font-weight:600;
}
.cdsa-cal-body{
    padding:1rem 1rem 1.25rem;
}
.cdsa-cal-title{
    margin:0 0 .5rem;
    font-size:1.1rem;
    line-height:1.3;
    font-weight:700;
    color:#1e3a8a; /* bleu foncé */
}
.cdsa-cal-meta{
    list-style:none;
    padding:0;
    margin:0 0 1rem;
    font-size:.9rem;
    line-height:1.4;
    color:#374151;
}
.cdsa-cal-meta .k{
    font-weight:600;
    color:#111827;
    margin-right:.25rem;
}
.cdsa-btn{
    display:inline-block;
    background:#1e3a8a;
    color:#fff;
    border-radius:.5rem;
    padding:.5rem .75rem;
    font-size:.9rem;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 8px 16px rgba(30,58,138,.3);
}

/* calendrier mensuel */
.cdsa-month-wrap{
    max-width:100%;
    overflow-x:auto;
    border:1px solid #e5e7eb;
    border-radius:.75rem;
    padding:1rem;
    background:#fff;
    box-shadow:0 12px 28px rgba(0,0,0,.06);
    margin-top:2rem;
}
.cdsa-month-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:1rem;
    margin-bottom:1rem;
    font-weight:600;
    font-size:1rem;
    color:#1f2937;
}
.cdsa-month-header .cdsa-nav{
    color:#1e3a8a;
    text-decoration:none;
    font-weight:700;
    font-size:1rem;
    padding:.25rem .5rem;
    border-radius:.5rem;
    border:1px solid #1e3a8a;
}
.cdsa-month-title{
    text-transform:capitalize;
}

/* grille calendrier : scroll horizontal sur petit écran */
.cdsa-month-outer{
    min-width:600px;
}
.cdsa-month-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(80px,1fr));
    border:1px solid #e5e7eb;
    border-radius:.5rem;
    overflow:hidden;
}
.cdsa-month-head{
    background:#f1f5f9;
    font-size:.8rem;
    font-weight:600;
    color:#475569;
    text-align:center;
    padding:.5rem;
    border-bottom:1px solid #e5e7eb;
}

.cdsa-month-cell{
    min-height:90px;
    border-right:1px solid #e5e7eb;
    border-bottom:1px solid #e5e7eb;
    font-size:.75rem;
    position:relative;
    padding:.5rem;
    background:var(--day-bg,#fff);
}
.cdsa-month-cell.has-events{
    box-shadow:inset 0 0 0 2px var(--day-border,#94a3b8);
}
.cdsa-month-cell.is-empty{
    background:#f8fafc;
}
.cdsa-day-num{
    font-weight:700;
    font-size:.8rem;
    color:#0f172a;
    margin-bottom:.25rem;
}
.cdsa-day-list{
    list-style:none;
    padding:0;
    margin:0;
    line-height:1.3;
}
.cdsa-day-list a{
    color:#1e3a8a;
    text-decoration:none;
    font-weight:600;
    font-size:.75rem;
}

/* pastilles d'âge dans le calendrier */
.cdsa-chip-row{
    margin-top:.5rem;
    display:flex;
    flex-wrap:wrap;
    gap:.25rem;
}
.cdsa-chip{
    font-size:.65rem;
    line-height:1;
    font-weight:600;
    padding:.25rem .4rem;
    border-radius:.4rem;
    border:1px solid #475569;
    background:#e2e8f0;
    color:#1e293b;
    white-space:nowrap;
}

/* responsive encore plus serré */
@media(max-width:480px){
    .cdsa-month-outer{
        min-width:480px;
    }
}

/* bloc infos en haut d'un événement (shortcode [cdsa_event_header]) */
.cdsa-event-header ul{
    list-style:none;
    padding:0;
    margin:0;
    font-size:.95rem;
    line-height:1.5;
    color:#1f2937;
}
.cdsa-event-header li{
    margin-bottom:.4rem;
}
.cdsa-event-header strong{
    color:#111827;
}
