/* ============================================================
   Fishing Zones — Skin "Communauté"
   Chargé APRÈS style.css et weather-tabs.css.
   Objectif : aligner la page Carte & Réglementation sur le
   design de community.html (bleu marine / blanc / rouge,
   cartes arrondies, typographie Inter) sans toucher à app.js.
   ============================================================ */

:root {
  --cyan: #1e3a8a;
  --cyan-bright: #1d4ed8;
  --cyan-glow: rgba(30, 58, 138, 0.14);
  --blue-sky: #1e40af;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-active: #1e3a8a;
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --fz-navy-950: #172554;
  --fz-navy-900: #1e3a8a;
  --fz-navy-800: #1e40af;
  --fz-navy-700: #1d4ed8;
  --fz-red: #dc2626;
  --fz-slate-50: #f8fafc;
  --fz-slate-100: #f1f5f9;
  --fz-slate-200: #e2e8f0;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 180px; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  background-image: none;
  color: #0f172a;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dbeafe; color: #172554; }

a { color: var(--fz-navy-800); }
a:hover { color: var(--fz-navy-900); }

.text-primary { color: var(--fz-navy-800) !important; }
.text-cyan { color: var(--fz-navy-800) !important; }
.bg-primary { background-color: var(--fz-navy-900) !important; }
.bg-primary-subtle { background-color: #eff6ff !important; }
.border-primary-subtle { border-color: #bfdbfe !important; }

/* Focus visible cohérent avec la communauté */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fz-navy-700) !important;
  outline-offset: 2px;
}

/* ---------- Barre de progression ---------- */
.global-progress { background: #e2e8f0; height: 3px; }
.global-progress span { background: linear-gradient(90deg, #1e3a8a, #dc2626); }

/* ---------- Header ---------- */
.fpc-navbar,
.fpc-header {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fpc-brand { gap: 12px; }
.fpc-brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fz-navy-900);
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
  color: #fff;
}
.fpc-brand h1 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.fpc-brand h1 .text-primary,
.fpc-brand h1 .text-primary.fw-extrabold { color: var(--fz-navy-800) !important; }
.fpc-brand small {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}

/* ---------- Navigation onglets ---------- */
.fpc-tabbar-nav {
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: transparent;
}
.tabbar-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  gap: 7px;
}
.tabbar-btn i { color: #64748b; font-size: 14px; }
.tabbar-btn:hover {
  background: #f1f5f9;
  border-color: transparent;
  color: #0f172a;
}
.tabbar-btn:hover i { color: var(--fz-navy-800); }
.tabbar-btn.active {
  background: var(--fz-navy-900);
  border-color: var(--fz-navy-900);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}
.tabbar-btn.active i { color: #fff !important; }

/* ---------- Recherche ---------- */
.search-wrap .form-control {
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 12px;
  height: 40px;
  font-size: 13.5px;
  color: #0f172a;
  padding-left: 38px;
}
.search-wrap .form-control:focus {
  background: #fff;
  border-color: var(--fz-navy-800);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.search-wrap .form-control::placeholder { color: #64748b; }
.search-icon-left { color: #64748b !important; }

.autocomplete {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  margin-top: 6px;
}
.autocomplete .item { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
.autocomplete .item:hover,
.autocomplete .item.active { background: #eff6ff; }
.autocomplete .item .name { color: #0f172a; font-weight: 700; }
.autocomplete .item .meta { color: #64748b; }

/* ---------- Boutons ---------- */
.fpc-btn,
.btn {
  font-family: 'Inter', sans-serif;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-weight: 600;
}
.fpc-btn:hover,
.btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }

.fpc-btn-primary,
.btn-primary {
  background: var(--fz-navy-900) !important;
  border-color: var(--fz-navy-900) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
}
.fpc-btn-primary:hover,
.btn-primary:hover {
  background: var(--fz-navy-950) !important;
  border-color: var(--fz-navy-950) !important;
}

.btn-outline-primary {
  color: var(--fz-navy-800) !important;
  border-color: #bfdbfe !important;
  background: #fff !important;
}
.btn-outline-primary:hover {
  background: #eff6ff !important;
  border-color: var(--fz-navy-700) !important;
  color: var(--fz-navy-900) !important;
}

.select-cockpit {
  border-radius: 12px;
  border-color: #e2e8f0;
  height: 38px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #334155;
}
.select-cockpit:focus {
  border-color: var(--fz-navy-800);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--fz-navy-800);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.input-group-text {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 12px 0 0 12px;
}

/* ---------- Cartes ---------- */
.fpc-main { padding: 20px 0 64px; }

.fpc-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  background: #fff;
}
.fpc-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fpc-card h2,
.fpc-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* ---------- Héro du lieu (bleu marine) ---------- */
.place-hero-card {
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(220, 38, 38, 0.28) 0%, rgba(220, 38, 38, 0) 42%),
    linear-gradient(120deg, #172554 0%, #1e3a8a 58%, #1e40af 100%);
  border: 1px solid rgba(30, 64, 175, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.place-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.place-hero-card .text-dark,
.place-hero-card .text-muted,
.place-hero-card .text-secondary,
.place-hero-card h1,
.place-hero-card #place-name { color: #fff !important; }
.place-hero-card .text-muted,
.place-hero-card .place-hero-meta { color: #c7d2fe !important; }
.place-hero-card .text-primary { color: #93c5fd !important; }

.place-hero-card .badge {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #e0e7ff !important;
  font-weight: 700;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 10px;
}
.place-coords-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0e7ff;
  border-radius: 8px;
  padding: 3px 8px;
}
.place-coords-badge:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.place-hero-card h1,
.place-hero-card #place-name {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.place-tool-label { color: #bfdbfe; font-weight: 700; }
.place-tool-label .bi { color: #93c5fd; }
.place-hero-card #place-spot-count { color: #fff !important; }

.place-hero-card .select-cockpit {
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  color: #0f172a;
}
.place-hero-card .select-cockpit:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}
.place-hero-card .fpc-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.place-hero-card .fpc-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.place-hero-card .fpc-btn .text-primary { color: #bfdbfe !important; }

/* ---------- Lien communauté ---------- */
.fz-community-link {
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.fz-community-link:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #172554;
  text-decoration: none;
}
.fz-community-link .bi { font-size: 14px; }
.fz-community-link--icon { padding: 8px 10px; }

/* ---------- Carte ---------- */
#bigmap-card { border-radius: 24px; }

/* La carte garde toujours une hauteur et un fond lisible, même si les
   tuiles mettent du temps à arriver : plus de grand bloc blanc. */
.bigmap-wrap {
  position: relative;
  min-height: 320px;
  background: #eef2f7;
}
#bigmap {
  position: relative;
  z-index: 1;
  min-height: 320px;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.07) 1px, transparent 0) 0 0 / 22px 22px,
    #eef2f7;
}
.bigmap-wrap::before {
  content: "Chargement de la carte…";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.bigmap-wrap:has(#bigmap.map-ready)::before { content: none; }

/* Message de secours si Leaflet ne peut pas être chargé. */
.bigmap-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: #334155;
  background: #f8fafc;
}
.bigmap-fallback .bi { font-size: 26px; color: #94a3b8; }
.bigmap-fallback strong { font-size: 15px; font-weight: 800; color: #0f172a; }
.bigmap-fallback span { font-size: 12.5px; color: #64748b; max-width: 320px; }
.bigmap-fallback .fpc-btn { margin-top: 8px; }

.bigmap-toolbar {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 16px;
}
.bigmap-toolbar h2,
.bigmap-toolbar h3 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.bigmap-toolbar .fpc-btn {
  border-radius: 10px;
  padding: 5px 10px !important;
  font-size: 11.5px;
  font-weight: 700;
}
.bigmap-toolbar .fpc-btn.text-primary { color: var(--fz-navy-800) !important; }
.bigmap-legend {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
}
.bigmap-legend .text-muted { color: #64748b !important; }

.map-loading-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* Légende / points Leaflet */
.spot-status-dot { width: 9px; height: 9px; }
.target-pulse-pin { background: var(--fz-navy-800); }
.target-pulse-pin {
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.35), 0 6px 14px rgba(0, 0, 0, 0.25);
  animation: targetPing 2s infinite cubic-bezier(0, 0, 0.2, 1);
}
@keyframes targetPing {
  0% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2); }
  70% { box-shadow: 0 0 0 12px rgba(30, 64, 175, 0), 0 4px 10px rgba(0, 0, 0, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0), 0 4px 10px rgba(0, 0, 0, 0.2); }
}

/* ---------- Filtres ---------- */
.spot-filter-bar > .text-muted {
  color: #64748b !important;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spot-status-btn,
.spot-type-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  min-height: 30px;
}
.spot-status-btn:hover,
.spot-type-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.spot-status-btn.active,
.spot-type-btn.active {
  background: var(--fz-navy-900);
  border-color: var(--fz-navy-900);
  color: #fff;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.22);
}
.btn-stat-allowed.active { background: #047857 !important; border-color: #047857 !important; }
.btn-stat-regulated.active { background: #b45309 !important; border-color: #b45309 !important; }
.btn-stat-forbidden.active { background: #b91c1c !important; border-color: #b91c1c !important; }
.btn-stat-legendary.active { background: #92400e !important; border-color: #92400e !important; }

#dept-regulation-banner {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  border-radius: 16px !important;
  color: #1e3a8a;
}
#dept-regulation-banner .text-muted,
#dept-regulation-banner .small.text-muted,
#dept-regulation-banner .text-secondary {
  color: #334155 !important;
}

/* ---------- Cartes des spots ---------- */
.spots-grid { gap: 16px; }

.spot-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 16px;
}
.spot-item-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}
.spot-item-card.is-legendary {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}
.spot-item-card.is-forbidden {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}
.spot-item-card.is-selected { border-color: #93c5fd; }
.spot-item-card.is-selected::after { background: var(--fz-navy-800); }
.spot-item-card.is-selected .spot-item-title { color: var(--fz-navy-900); }
.spot-item-card.is-selected .spot-item-dist {
  background: #dbeafe;
  color: var(--fz-navy-900);
}

.spot-item-title {
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.spot-item-dist {
  background: #eff6ff;
  color: var(--fz-navy-800);
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 8px;
}
.spot-item-type { color: #64748b; font-weight: 600; flex-wrap: wrap; row-gap: 5px; }
.spot-item-type > .ms-auto { margin-left: 0 !important; }
.spot-item-type .badge {
  border-radius: 999px;
  font-size: 9.5px !important;
  font-weight: 800;
  padding: 3px 8px;
}
.zone-kind-chip {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--fz-navy-900);
  font-weight: 800;
}
.species-tag {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
  border-radius: 8px;
  font-weight: 600;
}
.spot-meta-row { color: #64748b; }
.spot-meta-row strong { color: #0f172a; }

.spot-actions-bar { border-top: 1px solid #f1f5f9; padding-top: 10px; margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.spot-actions-bar .fpc-btn,
.spot-actions-bar .btn {
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
}

.spots-loading-card,
.spots-skeleton-card {
  border-radius: 18px;
  border-color: #e2e8f0;
}

/* ---------- Onglets (Tableau de bord / Prévision / Conseil) ---------- */
.tab-heading {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.tab-heading h2 {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.tab-heading h2 .bi { color: var(--fz-navy-800); }
.tab-heading p { color: #64748b; font-size: 12.5px; }

.tab-env-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--fz-navy-900);
  border-radius: 999px;
  font-weight: 700;
}

.fp-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fp-panel-head h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.fp-kicker { color: var(--fz-navy-800); }
.fp-chip {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
  font-weight: 700;
}
.fp-chip .bi { color: var(--fz-navy-800); }
.fp-dash-hero,
.fp-advice-hero {
  background:
    radial-gradient(110% 150% at 100% 0%, rgba(220, 38, 38, 0.22) 0%, rgba(220, 38, 38, 0) 45%),
    linear-gradient(120deg, #172554 0%, #1e3a8a 60%, #1e40af 100%);
  border-color: rgba(30, 64, 175, 0.5);
  color: #fff;
}
.fp-dash-hero .fp-hero-title,
.fp-advice-hero .fp-hero-title,
.fp-dash-hero .fp-hero-summary,
.fp-advice-hero .fp-hero-summary { color: #fff; }
.fp-dash-hero .fp-hero-summary,
.fp-advice-hero .fp-hero-summary { color: #c7d2fe; }
.fp-dash-hero .fp-chip,
.fp-advice-hero .fp-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #e0e7ff;
}
.fp-dash-hero .fp-chip .bi,
.fp-advice-hero .fp-chip .bi { color: #bfdbfe; }
.fp-dash-hero .kpi-card,
.fp-advice-hero .kpi-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.fp-dash-hero .kpi-value,
.fp-advice-hero .kpi-value { color: #fff; }
.fp-dash-hero .kpi-label,
.fp-advice-hero .kpi-label { color: #c7d2fe; }
.fp-dash-hero .kpi-sub,
.fp-advice-hero .kpi-sub { color: #c7d2fe; }
.fp-dash-hero .kpi-icon-wrap,
.fp-advice-hero .kpi-icon-wrap {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.fp-best-window {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.fp-best-title { color: #1e3a8a; }
.fp-best-icon { border-color: #bfdbfe; color: #1e3a8a; }

/* Le cadran garde un centre blanc : le score doit rester sombre */
.fp-dash-hero .score-dial .inner,
.fp-advice-hero .score-dial .inner,
.fp-dash-hero .score-num,
.fp-advice-hero .score-num,
.score-dial .score-num { color: #0f172a; }
.fp-dash-hero .score-denom,
.fp-advice-hero .score-denom { color: #64748b; }
.fp-dash-hero .score-dial .score-label,
.fp-advice-hero .score-dial .score-label { color: #334155; }

/* ---------- Modal fiche spot ---------- */
.cockpit-modal {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}
.cockpit-modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 18px 20px;
}
.cockpit-modal-header .badge {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e3a8a !important;
  font-weight: 700;
  border-radius: 999px;
}
.cockpit-modal-header .modal-title { font-weight: 900; letter-spacing: -0.02em; }
.cockpit-modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 12px 20px;
  gap: 8px;
}
.cockpit-modal .modal-body { padding: 20px; }

/* ---------- Assistant IA ---------- */
.ia-fab {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.4);
  border-radius: 999px;
}
.ia-fab:hover { box-shadow: 0 16px 34px rgba(30, 58, 138, 0.5); }
.ia-fab[aria-expanded="true"] { background: #0f172a; }
.ia-fab .bi { color: #bfdbfe; }

.ia-panel {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.ia-header {
  background: linear-gradient(120deg, #172554, #1e3a8a);
  color: #fff;
}
.ia-avatar {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 12px;
}
.ia-title { color: #fff; }
.ia-sub { color: #c7d2fe; }
.ia-close { color: #c7d2fe; }
.ia-close:hover { color: #fff; }
.ia-send {
  background: var(--fz-navy-900);
  border-radius: 12px;
}
.ia-send:hover { background: var(--fz-navy-950); }
.ia-form textarea { border-radius: 12px; }
.ia-suggestions button,
.ia-suggestion {
  border-radius: 999px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}
.ia-suggestions button:hover,
.ia-suggestion:hover { background: #dbeafe; }

/* ---------- Toasts ---------- */
.toast,
#toasts .toast {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

/* ---------- Pied de page éventuel ---------- */
.fpc-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

/* ---------- Header façon communauté ---------- */
.fpc-navbar {
  padding: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.fz-hdr-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.fz-hdr-main .fpc-brand { flex: 0 0 auto; }
.fz-hdr-main .fpc-brand h1 { white-space: nowrap; }

.fz-hdr-search {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 560px;
  margin: 0 auto;
}
.fz-hdr-search .search-wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
}

.fz-hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* Navigation du portail (2e ligne) */
.fz-site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
  scrollbar-width: none;
}
.fz-site-nav::-webkit-scrollbar { display: none; }
.fz-site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.fz-site-nav a i { font-size: 14px; color: #64748b; }
.fz-site-nav a:hover { background: #f1f5f9; color: #0f172a; }
.fz-site-nav a:hover i { color: var(--fz-navy-800); }
.fz-site-nav a.active {
  background: var(--fz-navy-900);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}
.fz-site-nav a.active i { color: #fff; }
.fz-site-nav a.is-contest {
  margin-left: auto;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.fz-site-nav a.is-contest i { color: #dc2626; }
.fz-site-nav a.is-contest:hover { background: #fee2e2; color: #991b1b; }
.fz-site-nav a.is-contest em {
  font-style: normal;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fz-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* Vues du module (3e ligne) */
.fz-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0 8px;
  border-top: 1px solid #f1f5f9;
}
.fz-tabs-label {
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.fz-tabs-label .bi { color: var(--fz-navy-800); font-size: 12px; }
.fz-tabs-row .fpc-tabbar-nav { flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.fz-tabs-row .fpc-tabbar-nav::-webkit-scrollbar { display: none; }

/* ---------- Footer ---------- */
.fz-footer {
  margin-top: 40px;
  padding: 22px 0 84px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
}
.fz-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
}
.fz-footer-inner strong { color: #0f172a; font-weight: 800; }
.fz-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.fz-footer-links a {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
}
.fz-footer-links a:hover { color: var(--fz-navy-900); text-decoration: underline; }

@media (min-width: 640px) {
  .fz-footer-inner { flex-direction: row; text-align: left; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .fz-tabs-row { border-top: 1px solid #f1f5f9; }
}

@media (max-width: 767.98px) {
  .fz-hdr-main { flex-wrap: wrap; gap: 10px; padding: 8px 0; }
  .fz-hdr-main .fpc-brand { order: 1; }
  .fz-hdr-actions { order: 2; }
  .fz-hdr-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .fz-tabs-row { padding: 4px 0 6px; }
  .fz-tabs-row .fpc-tabbar-nav { padding: 2px 0; }
  .fz-footer { margin-top: 28px; }
}

@media (max-width: 1199.98px) {
  .fpc-tabbar-nav {
    width: 100%;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
  }
  .fpc-tabbar-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 767.98px) {
  body { font-size: 14.5px; }
  .fpc-main { padding: 14px 0 48px; }
  .place-hero-card { border-radius: 20px; }
  .bigmap-toolbar { padding: 10px 12px; }
  .bigmap-toolbar .d-flex { width: 100%; justify-content: space-between; }
  .bigmap-legend { gap: 10px; font-size: 10.5px; padding: 8px 12px; }
  .spot-status-btn,
  .spot-type-btn { font-size: 11px; padding: 5px 10px; }
  .tab-heading { padding: 15px 16px; border-radius: 18px; }
  .tab-heading h2 { font-size: 17px; }

  /* Onglets du module : on passe sur deux lignes plutôt que de couper la barre */
  .fz-tabs-row { align-items: flex-start; }
  .fz-tabs-row .fpc-tabbar-nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px;
  }
  .fz-tabs-row .tabbar-btn { font-size: 11.5px; padding: 6px 10px; }

  /* Barre d'outils de la carte */
  .bigmap-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .bigmap-toolbar > .d-flex:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .bigmap-toolbar h2 { font-size: 14px; white-space: nowrap; }
  .bigmap-toolbar .input-group { max-width: none !important; flex: 1 1 150px; }

  /* Filtres spots : pleine largeur */
  #tab-zones .fpc-card .row > .col-md-auto { width: 100%; }
  #tab-zones .fpc-card .row > .col-md-auto.d-flex { flex-direction: column; }
  #tab-zones .fpc-card .row .input-group { width: 100% !important; }

  /* Héro : technique + compteur côte à côte, actualiser en dessous */
  .place-hero-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .place-hero-tools .place-tool { flex: none; min-width: 0; }
  .place-hero-tools .place-tool:first-child { grid-column: 1 / -1; }
  .place-hero-tools .place-refresh-btn {
    grid-column: 2;
    justify-self: end;
    justify-content: center;
  }
  .place-hero-tools .place-refresh-btn span { display: inline !important; }
}
