/* ============================================================
   activites.css — Styles de la page Activités
   Association Dechrist
   ============================================================ */

.page { background: #f9fafb; padding-bottom: 3rem; }

/* ── HERO ── */
.act-hero {
  padding: 4.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  min-height: 320px;
}
.act-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.80) 0%, rgba(29,78,216,0.68) 60%, rgba(37,99,235,0.78) 100%);
  z-index: 1;
}
.act-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 2;
}

/* Slider */
.act-hero-slider { position: absolute; inset: 0; z-index: 0; }
.act-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.act-hero-slide.active { opacity: 1; }
.act-hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.act-hero-deco1 {
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); z-index: 3;
}
.act-hero-deco2 {
  position: absolute; bottom: -60px; left: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.15); z-index: 3;
}

/* Slider dots */
.act-hero-dots {
  position: absolute; bottom: 1.2rem; left: 50%;
  transform: translateX(-50%); z-index: 5; display: flex; gap: 8px;
}
.act-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: all 0.3s; padding: 0;
}
.act-hero-dot.active { background: #fbbf24; width: 24px; border-radius: 4px; }

.act-hero-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
  position: relative; z-index: 4;
}
.act-crumb {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #dbeafe; font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 1.2rem;
}
.act-hero-title {
  font-family: Georgia, serif; color: #fff;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1rem;
}
.act-hero-title em { color: #fbbf24; font-style: italic; }
.act-hero-sub {
  color: #bfdbfe; font-size: 15px; line-height: 1.7;
  max-width: 560px; margin: 0 auto 2rem;
}
.act-hero-stats {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem;
}
.act-hero-stat strong { display: block; color: #fbbf24; font-size: 1.8rem; font-family: Georgia, serif; font-weight: 700; }
.act-hero-stat span { color: #bfdbfe; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── FILTERS ── */
.act-filters-wrap {
  background: #fff; margin: -2rem auto 0; max-width: 920px;
  border-radius: 18px; box-shadow: 0 10px 30px rgba(30,58,138,0.1);
  padding: 1.2rem 1.5rem; position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.act-filter {
  padding: 0.55rem 1.2rem; border-radius: 99px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s;
  background: #f1f5f9; color: #64748b;
}
.act-filter.active { background: #1e3a8a; color: #fff; box-shadow: 0 4px 12px rgba(30,58,138,0.25); }
.act-filter:hover:not(.active) { background: #e0e7ff; color: #1e3a8a; }

/* ── SEARCH BAR ── */
.act-search {
  max-width: 920px; margin: 1.5rem auto 0;
  display: flex; gap: 0.8rem; align-items: center;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 14px; padding: 0.7rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.act-search svg { color: #94a3b8; flex-shrink: 0; }
.act-search input {
  border: none; outline: none; flex: 1;
  font-size: 14px; color: #374151; background: transparent; min-width: 0;
}
.act-search input::placeholder { color: #9ca3af; }
.act-sort {
  font-size: 12px; font-weight: 700; color: #1e3a8a;
  background: #eff6ff; border: none; border-radius: 10px;
  padding: 0.5rem 0.9rem; cursor: pointer; flex-shrink: 0;
}

/* ── GRID ── */
.act-grid-section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.act-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer; display: flex; flex-direction: column;
}
.act-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(30,58,138,0.12); }
.act-cover {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.act-cover svg { opacity: 0.35; width: 60px; height: 60px; color: #fff; }
.act-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.act-badge-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95); color: #1e3a8a;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 99px; z-index: 2;
}
.act-badge-status {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 99px; z-index: 2; color: #fff;
}
.act-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.act-title { font-family: Georgia, serif; font-weight: 700; color: #1e3a8a; font-size: 17px; margin-bottom: 0.5rem; line-height: 1.35; }
.act-desc {
  color: #94a3b8; font-size: 13px; line-height: 1.6; margin-bottom: 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.act-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.1rem; }
.act-meta-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.act-meta-item svg { width: 14px; height: 14px; color: #60a5fa; }
.act-link {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; font-size: 13px; color: #1e3a8a;
  padding-top: 0.9rem; border-top: 1px solid #f1f5f9;
  text-decoration: none; background: none; border-left: none; border-right: none; border-bottom: none;
  width: 100%; cursor: pointer;
}
.act-link svg { transition: transform 0.25s; }
.act-card:hover .act-link svg { transform: translateX(4px); }

/* ── PAGINATION ── */
.act-pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; }
.act-page-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; cursor: pointer;
  border: 1px solid #e5e7eb; background: #fff; color: #64748b;
  transition: all 0.2s; text-decoration: none;
}
.act-page-btn.active { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.act-page-btn:hover:not(.active) { border-color: #1e3a8a; color: #1e3a8a; }

/* ── CTA BOTTOM ── */
.act-cta {
  background: linear-gradient(135deg,#1e3a8a,#1d4ed8);
  border-radius: 24px; margin: 0 1.5rem 1.5rem;
  padding: 2.5rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.act-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.act-cta h3 { font-family: Georgia, serif; color: #fff; font-size: 1.5rem; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.act-cta h3 em { color: #fbbf24; font-style: italic; }
.act-cta p { color: #bfdbfe; font-size: 13px; margin-bottom: 1.3rem; position: relative; z-index: 1; }
.act-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fbbf24; color: #1e3a8a; font-weight: 800; font-size: 13px;
  padding: 0.8rem 1.8rem; border-radius: 99px; text-decoration: none;
  position: relative; z-index: 1;
  box-shadow: 0 6px 18px rgba(251,191,36,0.35);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,42,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; border-radius: 24px;
  max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15,23,42,0.35);
  position: relative; transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: background 0.2s;
}
.modal-close:hover { background: #fff; }
.modal-cover {
  height: 220px; background: linear-gradient(135deg,#3b82f6,#1e3a8a);
  position: relative; border-radius: 24px 24px 0 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.modal-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 26px 26px;
}
.modal-cover-icon { width: 70px; height: 70px; color: #fff; opacity: 0.35; position: relative; z-index: 2; }
.modal-cover-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.6), transparent); height: 80px;
}
.modal-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 5; }
.modal-badge {
  background: rgba(255,255,255,0.95); color: #1e3a8a;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 99px;
}
.modal-badge.status { background: #22c55e; color: #fff; }
.modal-body { padding: 1.8rem 2rem 2rem; }
.modal-title { font-family: Georgia, serif; font-weight: 700; color: #1e3a8a; font-size: 1.5rem; line-height: 1.3; margin-bottom: 1rem; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid #f1f5f9; }
.modal-meta-item {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid #f1f5f9;
  border-radius: 10px; padding: 0.45rem 0.8rem;
  font-size: 12px; font-weight: 700; color: #475569;
}
.modal-meta-item svg { width: 15px; height: 15px; color: #3b82f6; flex-shrink: 0; }
.modal-section-title { font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
.modal-desc { color: #475569; font-size: 14.5px; line-height: 1.8; margin-bottom: 1.6rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.modal-tag { font-size: 12px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border: 1px solid #dbeafe; padding: 0.35rem 0.9rem; border-radius: 10px; }
.modal-impact { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; margin-bottom: 1.8rem; }
.modal-impact div { text-align: center; background: #eff6ff; border-radius: 14px; padding: 1rem 0.5rem; }
.modal-impact strong { display: block; color: #1e3a8a; font-size: 1.4rem; font-family: Georgia, serif; font-weight: 700; }
.modal-impact span { color: #64748b; font-size: 11px; font-weight: 600; }
.modal-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.modal-btn-primary {
  flex: 1; min-width: 140px;
  background: #1e3a8a; color: #fff; font-weight: 800; font-size: 14px;
  padding: 0.95rem; border-radius: 14px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(30,58,138,0.25); transition: background 0.2s; text-decoration: none;
}
.modal-btn-primary:hover { background: #1d4ed8; color: #fff; }
.modal-btn-secondary {
  flex: 1; min-width: 140px;
  background: #fff; color: #1e3a8a; font-weight: 800; font-size: 14px;
  padding: 0.95rem; border-radius: 14px; border: 1.5px solid #e2e8f0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; text-decoration: none;
}
.modal-btn-secondary:hover { border-color: #1e3a8a; color: #1d4ed8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .act-hero { padding: 3.5rem 1rem 4rem; min-height: 280px; }
  .act-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .act-hero { padding: 2.5rem 1rem 4rem; border-radius: 12px 12px 0 0; }
  .act-hero-title { font-size: 1.4rem; }
  .act-hero-sub { font-size: 13px; margin-bottom: 1rem; }
  .act-hero-stats { gap: 1.5rem; }
  .act-hero-stat strong { font-size: 1.4rem; }
  .act-filters-wrap { padding: 1rem; gap: 0.4rem; margin-top: -1rem; }
  .act-filter { padding: 0.45rem 0.9rem; font-size: 12px; }
  
  .act-search { 
    flex-wrap: wrap; 
    padding: 0.6rem 0.8rem; 
    gap: 0.5rem;
  }
  .act-search input { 
    font-size: 13px; 
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .act-sort { 
    width: 100%; 
    text-align: center; 
    margin-left: 0;
    padding: 0.7rem;
  }

  .act-grid { grid-template-columns: 1fr; gap: 1rem; }
  .act-grid-section { padding: 2rem 1rem 3rem; }
  .act-cta { margin: 0 0.5rem 0.5rem; padding: 2rem 1.2rem; border-radius: 16px; }
  .modal-body { padding: 1.2rem 1.2rem 1.5rem; }
  .modal-impact { grid-template-columns: 1fr 1fr; }
  .modal-btn-primary, .modal-btn-secondary { min-width: 100%; }
}

@media (max-width: 380px) {
  .act-hero-title { font-size: 1.2rem; }
  .act-hero-stats { flex-direction: column; gap: 0.8rem; align-items: center; }
  .act-grid { grid-template-columns: 1fr; }
}
