/* ============================================
   CLEAN TOWN - Community Sanitation Program
   Complete Stylesheet
   ============================================ */

/* ----------------------------------------
   CSS VARIABLES
   ---------------------------------------- */
:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --secondary: #52b788;
  --accent: #95d5b2;
  --bg: #f8faf9;
  --bg-alt: #edf2ee;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #d1d9d6;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 106, 79, 0.12);
  --shadow-glow: 0 8px 32px rgba(45, 106, 79, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------------------
   1. RESET & BASE
   ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
  Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial,
  sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #e8f5ee 25%, #d4ebdf 50%, #e0f2e8 75%, #f0faf5 100%);
  background-attachment: fixed;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

::selection {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* ----------------------------------------
   2. HEADER / NAVBAR
   ---------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.logo-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: var(--bg-alt);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----------------------------------------
   3. HERO SECTION
   ---------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  min-height: 100vh;
  padding: 100px 1.5rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  animation: heroGlow 15s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
}

@keyframes heroGlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

/* ===== HERO BACKGROUND SLIDESHOW ===== */
.hero-bg-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideFade 24s infinite;
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 6s; }
.hero-bg-slide:nth-child(3) { animation-delay: 12s; }
.hero-bg-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroSlideFade {
  0%      { opacity: 0; }
  4%      { opacity: 1; }
  21%     { opacity: 1; }
  25%     { opacity: 0; }
  100%    { opacity: 0; }
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(45,106,79,0.45);
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { animation: none; opacity: 0; }
  .hero-bg-slide:first-child { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 16px;
}

.hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  font-weight: 300;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background-color: #ffffff;
  color: var(--primary-dark);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background-color: transparent;
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ----------------------------------------
   4. SECTIONS
   ---------------------------------------- */
.section {
  padding: 60px 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 60px 1.5rem;
  width: 100%;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-title {
  margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
  margin-bottom: 0;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 1rem auto;
}

/* ----------------------------------------
   5. CARDS
   ---------------------------------------- */
.card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--primary);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: var(--primary-light);
}

.card-link svg {
  width: 16px;
  height: 16px;
  display: inline;
  vertical-align: middle;
  margin-left: 4px;
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--border);
}

.card-flat:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.1);
}

/* ----------------------------------------
   6. BADGES
   ---------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-en_cours {
  background-color: #d4edda;
  color: #155724;
}

.badge-terminee {
  background-color: #cce5ff;
  color: #004085;
}

.badge-planifiee {
  background-color: #fff3cd;
  color: #856404;
}

.badge-a_venir {
  background-color: #d4edda;
  color: #155724;
}

.badge-passe {
  background-color: #e2e3e5;
  color: #383d41;
}

.badge-active {
  background-color: #d4edda;
  color: #155724;
}

.badge-inactive {
  background-color: #e2e3e5;
  color: #383d41;
}

.badge-pending {
  background-color: #fff3cd;
  color: #856404;
}

.badge-approved {
  background-color: #cce5ff;
  color: #004085;
}

.badge-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.badge-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.badge-info {
  background-color: #cce5ff;
  color: #004085;
}

/* ----------------------------------------
   7. GRID LAYOUTS
   ---------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

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

.grid-center {
  justify-items: center;
}

/* ----------------------------------------
   8. BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-success:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-danger {
  background-color: #dc3545;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #c82333;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-group .btn {
  flex: 1;
  min-width: 120px;
}

.btn-pill {
  border-radius: 25px;
}

/* ----------------------------------------
   9. FORMS
   ---------------------------------------- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group label .required {
  color: #dc3545;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background-color: var(--bg-alt);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-error-message {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

.form-input-error {
  border-color: #dc3545;
}

.form-input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

.form-check label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ----------------------------------------
   10. TABLES (ADMIN)
   ---------------------------------------- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background-color: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.admin-table tr:hover {
  background-color: var(--bg-alt);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .actions,
.actions-cell {
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-table .actions .btn,
.actions-cell .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.admin-table .actions svg,
.actions-cell svg {
  width: 16px;
  height: 16px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-wrapper .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.table-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.table-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
}

.table-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ----------------------------------------
   11. ADMIN LAYOUT
   ---------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.55);
}
/* Firefox */
.admin-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) transparent;
}

.admin-sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.admin-sidebar-logo img {
  height: 36px;
  width: auto;
}

.admin-sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.admin-sidebar-subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.admin-nav {
  padding: 1rem 0;
}

.admin-nav-section {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.admin-nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border-radius: 0;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.admin-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(3px);
}

.admin-nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.admin-nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-nav-link .badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

.admin-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  bottom: 0;
  background-color: var(--primary-dark);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  flex-shrink: 0;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 0.75rem;
  opacity: 0.7;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  background-color: var(--bg);
  min-height: 100vh;
}

.admin-header {
  background-color: #ffffff;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.admin-page-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.admin-breadcrumb a {
  color: var(--primary);
}

.admin-breadcrumb span {
  color: var(--text-light);
}

.admin-content {
  padding: 2rem;
  animation: adminPageIn 0.3s ease;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ----------------------------------------
   12. ADMIN DASHBOARD KPIs
   ---------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 0 0 80px;
  opacity: 0.05;
}

.kpi-card:hover {
  transform: translateY(-4px);
}

.kpi-card:nth-child(1)::after {
  background-color: var(--primary);
}

.kpi-card:nth-child(2)::after {
  background-color: var(--secondary);
}

.kpi-card:nth-child(3)::after {
  background-color: #ffc107;
}

.kpi-card:nth-child(4)::after {
  background-color: #dc3545;
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.kpi-icon svg {
  width: 24px;
  height: 24px;
}

.kpi-icon-green {
  background-color: rgba(45, 106, 79, 0.1);
  color: var(--primary);
}

.kpi-icon-blue {
  background-color: rgba(82, 183, 136, 0.1);
  color: var(--secondary);
}

.kpi-icon-yellow {
  background-color: rgba(255, 193, 7, 0.1);
  color: #f59e0b;
}

.kpi-icon-red {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.kpi-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.kpi-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-trend-up {
  color: #155724;
}

.kpi-trend-down {
  color: #dc3545;
}

.kpi-trend svg {
  width: 14px;
  height: 14px;
}

/* ----------------------------------------
   13. ADMIN FILTER ROW
   ---------------------------------------- */
.admin-filter-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-filter-row input[type="text"],
.admin-filter-row select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 200px;
  background-color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-filter-row input[type="text"]:focus,
.admin-filter-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.admin-filter-row input[type="text"]::placeholder {
  color: #adb5bd;
}

.admin-filter-row .filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-filter-row .filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.admin-filter-row .filter-clear {
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.admin-filter-row .filter-clear:hover {
  background-color: var(--bg-alt);
  color: var(--text);
}

.admin-filter-row .search-input {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.admin-filter-row .search-input input {
  padding-left: 2.5rem;
  width: 100%;
}

.admin-filter-row .search-input svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

/* ----------------------------------------
   14. ADMIN LOGIN
   ---------------------------------------- */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.login-container::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.login-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo img {
  height: 50px;
  margin: 0 auto 0.75rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.login-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.login-error {
  background-color: #fee;
  color: #c00;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.login-success {
  background-color: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid rgba(21, 87, 36, 0.2);
}

.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form .btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.login-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ----------------------------------------
   15. FEATURE CARDS (HOMEPAGE)
   ---------------------------------------- */
.feature-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: var(--secondary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-dark);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ----------------------------------------
   16. INITIATIVE DETAIL
   ---------------------------------------- */
.initiative-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.initiative-hero img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.initiative-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem;
  color: #ffffff;
}

.initiative-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.initiative-hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.initiative-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.initiative-info-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.initiative-info-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--primary);
}

.initiative-info-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.initiative-info-card-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.initiative-content {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.initiative-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.initiative-content h2:first-child {
  margin-top: 0;
}

.initiative-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.before-after-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.before-after-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-slider .after-image {
  clip-path: inset(0 50% 0 0);
}

.before-after-slider .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ffffff;
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.before-after-slider .slider-handle::after {
  content: '⬌';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}

.before-after-label {
  position: absolute;
  bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.before-after-label.before {
  left: 1rem;
}

.before-after-label.after {
  right: 1rem;
}

/* ----------------------------------------
   17. ZONES MAP
   ---------------------------------------- */
.map-container {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  background-color: var(--bg-alt);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-info {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.map-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.map-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.map-info-item:last-child {
  border-bottom: none;
}

.map-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.map-info-item span {
  font-size: 0.9rem;
  color: var(--text);
}

.zone-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.zone-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.zone-card:hover {
  transform: translateY(-2px);
}

.zone-card-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.zone-card-address {
  font-size: 0.85rem;
  color: var(--text-light);
}

.zone-card-status {
  margin-top: 0.5rem;
}

/* ----------------------------------------
   18. EVENTS SLIDESHOW + TIMELINE
   ---------------------------------------- */
.events-slideshow {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 400px;
}

.slideshow-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.slideshow-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.slideshow-slide:not(.active) {
  transform: translateX(-60px);
}

.slideshow-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 200% 200%;
  animation: placeholderShift 6s ease-in-out infinite;
}

@keyframes placeholderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.slideshow-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  z-index: 2;
}

.slideshow-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: #52b788;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slideshow-info h2 {
  font-size: 1.6rem;
  margin: 8px 0;
  color: white;
}

.slideshow-info p {
  opacity: 0.85;
  font-size: 0.95rem;
}

.slideshow-counter {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0,0,0,0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 3;
}

.slideshow-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-prev { left: 16px; }
.slideshow-next { right: 16px; }

.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}

.slideshow-dot.active {
  background: white;
  transform: scale(1.3);
}

.events-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #2d6a4f, #40916c, #52b788);
  border-radius: 2px;
}

.event-timeline-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.event-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.15);
  transition: all 0.3s ease;
}

.event-timeline-item:hover .event-timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(45, 106, 79, 0.2);
}

.event-timeline-content {
  background: white;
  border-radius: var(--radius-lg, 16px);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  flex: 1;
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 106, 79, 0.04);
}

.event-timeline-item:hover .event-timeline-content {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(45, 106, 79, 0.12);
}

.event-timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #40916c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-timeline-content h3 {
  font-size: 1.1rem;
  margin: 6px 0;
  color: var(--primary-dark, #1b4332);
}

/* ----------------------------------------
   19. STATS
   ---------------------------------------- */
.stat-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-dark);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.stat-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-change.positive {
  color: #155724;
}

.stat-change.negative {
  color: #dc3545;
}

.chart-container {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.chart-canvas {
  width: 100%;
  min-height: 300px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ----------------------------------------
   20. INSCRIPTION FORM
   ---------------------------------------- */
.inscription-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.inscription-header {
  text-align: center;
  margin-bottom: 2rem;
}

.inscription-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.inscription-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(21, 87, 36, 0.2);
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(114, 28, 36, 0.2);
}

.form-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.inscription-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.inscription-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.inscription-step.active {
  color: var(--primary);
  font-weight: 600;
}

.inscription-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.inscription-step.active .inscription-step-number {
  background-color: var(--primary);
  color: #ffffff;
}

.inscription-step.completed .inscription-step-number {
  background-color: var(--secondary);
  color: #ffffff;
}

/* ----------------------------------------
   21. CONTACT
   ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-dark);
}

.contact-item-content {
  flex: 1;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.contact-form-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.contact-social-link:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-social-link svg {
  width: 18px;
  height: 18px;
}

/* ----------------------------------------
   22. FOOTER
   ---------------------------------------- */
.main-footer {
  background-color: #1a1a1e;
  color: #ffffff;
  padding: 1.5rem 1.5rem 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 0.5rem;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-brand-text {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.5;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-title::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--secondary);
  margin-top: 0.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.15rem;
}

.footer-links a {
  font-size: 0.78rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-contact-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom-text {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-bottom-links a:hover {
  opacity: 1;
}

.footer-newsletter {
  margin-top: 1rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary);
}

.footer-newsletter-form button {
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.footer-newsletter-form button:hover {
  background-color: var(--primary-light);
}

/* ----------------------------------------
   23. GEO DECORATIVE SHAPES
   ---------------------------------------- */
.geo-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  opacity: 0.03;
  border-radius: 50%;
}

.geo-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background-color: var(--primary);
  top: -50px;
  right: -100px;
}

.geo-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background-color: var(--secondary);
  bottom: 10%;
  left: -50px;
  border-radius: 30%;
}

.geo-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background-color: var(--primary-light);
  top: 40%;
  right: 10%;
}

.geo-shape:nth-child(4) {
  width: 100px;
  height: 100px;
  background-color: var(--accent);
  bottom: 30%;
  right: 30%;
  border-radius: 20%;
}

.geo-shape:nth-child(5) {
  width: 250px;
  height: 250px;
  background-color: var(--primary-dark);
  top: 60%;
  left: 20%;
  opacity: 0.02;
}

/* ----------------------------------------
   24. ANIMATIONS
   ---------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease;
}

.animate-slideUp {
  animation: slideUp 0.6s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes adminPageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-main {
  animation: adminPageIn 0.3s ease;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #e8ece9 50%, var(--bg-alt) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-image {
  height: 200px;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* ----------------------------------------
   25. RESPONSIVE (768px)
   ---------------------------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stat-number {
    font-size: 1.8rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .zones-grid, .cards-grid, .events-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    position: fixed; top: 0; left: -280px; width: 260px; height: 100vh;
    z-index: 1001; transition: left 0.3s ease;
    overflow-y: auto;
  }
  .admin-sidebar.open { left: 0; }
  .admin-main {
    margin-left: 0;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .initiative-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-filter-row input[type="text"],
  .admin-filter-row select {
    min-width: 100%;
  }

  .admin-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter-row .search-input {
    min-width: 100%;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
  }

  .admin-header-right {
    width: 100%;
  }

  .admin-header-right .btn {
    width: 100%;
    text-align: center;
  }

  .admin-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .admin-table {
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .event-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .inscription-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .map-container {
    height: 300px;
  }

  .initiative-hero img {
    height: 250px;
  }

  .before-after-slider {
    height: 250px;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .slideshow-track { height: 280px; }
  .slideshow-info h2 { font-size: 1.2rem; }
  .slideshow-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* ----------------------------------------
   26. RESPONSIVE (480px)
   ---------------------------------------- */
@media (max-width: 480px) {
  .hero {
    padding: 100px 1rem 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .initiative-info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-filter-row .filter-group {
    width: 100%;
  }

  .admin-filter-row .filter-group input,
  .admin-filter-row .filter-group select {
    flex: 1;
  }

  .login-card {
    padding: 1.5rem;
  }

  .inscription-form {
    padding: 1.5rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }

  .card-body {
    padding: 1rem;
  }

  .admin-card {
    padding: 1rem;
  }

  .slideshow-track { height: 220px; }
  .slideshow-info { padding: 20px 16px 16px; }
  .slideshow-info h2 { font-size: 1rem; }
  .slideshow-btn { width: 32px; height: 32px; font-size: 0.9rem; }
  .slideshow-counter { display: none; }

  .map-container { height: 250px; }

  .before-after-slider { height: 250px; }
}

/* ----------------------------------------
   27. PRINT STYLES
   ---------------------------------------- */
@media print {
  .main-header,
  .admin-sidebar,
  .main-footer,
  .geo-shapes,
  .hamburger,
  .btn,
  .nav-cta {
    display: none !important;
  }

  body {
    background-color: #ffffff;
    color: #000000;
  }

  .admin-main {
    margin-left: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .hero {
    background: #ffffff;
    color: #000000;
    padding: 2rem 0;
  }
}

/* ----------------------------------------
   28. ACCESSIBILITY
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----------------------------------------
   29. UTILITY CLASSES
   ---------------------------------------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-light {
  color: var(--text-light);
}

.text-success {
  color: #155724;
}

.text-danger {
  color: #dc3545;
}

.text-warning {
  color: #856404;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.p-4 {
  padding: 2rem;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded {
  border-radius: var(--radius);
}

.bg-white {
  background-color: #ffffff;
}

.bg-alt {
  background-color: var(--bg-alt);
}

/* ----------------------------------------
   30. TOAST NOTIFICATIONS
   ---------------------------------------- */
.toast-container {
  position: fixed;
  top: 85px;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-success {
  border-left: 4px solid #155724;
}

.toast-error {
  border-left: 4px solid #dc3545;
}

.toast-warning {
  border-left: 4px solid #856404;
}

.toast-info {
  border-left: 4px solid var(--primary);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-light);
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background-color: var(--bg-alt);
}

/* ----------------------------------------
   31. MODAL
   ---------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background-color: #ffffff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: var(--bg-alt);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-lg {
  max-width: 700px;
}

.modal-sm {
  max-width: 380px;
}

/* ----------------------------------------
   32. PAGINATION
   ---------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  background-color: #ffffff;
  padding: 0 0.5rem;
  cursor: pointer;
}

.pagination-btn:hover {
  background-color: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 1rem;
}

/* ----------------------------------------
   33. TABS
   ---------------------------------------- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

/* ----------------------------------------
   34. DROPDOWN
   ---------------------------------------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 500;
  padding: 0.5rem 0;
  display: none;
  animation: fadeInUp 0.2s ease;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 0.5rem 0;
}

/* ----------------------------------------
   35. ALERTS
   ---------------------------------------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid rgba(21, 87, 36, 0.2);
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid rgba(114, 28, 36, 0.2);
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid rgba(133, 100, 4, 0.2);
}

.alert-info {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid rgba(0, 64, 133, 0.2);
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.alert-close {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.alert-close:hover {
  opacity: 1;
}

/* ----------------------------------------
   36. PROGRESS BAR
   ---------------------------------------- */
.progress {
  height: 10px;
  background-color: var(--bg-alt);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 5px;
  transition: width 0.5s ease;
}

.progress-sm {
  height: 6px;
}

.progress-lg {
  height: 16px;
  border-radius: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.progress-label-text {
  color: var(--text);
  font-weight: 500;
}

.progress-label-value {
  color: var(--text-light);
}

/* ----------------------------------------
   37. AVATAR
   ---------------------------------------- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
}

.avatar-xl {
  width: 80px;
  height: 80px;
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid #ffffff;
  margin-left: -10px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.avatar-placeholder {
  background-color: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ----------------------------------------
   38. EMPTY STATE
   ---------------------------------------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   39. LOADING OVERLAY
   ---------------------------------------- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.loading-text {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.loading-logo {
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo img {
  height: 60px;
}

/* ----------------------------------------
   40. MISC / ADDITIONAL COMPONENTS
   ---------------------------------------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-alt);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.tag-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tag-remove:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.75rem;
  background-color: var(--text);
  color: #ffffff;
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 6px;
}

.tooltip:hover::after {
  opacity: 1;
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-light);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.border-top {
  border-top: 1px solid var(--border);
}

.border-bottom {
  border-bottom: 1px solid var(--border);
}

.rounded-full {
  border-radius: 50%;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.transition-all {
  transition: all 0.3s ease;
}

.cursor-pointer {
  cursor: pointer;
}

.user-select-none {
  user-select: none;
}

.pointer-events-none {
  pointer-events: none;
}

/* ============================================
   MISSING CLASSES - Templates
   ============================================ */

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 80px 1.5rem 40px;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero title/subtitle/actions used on interior pages (base .hero look/position/overflow
   is already defined once, in section 3 "HERO SECTION" above — removed a byte-for-byte
   duplicate .hero{} block that used to live here). */
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.4); letter-spacing: -0.03em; line-height: 1.1; position: relative; padding-bottom: 16px; }
.hero h1::after { content: ''; display: block; width: 60px; height: 4px; background: var(--secondary); margin: 16px auto 0; border-radius: 2px; }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero-desc { max-width: 600px; margin: 1rem auto 0; opacity: 0.85; line-height: 1.7; color: #fff; }
.hero-buttons { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats bar */
.stats-bar { background: var(--primary-dark) !important; color: #fff; padding: 1.5rem 1.5rem; border-left: 4px solid var(--secondary) !important; }
.stats-bar-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.stats-bar-item { text-align: center; padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); }
.stats-bar-number { font-size: 2.2rem; font-weight: 800; }
.stats-bar-label { font-size: 0.9rem; opacity: 0.8; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* MARQUEE PARTNERS */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  min-width: 140px;
  height: 70px;
}
.marquee-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* CTA */
.cta-section { background: var(--primary); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-section .btn-primary:hover { background: var(--accent); }

/* Cards grid (.card base look/hover already defined once, in section 5 "CARDS" above) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card-image { min-height: 160px; }
.card-body { padding: 1.25rem; flex: 1; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-body p { color: var(--text-light); font-size: 0.9rem; margin: 0.5rem 0; }
.card-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-light); }

/* Events grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.event-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--primary); display: block; transition: transform 0.3s; }
.event-card:hover { transform: translateY(-3px); }
.event-date { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.event-card-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; }

/* Zones grid */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.zone-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: transform 0.3s; }
.zone-card:hover { transform: translateY(-3px); }
.zone-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.5rem; }
.zone-card p { margin: 0.25rem 0; font-size: 0.9rem; color: var(--text-light); }

/* Map */
.map-container { height: 400px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Back link */
.back-link { display: inline-block; color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Initiative hero */
.initiative-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.initiative-hero h1 { font-size: 1.8rem; font-weight: 800; margin-top: 0.75rem; }
.initiative-hero .badge { margin-right: 0.5rem; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.info-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.info-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; font-weight: 600; margin-bottom: 0.25rem; }
.info-value { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); }

/* Detail section */
.detail-section { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.detail-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; }
.detail-section ul { padding-left: 1.5rem; }
.detail-section li { margin-bottom: 0.5rem; color: var(--text-light); }

/* Before/after */
.before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.before-after-card { text-align: center; }
.before-after-label { font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-alt); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.data-table tr:hover { background: var(--bg-alt); }

/* Result card */
.result-card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.result-stats { display: flex; gap: 2rem; margin-bottom: 1rem; }
.result-stat { text-align: center; }
.result-stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.result-stat-label { font-size: 0.8rem; color: var(--text-light); }

/* Badge */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-en_cours, .badge-a_venir { background: #d4edda; color: #155724; }
.badge-terminee { background: #cce5ff; color: #004085; }
.badge-planifiee { background: #fff3cd; color: #856404; }
.badge-passe { background: #e2e3e5; color: #383d41; }
.badge-annule { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-type { background: var(--accent); color: var(--primary-dark); }
.badge.categorie { background: var(--bg-alt); color: var(--primary); }

/* Filter bar */
.filter-bar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select { padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }

/* Admin filter */
.filter-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); }
.filter-group select { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; }

/* Admin KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.kpi-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.3s; display: block; }
.kpi-card:hover { transform: translateY(-3px); }
.kpi-value { font-size: 2rem; font-weight: 800; }
.kpi-label { font-size: 0.9rem; color: var(--text-light); margin-top: 0.25rem; }
.kpi-green .kpi-value { color: var(--primary); }
.kpi-blue .kpi-value { color: #0077b6; }
.kpi-orange .kpi-value { color: #e76f51; }
.kpi-purple .kpi-value { color: #7b2cbf; }

/* Admin sections */
.admin-section { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.admin-section-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; }

/* Admin actions cell */
.actions-cell { white-space: nowrap; }
.btn-small { padding: 0.3rem 0.6rem; font-size: 0.8rem; border-radius: 6px; }
.btn-edit { background: var(--primary); color: #fff; text-decoration: none; display: inline-block; }
.btn-edit:hover { background: var(--primary-light); }

/* Admin form */
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .form-group { margin-bottom: 1rem; }
.admin-form .form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.admin-form .form-group input, .admin-form .form-group select, .admin-form .form-group textarea { width: 100%; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; }
.admin-form .form-group input:focus, .admin-form .form-group select:focus, .admin-form .form-group textarea:focus { outline: none; border-color: var(--primary); }
.admin-form .form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.image-preview { max-width: 200px; max-height: 150px; border-radius: 8px; margin-top: 0.5rem; object-fit: cover; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-info h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1.5rem; }
.contact-item { margin-bottom: 1.5rem; }
.contact-item h3 { font-size: 0.9rem; font-weight: 600; color: var(--primary); margin-bottom: 0.25rem; }
.contact-form-wrapper { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-form-wrapper h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1.5rem; }

/* Error page */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-subtitle { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 1rem 0 0.5rem; }
.error-desc { color: var(--text-light); margin-bottom: 2rem; }

/* Chart */
.chart-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.chart-wrapper { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.chart-wrapper h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; }

/* KPI row (stats public) */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

/* Inscription form */
.inscription-form { max-width: 700px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-success { background: #d4edda; color: #155724; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.form-error { background: #f8d7da; color: #721c24; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }

/* Admin mobile toggle hidden by default, shown on mobile */
.admin-mobile-toggle { display: none; }
.admin-sidebar-close { display: none; }
.admin-sidebar-overlay { display: none; }

/* Responsive */
@media (max-width: 768px) {
  /* Public site */
  .hero h1 { font-size: 2rem; }
  .hero { padding: 80px 1rem 50px; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cards-grid, .events-grid, .zones-grid, .features-grid { grid-template-columns: 1fr; }
  .kpi-grid, .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .stats-bar-grid { gap: 1rem; flex-direction: column; align-items: center; }
  .stats-bar-number { font-size: 1.5rem; }
  .page-header { padding: 60px 1rem 30px; }
  .page-header h1 { font-size: 1.6rem; }
  .section { padding: 2rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { width: 100%; }
  .about-intro { grid-template-columns: 1fr !important; gap: 24px !important; }
  .before-after-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 2.5rem 1rem; }
  .cta-section h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { 
    position: fixed; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 1rem; box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: none; z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-cta { margin-top: 0.5rem; }
  .hamburger { display: flex; }

  /* Admin - Sidebar */
  .admin-sidebar {
    position: fixed; top: 0; left: -280px; width: 260px; height: 100vh;
    z-index: 1001; transition: left 0.3s ease;
  }
  .admin-sidebar.open { left: 0; }
  .admin-sidebar-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
  }
  .admin-sidebar-overlay.open { display: block; }
  .admin-sidebar-close {
    display: block; background: none; border: none; color: #fff;
    font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
  }
  .admin-mobile-toggle {
    display: flex !important; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  .admin-mobile-toggle span {
    display: block; width: 22px; height: 2px; background: var(--primary-dark);
    border-radius: 2px; transition: var(--transition-fast);
  }

  /* Admin - Main content */
  .admin-layout { flex-direction: column; }
  .admin-main { margin-left: 0 !important; width: 100%; }
  .admin-header { padding: 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .admin-page-title { font-size: 1.1rem; }
  .admin-content { padding: 1rem; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .kpi-card { padding: 1rem; }
  .kpi-number { font-size: 1.5rem; }
  .admin-section { padding: 1rem; }
  .admin-section-title { font-size: 1rem; }

  /* Admin header flex-wrap fix */
  .admin-header { flex-wrap: wrap; gap: 0.5rem; }
  .admin-header > div { flex-wrap: wrap; gap: 8px; }
  .admin-header .btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; white-space: nowrap; }

  /* Filter row width */
  .filter-row { flex-direction: column; gap: 0.75rem; }
  .filter-row .filter-group { width: 100%; }
  .filter-row select { width: 100%; max-width: 100%; }

  /* Admin tables mobile */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 500px; font-size: 0.85rem; }
  .admin-table th, .admin-table td { padding: 0.5rem; }
  .actions-cell { flex-direction: column; gap: 4px; }
  .actions-cell .btn { font-size: 0.75rem; padding: 0.3rem 0.6rem; }

  /* Profil avatar mobile */
  .profil-avatar-row { flex-wrap: wrap; gap: 16px !important; }

  /* Admin - Tables */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 500px; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
  .data-table { min-width: 400px; }

  /* Admin - Forms */
  .admin-form .form-group input,
  .admin-form .form-group select,
  .admin-form .form-group textarea { font-size: 16px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .admin-form { padding: 20px; }
  .admin-form .form-row { flex-direction: column; }
  .admin-form .form-row .form-group { width: 100%; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Chatbot */
  .chatbot-container { width: calc(100vw - 32px); }

  /* Missing responsive fixes */
  .stat-number { font-size: 2rem; }
  .error-code { font-size: 3.5rem; }
  .footer-newsletter-form { flex-wrap: wrap; }
  .footer-newsletter-form input { min-width: 0; flex: 1 1 200px; }
  .data-table { min-width: 400px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .kpi-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-bar-number { font-size: 1.2rem; }
  .stats-bar-label { font-size: 0.8rem; }
  .event-card { padding: 1rem; }
  .card-body { padding: 1rem; }
  .page-header h1 { font-size: 1.4rem; }
  .admin-header { padding: 0.75rem; }
  .admin-page-title { font-size: 0.95rem; }
  .kpi-card { padding: 0.75rem; }
  .kpi-number { font-size: 1.3rem; }
  .kpi-label { font-size: 0.8rem; }
  .stat-number { font-size: 1.6rem; }
  .error-code { font-size: 2.5rem; }
  .ct-news-grid { grid-template-columns: 1fr; }
}

/* Tablet breakpoint (769-1024px) — prevent nav overflow */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 0;
  }
  .nav-links li {
    flex: 0 0 auto;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }
  .nav-cta {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Admin mobile toggle hidden on desktop */
@media (min-width: 769px) {
  .admin-mobile-toggle { display: none !important; }
  .admin-sidebar-close { display: none; }
  .admin-sidebar-overlay { display: none !important; }
}

/* Gallery admin */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-thumb { height: 200px; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-icon { color: var(--text-light); }
.gallery-info { padding: 1rem; }
.gallery-caption { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.gallery-meta { font-size: 0.8rem; color: var(--text-light); }
.gallery-actions { padding: 0 1rem 1rem; }

/* ============================================
   41. ENHANCED EFFECTS (G2C-style)
   ============================================ */

/* --- Scroll Reveal Animation --- */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-animate.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-animate.scroll-hidden {
  opacity: 0;
  transform: translateY(40px);
}
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }

/* --- Page Slide In --- */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-wrapper { animation: pageSlideIn 0.6s ease; }

/* --- FadeInUp --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Float Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* --- Pulse --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* --- Gradient Shift --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Ripple Button Effect --- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.btn:active::after {
  width: 300px;
  height: 300px;
}

/* --- Enhanced Button Hover --- */
.btn-primary {
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45,106,79,0.4);
}
.btn-secondary {
  transition: var(--transition);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45,106,79,0.3);
}

/* --- Enhanced Card Hover --- */
.card {
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-image img {
  transition: transform 0.6s ease;
}

/* --- Feature Card Hover --- */
.feature-card {
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}
.feature-icon {
  transition: var(--transition-bounce);
}

/* --- Event Card Hover --- */
.event-card {
  transition: var(--transition);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

/* --- KPI Card Hover --- */
.kpi-card {
  transition: var(--transition);
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Zone Card Hover --- */
.zone-card {
  transition: var(--transition);
}
.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* --- Stats Bar Item Hover --- */
.stats-bar-item {
  transition: var(--transition);
  padding: 12px 20px;
  border-radius: 8px;
}
.stats-bar-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* --- Info Card Hover --- */
.info-card {
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Nav Link Hover --- */
.nav-links a {
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--secondary);
}

/* --- Logo Hover --- */
.logo-wrapper:hover img {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 4px 8px rgba(45,106,79,0.3));
}
.logo-wrapper img {
  transition: var(--transition-bounce);
}

/* --- Footer Link Hover --- */
.footer-col a {
  transition: var(--transition-fast);
}
.footer-col a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

/* --- Social Icon Hover --- */
.footer-social a {
  transition: var(--transition);
}
.footer-social a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
}

/* --- Badge Hover --- */
.badge {
  transition: var(--transition-fast);
}
.badge:hover {
  transform: scale(1.05);
}

/* --- Table Row Hover --- */
.admin-table tr {
  transition: var(--transition-fast);
}
.admin-table tbody tr:hover {
  background: rgba(45,106,79,0.03);
  box-shadow: 0 2px 8px rgba(45,106,79,0.06);
}

/* --- Form Input Focus --- */
.form-group input,
.form-group textarea,
.form-group select,
.filter-bar input,
.filter-bar select {
  transition: var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

/* --- Glass Header --- */
.main-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}
.main-header.scrolled {
  box-shadow: 0 4px 30px rgba(45,106,79,0.1);
}

/* --- Hero Animated Background --- */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(82,183,136,0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(149,213,178,0.2) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(27,67,50,0.2) 0%, transparent 50%);
  animation: heroGradientMove 15s ease infinite;
  background-size: 200% 200%;
  z-index: 0;
}
/* Base .hero already sets position:relative (section 3, HERO SECTION above) —
   this just adds the stacking context for the animated gradient overlay's children. */
.hero > .container {
  position: relative;
  z-index: 1;
}
@keyframes heroGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- CTA Section Animated Background --- */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(82,183,136,0.2) 0%, transparent 50%);
  animation: heroGradientMove 20s ease infinite;
  background-size: 200% 200%;
}
.cta-section > .container {
  position: relative;
  z-index: 1;
}

/* --- Floating Shapes --- */
.geo-shapes .geo-shape {
  animation: geoFloat 20s ease-in-out infinite;
}
.geo-shapes .geo-shape:nth-child(2) {
  animation-delay: -5s;
  animation-duration: 25s;
}
.geo-shapes .geo-shape:nth-child(3) {
  animation-delay: -10s;
  animation-duration: 18s;
}
@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
  75% { transform: translateY(-25px) rotate(2deg); }
}

/* --- Hero Content Animation --- */
.hero-content h1 {
  animation: fadeInUp 0.8s ease;
}
.hero-content .hero-subtitle {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-content .hero-desc {
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-content .hero-buttons {
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* --- Stagger Grid Children --- */
.cards-grid > *:nth-child(1) { transition-delay: 0s; }
.cards-grid > *:nth-child(2) { transition-delay: 0.1s; }
.cards-grid > *:nth-child(3) { transition-delay: 0.2s; }
.cards-grid > *:nth-child(4) { transition-delay: 0.3s; }
.cards-grid > *:nth-child(5) { transition-delay: 0.4s; }
.cards-grid > *:nth-child(6) { transition-delay: 0.5s; }

.events-grid > *:nth-child(1) { transition-delay: 0s; }
.events-grid > *:nth-child(2) { transition-delay: 0.1s; }
.events-grid > *:nth-child(3) { transition-delay: 0.2s; }

.features-grid > *:nth-child(1) { transition-delay: 0s; }
.features-grid > *:nth-child(2) { transition-delay: 0.1s; }
.features-grid > *:nth-child(3) { transition-delay: 0.2s; }
.features-grid > *:nth-child(4) { transition-delay: 0.3s; }
.features-grid > *:nth-child(5) { transition-delay: 0.4s; }
.features-grid > *:nth-child(6) { transition-delay: 0.5s; }

.kpi-grid > *:nth-child(1) { transition-delay: 0s; }
.kpi-grid > *:nth-child(2) { transition-delay: 0.1s; }
.kpi-grid > *:nth-child(3) { transition-delay: 0.2s; }
.kpi-grid > *:nth-child(4) { transition-delay: 0.3s; }

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Before/After Image Hover --- */
.before-after-card img {
  transition: var(--transition);
}
.before-after-card:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* --- Detail Section Hover --- */
.detail-section {
  transition: var(--transition);
}
.detail-section:hover {
  box-shadow: var(--shadow-lg);
}

/* --- Result Card Hover --- */
.result-card {
  transition: var(--transition);
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Contact Item Hover --- */
.contact-item {
  transition: var(--transition);
  padding: 12px;
  border-radius: 8px;
}
.contact-item:hover {
  background: var(--bg-alt);
}

/* --- Filter Button Hover --- */
.filter-bar .btn {
  transition: var(--transition);
}
.filter-bar .btn:hover {
  transform: translateY(-2px);
}

/* --- Checkbox Label Hover --- */
.checkbox-label {
  transition: var(--transition-fast);
}
.checkbox-label:hover {
  color: var(--primary);
}

/* --- Back Link Hover --- */
.back-link {
  transition: var(--transition-fast);
}
.back-link:hover {
  transform: translateX(-4px);
}

/* --- Admin Sidebar Link Hover --- */
.admin-nav-link {
  transition: var(--transition-fast);
}
.admin-nav-link:hover {
  transform: translateX(3px);
  background: rgba(255,255,255,0.12);
}

/* --- Admin KPI Card Hover --- */
.kpi-card {
  transition: var(--transition);
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Page Header Animation --- */
.page-header {
  animation: fadeInUp 0.6s ease;
}
.page-header h1 {
  animation: fadeInUp 0.6s ease 0.2s both;
}
.page-header p {
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* --- Init Hero Animation --- */
.initiative-hero {
  animation: fadeInUp 0.5s ease;
}

/* --- Info Grid Stagger --- */
.info-grid > *:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s both; }
.info-grid > *:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s both; }
.info-grid > *:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s both; }
.info-grid > *:nth-child(4) { animation: fadeInUp 0.5s ease 0.4s both; }

/* --- Gallery Item Hover --- */
.gallery-item {
  transition: var(--transition);
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.gallery-item:hover .gallery-thumb img {
  transform: scale(1.05);
}
.gallery-thumb img {
  transition: transform 0.4s ease;
}

/* --- Map Container Hover --- */
.map-container {
  transition: var(--transition);
}
.map-container:hover {
  box-shadow: var(--shadow-glow);
}

/* --- Data Table Row Hover --- */
.data-table tr {
  transition: var(--transition-fast);
}
.data-table tbody tr:hover {
  background: var(--bg-alt);
}

/* --- Inscription Form Hover --- */
.inscription-form {
  transition: var(--transition);
}
.inscription-form:hover {
  box-shadow: var(--shadow-lg);
}

/* --- About Page Intro Animation --- */
.about-intro {
  animation: fadeInUp 0.6s ease;
}

/* --- Partner Card Hover --- */
[style*="text-align:center;padding:24px"] {
  transition: var(--transition);
}
[style*="text-align:center;padding:24px"]:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* --- Chatbot Toggle Pulse --- */
.chatbot-toggle {
  animation: chatbotPulse 3s ease-in-out infinite;
}
@keyframes chatbotPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(45,106,79,0.4); }
  50% { box-shadow: 0 6px 32px rgba(45,106,79,0.6), 0 0 0 8px rgba(45,106,79,0.1); }
}

/* --- Alert Animation --- */
.alert {
  animation: fadeInUp 0.4s ease;
}

/* --- KPI Number Gradient --- */
.kpi-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Loading Spinner --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --- Image Preview Hover --- */
.image-preview {
  transition: var(--transition);
}
.image-preview:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* --- Mobile Hamburger Animation --- */
.hamburger span {
  transition: var(--transition-fast);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   41. CHATBOT
   ============================================ */
.chatbot-overlay {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  transition: opacity 0.3s, transform 0.3s;
}
.chatbot-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.chatbot-container {
  width: 380px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chatbot-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}
.chatbot-close:hover { opacity: 1; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  min-height: 200px;
}
.chatbot-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: fadeInUp 0.3s ease;
}
.chatbot-msg.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.chatbot-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.chatbot-msg.user .chatbot-msg-avatar {
  background: var(--accent);
  color: var(--primary-dark);
}
.chatbot-msg-text {
  background: var(--bg-alt);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.chatbot-msg.user .chatbot-msg-text {
  background: var(--primary);
  color: #fff;
}
.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.chatbot-input input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.9rem;
  outline: none;
}
.chatbot-input input:focus {
  border-color: var(--primary);
}
.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chatbot-input button:hover {
  background: var(--primary-dark);
}
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(45,106,79,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.chatbot-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}
@media (max-width: 480px) {
  .chatbot-container {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 80px;
  }
  .chatbot-overlay {
    right: 16px;
    bottom: 80px;
  }
  .chatbot-toggle {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

.required-field label::after { content: ' *'; color: #ef4444; font-weight: 700; }

/* ----------------------------------------
   MEDIA PREVIEW & RICH EDITOR
   ---------------------------------------- */
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.media-preview-item {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 8px;
  background: #f8f9fa;
}

.media-preview-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.media-preview-item .media-icon {
  font-size: 2rem;
  padding: 16px 0;
}

.media-preview-item .media-name {
  font-size: 0.7rem;
  color: #666;
  display: block;
  margin-top: 4px;
  word-break: break-all;
}

.rich-editor {
  min-height: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rich-editor:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* (Quill overrides moved to section 41) */

/* Quill editor overrides — prevent global reset from destroying toolbar icons */
.ql-toolbar {
  border: 1px solid var(--border) !important;
  border-radius: 8px 8px 0 0 !important;
  background: #fff !important;
  font-family: inherit !important;
}
.ql-toolbar * {
  box-sizing: content-box !important;
}
.ql-toolbar button,
.ql-toolbar .ql-picker {
  border: none !important;
  background: none !important;
  cursor: pointer !important;
  width: auto !important;
  height: auto !important;
  padding: 2px 5px !important;
  position: relative !important;
  overflow: visible !important;
}
.ql-toolbar button::before,
.ql-toolbar button.ql-active::before,
.ql-toolbar .ql-picker-label::before,
.ql-toolbar .ql-picker-item::before {
  font-family: "Quill", "quill", "quilleditor" !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ql-snow .ql-stroke {
  stroke: currentColor !important;
}
.ql-snow .ql-fill {
  fill: currentColor !important;
}
.ql-container.ql-snow {
  border: 1px solid var(--border) !important;
  border-radius: 0 0 8px 8px !important;
  min-height: 150px !important;
}
.ql-editor {
  min-height: 150px !important;
  font-family: inherit !important;
}
.ql-toolbar.ql-snow .ql-formats {
  margin-right: 8px !important;
}
.ql-toolbar button:hover,
.ql-toolbar button.ql-active {
  background: rgba(45, 106, 79, 0.08) !important;
  border-radius: 4px !important;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  display: block;
}

.detail-content h1, .detail-content h2, .detail-content h3 {
  color: var(--primary-dark);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.detail-content p {
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.detail-content ul, .detail-content ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.detail-content ul { list-style-type: disc; }
.detail-content ol { list-style-type: decimal; }

.detail-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* ========== ADMIN PANEL EFFECTS ========== */

/* --- Admin Content Fade-In --- */
.admin-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- KPI Card Entrance --- */
.kpi-grid .kpi-card {
  animation: kpiSlideUp 0.5s ease both;
}
.kpi-grid .kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-grid .kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-grid .kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-grid .kpi-card:nth-child(4) { animation-delay: 0.2s; }
.kpi-grid .kpi-card:nth-child(5) { animation-delay: 0.25s; }
.kpi-grid .kpi-card:nth-child(6) { animation-delay: 0.3s; }
.kpi-grid .kpi-card:nth-child(7) { animation-delay: 0.35s; }

@keyframes kpiSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- KPI Number Pulse on Hover --- */
.kpi-card:hover .kpi-number {
  animation: kpiPulse 0.4s ease;
}

@keyframes kpiPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* --- Table Row Hover Glow --- */
.admin-table tbody tr {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.admin-table tbody tr:hover {
  background: rgba(45, 106, 79, 0.04);
  box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.1);
}

/* --- Bulk Action Bar --- */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #2d6a4f;
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}
.bulk-bar .btn {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.bulk-bar .btn:hover {
  background: #b02a37;
}

/* --- Gallery Select Overlay --- */
.gallery-select-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
}
.gallery-item {
  position: relative;
}

/* --- Table Row Checkbox Animation --- */
.admin-table tbody tr td input[type="checkbox"] {
  transition: transform 0.15s ease, accent-color 0.2s ease;
}
.admin-table tbody tr td input[type="checkbox"]:hover {
  transform: scale(1.15);
}
.admin-table tbody tr td input[type="checkbox"]:checked {
  accent-color: var(--primary);
}

/* --- Admin Section Entrance --- */
.admin-section {
  animation: fadeInUp 0.5s ease both;
}
.admin-section:nth-child(1) { animation-delay: 0.1s; }
.admin-section:nth-child(2) { animation-delay: 0.2s; }
.admin-section:nth-child(3) { animation-delay: 0.3s; }

/* --- Sidebar Active Link Glow --- */
.admin-nav-link.active {
  position: relative;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}
.admin-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* --- Button Hover Ripple --- */
.btn, .btn-primary, .btn-secondary, .btn-danger {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.btn::after, .btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}
.btn:hover::after, .btn-primary:hover::after {
  width: 200%;
  height: 200%;
}

/* --- Form Input Focus Glow --- */
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select,
.compose-form input[type="text"],
.compose-form textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-form input[type="text"]:focus,
.admin-form input[type="email"]:focus,
.admin-form input[type="password"]:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.compose-form input[type="text"]:focus,
.compose-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
  border-color: var(--primary);
}

/* --- Badge Hover Effect --- */
.badge {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- Admin Header Shrink on Scroll --- */
.admin-header {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* --- Chatbot Toggle Pulse --- */
.chatbot-toggle {
  animation: chatbotPulse 2s ease-in-out infinite;
}
@keyframes chatbotPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(45, 106, 79, 0.5); }
}
.chatbot-toggle:hover {
  transform: scale(1.08) !important;
}

/* --- Message Row Unread Animation --- */
.msg-row.unread {
  animation: unreadPulse 0.3s ease;
}
@keyframes unreadPulse {
  from { background: transparent; border-left-color: transparent; }
  to { background: #f0fdf4; border-left-color: var(--primary); }
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 450px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  animation: toastIn 0.4s ease, toastOut 0.4s ease 3s forwards;
}
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: #2563eb; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* --- Admin Mobile Toggle Animation --- */
.admin-mobile-toggle span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Chart Container Fade --- */
.chart-wrapper {
  animation: fadeIn 0.5s ease both;
}
.chart-wrapper:nth-child(1) { animation-delay: 0.1s; }
.chart-wrapper:nth-child(2) { animation-delay: 0.2s; }
.chart-wrapper:nth-child(3) { animation-delay: 0.3s; }

/* --- Empty State Float --- */
.empty-state svg {
  animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Bulk Toolbar Slide Up --- */
.bulk-toolbar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.bulk-toolbar.show {
  animation: toolbarSlideUp 0.3s ease;
}
@keyframes toolbarSlideUp {
  from { transform: translateX(-50%) translateY(100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* --- File Upload Area Pulse on Drag --- */
.file-upload-area.dragover {
  border-color: var(--primary) !important;
  background: rgba(45, 106, 79, 0.05) !important;
  animation: dragPulse 0.5s ease;
}
@keyframes dragPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* --- Login Form Entrance --- */
.login-container {
  animation: loginSlide 0.6s ease;
}
@keyframes loginSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== SHORT-VIEWPORT SIDEBAR FIT =====
   On laptops with limited vertical space (common during live demos/presentations),
   shrink the sidebar's own spacing so all nav items fit without needing to scroll,
   instead of the last items being invisible below the fold with a barely-visible
   scrollbar as the only way to reach them. */
@media (max-height: 760px) {
  .admin-sidebar-header { padding: 0 1.25rem 1rem; }
  .admin-nav-link { padding-top: 0.45rem; padding-bottom: 0.45rem; font-size: 0.9rem; }
  .admin-nav-section-title { margin-top: 0.5rem; }
}
@media (max-height: 640px) {
  .admin-nav-link { padding-top: 0.35rem; padding-bottom: 0.35rem; font-size: 0.85rem; }
  .admin-nav-link svg { width: 16px; height: 16px; }
}

/* ===== CT ACTUALITES PAGE ===== */
.ct-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.ct-news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(45,106,79,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ct-news-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.ct-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(45,106,79,0.15);
}

.ct-news-card:hover::after {
  transform: scaleX(1);
}

.ct-news-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.ct-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.ct-news-card:hover .ct-news-card-image img {
  transform: scale(1.08);
}

.ct-news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.ct-news-card:hover .ct-news-card-overlay {
  opacity: 0;
}

.ct-news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-news-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ct-news-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ct-news-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-light, #666);
  margin-bottom: 10px;
  font-weight: 500;
}

.ct-news-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark, #1a5c34);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}

.ct-news-card:hover .ct-news-card-body h3 {
  color: var(--primary);
}

.ct-news-card-body p {
  color: var(--text-light, #666);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

.ct-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}

.ct-news-card:hover .ct-news-read-more {
  opacity: 1;
  transform: translateX(0);
}

.ct-news-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light, #888);
}

/* Staggered reveal for news cards */
.ct-news-card.reveal.revealed {
  animation: ctCardIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes ctCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .ct-news-grid { grid-template-columns: 1fr; gap: 20px; }
  .ct-news-card-image { height: 180px; }
}

@media (max-width: 480px) {
  .ct-news-card-body { padding: 16px 18px 18px; }
  .ct-news-card-body h3 { font-size: 1.05rem; }
}

/* ===== RESPONSIVE: LAPTOPS & LARGE SCREENS ===== */

/* Laptop landscape (1280px-1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container { max-width: 1200px; }
  .cards-grid, .events-grid, .zones-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
  .hero { min-height: 85vh; padding: 90px 2rem 70px; }
  .hero h1 { font-size: 3.2rem; }
}

/* Desktop 2K (1440px-1920px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container { max-width: 1400px; padding: 0 2rem; }
  .cards-grid, .events-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
  .zones-grid, .features-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
  .hero { min-height: 90vh; padding: 100px 2rem 80px; }
  .hero h1 { font-size: 3.6rem; }
  .hero-subtitle { font-size: 1.4rem; }
  .kpi-grid, .kpi-row { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .info-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .section { padding: 80px 2rem; }
  .main-header { padding: 14px 2rem; }
  .navbar { max-width: 1400px; padding: 0 2rem; }
  .nav-links { gap: 1.8rem; }
}

/* Large 4K (1920px+) */
@media (min-width: 1920px) {
  .container { max-width: 1500px; padding: 0 2.5rem; }
  .cards-grid, .events-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.8rem; }
  .zones-grid, .features-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
  .hero { min-height: 95vh; padding: 120px 2.5rem 100px; }
  .hero h1 { font-size: 4.2rem; }
  .hero-subtitle { font-size: 1.5rem; }
  .hero-desc { font-size: 1.15rem; }
  .kpi-grid, .kpi-row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.8rem; }
  .info-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .section { padding: 100px 2.5rem; }
  .section h2 { font-size: 2.6rem; }
  .main-header { padding: 18px 2.5rem; }
}

/* Very large 4K+ (2560px+) */
@media (min-width: 2560px) {
  .container { max-width: 1800px; padding: 0 3.5rem; }
  .cards-grid, .events-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2rem; }
  .zones-grid, .features-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
  .hero { min-height: 100vh; padding: 140px 3.5rem 120px; }
  .hero h1 { font-size: 5rem; }
  .hero-subtitle { font-size: 1.7rem; }
  .kpi-grid, .kpi-row { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
  .section { padding: 120px 3.5rem; }
  .section h2 { font-size: 3rem; }
  .main-header { padding: 20px 3.5rem; }
}

/* Laptop small / tablet landscape (1024px-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cards-grid, .events-grid, .zones-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .hero { min-height: 80vh; padding: 85px 1.8rem 65px; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 65px 1.8rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.88rem; }
  .navbar { padding: 0 1rem; }
}

/* Landscape phones */
@media (max-width: 500px) and (orientation: landscape) {
  .hero { min-height: 70vh; padding: 60px 1rem 40px; }
  .hero h1 { font-size: 2rem; }
  .cards-grid, .events-grid, .zones-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .kpi-grid, .kpi-row, .info-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
