/* ============================================================
   WILAYA D'ALGER — DESIGN SYSTEM v3.0
   Palette officielle algérienne (vert émeraude officiel)
   Vert primaire   : #007A48  (Vert officiel Algérie)
   Fond sombre     : #03140C  (Vert très sombre / presque noir)
   Or/Doré         : #D4AF37  (Doré luxe)
   Rouge           : #CC0000  (Rouge Algérie)
   Blanc           : #FFFFFF
   Polices: Cairo (AR) + Poppins (FR/EN)
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --green:        #007A48;
  --green-dark:   #0F7546;
  --green-deep:   #03140C;
  --green-light:  #3aab72;
  --green-pale:   #e8f5ee;
  --red:          #CC0000;
  --red-light:    #e62e2e;
  --gold:         #D4AF37;
  --gold-light:   #E5C55A;
  --gold-dark:    #a07020;
  --blue:         #1A5276;
  --blue-light:   #2471a3;
  --white:        #ffffff;
  --cream:        #fdfbf4;
  --gray-bg:      #f4f6f9;
  --gray-light:   #e8ecf0;
  --gray-text:    #555;
  --dark:         #03140C;
  --shadow-sm:    0 2px 8px  rgba(0,0,0,.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   all .25s ease;
}

/* ─── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', 'Poppins', system-ui, sans-serif;
  background: var(--gray-bg);
  color: #222;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ─── Conteneurs ────────────────────────────────────────── */
.header-container,
.nav-container,
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Utilitaires couleurs ──────────────────────────────── */
.text-green  { color: var(--green); }
.text-red    { color: var(--red);   }
.text-gold   { color: var(--gold);  }
.text-blue   { color: var(--blue);  }
.text-white  { color: var(--white); }
.bg-green    { background: var(--green); }
.bg-red      { background: var(--red);   }
.bg-gold     { background: var(--gold);  }
.bg-blue     { background: var(--blue);  }
.bg-cream    { background: var(--cream); }


/* ════════════════════════════════════════════════════════
   HEADER OFFICIEL — Nouveau design v3
   GAUCHE : Logo + Skyline Alger
   DROITE : Texte officiel (50% du header)
════════════════════════════════════════════════════════ */

.official-header {
  box-shadow: 0 3px 16px rgba(0,122,72,.08);
  border-bottom: 1px solid rgba(0,122,72,.06);
}

/* ── Bande blanche supérieure ── */
.header-top {
  padding: 0;
  border-bottom: 1px solid #e5f0ea;
}

.header-top-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 120px;
}

/* ═══ PARTIE DROITE : Logo Ministère ═══ */
.header-ministry-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 15%;
  max-width: 15%;
  padding: 12px;
  border-right: 2px solid #e5f0ea;
}
.ministry-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(0, 122, 72, 0.55);
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 0 3px rgba(0,122,72,.08);
  filter: drop-shadow(0 3px 12px rgba(0,122,72,.30));
  transition: transform .35s ease, filter .35s ease;
}
.ministry-logo-img:hover {
  transform: scale(1.05) rotate(-3deg);
  filter: drop-shadow(0 4px 14px rgba(0,122,72,.55));
}

/* ═══ PARTIE CENTRALE : Texte officiel ═══ */
.header-text-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  text-align: center;
  direction: rtl;
  position: relative;
}

.header-text-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #007A48, #D4AF37, #007A48, transparent);
}
.header-text-accent-bar.bottom {
  top: auto;
  bottom: 0;
  background: linear-gradient(90deg, transparent, #D4AF37, #007A48, #D4AF37, transparent);
}

.header-text-content {
  direction: rtl;
  text-align: center;
  z-index: 2;
}

.header-title-republic {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}
.header-title-ministry {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(11px, 1.0vw, 14px);
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.4;
}
.header-divider-gold {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #007A48);
  margin: 3px auto 4px;
  border-radius: 2px;
}
.header-title-wilaya {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  color: #007A48;
  margin-bottom: 0px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,122,72,.15);
}

/* ═══ PARTIE GAUCHE : Skyline d'Alger ═══ */
.header-skyline-left {
  flex: 0 0 20%;
  max-width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 2px solid #e5f0ea;
  padding: 12px;
}

.header-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 6px;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}

.header-logo-frame:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

.header-skyline-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center center;
  filter: drop-shadow(0 2px 8px rgba(0,122,72,.15));
  transition: transform .5s ease;
  opacity: 0.85;
}
.header-skyline-img:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* ── Séparateur rouge ── */
.header-red-bar {
  height: 5px;
  background: linear-gradient(90deg, #CC0000 0%, #990000 50%, #CC0000 100%);
  width: 100%;
}

/* ── Bande verte — barre de recherche ── */
.header-green-band {
  background: linear-gradient(135deg, #007A48 0%, #0F7546 50%, #007A48 100%);
  padding: 6px 0;
  box-shadow: 0 2px 10px rgba(0,122,72,.25);
}

.header-green-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Formulaire recherche */
.header-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 320px;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
  direction: ltr;
}
.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #333;
  padding: 7px 12px;
}
.header-search-btn {
  background: var(--green-dark);
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}
.header-search-btn:hover { background: var(--red); }

/* ── Responsive header ── */
@media (max-width: 1024px) {
  .header-top-inner {
    min-height: 90px;
  }
  .header-ministry-logo {
    flex: 0 0 18%;
    max-width: 18%;
  }
  .header-skyline-left {
    flex: 0 0 18%;
    max-width: 18%;
  }
  .ministry-logo-img { width: 72px; height: 72px; }
  .header-skyline-img { max-height: 80px; }
  .header-title-republic { font-size: clamp(11px, 1.4vw, 13px); }
  .header-title-ministry { font-size: clamp(10px, 1.2vw, 12px); }
  .header-title-wilaya { font-size: clamp(18px, 2.5vw, 24px); }
}
@media (max-width: 768px) {
  .header-top-inner {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: auto;
    align-items: center;
  }
  .header-ministry-logo {
    flex: 0 0 80px;
    max-width: 80px;
    border-right: none;
    order: 1;
  }
  .ministry-logo-img { width: 56px; height: 56px; }
  .header-text-center {
    flex: 1;
    min-width: 0;
    padding: 8px 8px;
    order: 2;
  }
  .header-text-accent-bar { display: none; }
  .header-title-republic { font-size: clamp(10px, 1.6vw, 12px); margin-bottom: 0; }
  .header-title-ministry { font-size: clamp(9px, 1.4vw, 11px); margin-bottom: 2px; }
  .header-divider-gold { width: 32px; height: 2px; margin: 2px auto; }
  .header-title-wilaya { font-size: clamp(14px, 2.8vw, 20px); }
  .header-skyline-left {
    flex: 0 0 48px;
    max-width: 48px;
    border-left: none;
    order: 3;
  }
  .header-skyline-img { max-height: 48px; }
  .header-search-form { width: 100%; }
  .sticky-header-group { top: 0 !important; }
}
@media (max-width: 480px) {
  .header-top-inner { padding: 0 4px; }
  .header-ministry-logo { flex: 0 0 64px; max-width: 64px; padding: 6px; }
  .ministry-logo-img { width: 44px; height: 44px; border-width: 1.5px; }
  .header-text-center { padding: 6px 4px; }
  .header-title-republic { font-size: 9px; }
  .header-title-ministry { font-size: 8px; }
  .header-divider-gold { width: 24px; }
  .header-title-wilaya { font-size: 13px; }
  .header-skyline-left { flex: 0 0 36px; max-width: 36px; padding: 4px; }
  .header-skyline-img { max-height: 36px; }
  .header-green-inner { justify-content: center; gap: 8px; }
  .header-search-form { width: 100%; }
  .header-search-input { font-size: 12px; padding: 5px 10px; }
  .header-search-btn { padding: 6px 10px; font-size: 12px; }
}


/* ════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════ */

/* ═══ NAVBAR ═══ */
.main-nav {
  background: linear-gradient(135deg, #03140C 0%, #0a2a18 50%, #03140C 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  border-top: 1px solid rgba(201,150,42,.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 18px;
  color: rgba(255,255,255,.80);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all .25s;
  white-space: nowrap;
  position: relative;
  letter-spacing: .3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), #D4AF37);
  border-radius: 3px 3px 0 0;
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-link:hover::after { width: 60%; }
.nav-link i:first-child { font-size: 14px; opacity: .9; transition: all .2s; }
.nav-link:hover i:first-child { opacity: 1; transform: scale(1.1); }
.nav-chevron { font-size: 9px !important; opacity: .5; transition: transform .25s; margin-right: -2px; }
.nav-link:hover .nav-chevron { transform: rotate(180deg); opacity: .8; }

.nav-link.active {
  color: #fff;
}
.nav-link.active::after {
  width: 70%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,150,42,.4);
}

/* CTA — انشغلاتي */
.nav-cta {
  background: linear-gradient(135deg, #CC0000, #e53935) !important;
  color: #fff !important;
  border-radius: 8px;
  margin: 6px 8px;
  padding: 9px 20px !important;
  box-shadow: 0 3px 12px rgba(204,0,0,.3);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta:hover { background: linear-gradient(135deg, #e53935, #CC0000) !important; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(204,0,0,.4); }
.nav-cta::after { display: none !important; }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: #fff;
  border-top: 3px solid var(--green);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  border-radius: 0 0 14px 14px;
  z-index: 999;
  overflow: hidden;
  animation: dropSlide .25s cubic-bezier(.4,0,.2,1);
  padding: 6px 0;
}
@keyframes dropSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #444;
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid #f5f5f5;
  transition: all .2s;
  position: relative;
}
.nav-dropdown li a::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--green);
  border-radius: 0 3px 3px 0;
  transition: height .2s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
  background: #f4f9f6;
  color: var(--green);
  padding-right: 24px;
}
.nav-dropdown li a:hover::before { height: 60%; }
.nav-dropdown li a i { color: var(--gold); font-size: 13px; width: 18px; text-align: center; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 18px;
  transition: all .2s;
}
.mobile-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }



/* ─── Enveloppe page ─── */
.page-wrapper { min-height: 70vh; }


/* ════════════════════════════════════════════════════════
   NEWS TICKER
════════════════════════════════════════════════════════ */
.news-ticker {
  display: flex;
  align-items: center;
  background: var(--cream);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
  height: 40px;
}
.news-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  height: 100%;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-ticker-track {
  display: flex;
  gap: 50px;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  color: var(--dark);
  padding: 0 24px;
}
@keyframes tickerScroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* ════════════════════════════════════════════════════════
   HERO SLIDER
════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  padding: 0 20px;
}
.hero-title-ar {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-title-fr {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(13px, 1.5vw, 17px);
  color: rgba(255,255,255,.88);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 122, 72,.4);
  border: 2px solid transparent;
}
.hero-cta:hover {
  background: transparent;
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-arrows {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.hero-arrows button {
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrows button:hover { background: var(--green); border-color: var(--green); }

.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); }


/* ════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--green);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 8px;
}
.stat-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.stat-label-fr {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  letter-spacing: .5px;
  text-transform: uppercase;
  direction: ltr;
}


/* ════════════════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════════════════ */
.section { padding: 72px 0; }
.section.bg-cream { background: var(--cream); }
.section.bg-gray  { background: var(--gray-bg); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
}
.section-title p {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
  direction: ltr;
}


/* ════════════════════════════════════════════════════════
   CARDS ACTUALITÉS
════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 992px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card.featured { grid-row: 1 / 3; }

.news-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.news-card.featured .news-card-img { height: 320px; }
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.news-card-tag.gold  { background: var(--gold); }
.news-card-tag.red   { background: var(--red); }
.news-card-tag.blue  { background: var(--blue); }

.news-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 122, 72, 0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  z-index: 3;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0, 122, 72, 0.4);
  backdrop-filter: blur(2px);
}
.news-play-btn i { margin-right: -2px; }
.news-play-btn:hover {
  background: rgba(0, 122, 72, 1);
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 6px 28px rgba(0, 122, 72, 0.55);
}
.news-card:hover .news-play-btn { background: rgba(201, 150, 41, 0.92); }

.news-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  direction: ltr;
}
.news-card-title {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  transition: var(--transition);
}
.news-card-link:hover { color: var(--gold); gap: 10px; }


/* ════════════════════════════════════════════════════════
   PAGE WALI — كلمة الوالي
════════════════════════════════════════════════════════ */

/* Bandeau hero wali */
.wali-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--blue) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.wali-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wali-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .wali-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .wali-photo-frame { margin: 0 auto; }
}

/* Photo du wali */
.wali-photo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  flex-shrink: 0;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wali-photo-frame img,
.wali-photo-frame .wali-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.wali-photo-placeholder {
  font-size: 72px;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: var(--green);
  background: #f5f5f5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wali-hero-text h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}
.wali-hero-text .wali-title-fr {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  direction: ltr;
  margin-bottom: 12px;
}
.wali-hero-text .wali-mandate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
}

/* Citation du wali */
.wali-quote-section {
  background: var(--cream);
  padding: 56px 0;
}
.wali-quote-box {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 52px;
  position: relative;
  border-right: 6px solid var(--gold);
}
.wali-quote-box::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 40px;
  font-size: 100px;
  color: var(--gold);
  opacity: .18;
  font-family: 'Cairo', serif;
  line-height: 1;
}
.wali-quote-text {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 2;
  color: #333;
  text-align: justify;
  margin-bottom: 32px;
}
.wali-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.wali-avatar-sm {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}
.wali-sig-name {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--dark);
}
.wali-sig-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #777;
  direction: ltr;
  margin-top: 3px;
}

/* Axes stratégiques */
.wali-axes {
  padding: 56px 0;
  background: var(--gray-bg);
}
.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .axes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .axes-grid { grid-template-columns: 1fr; } }

.axe-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--green);
}
.axe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.axe-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 122, 72,.3);
}
.axe-card:nth-child(2) .axe-icon { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.axe-card:nth-child(3) .axe-icon { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.axe-card:nth-child(4) .axe-icon { background: linear-gradient(135deg, var(--red), #e65c5c); }
.axe-card:nth-child(5) .axe-icon { background: linear-gradient(135deg, #7b2d8b, #a94cc4); }
.axe-card:nth-child(6) .axe-icon { background: linear-gradient(135deg, #c0392b, #e74c3c); }

.axe-title {
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.axe-desc {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.7;
}

/* Grille gouverneurs */
.governors-section {
  padding: 56px 0;
  background: var(--cream);
}
.governors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .governors-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px)  { .governors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .governors-grid { grid-template-columns: repeat(2, 1fr); } }

.governor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.governor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}
.governor-card.current {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffbf0 0%, #fff 100%);
}
.governor-card.current .gov-avatar {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  box-shadow: 0 4px 15px rgba(212,175,55,.45);
}
.gov-avatar.gov-avatar-photo {
  background-color: #e0e0e0;
  width: 72px !important;
  height: 72px !important;
  box-shadow: 0 6px 18px rgba(212,175,55,.5);
}

.gov-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.gov-name {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.4;
}
.gov-name-fr {
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  color: #999;
  direction: ltr;
  margin-bottom: 8px;
}
.gov-period {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-bg);
  color: var(--green);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  direction: ltr;
  margin-bottom: 8px;
}
.gov-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  color: #777;
  line-height: 1.5;
  direction: ltr;
}


/* ════════════════════════════════════════════════════════
   PLANS STRATÉGIQUES
════════════════════════════════════════════════════════ */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-buttons { display: flex; flex-direction: column; gap: 12px; }
.plan-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
}
.plan-btn .plan-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.plan-btn[data-plan="white"] .plan-color { background: #e0e0e0; border: 2px solid #aaa; }
.plan-btn[data-plan="yellow"] .plan-color { background: var(--gold); }
.plan-btn[data-plan="green"] .plan-color  { background: var(--green); }
.plan-btn[data-plan="blue"] .plan-color   { background: var(--blue); }
.plan-btn .plan-fr {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #999;
  direction: ltr;
  font-weight: 400;
}
.plan-btn:hover, .plan-btn.active {
  border-color: var(--green);
  background: #f0faf5;
  color: var(--green);
  transform: translateX(-4px);
}

.plan-info-card {
  background: linear-gradient(135deg, var(--cream), #fff);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
}

#wilaya-map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--green);
}


/* ════════════════════════════════════════════════════════
   ÉVÉNEMENTS
════════════════════════════════════════════════════════ */
.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-right: 4px solid var(--green);
}
.event-card:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); }
.event-date-badge {
  text-align: center;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 62px;
  flex-shrink: 0;
}
.event-date-badge .day {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.event-date-badge .month {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.event-info { flex: 1; }
.event-category {
  display: inline-block;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: var(--gray-light);
  color: var(--green);
}
.event-category.sport   { background: #dbeafe; color: var(--blue); }
.event-category.culture { background: #fef3c7; color: var(--gold-dark); }
.event-category.official{ background: #dcfce7; color: var(--green-dark); }

.event-title {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.event-location {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #888;
  direction: ltr;
}
.event-time {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  direction: ltr;
}


/* ════════════════════════════════════════════════════════
   COMMUNES & SERVICES
════════════════════════════════════════════════════════ */
.daira-section { margin-bottom: 40px; }
.daira-title {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(0, 122, 72,.08), transparent);
  border-right: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
}
.communes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.commune-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--green);
}
.commune-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-top-color: var(--gold); }
.commune-name {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.commune-name-fr {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #888;
  direction: ltr;
  margin-bottom: 10px;
}
.commune-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #666;
  direction: ltr;
}
.commune-info span { display: flex; align-items: center; gap: 6px; }
.commune-info i { color: var(--gold); width: 14px; }


/* ════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--green);
}
.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 122, 72,.28);
}
.service-title {
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-desc {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.service-link:hover { color: var(--gold); gap: 10px; }


/* ════════════════════════════════════════════════════════
   ÉTABLISSEMENTS
════════════════════════════════════════════════════════ */
.etab-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.etab-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #fff;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: var(--transition);
}
.etab-tab.active, .etab-tab:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.etab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.etab-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-right: 4px solid var(--green);
}
.etab-card.health  { border-right-color: var(--red); }
.etab-card.edu     { border-right-color: var(--blue); }
.etab-card.culture { border-right-color: var(--gold); }
.etab-card.admin   { border-right-color: var(--green); }
.etab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.etab-name {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.etab-name-fr {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #888;
  direction: ltr;
  margin-bottom: 10px;
}
.etab-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #666;
  direction: ltr;
}
.etab-info i { color: var(--gold); }


/* ════════════════════════════════════════════════════════
   ABOUT / PRÉSENTATION
════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-text h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 14px;
}
.about-text p {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 14px;
  text-align: justify;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.fact-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-right: 3px solid var(--gold);
}
.fact-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  direction: ltr;
  margin-bottom: 4px;
}
.fact-value {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform .6s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }


/* ════════════════════════════════════════════════════════
   MÉDIATION / FORM
════════════════════════════════════════════════════════ */
.mediation-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mediation-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 32px 40px;
  color: #fff;
}
.mediation-header h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.mediation-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  opacity: .8;
  direction: ltr;
  letter-spacing: 1px;
}
.mediation-body { padding: 36px 40px; }
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-label span { color: var(--red); margin-right: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: var(--transition);
  direction: rtl;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 72,.1);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 122, 72,.3);
}
.btn-submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 122, 72,.4);
}


/* ════════════════════════════════════════════════════════
   BTN MORE / GENERAL
════════════════════════════════════════════════════════ */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}
.btn-more:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 122, 72,.25);
}
.text-center  { text-align: center; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }


/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
.main-footer {
  background: #0d1b12;
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(212,175,55,.25);
}
.footer-col p {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  line-height: 1.85;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-right: 4px; }
.footer-col ul li a i { font-size: 11px; color: var(--gold); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  direction: ltr;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }


/* ════════════════════════════════════════════════════════
   ALERTES / MESSAGES
════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }


/* ════════════════════════════════════════════════════════
   AOS / ANIMATIONS
════════════════════════════════════════════════════════ */
[data-aos] { opacity: 0; }
[data-aos].aos-animate { opacity: 1; }


/* ════════════════════════════════════════════════════════
   SCROLLBAR CUSTOM
════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

/* ═══════════════════════════════════════════════════════════════
   AJOUTS v3.0 — Logo Wilaya | Events Photos | Loader | Back-top
   Print | Skeleton | Swipe | Accessibility | Scroll offset
═══════════════════════════════════════════════════════════════ */

/* ── RESET Bootstrap conflicts ─────────────────────────────── */
.main-nav ul { list-style: none; padding: 0; margin: 0; }

/* ── LOGO HOVER ZOOM ─────────────────────────────────────────  */
.logo-hover {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}
.logo-hover:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

/* ── GOLDEN SEPARATOR (header) ──────────────────────────────── */
.emblem-gold-sep {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #c9a227, transparent);
    border-radius: 2px;
    margin: 0 10px;
    flex-shrink: 0;
}
.header-emblem-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}
.header-wilaya-logo {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
}
@media (max-width: 600px) {
    .header-emblem-img { width: 50px !important; height: 50px !important; }
    .header-wilaya-logo { width: 50px !important; height: 50px !important; }
    .emblem-gold-sep { height: 44px; }
}

/* ── FOOTER LOGOS ────────────────────────────────────────────── */
.footer-logos-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-logo-emblem {
    width: 50px; height: 50px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.footer-logo-sep-gold {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, transparent, #c9a227, transparent);
    flex-shrink: 0;
}
.footer-logo-wilaya {
    width: 50px; height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* ── PAGE LOADER ─────────────────────────────────────────────── */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #1a5276 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logos {
    display: flex; align-items: center; justify-content: center; gap: 0;
    margin-bottom: 28px;
}
.loader-emblem {
    width: 70px; height: 70px;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.4));
    animation: loaderPulse 1.8s ease-in-out infinite;
}
.loader-wilaya {
    width: 70px; height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.4));
    animation: loaderPulse 1.8s ease-in-out infinite 0.3s;
}
.loader-sep-gold {
    width: 2px; height: 60px;
    background: linear-gradient(to bottom, transparent, #c9a227, transparent);
    margin: 0 14px; flex-shrink: 0;
}
.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
.loader-text {
    color: rgba(255,255,255,.85);
    font-family: 'Cairo', sans-serif;
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.5px;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── BACK TO TOP BUTTON ──────────────────────────────────────── */
.back-to-top-btn {
    position: fixed;
    bottom: 28px; left: 28px;
    z-index: 500;
    width: 46px; height: 46px;
    background: var(--green, var(--green));
    color: #fff;
    border: none; border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 122, 72,.4);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top-btn.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top-btn:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ── SKELETON SHIMMER ────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton-shimmer {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}
.event-card-skeleton {
    position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}

/* ── EVENTS PHOTO CARDS ──────────────────────────────────────── */
.events-visual-section { background: #f8fafc; }
.events-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.event-photo-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
.event-photo-card.event-card-featured {
    grid-column: span 2;
}
@media (max-width: 700px) {
    .event-photo-card.event-card-featured { grid-column: span 1; }
}
.event-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.event-card-featured .event-card-img-wrap { height: 280px; }
.event-card-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.5s ease;
    position: relative; z-index: 1;
}
.event-photo-card:hover .event-card-photo { transform: scale(1.05); }
.event-card-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,.50) 0%, transparent 50%);
    pointer-events: none;
}
/* Badge date — coin supérieur droit */
.event-date-badge {
    position: absolute; top: 14px; right: 14px; z-index: 4;
    background: var(--green, var(--green));
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    min-width: 48px;
    box-shadow: 0 2px 10px rgba(0, 122, 72,.35);
}
.event-badge-day {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 20px; font-weight: 800;
    line-height: 1;
}
.event-badge-month {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px; font-weight: 500;
    opacity: .85; letter-spacing: .5px;
    text-transform: uppercase; margin-top: 2px;
}
/* Badge catégorie */
.event-cat-badge {
    position: absolute; bottom: 14px; right: 14px; z-index: 4;
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
}
.event-cat-badge.badge-sport   { background: #e11d48; }
.event-cat-badge.badge-culture { background: #7c3aed; }
.event-cat-badge.badge-official{ background: #0369a1; }
.event-cat-badge.badge-env     { background: #16a34a; }
.event-cat-badge.badge-edu     { background: #b45309; }
/* Corps carte événement */
.event-card-body {
    padding: 18px 20px 20px;
}
.event-card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 17px; font-weight: 700;
    color: #1a1a1a; margin-bottom: 6px; line-height: 1.5;
}
.event-card-fr {
    font-family: 'Poppins', sans-serif;
    font-size: 12px; color: #888;
    margin-bottom: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-card-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px; color: #555;
}
.event-card-meta span {
    display: flex; align-items: center; gap: 5px;
}
.event-card-meta i { color: var(--green, var(--green)); font-size: 12px; }

/* ── SCROLL OFFSET (menu sticky) ──────────────────────────────  */
:root { scroll-padding-top: 130px; }

/* ── ACCESSIBILITÉ — focus visible ─────────────────────────── */
:focus-visible {
    outline: 3px solid #c9a227;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── PRINT STYLES ────────────────────────────────────────────── */
@media print {
    .main-nav, .news-ticker, .hero-slider, .hero-arrows,
    .back-to-top-btn, .page-loader, .header-search-form,
    .footer-social, .btn-more { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .official-header { box-shadow: none; }
    a { color: #000; text-decoration: none; }
}

/* ── CIRCULAR LOGO (nouveau logo wilaya) ───────────────────── */
.header-circle-logo {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(201,162,39,0.5);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
@media (max-width: 600px) {
    .header-circle-logo { width: 50px !important; height: 50px !important; }
}

/* Footer circular logo */
.footer-logo-circle {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(201,162,39,0.4);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* ── ÉTABLISSEMENTS (Public Institutions) ───────────────────────── */
.estab-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.estab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .estab-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

.estab-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
    gap: 12px;
    border: 1px solid #f0f0f0;
}

.estab-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    transform: translateY(-4px);
    border-color: #e0e0e0;
}

.estab-card .estab-icon {
    margin-bottom: 8px;
}

.estab-card .estab-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.estab-name {
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

.estab-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.estab-info span {
    line-height: 1.5;
}

/* ── UTILITY CLASSES (Border Radius) ────────────────────────────── */
.rounded-xl  { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-lg  { border-radius: 8px; }

/* ── UTILITY CLASSES (Padding) ──────────────────────────────────── */
.p-3  { padding: 12px; }
.p-4  { padding: 16px; }
.p-5  { padding: 20px; }
.p-6  { padding: 24px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pt-4 { padding-top: 16px; }

/* ── UTILITY CLASSES (Margin) ──────────────────────────────────── */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-4 { margin-top: 16px; }
.mr-1 { margin-right: 4px; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }

/* ── UTILITY CLASSES (Gap) ──────────────────────────────────────── */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── UTILITY CLASSES (Flex) ────────────────────────────────────── */
.flex         { display: flex; }
.flex-1      { flex: 1; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ── UTILITY CLASSES (Grid) ────────────────────────────────────── */
.grid           { display: grid; }
.grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── UTILITY CLASSES (Background) ──────────────────────────────── */
.bg-white     { background-color: #fff; }
.bg-gray-50   { background-color: #f9fafb; }
.bg-gray-100  { background-color: #f3f4f6; }
.bg-emerald-50 { background-color: #f0fdf4; }

/* ── UTILITY CLASSES (Text) ────────────────────────────────────── */
.text-xs      { font-size: 12px; }
.text-sm      { font-size: 14px; }
.text-lg      { font-size: 18px; }
.text-xl      { font-size: 20px; }
.text-2xl     { font-size: 24px; }
.text-3xl     { font-size: 30px; }
.font-bold    { font-weight: 700; }
.text-center  { text-align: center; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

/* ── UTILITY CLASSES (Display) ─────────────────────────────────── */
.block  { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* ── UTILITY CLASSES (Transitions) ─────────────────────────────── */
.transition { transition: all 0.25s ease; }

/* ── UTILITY CLASSES (Width/Height) ────────────────────────────── */
.w-full { width: 100%; }
.w-14   { width: 56px; }
.w-20   { width: 80px; }
.h-14   { height: 56px; }
.h-20   { height: 80px; }

/* ── UTILITY CLASSES (Shadow) ──────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,.1); }

/* ── UTILITY CLASSES (Font) ────────────────────────────────────── */
.font-french { font-family: 'Poppins', sans-serif; }
.text-gold-w { color: var(--gold); }
.text-emerald-w { color: var(--green); }
.text-red-w { color: var(--red); }
.text-blue-deep { color: var(--blue); }

/* ── ABOUT PAGE STYLES ────────────────────────────────────────────── */
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .about-features {
        gap: 12px;
    }
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 122, 72, 0.08);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--green);
}

.about-feature i {
    font-size: 18px;
    color: var(--gold);
}

/* ── PANORAMA 360 STYLES ─────────────────────────────────────────── */
.panorama-360 {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.pano-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-position 0.1s ease-out;
    cursor: grab;
}

.pano-img:active { cursor: grabbing; }

.pano-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--green);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 122, 72, 0.3);
}

.pano-hint {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── RESPONSIVE ORDER (md:order-X) ───────────────────────────────── */
@media (min-width: 768px) {
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
}

/* ── RESPONSIVE DISPLAY (md:, lg:) ──────────────────────────────── */
@media (min-width: 768px) {
    .md\:mb-0  { margin-bottom: 0; }
    .md\:mb-6  { margin-bottom: 24px; }
    .md\:mt-0  { margin-top: 0; }
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:col-span-3 { grid-column: span 3; }
}

/* ── RESPONSIVE GRID (gap) ──────────────────────────────────────── */
@media (min-width: 768px) {
    .md\:gap-4 { gap: 16px; }
    .md\:gap-6 { gap: 24px; }
}

/* Header inner alignment */
.header-green-inner {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.header-search-form { flex: 1; min-width: 200px; }
