/* ==========================================================================
   VigiMétéo Modern Theme & Rich Aesthetics
   Design System 2026 - Ultra-clean, Compact Header & Interactive DOM-TOM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --color-green: #10b981;
  --color-yellow: #facc15;
  --color-orange: #f97316;
  --color-red: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body {
  font-family: var(--font-body) !important;
  color: #1e293b;
  background-color: #0b1329;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Compact Navbar --- */
.pb_navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 19, 41, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0 !important;
}

.pb_navbar .navbar-brand {
  font-size: 1.3rem;
  color: #ffffff !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-live {
  font-size: 0.65rem;
  background: #ef4444;
  color: white;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- Tight Hero & Map Section (Zero wasted space) --- */
.section-map {
  background: #0b1329;
  padding: 20px 0 30px 0 !important;
}

.map-card-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#francemap {
  width: 100% !important;
  height: 540px !important;
  border-radius: var(--radius-md);
  background: #0f172a;
}

/* Map Status & Info bar */
#infos-vigilance {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.vigi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.vigi-dept-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vigi-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.vigi-alert-box {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.vigi-alert-box.jaune {
  background-color: #ffea00;
  color: #000000;
  border: 1.5px solid #e6d000;
}

.vigi-alert-box.orange {
  background-color: #ff6d00;
  color: #ffffff;
  border: 1.5px solid #e65100;
}

.vigi-alert-box.rouge {
  background-color: #d50000;
  color: #ffffff;
  border: 1.5px solid #b71c1c;
}

.vigi-alert-box.verte {
  background-color: #10b981;
  color: #ffffff;
  border: 1.5px solid #059669;
}

.vigi-alert-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vigi-alert-box.jaune .vigi-alert-title,
.vigi-alert-box.jaune .vigi-alert-time {
  color: #000000 !important;
}

.vigi-alert-time {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0;
}

.vigi-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Map Legend Bar */
.map-legend-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.green { background: #10b981; }
.legend-dot.yellow { background: #ffea00; border: 1px solid #d4be00; }
.legend-dot.orange { background: #ff6d00; }
.legend-dot.red { background: #d50000; }

/* --- DOM-TOM & Andorre Badges --- */
.outremer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.outremer-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.outremer-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.outremer-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

/* --- Modern Form Card Redesign --- */
.section-form {
  background: #0f172a;
  padding: 40px 0 60px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.modern-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 30px;
  border: 1px solid #e2e8f0;
}

.form-header-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.modern-input-group {
  margin-bottom: 18px;
}

.modern-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.modern-input-group .form-control {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.modern-input-group .form-control:focus {
  background-color: #ffffff;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Alert Level Radio Cards */
.level-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.level-card-option {
  position: relative;
}

.level-card-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.level-card-label {
  display: block;
  padding: 10px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.level-card-option input[type="radio"]:checked + .level-card-label {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Modern Push & WhatsApp channel toggle boxes */
.channel-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.channel-box:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.btn-submit-modern {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 24px;
  border-radius: 30px;
  border: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

/* Footer */
.pb_footer {
  background: #080d1a !important;
  color: #64748b;
  padding: 40px 0 30px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================================================
   Mobile Responsiveness & Adaptive Layouts
   ========================================================================== */

@media (max-width: 991px) {
  .section-map {
    padding: 15px 0 25px 0 !important;
  }
  #francemap {
    height: 480px !important;
  }
}

@media (max-width: 768px) {
  .pb_navbar .navbar-brand {
    font-size: 1.05rem;
  }
  
  .map-card-wrapper {
    padding: 12px;
    border-radius: var(--radius-md);
  }
  
  #francemap {
    height: 390px !important;
  }

  .modern-form-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .vigi-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .vigi-card-header .btn {
    width: 100%;
    text-align: center;
  }

  .vigi-dept-title {
    font-size: 1.05rem;
  }

  .vigi-alert-box {
    padding: 10px 12px;
  }

  .vigi-alert-title {
    font-size: 0.92rem;
  }

  .vigi-alert-time {
    font-size: 0.8rem;
  }

  .map-legend-bar {
    gap: 8px;
    padding: 6px 10px;
    width: 100%;
    justify-content: center;
  }

  .legend-item {
    font-size: 0.75rem;
  }

  .outremer-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

.navbar-logo {
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

@media (max-width: 480px) {
  .navbar-logo {
    width: 30px !important;
    height: 30px !important;
    margin-right: 6px !important;
  }

  .pb_navbar .navbar-brand {
    font-size: 0.92rem;
    letter-spacing: -0.2px;
  }

  .badge-live {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  #francemap {
    height: 310px !important;
  }

  .search-dept-box input {
    font-size: 0.85rem !important;
    padding: 9px 12px 9px 36px !important;
  }

  .search-dept-box .search-icon {
    left: 12px;
    font-size: 0.85rem;
  }

  .level-selector-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .level-card-label {
    padding: 10px 12px;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .channel-box {
    padding: 12px;
  }

  .btn-submit-modern {
    font-size: 0.95rem;
    padding: 12px 18px;
  }
}

