/* ==========================================================================
   COMMUNAUTÉ FRANCE DU PEUPLE — ULTRA-PREMIUM TRICOLOR DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Soft Luminous Royal Navy Base (VIP Classy & Vibrant) */
  --bg-dark: #06122e;
  --bg-space-deep: #030a1c;
  
  /* Glassmorphism Cards */
  --bg-card: rgba(10, 26, 64, 0.88);
  --bg-card-hover: rgba(16, 38, 92, 0.95);
  --border-glow: rgba(0, 119, 255, 0.45);

  /* Official French Tricolor Palette */
  --blue-france: #0055A5;
  --blue-france-light: #0077FF;
  --white-france: #FFFFFF;
  --red-france: #EF4135;
  --red-france-glow: #DC2626;

  /* Pure Tricolor Accents */
  --cyan-accent: #38BDF8;

  /* Typography */
  --text-main: #FFFFFF;
  --text-muted: #CBD5E1;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   STARRED NIGHT GALAXY BACKGROUND (FOND BLEU ÉTOILÉ DYNAMIQUE TRICOLORE)
   ========================================================================== */
#starry-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at bottom, #001f4d 0%, #020817 70%, #000511 100%);
}

.ambient-nebula {
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 850px;
  max-height: 850px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  animation: nebulaPulse 18s ease-in-out infinite alternate;
}

.ambient-nebula.blue-glow {
  top: -15%;
  left: 10%;
  background: radial-gradient(circle, #0055A5 0%, #001A38 60%, transparent 75%);
}

.ambient-nebula.red-glow {
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, #EF4135 0%, #8B0000 60%, transparent 75%);
  animation-delay: -9s;
}

@keyframes nebulaPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.22; }
  50% { transform: scale(1.15) translate(3%, -3%); opacity: 0.35; }
  100% { transform: scale(0.92) translate(-2%, 2%); opacity: 0.22; }
}

/* TRICOLOR TOP BAR GLOW */
.tricolor-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  display: flex;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
}
.tricolor-blue { flex: 1; background: linear-gradient(90deg, #003366, #0055A5); }
.tricolor-white { flex: 1; background: linear-gradient(90deg, #E2E8F0, #FFFFFF); }
.tricolor-red { flex: 1; background: linear-gradient(90deg, #EF4135, #B91C1C); }

/* SITE HEADER WITH CENTERED TRICOLOR LOGO */
.site-header {
  position: sticky;
  top: 5px;
  left: 0;
  width: 100%;
  background: rgba(2, 8, 23, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 85, 165, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 999;
  padding: 10px 0;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

/* MENU HEADER — ICONES SEULES AVEC DÉROULEMENT TRICOLORE AU SURVOL */
.nav-link.nav-icon-only,
.nav-btn-gold.nav-icon-only,
.nav-btn-cyan.nav-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
  color: #FFFFFF;
}

.nav-icon-only .nav-icon {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

.nav-icon-only .nav-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.25s ease;
  margin-left: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.nav-icon-only:hover,
.nav-icon-only:focus {
  background: linear-gradient(135deg, rgba(0, 85, 165, 0.35) 0%, rgba(239, 65, 53, 0.2) 100%);
  border-color: #0077FF;
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
  transform: translateY(-2px);
}

.nav-icon-only:hover .nav-label,
.nav-icon-only:focus .nav-label {
  max-width: 180px;
  opacity: 1;
  margin-left: 8px;
}

.nav-icon-only:hover .nav-icon {
  transform: scale(1.22);
}

/* SUB-HEADER SEARCH BAR ALIGNED TO THE RIGHT BELOW HEADER */
.sub-header-search-bar {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 24px 0 24px;
  display: flex;
  justify-content: flex-end;
  z-index: 998;
}

.sub-header-search-container {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}

.sub-header-search-input {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
  background: rgba(6, 18, 46, 0.94);
  border: 1px solid #00d2ff;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.sub-header-search-input:focus {
  border-color: #0077FF;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.5);
}

.header-logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0 14px;
}

/* LOGO HEADER CENTRÉ — ELEGANT ET PETIT (38PX) */
.header-logo-img {
  height: 38px !important;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-logo-img:hover {
  transform: scale(1.06);
}

.nav-btn-gold {
  background: linear-gradient(135deg, #0055A5 0%, #0077FF 100%);
  color: #FFFFFF;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 85, 165, 0.4);
}

.nav-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.6);
}

.nav-btn-cyan {
  background: linear-gradient(135deg, #EF4135 0%, #B91C1C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-btn-cyan:hover {
  background: #FF3B30;
  color: #FFFFFF;
}

.mobile-hamburger {
  display: none;
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.8rem;
  cursor: pointer;
}

/* MOBILE DRAWER */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid #0077FF;
  padding: 24px;
  z-index: 998;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.mobile-link {
  color: #FFF;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

/* HERO SECTION */
.hero-section {
  padding: 80px 24px 60px 24px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(0, 85, 165, 0.15) 0%, transparent 60%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-stats-badge {
  display: inline-block;
  background: rgba(0, 85, 165, 0.25);
  color: #38BDF8;
  border: 1px solid #0055A5;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 85, 165, 0.25);
  color: #38BDF8;
  border: 1px solid #0055A5;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 50%, #EF4135 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* REFINED ANIMATED 3D BUTTON DESIGN SYSTEM */
.btn-primary-gold,
.btn-secondary-cyan,
.btn-secondary-glass,
.nav-btn-gold,
.nav-btn-cyan,
.btn-supply {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  user-select: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}

.btn-primary-gold::before,
.btn-secondary-cyan::before,
.nav-btn-gold::before,
.nav-btn-cyan::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.btn-primary-gold:hover::before,
.btn-secondary-cyan:hover::before,
.nav-btn-gold:hover::before,
.nav-btn-cyan:hover::before {
  left: 140%;
}

.btn-primary-gold, .nav-btn-gold {
  background: linear-gradient(180deg, #0077FF 0%, #0055A5 100%);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 85, 165, 0.5);
  border-bottom: 3px solid #003B73;
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(0, 85, 165, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary-gold:hover, .nav-btn-gold:hover {
  background: linear-gradient(180deg, #1A87FF 0%, #0066C8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary-gold:active, .nav-btn-gold:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 2px 8px rgba(0, 85, 165, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary-cyan, .nav-btn-cyan {
  background: linear-gradient(180deg, #FF4D4D 0%, #C91A1A 100%);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(185, 28, 28, 0.5);
  border-bottom: 3px solid #8E0A0A;
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(239, 65, 53, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-secondary-cyan:hover, .nav-btn-cyan:hover {
  background: linear-gradient(180deg, #FF6666 0%, #DC2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 65, 53, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-secondary-cyan:active, .nav-btn-cyan:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 2px 8px rgba(239, 65, 53, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #0077FF;
  transform: translateY(-1px);
}

/* WORKSPACE SEGMENTED CONTROL TABS */
.workspace-tabs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 8px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(0, 119, 255, 0.35);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.workspace-tab-btn {
  flex: 1;
  min-width: 130px;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-tab-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.06);
}

.workspace-tab-btn.active {
  color: #FFF;
  background: linear-gradient(180deg, #0077FF 0%, #0055A5 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 3px solid #003B73;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* LIVE STATS BAR */
.live-stats-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 18, 46, 0.85);
  border: 1px solid rgba(0, 85, 165, 0.4);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 16px 32px;
  gap: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan-accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
}

/* SECTION WRAPPER & GLASS CARDS */
.section-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(0, 85, 165, 0.25);
  color: #38BDF8;
  border: 1px solid #0055A5;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* DEPT GRID */
.dept-search-wrapper {
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dept-search-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  background: rgba(2, 6, 23, 0.8);
  color: #FFF;
  font-size: 1rem;
  outline: none;
}

.dept-search-input:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.dept-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.dept-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dept-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-accent);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.dept-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dept-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #0077FF;
  background: rgba(0, 85, 165, 0.2);
  padding: 4px 12px;
  border-radius: 8px;
}

.dept-online-badge {
  font-size: 0.75rem;
  color: #4ADE80;
  font-weight: 700;
}

.dept-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}

.dept-info-row {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* TIMELINE NATIONALE */
.live-welcome-ticker {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.welcome-pulse {
  color: #EF4135;
  font-weight: 900;
  white-space: nowrap;
}

.post-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-france);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.post-author {
  font-weight: 800;
  color: #FFF;
  font-size: 1rem;
}

.badge-verified {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.2);
  color: var(--cyan-accent);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

.post-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 16px;
}

.post-footer {
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.post-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.post-action-btn:hover {
  color: var(--cyan-accent);
}

/* LOGISTICS GRID */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.logistics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.logistics-card:hover {
  transform: translateY(-4px);
  border-color: #0077FF;
}

.logistics-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.logistics-card h3 {
  font-size: 1.2rem;
  color: #FFF;
  margin-bottom: 8px;
}

.logistics-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-supply {
  width: 100%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-accent);
  border: 1px solid var(--cyan-accent);
  font-weight: 800;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-supply:hover {
  background: var(--cyan-accent);
  color: #020617;
}

.btn-supply-blue {
  width: 100%;
  background: linear-gradient(135deg, #0055A5 0%, #0077FF 100%);
  color: #FFFFFF;
  font-weight: 900;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* SHARE BTNS */
.share-btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  color: #FFF;
  font-size: 0.95rem;
}

.share-whatsapp { background: #25D366; }
.share-telegram { background: #229ED9; }
.share-copy { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); }

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid var(--cyan-accent);
  border-radius: 20px;
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.modal-close {
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.4rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 6, 23, 0.8);
  color: #FFF;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--cyan-accent);
}

/* CHAT BOX */
.chat-messages-box {
  height: 260px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
}

.chat-msg-system {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-accent);
  text-align: center;
  align-self: center;
  font-size: 0.8rem;
}

.chat-msg-received {
  background: rgba(255,255,255,0.08);
  color: #FFF;
  align-self: flex-start;
}

.chat-msg-sent {
  background: var(--blue-france);
  color: #FFF;
  align-self: flex-end;
}

.chat-input-row {
  display: flex;
  gap: 10px;
}

/* FOOTER */
.site-footer {
  background: rgba(2, 6, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 24px 20px 24px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  height: 48px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #0077FF;
}

@media (max-width: 860px) {
  .nav-side { display: none; }
  .mobile-hamburger { display: block; }
  .hero-title { font-size: 2.2rem; }
  .live-stats-bar { flex-direction: column; gap: 14px; }
  .stat-divider { display: none; }
}

/* ==========================================================================
   BANNIÈRE TOP : DÉTONATEUR NATIONAL 325 000
   ========================================================================== */
.detonateur-top-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(239, 65, 53, 0.25) 100%);
  border-bottom: 1px solid rgba(239, 65, 53, 0.4);
  padding: 10px 20px;
  margin-top: 4px;
}

.detonateur-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.detonateur-badge-pulse {
  background: #EF4135;
  color: #FFF;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 65, 53, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 65, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 65, 53, 0); }
}

.detonateur-text {
  font-size: 0.88rem;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detonateur-counter {
  color: #0077FF;
  font-weight: 800;
}

.detonateur-bar-bg {
  flex: 1;
  min-width: 150px;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detonateur-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0055A5, #00d2ff, #FFFFFF, #EF4135);
  transition: width 0.8s ease;
}

/* RECRUITMENT CALL CARDS */
.recruitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.recruitment-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

.recruitment-card:hover {
  transform: translateY(-3px);
  border-color: #00d2ff;
}

.urgency-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
}

.urgency-critical {
  background: rgba(239, 65, 53, 0.2);
  color: #EF4135;
  border: 1px solid rgba(239, 65, 53, 0.4);
}

.urgency-haute {
  background: rgba(0, 85, 165, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(0, 85, 165, 0.4);
}

/* AVATAR OFFICIEL ROND POUR TOUS LES UTILISATEURS */
img[src*="avatar"], img[src*="logo-avatar"], .badge-avatar-img, .post-avatar-img, .user-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  border: 2px solid #0055A5;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
  box-shadow: 0 0 10px rgba(0, 85, 165, 0.5);
}

/* DOCUMENTS GRID */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.document-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.document-card:hover {
  transform: translateY(-3px);
  border-color: #0077FF;
}

/* POLLS CONTAINER */
.polls-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.poll-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
}

.poll-option-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.poll-option-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: #00d2ff;
}

/* PATRIOTIC HERO EMBLEM WITH GLOWING TRICOLOR RING */
.patriotic-emblem-wrapper {
  margin: 0 auto 20px auto;
  width: 110px;
  height: 110px;
  position: relative;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #0055A5, #FFFFFF, #EF4135, #0077FF);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.6), 0 0 40px rgba(0, 85, 165, 0.4);
  animation: float-slow 4s ease-in-out infinite alternate;
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #020617;
}

@keyframes float-slow {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.03); }
}

/* ADVANTAGES GRID */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advantage-card {
  padding: 24px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  border-color: #0077FF;
  box-shadow: 0 10px 30px rgba(0, 85, 165, 0.15);
}

.advantage-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.advantage-card h3 {
  color: #FFF;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.advantage-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   ANIMATED PROGRESS BAR (SHIMMER & FLOW GRADIENT)
   ========================================================================== */
.detonateur-bar-fill, .progress-bar-fill, .animated-shimmer-bar {
  background: linear-gradient(90deg, #0055A5, #00d2ff, #0077FF, #EF4135, #0055A5) !important;
  background-size: 300% 100% !important;
  animation: gradient-flow 3s linear infinite, bar-pulse-glow 2s ease-in-out infinite alternate !important;
  position: relative;
  overflow: hidden;
}

.detonateur-bar-fill::after, .progress-bar-fill::after, .animated-shimmer-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer-light 2s infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bar-pulse-glow {
  0% { box-shadow: 0 0 8px rgba(0, 210, 255, 0.5); }
  100% { box-shadow: 0 0 18px rgba(0, 85, 165, 0.9), 0 0 30px rgba(239, 65, 53, 0.6); }
}

@keyframes shimmer-light {
  0% { left: -100%; }
  60% { left: 150%; }
  100% { left: 150%; }
}

/* TIMELINE WORKSPACE LAYOUT (2 COLUMNS) */
.timeline-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 25px;
}

@media (max-width: 900px) {
  .timeline-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* CLICKABLE DEPARTMENT MEMBER ITEM */
.member-item-clickable {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.member-item-clickable:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
  transform: translateX(3px);
}

.member-item-avatar-box {
  position: relative;
}

.member-item-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid #020617;
}

/* RED LIVE TOP COUNTDOWN BANNER */
.live-top-countdown-banner {
  background: linear-gradient(135deg, #aa0000 0%, #ef4135 50%, #770000 100%);
  border-bottom: 2px solid #0077FF;
  padding: 10px 20px;
  margin-top: 4px;
  box-shadow: 0 4px 15px rgba(239, 65, 53, 0.4);
}

.live-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.live-banner-pulse {
  background: #000;
  color: #FF6B6B;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #EF4135;
  animation: pulse-red 1.5s infinite;
}

.live-banner-title {
  color: #FFF;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.live-countdown-digits {
  color: #0077FF;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 85, 165, 0.5);
  margin-left: 8px;
  font-family: monospace;
  font-size: 1.1rem;
}

.btn-live-access {
  background: #0077FF;
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-live-access:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 85, 165, 0.8);
}
