/* Enhanced Statistics Section - Lighter Theme */

.stats.section {
  background: linear-gradient(135deg, var(--white-color) 0%, var(--light-color) 50%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-3xl) 0;
}

.stats.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, var(--primary-color-alpha) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, var(--secondary-color-alpha) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, var(--success-color-alpha) 0%, transparent 60%);
  pointer-events: none;
}

.stats__container {
  position: relative;
  z-index: 2;
}

.stats__intro {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.stats__intro h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

.stats__intro p {
  font-size: var(--large-font-size);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Statistics Grid */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: var(--spacing-3xl);
  padding: 0 var(--spacing-md);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern Stat Cards - Enhanced Design with Perfect Centering */
.stat-card {
  background: var(--bg-secondary);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-color-alpha), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-slow);
  z-index: 1;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover::after {
  width: 300px;
  height: 300px;
}

.stat-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

/* Enhanced Stat Numbers - Softer Gradient with proper spacing */
.stat-card__number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-black);
  background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 2;
  line-height: 1.1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  text-align: center;
  width: 100%;
}

.stat-card__number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0;
  transition: all var(--transition-normal);
}

.stat-card:hover .stat-card__number::after {
  opacity: 1;
  width: 80px;
}

/* Enhanced Stat Labels - Perfect Centering */
.stat-card__label {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  position: relative;
  z-index: 2;
  font-weight: var(--font-medium);
  line-height: 1.4;
  margin-top: var(--spacing-sm);
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card__company {
  font-weight: var(--font-bold);
  color: var(--gray-900);
  display: block;
  font-size: var(--large-font-size);
  margin-bottom: var(--spacing-xs);
  text-align: center;
  width: 100%;
}

.stat-card__description {
  color: var(--gray-700);
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
}

/* Icons removed from stat cards for cleaner design */
.stat-card__icon {
  display: none;
}

/* ===== AI ADOPTION CHART ===== */
.ai-adoption-chart-container {
  margin: 4rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
}

.ai-adoption-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.adoption-chart-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.adoption-chart-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Language-specific image display - Make rules more specific to avoid affecting language buttons */
.adoption-chart-image[data-lang="en"] {
  display: block;
}

.adoption-chart-image[data-lang="fr"] {
  display: none;
}

/* French language active */
html[lang="fr"] .adoption-chart-image[data-lang="en"] {
  display: none;
}

html[lang="fr"] .adoption-chart-image[data-lang="fr"] {
  display: block;
}

/* ===== STRATEGIC MAP ===== */
.strategic-map-container {
  margin: 4rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
}

.strategic-map {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.strategic-map-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.strategic-map-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===== STRATEGIC AI CHART (Legacy - can be removed if not needed) ===== */
.strategic-chart-container {
  margin: 4rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
}

.chart-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.strategic-chart {
  position: relative;
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 700px;
}

/* Chart Axes */
.chart-axes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.y-axis {
  position: absolute;
  left: 50px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.x-axis {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.axis-line.vertical {
  width: 3px;
  height: calc(100% - 100px);
  background: #007bff;
  margin-top: 50px;
  position: relative;
}

.axis-line.vertical::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -5px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #007bff;
}

.axis-line.horizontal {
  height: 3px;
  width: calc(100% - 100px);
  background: #28a745;
  margin-left: 50px;
  position: relative;
}

.axis-line.horizontal::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 12px solid #28a745;
}

.axis-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  position: absolute;
}

.y-axis .axis-label {
  top: 20px;
  left: -25px;
  transform: rotate(-90deg);
  transform-origin: center;
  color: #007bff;
}

.x-axis .axis-label {
  right: 10px;
  bottom: -30px;
  color: #28a745;
}

/* Chart Content */
.chart-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Threshold Line - Proper diagonal bisection */
.threshold-line {
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: calc(100% - 100px);
  height: 2px;
  background: #6c757d;
  transform: rotate(45deg);
  transform-origin: bottom left;
  border: 1px dashed #6c757d;
  z-index: 1;
}

.threshold-line::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #6c757d 20%, #6c757d 80%, transparent 100%);
}

/* Quadrant Labels - Corrected positioning */
.quadrant-label {
  position: absolute;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefits-costs {
  top: 80px;
  left: 80px;
  color: #28a745;
  font-weight: 700;
}

.threshold-label {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: #6c757d;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
}

.costs-benefits {
  bottom: 80px;
  right: 80px;
  color: #dc3545;
  font-weight: 700;
}

/* Company Points */
.company-point {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.company-point:hover {
  transform: scale(1.1);
}

.point {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 2px solid white;
}

.point.green { background-color: #28a745; }
.point.light-green { background-color: #7cb342; }
.point.yellow-green { background-color: #9ccc65; }
.point.yellow { background-color: #ffc107; }
.point.red { background-color: #dc3545; }
.point.dark-red { background-color: #8b0000; }

.company-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Company Positions - Corrected based on reference image */
.aventuriere {
  top: 100px;
  left: 150px;
}

.curieuse {
  top: 140px;
  left: 200px;
}

.prudente {
  top: 200px;
  left: 120px;
}

.paresse {
  top: 300px;
  left: 80px;
}

.parano {
  top: 350px;
  left: 100px;
}

.sur-architecte {
  top: 200px;
  right: 100px;
}

/* Dark mode chart styling */
[data-theme="dark"] .strategic-chart {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .strategic-chart-container {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .company-label {
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-primary);
}

/* ===== ENHANCED SURVEY SECTION ===== */
.survey-section {
  margin: 4rem 0;
  padding: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
  position: relative;
}

.survey-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-success));
  border-radius: 16px 16px 0 0;
}

.survey-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.survey-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.survey-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

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

.survey-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* Survey Questions Styling */
.survey-questions-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.survey-questions {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: question-counter;
}

.survey-questions li {
  counter-increment: question-counter;
  position: relative;
  padding: 1.25rem 0 1.25rem 3rem;
  border-bottom: 1px solid var(--border-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.survey-questions li:last-child {
  border-bottom: none;
}

.survey-questions li::before {
  content: counter(question-counter);
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.survey-questions li:hover {
  background: var(--color-primary-alpha);
  padding-left: 3.5rem;
}

/* Adoption States Styling */
.adoption-states-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.adoption-states-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.state-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.state-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.state-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.state-content {
  flex: 1;
}

.state-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.state-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Dark mode survey styling */
[data-theme="dark"] .survey-section {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .survey-questions-container,
[data-theme="dark"] .adoption-states-container {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .state-item {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .state-item:hover {
  border-color: var(--color-primary);
}

/* Responsive survey design */
@media (max-width: 1024px) {
  .survey-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .survey-section {
    padding: 2rem;
    margin: 2rem 0;
  }
}

@media (max-width: 768px) {
  .survey-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .survey-title {
    font-size: 1.5rem;
  }

  .survey-description {
    font-size: 1rem;
  }

  .survey-questions-container,
  .adoption-states-container {
    padding: 1.5rem;
  }

  .survey-questions li {
    padding: 1rem 0 1rem 2.5rem;
    font-size: 0.95rem;
  }

  .survey-questions li::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }

  .state-item {
    padding: 0.75rem;
  }

  .state-emoji {
    font-size: 1.25rem;
  }

  .state-name {
    font-size: 0.95rem;
  }

  .state-description {
    font-size: 0.85rem;
  }
}

/* Responsive chart design */
@media (max-width: 768px) {
  .strategic-chart {
    height: 400px;
    max-width: 100%;
  }

  .strategic-chart-container {
    padding: 1rem;
    margin: 2rem 0;
  }

  .chart-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .company-label {
    font-size: 0.7rem;
    padding: 1px 4px;
  }

  .point {
    width: 14px;
    height: 14px;
  }

  .axis-label {
    font-size: 0.9rem;
  }

  /* Adjust positions for mobile */
  .aventuriere { top: 100px; left: 200px; }
  .curieuse { top: 160px; left: 140px; }
  .prudente { top: 220px; left: 100px; }
  .paresse { bottom: 100px; left: 80px; }
  .parano { bottom: 70px; left: 120px; }
  .sur-architecte { top: 220px; right: 100px; }
}

/* Specific styling for each company */
.stat-card--microsoft {
  --card-accent: #00BCF2;
}

.stat-card--google {
  --card-accent: #4285F4;
}

.stat-card--sme {
  --card-accent: #10B981;
}

.stat-card--microsoft::before {
  background: linear-gradient(90deg, #00BCF2, var(--primary-color));
}

.stat-card--google::before {
  background: linear-gradient(90deg, #4285F4, var(--primary-color));
}

.stat-card--sme::before {
  background: linear-gradient(90deg, #10B981, var(--primary-color));
}

/* Animation for numbers */
.stat-card__number {
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Staggered animation for cards */
.stat-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.stat-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.stat-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
  }
  
  .stat-card {
    padding: var(--spacing-xl);
  }
  
  .stat-card__number {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0;
  }
  
  .stat-card {
    padding: var(--spacing-lg);
    margin: 0 var(--spacing-sm);
  }
  
  .stat-card__icon {
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: var(--spacing-md);
  }
  
  .stat-card__number {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
  }
  
  .stat-card__label {
    font-size: var(--small-font-size);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card__number,
  .stat-card__icon {
    animation: none !important;
    transition: none !important;
  }
  
  .stat-card:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .stat-card {
    border: 2px solid var(--dark-color);
  }
  
  .stat-card__number {
    color: var(--dark-color);
    -webkit-text-fill-color: var(--dark-color);
  }
  
  .stat-card__label {
    color: var(--dark-color);
  }
}