/* =============================================
   Jauge de la piscine
   ============================================= */

.pool-gauge {
  background: transparent;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  text-align: center;
}

.pool-gauge__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.pool-gauge__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pool-gauge__icon svg {
  width: 28px;
  height: 28px;
}

.pool-gauge__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.pool-gauge__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pool-gauge__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 28px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pool-gauge__status-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pool-gauge__status-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pool-gauge__bar {
  width: 100%;
}

.pool-gauge__bar-track {
  position: relative;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.pool-gauge__bar-progress {
  height: 100%;
  border-radius: 999px;
  transition:
    width 0.8s ease,
    background-color 0.4s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.pool-gauge--closed .pool-gauge__status {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 26px;
}

.pool-gauge--error {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  text-align: center;
  padding: 18px 32px;
  font-weight: 700;
  font-size: 26px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

@media (max-width: 480px) {
  .pool-gauge {
    padding: 24px;
  }

  .pool-gauge__title {
    font-size: 18px;
  }

  .pool-gauge__status,
  .pool-gauge--closed .pool-gauge__status,
  .pool-gauge--error {
    font-size: 15px;
    padding: 10px 16px;
  }

  .pool-gauge__status-icon {
    width: 18px;
    height: 18px;
  }
}

.pool-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.pool-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pool-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.pool-section__title {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: "Poppins", sans-serif;
}

@media (max-width: 768px) {
  .pool-section__title {
    font-size: 26px;
  }

  .pool-section {
    padding: 60px 20px;
    min-height: 400px;
  }
}
