/* ============================================================
   AMÉLIORATIONS CSS v4.0
   Wilaya d'Alger - Refonte Design
   ============================================================ */

/* ─── Variables supplémentaires ─── */
:root {
  --transition-fast: all 0.15s ease;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Nouvelles couleurs */
  --accent-blue: #0066CC;
  --accent-purple: #7C3AED;
  --accent-teal: #14B8A6;
  --gradient-primary: linear-gradient(135deg, #007A48 0%, #0F7546 100%);
  --gradient-secondary: linear-gradient(135deg, #D4AF37 0%, #E5C55A 100%);
}

/* ═══════════════════════════════════════════════════════
   1. AMÉLIORATIONS HEADER
═══════════════════════════════════════════════════════ */

/* ── Sticky group (search + nav) ── */
.sticky-header-group {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.sticky-header-group.is-stuck {
  box-shadow: 0 6px 24px rgba(0,122,72,.18);
}

.sticky-header-group.is-stuck .header-green-band {
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}

/* ── Official header fade on scroll ── */
.official-header {
  transition: opacity .4s ease, transform .4s ease;
}

.official-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
}

/* Amélioration texte officiel */
.header-official-text h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.header-official-text .ministry {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════════════════
   2. NAVIGATION AMÉLIORÉE
═══════════════════════════════════════════════════════ */

nav.main-nav a {
  position: relative;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding-bottom: 4px;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}

/* ── Mobile nav backdrop ── */
@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #03140C 0%, #0a2a18 100%);
    padding: 80px 0 24px;
    border: none;
    z-index: 999;
    transition: right .35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
  }
  .nav-list.open {
    right: 0;
    display: flex;
  }
  .nav-list::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .nav-list.open::before {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item { width: 100%; }
  .nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 15px;
  }
  .nav-link::after { display: none; }
  .nav-link.active { border-right: 3px solid var(--gold); }
  .nav-dropdown {
    position: static;
    border-top: none;
    box-shadow: none;
    display: none;
    background: rgba(255,255,255,.03);
    border-radius: 0;
    padding: 0;
    animation: none;
  }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown li a {
    color: rgba(255,255,255,.70);
    border-bottom-color: rgba(255,255,255,.04);
    padding: 12px 36px 12px 20px;
  }
  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }
}

/* ═══════════════════════════════════════════════════════
   3. HERO SECTION AMÉLIORÉ
═══════════════════════════════════════════════════════ */

.hero-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  animation: slideInDown 0.6s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.95;
  animation: slideInUp 0.6s ease-out 0.1s both;
}

@keyframes slideInDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   4. CARTES ET CONTENEURS
═══════════════════════════════════════════════════════ */

.card, [class*="card"] {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover, [class*="card"]:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-header {
  background: var(--gradient-primary);
  color: white;
  border-bottom: none;
  padding: 1.5rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   5. BOUTONS AMÉLIORÉS
═══════════════════════════════════════════════════════ */

.btn {
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 72, 0.3);
}

.btn-secondary {
  background: var(--gray-light);
  color: var(--dark);
}

.btn-secondary:hover {
  background: var(--gray-bg);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid currentColor;
  background: transparent;
}

.btn-outline:hover {
  background: currentColor;
  color: white;
}

/* ═══════════════════════════════════════════════════════
   6. FORMULAIRES AMÉLIORÉS
═══════════════════════════════════════════════════════ */

.form-control, .form-select, textarea {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 122, 72, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   7. GRILLES ET LAYOUTS
═══════════════════════════════════════════════════════ */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   8. TYPOGRAPHIE AMÉLIORÉE
═══════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--green-dark);
}

/* ═══════════════════════════════════════════════════════
   9. BADGES ET TAGS
═══════════════════════════════════════════════════════ */

.badge, .tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.badge-primary { background: var(--green); color: white; }
.badge-secondary { background: var(--gold); color: #222; }
.badge-success { background: var(--accent-teal); color: white; }
.badge-warning { background: #F59E0B; color: white; }
.badge-danger { background: var(--red); color: white; }

/* ═══════════════════════════════════════════════════════
   10. SECTIONS
═══════════════════════════════════════════════════════ */

section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  section { padding: 2rem 0; }
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   11. FOOTER AMÉLIORÉ
═══════════════════════════════════════════════════════ */

footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--gold);
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-link-group {
  margin-bottom: 1.5rem;
}

.footer-link-group h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-link-group ul li {
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   12. ANIMATIONS
═══════════════════════════════════════════════════════ */

.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-in-left { animation: slideInLeft 0.6s ease-out; }
.slide-in-right { animation: slideInRight 0.6s ease-out; }
.pulse { animation: pulse 2s infinite; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════
   13. SCROLL BEHAVIOR
═══════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-dark);
}

/* ═══════════════════════════════════════════════════════
   14. RESPONSIVE AMÉLIORÉ
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { font-size: 15px; }
}

@media (max-width: 768px) {
  :root { font-size: 14px; }
  
  .container { padding: 0 16px; }
  
  .btn { padding: 0.65rem 1.2rem; }
  
  section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  :root { font-size: 13px; }
  
  .container { padding: 0 12px; }
  
  h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
  
  .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
  
  section { padding: 1.5rem 0; }
  
  .section-title { margin-bottom: 2rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .main-footer { margin-top: 40px; }
  .wali-photo-frame { width: 140px; height: 140px; }
  .hero-slider { height: 380px; }
  #communes-map { height: 320px !important; }
  #alger-geo-map { height: 300px !important; }
  #wilaya-map { height: 300px !important; }
}

@media (max-width: 360px) {
  :root { font-size: 12px; }
  .container { padding: 0 8px; }
  section { padding: 1rem 0; }
  .hero-slider { height: 300px; }
  .wali-photo-frame { width: 110px; height: 110px; }
  .main-footer { margin-top: 24px; }
  .governors-grid { grid-template-columns: 1fr; }
  #communes-map { height: 260px !important; }
  #alger-geo-map { height: 260px !important; }
  #wilaya-map { height: 260px !important; }
}

/* ═══════════════════════════════════════════════════════
   15. UTILITAIRES SUPPLÉMENTAIRES
═══════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.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; }
.mt-5 { margin-top: 3rem; }

.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; }
.mb-5 { margin-bottom: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }

.no-underline { text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   16. PAGE ÉTABLISSEMENTS — STYLE MINIMALISTE
═══════════════════════════════════════════════════════ */

/* ─── HERO (épuré) ─── */
.etab-hero {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, #0a2818 0%, #0d3b24 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.etab-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,150,42,.3), transparent);
}
.etab-hero-content { position: relative; z-index: 2; }
.etab-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  border-radius: 20px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.etab-hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(24px,3.5vw,38px);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.35;
  color: #fff;
}
.etab-hero h1 i { color: #fff; margin-left: 10px; opacity: .7; }
.etab-hero-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.35);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}
.etab-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}
.etab-hero-stat { text-align: center; }
.etab-hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #C9962A;
  line-height: 1;
}
.etab-hero-stat-lbl {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
  font-weight: 600;
}

/* ─── BREADCRUMB ─── */
.page-breadcrumb { background: #fafafa; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 12px; }
.page-breadcrumb a { color: #0a7a48; font-weight: 600; text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ─── COUNTERS (minimal) ─── */
.etab-counter-bar { background: #fff; padding: 28px 0; }
.counter-item { text-align: center; padding: 8px; }
.counter-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  opacity: .85;
}
.counter-num {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  display: block;
  line-height: 1;
}
.counter-lbl {
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  font-weight: 600;
}

/* ─── SEARCH + FILTERS (minimal) ─── */
.etab-search-bar { background: #fff; padding: 16px 0; border-bottom: 1px solid #eee; }
.etab-search-row { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; }
.etab-search-input {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #f5f5f5; border: 1px solid #e0e0e0;
  border-radius: 10px; padding: 0 12px; transition: all .2s;
}
.etab-search-input:focus-within {
  border-color: #0a7a48; background: #fff;
  box-shadow: 0 0 0 3px rgba(10,122,72,.06);
}
.etab-search-input i { color: #bbb; font-size: 14px; }
.etab-search-input input {
  flex: 1; border: none; background: transparent; padding: 10px 0;
  font-family: 'Cairo', sans-serif; font-size: 13px; outline: none; color: #333;
}
.etab-search-input input::placeholder { color: #ccc; }
.etab-search-clear {
  display: none; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: #e0e0e0; color: #888; font-size: 10px;
  cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
}
.etab-search-clear.show { display: flex; }
.etab-search-clear:hover { background: #CC0000; color: #fff; }

.etab-filter-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.etab-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 8px;
  font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 600;
  border: 1px solid #e5e5e5; background: #fff; color: #888;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.etab-chip:hover {
  border-color: #bbb; color: #555;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.etab-chip.active {
  background: var(--chip-color, #0a7a48);
  color: #fff;
  border-color: var(--chip-color, #0a7a48);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.etab-chip .chip-count {
  background: rgba(0,0,0,.06); padding: 0 6px; border-radius: 6px; font-size: 10px; font-family: 'Poppins', sans-serif;
}
.etab-chip.active .chip-count { background: rgba(255,255,255,.2); }

.etab-search-count { text-align: center; font-size: 12px; color: #999; margin-top: 10px; font-family: 'Cairo', sans-serif; display: none; }
.etab-search-count strong { color: #0a7a48; font-weight: 800; }

/* ─── TABS (minimal) ─── */
.etab-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 100;
}
.etab-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.etab-tabs::-webkit-scrollbar { display: none; }
.etab-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 20px; border: none; background: transparent;
  font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
  color: #999; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.etab-tab:hover { color: #666; }
.etab-tab.active { color: var(--tab-color, #0a7a48); border-bottom-color: var(--tab-color, #0a7a48); }
.etab-tab .tab-count {
  font-size: 10px; padding: 1px 7px; border-radius: 6px;
  font-weight: 700; font-family: 'Poppins', sans-serif;
  color: #ccc; background: #f5f5f5; transition: all .2s;
}
.etab-tab.active .tab-count { color: #fff; background: var(--tab-color, #0a7a48); }

/* ─── SECTION HEADER (minimal) ─── */
.etab-section-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.etab-section-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.etab-section-head h3 {
  font-family: 'Cairo', sans-serif; font-size: 17px; font-weight: 800;
  margin: 0;
}
.etab-section-head .section-sub {
  font-family: 'Poppins', sans-serif; font-size: 11px; color: #aaa;
  margin: 1px 0 0; letter-spacing: .5px;
}

/* ─── SECTION BLOCK ─── */
.etab-section-block { scroll-margin-top: 60px; }
.etab-section-block:not(.active) { display: none; }
.etab-section-block.active { display: block; }

/* ─── CARDS GRID ─── */
.estab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

/* ─── CARD (minimal) ─── */
.estab-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: all .3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
}
.estab-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  border-color: #d0d0d0;
  transform: translateY(-3px);
}
.estab-card-header {
  height: 3px;
  border-radius: 10px 10px 0 0;
  background: var(--card-gradient, #0a7a48);
  opacity: .7;
  transition: opacity .3s ease;
}
.estab-card:hover .estab-card-header {
  opacity: 1;
}
.estab-card-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.estab-card-body .estab-card-top { margin-bottom: 2px; }
.estab-card-body .estab-card-name { font-size: 14px; }
.estab-card-body .estab-card-name-fr { font-size: 11px; color: #999; }
.estab-card-body .estab-card-icon { width: 40px; height: 40px; font-size: 17px; }
.estab-card-body .estab-card-info { font-size: 12px; color: #555; margin-bottom: 2px; padding-right: 2px; }
.estab-card-body .estab-card-info i { font-size: 11px; width: 16px; opacity: .8; }
.estab-card-body .estab-card-contacts { padding-top: 12px; margin-top: 4px; gap: 6px; }
.estab-card-body .estab-card-link { padding: 5px 10px; font-size: 11px; border-radius: 8px; }
.estab-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.estab-card-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; background: var(--card-bg, #f4f9f6);
  color: var(--card-color, #0a7a48); flex-shrink: 0;
}
.estab-card-name {
  font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 800;
  color: #1a1a2e; line-height: 1.4; margin: 0;
}
.estab-card-name-fr {
  font-family: 'Poppins', sans-serif; font-size: 10px; color: #bbb;
  margin: 1px 0 0; line-height: 1.3;
}
.estab-card-cat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700; font-family: 'Cairo', sans-serif;
  margin-bottom: 8px; align-self: flex-start;
}
.estab-card-info {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12px; color: #666; margin-bottom: 3px; line-height: 1.4;
}
.estab-card-info i {
  color: var(--card-color, #C9962A); margin-top: 2px;
  flex-shrink: 0; font-size: 10px; width: 14px; text-align: center;
}
.estab-card-contacts {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.estab-card-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 8px; border-radius: 6px;
  font-size: 10px; font-family: 'Poppins', sans-serif; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.estab-card-link.phone   { background: #e6f4ed; color: #2E7D32; }
.estab-card-link.email   { background: #e8eaf6; color: #1A5276; }
.estab-card-link.website { background: #fff3cd; color: #C9962A; }
.estab-card-link:hover { filter: brightness(.95); }

/* ─── NO RESULTS ─── */
.etab-no-results { text-align: center; padding: 48px 20px; display: none; }
.etab-no-results.show { display: block; }
.etab-no-results i { font-size: 36px; color: #ddd; margin-bottom: 12px; }
.etab-no-results p { color: #bbb; font-size: 14px; font-family: 'Cairo', sans-serif; }

/* ─── RESPONSIVE ÉTABLISSEMENTS ─── */
@media (max-width: 991px) {
  .etab-hero-stats { gap: 24px; }
  .etab-hero-stat-num { font-size: 24px; }
}
@media (max-width: 767px) {
  .etab-hero { padding: 40px 0 28px; }
  .etab-hero-stats { gap: 16px; flex-wrap: wrap; }
  .etab-hero-stat-num { font-size: 20px; }
  .estab-grid { grid-template-columns: 1fr; }
  .etab-tab { padding: 10px 12px; font-size: 11px; }
  .counter-num { font-size: 22px; }
  .etab-section-head { padding: 12px 0; }
  .estab-card-body { padding: 14px; }
  .etab-search-row { flex-direction: column; gap: 8px; }
  .etab-filter-chips { gap: 4px; }
}

/* ═══════════════════════════════════════════════════════
   FIN DES AMÉLIORATIONS CSS
═══════════════════════════════════════════════════════ */
