/* === SECTION POURQUOI MAINAURA === */
.why-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff, #f9fafb, #ffffff);
  overflow: hidden;
}

[data-theme='dark'] .why-section {
  background: linear-gradient(
    to bottom,
    var(--color-bg),
    #0f1419,
    var(--color-bg)
  );
}

/* === BACKGROUND DECORATIONS === */
.why-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.why-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: linear-gradient(45deg, #0170a8 1px, transparent 1px),
    linear-gradient(-45deg, #19b8d8 1px, transparent 1px);
  background-size: 40px 40px;
}

[data-theme='dark'] .why-pattern {
  opacity: 0.05;
}

.why-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
}

.why-blob-1 {
  top: 25%;
  left: 0;
  background: linear-gradient(
    to right,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
}

.why-blob-2 {
  bottom: 25%;
  right: 0;
  background: linear-gradient(
    to left,
    rgba(25, 184, 216, 0.1),
    rgba(1, 112, 168, 0.1)
  );
}

/* === CONTAINER === */
.why-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* === HEADER === */
.why-header {
  text-align: center;
  margin-bottom: 4rem;
}

.why-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(
    to right,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
  border: 1px solid rgba(1, 112, 168, 0.2);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

[data-theme='dark'] .why-badge-wrapper {
  background: linear-gradient(
    to right,
    rgba(1, 112, 168, 0.2),
    rgba(25, 184, 216, 0.2)
  );
}

.why-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  border-radius: 50%;
}

.why-badge-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #0170a8;
}

[data-theme='dark'] .why-badge-text {
  color: #19b8d8;
}

.why-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

[data-theme='dark'] .why-header h2 {
  color: #ffffff;
}

.why-header h2 span {
  background: linear-gradient(to right, #0170a8, #19b8d8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-header p {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto;
}

[data-theme='dark'] .why-header p {
  color: #9ca3af;
}

/* === REASONS GRID === */
.why-reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .why-reasons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-reason-card {
  position: relative;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] .why-reason-card {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(75, 85, 99, 0.5);
}

.why-reason-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 112, 168, 0.5);
  box-shadow: 0 20px 25px -5px rgba(1, 112, 168, 0.1);
}

[data-theme='dark'] .why-reason-card:hover {
  border-color: rgba(25, 184, 216, 0.5);
  box-shadow: 0 20px 25px -5px rgba(25, 184, 216, 0.1);
}

.reason-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(1, 112, 168, 0),
    rgba(25, 184, 216, 0)
  );
  border-radius: 1.5rem;
  transition: all 0.5s ease;
}

.why-reason-card:hover .reason-glow {
  background: linear-gradient(
    to bottom right,
    rgba(1, 112, 168, 0.05),
    rgba(25, 184, 216, 0.05)
  );
}

.reason-icon-wrapper {
  position: relative;
  display: inline-flex;
  margin-bottom: 1rem;
}

.reason-icon-bg {
  position: relative;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    to bottom right,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.why-reason-card:hover .reason-icon-bg {
  transform: scale(1.1);
  background: linear-gradient(
    to bottom right,
    rgba(1, 112, 168, 0.2),
    rgba(25, 184, 216, 0.2)
  );
}

.reason-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  color: #0170a8;
  z-index: 10;
}

[data-theme='dark'] .reason-icon {
  color: #19b8d8;
}

.why-reason-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

[data-theme='dark'] .why-reason-card h3 {
  color: #ffffff;
}

.why-reason-card:hover h3 {
  color: #0170a8;
}

[data-theme='dark'] .why-reason-card:hover h3 {
  color: #19b8d8;
}

.why-reason-card p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  position: relative;
}

[data-theme='dark'] .why-reason-card p {
  color: #9ca3af;
}

.reason-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.why-reason-card:hover .reason-underline {
  width: 75%;
}

/* === STATS GRID === */
.why-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 6rem;
}

@media (min-width: 768px) {
  .why-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-stat-card:hover {
  transform: translateY(-8px);
}

.stat-gradient-1 {
  background: linear-gradient(to bottom right, #0170a8, #0170a8, #19b8d8);
  box-shadow: 0 10px 15px -3px rgba(1, 112, 168, 0.3);
}

.stat-gradient-1:hover {
  box-shadow: 0 20px 25px -5px rgba(1, 112, 168, 0.4);
}

.stat-gradient-2 {
  background: linear-gradient(to bottom right, #19b8d8, #19b8d8, #0170a8);
  box-shadow: 0 10px 15px -3px rgba(25, 184, 216, 0.3);
}

.stat-gradient-2:hover {
  box-shadow: 0 20px 25px -5px rgba(25, 184, 216, 0.4);
}

.stat-gradient-3 {
  background: linear-gradient(to bottom right, #0170a8, #19b8d8, #0170a8);
  box-shadow: 0 10px 15px -3px rgba(1, 112, 168, 0.3);
}

.stat-gradient-3:hover {
  box-shadow: 0 20px 25px -5px rgba(1, 112, 168, 0.4);
}

.stat-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.5s ease;
}

.why-stat-card:hover .stat-bg-overlay {
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
}

.stat-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.why-stat-card:hover .stat-shine {
  transform: translateX(100%);
}

.stat-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 2rem;
  height: 2rem;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.why-stat-card:hover .stat-number {
  transform: scale(1.1);
}

.stat-label-why {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up-delayed {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.fade-up-card {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeUpScale 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .why-reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .why-section {
    padding: 4rem 0;
  }

  .why-container {
    padding: 0 1rem;
  }

  .why-reasons-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .why-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-header h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .why-reason-card {
    padding: 1.25rem;
  }

  .why-stat-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .reason-icon-bg {
    width: 3rem;
    height: 3rem;
  }

  .reason-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .why-reason-card h3 {
    font-size: 1rem;
  }

  .why-reason-card p {
    font-size: 0.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label-why {
    font-size: 0.875rem;
  }
}
