/* ═══════════════════════════════════════════════════════════
   KAFOU EVENT — Design system
   Direction : cartes arrondies, boutons pilule, image dominante
   (inspiré du kit "Nevet — Event Booking")
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ===== VARIABLES ===== */
:root {
  --orange:       #ff7e33;
  --orange-dark:  #e8631a;
  --orange-soft:  #ffe8d6;
  --bg:           #faf8f5;
  --white:        #ffffff;
  --text:         #1a1a2e;
  --text-light:   #6b7280;
  --border-soft:  #f0ece5;
  --shadow:       0 4px 16px rgba(26,26,46,0.06);
  --shadow-lift:  0 16px 36px rgba(26,26,46,0.12);
  --radius-card:  24px;
  --radius-pill:  100px;
  --radius-input: 16px;
  --nav-height:   72px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }

/* ===== HEADER / NAV ===== */
header {
  position: fixed; top: 0; width: 100%;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  height: var(--nav-height);
}
.top-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; height: 100%;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.top-nav .logo { height: 38px; }
.nav-links { display: flex; }
.nav-links a {
  margin: 0 14px; color: var(--text); font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.92rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn-1 {
  padding: 10px 22px; border: 1.5px solid var(--text);
  background: var(--white); color: var(--text);
  border-radius: var(--radius-pill); cursor: pointer;
  font-weight: 700; font-family: var(--font-display);
  transition: .2s; font-size: 0.88rem; white-space: nowrap;
}
.btn-1:hover { background: var(--text); color: var(--white); }
.btn-2 {
  padding: 10px 22px; background: var(--orange);
  color: var(--white); border: none;
  border-radius: var(--radius-pill); cursor: pointer;
  font-weight: 700; font-family: var(--font-display);
  transition: .2s; font-size: 0.88rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255,126,51,0.32);
}
.btn-2:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Bouton hamburger — caché par défaut, visible seulement en media query mobile */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.nav-burger span {
  width: 22px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 86vh;
  display: flex; justify-content: center; align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,126,51,0.16), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255,126,51,0.12), transparent 50%),
    var(--bg);
  position: relative; color: var(--text);
  padding-top: var(--nav-height);
}
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 1; padding: 20px; max-width: 720px; }
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 32px;
  color: var(--text-light);
}
.hero-content .btn {
  background: var(--orange); color: var(--white);
  padding: 16px 36px; border-radius: var(--radius-pill);
  font-weight: 700; font-family: var(--font-display); font-size: 1rem;
  transition: .25s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 28px rgba(255,126,51,0.38);
}
.hero-content .btn:hover { background: var(--orange-dark); transform: translateY(-3px); }

/* ===== SECTION CONTAINER ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 32px; color: var(--text);
  letter-spacing: -0.01em;
}

/* ===== FILTERS ===== */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 10px 20px; border: 1.5px solid var(--border-soft);
  background: var(--white); color: var(--text-light);
  border-radius: var(--radius-pill); cursor: pointer; font-weight: 600;
  font-family: var(--font-display);
  transition: .2s; font-size: 0.88rem;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active {
  background: var(--text); color: var(--white); border-color: var(--text);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex; gap: 10px; margin-bottom: 32px;
  position: relative;
}
.search-bar input {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill); font-size: 0.95rem; outline: none; transition: .2s;
  background: var(--white);
  font-family: var(--font-body);
}
.search-bar input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.search-icon {
  width: 20px; height: 20px;
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-light);
}
#search-input { width: 100%; padding: 14px 16px 14px 46px; }

/* ===== EVENTS GRID ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ===== EVENT CARD ===== */
.event-card {
  background: var(--white); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  border: 1px solid var(--border-soft);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.event-card img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.event-card img { cursor: pointer; }
.event-img-wrap { position: relative; }
.event-card .badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--white); color: var(--text);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.badge-past { background: #e5e7eb !important; color: #6b7280 !important; }
.event-card-past { opacity: 0.8; }
.event-card-past img { filter: grayscale(35%); }
.event-card-past .card-body { padding-bottom: 20px; }

/* ===== COLLABORATEURS ===== */
.collabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.collab-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: transform .25s, box-shadow .25s;
}
.collab-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.collab-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
}
.collab-name {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 4px;
}
.collab-role {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.collab-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: .03em;
}
.badge-active   { background: #e6fffa; color: #2f9e44; }
.badge-partner  { background: var(--orange-soft); color: var(--orange-dark); }
.badge-media    { background: #eef2ff; color: #4c6ef5; }
.badge-logistic { background: #fdf4ff; color: #9c36b5; }
.event-img-wrap { position: relative; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3;
}
.event-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; }
.event-meta span { margin-right: 12px; display: inline-flex; align-items: center; gap: 6px; }
.meta-icon { width: 15px; height: 15px; flex-shrink: 0; vertical-align: middle; color: var(--orange); }
.ticket-icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: middle; }
.card-desc { font-size: 0.9rem; color: var(--text-light); flex: 1; margin-bottom: 16px; line-height: 1.5; }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-soft); padding-top: 16px;
}
.event-price {
  font-weight: 800; color: var(--text); font-size: 1.05rem;
  font-family: var(--font-display);
}
.ticket-btn {
  background: var(--orange); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-family: var(--font-display); font-size: 0.86rem;
  transition: .2s; display: inline-flex; align-items: center; gap: 6px;
}
.ticket-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ===== NO RESULTS ===== */
.no-results { text-align: center; color: var(--text-light); padding: 50px; font-size: 1.05rem; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}
.category-card {
  background: var(--white); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .25s, box-shadow .25s;
  text-align: center;
  border: 1px solid var(--border-soft);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.category-card img { width: 100%; height: 150px; object-fit: cover; }
.category-card h3 { padding: 16px; font-size: 1rem; font-weight: 700; }

/* ===== FOOTER ===== */
footer {
  background: var(--text); color: var(--white);
  padding: 36px 24px; text-align: center;
}
footer a { color: var(--white); margin: 0 10px; opacity: .85; }
footer a:hover { opacity: 1; text-decoration: underline; }
footer p { margin-bottom: 10px; font-family: var(--font-display); }

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #f0ece5 25%, #e5ddd2 50%, #f0ece5 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--radius-card);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 340px; }

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--text); color: #fff; padding: 14px 22px;
  border-radius: var(--radius-pill); font-size: 0.9rem;
  font-family: var(--font-display); font-weight: 600;
  opacity: 0; transform: translateY(20px);
  transition: .3s; pointer-events: none;
  box-shadow: var(--shadow-lift);
}
.toast.show { opacity: 1; transform: translateY(0); }

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

/* Tablette */
@media (max-width: 900px) {
  .events-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Mobile : menu hamburger remplace les liens horizontaux */
@media (max-width: 768px) {
  .top-nav { padding: 0 16px; }
  .top-nav .logo { height: 30px; }

  .nav-burger { display: flex; }

  .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lift);
    border-radius: 0 0 24px 24px;
    padding: 8px 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a {
    margin: 0; padding: 14px 22px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-actions { gap: 6px; }
  .btn-1, .btn-2 { padding: 8px 16px; font-size: 0.82rem; }

  .hero-content h1 { font-size: 2.1rem; }
  .section { padding: 44px 18px; }
  .events-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Très petit écran (téléphones étroits) */
@media (max-width: 380px) {
  .top-nav .logo { height: 26px; }
  .btn-1, .btn-2 { padding: 7px 14px; font-size: 0.78rem; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.92rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section-title { font-size: 1.5rem; }
}
