/* ===== AGENDA ===== */

.agenda .hero{
  margin-bottom:16px;
}

/* ---- CALENDRIER ---- */
.calendar{
  margin-top:12px;
  background:rgba(255,255,255,.9);
  border-radius:18px;
  padding:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
}

.calendar-header{
  text-align:center;
  font-weight:900;
  font-size:16px;
  margin-bottom:10px;
  color:#0b2f45;
}

.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
  text-align:center;
}

.day-label{
  font-size:11px;
  font-weight:700;
  color:#6b7c8f;
}

.day{
  padding:8px 0;
  border-radius:10px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  background:rgba(255,255,255,.7);
}

.day.empty{
  background:transparent;
  cursor:default;
}

.day.active{
  background:#128c83;
  color:#fff;
}

/* ---- TITRE JOUR ---- */
.agenda-day-title{
  margin:18px 0 10px;
  text-align:center;
  font-size:14px;
  color:#0f2230;
}

.agenda-day-title strong{
  display:block;
  margin-top:4px;
  font-size:16px;
}

/* ---- LISTE EVENEMENTS ---- */
.agenda-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.event-card{
  display:flex;
  gap:12px;
  background:rgba(255,255,255,.92);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}

.event-card img{
  width:96px;
  height:96px;
  object-fit:cover;
}

.event-info{
  padding:10px 10px 10px 0;
}

.event-title{
  font-weight:900;
  font-size:14px;
}

.event-meta{
  margin-top:4px;
  font-size:12px;
  color:#6b7c8f;
}




/* Topbar calendrier (flèches) */
.calendar-topbar{
  display:grid;
  grid-template-columns: 40px 1fr 40px;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.cal-btn{
  height:36px;
  border-radius:12px;
  border:1px solid rgba(15,34,48,.10);
  background: rgba(255,255,255,.75);
  font-size:20px;
  font-weight:900;
  color:#0b2f45;
  cursor:pointer;
}
.cal-btn:active{ transform: scale(.98); }

/* Jour avec évènement : petit point */
.day{ position:relative; overflow:visible; }

.day.has-event{
  position:relative;
}
.day.has-event::after{
  content:"";
  position:absolute;
  bottom:5px;
  left:50%;
  transform:translateX(-50%);
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(240,106,95,.95);
  box-shadow: 0 6px 14px rgba(240,106,95,.25);
}

/* Liste événements (flyers) : look app */
.event-card{
  display:grid;
  grid-template-columns: 92px 1fr 20px;
  gap:12px;
  align-items:center;

  padding:10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,34,48,.10);
  border-radius:18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.event-thumb{width:72px;height:72px;overflow:hidden;border-radius:12px}
.event-thumb img{width:100%;height:100%;object-fit:cover;display:block}

.event-thumb-fallback{
  font-size:26px;
  opacity:.8;
}

.event-info{
  min-width:0;
}

.event-title{
  font-weight:950;
  font-size:14px;
  color:#0f2230;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.event-meta{
  margin-top:4px;
  font-size:12px;
  color: rgba(15,34,48,.65);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.event-chev{
  font-size:18px;
  font-weight:900;
  color: rgba(15,34,48,.35);
}

.event-empty{
  text-align:center;
  padding:16px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.76);
  border: 1px dashed rgba(15,34,48,.18);
  color: rgba(15,34,48,.65);
}


/*======================================*/
/* Bandeau filigrane sous le calendrier */
/*======================================*/
.agenda-day-title{
  margin:14px auto 12px;
  padding:10px 16px;

  max-width:100%;
  width:fit-content;

  background: rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);

  font-size:14.5px;
  font-weight:900;
  letter-spacing:.3px;
  color:#ffffff;

  text-align:center;
  white-space:nowrap;       /* 🔑 reste sur une seule ligne */
  overflow:hidden;
  text-overflow:ellipsis;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 6px 18px rgba(0,0,0,.12);
}
.agenda-day-title::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  pointer-events:none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.55),
    rgba(255,255,255,0) 55%
  );
}


/*================= Details de l'evenement =================/*

/* ===== Drawer (fiche) ===== */
.event-drawer{
  position: fixed;
  left: 10px; right: 10px;
  bottom: 10px;
  height: min(82vh, 680px);      /* plus grand */
  background: rgba(255,255,255,.97);
  border-radius: 18px;
  border: 1px solid rgba(15,34,48,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  z-index: 99999;               /* AU-DESSUS DU HEADER */
  transform: translateY(110%);
  transition: transform .22s ease;
  overflow: hidden;
}
.event-drawer[aria-hidden="false"]{ transform: translateY(0); }

.drawer-close{
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 0;
  background: rgba(0,0,0,.08);
  cursor: pointer;
  z-index: 3;
  font-size: 18px;
}

.drawer-head{ padding: 14px 56px 10px 14px; }
.drawer-title{ font-size: 20px; font-weight: 900; color:#0f2230; line-height:1.2; }
.drawer-sub{ margin-top:6px; color:#516579; font-weight:800; display:flex; gap:8px; flex-wrap:wrap; }
.drawer-sub .sep{ opacity:.55; }

.drawer-body{
  height: calc(100% - 78px);
  overflow: auto;               /* le drawer scrolle */
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Flyer + actions */
.drawer-media{ display:flex; gap:12px; align-items:stretch; }
.drawer-flyer-frame{
  flex: 1; min-width: 0;
  height: 320px;                /* plus grand */
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,34,48,.12);
}
.drawer-flyer{
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: #fff;
}

.drawer-actions{
  width: 72px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
}
.action-btn{
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,34,48,.12);
  background: #fff;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  color:#0f2230;
  text-decoration:none;
}
.map-mini{
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15,34,48,.12);
  background: #fff;
  cursor: pointer;
}
.map-mini iframe{ width:100%; height:100%; border:0; pointer-events:none; }

/* Infos */
.drawer-info{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 14px;
  padding:12px;
  border:1px solid rgba(15,34,48,.10);
  border-radius:16px;
  background: rgba(255,255,255,.65);
}
.info-row{ display:flex; gap:8px; align-items:flex-start; }
.info-ico{ width:20px; text-align:center; opacity:.85; }
.info-lbl{ font-weight:900; margin-right:6px; }
.info-val{ color:#223a4a; font-weight:650; }

/* Desc */
.desc-title{ font-weight:900; color:#0f2230; }
.desc-box{
  max-height: 220px;
  overflow:auto;
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.65);
  border:1px solid rgba(15,34,48,.10);
  white-space:pre-wrap;
  color:#223a4a;
  font-weight:650;
  line-height:1.35;
}

/* ===== Lightbox plein écran ===== */
.flyer-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100000;              /* encore au-dessus */
  background: rgba(0,0,0,.88);
}
.flyer-lightbox[aria-hidden="false"]{ display:block; }

.lb-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}
.lb-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* Mobile */
@media (max-width: 620px){
  .drawer-media{ flex-direction:column; }
  .drawer-actions{
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  .action-btn{ width:40px; height:40px; }
  .map-mini{ width:84px; height:40px; }
  .drawer-info{ grid-template-columns: 1fr; }
}

