/* Modern CSS for Solutions Qualité, Contrôle et Inspection */
/* Professional color scheme and responsive design */

:root {
  --primary-blue: #1E40AF;
  --secondary-navy: #374151;
  --accent-orange: #F97316;
  --neutral-gray: #F5F5F5;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --border-gray: #E5E7EB;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
}

.logo-text h1 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--secondary-navy);
}

.logo-text p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--text-light);
}

/* Navigation */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  background: var(--neutral-gray);
  border-radius: 8px;
  padding: 0.25rem;
}

.language-switcher a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-light);
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 500;
}

.language-switcher a.active {
  background: var(--primary-blue);
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent-orange);
  color: var(--white);
}

.btn-secondary:hover {
  background: #EA580C;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue), #3B82F6);
  color: var(--white);
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #DBEAFE;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--white);
  color: var(--text-dark);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge-icon {
  width: 48px;
  height: 48px;
  background: #10B981;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-neutral {
  background: var(--neutral-gray);
}

.section-dark {
  background: var(--secondary-navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--secondary-navy);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.card-icon.primary { background: #DBEAFE; color: var(--primary-blue); }
.card-icon.secondary { background: #FED7AA; color: var(--accent-orange); }
.card-icon.success { background: #D1FAE5; color: #10B981; }
.card-icon.purple { background: #E9D5FF; color: #8B5CF6; }
.card-icon.blue { background: #DBEAFE; color: #3B82F6; }
.card-icon.red { background: #FEE2E2; color: #EF4444; }

.card h3 {
  color: var(--secondary-navy);
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
}

/* Industry Cards */
.industry-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s;
}

.industry-card:hover {
  transform: scale(1.02);
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.industry-card-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2rem;
}

.industry-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.industry-card p {
  color: #E5E7EB;
}

/* Statistics */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact Info */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.primary { background: #DBEAFE; color: var(--primary-blue); }
.contact-icon.secondary { background: #FED7AA; color: var(--accent-orange); }
.contact-icon.success { background: #D1FAE5; color: #10B981; }

.contact-details h4 {
  margin-bottom: 0.25rem;
  color: var(--secondary-navy);
}

.contact-details p {
  margin: 0;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--secondary-navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #D1D5DB;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #4B5563;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #4B5563;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background 0.3s;
}

.social-link:hover {
  background: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-navy); }
.text-accent { color: var(--accent-orange); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.block { display: block; }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}