/* =========================================================
THE CAVE PROD — agenda.css
Agenda général / calendrier en liste
========================================================= */

:root{
    --agenda-gold:#d5a021;
    --agenda-bg:#111;
    --agenda-panel:#181818;
    --agenda-card:#1d1d1d;
    --agenda-card-hover:#232323;
    --agenda-line:#323232;
    --agenda-text:#f3f3f3;
    --agenda-muted:#aaa;
}

.sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}

.agenda-hero{
    position:relative;
    height:320px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:url("../img/LOGO/LOGOA.png") center center no-repeat,linear-gradient(135deg,#111,#1b1b1b);
    background-size:220px,cover;
    color:#fff;
}

.agenda-hero .overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.58);
}

.agenda-hero .container{
    position:relative;
    z-index:2;
}

.agenda-hero h1{
    margin:0 0 15px;
    font-size:58px;
}

.agenda-hero p{
    margin:0;
    font-size:20px;
    color:#ddd;
}

.agenda-search-zone{
    position:relative;
    z-index:20;
    padding:34px 0 26px;
    background:#181818;
    border-bottom:1px solid #292929;
}

.agenda-search-top{
    display:grid;
    grid-template-columns:minmax(260px,1fr) auto auto;
    gap:12px;
    align-items:center;
}

.agenda-search-main input,
.agenda-filter-date input,
.agenda-dropdown-button,
.agenda-btn{
    min-height:52px;
    border:1px solid #333;
    border-radius:12px;
    background:#252525;
    color:#fff;
    font:inherit;
}

.agenda-search-main input{
    width:100%;
    padding:0 17px;
    outline:none;
}

.agenda-search-main input:focus,
.agenda-filter-date input:focus,
.agenda-dropdown-button:focus-visible,
.agenda-btn:focus-visible{
    border-color:var(--agenda-gold);
    box-shadow:0 0 0 3px rgba(213,160,33,.13);
    outline:none;
}

.agenda-btn{
    padding:0 18px;
    cursor:pointer;
    transition:.2s ease;
}

.agenda-btn:hover{
    border-color:var(--agenda-gold);
    transform:translateY(-1px);
}

.agenda-btn-today{
    color:var(--agenda-gold);
    font-weight:700;
}

.agenda-filters{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:12px;
    margin-top:14px;
    align-items:stretch;
}

.agenda-filter-date{
    position:relative;
}

.agenda-filter-date input{
    width:100%;
    padding:18px 10px 4px;
    font-size:13px;
    color-scheme:dark;
}

.agenda-filter-label{
    position:absolute;
    z-index:2;
    top:5px;
    left:12px;
    color:#8f8f8f;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    pointer-events:none;
}

.agenda-dropdown{
    position:relative;
}

.agenda-dropdown-button{
    width:100%;
    padding:0 13px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    cursor:pointer;
    text-align:left;
}

.agenda-filter-count:not(:empty){
    display:inline-grid;
    place-items:center;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:99px;
    background:var(--agenda-gold);
    color:#111;
    font-size:12px;
    font-weight:800;
}

.agenda-dropdown-panel{
    position:absolute;
    z-index:100;
    top:calc(100% + 8px);
    left:0;
    width:max(100%,260px);
    max-width:340px;
    max-height:330px;
    overflow:auto;
    padding:10px;
    border:1px solid #383838;
    border-radius:14px;
    background:#202020;
    box-shadow:0 18px 45px rgba(0,0,0,.45);
    display:none;
}

.agenda-dropdown.is-open .agenda-dropdown-panel{
    display:block;
}

.agenda-option{
    display:flex;
    gap:10px;
    align-items:center;
    padding:9px 10px;
    border-radius:9px;
    color:#eee;
    cursor:pointer;
    user-select:none;
}

.agenda-option:hover{
    background:#2b2b2b;
}

.agenda-option input{
    accent-color:var(--agenda-gold);
}

.agenda-dropdown-actions{
    position:sticky;
    bottom:-10px;
    margin:8px -10px -10px;
    padding:10px;
    background:#202020;
    border-top:1px solid #333;
}

.agenda-dropdown-clear{
    width:100%;
    border:0;
    border-radius:8px;
    padding:9px 10px;
    background:#2b2b2b;
    color:#ddd;
    cursor:pointer;
}

.agenda-active-filters{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:14px;
}

.agenda-chip{
    border:1px solid rgba(213,160,33,.4);
    border-radius:999px;
    padding:6px 10px;
    background:rgba(213,160,33,.08);
    color:#e9c76e;
    font-size:12px;
}

.agenda-summary{
    padding:28px 0 12px;
    background:#111;
}

.agenda-summary-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.agenda-summary h2{
    margin:0;
    font-size:32px;
}

#agendaNombreDates{
    color:var(--agenda-gold);
}

.agenda-legend{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    color:#999;
    font-size:12px;
}

.agenda-dot{
    display:inline-block;
    width:8px;
    height:8px;
    margin-right:6px;
    border-radius:50%;
}

.agenda-dot-ref{background:var(--agenda-gold)}
.agenda-dot-nr{background:#666}

.agenda-main{
    padding:24px 0 80px;
    background:#111;
}

.agenda-month{
    scroll-margin-top:90px;
    margin-bottom:42px;
}

.agenda-month-title{
    position:sticky;
    z-index:8;
    top:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:13px 16px;
    margin:0 0 10px;
    border-left:4px solid var(--agenda-gold);
    background:rgba(17,17,17,.96);
    backdrop-filter:blur(8px);
    box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.agenda-month-title h2{
    margin:0;
    color:#fff;
    font-family:"Bebas Neue",sans-serif;
    font-size:31px;
    letter-spacing:.04em;
}

.agenda-month-title span{
    color:#989898;
    font-size:12px;
}

.agenda-row{
    position:relative;
    display:grid;
    grid-template-columns:88px minmax(140px,.8fr) minmax(200px,1.35fr) minmax(180px,1fr) minmax(170px,.9fr);
    align-items:center;
    min-height:84px;
    margin-bottom:6px;
    border:1px solid #2b2b2b;
    border-radius:13px;
    background:var(--agenda-card);
    overflow:visible;
    transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

.agenda-row:hover{
    background:var(--agenda-card-hover);
    border-color:#3c3c3c;
    transform:translateY(-1px);
}

.agenda-row.is-past{
    opacity:.68;
}

.agenda-row.is-past::after{
    content:"PASSÉ";
    position:absolute;
    right:16px;
    bottom:6px;
    color:rgba(255,255,255,.055);
    font-family:"Bebas Neue",sans-serif;
    font-size:42px;
    letter-spacing:.08em;
    pointer-events:none;
}

.agenda-date-box{
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border-right:1px solid #303030;
    background:#171717;
    border-radius:12px 0 0 12px;
}

.agenda-date-day{
    color:#fff;
    font-family:"Bebas Neue",sans-serif;
    font-size:34px;
    line-height:.9;
}

.agenda-date-weekday,
.agenda-date-month-short{
    color:#999;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.agenda-cell{
    min-width:0;
    padding:14px 16px;
}

.agenda-cell-label{
    display:block;
    margin-bottom:5px;
    color:#707070;
    font-size:9px;
    font-weight:800;
    letter-spacing:.11em;
    text-transform:uppercase;
}

.agenda-cell strong,
.agenda-cell a{
    color:#f3f3f3;
    font-weight:650;
    text-decoration:none;
}

.agenda-cell a{
    position:relative;
}

.agenda-cell a:hover{
    color:var(--agenda-gold);
}

.agenda-event-name{
    font-size:17px;
}

.agenda-event-nr{
    display:inline-flex;
    align-items:center;
    gap:7px;
}

.agenda-nr-badge{
    display:inline-block;
    padding:3px 6px;
    border:1px solid #444;
    border-radius:6px;
    color:#888;
    font-size:9px;
    font-weight:800;
    letter-spacing:.06em;
}

.agenda-location-meta,
.agenda-artist-meta,
.agenda-time-meta{
    margin-top:5px;
    color:#9b9b9b;
    font-size:12px;
    line-height:1.45;
}

.agenda-artist-links{
    display:flex;
    flex-wrap:wrap;
    gap:5px 9px;
}

.agenda-artist-links a:not(:last-child)::after,
.agenda-artist-links span:not(:last-child)::after{
    content:"·";
    margin-left:9px;
    color:#555;
}

.agenda-empty{
    padding:70px 20px;
    border:1px dashed #363636;
    border-radius:16px;
    color:#aaa;
    text-align:center;
}

.agenda-hover-card{
    position:fixed;
    z-index:9999;
    width:240px;
    pointer-events:none;
    border:1px solid #444;
    border-radius:14px;
    overflow:hidden;
    background:#151515;
    box-shadow:0 18px 50px rgba(0,0,0,.6);
    opacity:0;
    transform:translateY(8px) scale(.98);
    transition:opacity .14s ease,transform .14s ease;
}

.agenda-hover-card.is-visible{
    opacity:1;
    transform:none;
}

.agenda-hover-image-wrap{
    width:100%;
    height:145px;
    background:#242424;
}

.agenda-hover-card img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.agenda-hover-content{
    display:grid;
    gap:3px;
    padding:11px 13px 12px;
}

.agenda-hover-content span{
    color:var(--agenda-gold);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.1em;
}

.agenda-hover-content strong{
    color:#fff;
    font-size:14px;
}

.agenda-hover-content small{
    color:#999;
    font-size:11px;
}

@media(max-width:1100px){
    .agenda-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
    .agenda-row{grid-template-columns:78px minmax(130px,.8fr) minmax(180px,1.2fr) minmax(160px,1fr)}
    .agenda-row .agenda-cell:last-child{grid-column:2/-1;border-top:1px solid #2b2b2b}
}

@media(max-width:800px){
    .agenda-hero{height:260px}
    .agenda-hero h1{font-size:42px}
    .agenda-search-top{grid-template-columns:1fr 1fr}
    .agenda-search-main{grid-column:1/-1}
    .agenda-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
    .agenda-summary-inner{align-items:flex-start;flex-direction:column}
    .agenda-row{grid-template-columns:70px 1fr}
    .agenda-date-box{grid-row:1/5}
    .agenda-cell{grid-column:2;padding:9px 14px}
    .agenda-row .agenda-cell:last-child{grid-column:2;border-top:0}
    .agenda-cell + .agenda-cell{border-top:1px solid #292929}
    .agenda-hover-card{display:none!important}
}

@media(max-width:520px){
    .agenda-hero h1{font-size:34px}
    .agenda-hero p{font-size:17px}
    .agenda-search-zone{padding:24px 0 20px}
    .agenda-search-top{grid-template-columns:1fr}
    .agenda-search-main{grid-column:auto}
    .agenda-filters{grid-template-columns:1fr 1fr}
    .agenda-dropdown-panel{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-width:none;max-height:55vh}
    .agenda-month-title h2{font-size:26px}
    .agenda-legend{gap:10px}
}

/* =========================================================
V2 — AUJOURD'HUI / CETTE SEMAINE / AJOUT CALENDRIER
========================================================= */

.agenda-highlight-section,
.agenda-complete-section{
    scroll-margin-top:88px;
}

.agenda-highlight-section{
    margin:0 0 34px;
}

.agenda-today-section{
    padding:3px;
    border-radius:18px;
    background:linear-gradient(135deg,rgba(213,160,33,.95),rgba(213,160,33,.14));
}

.agenda-today-section > .agenda-highlight-list,
.agenda-today-section > .agenda-highlight-title{
    background:#151515;
}

.agenda-today-title{
    border-radius:15px 15px 0 0;
}

.agenda-highlight-title,
.agenda-complete-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    padding:19px 20px 15px;
    border-left:4px solid var(--agenda-gold);
}

.agenda-highlight-title h2,
.agenda-complete-heading h2{
    margin:2px 0 0;
    color:#fff;
    font-family:"Bebas Neue",sans-serif;
    font-size:35px;
    letter-spacing:.035em;
}

.agenda-kicker{
    color:var(--agenda-gold);
    font-size:10px;
    font-weight:800;
    letter-spacing:.13em;
}

.agenda-highlight-count{
    color:#aaa;
    font-size:12px;
}

.agenda-highlight-list{
    padding:0 10px 10px;
    border-radius:0 0 15px 15px;
}

.agenda-week-section{
    padding:1px 0 0;
    border-top:1px solid #343434;
    border-bottom:1px solid #272727;
}

.agenda-complete-section{
    margin-top:20px;
}

.agenda-complete-heading{
    margin-bottom:16px;
    padding-left:16px;
    background:#151515;
    border-radius:12px;
}

.agenda-period-block + .agenda-period-block{
    margin-top:50px;
}

.agenda-period-label{
    margin:4px 0 13px;
    color:#c9ad65;
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
}

.agenda-period-label-past{
    color:#777;
}

.agenda-row{
    grid-template-columns:88px minmax(115px,.65fr) minmax(190px,1.25fr) minmax(160px,.95fr) minmax(170px,.95fr) minmax(155px,.75fr);
}

.agenda-calendar-cell{
    padding:12px 14px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

.agenda-add-button{
    width:100%;
    min-height:40px;
    padding:8px 11px;
    border:1px solid rgba(213,160,33,.42);
    border-radius:10px;
    background:rgba(213,160,33,.075);
    color:#e3c26d;
    font:inherit;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
    transition:.18s ease;
}

.agenda-add-button:hover{
    border-color:var(--agenda-gold);
    background:rgba(213,160,33,.15);
    color:#fff;
    transform:translateY(-1px);
}

.agenda-row-highlight{
    margin-bottom:7px;
    border-color:#39342a;
}

.agenda-today-section .agenda-row-highlight{
    background:#1c1a15;
    border-color:rgba(213,160,33,.38);
}

@media(max-width:1200px){
    .agenda-row{
        grid-template-columns:78px minmax(100px,.7fr) minmax(180px,1.2fr) minmax(150px,.9fr) minmax(165px,1fr);
    }
    .agenda-calendar-cell{
        grid-column:2/-1;
        border-top:1px solid #2b2b2b;
        justify-content:flex-start;
    }
    .agenda-add-button{width:auto}
}

@media(max-width:800px){
    .agenda-highlight-title,
    .agenda-complete-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
    }
    .agenda-row{
        grid-template-columns:70px 1fr;
    }
    .agenda-calendar-cell{
        grid-column:2;
        padding:10px 14px 14px;
        border-top:1px solid #292929;
    }
    .agenda-add-button{width:100%}
}
