.ev-hero {
  background: #0f0f0f;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.ev-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,78,50,.12) 0%, transparent 70%);
  pointer-events: none;
}
.ev-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}
.ev-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,.05);
}
.ev-hero__title {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.ev-hero__title span { color: var(--brand); }
.ev-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  max-width: 520px;
}

.ev-filters {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: var(--nav-h, 64px);
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ev-filters__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .875rem 2rem;
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
}
.ev-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.ev-search-wrap svg {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.ev-search {
  width: 100%;
  padding: .625rem .875rem .625rem 2.375rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 9px;
  font-size: .875rem;
  font-family: inherit;
  background: #fafafa;
  transition: border .2s;
}
.ev-search:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233,78,50,.1);
}
.ev-select {
  padding: .625rem 2rem .625rem .875rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 9px;
  font-size: .85rem;
  font-family: inherit;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right .75rem center;
  appearance: none;
  cursor: pointer;
  transition: border .2s;
}
.ev-select:focus { outline: none; border-color: var(--brand); }
.ev-count {
  font-size: .78rem;
  color: #999;
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}

.ev-grid-wrap {
  background: #F2F3F7;
  min-height: 60vh;
  padding: 2.5rem 2rem 4rem;
}
.ev-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.ev-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12), 0 16px 40px rgba(0,0,0,.07);
}

.ev-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.ev-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ev-card:hover .ev-card__cover img { transform: scale(1.04); }
.ev-card__cover-placeholder {
  width: 100%;
  height: 100%;
}
.ev-card__cover-badge {
  position: absolute;
  bottom: .75rem;
  left: .875rem;
  padding: .4rem .875rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
}
.ev-card__date-day {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Arial Black', Arial, sans-serif;
  line-height: 1;
}
.ev-card__date-month {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ev-card__date-year {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
}
.ev-card__countdown {
  position: absolute;
  top: .75rem;
  right: .875rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
}

.ev-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  flex: 1;
}
.ev-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.ev-card__secteurs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.ev-tag {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 600;
  color: #555;
}
.ev-countdown {
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}
.ev-card__desc {
  font-size: .83rem;
  color: #666;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card__meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.ev-meta-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .78rem;
  color: #555;
  line-height: 1.4;
}
.ev-meta-row svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #aaa;
}

.ev-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .875rem;
  border-top: 1px solid #f5f5f5;
  margin-top: auto;
}
.ev-prix {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.ev-prix--free {
  background: #E8F5E9;
  color: #2E7D32;
}
.ev-prix--paid {
  background: #FFF3E0;
  color: #E65100;
}
.ev-btn-inscrire:hover {
  background: #c73e26;
  transform: translateY(-1px);
}

.ev-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #bbb;
  font-size: .9rem;
}
.ev-empty svg { display: block; margin: 0 auto 1rem; }

@media (max-width: 640px) {
  .ev-hero { padding: 5rem 1.25rem 3rem; }
  .ev-filters__inner { padding: .75rem 1rem; gap: .5rem; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-grid-wrap { padding: 1.5rem 1rem 3rem; }
}

.ev-empty-state { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.ev-empty-icon { margin-bottom: 1.5rem; color: #ccc; }
.ev-empty-title { font-size: 1.5rem; font-weight: 800; color: #1a1a1a; margin-bottom: .5rem; }
.ev-empty-desc { color: #aaa; font-size: .9rem; margin-bottom: 3rem; }
.ev-empty-block { margin-bottom: 3rem; text-align: left; }
.ev-empty-block__title { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: .25rem; }
.ev-empty-block__sub { font-size: .82rem; color: #aaa; margin-bottom: 1.25rem; }
.ev-empty-row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; opacity: .7; }
.ev-empty-card { flex: 0 0 180px; border-radius: 10px; overflow: hidden; background: #f5f5f5; border: 1px solid #eee; text-decoration: none; display: block; transition: opacity .15s; }
.ev-empty-card:hover { opacity: 1; }
.ev-empty-card__img { height: 100px; background: #e0e0e0; }
.ev-empty-card__tag { font-size: .65rem; font-weight: 700; color: #E94E32; padding: .5rem .75rem .1rem; text-transform: uppercase; letter-spacing: .5px; }
.ev-empty-card__title { font-size: .8rem; font-weight: 600; color: #1a1a1a; padding: .25rem .75rem .75rem; line-height: 1.3; }
.ev-empty-row--orgs { gap: .875rem; flex-wrap: wrap; }
.ev-empty-org { display: flex; align-items: center; gap: .625rem; padding: .625rem 1rem; background: #f8f8f8; border-radius: 50px; border: 1px solid #eee; opacity: .65; }
.ev-empty-org__avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.ev-empty-org__name { font-size: .8rem; font-weight: 600; color: #1a1a1a; }
.ev-empty-org__sect { font-size: .7rem; color: #aaa; }
.ev-empty-link { display: inline-block; margin-top: 1rem; font-size: .8rem; font-weight: 700; color: #E94E32; text-decoration: none; }
.ev-empty-link:hover { text-decoration: underline; }

.evenements-hero {
  background: #0f0f0f;
  padding: 6rem 2rem 3.5rem;
  position: relative;
}
.evenements-hero__inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.evenements-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
  font-family: 'Arial Black', Arial, sans-serif;
}
.evenements-hero__sub { font-size: .95rem; color: rgba(255,255,255,.5); line-height: 1.65; }

.evenements-body { max-width: 1160px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.evenements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .evenements-hero { padding: 5rem 1.25rem 2.5rem; }
  .evenements-body { padding: 1.5rem 1rem 4rem; }
  .evenements-grid { grid-template-columns: 1fr; }
  .ev-empty-row { gap: .75rem; }
  .ev-empty-card { flex: 0 0 150px; }
}

.ev-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #EAEBF0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.ev-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.ev-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  flex-shrink: 0;
}
.ev-card__cover img { width:100%;height:100%;object-fit:cover;display:block; }
.ev-card__cover-placeholder { width:100%;height:100%; }
.ev-card__countdown {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .25rem .625rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
}

.ev-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  flex: 1;
}
.ev-card__secteurs { display: flex; gap: .375rem; flex-wrap: wrap; }
.ev-chip {
  padding: .25rem .625rem;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 600;
  background: #F0F1F5;
  color: #555;
}
.ev-card__title {
  font-weight: 800;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.3;
  font-family: 'Arial Black', Arial, sans-serif;
}
.ev-card__desc {
  font-size: .8rem;
  color: #777;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card__infos { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.ev-card__info-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .78rem;
  color: #666;
  line-height: 1.4;
}
.ev-card__info-row svg { flex-shrink: 0; margin-top: 1px; color: #E94E32; }
.ev-card__contacts {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid #F0F1F5;
}
.ev-card__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .875rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: #E94E32;
  border: 1.5px solid rgba(233,78,50,.25);
  background: rgba(233,78,50,.05);
  text-decoration: none;
  transition: all .15s;
}
.ev-card__contact-btn:hover { background: #E94E32; color: #fff; border-color: #E94E32; }

.evenements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 600px) {
  #ev-detail-overlay > div {
    flex-direction: column !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 12px !important;
  }
  #ev-detail-overlay > div > div:first-child {
    flex: 0 0 200px !important;
    min-height: 200px !important;
  }
}
