/* ============================================
   ÉTABLISSEMENT ARTS ET CULTURE - MAIN CSS
   Colors: Red #c0392b, Green #27ae60, Dark #1a1a2e
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #c0392b;
  --secondary: #27ae60;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --gold: #f39c12;
  --text: #333;
  --light-bg: #f8f9fa;

  /* Bootstrap Variable Overrides */
  --bs-primary: #c0392b;
  --bs-primary-rgb: 192, 57, 43;
  --bs-secondary: #27ae60;
  --bs-secondary-rgb: 39, 174, 96;
  --bs-danger: #c0392b;
  --bs-danger-rgb: 192, 57, 43;
  --bs-success: #27ae60;
  --bs-success-rgb: 39, 174, 96;
  --bs-warning: #f1c40f;
  --bs-info: #3498db;
  --bs-dark: #1a1a2e;
  --bs-dark-rgb: 26, 26, 46;
  
  /* Link Color */
  --bs-link-color: #c0392b;
  --bs-link-hover-color: #a93226;
}

/* ===== GLOBAL ===== */
* { box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text); overflow-x: hidden; padding-top: 90px; }
.rtl { font-family: 'Amiri', 'Poppins', sans-serif; }

/* ===== NAVBAR ===== */
#mainNav {
  background: linear-gradient(135deg, #000000 0%, #4a148c 50%, #c2185b 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
}

.navbar-brand .brand-name {
  font-family: 'Amiri', serif;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #fff 0%, #c0392b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -2px;
  display: block;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px !important;
  border-radius: 50px;
  transition: all 0.3s;
  position: relative;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background: rgba(194, 24, 91, 0.25);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: white !important;
  background: #c2185b;
  box-shadow: 0 4px 15px rgba(194, 24, 91, 0.4);
}

/* Kids Link Artistic */
.nav-kids {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.kids-text {
  background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.kids-icon { color: #f39c12; animation: kidsWiggle 2s infinite; }

@keyframes kidsWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

/* Glass Buttons */
.btn-dark-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s;
}
.btn-dark-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Mega Menu */
.mega-menu {
  min-width: 520px;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
}

.dropdown-menu { border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border-radius: 12px; }
.dropdown-item { font-size: 0.85rem; padding: 8px 16px; transition: all 0.2s; border-radius: 6px; margin: 2px 4px; }
.dropdown-item:hover { background: rgba(192,57,43,0.08); color: var(--primary); }
.dropdown-header { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 10px 16px; margin-bottom: 5px !important; }

/* ===== HERO SECTION ===== */
.hero-section { height: 90vh; min-height: 550px; max-height: 850px; position: relative; overflow: hidden; }
.hero-slider, .swiper { height: 100%; }
.hero-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero-bg-blur {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(40px) brightness(0.35) saturate(1.2);
  z-index: 1;
}
.hero-fg-img {
  position: relative;
  z-index: 2;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.hero-default {
  background: url('../hero/hero2.png') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
}
.hero-content { 
  max-width: 1000px; 
  margin: 0 auto; 
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.hero-text-content h1, 
.hero-subtitle-animated {
  background: linear-gradient(-45deg, #000000 0%, #ad1457 25%, #000000 50%, #ad1457 75%, #000000 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  text-shadow: 0 15px 30px rgba(0,0,0,0.15);
  animation: dynamicGradient 10s linear infinite;
  letter-spacing: -0.02em;
  padding-bottom: 5px;
  font-weight: 900;
}

@keyframes dynamicGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.swiper-button-next, .swiper-button-prev { color: white !important; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ===== STATS BAR ===== */
.stats-bar { border-top: 3px solid var(--primary); }
.stat-item { padding: 10px; }

/* ===== SECTION HEADERS ===== */
.section-title { font-size: 1.8rem; font-weight: 700; color: var(--dark); }
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin-top: 8px;
}

/* ===== EVENT CARDS ===== */
.event-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}
.event-card .card-img-top { transition: transform 0.4s ease; }
.event-card:hover .card-img-top { transform: scale(1.05); }
.event-meta { line-height: 1.8; }

/* ===== FILM CARDS ===== */
.film-card { border-radius: 16px; overflow: hidden; }
.film-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.film-card:hover .film-overlay { opacity: 1; }
.age-badge {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== CATEGORY CARDS ===== */
.category-card .card { transition: all 0.3s; border-radius: 16px; }
.category-card:hover .card { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; }

/* ===== NEWS CARDS ===== */
.news-card { border-radius: 16px; overflow: hidden; border: none; }

/* ===== VENUE CARDS ===== */
.venue-card .card { border-radius: 16px; overflow: hidden; }

/* ===== KIDS BANNER ===== */
.kids-banner { background-attachment: fixed; }

/* ===== PAGE HEADERS ===== */
.page-header {
  background: linear-gradient(135deg, #000000 0%, #4a148c 50%, #c2185b 100%);
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/pattern.png') repeat;
  opacity: 0.05;
}
.page-header h1 { font-weight: 800; font-size: 2.8rem; margin-bottom: 0; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }

/* ===== FILTERS BAR ===== */
.filters-bar {
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 72px;
  z-index: 100;
}
.filter-btn { border-radius: 25px; padding: 6px 20px; font-size: 0.85rem; border: 2px solid #dee2e6; color: var(--text); background: white; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== CINEMA PAGE ===== */
.film-list-card {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  transition: all 0.3s;
}
.film-list-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; }
.screening-badge {
  display: inline-block;
  background: var(--dark);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 3px;
}
.screening-badge .salle { color: var(--primary); font-weight: 600; }

/* ===== ABOUT PAGE ===== */
.salle-detail-card { border-radius: 20px; overflow: hidden; border: none; }

/* ===== CONTACT PAGE ===== */
.contact-form { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.contact-info-card { background: linear-gradient(135deg, var(--dark), var(--dark2)); color: white; border-radius: 20px; padding: 40px; }

/* ===== FOOTER ===== */
.footer-main { background: linear-gradient(135deg, var(--dark) 0%, #0d0d1a 100%); }
.footer-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 2px solid rgba(192,57,43,0.4); }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact li { margin-bottom: 10px; font-size: 0.88rem; display: flex; align-items: flex-start; gap: 8px; }
.social-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  color: white; border-radius: 50%;
  text-decoration: none; font-size: 0.9rem;
  transition: all 0.3s;
}
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); }

/* ===== ADMIN LAYOUT ===== */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--dark) 0%, #0d0d1a 100%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  overflow-y: auto;
  transition: all 0.3s;
}
.admin-main { margin-left: 260px; min-height: 100vh; background: #f0f2f5; }
.admin-topbar { background: white; padding: 12px 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.sidebar-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-menu .nav-link {
  color: rgba(255,255,255,0.7);
  padding: 10px 20px;
  font-size: 0.88rem;
  display: flex; align-items: center; gap: 10px;
  border-radius: 8px; margin: 2px 10px;
  transition: all 0.2s;
}
.sidebar-menu .nav-link:hover, .sidebar-menu .nav-link.active {
  background: rgba(192,57,43,0.2);
  color: white;
}
.sidebar-menu .nav-link i { width: 20px; text-align: center; }
.sidebar-section { padding: 10px 20px 5px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); }
.stat-card { border: none; border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; }

/* ===== TABLE STYLES ===== */
.admin-table { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.admin-table th { background: var(--dark); color: white; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { vertical-align: middle; font-size: 0.88rem; }

/* ===== FORM STYLES ===== */
.form-control, .form-select { border-radius: 10px; border: 1.5px solid #dee2e6; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }

/* ===== BADGE STYLES ===== */
.status-active { color: var(--secondary); background: rgba(39,174,96,0.1); padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; }
.status-inactive { color: #e74c3c; background: rgba(231,76,60,0.1); padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; }

/* ===== UTILITIES ===== */
.bg-dark-subtle { background: #f0f2f5 !important; }
.text-danger { color: var(--primary) !important; }
.btn-danger { background: var(--primary); border-color: var(--primary); }
.btn-danger:hover { background: #a93226; border-color: #a93226; }
.btn-outline-danger { border-color: var(--primary); color: var(--primary); }
.btn-outline-danger:hover { background: var(--primary); border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-section { height: 70vh; }
  .admin-sidebar { width: 100%; min-height: auto; position: relative; }
  .admin-main { margin-left: 0; }
}

@media (max-width: 576px) {
  .hero-section { height: 60vh; }
  .page-header h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
}

/* ===== KIDS SPECIAL ===== */
.kids-page { background: linear-gradient(135deg, #fff9e6, #ffe9e9, #e9ffe9); }
.kids-card {
  border-radius: 20px;
  border: 3px solid;
  overflow: hidden;
  transition: all 0.3s;
}
.kids-card:hover { transform: translateY(-8px) rotate(1deg); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  max-height: 3em; 
}

/* ===== PRIX ANIMATION ===== */
.price-badge {
  animation: priceGlow 2s ease-in-out infinite;
}
@keyframes priceGlow {
  0%,100% { color: #c0392b; text-shadow: none; }
  50% { color: #27ae60; text-shadow: 0 0 10px rgba(39,174,96,0.5); }
}

/* ===== LOGO HEADER STYLE ===== */
.logo-sphere {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.logo-sphere:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.logo-sphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== HERO LOGO ===== */
.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  animation: logoFloat 5s ease-in-out infinite;
  display: inline-block;
  border: 4px solid rgba(255,255,255,0.3);
  z-index: 10;
  overflow: hidden;
  margin-bottom: 0;
}

@keyframes logoFloat {
  0%, 100% { 
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 0 25px 80px rgba(255, 255, 255, 0.6);
  }
}

/* ===== KIDS BANNER ANIMATION ===== */
.kids-anim-bounce {
  animation: kidsBounce 2s ease-in-out infinite;
}
@keyframes kidsBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

/* ===== BUTTONS GRADIENT ===== */
.btn-danger {
  background: linear-gradient(135deg, #c0392b, #a93226) !important;
  border: none !important;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #a93226, #c0392b) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.4) !important;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #c0392b, #27ae60);
  border-radius: 2px;
  margin-top: 8px;
}
