/* ============================================
   PAGES — coquille de l'app et mises en page propres
   à chaque écran (cadre du téléphone, calendrier, anneau
   de cycle, schéma des phases, superpositions onboarding/story)
   ============================================ */

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 380px;
  max-width: 100%;
  height: 780px;
  max-height: 92vh;
  border-radius: 46px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(49,41,31,0.45);
  overflow: hidden;
}
.phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notch {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: var(--ink);
  border-radius: 20px;
  z-index: 10;
}
.screen {
  flex: 1;
  overflow-y: auto;
  padding: 32px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 8px 24px;
  background: rgba(251,247,242,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--cream-dark);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 56px;
  color: var(--ink-muted);
}
.nav-btn.active { color: var(--ink); }
.nav-btn span { font-size: 10px; font-weight: 400; }
.nav-btn.active span { font-weight: 600; }

/* ---------- Weekly progress ---------- */
.week-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 72px; }
.week-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.week-bar-track { width: 100%; border-radius: 999px; background: var(--cream-dark); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.week-bar-fill { width: 100%; border-radius: 999px; transition: height 0.5s ease; }
.week-bar-col span { font-size: 11px; color: var(--ink-muted); margin-top: 8px; }
.week-bar-col.today span { color: var(--ink); font-weight: 600; }

/* ---------- Calendar ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 8px; }
.cal-weekday { text-align: center; font-size: 12px; color: var(--ink-muted); }
.cal-day-btn { display: flex; align-items: center; justify-content: center; }
.cal-day {
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 12px; color: var(--ink-soft);
}
.cal-day.selected { color: var(--white); font-weight: 600; }
.cal-day.today { border: 2px solid; }
.cal-dot { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 999px; }

/* ---------- Phase ring (élément signature de l'écran Aujourd'hui) ---------- */
.phase-ring-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 220px; height: 220px; margin: 0 auto; }
.phase-ring-center { position: absolute; display: flex; flex-direction: column; align-items: center; }
.phase-ring-day { font-family: var(--serif); font-size: 34px; color: var(--ink); line-height: 1; }

/* ---------- Phase schema donut (écran Corps) ---------- */
.donut-wrap { display: flex; align-items: center; justify-content: center; margin: 12px 0; }
.donut {
  width: 176px; height: 176px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.donut-center {
  position: absolute; width: 108px; height: 108px; border-radius: 999px;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--serif); font-size: 13px; color: var(--ink-muted); padding: 0 8px;
}

/* ---------- Story / onboarding overlay ---------- */
.overlay {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; border-radius: 36px;
}
.overlay-top { display: flex; align-items: center; justify-content: space-between; padding: 32px 20px 0; }
.overlay-dots { display: flex; gap: 6px; }
.overlay-dot { height: 6px; border-radius: 999px; transition: width 0.3s ease; }
.overlay-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; gap: 20px; }
.overlay-icon { display: flex; align-items: center; justify-content: center; border-radius: 999px; width: 60px; height: 60px; }
.overlay-card { width: 100%; border-radius: 24px; padding: 24px; text-align: center; background: var(--white); box-shadow: 0 16px 40px -20px rgba(49,41,31,0.25); }
.overlay-card p.title { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.35; margin: 0 0 14px; }
.overlay-card p.text { font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.overlay-footer { padding: 0 24px 32px; }
