/* 
  =========================================
  DESIGN SYSTEM - ARTS ET CULTURE ALGER
  =========================================
*/

:root {
  --primary: #006837;
  --secondary: #008751;
  --accent: #8B0000;
  --dark-base: #1a1a1a;
  --dark-deep: #0e0e0e;
  --text-main: #000000;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Cairo', sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  padding-top: 100px;
}

.rtl { font-family: 'Almarai', 'Cairo', sans-serif; }

/* ===== NAVBAR MODERNE ===== */
#mainNav {
  background-color: var(--white) !important;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  z-index: 1100;
}

.navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 15px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

/* Correction demandée : Icônes en NOIR */
.navbar-nav .nav-link i {
  color: #000000 !important;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
  color: var(--accent) !important;
}

/* Bouton Langue */
.lang-switcher-btn {
  background: var(--bg-light);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s;
}

.lang-switcher-btn:hover {
  background: var(--dark-base);
  color: var(--white);
}

/* ===== HERO SLIDER ===== */
.hero-section {
  height: calc(100vh - 100px);
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.hero-slider { height: 100%; }
.hero-slide { position: relative; height: 100%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* Darker for better text contrast without the box */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-content {
  background: transparent; /* Remove the box as requested */
  padding: 0;
  border-radius: 0;
  border: none;
  max-width: 1000px;
  box-shadow: none;
  margin: 0 auto;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8); /* Strong shadow for readability */
  animation: heroTextFadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes heroTextFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title-ar {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  line-height: 1.3;
}

/* ===== PAGE HEADERS ===== */
.page-header {
  background: linear-gradient(to left, #006837 0%, #008751 100%) !important;
  padding: 50px 0 !important; /* Réduction de 50% */
  color: var(--white);
  text-align: center;
}

/* ===== ROYAL THEMES FOR HEADERS ===== */

/* Global Button Style for all headers */
.page-filter-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid transparent !important;
  padding: 8px 22px !important;
  border-radius: 12px !important;
  color: #000000 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  font-size: 0.9rem !important;
}

.page-filter-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.page-filter-btn.active {
  background: #f39c12 !important; /* Default accent color */
  color: #000000 !important;
}

/* Common Text Color for all Royal Headers */
.header-royal h1, 
.header-royal .breadcrumb-item, 
.header-royal .breadcrumb-item a,
.header-royal .breadcrumb-item.active {
  color: #ffffff !important; /* Fixed: White for better contrast on dark gradients */
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-royal .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5) !important;
}

/* Green (Cinema) */
.header-royal-green {
  background: linear-gradient(135deg, #004d26 0%, #006837 100%) !important;
  color: #000000 !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #f39c12 !important;
}

/* Blue (News) */
.header-royal-blue {
  background: linear-gradient(135deg, #003366 0%, #004080 100%) !important;
  color: #000000 !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #3498db !important;
}
.header-royal-blue .page-filter-btn.active { background: #3498db !important; }

/* Purple (Conservatoire) */
.header-royal-purple {
  background: linear-gradient(135deg, #4b0082 0%, #800080 100%) !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #9b59b6 !important;
}
.header-royal-purple .page-filter-btn.active { background: #9b59b6 !important; color: white !important; }

/* Gold/Yellow (Concerts/Events) */
.header-royal-gold {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 100%) !important;
  color: #000000 !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #000000 !important;
}
.header-royal-gold .page-filter-btn.active { background: #000000 !important; color: #ffffff !important; }

/* Orange (Kids) */
.header-royal-orange {
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%) !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #ffffff !important;
}
.header-royal-orange h1, 
.header-royal-orange .breadcrumb-item, 
.header-royal-orange .breadcrumb-item a,
.header-royal-orange .breadcrumb-item.active {
  color: #000000 !important; /* Orange is light enough for black text */
  text-shadow: none;
}

/* Navy (About/Contact) */
.header-royal-navy {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  color: #000000 !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #c0392b !important;
}
.header-royal-navy h1, 
.header-royal-navy .breadcrumb-item, 
.header-royal-navy .breadcrumb-item a,
.header-royal-navy .breadcrumb-item.active {
  color: #ffffff !important;
}

/* Teal (Expositions) */
.header-royal-teal {
  background: linear-gradient(135deg, #008080 0%, #20b2aa 100%) !important;
  color: #000000 !important;
  padding: 45px 0 !important;
  border-bottom: 4px solid #f39c12 !important;
}

/* ===== FOOTER PREMIUM ===== */
.footer-main {
  background-color: var(--dark-base) !important;
  color: var(--white);
  padding: 80px 0 0;
}

.footer-title-modern {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.footer-title-modern::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--white);
}

.footer-bottom {
  background-color: var(--dark-deep) !important;
  padding: 30px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.social-btn-dark {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08) !important;
  color: var(--white) !important;
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
}

.social-btn-dark:hover {
  background: var(--white) !important;
  color: var(--dark-base) !important;
  transform: translateY(-3px);
}

/* Utility */
.text-accent { color: var(--accent); }
.bg-light-cream { background-color: #F9F5F0 !important; }

/* ===== COMPONENTS ===== */

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Section Titles & Dividers */
.section-title {
  font-weight: 800;
  color: var(--dark-base);
  position: relative;
  margin-bottom: 15px;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 30px;
}

/* Event & News Cards */
.event-card, .news-card, .film-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
}

.event-card-img img, .news-card img, .film-card img {
  transition: transform 0.5s ease;
}
.hover-lift:hover img {
  transform: scale(1.05);
}

/* Structure Cards (Home) - Premium Upgrade */
.structure-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.structure-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(216, 27, 96, 0.15);
  border-color: rgba(216, 27, 96, 0.1);
}
.structure-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.structure-img-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.structure-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 1; /* Keep visible but subtle for mobile/UX */
  transition: background 0.3s;
}
.structure-card:hover .structure-img-container img { transform: scale(1.1); }
.structure-name-overlay { 
  color: white; 
  margin: 0; 
  font-weight: 800; 
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.structure-body { 
  padding: 25px; 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.structure-location { 
  color: #D81B60; 
  font-size: 0.8rem; 
  font-weight: 700; 
  margin-bottom: 12px; 
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.structure-desc { 
  font-size: 0.92rem; 
  color: #555; 
  line-height: 1.6;
  display: -webkit-box; 
  -webkit-line-clamp: 2; /* Limited to 2 lines as requested */
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  margin-bottom: 20px; 
}
.structure-link { 
  margin-top: auto;
  color: #D81B60; 
  font-weight: 800; 
  text-decoration: none; 
  font-size: 0.9rem; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.structure-link:hover {
  gap: 12px;
  color: #ad1457;
}



/* Pagination Modern */
.custom-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.page-num {
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: white;
  color: #333;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
}
.page-num.active {
  background: #D81B60;
  color: white;
  box-shadow: 0 8px 20px rgba(216, 27, 96, 0.3);
  transform: scale(1.1);
}
.page-num:hover:not(.active) {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Info Bar */
.structure-info-bar {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}
.per-page-select {
  border: 1px solid #ddd;
  padding: 5px 15px;
  border-radius: 50px;
  outline: none;
  font-weight: 700;
  cursor: pointer;
  background: #f8f9fa;
}

/* Category Cards */
.category-card .card {
  border-radius: 15px;
  transition: all 0.3s;
}
.category-card:hover .card {
  background: var(--dark-base) !important;
  color: white !important;
}

/* Dividers */
.golden-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #daa520, transparent);
  margin: 0 auto;
}

/* Animations */
.kids-anim-bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
