:root {
  --bleuEcp: #1d2362;
  --orangeEcp: #e0740e;
  --beigeEcp: #d9af4f;
  --blancEcp : #ffffff;
}

.ecp-list {
  display: grid;
  gap: 16px;
}

.ecp-item {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
  background:var(--blancEcp);
}

.ecp-title {
  margin: 0 0 8px;
}

.ecp-title,
.entry-title {
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.1em;
  color:var(--bleuEcp);
}

.ecp-meta {
  font-size: 14px;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecp-thumb {
  width: 100%;
  /*max-width: 240px;*/
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 10px;
}

.ecp-excerpt {
  margin: 10px 0 0;
}

.ecp-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--beigeEcp);
  color: var(--bleuEcp);
  border-radius: 8px;
  padding: 6px 10px;
  margin : 0 0 5px 0;
  font-size: 12px;
  line-height: 1.1;
  text-align:center;
}

.ecp-badge-date {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size:2em;
}

.ecp-badge-daymonth {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size:1.6em;
}

.ecp-badge-year {
  font-weight: 600;
  font-size:0.8em;
  color:var(--blancEcp);
}

.ecp-badge-time {
  font-family: "Barlow Condensed", sans-serif;
  opacity: 1;
  font-size:2.5em;
  font-weight:800;
  color:var(--blancEcp);
}

/* Image à gauche, puis titre+badge et méta+description en colonnes sur tablette/desktop ; empilé sur mobile */
@media (min-width: 641px) {
  .ecp-list .ecp-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .ecp-list .ecp-thumb {
    flex: 0 0 220px;
    max-width: 220px;
    margin: 0;
  }

  .ecp-list .ecp-content {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .ecp-list .ecp-col-title {
    /*flex: 0 0 180px;*/
  }

  .ecp-list .ecp-col-info {
    flex: 1;
    min-width: 0;
  }
}

.ecp-month-heading {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--bleuEcp);
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 6px;
	font-family: "Barlow Condensed", sans-serif;
}

.ecp-month-heading:first-child {
  margin-top: 0;
}

.ecp-calendar {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.ecp-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}

.ecp-cal-nav {
  text-decoration: none;
  font-weight: 700;
}

.ecp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.ecp-cal-dow {
  padding: 8px 10px;
  background: #fff;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.ecp-cal-cell {
  min-height: 86px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  position: relative;
}

.ecp-cal-cell:nth-child(7n) {
  border-right: 0;
}

.ecp-cal-day {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

/* Calendrier plus compact sur mobile, pour que l'événement sélectionné reste visible sans trop scroller */
@media (max-width: 640px) {
  .ecp-cal-dow {
    padding: 6px 4px;
    font-size: 11px;
  }

  .ecp-cal-cell {
    min-height: 40px;
    padding: 4px 6px;
  }

  .ecp-cal-day {
    font-size: 11px;
    margin-bottom: 2px;
  }
}

.ecp-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ecp-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bleuEcp);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 0;
  line-height: 1;
}

.ecp-bullet:hover,
.ecp-bullet:focus,
.ecp-bullet.ecp-open,
.ecp-bullet.ecp-bullet-selected {
  background: var(--beigeEcp);
}

.ecp-bullet:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.ecp-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  left: 0;
  top: 22px;
  background: var(--bleuEcp);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.ecp-bullet:hover .ecp-tooltip {
  display: block;
}

.ecp-bullet.ecp-open .ecp-tooltip {
  display: block;
}

/* Dernière colonne (dimanche) : la bulle-info déborderait à droite du calendrier, on l'aligne à gauche */
.ecp-cal-cell:nth-child(7n) .ecp-tooltip {
  left: auto;
  right: 0;
}

.ecp-calendar-wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ecp-calendar-wrap .ecp-calendar {
  flex: 1 1 320px;
}

.ecp-event-panel {
  flex: 1 1 260px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  transition: opacity .15s ease;
}

.ecp-event-panel.ecp-loading {
  opacity: .5;
}

.ecp-event-panel .ecp-item {
  border: 0;
  padding: 0;
}

.ecp-event-panel .ecp-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.ecp-panel-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bleuEcp);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ecp-panel-back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bleuEcp);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.ecp-panel-back:hover {
  background: none;
  color:var(--beigeEcp);
}



/* Image d'événement cliquable + fenêtre modale */
.ecp-thumb[data-ecp-zoom] { cursor: zoom-in; }
.ecp-thumb img { width: 100%; height: auto; display: block; }

.ecp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #1d2362ee;
}
.ecp-modal[hidden] { display: none; }
.ecp-modal img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.ecp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none!important;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
