/* ============================================================
   Onglets Prévision / Tableau de bord / Conseil — design 2026
   ============================================================ */

/* Barre d'onglets : lisible et scrollable dès la tablette */
.fpc-tabbar-nav {
  min-width: 0;
}
.tabbar-btn {
  flex: 0 0 auto;
}
.tabbar-btn .bi { font-size: 13px; }

@media (max-width: 1199.98px) {
  .fpc-tabbar-nav {
    order: 4 !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .fpc-tabbar-nav::-webkit-scrollbar { height: 4px; }
  .fpc-tabbar-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
}

/* En-tête d'onglet */
.tab-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2px 0 14px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--border);
}
.tab-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 clamp(16px, 2vw, 20px) 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.tab-heading h2 .bi {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-size: 17px;
}
.tab-heading p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 70ch;
}
.tab-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tab-env-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tab-env-badge:empty { display: none; }
.tab-body { min-height: 180px; }

/* Panneaux génériques */
.fp-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
  min-width: 0;
}
.fp-panel + .fp-panel { margin-top: 14px; }
.fp-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.fp-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--text-main);
}
.fp-panel-head p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}
.fp-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0284c7;
}

/* Hero météo / score */
.fp-dash-hero,
.fp-advice-hero {
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(2, 132, 199, 0.10) 0%, transparent 58%),
    radial-gradient(120% 180% at 0% 100%, rgba(16, 185, 129, 0.07) 0%, transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
  border-color: #dbeafe;
  overflow: hidden;
}
.fp-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.fp-hero-copy { flex: 1 1 280px; min-width: 0; }
.fp-hero-title {
  margin: 5px 0 4px;
  font-size: clamp(20px, 2.6vw, 29px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-main);
}
.fp-hero-summary {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-sub);
}
.fp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
}
.fp-chip .bi { color: #0284c7; font-size: 10px; }
.fp-hero-score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fp-score-dial { width: 126px; height: 126px; }

/* Meilleure fenêtre */
.fp-best-window {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #a7f3d0;
}
.fp-best-window.is-empty { background: #f8fafc; border-color: var(--border); }
.fp-best-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 17px;
}
.fp-best-window.is-empty .fp-best-icon { border-color: var(--border); color: var(--text-muted); }
.fp-best-copy { flex: 1 1 auto; min-width: 0; }
.fp-best-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #047857;
}
.fp-best-window.is-empty .fp-best-title { color: var(--text-muted); }
.fp-best-time { font-size: 13px; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.fp-best-window.is-empty .fp-best-time { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.fp-best-score {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #047857;
  white-space: nowrap;
}
.fp-best-score small { font-size: 10px; color: var(--text-muted); font-weight: 700; }

/* KPI */
.fp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.fp-kpi { padding: 12px 13px; }
.fp-kpi .kpi-value { font-size: 22px; }
.fp-kpi .kpi-sub { font-size: 11px; min-height: 28px; }
.fp-kpi .kpi-icon-wrap { width: 27px; height: 27px; font-size: 13px; }

/* Deux colonnes */
.fp-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.fp-two-col > .fp-panel + .fp-panel { margin-top: 0; }

/* Sécurité */
.fp-safety {
  border-radius: 13px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.fp-safety.is-ok { background: #ecfdf5; border-color: #a7f3d0; }
.fp-safety.is-watch { background: #fffbeb; border-color: #fde68a; }
.fp-safety.is-danger { background: #fef2f2; border-color: #fecaca; }
.fp-safety-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--text-main);
}
.fp-safety.is-ok .fp-safety-head { color: #047857; }
.fp-safety.is-watch .fp-safety-head { color: #b45309; }
.fp-safety.is-danger .fp-safety-head { color: #b91c1c; }
.fp-safety ul { margin: 7px 0 0; padding-left: 18px; }
.fp-safety li { font-size: 11.5px; line-height: 1.45; color: var(--text-sub); margin-bottom: 3px; }
.fp-safety p { margin: 6px 0 0; font-size: 11.5px; color: var(--text-sub); }
.fp-safety-note { margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(100, 116, 139, 0.25); font-size: 10px; color: var(--text-muted); }

/* Classement des techniques */
.fp-rank { display: flex; flex-direction: column; gap: 7px; }
.fp-rank-row {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(70px, 1.6fr) 34px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f8fafc;
  color: var(--text-sub);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fp-rank-row:hover { background: #ffffff; border-color: #cbd5e1; }
.fp-rank-row.is-current { background: #f0f9ff; border-color: #7dd3fc; }
.fp-rank-label { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-rank-bar { height: 7px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.fp-rank-bar > span { display: block; height: 100%; border-radius: 99px; min-width: 2px; }
.fp-rank-score { font-size: 12px; font-weight: 900; text-align: right; color: var(--text-main); }

/* Recommandations & zones proches */
.fp-reco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.fp-reco li { display: flex; gap: 8px; align-items: flex-start; font-size: 11.8px; line-height: 1.45; color: var(--text-sub); }
.fp-reco li .bi { color: #059669; font-size: 13px; margin-top: 1px; flex: 0 0 auto; }
.fp-nearby { display: flex; flex-direction: column; gap: 6px; }
.fp-nearby-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(80px, 0.8fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fp-nearby-row:hover { background: #f0f9ff; border-color: #7dd3fc; }
.fp-nearby-name { font-size: 11.5px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-nearby-meta { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Réglementation */
.fp-reg-list { display: flex; flex-direction: column; gap: 7px; }
.fp-reg-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 2fr);
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fffdf7;
  border: 1px solid #fde68a;
}
.fp-reg-row > span {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
  line-height: 1.35;
}
.fp-reg-row > p { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--text-sub); }

/* Prévision journalière */
.fp-forecast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.fp-forecast-best {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 10.5px;
  font-weight: 700;
}
.fp-daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.fp-day-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 8px 9px;
  text-align: center;
  cursor: pointer;
  color: var(--text-main);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fp-day-card:hover { transform: translateY(-2px); border-color: #7dd3fc; box-shadow: 0 6px 14px rgba(2, 132, 199, 0.08); }
.fp-day-card.is-active { background: linear-gradient(180deg, #f0f9ff, #ffffff); border-color: #0284c7; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12); }
.fp-day-card.is-good .fp-day-score { box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(5, 150, 105, 0.25); }
.fp-day-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.fp-day-name { font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.fp-day-score {
  min-width: 25px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}
.fp-day-icon { display: block; font-size: 25px; margin: 5px 0 1px; color: #0284c7; }
.fp-day-temp { font-size: 17px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-main); }
.fp-day-temp small { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.fp-day-meta { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.fp-day-meta .bi { color: #0284c7; font-size: 9px; }
.fp-day-best {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed #e2e8f0;
  font-size: 9.5px;
  font-weight: 700;
  color: #0369a1;
}

/* Détail horaire */
.fp-hour-panel { padding-bottom: 14px; }
.fp-sun-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.fp-sun-row .bi { color: #f59e0b; }
.fp-hour-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.fp-hour-strip::-webkit-scrollbar { height: 5px; }
.fp-hour-strip::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.fp-hour-card {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
  padding: 8px 6px;
  text-align: center;
}
.fp-hour-card.is-good { background: #f0fdf4; border-color: #86efac; }
.fp-hour-time { font-size: 10px; font-weight: 900; color: var(--text-muted); }
.fp-hour-icon { display: block; font-size: 19px; margin: 3px 0; color: #0284c7; }
.fp-hour-val { font-size: 14px; font-weight: 900; color: var(--text-main); }
.fp-hour-sub { font-size: 9.5px; color: var(--text-muted); margin-top: 2px; }
.fp-hour-sub .bi { font-size: 8.5px; color: #0284c7; }
.fp-hour-score { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.fp-mini-bar { flex: 1; height: 5px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.fp-mini-bar > span { display: block; height: 100%; border-radius: 99px; min-width: 2px; }
.fp-hour-score b { font-size: 10px; color: var(--text-main); min-width: 16px; text-align: right; }

/* Conseil : plan d'action, sources, IA */
.fp-advice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}
.fp-advice-main { min-width: 0; }
.fp-advice-side { min-width: 0; }
.fp-advice-side .fp-panel + .fp-panel { margin-top: 12px; }
.fp-warning-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fp-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11.5px;
  line-height: 1.4;
}
.fp-warning .bi { margin-top: 1px; flex: 0 0 auto; }
.fp-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.fp-action {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f8fafc;
}
.fp-action-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 14px;
}
.fp-action-title { font-size: 11.5px; font-weight: 900; color: var(--text-main); line-height: 1.25; }
.fp-action p { margin: 3px 0 0; font-size: 11px; line-height: 1.45; color: var(--text-sub); }

.fp-sources-panel { background: linear-gradient(180deg, #ffffff, #f8fbff); }
.fp-web-state {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10.5px;
}
.fp-web-state.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.fp-web-state.is-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.fp-source-list { display: flex; flex-direction: column; gap: 6px; }
.fp-source-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fp-source-link:hover { background: #f0f9ff; border-color: #7dd3fc; color: var(--text-main); text-decoration: none; }
.fp-source-link > .bi { color: #0284c7; font-size: 13px; margin-top: 1px; flex: 0 0 auto; }
.fp-source-link b { display: block; font-size: 11px; line-height: 1.35; font-weight: 800; }
.fp-source-link small { display: block; font-size: 9.5px; color: var(--text-muted); margin-top: 1px; }

.fp-context { display: flex; flex-direction: column; gap: 5px; }
.fp-context-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.fp-context-row:last-child { border-bottom: 0; }
.fp-context-row span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.fp-context-row strong { font-size: 11.5px; font-weight: 800; color: var(--text-main); text-align: right; }

.fp-ai-panel { background: linear-gradient(155deg, #faf5ff 0%, #ffffff 58%, #f5f3ff 100%); border-color: #e9d5ff; }
.fp-ai-panel .fp-panel-head h3 .bi { color: #7c3aed; }
.fp-ai-answer {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e9d5ff;
  font-size: 11.8px;
  line-height: 1.5;
  color: var(--text-sub);
}
.fp-ai-answer strong { color: var(--text-main); }
.fp-ai-answer .ia-gap { height: 5px; }
.fp-ai-answer .ia-li { padding-left: 2px; }
.fp-ai-model { margin-top: 7px; font-size: 9.5px; color: #7c3aed; font-weight: 700; }

.fp-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-muted);
}
.fp-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}
.fp-note .bi { color: #0284c7; flex: 0 0 auto; }

/* Barre d'outils du lieu persistant */
.place-hero-main { flex: 1 1 320px; min-width: 0; }
.place-hero-tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.place-tool { min-width: 0; }
.place-tool-label {
  display: block;
  margin-bottom: 3px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.place-tool-label .bi { color: #0284c7; }
#global-technique {
  min-width: 155px;
  max-width: 220px;
  height: 34px;
  padding: 4px 9px;
  font-size: 12px;
}
.place-refresh-btn { height: 34px; }
.place-hero-meta { line-height: 1.35; }

/* Responsive tablette / mobile */
@media (max-width: 991.98px) {
  .fp-advice-layout { grid-template-columns: minmax(0, 1fr); }
  .fp-two-col { grid-template-columns: minmax(0, 1fr); }
  .fp-advice-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  .fp-advice-side .fp-panel + .fp-panel { margin-top: 0; }
}

@media (max-width: 767.98px) {
  .tab-heading { align-items: flex-start; }
  .tab-heading h2 { font-size: 19px; }
  .tab-heading-actions { width: 100%; }
  .fp-hero-top { gap: 12px; }
  .fp-hero-score { flex-direction: row; width: 100%; justify-content: flex-start; }
  .fp-score-dial { width: 106px; height: 106px; }
  .fp-score-dial .score-num { font-size: 31px; }
  .fp-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .fp-action-grid { grid-template-columns: minmax(0, 1fr); }
  .fp-advice-side { grid-template-columns: minmax(0, 1fr); }
  .place-hero-tools { width: 100%; justify-content: flex-start; }
  .place-tool { flex: 1 1 140px; }
  #global-technique { width: 100%; max-width: none; }
  .fp-day-card { padding: 9px 7px; }
  .fp-day-icon { font-size: 22px; }
  .fp-day-temp { font-size: 15px; }
  .fp-hour-strip { grid-auto-columns: 78px; }
  .fp-rank-row { grid-template-columns: minmax(80px, 1fr) minmax(55px, 1fr) 30px; }
}

@media (max-width: 575.98px) {
  .fp-panel { padding: 14px; border-radius: 15px; }
  .fp-hero-title { font-size: 21px; }
  .fp-hero-summary { font-size: 12px; }
  .fp-best-window { align-items: flex-start; }
  .fp-best-score { margin-left: auto; }
  .fp-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-kpi .kpi-value { font-size: 19px; }
  .fp-kpi .kpi-sub { min-height: 0; }
  .fp-daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-reg-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fp-nearby-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fp-nearby-meta { display: none; }
  .fp-sun-row { width: 100%; }
  .tab-heading h2 .bi { width: 32px; height: 32px; font-size: 15px; }
  .tabbar-btn { padding: 6px 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-day-card, .fp-hour-card, .fp-source-link, .fp-nearby-row, .fp-rank-row, .tabbar-btn { transition: none; }
  .app-tab { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Chargement : barre globale, voile carte et squelette des zones      */
/* ------------------------------------------------------------------ */
.global-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 2000;
  overflow: hidden;
  background: rgba(14, 165, 233, .14);
  pointer-events: none;
}
.global-progress span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb, #0ea5e9);
  animation: fsp-progress 1.15s ease-in-out infinite;
}
@keyframes fsp-progress {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}

body.is-searching .fpc-btn[disabled] { opacity: .65; cursor: progress; }

.bigmap-wrap { position: relative; }

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(248, 250, 252, .72);
  backdrop-filter: blur(2px);
}
.map-loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, .25);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  color: #334155;
}
.map-loading-card strong { display: block; font-size: 14px; color: #0f172a; }
.map-loading-card span { font-size: 12px; line-height: 1.35; }

.spots-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}
.spots-loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.spots-loading-head .spinner-border { width: 26px; height: 26px; flex: 0 0 auto; }
.spots-loading-head strong { display: block; font-size: 15px; color: #0f172a; }
.spots-loading-head span { font-size: 12.5px; color: #64748b; }
.spots-loading-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: #475569;
}
.spots-loading-steps span { display: inline-flex; align-items: center; gap: 6px; }
.spots-loading-steps .bi { color: #0ea5e9; }

.spots-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.spots-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
}
.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: fsp-shimmer 1.4s ease infinite;
}
.sk-title { height: 15px; width: 68%; }
.sk-line { height: 10px; width: 100%; }
.sk-line.short { width: 55%; }
.sk-pill { height: 22px; width: 90px; border-radius: 999px; margin-top: 4px; }
@keyframes fsp-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (max-width: 575.98px) {
  .spots-loading-head { align-items: flex-start; padding: 14px; }
  .spots-loading-steps { gap: 6px 12px; }
  .map-loading-card { max-width: 100%; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .global-progress span, .sk { animation: none; }
}
