/* ===== VARIABLES CSS - CHARTE BLEUE CLIENT ===== */
:root {
  /* Couleurs principales - Premium Dark Blue */
  --primary-50: #f0f5ff;
  --primary-100: #e0ebff;
  --primary-200: #c2d6ff;
  --primary-300: #94b5ff;
  --primary-400: #5e8aff;
  --primary-500: #3b66f5;
  --primary-600: #2546eb;
  --primary-700: #1d35d8;
  --primary-800: #1e2baf;
  --primary-900: #1e258a;
  --primary-950: #171a54;

  /* Couleurs neutres - Slate */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Couleurs d'état */
  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;

  /* Typographie */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Espacement */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Rayons de bordure */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ET BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-alt {
  background-color: white;
}

.text-center {
  text-align: center;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.nav-logo::after {
  content: '.';
  color: var(--primary-600);
  font-size: 2rem;
  line-height: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-icon i {
  font-size: 1.35rem;
}

.nav-icon:hover {
  background: var(--gray-100);
  color: var(--primary-600);
}

.mobile-menu-toggle {
  display: none;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: white;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-6);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--gray-200);
}

.mobile-menu-links {
  list-style: none;
}

.mobile-menu-links li {
  margin-bottom: var(--space-2);
}

.mobile-menu-links .nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-menu-links .nav-link:hover,
.mobile-menu-links .nav-link.active {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 var(--space-6);
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  margin-bottom: var(--space-4);
  opacity: 0.95;
}

.hero-note {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

/* Secondary button variant inside hero (white text on dark video) */
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

.w-full {
  width: 100%;
}

/* ===== SECTION HEADER ===== */
.section-header {
  max-width: 760px;
  margin: 0 auto var(--space-12) auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.service-card.featured {
  border: 2px solid var(--primary-500);
}

.service-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--primary-600);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-600);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.service-features li i {
  color: var(--success-500);
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.process-step {
  text-align: center;
  position: relative;
  padding-top: 20px;
}

.step-number {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary-600);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(37, 70, 235, 0.3);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) auto var(--space-4) auto;
}

.step-icon i {
  font-size: 2rem;
  color: var(--primary-600);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.process-step p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== QUI SUIS-JE ===== */
/* Même structure 2 colonnes que "Qu'est-ce que la photogrammétrie" (photogrammetrie.html) */
.qui-suis-je {
  background-color: var(--gray-50);
}

.qui-suis-je-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-12);
  align-items: flex-start;
  width: 100%;
}

.qui-suis-je-text {
  flex: 1;
  min-width: 0;
  padding-top: var(--space-4);
}

.qui-suis-je-photo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qui-suis-je-text .section-title {
  text-align: left;
  margin-bottom: var(--space-6);
}

.qui-suis-je-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.qui-suis-je-intro strong {
  color: var(--gray-900);
}

.qui-suis-je-highlights {
  list-style: none;
  margin-bottom: var(--space-6);
}

.qui-suis-je-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--gray-700);
  font-size: 1rem;
}

.qui-suis-je-highlights li i {
  color: var(--primary-600);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.qui-suis-je-cta {
  color: var(--gray-600);
  font-style: italic;
  font-size: 1rem;
}

.qui-suis-je-photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
  object-fit: cover;
}

@media (max-width: 768px) {
  .qui-suis-je-content {
    flex-direction: column;
    gap: var(--space-8);
  }

  .qui-suis-je-text {
    flex: none;
  }

  .qui-suis-je-text .section-title {
    text-align: center;
  }

  .qui-suis-je-intro {
    text-align: center;
  }

  .qui-suis-je-highlights {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .qui-suis-je-cta {
    text-align: center;
  }

  .qui-suis-je-photo {
    order: -1;
    flex: none;
  }

  .qui-suis-je-photo img {
    max-width: 200px;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
}

.cta-card {
  text-align: center;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.cta-card p {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-secondary {
  background: white;
  color: var(--primary-600);
}

.cta-actions .btn-secondary:hover {
  background: var(--gray-50);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-12) 0 var(--space-6) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h3 {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-section p {
  line-height: 1.7;
}

.footer-section p a,
.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section p a:hover,
.footer-section a:hover {
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
}

/* ===== MODAL ===== */
.ec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.ec-modal.active {
    display: flex;
}

.ec-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.ec-modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.ec-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.ec-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.ec-modal-body {
    padding: var(--space-6);
}

.ec-form-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-6);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.modal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--gray-900);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.mt-4 {
  margin-top: var(--space-4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
  }
}
