/* ==========================================================================
   BabiMams — components.css
   Boutons, cartes, badges, statistiques
   ========================================================================== */

/* ------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--blue  { background: var(--c-blue);  color: var(--c-white); }
.btn--blue:hover  { background: var(--c-blue-dark); color: var(--c-white); }

.btn--pink  { background: var(--c-pink);  color: var(--c-white); }
.btn--pink:hover  { background: var(--c-pink-dark); color: var(--c-white); }

.btn--amber { background: var(--c-amber); color: var(--c-navy); }
.btn--amber:hover { background: #d29642; color: var(--c-navy); }

/* --------------------------------------------------- Boutons app stores */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-row--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--c-navy);
  color: var(--c-white);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.store-btn:hover {
  background: var(--c-navy-dark);
  color: var(--c-white);
  text-decoration: none;
  transform: translateY(-2px);
}
.store-btn svg { flex-shrink: 0; }
.store-btn__sub {
  display: block;
  font-size: 11px;
  opacity: .85;
}
.store-btn__main {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* -------------------------------------------------------------- Badges */
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-pink-wash);
  color: var(--c-pink-dark);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .03em;
}
.badge--amber {
  background: rgba(224, 165, 82, .2);
  color: var(--c-amber);
}

/* ---------------------------------------------------------- Statistiques */
.stats {
  display: flex;
  gap: 28px;
}
.stats__divider {
  width: 1px;
  background: var(--border-pill);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.stat__label {
  display: block;
  color: var(--c-muted);
  font-size: var(--fs-2xs);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .stat__value { font-size: 40px; }
.stats-grid .stat__label {
  color: var(--c-text);
  font-size: var(--fs-xs);
}

.is-blue  { color: var(--c-blue); }
.is-pink  { color: var(--c-pink); }
.is-green { color: var(--c-green); }
.is-amber { color: var(--c-amber); }

/* -------------------------------------------------- Cartes fonctionnalités */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--c-cream);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.feature__icon--blue  { background: var(--c-blue-tint); }
.feature__icon--pink  { background: var(--c-pink-wash); }
.feature__icon--green { background: var(--c-green-wash); }
.feature__icon--amber { background: var(--c-amber-wash); }

.feature__title {
  margin-bottom: 8px;
  font-size: var(--fs-h3);
}
.feature__text {
  color: var(--c-text);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ------------------------------------------------ Cartes semaine (fruits) */
.week-scroller {
  display: flex;
  gap: 20px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.week-card {
  flex: 1 0 260px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.week-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.week-card__media {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.week-card__week {
  margin-top: 16px;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.week-card__size {
  color: var(--c-navy);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* --------------------------------------------------------- Liste à puces */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--c-on-dark-str);
  font-size: var(--fs-sm);
}
.checklist svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------- Pastilles ville */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.city-list li {
  padding: 10px 20px;
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-navy);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stats-grid .stat__value { font-size: 34px; }
  .store-row    { justify-content: center; }
  .store-btn    { flex: 1 1 160px; padding: 10px 16px; }
  .week-card    { flex: 1 0 200px; }
}

@media (max-width: 480px) {
  .week-card { flex: 1 0 78vw; }
}
