/* ==========================================================================
   SECTION CAGNOTTE SOLIDAIRE (Mobile First < 768px)
   ========================================================================== */
.cagnotte {
  position: relative;
  width: 100%;
  margin-top: 2.5rem; /* Réserve l'espace supérieur pour le débordement du cœur */
  padding-block: 3.25rem 7.5rem;
  background-color: var(--color-secondary);
}

/* Illustrations décoratives */
.cagnotte__decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.cagnotte__decor--heart {
  top: -2rem;
  right: 1rem;
  width: 5.5rem;
}

.cagnotte__decor--tree {
  bottom: 0;
  left: 0.75rem;
  width: 8.5rem;
}

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

/* En-tête de section */
.cagnotte__header {
  width: 100%;
  gap: 0.75rem;
}

.cagnotte__title {
  line-height: 1.3;
}

.cagnotte__title .text-accent {
  color: var(--color-accent, #78d1df);
}

/* Bloc compteur */
.cagnotte__score-block {
  margin-top: 2.25rem;
}

.cagnotte__kicker {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.cagnotte__amount {
  margin: 0.75rem 0 1rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3.75rem; /* 60px mobile -> 100px laptop/desktop */
  line-height: 0.9;
}

.cagnotte__caption {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

/* Jauge de progression (0 à 500 €) */
.cagnotte__gauge {
  width: 100%;
  max-width: 45.0625rem; /* 721px exacts Figma */
  margin-top: 2.25rem;
  display: none;
}

.cagnotte__progress-track {
  width: 100%;
  height: 1rem; /* 16px exacts Figma */
  background-color: var(--color-white);
  border-radius: 50px;
  overflow: hidden;
}

.cagnotte__progress-fill {
  height: 100%;
  background-color: var(--color-quaternary, #a32b26);
  border-radius: 50px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cagnotte__gauge-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.125rem;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.2;
}

.cagnotte__gauge-min,
.cagnotte__gauge-max {
  white-space: nowrap;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVE (Mobile First)
   ========================================================================== */

/* 1. Tablet : >= 768px */
@media (min-width: 768px) {
  .cagnotte {
    margin-top: 3rem;
    padding-block: 3.5rem 6rem;
  }

  .cagnotte__decor--heart {
    top: -2.75rem;
    right: 2rem;
    width: 9rem;
  }

  .cagnotte__decor--tree {
    left: 1rem;
    width: 11.5rem;
  }

  .cagnotte__kicker,
  .cagnotte__caption {
    font-size: 1.125rem;
  }

  .cagnotte__amount {
    font-size: 4.75rem; /* 76px */
  }

  .cagnotte__gauge {
    margin-top: 2.75rem;
  }

  .cagnotte__gauge-labels {
    font-size: 1rem;
    margin-top: 1.375rem;
  }
}

/* 2. Tablette paysage : >= 1024px */
@media (min-width: 1024px) {
  .cagnotte {
    margin-top: 3.25rem;
    padding-block: 3.75rem 5rem;
  }

  .cagnotte__decor--heart {
    top: -3rem;
    right: 3%;
    width: 12rem;
  }

  .cagnotte__decor--tree {
    left: 1.25%;
    width: 14.5rem;
  }

  .cagnotte__score-block {
    margin-top: 2.75rem;
  }

  .cagnotte__kicker,
  .cagnotte__caption {
    font-size: 1.25rem; /* 20px exacts Figma */
  }

  .cagnotte__amount {
    margin: 1.25rem 0 1.5rem;
    font-size: 5.5rem; /* 88px */
  }

  .cagnotte__gauge {
    margin-top: 3.25rem;
  }

  .cagnotte__gauge-labels {
    font-size: 1.125rem;
  }
}

/* 3. Desktop : >= 1280px */
@media (min-width: 1280px) {
  .cagnotte {
    margin-top: 3.5rem;
    padding: 5rem 4.5rem 6rem 4.5rem;
  }

  .cagnotte__decor--heart {
    top: -3.25rem;
    right: 3.5%;
    width: 14.5rem;
  }

  .cagnotte__decor--tree {
    left: 1.5%;
    width: 17.5rem;
  }

  .cagnotte__amount {
    font-size: 5.875rem; /* 94px */
  }

  .cagnotte__gauge-labels {
    font-size: 1.25rem; /* 20px exacts Figma */
    margin-top: 1.75rem;
  }

  /* Centrage optique des bornes 0 € et Objectif sous les extrémités de la jauge */
  .cagnotte__gauge-min {
    transform: translateX(-35%);
  }

  .cagnotte__gauge-max {
    transform: translateX(42%);
  }
}

/* 4. Laptop : >= 1440px */
@media (min-width: 1440px) {
  .cagnotte__decor--heart {
    top: -3.5rem;
    right: 4%;
    width: 16.5rem;
  }

  .cagnotte__decor--tree {
    width: 20.5rem;
  }

  .cagnotte__amount {
    margin: 1.5rem 0 2rem;
    font-size: 6.25rem; /* 100px exacts Figma */
    line-height: 0.84; /* 84px exacts Figma */
  }

  .cagnotte__gauge {
    margin-top: 3.6875rem; /* 59px exacts Figma */
  }
}

/* 5. Large desktop : >= 1680px */
@media (min-width: 1680px) {
  .cagnotte {
    margin-top: 3.75rem; /* 60px de débordement du cœur Figma */
    padding-block: 3.1875rem 4.375rem; /* 51px top / 70px bottom exacts Figma */
  }

  .cagnotte__decor--heart {
    top: -3.75rem;
    right: 5.15%;
    width: 18.875rem; /* 302px exacts Figma */
  }

  .cagnotte__decor--tree {
    left: 1.46%;
    width: 24rem; /* 384px exacts Figma */
  }
}

/* 6. Full desktop : >= 1920px */
@media (min-width: 1920px) {
  .cagnotte__title {
    font-size: 3.3125rem; /* 53px exacts Figma */
    line-height: 4.375rem; /* 70px exacts Figma */
  }

  .cagnotte__decor--heart {
    right: 6.1875rem; /* 99px exacts Figma */
  }

  .cagnotte__decor--tree {
    left: 1.75rem; /* 28px exacts Figma */
  }
}
