/* ============================================================
   ECC — ÉGLISE DU CHRISTIANISME CÉLESTE
   Palette : Vert · Jaune · Rouge (Drapeau du Bénin) + Blanc · Bleu
   ============================================================ */

:root {
  --ecc-blue:        #1A3A6B;
  --ecc-blue-dark:   #0F2347;
  --ecc-blue-mid:    #2555A0;
  --ecc-blue-light:  #3B72C8;
  --ecc-blue-pale:   #E8F0FB;
  --ecc-blue-ultra:  #F0F5FF;

  --ecc-white:       #FFFFFF;
  --ecc-off-white:   #F8FAFF;
  --ecc-black:       #0A0A0F;
  --ecc-dark:        #12192B;
  --ecc-gray:        #4A5568;
  --ecc-gray-light:  #718096;
  --ecc-gray-pale:   #E2E8F0;
  --ecc-border:      #CBD5E0;

  --ecc-gold:        #FCD116;
  --ecc-gold-light:  #FFE566;
  --ecc-success:     #008751;
  --ecc-danger:      #E8112D;
  --ecc-warning:     #B7791F;

  /* ── Drapeau du Bénin ── */
  --benin-vert:      #008751;
  --benin-jaune:     #FCD116;
  --benin-rouge:     #E8112D;
  --benin-vert-dark: #006640;
  --benin-rouge-dark:#B50A22;

  --radius:          10px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-sm:       6px;
  --shadow:          0 2px 12px rgba(26,58,107,0.10);
  --shadow-md:       0 6px 24px rgba(26,58,107,0.14);
  --shadow-lg:       0 16px 48px rgba(26,58,107,0.20);
  --transition:      0.22s ease;
  --topbar:          68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; scroll-padding-top: var(--topbar); }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: var(--ecc-off-white); color: var(--ecc-dark); overflow-x: hidden; }
/* Compensation topbar sticky pour ancres internes */
section[id], div[id] { scroll-margin-top: var(--topbar); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── TOPBAR PUBLIQUE ─────────────────────────────────────── */
.pub-topbar {
  background: #1A3A6B;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(15,35,71,0.40);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Ancien glassmorphism supprimé — topbar toujours bleu uni #1A3A6B */

.pub-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pub-topbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pub-topbar-name {
  display: flex;
  flex-direction: column;
}

.pub-topbar-name strong {
  color: var(--ecc-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.pub-topbar-name span {
  color: rgba(255,255,255,0.62);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pub-nav a {
  color: rgba(255,255,255,0.92);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pub-nav a:hover,
.pub-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
}

.pub-nav-portal {
  margin-left: 12px;
  background: var(--benin-rouge);
  color: var(--ecc-white) !important;
  border-radius: var(--radius-sm);
  padding: 8px 18px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition) !important;
  box-shadow: 0 2px 8px rgba(232,17,45,0.3);
}

.pub-nav-portal:hover { background: var(--benin-rouge-dark) !important; box-shadow: 0 4px 16px rgba(232,17,45,0.5) !important; }

.pub-mobile-btn { display: none; }

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.pub-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pub-menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.pub-menu-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  transform: scale(1.05);
}
.pub-menu-btn:hover::before { opacity: 1; }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease, width 0.22s ease;
  transform-origin: center;
}
.pub-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pub-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.pub-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── NAV DRAWER OVERLAY ────────────────────────────────────── */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,12,32,0.62);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.nav-drawer-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── NAV DRAWER ────────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 92vw;
  height: 100dvh;
  background: #0D1E3D;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0, 0.08, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -12px 0 60px rgba(0,0,0,0.45), -1px 0 0 rgba(255,255,255,0.04);
}
.nav-drawer.open { transform: translateX(0); }

/* Bande décorative en haut */
.nav-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1A3A6B, #3B72C8 40%, #5B9BD5 70%, #1A3A6B);
  z-index: 1;
}

/* ── DRAWER HEADER ─────────────────────────────────────────── */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  background: rgba(0,0,0,0.15);
  position: relative;
}
.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-drawer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-drawer-brand strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.nav-drawer-brand span {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 1px;
}
.nav-drawer-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-drawer-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  transform: scale(1.08) rotate(90deg);
}

/* ── DRAWER NAV LIST ───────────────────────────────────────── */
.nav-drawer-list {
  list-style: none;
  padding: 14px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.68);
  font-size: 0.91rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
}
.nav-drawer-link::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: #3B72C8;
  border-radius: 0 3px 3px 0;
  transition: transform 0.22s ease;
}
.nav-drawer-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  transform: translateX(3px);
}
.nav-drawer-link:hover::after { transform: translateY(-50%) scaleY(1); }
.nav-drawer-link.active {
  background: linear-gradient(90deg, rgba(59,114,200,0.22) 0%, rgba(59,114,200,0.08) 100%);
  color: #fff;
  font-weight: 600;
}
.nav-drawer-link.active::after { transform: translateY(-50%) scaleY(1); }

/* ── DRAWER ICON ───────────────────────────────────────────── */
.nav-drawer-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-drawer-link:hover .nav-drawer-icon {
  background: rgba(59,114,200,0.25);
  border-color: rgba(59,114,200,0.3);
  color: #7BAEE8;
}
.nav-drawer-link.active .nav-drawer-icon {
  background: rgba(59,114,200,0.3);
  border-color: rgba(59,114,200,0.4);
  color: #90C2F5;
}

/* ── BOUTON PORTAIL — OR ÉLÉGANT ───────────────────────────── */
.nav-drawer-portal {
  background: linear-gradient(135deg, rgba(180,140,20,0.18) 0%, rgba(212,175,55,0.14) 100%);
  border: 1px solid rgba(212,175,55,0.35);
  color: #F5D76E !important;
  margin-top: 4px;
}
.nav-drawer-portal:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.28) 0%, rgba(255,215,80,0.22) 100%) !important;
  border-color: rgba(212,175,55,0.6) !important;
  color: #FFE680 !important;
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.18);
}
.nav-drawer-portal::after { background: #D4AF37; }
.nav-drawer-portal .nav-drawer-icon {
  background: rgba(212,175,55,0.2);
  border-color: rgba(212,175,55,0.3);
  color: #F5D76E;
}
.nav-drawer-portal:hover .nav-drawer-icon {
  background: rgba(212,175,55,0.35);
  border-color: rgba(212,175,55,0.5);
  color: #FFE680;
}

/* ── DIVIDER ───────────────────────────────────────────────── */
.nav-drawer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 8px 6px;
}

/* ── DRAWER FOOTER ─────────────────────────────────────────── */
.nav-drawer-footer {
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.28);
  font-size: 0.7rem;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  text-align: center;
  flex-shrink: 0;
}
.nav-drawer-footer p { margin: 2px 0; }

/* Label de section dans le drawer */
.nav-drawer-section-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  padding: 10px 14px 5px;
  pointer-events: none;
  user-select: none;
}

/* Flèche portail */
.nav-drawer-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  color: rgba(212,175,55,0.6);
  transition: transform 0.2s ease;
}
.nav-drawer-portal:hover .nav-drawer-arrow {
  transform: translateX(3px);
  color: #FFE680;
}

/* Logo pied de drawer */
.nav-drawer-footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.nav-drawer-footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.3;
  object-fit: cover;
}

/* ── HERO SECTION (legacy, kept for compatibility) ───────── */
.hero {
  background: linear-gradient(135deg, var(--ecc-blue-dark) 0%, var(--ecc-blue) 50%, var(--ecc-blue-mid) 100%);
  color: var(--ecc-white);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  margin: 0 auto 24px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── HERO GALLERY ────────────────────────────────────────── */
.hero-gallery {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--ecc-blue-dark);
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,20,50,0.45) 0%,
    rgba(10,20,50,0.3) 50%,
    rgba(10,20,50,0.75) 100%
  );
}

/* Caption bottom corner */
.hero-slide-caption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  max-width: 55%;
  background: rgba(10, 20, 50, 0.62);
  backdrop-filter: blur(6px);
  border-left: 3px solid rgba(255,255,255,0.55);
  border-radius: 0 6px 6px 0;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  font-style: italic;
  letter-spacing: 0.01em;
  transition: opacity 0.4s;
}

.hero-slide-caption:empty { display: none; }

/* Center overlay — logo + subtitle + buttons */
.hero-center-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  text-align: center;
  padding: 0 20px;
}

.hero-gallery-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.45);
  object-fit: cover;
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  pointer-events: none;
}

.hero-gallery-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 18px;
  pointer-events: none;
}

.hero-gallery-subtitle span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.hero-gallery-subtitle small {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero-gallery-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: all;
}

/* Navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.18s, transform 0.18s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* Navigation dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 7px;
  z-index: 20;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
  background: #fff;
  border-color: rgba(255,255,255,0.9);
  transform: scale(1.25);
}

/* Fallback placeholder slide (no image) */
.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ecc-blue-dark) 0%, var(--ecc-blue) 60%, var(--ecc-blue-mid) 100%);
}

@media (max-width: 768px) {
  .hero-gallery { height: 380px; }
  .hero-gallery-logo { width: 70px; height: 70px; }
  .hero-gallery-subtitle span { font-size: 0.68rem; }
  .hero-slide-caption { font-size: 0.75rem; max-width: 70%; bottom: 52px; }
}

/* ── LITURGICAL BAR — SUPPRIMÉE ───────────────────────────── */
.liturgical-bar { display: none; }

/* ── STATS BANNER ────────────────────────────────────────── */
.stats-banner {
  background: var(--ecc-white);
  border-bottom: 1px solid var(--ecc-gray-pale);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  padding: 24px 48px;
  text-align: center;
  border-right: 1px solid var(--ecc-gray-pale);
  flex: 1;
  min-width: 150px;
}

.stat-item:last-child { border-right: none; }

.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ecc-blue);
  display: block;
}

.stat-item .stat-lbl {
  font-size: 0.78rem;
  color: var(--ecc-gray-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTIONS ────────────────────────────────────────────── */
section { padding: 64px 24px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ecc-blue-mid);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ecc-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  color: var(--ecc-gray);
  font-size: 0.97rem;
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc { margin: 0 auto; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--ecc-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--ecc-gray-pale);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-body { padding: 24px; }

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ecc-gray-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FEATURE GRID ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--ecc-white);
  border: 1px solid var(--ecc-gray-pale);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--ecc-blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--ecc-blue-pale);
  color: var(--ecc-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ecc-dark);
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--ecc-gray);
  line-height: 1.65;
}

/* ── BTNS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--ecc-blue);
  color: var(--ecc-white);
}
.btn-primary:hover { background: var(--ecc-blue-mid); box-shadow: 0 4px 16px rgba(26,58,107,0.35); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ecc-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--ecc-white); }

.btn-white {
  background: var(--ecc-white);
  color: var(--ecc-blue);
}
.btn-white:hover { background: var(--ecc-blue-pale); }

.btn-danger { background: var(--ecc-danger); color: #fff; }
.btn-danger:hover { background: #a93226; }

.btn-secondary { background: var(--ecc-gray-pale); color: var(--ecc-dark); border: 1px solid var(--ecc-border); }
.btn-secondary:hover { background: var(--ecc-border); }

.btn-success { background: var(--ecc-success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.btn-icon { background: none; border: none; padding: 5px; border-radius: 5px; transition: all var(--transition); }
.btn-icon:hover { background: var(--ecc-blue-pale); }
.btn-icon.edit { color: var(--ecc-blue); }
.btn-icon.del { color: var(--ecc-danger); }
.btn-icon.view { color: var(--ecc-success); }

/* ── FOOTER ──────────────────────────────────────────────── */
.pub-footer {
  background: var(--ecc-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 32px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); }
.footer-brand-name strong { color: #fff; font-size: 0.95rem; display: block; }
.footer-brand-name span { color: rgba(255,255,255,0.6); font-size: 0.72rem; }

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ── PORTAIL MODAL (nouveau design) ─────────────────────────── */
.portal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,45,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}
.portal-overlay.hidden { display: none; }

.portal-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  min-height: 460px;
  display: flex;
  box-shadow: 0 32px 100px rgba(0,0,0,0.38);
  overflow: hidden;
  position: relative;
}

/* Fermer */
.portal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.18s;
}
.portal-close:hover { background: rgba(255,255,255,0.28); }

/* Colonne gauche */
.portal-left {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0f2a5a 0%, #1A3A6B 60%, #1e4a8a 100%);
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.portal-brand-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.portal-brand-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.portal-brand-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-brand-divider {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 20px auto;
}
.portal-brand-desc {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* Colonne droite */
.portal-right {
  flex: 1;
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.portal-step { width: 100%; }

.portal-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1A3A6B;
  margin-bottom: 6px;
}
.portal-step-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f1e3a;
  margin-bottom: 6px;
  line-height: 1.2;
}
.portal-step-sub {
  font-size: 0.87rem;
  color: #7a8fa6;
  margin-bottom: 28px;
}

/* Cartes de rôle */
.portal-role-cards { display: flex; flex-direction: column; gap: 12px; }

.portal-role-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fafbfd;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
  text-align: left;
  width: 100%;
}
.portal-role-card:hover {
  border-color: #1A3A6B;
  background: #f0f4ff;
  box-shadow: 0 4px 18px rgba(26,58,107,0.12);
  transform: translateY(-2px);
}
.portal-role-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.portal-role-icon-admin { background: #e8eef9; color: #1A3A6B; }
.portal-role-icon-rec   { background: #e8f5ef; color: #1a6b4a; }

.portal-role-info { flex: 1; }
.portal-role-info strong { display: block; font-size: 0.95rem; font-weight: 700; color: #0f1e3a; margin-bottom: 2px; }
.portal-role-info span   { font-size: 0.78rem; color: #7a8fa6; }

.portal-role-arrow { color: #c0cfe0; font-size: 0.8rem; transition: color 0.18s; }
.portal-role-card:hover .portal-role-arrow { color: #1A3A6B; }

/* Formulaire */
.portal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a8fa6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.portal-back-btn:hover { color: #1A3A6B; }

.portal-form-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.portal-form-icon-admin { background: #e8eef9; color: #1A3A6B; }
.portal-form-icon-rec   { background: #e8f5ef; color: #1a6b4a; }

.portal-form { margin-top: 4px; }

.portal-field { margin-bottom: 18px; }
.portal-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.portal-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.portal-field-icon {
  position: absolute;
  left: 14px;
  color: #a0aec0;
  font-size: 0.9rem;
  pointer-events: none;
}
.portal-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #dde3ee;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0f1e3a;
  background: #fafbfd;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.portal-input:focus {
  border-color: #1A3A6B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.portal-input::placeholder { color: #b0bec8; }

.portal-submit {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.portal-submit:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.portal-submit:active { transform: translateY(0); }
.portal-submit-admin { background: #1A3A6B; color: #fff; }
.portal-submit-rec   { background: #1a6b4a; color: #fff; }

/* Responsive */
@media (max-width: 680px) {
  .portal-card { flex-direction: column; max-width: 420px; min-height: unset; }
  .portal-left { width: 100%; padding: 32px 28px 24px; flex-direction: row; gap: 14px; align-items: center; text-align: left; }
  .portal-brand-logo { width: 52px; height: 52px; margin-bottom: 0; flex-shrink: 0; }
  .portal-brand-divider, .portal-brand-desc { display: none; }
  .portal-brand-sub { display: none; }
  .portal-close { background: rgba(0,0,0,0.15); color: #fff; top: 12px; right: 12px; }
  .portal-right { padding: 28px 24px 32px; }
}

/* ── AUTH / PORTAIL (ancien — conservé pour compat) ────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--ecc-blue-dark) 0%, var(--ecc-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}

.auth-card {
  background: var(--ecc-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}

.auth-header {
  background: var(--ecc-blue-dark);
  padding: 32px 36px 24px;
  text-align: center;
  position: relative;
}

.auth-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ecc-blue-light), var(--ecc-gold), var(--ecc-blue-light));
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--ecc-gold);
  margin: 0 auto 14px;
  object-fit: cover;
}

.auth-header h2 {
  color: var(--ecc-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-header p { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

.auth-body { padding: 28px 36px 32px; }

.auth-role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid var(--ecc-gray-pale);
  border-radius: var(--radius);
  background: var(--ecc-off-white);
  color: var(--ecc-gray);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-role-btn i { font-size: 1.4rem; }
.auth-role-btn:hover { border-color: var(--ecc-blue-light); background: var(--ecc-blue-ultra); color: var(--ecc-blue); }
.auth-role-btn.active { border-color: var(--ecc-blue); background: var(--ecc-blue-pale); color: var(--ecc-blue); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ecc-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-label .req { color: var(--ecc-danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ecc-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ecc-dark);
  background: var(--ecc-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--ecc-blue-light);
  box-shadow: 0 0 0 3px rgba(59,114,200,0.12);
}

.form-control:disabled { background: var(--ecc-gray-pale); color: var(--ecc-gray-light); cursor: not-allowed; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.form-hint { font-size: 0.77rem; color: var(--ecc-gray-light); margin-top: 4px; }

.form-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ecc-blue);
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ecc-blue-pale);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── STEPPER ─────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--ecc-gray-pale);
  z-index: 0;
}

.step:last-child::before { display: none; }

.step.done::before { background: var(--ecc-blue); }

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ecc-gray-pale);
  background: var(--ecc-white);
  color: var(--ecc-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
  transition: all var(--transition);
}

.step.active .step-circle { border-color: var(--ecc-blue); background: var(--ecc-blue); color: #fff; }
.step.done .step-circle { border-color: var(--ecc-blue); background: var(--ecc-blue-pale); color: var(--ecc-blue); }

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ecc-gray-light);
  text-align: center;
  white-space: nowrap;
}

.step.active .step-label { color: var(--ecc-blue); }
.step.done .step-label { color: var(--ecc-blue-mid); }

/* ── ADMIN SHELL ─────────────────────────────────────────── */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--ecc-blue-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: width var(--transition);
  overflow: hidden;
}

.admin-sidebar.collapsed { width: 70px; }

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 68px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.admin-logo { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.admin-logo img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--benin-jaune); flex-shrink: 0; }
.admin-logo-text { overflow: hidden; }
.admin-logo-text strong { color: #fff; font-size: 0.9rem; display: block; white-space: nowrap; }
.admin-logo-text span { color: var(--benin-jaune); font-size: 0.68rem; white-space: nowrap; }

.admin-sidebar.collapsed .admin-logo-text { display: none; }

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  padding: 6px;
  border-radius: 5px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.admin-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.admin-nav ul { list-style: none; }
.admin-nav li { margin: 2px 8px; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.admin-nav-link i { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-link.active { background: var(--ecc-blue-mid); color: #fff; }
.admin-nav-link.active i { color: var(--ecc-gold); }

.admin-sidebar.collapsed .admin-nav-link span { display: none; }
.admin-sidebar.collapsed .admin-nav-link { justify-content: center; }

.admin-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.admin-sidebar.collapsed .admin-sidebar-footer { display: none; }

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

.admin-main.collapsed { margin-left: 70px; }

.admin-topbar {
  height: 68px;
  background: var(--ecc-white);
  border-bottom: 1px solid var(--ecc-gray-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.admin-topbar-left { display: flex; align-items: center; gap: 16px; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }

.admin-breadcrumb { font-size: 0.9rem; color: var(--ecc-gray); font-weight: 500; }

.admin-page { flex: 1; padding: 28px; }
.admin-page-inner { display: none; animation: fadeIn 0.3s ease; }
.admin-page-inner.active { display: block; }

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

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-heading h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ecc-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-heading h1 i { color: var(--ecc-blue); }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--ecc-white);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ecc-gray-pale);
  border-left: 4px solid transparent;
  transition: all var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.blue { border-left-color: var(--ecc-blue); }
.stat-card.gold { border-left-color: var(--ecc-gold); }
.stat-card.green { border-left-color: var(--ecc-success); }
.stat-card.red { border-left-color: var(--ecc-danger); }

.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card.blue .stat-icon-box { background: var(--ecc-blue-pale); color: var(--ecc-blue); }
.stat-card.gold .stat-icon-box { background: #FEF9E7; color: var(--ecc-gold); }
.stat-card.green .stat-icon-box { background: #E8F8EF; color: var(--ecc-success); }
.stat-card.red .stat-icon-box { background: #FDE8E8; color: var(--ecc-danger); }

.stat-val { font-size: 1.9rem; font-weight: 800; color: var(--ecc-dark); display: block; line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: var(--ecc-gray-light); font-weight: 500; margin-top: 4px; display: block; }

/* ── TABLES ──────────────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.table-search {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1.5px solid var(--ecc-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.table-search:focus { border-color: var(--ecc-blue-light); box-shadow: 0 0 0 3px rgba(59,114,200,0.1); }

.table-filter {
  padding: 9px 14px;
  border: 1.5px solid var(--ecc-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  color: var(--ecc-dark);
  transition: border-color var(--transition);
}
.table-filter:focus { border-color: var(--ecc-blue-light); }

.table-responsive { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }

.data-table thead th {
  background: var(--ecc-blue-ultra);
  color: var(--ecc-blue-dark);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 2px solid var(--ecc-blue-pale);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--ecc-gray-pale);
  transition: background var(--transition);
}

.data-table tbody tr:hover { background: var(--ecc-blue-ultra); }
.data-table tbody td { padding: 12px 14px; vertical-align: middle; }

.empty-state {
  text-align: center;
  color: var(--ecc-gray-light);
  padding: 48px 20px;
}

.empty-state i { font-size: 2.8rem; display: block; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

.loading-td { text-align: center; padding: 36px !important; color: var(--ecc-gray-light); }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-active { background: #E8F8EF; color: var(--ecc-success); }
.badge-suspended { background: #FDE8E8; color: var(--ecc-danger); }
.badge-pending { background: #FEF9E7; color: var(--ecc-warning); }
.badge-info { background: var(--ecc-blue-pale); color: var(--ecc-blue); }
.badge-gray { background: var(--ecc-gray-pale); color: var(--ecc-gray); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--ecc-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  animation: slideUp 0.3s ease;
}

.modal-box.modal-lg { max-width: 820px; }
.modal-box.modal-xl { max-width: 1000px; }
.modal-box.modal-sm { max-width: 440px; }

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

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ecc-gray-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.modal-header h3 i { color: var(--ecc-blue); }

.modal-close {
  background: none;
  border: none;
  color: var(--ecc-gray-light);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 5px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--ecc-gray-pale); color: var(--ecc-dark); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ecc-gray-pale);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ecc-dark);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  z-index: 9000;
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

.toast.hidden { display: none; }
.toast.success .toast-icon { color: #5dde8c; }
.toast.error { background: var(--ecc-danger); }
.toast.info { background: var(--ecc-blue); }

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

/* ── SUCCESS PAGE ────────────────────────────────────────── */
.success-screen {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #E8F8EF;
  color: var(--ecc-success);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-screen h2 { font-size: 1.4rem; font-weight: 700; color: var(--ecc-dark); margin-bottom: 10px; }
.success-screen p { color: var(--ecc-gray); font-size: 0.92rem; line-height: 1.7; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .pub-nav { display: none; }
  .pub-topbar { padding: 0 16px; }
  .hero { padding: 48px 20px; }
  .stats-banner { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--ecc-gray-pale); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .admin-sidebar { transform: translateX(-100%); width: 260px !important; }
  .admin-sidebar.mobile-open { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-page { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid-4 { grid-template-columns: 1fr; }
  .auth-role-select { grid-template-columns: 1fr; }
}

/* ============================================================
   ██████╗ ██████╗ ███████╗███╗   ███╗██╗██╗   ██╗███╗   ███╗
   ECC — SYSTÈME DESIGN PREMIUM v2.0
   Glassmorphism · Micro-animations · Ombres élégantes
   Typographie raffinée · Hover effects premium
   ============================================================ */

/* ── VARIABLES PREMIUM ───────────────────────────────────── */
:root {
  /* Glassmorphism tokens */
  --glass-bg:         rgba(255,255,255,0.72);
  --glass-bg-dark:    rgba(15,35,71,0.72);
  --glass-border:     rgba(255,255,255,0.28);
  --glass-border-dark:rgba(255,255,255,0.10);
  --glass-blur:       blur(14px) saturate(1.6);

  /* Shadows premium */
  --shadow-soft:      0 2px 16px rgba(26,58,107,0.07);
  --shadow-md-soft:   0 8px 32px rgba(26,58,107,0.11);
  --shadow-lg-soft:   0 20px 56px rgba(26,58,107,0.16);
  --shadow-xl:        0 32px 80px rgba(26,58,107,0.22);
  --shadow-inset:     inset 0 1px 0 rgba(255,255,255,0.8);
  --shadow-glow-blue: 0 0 24px rgba(59,114,200,0.28);
  --shadow-glow-gold: 0 0 24px rgba(252,209,22,0.35);
  --shadow-glow-green:0 0 24px rgba(0,135,81,0.28);

  /* Gradients */
  --grad-blue:   linear-gradient(135deg, #1A3A6B 0%, #2555A0 100%);
  --grad-gold:   linear-gradient(135deg, #B8860B 0%, #FCD116 50%, #FFE566 100%);
  --grad-glass:  linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);

  /* Border radius harmonieux */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Transitions fluides */
  --t-fast:   0.15s cubic-bezier(0.4,0,0.2,1);
  --t-base:   0.22s cubic-bezier(0.4,0,0.2,1);
  --t-slow:   0.38s cubic-bezier(0.4,0,0.2,1);
  --t-spring: 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── SCROLLBAR PREMIUM ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(26,58,107,0.2);
  border-radius: var(--radius-full);
  transition: background var(--t-base);
}
::-webkit-scrollbar-thumb:hover { background: rgba(26,58,107,0.4); }

/* ── SÉLECTION DE TEXTE ───────────────────────────────────── */
::selection {
  background: rgba(59,114,200,0.18);
  color: var(--ecc-blue-dark);
}

/* ── LIENS DE FOCUS (accessibilité) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--ecc-blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(59,114,200,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(59,114,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,114,200,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── TOPBAR NAV — EFFETS HOVER PREMIUM ───────────────────── */
.pub-nav a {
  position: relative;
  overflow: hidden;
}
.pub-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--benin-jaune);
  border-radius: 1px;
  transition: transform var(--t-base);
}
.pub-nav a:hover::after,
.pub-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.pub-nav a:hover,
.pub-nav a.active {
  color: var(--benin-jaune);
  background: rgba(255,255,255,0.1);
  text-shadow: 0 0 12px rgba(252,209,22,0.5);
}

/* ── MOBILE NAV PREMIUM ───────────────────────────────────── */
.pub-nav.open {
  background: rgba(15,35,71,0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(252,209,22,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: fadeSlideUp 0.25s ease;
}

/* ── CARDS PREMIUM ────────────────────────────────────────── */
.card {
  background: var(--ecc-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(203,213,224,0.6);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--shadow-inset);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  box-shadow: var(--shadow-md-soft);
  transform: translateY(-3px);
  border-color: rgba(59,114,200,0.2);
}

/* ── GLASSMORPHISM CARDS ──────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}
.glass-card-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-dark);
}

/* ── BUTTONS PREMIUM ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-base);
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.07); }
.btn:active { transform: translateY(1px) !important; }

.btn-primary {
  background: var(--grad-blue);
  color: var(--ecc-white);
  box-shadow: 0 2px 8px rgba(26,58,107,0.25), var(--shadow-inset);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2555A0 0%, #3B72C8 100%);
  box-shadow: 0 6px 20px rgba(26,58,107,0.38), var(--shadow-inset);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ecc-white);
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white {
  background: var(--ecc-white);
  color: var(--ecc-blue);
  box-shadow: 0 2px 8px rgba(26,58,107,0.12), var(--shadow-inset);
}
.btn-white:hover {
  background: var(--ecc-blue-pale);
  box-shadow: 0 4px 16px rgba(26,58,107,0.18);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--ecc-danger) 0%, #c0392b 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,17,45,0.25);
}
.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(232,17,45,0.38);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--ecc-gray-pale);
  color: var(--ecc-dark);
  border: 1px solid var(--ecc-border);
  box-shadow: var(--shadow-inset);
}
.btn-secondary:hover {
  background: var(--ecc-border);
  box-shadow: 0 4px 12px rgba(26,58,107,0.1);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--ecc-success) 0%, #00a562 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,135,81,0.25);
}
.btn-success:hover {
  box-shadow: 0 6px 20px rgba(0,135,81,0.38);
  transform: translateY(-2px);
}

/* Tailles buttons */
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: var(--radius-xs); gap: 6px; }
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: var(--radius); }

/* ── FORMS PREMIUM ────────────────────────────────────────── */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ecc-dark);
  background: var(--ecc-white);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
  box-shadow: var(--shadow-inset);
}
.form-control:hover:not(:disabled) { border-color: #A0AEC0; }
.form-control:focus {
  border-color: var(--ecc-blue-light);
  box-shadow: 0 0 0 4px rgba(59,114,200,0.1), var(--shadow-inset);
  transform: translateY(-1px);
}
.form-control::placeholder { color: #A0AEC0; }
.form-control:disabled {
  background: #F8F9FB;
  color: var(--ecc-gray-light);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ecc-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

/* ── TABLES PREMIUM ───────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.87rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.data-table thead th {
  background: linear-gradient(135deg, #EEF2FF, var(--ecc-blue-ultra));
  color: var(--ecc-blue-dark);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 2px solid var(--ecc-blue-pale);
  white-space: nowrap;
}
.data-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }

.data-table tbody tr {
  border-bottom: 1px solid rgba(226,232,240,0.7);
  transition: background var(--t-fast), transform var(--t-fast);
}
.data-table tbody tr:hover {
  background: linear-gradient(90deg, var(--ecc-blue-ultra) 0%, #F8FAFF 100%);
  transform: none;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  color: var(--ecc-dark);
}

/* ── BADGES PREMIUM ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-active {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border: 1px solid rgba(6,95,70,0.15);
}
.badge-suspended {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
  border: 1px solid rgba(153,27,27,0.15);
}
.badge-pending {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 1px solid rgba(146,64,14,0.15);
}
.badge-info {
  background: linear-gradient(135deg, var(--ecc-blue-pale), #DBEAFE);
  color: var(--ecc-blue);
  border: 1px solid rgba(26,58,107,0.15);
}
.badge-gray {
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  color: #374151;
  border: 1px solid rgba(55,65,81,0.1);
}

/* ── STATS CARDS PREMIUM ──────────────────────────────────── */
.stat-card {
  background: var(--ecc-white);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(203,213,224,0.5);
  border-left: 4px solid transparent;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(26,58,107,0.03);
  transform: translate(20px, -20px);
  transition: transform var(--t-base);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md-soft);
}
.stat-card:hover::after { transform: translate(16px, -16px); }
.stat-card.blue { border-left-color: var(--ecc-blue); }
.stat-card.gold { border-left-color: var(--ecc-gold); }
.stat-card.green { border-left-color: var(--ecc-success); }
.stat-card.red { border-left-color: var(--ecc-danger); }

.stat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform var(--t-spring);
}
.stat-card:hover .stat-icon-box { transform: scale(1.1) rotate(-3deg); }

/* ── STATS BANNER PREMIUM ─────────────────────────────────── */
.stats-banner {
  background: var(--ecc-white);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(26,58,107,0.05);
}

.stat-item {
  padding: 28px 48px;
  text-align: center;
  border-right: 1px solid rgba(226,232,240,0.7);
  flex: 1;
  min-width: 160px;
  transition: background var(--t-base);
}
.stat-item:hover { background: var(--ecc-blue-ultra); }
.stat-item:last-child { border-right: none; }
.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ecc-blue);
  display: block;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-item .stat-lbl {
  font-size: 0.75rem;
  color: var(--ecc-gray-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}

/* ── SECTION HEADERS PREMIUM ──────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ecc-blue-mid);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--ecc-blue);
  border-radius: 1px;
}
.section-header.center .section-label {
  justify-content: center;
}
.section-header.center .section-label::before { display: none; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ecc-dark);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── FEATURE CARDS PREMIUM ────────────────────────────────── */
.feature-card {
  background: var(--ecc-white);
  border: 1px solid rgba(203,213,224,0.5);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glass);
  opacity: 0;
  transition: opacity var(--t-base);
  border-radius: inherit;
}
.feature-card:hover {
  border-color: rgba(59,114,200,0.3);
  box-shadow: var(--shadow-md-soft);
  transform: translateY(-4px);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--ecc-blue-pale), #DBEAFE);
  color: var(--ecc-blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: transform var(--t-spring), box-shadow var(--t-base);
  box-shadow: 0 2px 8px rgba(26,58,107,0.12);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-glow-blue);
}

/* ── MODAL PREMIUM ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,50,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--ecc-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
  border: 1px solid rgba(255,255,255,0.6);
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid rgba(226,232,240,0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--ecc-gray-light);
  font-size: 1rem;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: all var(--t-base);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #FEE2E2;
  color: var(--ecc-danger);
  transform: rotate(90deg);
}

/* ── AUTH CARD PREMIUM ────────────────────────────────────── */
.auth-card {
  background: var(--ecc-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
  animation: scaleIn 0.32s cubic-bezier(0.34,1.56,0.64,1);
}

.auth-header {
  background: linear-gradient(135deg, var(--ecc-blue-dark) 0%, var(--ecc-blue) 100%);
  padding: 36px 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.auth-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ecc-gold), transparent);
}

.auth-role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1.5px solid var(--ecc-gray-pale);
  border-radius: var(--radius);
  background: var(--ecc-off-white);
  color: var(--ecc-gray);
  cursor: pointer;
  transition: all var(--t-base);
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.auth-role-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-blue);
  opacity: 0;
  transition: opacity var(--t-base);
}
.auth-role-btn > * { position: relative; z-index: 1; }
.auth-role-btn i { font-size: 1.5rem; transition: transform var(--t-spring); }
.auth-role-btn:hover {
  border-color: var(--ecc-blue-light);
  color: var(--ecc-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md-soft);
}
.auth-role-btn:hover i { transform: scale(1.15); }
.auth-role-btn.active {
  border-color: var(--ecc-blue);
  color: var(--ecc-blue);
  background: var(--ecc-blue-pale);
}

/* ── ADMIN SIDEBAR PREMIUM ────────────────────────────────── */
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.87rem;
  font-weight: 500;
  transition: all var(--t-base);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.admin-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 0;
  background: var(--ecc-blue-light);
  border-radius: 0 3px 3px 0;
  transition: width var(--t-base);
}
.admin-nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(3px);
}
.admin-nav-link.active {
  background: rgba(37,85,160,0.7);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.admin-nav-link.active::before { width: 3px; }
.admin-nav-link.active i { color: var(--ecc-gold); }
.admin-nav-link i { transition: transform var(--t-spring); }
.admin-nav-link:hover i { transform: scale(1.1); }

/* ── ADMIN TOPBAR PREMIUM ─────────────────────────────────── */
.admin-topbar {
  height: 68px;
  background: var(--ecc-white);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(226,232,240,0.8), 0 4px 16px rgba(26,58,107,0.04);
}

/* ── TABLE SEARCH PREMIUM ─────────────────────────────────── */
.table-search,
.table-filter {
  padding: 10px 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--t-base);
  background: var(--ecc-white);
  box-shadow: var(--shadow-inset);
}
.table-search:hover, .table-filter:hover { border-color: #A0AEC0; }
.table-search:focus,
.table-filter:focus {
  border-color: var(--ecc-blue-light);
  box-shadow: 0 0 0 4px rgba(59,114,200,0.1), var(--shadow-inset);
}

/* ── TOAST PREMIUM ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ecc-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.87rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg-soft);
  z-index: 9000;
  animation: slideInRight 0.32s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 380px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}
.toast.success { background: linear-gradient(135deg, #065F46, #059669); }
.toast.error { background: linear-gradient(135deg, #991B1B, var(--ecc-danger)); }
.toast.info { background: var(--grad-blue); }

/* ── LÉGENDE SECTION PREMIUM ──────────────────────────────── */
#legende {
  position: relative;
  overflow: hidden;
}
#legende::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(252,209,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}
#legende::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(59,114,200,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Légende cards hover amélioré */
.legende-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.legende-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glass);
  opacity: 0;
  transition: opacity var(--t-base);
  border-radius: inherit;
}
.legende-card > * { position: relative; z-index: 1; }
.legende-card:hover {
  transform: translateY(-5px);
  border-color: rgba(252,209,22,0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25), 0 0 0 1px rgba(252,209,22,0.15);
}
.legende-card:hover::before { opacity: 1; }

/* ── ACTU CARDS PREMIUM ───────────────────────────────────── */
.actu-card {
  background: #fff;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft) !important;
  border: 1px solid rgba(203,213,224,0.5) !important;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base) !important;
  display: flex;
  flex-direction: column;
}
.actu-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-md-soft) !important;
  border-color: rgba(59,114,200,0.2) !important;
}

/* ── DOC ITEMS PREMIUM ────────────────────────────────────── */
.doc-item {
  background: #fff;
  border-radius: var(--radius) !important;
  padding: 18px 22px !important;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft) !important;
  border: 1px solid rgba(203,213,224,0.5) !important;
  cursor: pointer;
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base) !important;
}
.doc-item:hover {
  box-shadow: var(--shadow-md-soft) !important;
  border-color: rgba(59,114,200,0.25) !important;
  transform: translateY(-2px);
}

/* ── FOOTER PREMIUM ───────────────────────────────────────── */
.pub-footer {
  background: linear-gradient(180deg, var(--ecc-blue-dark) 0%, #07132A 100%);
  color: rgba(255,255,255,0.7);
  padding: 48px 32px 24px;
  position: relative;
  overflow: hidden;
}
.pub-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252,209,22,0.4), transparent);
}

.footer-col ul li a {
  color: rgba(255,255,255,0.58);
  font-size: 0.85rem;
  transition: all var(--t-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover {
  color: var(--ecc-gold);
  transform: translateX(4px);
}

/* ── CTA SECTION PREMIUM ──────────────────────────────────── */
.cta-logo-ring {
  animation: float 4s ease-in-out infinite;
}

/* ── ADMIN PAGE ANIMATIONS ────────────────────────────────── */
.admin-page-inner.active {
  animation: fadeSlideUp 0.32s ease;
}

/* ── LOADING SKELETON ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--ecc-gray-pale) 25%,
    rgba(226,232,240,0.4) 50%,
    var(--ecc-gray-pale) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

/* ── STEPPER PREMIUM ──────────────────────────────────────── */
.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ecc-gray-pale);
  background: var(--ecc-white);
  color: var(--ecc-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
  transition: all var(--t-spring);
  box-shadow: var(--shadow-inset);
}
.step.active .step-circle {
  border-color: var(--ecc-blue);
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
}
.step.done .step-circle {
  border-color: var(--ecc-blue);
  background: var(--ecc-blue-pale);
  color: var(--ecc-blue);
}

/* ── BTN ICON PREMIUM ─────────────────────────────────────── */
.btn-icon {
  background: none;
  border: none;
  padding: 7px;
  border-radius: var(--radius-xs);
  transition: all var(--t-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.btn-icon:hover { background: var(--ecc-blue-pale); transform: scale(1.1); }
.btn-icon.edit:hover { background: var(--ecc-blue-pale); color: var(--ecc-blue); }
.btn-icon.del:hover { background: #FEE2E2; color: var(--ecc-danger); }
.btn-icon.view:hover { background: #D1FAE5; color: var(--ecc-success); }

/* ── SUCCESS SCREEN PREMIUM ───────────────────────────────── */
.success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: var(--ecc-success);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-glow-green);
  animation: pulse-ring 2s ease infinite;
}

/* ── RESPONSIVE PREMIUM ───────────────────────────────────── */
@media (max-width: 768px) {
  .stat-item { padding: 20px 24px; }
  .stat-item .stat-num { font-size: 1.8rem; }
  .legende-card { padding: 20px; }
  .pub-nav.open {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .btn-lg { padding: 13px 22px; font-size: 0.95rem; }
  .auth-card { border-radius: var(--radius-lg); }
}

/* ── ABOUT SECTION CARDS PREMIUM ─────────────────────────── */
.about-card-item {
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.about-card-item:hover {
  transform: translateX(4px);
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .pub-topbar, .pub-footer, .pub-mobile-btn { display: none !important; }
  .hero-gallery { height: 200px; }
  * { box-shadow: none !important; animation: none !important; }
}
