/* ------------------------------------------------------ */
/*                 PALETTE FITBLOOM STUDIO                */
/* ------------------------------------------------------ */
:root {
  --fbs-noir: #000000;
  --fbs-rose-fonce: #c48a8a;
  --fbs-rose-clair: #eedbd1;
  --fbs-rose-pale: #f2d5c8;
  --fbs-taupe-rose: #d9c0b8;
  --fbs-glow: rgba(196, 138, 138, 0.45);
}

/* ------------------------------------------------------ */
/*                         RESET                           */
/* ------------------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--fbs-noir);
  background-image: url("./black.jpg");
  background-size: cover;
  background-repeat: repeat;
  background-attachment: fixed;

  color: white;
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------ */
/*                      PAGE ACCUEIL                       */
/* ------------------------------------------------------ */
.fbs-header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.fbs-logo-container {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px var(--fbs-glow));
}

.fbs-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fbs-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--fbs-rose-pale);
  letter-spacing: 0.5px;
}

.fbs-title p {
  margin-top: 0.3rem;
  color: var(--fbs-taupe-rose);
  font-size: 0.95rem;
}

.fbs-welcome {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--fbs-rose-clair);
}

.fbs-welcome span {
  font-size: 1.2rem;
  color: var(--fbs-rose-pale);
}

/* BOUTONS ACCUEIL */
.fbs-main {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fbs-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem 1.4rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  text-align: center;
  box-shadow: 0 0 18px var(--fbs-glow);
  cursor: pointer;
  transition: 0.2s ease;
}

.fbs-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 26px var(--fbs-glow);
}

.fbs-btn .icon {
  font-size: 1.3rem;
}

.fbs-btn .label {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.3rem;
  color: var(--fbs-rose-pale);
}

.fbs-btn .sub {
  font-size: 0.85rem;
  margin-top: 0.1rem;
  color: var(--fbs-taupe-rose);
}

.fbs-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  background: none;
  border: none;
  color: var(--fbs-rose-clair);
  font-size: 0.9rem;
  cursor: pointer;
}

.reset-details {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--fbs-taupe-rose);
  opacity: 0.6;
}

.reset-summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
}

.reset-summary::-webkit-details-marker {
  display: none;
}

/* ------------------------------------------------------ */
/*                 PAGE FOOD (WEEKLY PLANNER)             */
/* ------------------------------------------------------ */
.page-food {
  padding: 1.5rem;
  min-height: 100vh;
  color: var(--fbs-rose-pale);
}

/* -------- Header -------- */
.sub-header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 1.5rem;
  top: 2rem;
  text-decoration: none;
  font-size: 1rem;
  color: var(--fbs-rose-clair);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--fbs-rose-clair);
  transition: 0.2s;
}

.back-btn:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
}

.sub-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px var(--fbs-glow));
}

.sub-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--fbs-rose-pale);
}

.sub-subtitle {
  font-size: 0.9rem;
  color: var(--fbs-taupe-rose);
  margin-top: 0.3rem;
}

/* -------- WEEK LAYOUT -------- */
.food-week {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.food-day {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  box-shadow: 0 0 18px var(--fbs-glow);
  text-align: center;
}

.food-day h2 {
  color: var(--fbs-rose-pale);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

/* -------- Text inside each day -------- */
.food-meal-title {
  color: var(--fbs-rose-clair);
  font-size: 1.1rem;
  margin-top: 0.8rem;
  text-align: center;
}

.food-meal-text {
  color: #fff;
  margin-top: 0.2rem;
  font-size: 1rem;
  text-align: center;
}

/* -------- Jus option -------- */
.jus-toggle {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--fbs-taupe-rose);
}

.jus-toggle input {
  margin-right: 6px;
}

/* ---------------------------- */
/* POPUP RECETTE PREMIUM FBS   */
/* ---------------------------- */

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 9999;
}

.modal-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--fbs-rose-clair);
  padding: 2rem 1.6rem;
  border-radius: 30px;
  width: 100%;
  max-width: 420px;
  color: var(--fbs-rose-pale);
  text-align: center;
  box-shadow: 0 0 30px var(--fbs-glow);
  backdrop-filter: blur(6px);
  position: relative;
  /* Essential for absolute children like favorites heart */
}

/* GROCERY LIST STYLING */
.grocery-aisle-header {
  color: var(--fbs-rose-suave);
  background: rgba(255, 255, 255, 0.05);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--fbs-rose-vif);
}

.grocery-item {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.grocery-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.grocery-check {
  accent-color: var(--fbs-rose-vif);
  cursor: pointer;
  width: 1.1em;
  height: 1.1em;
}

.modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--fbs-rose-pale);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-cal {
  color: var(--fbs-taupe-rose);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.view-recipe {
  margin-top: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.2px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.view-recipe:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
}

/* BOUTON LISTE DE COURSES */
.grocery-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.4rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  text-align: center;
  box-shadow: 0 0 18px var(--fbs-glow);
  cursor: pointer;
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* POPUP */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--fbs-rose-clair);
  border-radius: 30px;
  padding: 2rem;
  width: 85%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 0 25px var(--fbs-glow);
}

.popup-content h2 {
  color: var(--fbs-rose-pale);
  margin-bottom: 1rem;
}

#grocery-list li {
  color: var(--fbs-rose-clair);
  margin: 0.4rem 0;
  font-size: 1rem;
}

.close-btn {
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  border: 1.5px solid var(--fbs-rose-clair);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fbs-rose-pale);
  cursor: pointer;
}

/* ------------------------- */
/* JUS DE LA SEMAINE PREMIUM */
/* ------------------------- */

.weekly-juice {
  margin-top: 1rem;
  margin-bottom: 1.8rem;
}

.juice-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.8rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  text-align: center;
  box-shadow: 0 0 28px var(--fbs-glow);
}

.juice-card h2 {
  color: var(--fbs-rose-pale);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.juice-name {
  font-size: 1.2rem;
  margin-top: 0.4rem;
  color: var(--fbs-rose-clair);
}

.juice-cal {
  font-size: 0.95rem;
  margin-top: 0.2rem;
  color: var(--fbs-taupe-rose);
}

.see-btn {
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.2px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  cursor: pointer;
  transition: 0.2s;
}

.see-btn:hover {
  transform: scale(1.04);
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
}

/* FAVORIS & PANIER */
.fav-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  transition: 0.2s;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.fav-btn.active {
  color: #ff4b4b;
  transform: scale(1.1);
}

.add-list-btn {
  margin-top: 1.5rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  padding: 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}

.add-list-btn:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
}

/* My Favorites Filter */
.filter-fav {
  text-align: center;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--fbs-taupe-rose);
  text-decoration: underline;
}

/* ------------------------------------------------------ */
/*                 PAGE FITNESS                           */
/* ------------------------------------------------------ */

.page-fitness {
  color: var(--fbs-rose-pale);
  /* Uniformisation de la couleur du texte */
  padding: 2rem;
}

/* HEADER */
.sub-header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
}

/* Logo ajusté pour être plus petit et cohérent */
.sub-logo {
  width: 80px;
  /* Ajuste la taille ici */
  height: 80px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px var(--fbs-glow));
}

.sub-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fbs-rose-pale);
  /* Couleur uniforme du texte */
}

.sub-subtitle {
  font-size: 1rem;
  color: var(--fbs-rose-pale);
  /* Couleur uniforme du texte */
  margin-top: 0.3rem;
}

/* SESSION DU JOUR */
.session {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 40px;
  margin-bottom: 2rem;
  box-shadow: 0 0 18px var(--fbs-glow);
  text-align: center;
}

.session-title {
  color: var(--fbs-rose-pale);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.session-duration {
  color: var(--fbs-rose-clair);
  font-size: 1.1rem;
}

/* BUTTON "VOIR MA SÉANCE" */
.main-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem 1.4rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 18px var(--fbs-glow);
  cursor: pointer;
  transition: 0.2s ease;
}

.main-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 26px var(--fbs-glow);
}

.main-btn:active {
  transform: scale(1);
}

.main-btn:focus {
  outline: none;
}

/* GRID SEMAINE */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.day-bubble {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 0 18px var(--fbs-glow);
  color: var(--fbs-rose-pale);
}

.day-bubble strong {
  font-size: 1.2rem;
  color: var(--fbs-rose-pale);
}

.day-bubble span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* MODAL */
.modal-content {
  background-color: var(--fbs-noir);
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  color: var(--fbs-rose-pale);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  /* Assure que les éléments s'alignent correctement */
}

.modal-close {
  padding: 0.8rem 1.5rem;
  margin-top: auto;
  /* Force le bouton à se placer en bas de la modal */
  background-color: var(--fbs-rose-clair);
  color: #1a1a1a;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
  align-self: center;
  /* Centre le bouton */
  position: static;
  /* Reset position absolute from other pages */
}

.modal-close:hover {
  background-color: var(--fbs-rose-pale);
}


/* EXERCICES */
.exercice p {
  margin: 0;
  color: var(--fbs-rose-pale);
}

/* -------------------------------- */
/*         PAGE SELFCARE            */
/* -------------------------------- */

.page-selfcare {
  color: var(--fbs-rose-pale);
  padding: 2rem;
}

/* HEADER */
.sub-header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.sub-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px var(--fbs-glow));
}

.sub-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fbs-rose-pale);
  /* Couleur du texte uniformisée */
}

.sub-subtitle {
  font-size: 1rem;
  color: var(--fbs-rose-pale);
  /* Couleur du texte uniformisée */
  margin-top: 0.3rem;
}

/* SECTION */
.sc-section {
  margin-bottom: 2rem;
}

.sc-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fbs-rose-pale);
  text-align: center;
  margin-bottom: 1rem;
}

.sc-section #rituel {
  text-align: center;
  font-size: 1.2rem;
  color: var(--fbs-rose-clair);
  margin-top: 1rem;
}

/* EMOTIONS */
.emotion-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.emotion-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.4rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  text-align: center;
  box-shadow: 0 0 18px var(--fbs-glow);
  cursor: pointer;
  transition: 0.3s ease;
}

.emotion-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 26px var(--fbs-glow);
}

.emotion-btn:active {
  transform: scale(1);
}

.emotion-btn:focus {
  outline: none;
}

#emotion-save-msg {
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
  color: var(--fbs-rose-pale);
}

/* HABIT TRACKER */
.habits-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.habit-item {
  font-size: 1.1rem;
  color: var(--fbs-rose-pale);
}

.habit input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* TODO LIST */
.todo-add {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

#todo-input {
  width: 70%;
  padding: 0.8rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}

.todo-add-btn {
  background: var(--fbs-rose-pale);
  color: #1a1a1a;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  border: 1.5px solid var(--fbs-rose-clair);
  cursor: pointer;
  transition: 0.3s ease;
}

.todo-add-btn:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
}

.todos-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* COMPLÉMENTS */
/* COMPLÉMENTS */
.complements-tabs-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  white-space: nowrap;
}

.complements-tabs-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.tab-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fbs-rose-clair);
  color: var(--fbs-rose-pale);
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.tab-pill.active,
.tab-pill:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
  box-shadow: 0 0 10px var(--fbs-glow);
}

.complements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.season-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--fbs-rose-clair);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 400;
}

.complement-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--fbs-rose-clair);
  box-shadow: 0 0 18px var(--fbs-glow);
  text-align: center;
  transition: transform 0.3s;
}

.complement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--fbs-glow);
}

/* RECAP HEBDO */
.weekly-recap {
  font-size: 1.1rem;
  color: var(--fbs-rose-pale);
  text-align: center;
}

/* BOUTON RETOUR */
.sub-header .back-btn {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  text-decoration: none;
  font-size: 1rem;
  color: var(--fbs-rose-clair);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--fbs-rose-clair);
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-header .back-btn:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
}

/* ------------------------------------------------------ */
/*                 PAGE TRACKERS                          */
/* ------------------------------------------------------ */

.page-trackers {
  color: var(--fbs-rose-pale);
  padding: 2rem;
}

/* HEADER */
.sub-header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.sub-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fbs-rose-pale);
  /* Couleur du texte uniformisée */
}

.sub-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px var(--fbs-glow));
}

/* TABLEAU */
.tracking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
}

.tracking-table th,
.tracking-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--fbs-rose-clair);
}

.tracking-table th {
  background-color: var(--fbs-rose-pale);
  color: #1a1a1a;
  font-size: 1.1rem;
}

.tracking-table td {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--fbs-rose-pale);
}

.tracking-table input {
  background: transparent;
  border: none;
  color: white;
  text-align: center;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
}

.tracking-table input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}



/* SECTION */
.sc-section {
  margin-bottom: 2rem;
}

.sc-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fbs-rose-pale);
  text-align: center;
}

/* SECTION DU JEÛNE INTERMITTENT */
.intermittent-fasting-section {
  margin-top: 2rem;
  color: var(--fbs-rose-pale);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  box-shadow: 0 0 18px var(--fbs-glow);
}

#fasting-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#fasting-table th,
#fasting-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--fbs-rose-clair);
}

#fasting-table th {
  background-color: var(--fbs-rose-pale);
  color: #1a1a1a;
  font-size: 1.1rem;
}

#fasting-table td {
  color: #fff;
}

#fasting-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------ */
/*                 MEDIA QUERIES (MOBILE)                 */
/* ------------------------------------------------------ */

@media (max-width: 768px) {

  /* GLOBAL MOBILE */
  body {
    background-attachment: scroll;
  }

  /* HEADER MOBILE - Stacked layout to avoid overlap */
  .sub-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    gap: 1rem;
  }

  .sub-header .back-btn {
    position: static;
    /* Remove absolute positioning */
    align-self: flex-start;
    /* Align to the left */
    margin-bottom: 0px;
    margin-left: 0;
    /* Align flush with content padding */
  }

  .sub-logo {
    margin: 0;
    width: 80px;
    height: 80px;
  }

  /* UNIFORM PAGE PADDING ON MOBILE */
  .page-fitness,
  .page-food,
  .page-selfcare,
  .page-trackers {
    padding: 1rem;
    padding-bottom: 3rem;
  }

  .page-fitness .sub-title {
    font-size: 1.6rem;
    margin-top: 0.5rem;
  }

  .page-fitness .session {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .page-fitness .session-title {
    font-size: 1.4rem;
  }

  /* GRID SEMAINE -> WRAPPING GRID (2 columns) */
  .page-fitness .week-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow-x: visible;
    padding-bottom: 1rem;
  }

  /* Make the last item (Sunday) take full width if needed, or just let it float */
  .page-fitness .week-grid .day-bubble:last-child {
    grid-column: span 2;
  }

  .page-fitness .day-bubble {
    /* Reset flex/scroll styles */
    flex: unset;
    min-height: auto;
    width: auto;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* PAGE SELFCARE - STACK COMPLEMENTS */
  .complements-container {
    grid-template-columns: 1fr;
  }

  /* PAGE TRACKERS - COMPACT TABLES */
  .page-trackers .tracking-table th,
  .page-trackers .tracking-table td {
    padding: 0.25rem;
    font-size: 0.65rem;
    white-space: normal;
    /* Let headers wrap */
  }

  /* Reduce input size in tables */
  .page-trackers .tracking-table input {
    font-size: 0.7rem;
    padding: 0.2rem;
    width: 100%;
    min-width: 0;
    /* Allow shrinking */
    text-align: center;
  }

  /* Make sure the "Mensurations" button doesn't overflow */
}

/* ------------------------------------------------------ */
/*                 MODULE RESPIRATION                     */
/* ------------------------------------------------------ */
.breathing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  position: relative;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fbs-rose-pale) 0%, rgba(242, 213, 200, 0) 70%);
  border: 2px solid var(--fbs-rose-clair);
  box-shadow: 0 0 30px var(--fbs-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
  position: relative;
}

/* Texte au centre */
.breathing-circle span {
  position: absolute;
  color: #1a1a1a;
  font-weight: bold;
  font-size: 1.1rem;
  pointer-events: none;
}

/* Animation active */
.breathing-circle.active {
  animation: breathe 10s infinite ease-in-out;
  /* 10s = 5s inspire (grandit) + 5s expire (rétrécit) -> Rythme lent et apaisant */
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
    background-color: var(--fbs-rose-fonce);
  }

  50% {
    transform: scale(2);
    /* Grandit */
    opacity: 1;
    background-color: var(--fbs-rose-pale);
  }
}

.breathing-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* ------------------------------------------------------ */
/*                 FOOD V2 (SWAP & LISTE)                 */
/* ------------------------------------------------------ */

/* FIX FOOD HEADER CENTERING */
.meal-header {
  display: flex;
  justify-content: center;
  /* Center content */
  align-items: center;
  position: relative;
  /* For absolute positioning of button if needed */
  margin-bottom: 0.2rem;
}

.food-meal-title {
  color: var(--fbs-rose-clair);
  font-size: 1.1rem;
  text-align: center;
  flex: 1;
  /* Take full width to center text properly */
}

/* Make sure the swap button doesn't push the title */
.swap-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
  opacity: 0.7;
  position: absolute;
  right: 0;
  /* Align to right */
}

.swap-btn:hover {
  transform: rotate(180deg) scale(1.1);
  opacity: 1;
}

.grocery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grocery-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--fbs-rose-fonce);
}

/* ------------------------------------------------------ */
/*                 PAGE INTRO (ONBOARDING)                */
/* ------------------------------------------------------ */
/* Note: Le body hérite du style global (noir) */

.intro-card {
  background: rgba(255, 255, 255, 0.05);
  /* Modifié pour match le thème */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--fbs-rose-clair);
  border-radius: 30px;
  padding: 40px 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 30px var(--fbs-glow);
  position: relative;
  overflow: hidden;
  margin: auto;
  /* Centrage */
  margin-top: 10vh;
}

.step-container {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.step-container.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-card h1 {
  font-family: 'Playfair Display', serif;
  color: var(--fbs-rose-pale);
  margin-bottom: 10px;
  font-size: 2rem;
}

p.subtitle {
  font-size: 1rem;
  color: var(--fbs-taupe-rose);
  margin-bottom: 30px;
  font-weight: 300;
}

input[type="text"] {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--fbs-rose-clair);
  background: rgba(255, 255, 255, 0.1);
  font-family: 'Inter', sans-serif;
  /* Uniformisation font */
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 20px;
  color: white;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--fbs-rose-pale);
  box-shadow: 0 0 10px var(--fbs-glow);
}

.btn-next {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fbs-rose-pale);
  border: 1.5px solid var(--fbs-rose-clair);
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 15px var(--fbs-glow);
  transition: transform 0.2s, background 0.3s, color 0.3s;
  font-family: 'Inter', sans-serif;
  margin-top: 10px;
  font-weight: 600;
}

.btn-next:hover {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
  transform: scale(1.03);
}

.btn-next:active {
  transform: scale(0.95);
}

/* Goal Selection */
.goals-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.goal-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s;
}

.goal-card strong {
  color: var(--fbs-rose-pale);
}

.goal-card.selected {
  border-color: var(--fbs-rose-clair);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--fbs-glow);
}

.goal-icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
  display: block;
}

/* Intolerance Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.tag-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  color: var(--fbs-taupe-rose);
}

.tag-pill.selected {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
  box-shadow: 0 0 10px var(--fbs-glow);
}

/* Progress Dots */
.progress-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}


/* FOOTER FIXES */
.fbs-footer {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 2rem;
  width: 100%;
}

.footer-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fbs-rose-suave);
  color: var(--fbs-rose-pale);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
  width: fit-content;
}

/* TRACKER BUTTON FIX */
#add-entry {
  margin-top: 2rem !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* -----------------------------------------------------------
   FIX V9: FINAL HARMONIZATION
   ----------------------------------------------------------- */

/* 1. FORCE OVAL BUTTONS (PILL SHAPE) */
.see-btn,
.main-btn,
.footer-link,
.action-btn,
.intro-btn,
button.see-btn,
button.main-btn,
.fbs-btn {
  border-radius: 50px !important;
  padding: 10px 24px !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
  cursor: pointer;
  display: inline-block;
}

/* 2. FOOTER ALIGNMENT FIX */
.fbs-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem;
  padding: 2rem 1rem;
  width: 100%;
}

.footer-link {
  margin: 0 !important;
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--fbs-rose-pale) !important;
  color: var(--fbs-rose-vif);
  text-decoration: none;
  width: auto !important;
}

/* 3. FITNESS BUTTON CENTERING */
#check-session-btn {
  display: block !important;
  margin: 1.5rem auto !important;
  width: fit-content !important;
}

/* -----------------------------------------------------------
   FIX V9.4: FITNESS BUTTONS ALIGNMENT
   ----------------------------------------------------------- */
.session-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem !important;
  /* Space between buttons */
  margin-top: 1.5rem !important;
  flex-wrap: wrap;
  /* Safe wrapping on small screens */
}

/* -----------------------------------------------------------
   FIX V9.6: ULTIMATE INPUT TRANSPARENCY
   ----------------------------------------------------------- */

/* Targeted by ID for Max Specificity */
#user-name,
#user-age,
#user-height,
#user-weight {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: white !important;
  border: 1px solid rgba(255, 219, 209, 0.5) !important;
  border-radius: 50px !important;
  padding: 12px 20px !important;
  font-size: 1.1rem !important;
  text-align: center;
  box-shadow: none !important;
  width: 80% !important;
  /* Force width */
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#user-name::placeholder,
#user-age::placeholder,
#user-height::placeholder,
#user-weight::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* AUTOFILL HACK - Prevents white background on Chrome/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
  /* Dark background match */
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* -----------------------------------------------------------
   FIX V9.8: MAIN MENU CONTOURS
   ----------------------------------------------------------- */
/* Force visible border on the 3 big universe buttons */
.fbs-btn {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  /* Lighter, more visible border */
  background: rgba(255, 255, 255, 0.08) !important;
  /* Slightly more visible background */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fbs-btn:hover {
  border-color: var(--fbs-rose-vif) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

/* -----------------------------------------------------------
   FIX V9.9: ROSE BORDERS FOR MAIN MENU
   ----------------------------------------------------------- */
.fbs-btn {
  /* Match exactly the other buttons */
  border: 1px solid var(--fbs-rose-pale) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fbs-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 20px var(--fbs-glow);
}

/* ACTIONS SESSION BUTTONS */
.session-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* -------------------------------- */
/*         FITNESS V1 (New)         */
/* -------------------------------- */

.day-bubble.active-day {
  background: var(--fbs-rose-clair);
  color: #1a1a1a !important;
  transform: scale(1.05);
  border-color: var(--fbs-rose-pale);
  box-shadow: 0 0 25px var(--fbs-glow);
}

.day-bubble.active-day span,
.day-bubble.active-day strong {
  color: #1a1a1a !important;
}

.day-bubble.rest-day {
  opacity: 0.6;
}

.day-bubble:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Modal Exercises List */
.exo-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 15px;
  margin-bottom: 0.8rem;
  text-align: left;
}

.exo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.exo-name {
  font-weight: 700;
  color: var(--fbs-rose-clair);
  font-size: 1.1rem;
}

.exo-rounds {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--fbs-taupe-rose);
}

.exo-reps {
  font-size: 0.95rem;
  color: #ddd;
}

.exo-reps strong {
  color: #fff;
}

/* -------------------------------- */
/*       SELFCARE V1 (New)          */
/* -------------------------------- */

/* MOOD HISTORY */
.mood-history-container {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 20px;
}

.mood-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100px;
  margin-top: 1rem;
  gap: 5px;
}

.mood-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.mood-bar {
  width: 12px;
  background: var(--fbs-rose-clair);
  border-radius: 5px;
  transition: height 0.5s ease;
  min-height: 5px;
}

.mood-day {
  font-size: 0.7rem;
  margin-top: 5px;
  color: var(--fbs-taupe-rose);
}

/* HABITS DYNAMIC */
.habits-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.habit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  transition: 0.2s;
}

.habit-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  font-size: 1rem;
}

.delete-habit-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 5px;
}

.delete-habit-btn:hover {
  color: #ff4b4b;
}

.add-habit-box {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}

.add-habit-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.6rem 1rem;
  color: white;
}

.add-habit-box button {
  background: var(--fbs-rose-pale);
  color: #1a1a1a;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* JOURNALING */
.journal-area {
  margin-top: 1rem;
}

.journal-area textarea {
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--fbs-rose-clair);
  border-radius: 20px;
  padding: 1rem;
  color: white;
  font-family: inherit;
  margin-bottom: 0.8rem;
}

.fbs-btn-small {
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.fbs-btn-small:hover {
  background: white;
}

/* FOOD IMAGES V4 */
/* FOOD TEXT ONLY V5 */
.food-card-content {
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  text-align: center;
  margin-bottom: 0.2rem;
  /* Reduced margin */
}

.food-img-preview {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .food-card-content {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .food-img-preview {
    width: 100%;
    height: 120px;
    margin-bottom: 0.5rem;
  }
}

/* GAMIFICATION V2 (BLOOM 2.0) */
.bloom-card {
  /* Transparent design - No white box */
  background: transparent;
  border-radius: 30px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2rem;
  border: none;
  box-shadow: none;
  /* Removed box shadows and blur */
  position: relative;
  overflow: visible;
  /* Allow aura to spill out */
}

/* Magic Aura Background */
/* .bloom-card::before removed as per user feedback */

.bloom-visual {
  width: 110px;
  height: 110px;
  /* background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 70%); removed as per user request */
  border-radius: 50%;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px var(--fbs-glow);
  position: relative;
  z-index: 2;
}

.bloom-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  animation: float-plant 6s ease-in-out infinite;
}

/* Pulse effect when high score */
.bloom-img.pulse {
  animation: float-plant 6s ease-in-out infinite, glow-pulse 3s infinite alternate;
}

@keyframes float-plant {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes glow-pulse {
  0% {
    filter: drop-shadow(0 5px 15px rgba(255, 215, 185, 0.4));
  }

  100% {
    filter: drop-shadow(0 5px 25px rgba(255, 215, 185, 0.8));
  }
}



.bloom-info {
  flex: 1;
}

.bloom-info h3 {
  margin: 0 0 10px 0;
  color: var(--fbs-rose-clair);
  font-size: 1.2rem;
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4);
  transition: width 1s ease-out;
}

.bloom-status {
  font-size: 0.8rem;
  color: #ccc;
  font-style: italic;
}

/* ====================================================== */
/*          PATCH FINAL : FORCE DESIGN (NO PHOTO)         */
/* ====================================================== */

/* 1. CACHER STRICTEMENT LES IMAGES */
.food-card-content img,
.food-img-preview {
  display: none !important;
}

/* 2. FORCER L'ALIGNEMENT CENTRÉ */
.food-card-content {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.2rem !important;
}

/* 3. CENTRER LE TEXTE */
.food-meal-text {
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Ajustement pour que le bloc texte prenne toute la largeur */
.food-card-content>div {
  width: 100% !important;
  text-align: center !important;
}

/* Fitness Images */
/* Fitness Images - Compact Row Design (V2) */
.exo-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #333;
}

.exo-img-container {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.exo-instruction-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Container in Row */
.exo-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.exo-name {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.exo-rounds {
  background: var(--fbs-rose-wood);
  /* Darker rose */
  color: var(--fbs-rose-suave);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.exo-reps {
  color: #aaa;
  font-size: 0.9rem;
}

/* ====================================================== */
/*          MOBILE RESPONSIVENESS (V1)                    */
/* ====================================================== */
@media (max-width: 768px) {

  /* --- GLOBAL --- */
  body {
    overflow-x: hidden;
  }

  .fbs-header {
    padding: 1.5rem 1rem 0.5rem;
  }

  .fbs-logo-container {
    width: 80px;
    height: 80px;
  }

  .fbs-title h1 {
    font-size: 1.8rem;
  }

  .fbs-welcome {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  /* --- INTRO INPUTS --- */
  #user-name,
  #user-age,
  #user-height,
  #user-weight {
    width: 90% !important;
    font-size: 1rem !important;
  }

  /* --- FOOD MODULE --- */
  .page-food {
    padding: 1rem 0.8rem;
  }

  .food-card-content {
    width: 100% !important;
    padding: 1rem 0.5rem !important;
  }

  .food-meal-title {
    font-size: 1rem;
  }

  .see-btn {
    width: 100%;
    /* Full width button */
    padding: 12px;
  }

  /* --- FITNESS MODULE --- */
  /* Allow bubbles to wrap */
  /* SCROLLABLE WEEK GRID */
  .week-grid {
    display: flex;
    flex-wrap: nowrap !important;
    /* No wrapping */
    overflow-x: auto;
    /* Horizontal Scroll */
    justify-content: flex-start !important;
    /* Start align */
    gap: 10px !important;
    padding-bottom: 10px;
    /* Space for scrollbar/touch */
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
    margin-bottom: 1rem;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
  }

  .week-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
  }

  .day-bubble {
    flex: 0 0 auto;
    /* Don't shrink */
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 2px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Session Card overlap fix */
  .session {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 2rem 1.2rem;
    /* More padding inside card */
  }

  .session-title {
    font-size: 1.4rem;
  }

  /* Action buttons stack */
  .session-actions {
    flex-direction: column;
    gap: 1rem !important;
    width: 100%;
    margin-top: 1.5rem !important;
  }

  .action-btn,
  .fbs-btn,
  .main-btn {
    width: 100% !important;
    max-width: 320px;
  }

  /* --- SELFCARE MODULE --- */
  /* Charts */
  .mood-chart {
    height: 80px;
    /* Smaller height */
    gap: 2px;
  }

  .mood-bar {
    width: 8px;
    /* Thinner bars */
  }

  /* Habits */
  .habit-item {
    flex-direction: row;
    /* Keep row but tighter */
    padding: 0.6rem 0.8rem;
  }

  .habit-label {
    font-size: 0.9rem;
  }

  /* Complements Grid */
  .complements-list {
    grid-template-columns: 1fr 1fr;
    /* 2 cols is fine, maybe 1 if really small? */
    gap: 10px;
  }

  .comp-card {
    padding: 0.8rem;
  }

  .comp-icon {
    font-size: 1.5rem;
  }

  /* --- MODALS --- */
  .modal-content {
    width: 90%;
    padding: 1.5rem 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .fbs-btn {
    width: 100%;
  }
}

/* FIX BLOOMING TRANSPARENCY */
.bloom-img {
  mix-blend-mode: screen;
  /* Makes black background transparent */
  border-radius: 50%;
  /* Optional */
}

/* FOOTER BUTTONS */
.footer-btn-trackers {
  border: 1px solid var(--fbs-rose-clair);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  color: var(--fbs-rose-pale);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  box-shadow: 0 0 10px var(--fbs-glow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-btn-trackers:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px var(--fbs-glow);
}

.footer-btn-install {
  display: none;
  /* JS handles visibility */
  background: var(--fbs-rose-clair);
  color: #1a1a1a;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 15px var(--fbs-glow);
  transition: transform 0.2s;
}

.footer-btn-install:hover {
  transform: scale(1.05);
}

.footer-btn-reset {
  background: none;
  border: none;
  color: var(--fbs-taupe-rose);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-btn-reset:hover {
  opacity: 1;
}

/* TODO LIST MODERN STYLING */
.todo-container-legacy {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.todo-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.todo-input-modern {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
}

.todo-add-btn-modern {
  background: var(--fbs-rose-vif);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-item-modern {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: 0.2s;
}

.todo-item-modern.done {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.02);
}

.todo-text-modern {
  flex: 1;
  margin-left: 10px;
  color: var(--fbs-rose-clair);
}

.todo-item-modern.done .todo-text-modern {
  text-decoration: line-through;
}

.todo-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1.1rem;
}

/* DAILY TRACKER DASHBOARD */
.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tracker-card {
  margin-bottom: 1.5rem;
}

.tracker-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.tracker-card .card-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.tracker-card h3 {
  font-size: 1.1rem;
  color: var(--fbs-rose-pale);
  font-weight: 600;
  margin: 0;
}

/* FASTING */
.fasting-status {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.fasting-timer {
  font-size: 2.5rem;
  font-family: 'Outfit', sans-serif;
  color: var(--fbs-rose-clair);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.fasting-meta {
  color: var(--fbs-taupe-rose);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* WATER */
.water-body {
  text-align: center;
}

.water-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.water-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fbs-rose-clair);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-btn:active {
  transform: scale(0.9);
  background: var(--fbs-rose-clair);
  color: #000;
}

.water-display {
  display: flex;
  flex-direction: column;
}

#water-count {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
}

.water-unit {
  font-size: 0.9rem;
  color: var(--fbs-taupe-rose);
}

.water-bar-bg {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.water-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
  transition: width 0.3s ease;
}

.water-goal {
  font-size: 0.9rem;
  color: var(--fbs-taupe-rose);
}

/* STEPS */
.steps-body {
  text-align: center;
}

.steps-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1rem;
}

.steps-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem;
  border-radius: 12px;
  width: 100px;
  text-align: center;
  font-size: 1.1rem;
}

.steps-save-btn {
  background: var(--fbs-rose-vif, #c48a8a);
  border: none;
  color: white;
  padding: 0 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}

.steps-progress-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.steps-ring {
  transform: rotate(-90deg);
}

.steps-ring-fill {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
  stroke: var(--fbs-rose-clair);
}

.steps-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}

#steps-display {
  font-size: 1.5rem;
  font-weight: bold;
}

.steps-goal {
  font-size: 0.9rem;
  color: var(--fbs-taupe-rose);
}