/* LES PROBLÈMES */
.problems-section {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 0 65px;
  box-sizing: border-box;
  background: #F7F7F5;
}

.problems-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1402px;
  min-height: 563px;
  padding: 10px 96px 0;
  margin: 0 auto;
  gap: 10px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.problems-section .section-title {
  color: #0F1A13;
  text-align: center;
  font-family: 'Arvo', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 42px;
}

.problems-section .section-subtitle {
  color: #555555;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 22.5px;
}

.problems-grid {
  display: flex;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: nowrap;
  width: 100%;
}

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 295px;
  height: 366px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #FFF;
  box-sizing: border-box;
  flex-shrink: 0;
}

.problem-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  padding: 10.5px 9.5px 9.5px 10.5px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 10px;
  background: #E9F5FF;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.problem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.problem-title {
  width: 245px;
  color: #1A4870;
  text-align: center;
  font-family: 'Arvo', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 12px;
}

.problem-text {
  width: 245px;
  color: #666666;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 23.1px;
}

/* Indicateurs puces (masqués par défaut) */
.problems-dots {
  display: none;
}

@media (max-width: 1200px) {
  .problems-section .container {
    padding: 10px 48px 0;
  }
}

@media (max-width: 1024px) {
  .problems-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .problem-card {
    width: calc(50% - 6px);
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .problems-section {
    padding: 0 0 40px;
  }

  .problems-section .container {
    padding: 10px 20px 0;
    min-height: 0;
  }

  .problems-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    width: 100%;
    margin-top: 24px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .problems-grid::-webkit-scrollbar {
    display: none;
  }

  .problems-section .section-title {
    font-size: 22px;
    line-height: 28px;
  }

  .problems-section .section-subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  .problem-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    height: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .problem-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
  }

  .problem-title {
    font-size: 19px;
    line-height: 24px;
    margin-bottom: 10px;
    width: 100%;
  }

  .problem-text {
    font-size: 14px;
    line-height: 21px;
    width: 100%;
  }

  .problems-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
  }

  .problems-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 26, 46, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .problems-dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: #1A4870;
  }
}

@media (max-width: 360px) {
  .problems-section .section-title {
    font-size: 19px;
    line-height: 24px;
  }

  .problem-card {
    padding: 18px 14px;
  }

  .problem-title {
    font-size: 16px;
  }

  .problem-text {
    font-size: 13px;
  }
}