/* ==========================================================================
   STYLE TECHNIQUE "NUIT & VERT ÉMERAUDE" - PORTFOLIO INGÉNIEUR CIVIL & FIELD
   Inspiré du design moderne avec composition épurée, courbes & tags flottants
   ========================================================================== */

/* Variables de thème : Nuit Profonde & Vert Émeraude */
:root {
  --bg-night-darkest: #060911;
  --bg-night: #090f1d;
  --bg-night-card: #0e172a;
  --bg-night-elevated: #132038;
  
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-neon: #00ff88;
  --accent-emerald-hover: #059669;
  
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.3);
}

/* Police et Base */
html {
  scroll-behavior: smooth;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-night-darkest);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Texture Blueprint Nuit Subtile */
.bg-blueprint-night {
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Lignes topographiques / courbes concentriques d'ingénierie */
.topo-arcs {
  background: radial-gradient(circle at 75% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

/* Police Monospace pour Métriques Techniques */
.font-mono-tech {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Badges & Tags Flottants (Inspirés de la maquette) */
@keyframes float-slow-1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes float-slow-2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(7px) rotate(-1deg);
  }
}

@keyframes float-slow-3 {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

.animate-float-1 {
  animation: float-slow-1 4.5s infinite ease-in-out;
}

.animate-float-2 {
  animation: float-slow-2 5.2s infinite ease-in-out;
}

.animate-float-3 {
  animation: float-slow-3 4.8s infinite ease-in-out;
}

/* Carte de Projet & Effets Hover */
.project-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
  background: var(--bg-night-card);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
}

/* Pulse d'état disponible */
@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.animate-status-pulse {
  animation: status-pulse 2s infinite ease-in-out;
}

/* Barre de progression de compétences */
.skill-bar-fill {
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Modale d'Étude de Cas */
.modal-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(4, 7, 14, 0.88);
  transition: opacity 0.3s ease;
}

.modal-content {
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #060911;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Style de la Carte Leaflet */
#field-map {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 10;
}

.leaflet-popup-content-wrapper {
  background: #0d1527 !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
}

.leaflet-popup-tip {
  background: #0d1527 !important;
}

.leaflet-container a {
  color: #10b981 !important;
}

/* Custom Pin Marker Leaflet - Thème Vert Émeraude */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #040914;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.75);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.custom-map-pin:hover {
  transform: scale(1.25);
}

/* Photo Lightbox */
#photo-lightbox {
  position: relative;
  z-index: 1000;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #0e172a;
  color: #ffffff;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Impression Haute Qualité pour Recruteurs (Ctrl+P) */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  nav, #field-map-section, #carte, #contact, .no-print, button, .modal-backdrop, .animate-float-1, .animate-float-2, .animate-float-3 {
    display: none !important;
  }

  .text-white, .text-slate-300, .text-slate-400 {
    color: #1e293b !important;
  }

  .bg-slate-900, .bg-slate-950, .bg-brand-dark, .bg-brand-navy {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
  }

  .border-slate-800, .border-slate-700 {
    border-color: #cbd5e1 !important;
  }
}
