/* Veille Technologique - Style cohérent avec index.html */
/* Utilise les mêmes couleurs et thème mais avec un layout unique */

:root {
  /* Couleurs identiques à index.html */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-500: #6c757d;
  --color-gray-900: #212529;
  --color-accent: #007bff;
  --color-accent-hover: #0056b3;
  --color-accent-light: rgba(0, 123, 255, 0.1);
  
  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --container-max-width: 1200px;
  --section-padding: 6rem 0;
  --grid-gap: 2rem;
  
  /* Transitions */
  --transition-smooth: 0.3s ease-out;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Shadows */
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container & Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Navigation - Identique à index.html */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-gray-500);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-black);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle-line {
  width: 25px;
  height: 2px;
  background: var(--color-gray-900);
  transition: var(--transition-smooth);
}

/* Hero Section */
.veille-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  text-align: center;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Architecture Section */
.architecture-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.architecture-diagram {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Proxmox Container */
.proxmox-container {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 3px solid #2196f3;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.proxmox-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.5;
}

.proxmox-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.proxmox-icon {
  font-size: 3rem;
  margin-right: 1.5rem;
  background: #2196f3;
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
}

.proxmox-info h3 {
  color: #1976d2;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.proxmox-info p {
  color: #1565c0;
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Docker LXC Container */
.docker-lxc-container {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border: 2px solid #9c27b0;
  border-radius: 15px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

/* Docker Slave LXC Container */
.docker-slave-lxc-container {
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
  border: 2px solid #ff9800;
  border-radius: 15px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.docker-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.docker-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  background: #9c27b0;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
}

.docker-info h3 {
  color: #7b1fa2;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.docker-info p {
  color: #6a1b9a;
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

/* Docker Services Container */
.docker-services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-item {
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
  transition: left 0.5s;
}

.service-item:hover::before {
  left: 100%;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: #2196f3;
}

.service-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.service-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-name {
  font-weight: 600;
  color: var(--color-gray-900);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.service-ip {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--color-gray-500);
  background: var(--color-gray-50);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.server-layer {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.server-layer::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: var(--color-accent);
}

.server-layer:last-child::after {
  display: none;
}

.server-box {
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  min-width: 200px;
}

.server-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.server-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.server-box h3 {
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.server-box p {
  color: var(--color-gray-500);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Physical Server */
.physical-server {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #2196f3;
}

/* Proxmox */
.proxmox {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border-color: #9c27b0;
}

/* LXC Container */
.lxc-container {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border-color: #4caf50;
  position: relative;
  overflow: hidden;
}

.lxc-container.primary {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #2196f3;
  border-width: 3px;
}

.lxc-container.secondary {
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
  border-color: #ff9800;
  border-width: 3px;
}

.container-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-accent);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lxc-container.primary .container-badge {
  background: #2196f3;
}

.lxc-container.secondary .container-badge {
  background: #ff9800;
}

/* Docker Services */
.docker-services {
  margin-top: 3rem;
  text-align: center;
}

.services-group {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 12px;
  background: var(--color-gray-50);
  position: relative;
}

.services-group.primary-services {
  border-left: 4px solid #2196f3;
}

.services-group.secondary-services {
  border-left: 4px solid #ff9800;
}

.docker-services h3 {
  font-size: 1.3rem;
  color: var(--color-gray-900);
  margin-bottom: 1.5rem;
  margin-top: 0;
  position: relative;
}

.docker-services h3::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.primary-services h3::before {
  background: #2196f3;
}

.secondary-services h3::before {
  background: #ff9800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* LXC Containers */
.lxc-containers {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-500);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-900);
}

/* Project Details */
.project-details {
  padding: var(--section-padding);
  background: var(--color-gray-50);
}

.project-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.project-intro h2 {
  color: var(--color-gray-900);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.project-intro p {
  color: var(--color-gray-500);
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

.details-grid-single {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  border-left: 4px solid var(--color-accent);
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.detail-card h3 {
  color: var(--color-gray-900);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.detail-card p {
  color: var(--color-gray-500);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Docker Compose Section */
.docker-compose-section {
  padding: 4rem 0;
  background: var(--color-gray-50);
}

.compose-description {
  text-align: center;
  margin-bottom: 2rem;
}

.compose-description p {
  color: var(--color-gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.code-editor {
  max-width: 800px;
  margin: 0 auto;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid #333;
}

.code-header {
  background: #2d2d30;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #333;
}

.code-icon {
  font-size: 1.5rem;
}

.code-title {
  color: #ffffff;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  flex: 1;
}

.code-actions {
  display: flex;
  gap: 1rem;
}

.code-action {
  color: #cccccc;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.code-action:hover {
  color: #ffffff;
}

.code-content {
  padding: 0;
  background: #1e1e1e;
}

.code-content pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: #1e1e1e;
}

.code-content code {
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
}

/* Services Section - Compact */
.services-section {
  padding: 4rem 0;
  background: var(--color-white);
}

.services-compact {
  max-width: 900px;
  margin: 0 auto;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-item {
  display: flex;
  align-items: center;
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  border-left: 4px solid var(--color-accent);
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.service-icon-small {
  font-size: 2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.service-text h4 {
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-text p {
  color: var(--color-gray-500);
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Skills Section - Compact */
.skills-section {
  padding: 4rem 0;
  background: var(--color-gray-50);
}

.skills-compact {
  max-width: 900px;
  margin: 0 auto;
}

.skill-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.skill-item {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  border-left: 4px solid var(--color-accent);
}

.skill-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.skill-item h4 {
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-item p {
  color: var(--color-gray-500);
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Conclusion Section */
.conclusion-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.conclusion-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.conclusion-content h2 {
  color: var(--color-gray-900);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.conclusion-content p {
  color: var(--color-gray-500);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin-bottom: 0;
  color: var(--color-gray-500);
}

.footer a {
  color: var(--color-accent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

@keyframes dataFlow {
  0% {
    background: var(--color-accent);
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    background: #ff6b6b;
    transform: translateX(-50%) scaleY(1.5);
  }
  100% {
    background: var(--color-accent);
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  }
}

/* Animation Classes */
.animate-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-ready:nth-child(odd) {
  transform: translateX(-30px);
}

.animate-ready:nth-child(even) {
  transform: translateX(30px);
}

.animate-in:nth-child(odd),
.animate-in:nth-child(even) {
  transform: translateX(0);
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.server-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

/* Highlight Effects */
.highlight {
  animation: glow 1s ease-in-out infinite;
  transform: scale(1.05);
  z-index: 10;
  position: relative;
}

.dim {
  opacity: 0.3;
  filter: grayscale(50%);
}

.pulse {
  animation: pulse 1s ease-in-out;
}

/* Service Card Animations */
.service-card {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

/* Server Box Animations */
.server-box {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.server-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.server-box:hover::after {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .server-box {
    min-width: 150px;
    padding: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .details-grid-single {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .docker-services-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-row {
    grid-template-columns: 1fr;
  }
  
  .skill-row {
    grid-template-columns: 1fr;
  }
  
  .lxc-containers {
    flex-direction: column;
    align-items: center;
  }
  
  .details-grid-single {
    grid-template-columns: 1fr;
  }
  
  .docker-services-container {
    grid-template-columns: 1fr;
  }
  
  .service-detail:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .veille-hero {
    padding: 6rem 0 3rem;
  }
  
  .server-box {
    min-width: 120px;
    padding: 1rem;
  }
  
  .service-icon {
    font-size: 1.5rem;
  }
  
  .service-icon-large {
    font-size: 2rem;
  }
}