/* Rapidframe Track Pro — Site public (design inspiré Cosma / site_public) */
:root {
  --bg0: #060b14;
  --bg1: #0a1120;
  --bg2: #0e1829;
  --bg3: #111f35;
  --border: rgba(30, 60, 100, 0.5);
  --border2: rgba(0, 200, 255, 0.18);
  --cyan: #00d4ff;
  --green: #00e676;
  --yellow: #ffc107;
  --orange: #ff7043;
  --red: #f44336;
  --purple: #b39ddb;
  --text1: #e8f0f8;
  --text2: #7a9bb8;
  --text3: #3d5670;
  --font-head: 'Rajdhani', sans-serif;
  --font-display: 'Rajdhani', 'Orbitron', sans-serif;
  --font-orb: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 78px;
  --page-max: min(1920px, 100%);
  /* Empilement : cartes contenues, navigation toujours au-dessus */
  --rfp-z-content: 1;
  --rfp-z-map: 2;
  --rfp-z-footer: 20;
  --rfp-z-radio: 4800;
  --rfp-z-nav: 5000;
  --rfp-z-nav-menu: 5010;
  --rfp-z-overlay: 5100;
  --rfp-z-drawer: 5200;
  --rfp-z-fx: 9999;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.rfp-public {
  background: var(--bg0);
  color: var(--text1);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  min-width: 0;
}

.rfp-boot-error {
  margin: 24px clamp(12px, 2vw, 22px);
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid rgba(244, 67, 54, 0.45);
  background: rgba(20, 8, 12, 0.92);
  color: var(--text1);
  max-width: 640px;
}

.rfp-boot-error h2 {
  font-family: var(--font-head);
  color: #ff8a80;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.rfp-boot-error code {
  font-size: 12px;
  color: var(--cyan);
}

.rfp-boot-error button {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--cyan);
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  cursor: pointer;
  font-weight: 600;
}

body.rfp-public::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--rfp-z-fx);
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
}

/* ─── TOPBAR ─── */
.rfp-topbar {
  position: sticky;
  top: 0;
  z-index: var(--rfp-z-nav);
  background: rgba(6, 11, 20, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.rfp-topbar.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); }

.rfp-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  min-height: var(--nav-h);
  padding: 8px clamp(10px, 2vw, 22px);
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
}

.rfp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(420px, 48vw);
}

.rfp-brand-logo {
  width: 58px;
  height: 58px;
  min-width: 58px;
  flex-shrink: 0;
  padding: 6px;
  border: 1px solid #0ab7ff;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(38, 167, 255, 0.18), rgba(198, 40, 40, 0.12));
  box-shadow: 0 0 28px rgba(38, 167, 255, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rfp-brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.rfp-brand-text .t1 {
  font-family: var(--font-orb);
  font-size: clamp(11px, 1.25vw, 14px);
  color: var(--cyan);
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.rfp-brand-text .t1 span { color: var(--green); }

.rfp-brand-text .t2 {
  font-size: clamp(7.5px, 0.8vw, 9px);
  color: var(--text3);
  letter-spacing: 0.4px;
  margin-top: 3px;
  line-height: 1.35;
}

.rfp-hamb {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text1);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 18px;
  position: relative;
  z-index: var(--rfp-z-nav-menu);
}

.rfp-hamb:hover { border-color: var(--cyan); color: var(--cyan); }

.rfp-menu {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.rfp-menu::-webkit-scrollbar { display: none; }

.rfp-menu a {
  font-size: clamp(10px, 0.9vw, 11.5px);
  font-weight: 600;
  color: var(--text1);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 6px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}

.rfp-menu a.rfp-nav-cta,
.rfp-drawer-links a.rfp-nav-cta {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 100%);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
  border-left-color: transparent !important;
}

.rfp-menu a.rfp-nav-cta:hover,
.rfp-drawer-links a.rfp-nav-cta:hover {
  color: #061018;
  background: linear-gradient(135deg, #33e0ff 0%, #4dff91 100%);
}

.rfp-menu a.rfp-nav-cta.active::after {
  display: none;
}

.rfp-menu a:hover { color: var(--cyan); background: rgba(0, 212, 255, 0.06); }

.rfp-menu a.active { color: var(--cyan); }

.rfp-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.rfp-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rfp-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(8, 16, 28, 0.85);
}

.rfp-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  padding: 4px 8px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text3);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.rfp-lang-flag-wrap {
  position: relative;
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rfp-lang-flag-emoji {
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
}

.rfp-lang-flag-emoji.is-visible {
  opacity: 1;
}

.rfp-lang-flag-img {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.rfp-lang-flag-img.is-loaded {
  opacity: 1;
}

.rfp-lang-flag-img.is-hidden {
  display: none;
}

/* Emoji visible tant que l’image n’est pas chargée */
.rfp-lang-flag-wrap:not(:has(.rfp-lang-flag-img.is-loaded)) .rfp-lang-flag-emoji,
.rfp-lang-flag-emoji.is-visible {
  opacity: 1;
}

.rfp-lang-flag-wrap:has(.rfp-lang-flag-img.is-loaded) .rfp-lang-flag-emoji {
  opacity: 0;
}

.rfp-lang-code {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.rfp-lang-btn:hover {
  color: var(--cyan);
}

.rfp-lang-btn.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.12);
}

.rfp-nav-dropdown { position: relative; }

.rfp-nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 9.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.15s, color 0.15s;
}

.rfp-nav-dropdown.open .rfp-nav-dropdown-btn,
.rfp-nav-dropdown-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.rfp-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: var(--rfp-z-nav-menu);
}

.rfp-nav-dropdown.open .rfp-nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rfp-nav-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text1);
  text-decoration: none;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.rfp-nav-dropdown-panel a:hover { background: rgba(0, 212, 255, 0.08); color: var(--cyan); }

.rfp-nav-dropdown-hint {
  display: block;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Mobile drawer */
.rfp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 20, 0.65);
  z-index: var(--rfp-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.rfp-overlay.visible { opacity: 1; visibility: visible; }

.rfp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, var(--bg1), var(--bg0));
  border-left: 1px solid var(--border2);
  z-index: var(--rfp-z-drawer);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
}

.rfp-drawer.open { transform: translateX(0); }

.rfp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.04);
}

.rfp-drawer-head strong {
  font-family: var(--font-orb);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.rfp-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text2);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfp-drawer-close:hover { color: var(--cyan); border-color: var(--cyan); }

.rfp-drawer-links {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.rfp-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

/* Tiroir : pas d'icônes sur les liens */
.rfp-drawer-links a i { display: none !important; }

.rfp-drawer-links a:hover,
.rfp-drawer-links a.active {
  background: rgba(0, 212, 255, 0.06);
  border-left-color: var(--cyan);
  color: var(--cyan);
}

.rfp-drawer-pro {
  padding: 18px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.rfp-drawer-pro-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 10px;
}

.rfp-drawer-pro a {
  display: block;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--cyan);
}

.rfp-drawer-pro a.muted { font-weight: 500; color: var(--text2); font-size: 12px; }

body.rfp-menu-open { overflow: hidden; }

/* ─── HERO ─── */
.rfp-hero {
  display: grid;
  grid-template-columns: minmax(280px, 32%) minmax(0, 68%);
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}

.rfp-profile {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 100%);
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rfp-profile-visual {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid var(--cyan);
  background: linear-gradient(145deg, #0f2445, #3d1515);
  display: grid;
  place-items: center;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.15);
  overflow: hidden;
}

.rfp-profile-visual img { width: 70%; height: 70%; object-fit: contain; }

.rfp-eyebrow {
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 0.06em;
  text-align: center;
}

.rfp-hero-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.rfp-hero-title .platform { display: block; font-size: 0.55em; color: var(--text2); margin-bottom: 4px; }

.rfp-hero-title .project { color: var(--cyan); }

.rfp-hero-desc {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text2);
  line-height: 1.65;
  text-align: center;
}

.rfp-project-picker-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 8px;
}

.rfp-project-chips { display: flex; flex-direction: column; gap: 8px; }

.rfp-project-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg3);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.rfp-project-chip:hover { border-color: var(--chip-color, var(--cyan)); }

.rfp-project-chip.active {
  border-color: var(--chip-color, var(--cyan));
  background: color-mix(in srgb, var(--chip-color, var(--cyan)) 12%, var(--bg3));
}

.rfp-project-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chip-color, var(--red));
  flex-shrink: 0;
}

.rfp-profile-btns { display: flex; flex-direction: column; gap: 8px; }

.rfp-pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  text-decoration: none;
  transition: all 0.15s;
}

.rfp-pbtn-c { border: 1px solid var(--cyan); color: var(--cyan); background: transparent; }

.rfp-pbtn-c:hover { background: rgba(0, 212, 255, 0.08); }

.rfp-pbtn-g {
  background: linear-gradient(135deg, #00a84d, #0096cc);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 180, 100, 0.28);
}

/* Dashboard pane */
.rfp-dashboard {
  background: var(--bg1);
  padding: 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rfp-dash-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.06), transparent 55%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
}

.rfp-dash-headline h2 {
  flex: 1;
  min-width: 0;
  font-family: var(--font-head);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.rfp-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}

.rfp-live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: rfp-pulse 2s ease-in-out infinite;
}

@keyframes rfp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.rfp-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.rfp-kpi {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.rfp-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.rfp-kpi.kc::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.rfp-kpi.kr::before { background: linear-gradient(90deg, var(--red), transparent); }
.rfp-kpi.kg::before { background: linear-gradient(90deg, var(--green), transparent); }

.rfp-kpi-lbl { font-size: 8px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }

.rfp-kpi-val {
  font-family: var(--font-head);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1;
}

.rfp-kpi-val.cyan { color: var(--cyan); }
.rfp-kpi-val.red { color: var(--red); }
.rfp-kpi-val.green { color: var(--green); }

.rfp-charts-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 200px;
}

.rfp-ccard {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rfp-ccard-title {
  font-size: 8px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.rfp-ccard--map { min-height: 180px; }

/* ─── Carte — scan de proximité ─── */
.rfp-page--carte .rfp-map-scan-wrap {
  margin-bottom: 16px;
}

.rfp-map-scan-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(6, 11, 20, 0.95) 60%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.rfp-map-scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: Orbitron, var(--font-ui), sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #060b14;
  background: linear-gradient(135deg, #00e5ff, #00bcd4);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.rfp-map-scan-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.55);
}

.rfp-map-scan-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rfp-map-scan-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.rfp-map-scan-results {
  margin-top: 16px;
}

.rfp-scan-msg {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rfp-scan-msg--warn {
  border: 1px solid rgba(255, 152, 0, 0.45);
  background: rgba(255, 152, 0, 0.1);
  color: #ffcc80;
}

.rfp-scan-msg--info {
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text2);
}

.rfp-scan-fallback-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
}

.rfp-scan-card {
  border-radius: 16px;
  border: 1px solid var(--border2);
  background: rgba(6, 11, 20, 0.92);
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.rfp-scan-card.rfp-scan-status--high {
  border-color: rgba(244, 67, 54, 0.5);
  box-shadow: 0 0 40px rgba(244, 67, 54, 0.15);
}

.rfp-scan-card.rfp-scan-status--medium {
  border-color: rgba(255, 152, 0, 0.4);
}

.rfp-scan-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.rfp-scan-radar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.rfp-scan-radar.is-alert {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  animation: rfpScanPulse 1.5s ease-in-out infinite;
}

@keyframes rfpScanPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(244, 67, 54, 0); }
}

.rfp-scan-city {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.rfp-scan-coords {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
}

.rfp-scan-safety-msg {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text2);
}

.rfp-scan-status--high .rfp-scan-safety-msg {
  background: rgba(244, 67, 54, 0.12);
  color: #ffcdd2;
}

.rfp-scan-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.rfp-scan-kpi {
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border2);
}

.rfp-scan-kpi .n {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-family: Orbitron, sans-serif;
  color: var(--cyan);
}

.rfp-scan-kpi.warn .n { color: #ff9800; }
.rfp-scan-kpi.danger .n { color: #f44336; }

.rfp-scan-kpi span:last-child {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
}

.rfp-scan-radius {
  margin-bottom: 16px;
}

.rfp-scan-radius input[type="range"] {
  width: 100%;
  margin-top: 8px;
  accent-color: var(--cyan);
}

.rfp-scan-avoid-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f44336;
  margin-bottom: 10px;
}

.rfp-scan-avoid-list {
  max-height: 280px;
  overflow-y: auto;
}

.rfp-scan-avoid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(12, 22, 38, 0.6);
  cursor: pointer;
  transition: border-color 0.15s;
}

.rfp-scan-avoid-item:hover {
  border-color: #f44336;
}

.rfp-scan-avoid-dist {
  font-size: 18px;
  font-weight: 800;
  font-family: Orbitron, sans-serif;
  color: #f44336;
  min-width: 52px;
  text-align: center;
}

.rfp-scan-avoid-dist small {
  font-size: 10px;
  font-weight: 400;
}

.rfp-scan-avoid-info {
  flex: 1;
  min-width: 0;
}

.rfp-scan-avoid-info strong {
  display: block;
  font-size: 13px;
}

.rfp-scan-avoid-info span {
  font-size: 11px;
  color: var(--text3);
}

.rfp-scan-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
  font-size: 10px;
  font-weight: 700;
}

.rfp-scan-pin-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
}

.rfp-scan-user-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2196f3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(33, 150, 243, 0.35);
  animation: rfpScanPulse 2s infinite;
}

.rfp-scan-loading,
.rfp-scan-empty,
.rfp-scan-error {
  padding: 24px;
  text-align: center;
  color: var(--text3);
}

.rfp-carte-layout {
  width: 100%;
}

@media (max-width: 768px) {
  .rfp-scan-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .rfp-map-scan-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .rfp-map-scan-btn {
    justify-content: center;
  }
}

#rfpMap {
  flex: 1;
  min-height: 160px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #0a1f0a;
  z-index: 1;
}

.rfp-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 8px;
  color: var(--text3);
}

.rfp-map-legend span { display: inline-flex; align-items: center; gap: 4px; }

.rfp-map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.rfp-risk-bars { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.rfp-risk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.rfp-risk-bar.low { background: rgba(46, 125, 50, 0.2); color: var(--green); }
.rfp-risk-bar.mod { background: rgba(255, 152, 0, 0.15); color: var(--orange); }
.rfp-risk-bar.high { background: rgba(244, 67, 54, 0.15); color: var(--red); }

/* Stats strip */
.rfp-stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}

.rfp-sbox {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border);
}

.rfp-sbox:last-child { border-right: none; }

.rfp-sbox-icon { font-size: 22px; color: var(--cyan); }

.rfp-sbox-num {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1;
}

.rfp-sbox-lbl { font-size: 10px; color: var(--text2); margin-top: 2px; }

/* Main grid */
.rfp-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.rfp-mgcol {
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  min-width: 0;
}

.rfp-mgcol:last-child { border-right: none; }

.rfp-col-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rfp-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rfp-dlist { list-style: none; }

.rfp-dlist li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 60, 100, 0.35);
}

.rfp-dlist li:last-child { border-bottom: none; }

.rfp-dlist-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.rfp-dlist-name { font-size: 11px; font-weight: 600; color: var(--text1); }

.rfp-dlist-sub { font-size: 9px; color: var(--text3); margin-top: 2px; }

.rfp-project-cards-mini { display: flex; flex-direction: column; gap: 10px; }

.rfp-mini-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.rfp-mini-card:hover { transform: translateY(-2px); border-color: var(--border2); }

.rfp-mini-card.active { border-color: var(--card-color, var(--cyan)); border-width: 2px; }

.rfp-mini-card h4 { font-size: 13px; margin-bottom: 4px; }

.rfp-mini-card p { font-size: 10px; color: var(--text2); }

/* Footer */
.rfp-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.rfp-fgcol {
  border-right: 1px solid var(--border);
  padding: 14px;
}

.rfp-fgcol:last-child { border-right: none; }

.rfp-fg-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.rfp-partners { display: flex; flex-wrap: wrap; gap: 8px; }

.rfp-partner {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
}

/* ─── Footer premium (global) ─── */
.rfp-site-footer {
  position: relative;
  margin-top: auto;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.97) 0%, #060b14 55%, #040810 100%);
  overflow: hidden;
}

.rfp-site-footer__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198, 40, 40, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.rfp-site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 28px) clamp(20px, 3vw, 28px);
}

.rfp-site-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.rfp-site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.rfp-site-footer__brand:hover {
  opacity: 0.92;
}

.rfp-site-footer__brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.rfp-site-footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.2;
}

.rfp-site-footer__brand strong span {
  color: var(--cyan);
}

.rfp-site-footer__brand p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text3);
  max-width: 260px;
}

.rfp-site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.rfp-site-footer__col h4 {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.rfp-site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rfp-site-footer__links a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  width: fit-content;
}

.rfp-site-footer__links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.rfp-site-footer__divider {
  height: 1px;
  margin: clamp(20px, 3vw, 28px) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.35) 20%,
    rgba(198, 40, 40, 0.25) 50%,
    rgba(0, 212, 255, 0.35) 80%,
    transparent 100%
  );
}

.rfp-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}

.rfp-site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rfp-site-footer__copy {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.02em;
}

.rfp-site-footer__tagline {
  font-size: 11px;
  font-style: italic;
  color: var(--text3);
  line-height: 1.4;
}

.rfp-site-footer__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.rfp-site-footer__credit-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rfp-site-footer__css-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s, box-shadow 0.15s;
}

.rfp-site-footer__css-link i {
  font-size: 11px;
  color: var(--cyan);
}

.rfp-site-footer__css-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.rfp-site-footer__credit-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  user-select: none;
}

.rfp-site-footer__rf-brand {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* Footer accueil (bloc étendu au-dessus du footer global) */
.rfp-footer-premium-wrap {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 24, 41, 0.6) 0%, rgba(6, 11, 20, 0.9) 100%);
}

.rfp-footer-premium-wrap .rfp-footer-grid--home {
  max-width: var(--page-max);
  margin: 0 auto;
  border-bottom: none;
}

.rfp-footer-premium-wrap .rfp-fgcol {
  padding: clamp(18px, 2.5vw, 24px) clamp(16px, 2vw, 22px);
}

.rfp-footer-premium-wrap .rfp-fg-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.rfp-footer-premium-wrap .rfp-fg-title i {
  color: var(--cyan);
  opacity: 0.9;
}

.rfp-footer-premium-wrap .rfp-fg-title-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rfp-footer-premium-wrap .rfp-fg-title-label > span {
  line-height: 1.25;
}

.rfp-footer-premium-wrap .rfp-fg-title--split {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
}

.rfp-footer-premium-wrap .rfp-fgcol--response .rfp-fg-title,
.rfp-footer-premium-wrap .rfp-fgcol--engage .rfp-fg-title {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.rfp-fg-seeall {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.rfp-menu a.rfp-nav-partners {
  color: #ffcc80;
  border: 1px solid rgba(255, 152, 0, 0.35);
  background: rgba(255, 152, 0, 0.08);
}

.rfp-menu a.rfp-nav-partners:hover,
.rfp-menu a.rfp-nav-partners.active {
  color: #ffe0b2;
  border-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 152, 0, 0.16);
}

.rfp-drawer-links a[href="#/partenaires"] {
  border-left: 3px solid rgba(255, 152, 0, 0.7);
}

.rfp-bottombar {
  display: none;
}

.rfp-copy { font-size: 10px; color: var(--text3); }

.rfp-tagline { font-size: 11px; color: var(--text2); font-style: italic; }

.rfp-tagline span { color: var(--cyan); }

/* ─── Cartes Leaflet : contenus sous le menu (pas de débordement au zoom) ─── */
body.rfp-public .rfp-app {
  position: relative;
  z-index: var(--rfp-z-content);
}

body.rfp-public .rfp-map-full,
body.rfp-public .rfp-map-sm,
body.rfp-public .rfp-map-home-lg,
body.rfp-public #rfpMapHome,
body.rfp-public .rfp-ccard--map,
body.rfp-public .rfp-ccard--map-lg,
body.rfp-public .rfp-ccard--map-sm,
body.rfp-public .rfp-page--carte .rfp-map-scan-wrap,
body.rfp-public .rfp-scr-result-map,
body.rfp-public .rfp-intel-map,
body.rfp-public .rfp-ss-map,
body.rfp-public [id^="rfpMap"],
body.rfp-public [id*="MapHome"],
body.rfp-public [id*="MapFull"] {
  position: relative;
  z-index: var(--rfp-z-map);
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
}

body.rfp-public .leaflet-container {
  background: #0a1f0a !important;
  font-family: var(--font-body);
  z-index: 0 !important;
}

body.rfp-public .leaflet-pane,
body.rfp-public .leaflet-top,
body.rfp-public .leaflet-bottom,
body.rfp-public .leaflet-control {
  z-index: auto;
}

body.rfp-public .leaflet-popup-pane { z-index: 700; }
body.rfp-public .leaflet-marker-pane { z-index: 600; }
body.rfp-public .leaflet-overlay-pane { z-index: 400; }
body.rfp-public .leaflet-tile-pane { z-index: 200; }
body.rfp-public .leaflet-map-pane { z-index: 100; }

body.rfp-public .leaflet-popup-content-wrapper {
  background: var(--bg2);
  color: var(--text1);
  border: 1px solid var(--border);
  border-radius: 8px;
}

body.rfp-public .leaflet-popup-tip { background: var(--bg2); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .rfp-hero { grid-template-columns: 1fr; }
  .rfp-profile { border-right: none; border-bottom: 1px solid var(--border); }
  .rfp-charts-row { grid-template-columns: 1fr; }
  .rfp-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .rfp-main-grid { grid-template-columns: 1fr 1fr; }
  .rfp-footer-grid { grid-template-columns: 1fr; }
  .rfp-fgcol { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 992px) {
  .rfp-hamb { display: none !important; }
  .rfp-menu { display: none; }
  .rfp-nav-right .rfp-nav-dropdown { display: none; }
  .rfp-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .rfp-sbox:nth-child(2n) { border-right: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .rfp-brand-text .t2 { display: none; }
  .rfp-main-grid { grid-template-columns: 1fr; }
  .rfp-mgcol { border-right: none; border-bottom: 1px solid var(--border); }
  .rfp-stats-strip { grid-template-columns: 1fr; }
  .rfp-sbox { border-right: none !important; }
  .rfp-kpi-strip { grid-template-columns: 1fr; }
  .rfp-site-footer__top {
    grid-template-columns: 1fr;
  }

  .rfp-site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .rfp-site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .rfp-site-footer__credit {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
}

/* ─── SPA & pages ─── */
.rfp-app {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 50vh;
}

.rfp-page-head {
  padding: 20px clamp(12px, 2vw, 22px) 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg2), var(--bg0));
}

.rfp-page-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--cyan);
}

.rfp-page-sub {
  font-size: 13px;
  color: var(--text2);
  margin-top: 6px;
}

.rfp-page-card {
  margin: 16px clamp(12px, 2vw, 22px);
  padding: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rfp-page-card--full { margin: 16px clamp(12px, 2vw, 22px); }

.rfp-map-full {
  min-height: min(70vh, 520px);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.rfp-map-sm {
  min-height: 160px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.rfp-chart-box {
  position: relative;
  flex: 1;
  min-height: 160px;
  width: 100%;
}

.rfp-chart-box--tall { min-height: 220px; }

.rfp-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.rfp-kpi-strip--3 { grid-template-columns: repeat(3, 1fr); }

.rfp-kpi-strip--4 { grid-template-columns: repeat(4, 1fr); }

.rfp-charts-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 clamp(12px, 2vw, 22px) 20px;
}

.rfp-main-grid--1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px clamp(12px, 2vw, 22px);
}

.rfp-risk-bars--page {
  margin: 0 clamp(12px, 2vw, 22px) 24px;
  padding: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rfp-partners--large .rfp-partner {
  padding: 12px 18px;
  font-size: 12px;
}

/* Effet flou / verre (projets) */
.rfp-glass,
.rfp-glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rfp-glass-card {
  background: rgba(17, 31, 53, 0.65);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rfp-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.12);
}

.rfp-glass-card.active {
  border-color: var(--card-color, var(--cyan));
  box-shadow: 0 0 24px color-mix(in srgb, var(--card-color, var(--cyan)) 25%, transparent);
}

.rfp-project-cards-blur {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 16px clamp(12px, 2vw, 22px);
}

.rfp-mini-desc {
  font-size: 11px;
  color: var(--text3);
  margin-top: 8px;
  line-height: 1.5;
}

.rfp-mini-active {
  margin-top: 10px;
  font-size: 10px;
  color: var(--cyan);
  font-weight: 700;
}

.rfp-ccard--map-sm { min-height: 200px; }

/* ─── Bottom nav mobile (avec icônes) ─── */
.rfp-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--rfp-z-nav);
  background: rgba(6, 11, 20, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}

.rfp-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 62px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.rfp-bottom-nav a.rfp-nav-cta {
  color: var(--green);
  position: relative;
}

.rfp-bottom-nav a.rfp-nav-cta::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  z-index: 0;
}

.rfp-bottom-nav a.rfp-nav-cta i,
.rfp-bottom-nav a.rfp-nav-cta span {
  position: relative;
  z-index: 1;
}

.rfp-bottom-nav a,
.rfp-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--text1);
  font-size: 9.5px;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 2px;
}

.rfp-bottom-nav a i,
.rfp-bottom-nav button i {
  font-size: 20px;
  line-height: 1;
}

.rfp-bottom-nav a.active,
.rfp-bottom-nav button.active {
  color: var(--cyan);
}

.rfp-bottom-nav a.active i,
.rfp-bottom-nav button.active i {
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

@media (max-width: 991px) {
  .rfp-bottom-nav { display: block; }
  body.rfp-public {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .rfp-charts-row--2,
  .rfp-main-grid--1 { grid-template-columns: 1fr; }
  .rfp-kpi-strip--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .rfp-bottom-nav { display: none !important; }
}

/* ─── Largeur commune pages intérieures (alignée sur Communauté / shell) ─── */
.rfp-page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
}

.rfp-page-shell.rfp-page-premium > .rfp-page-hero {
  margin: 0 0 28px;
}

.rfp-page-head--alert {
  padding-top: 32px;
}

.rfp-page-head--alert .rfp-page-hero-badge--alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-orb);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8a80;
  border: 1px solid rgba(244, 67, 54, 0.4);
  background: rgba(244, 67, 54, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.rfp-page-hero--screening {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(6, 11, 20, 0.96) 52%);
  border-color: rgba(0, 212, 255, 0.22);
  text-align: center;
}

.rfp-page-hero--screening .rfp-page-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Pré-diagnostic intelligent ─── */
.rfp-screening-root,
.rfp-case-report-root,
.rfp-community-grid,
#rfpCommunityRoot,
#rfpPassportRoot {
  width: 100%;
  max-width: none;
  margin: 0;
}

.rfp-page--diag .rfp-scr-intro,
.rfp-page--diag .rfp-scr-panel,
.rfp-page--diag .rfp-scr-session,
.rfp-page--diag .rfp-scr-result-card,
.rfp-page--diag .rfp-scr-centers {
  border-radius: 14px;
  border-color: var(--border2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.rfp-page--diag .rfp-scr-intro h2 {
  font-size: clamp(20px, 2.5vw, 26px);
}

.rfp-page--diag .rfp-scr-result-map {
  height: clamp(280px, 40vh, 420px);
  border-radius: 10px;
  overflow: hidden;
}

.rfp-page-head--screening {
  text-align: center;
  padding-bottom: 8px;
}

.rfp-scr-loading,
.rfp-scr-error {
  text-align: center;
  padding: 48px 16px;
  color: var(--text2);
}

.rfp-scr-intro,
.rfp-scr-panel,
.rfp-scr-result-card,
.rfp-scr-centers {
  padding: 22px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.rfp-scr-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.rfp-scr-intro h2 {
  font-family: var(--font-orb);
  font-size: 22px;
  color: var(--text1);
  margin-bottom: 10px;
}

.rfp-scr-intro p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.rfp-scr-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(198, 40, 40, 0.12);
  border: 1px solid var(--pill-color, var(--cyan));
  color: var(--pill-color, var(--cyan));
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
}

.rfp-scr-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.rfp-scr-features li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rfp-scr-features i {
  color: var(--cyan);
  width: 18px;
}

.rfp-risk-bars--compact {
  margin-bottom: 18px;
}

.rfp-scr-start {
  width: 100%;
  justify-content: center;
}

.rfp-scr-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.rfp-scr-progress-item {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--bg3);
  color: var(--text3);
  border: 1px solid var(--border);
}

.rfp-scr-progress-item.done {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.35);
}

.rfp-scr-progress-item.current {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
}

.rfp-scr-panel h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text1);
}

.rfp-scr-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rfp-scr-form input,
.rfp-scr-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text1);
  font-size: 14px;
  font-family: inherit;
}

.rfp-scr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rfp-scr-gps-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed var(--cyan);
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.rfp-scr-questions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rfp-scr-q-text {
  font-size: 14px;
  color: var(--text1);
  margin-bottom: 8px;
  line-height: 1.45;
}

.rfp-scr-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rfp-scr-opt {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.rfp-scr-opt.active.yes {
  background: rgba(198, 40, 40, 0.2);
  border-color: var(--red);
  color: #ff8a80;
}

.rfp-scr-opt.active.no {
  background: rgba(46, 125, 50, 0.2);
  border-color: var(--green);
  color: #81c784;
}

.rfp-scr-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.rfp-scr-nav .rfp-pbtn {
  flex: 1;
  justify-content: center;
}

.rfp-scr-alert-banner {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(198, 40, 40, 0.15);
  border: 1px solid var(--red);
  color: #ffcdd2;
}

.rfp-scr-alert-banner i {
  font-size: 28px;
  color: var(--red);
}

.rfp-scr-score-ring {
  width: 140px;
  height: 140px;
  margin: 16px auto;
  border-radius: 50%;
  border: 6px solid var(--score-color, var(--cyan));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}

.rfp-scr-score-val {
  font-family: var(--font-orb);
  font-size: 36px;
  font-weight: 700;
  color: var(--text1);
}

.rfp-scr-score-lbl {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
}

.rfp-scr-result-card.high .rfp-scr-score-ring {
  border-color: var(--red);
  box-shadow: 0 0 28px rgba(198, 40, 40, 0.35);
}

.rfp-scr-result-card.mod .rfp-scr-score-ring {
  border-color: #ef6c00;
}

.rfp-scr-result-meta p {
  font-size: 13px;
  color: var(--text2);
  margin: 6px 0;
}

.rfp-scr-center-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.rfp-scr-center-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.rfp-scr-center-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rfp-scr-center-meta {
  display: block;
  font-size: 12px;
  color: var(--text3);
  margin: 4px 0;
}

.rfp-scr-link {
  display: inline-block;
  margin-right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.rfp-scr-result-map {
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rfp-scr-empty {
  color: var(--text3);
  font-size: 13px;
}

#rfpScrRestart {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.rfp-scr-quota-hint,
.rfp-scr-quota-line {
  font-size: 12px;
  color: var(--text2);
  margin: 12px 0;
  line-height: 1.5;
}

.rfp-scr-quota-hint i {
  color: var(--cyan);
  margin-right: 6px;
}

.rfp-scr-reward-card {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(0, 212, 255, 0.06));
}

.rfp-scr-reward-card h4 {
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 8px;
}

.rfp-scr-reward-big {
  font-family: var(--font-orb);
  font-size: 22px;
  color: var(--cyan);
  margin: 4px 0;
}

.rfp-scr-reward-sub {
  font-size: 13px;
  color: var(--text2);
}

.rfp-scr-saved {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text3);
}

.rfp-scr-map-hint {
  font-size: 11px;
  color: var(--text3);
  margin: -6px 0 12px;
}

.rfp-scr-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.rfp-scr-route-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.rfp-scr-center-item.active {
  background: rgba(0, 212, 255, 0.06);
  border-radius: 8px;
}

.rfp-scr-result-map {
  height: 280px;
}

/* ═══ PREMIUM — Accueil & pages ═══ */
.rfp-page-premium {
  padding-bottom: 24px;
}

.rfp-page-shell {
  padding: 0 clamp(12px, 2.5vw, 28px) 32px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.rfp-page-head {
  padding: 28px clamp(12px, 2vw, 24px) 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.rfp-page-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  line-height: 1.15;
}

.rfp-page-sub {
  font-size: clamp(14px, 1.35vw, 17px);
  color: var(--text2);
  line-height: 1.65;
}

/* Hero accueil — panneau droit = hauteur colonne gauche ; graphiques remplissent l’espace restant */
.rfp-page-accueil .rfp-hero {
  align-items: stretch;
  min-height: min(620px, 88vh);
}

.rfp-page-accueil .rfp-profile {
  min-height: 100%;
}

.rfp-page-accueil .rfp-dashboard {
  padding: 14px 16px 18px;
  min-height: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rfp-page-accueil .rfp-dash-headline,
.rfp-page-accueil .rfp-kpi-strip--4 {
  flex-shrink: 0;
}

.rfp-charts-row--home {
  grid-template-columns: minmax(150px, 22%) minmax(0, 1fr) minmax(150px, 22%);
  gap: 12px;
  flex: 1 1 0;
  min-height: 420px;
  height: 100%;
  max-height: none;
  align-items: stretch;
  overflow: hidden;
}

.rfp-page-accueil .rfp-charts-row--home .rfp-ccard {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.rfp-page-accueil .rfp-charts-row--home .rfp-ccard-title {
  flex-shrink: 0;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfp-page-accueil .rfp-ccard-title {
  font-size: clamp(10px, 0.95vw, 12px);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.rfp-chart-box {
  position: relative;
  flex: 1;
  min-height: 140px;
}

.rfp-chart-box--side {
  min-height: clamp(200px, 28vh, 300px);
}

.rfp-page-accueil .rfp-charts-row--home .rfp-chart-box--side {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  position: relative;
}

.rfp-page-accueil .rfp-chart-box--side canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.rfp-ccard--map-lg {
  display: flex;
  flex-direction: column;
  min-height: clamp(240px, 32vh, 360px);
}

.rfp-page-accueil .rfp-ccard--map-lg {
  min-height: 0;
}

.rfp-map-home-lg,
.rfp-page-accueil #rfpMapHome {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a1f0a;
  position: relative;
  overflow: hidden;
}

.rfp-page-accueil #rfpMapHome .leaflet-container {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.rfp-map-choro-legend {
  position: absolute;
  z-index: 15;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  max-width: min(320px, 92%);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.88);
  border: 1px solid rgba(198, 40, 40, 0.35);
  font-size: 9px;
  color: var(--text2);
  pointer-events: none;
}

.rfp-map-choro-legend__title {
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ef5350;
  margin-bottom: 2px;
}

.rfp-map-choro-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rfp-map-choro-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rfp-kpi-lbl {
  font-size: clamp(9px, 0.85vw, 11px);
}

.rfp-kpi-val {
  font-size: clamp(18px, 2vw, 26px);
}

.rfp-dash-headline h2 {
  font-size: clamp(11px, 1vw, 14px);
}

.rfp-sbox-num {
  font-size: clamp(20px, 2.4vw, 28px);
}

.rfp-sbox-lbl {
  font-size: clamp(11px, 1vw, 13px);
}

.rfp-sbox {
  padding: 16px 18px;
}

.rfp-sbox-icon {
  font-size: 26px;
}

/* Main grid accueil (sous les chiffres) */
.rfp-main-grid--home {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.rfp-main-grid--home .rfp-mgcol {
  padding: 18px 16px;
}

.rfp-col-seeall {
  font-size: 11px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.rfp-col-seeall:hover {
  text-decoration: underline;
}

.rfp-col-title {
  font-size: clamp(12px, 1.1vw, 14px);
}

.rfp-dlist-link {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  align-items: flex-start;
}

.rfp-dlist-link:hover .rfp-dlist-name {
  color: var(--cyan);
}

.rfp-dlist-name {
  font-size: clamp(12px, 1.05vw, 14px);
}

.rfp-dlist-sub {
  font-size: clamp(10px, 0.9vw, 12px);
}

.rfp-btn-all,
.rfp-btn-cv {
  margin-top: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.15s;
}

.rfp-btn-all {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
}

.rfp-btn-all:hover {
  background: rgba(0, 212, 255, 0.16);
}

.rfp-btn-cv {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--green);
}

.rfp-rlist {
  list-style: none;
}

.rfp-rlist li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 60, 100, 0.35);
}

.rfp-rlist li:last-child {
  border-bottom: none;
}

.rfp-rlist-name {
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rfp-rlist-sub {
  font-size: clamp(10px, 0.9vw, 12px);
  color: var(--text3);
  margin-top: 4px;
  padding-left: 22px;
  line-height: 1.45;
}

.rfp-dash-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rfp-dash-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.rfp-dash-highlight:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.rfp-dash-highlight__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rfp-dash-highlight__num {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1;
}

.rfp-dash-highlight__lbl {
  font-size: clamp(10px, 0.95vw, 12px);
  color: var(--text2);
  margin-top: 4px;
}

.rfp-missions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rfp-mission-card {
  min-height: 100px;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg3), var(--bg2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.rfp-mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mission-accent, var(--cyan));
}

.rfp-mission-card i {
  font-size: 20px;
  color: var(--mission-accent, var(--cyan));
  margin-bottom: 4px;
}

.rfp-mission-card b {
  font-size: 12px;
  color: var(--text1);
  line-height: 1.35;
}

.rfp-mission-card span {
  font-size: 10px;
  color: var(--cyan);
  font-weight: 600;
}

.rfp-skgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rfp-skcirc {
  width: 58px;
  height: 58px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 3px solid var(--sk-color, var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--sk-color, var(--cyan));
  box-shadow: 0 0 16px color-mix(in srgb, var(--sk-color, var(--cyan)) 25%, transparent);
}

.rfp-sk-name {
  font-size: 10px;
  color: var(--text3);
  text-align: center;
  line-height: 1.3;
}

/* Accueil : 3 sections sur une ligne — Réponse · Partenaires · Engagement */
.rfp-footer-grid--home {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.rfp-footer-grid--home .rfp-fgcol {
  border-right: 1px solid var(--border);
  border-bottom: none;
}

.rfp-footer-grid--home .rfp-fgcol:last-child {
  border-right: none;
}

.rfp-pillar-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.rfp-pillar-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.rfp-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(30, 60, 100, 0.35);
}

.rfp-pillar-item:last-child {
  border-bottom: none;
}

.rfp-pillar-item__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.rfp-pillar-item__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rfp-pillar-item__text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  line-height: 1.25;
}

.rfp-pillar-item__text small {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text2);
}

.rfp-fgcol--partners .rfp-partners--large {
  gap: 10px;
}

.rfp-tech-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rfp-tech-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: transform 0.15s, border-color 0.15s;
}

.rfp-tech-tool:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.4);
}

.rfp-tech-tool i {
  font-size: 20px;
  color: var(--cyan);
}

.rfp-skcirc--kpi span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rfp-tech-icons--ops {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rfp-tech-tool--ops {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 84px;
  padding: 12px 14px;
  width: 100%;
}

.rfp-tech-tool--ops strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.rfp-tech-tool--ops small {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text3);
  text-align: left;
}

.rfp-tech-tool small {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text2);
}

.rfp-partners--large .rfp-partner {
  padding: 10px 16px;
  font-size: 12px;
}

.rfp-partner--highlight {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}

.rfp-partner-card--hakika .rfp-pcard-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.rfp-engage-list {
  list-style: none;
}

.rfp-engage-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 60, 100, 0.25);
}

.rfp-engage-list li:last-child {
  border-bottom: none;
}

.rfp-eicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.rfp-fg-title {
  font-size: clamp(12px, 1.1vw, 14px);
  margin-bottom: 14px;
}

.rfp-fgcol {
  padding: 18px 20px;
}

/* Pages intérieures — graphiques plus grands */
.rfp-page-premium .rfp-chart-box {
  min-height: 200px;
}

.rfp-page-premium .rfp-chart-box--tall {
  min-height: clamp(260px, 35vh, 380px);
}

.rfp-page-premium .rfp-map-full {
  min-height: clamp(360px, 50vh, 520px);
}

.rfp-page-premium .rfp-page-card {
  margin: 0 0 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg1);
}

.rfp-page-premium .rfp-kpi-strip {
  margin: 0 0 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rfp-page-premium .rfp-kpi {
  padding: 14px 16px;
}

.rfp-page-premium .rfp-charts-row {
  margin: 0 0 20px;
  gap: 12px;
}

.rfp-page-premium .rfp-charts-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rfp-page-premium .rfp-ccard {
  padding: 16px;
  border-radius: 10px;
}

.rfp-page-premium .rfp-ccard-title {
  font-size: 11px;
  margin-bottom: 12px;
}

.rfp-tagline {
  font-size: clamp(11px, 1vw, 13px);
}

@media (max-width: 1400px) {
  .rfp-main-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rfp-main-grid--home .rfp-mgcol:nth-child(4),
  .rfp-main-grid--home .rfp-mgcol:nth-child(5) {
    grid-column: span 1;
  }

  .rfp-charts-row--home {
    grid-template-columns: 1fr 1.8fr 1fr;
  }
}

@media (max-width: 1100px) {
  .rfp-charts-row--home {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
  }

  .rfp-page-accueil .rfp-charts-row--home .rfp-ccard--chart-side {
    min-height: 220px;
  }

  .rfp-page-accueil .rfp-charts-row--home .rfp-ccard--map-lg {
    min-height: 280px;
  }

  .rfp-main-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rfp-footer-grid--home {
    grid-template-columns: 1fr;
  }

  .rfp-footer-grid--home .rfp-fgcol {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .rfp-pillar-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rfp-tech-icons--ops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .rfp-site-footer__cols {
    grid-template-columns: 1fr;
  }

  .rfp-tech-icons--ops {
    grid-template-columns: 1fr;
  }

  .rfp-pillar-grid--3 {
    grid-template-columns: 1fr;
  }

  .rfp-main-grid--home {
    grid-template-columns: 1fr;
  }

  .rfp-main-grid--home .rfp-mgcol {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .rfp-missions-grid {
    grid-template-columns: 1fr;
  }

  .rfp-page-premium .rfp-charts-row--2 {
    grid-template-columns: 1fr;
  }
}

/* ─── Pages premium : partenaires & signalement ─── */
.rfp-page-hero {
  margin: 0 0 24px;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-radius: 16px;
  border: 1px solid var(--border2);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(6, 11, 20, 0.95) 55%);
  position: relative;
  overflow: hidden;
}

.rfp-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 212, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.rfp-page-hero--alert {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.12) 0%, rgba(6, 11, 20, 0.96) 50%);
  border-color: rgba(244, 67, 54, 0.25);
}

.rfp-page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-orb);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  position: relative;
}

.rfp-page-hero-badge--alert {
  color: #ff8a80;
  border-color: rgba(244, 67, 54, 0.4);
}

.rfp-page-hero .rfp-page-title {
  font-size: clamp(28px, 4vw, 42px);
  position: relative;
}

.rfp-page-hero .rfp-page-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  max-width: 720px;
  position: relative;
}

.rfp-partner-tier {
  margin: 0 0 28px;
}

.rfp-tier-title {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rfp-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rfp-partner-card {
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rfp-partner-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.08);
}

.rfp-pcard-logo {
  font-family: var(--font-orb);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}

.rfp-partner-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 12px;
}

.rfp-pcard-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.rfp-ccard--glow {
  box-shadow: 0 0 0 1px var(--border2), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.rfp-collab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.rfp-collab-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

.rfp-collab-list i {
  color: var(--cyan);
  margin-top: 3px;
}

.rfp-partners-cta {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

.rfp-cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  margin-top: 10px;
}

/* Signalement cas — Contact */
.rfp-case-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(14, 24, 41, 0.6);
}

.rfp-case-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.rfp-case-trust i {
  color: var(--cyan);
}

.rfp-case-mail-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -8px 0 20px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  text-align: center;
  line-height: 1.45;
}

.rfp-case-mail-route i {
  font-size: 15px;
  flex-shrink: 0;
}

.rfp-case-form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #ffcdd2;
  background: rgba(198, 40, 40, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.35);
}

.rfp-case-form-error[hidden] {
  display: none !important;
}

.rfp-case-success-mails {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  text-align: left;
  font-size: 13px;
}

.rfp-case-success-mails > div {
  margin-bottom: 8px;
}

.rfp-case-success-mails > div:last-child {
  margin-bottom: 0;
}

.rfp-case-success-mails .lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 2px;
}

.rfp-case-success-mails strong {
  color: var(--text1);
  font-weight: 600;
  word-break: break-all;
}

.rfp-case-success--pending .rfp-case-success-icon {
  color: var(--yellow);
}

.rfp-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}

.rfp-case-form--main {
  border: 1px solid rgba(244, 67, 54, 0.15);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border2);
}

.rfp-case-form {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 16px;
}

.rfp-case-form-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.rfp-case-form-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ff8a80;
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.35);
}

.rfp-case-form-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 6px;
  line-height: 1.2;
}

.rfp-case-form-sub {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.rfp-case-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.rfp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rfp-field--full {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.rfp-field label,
.rfp-field .rfp-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
}

.rfp-field label em {
  color: #ff8a80;
  font-style: normal;
}

.rfp-field input,
.rfp-field textarea,
.rfp-case-fields textarea,
.rfp-case-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text1);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rfp-field input:focus,
.rfp-field textarea:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.rfp-field textarea {
  min-height: 120px;
  resize: vertical;
}

.rfp-urgency-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .rfp-urgency-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rfp-urgency-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--text2);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.rfp-urgency-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rfp-urgency-pill i {
  font-size: 18px;
}

.rfp-urgency-pill:has(input:checked) {
  transform: translateY(-2px);
  color: var(--text1);
}

.rfp-urgency-pill--critical:has(input:checked) {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.15);
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.2);
}

.rfp-urgency-pill--critical i { color: #f44336; }

.rfp-urgency-pill--high:has(input:checked) {
  border-color: #ff7043;
  background: rgba(255, 112, 67, 0.12);
}

.rfp-urgency-pill--high i { color: #ff7043; }

.rfp-urgency-pill--medium:has(input:checked) {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

.rfp-urgency-pill--medium i { color: #ffc107; }

.rfp-urgency-pill--low:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}

.rfp-urgency-pill--low i { color: var(--cyan); }

.rfp-case-gps-block {
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px dashed rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.04);
}

.rfp-case-gps-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.rfp-case-gps-head > i {
  font-size: 22px;
  color: var(--cyan);
  margin-top: 2px;
}

.rfp-case-gps-head strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.rfp-case-gps-head p {
  font-size: 12px;
  color: var(--text3);
  margin: 0;
}

.rfp-case-gps-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.rfp-case-gps-status {
  font-size: 13px;
  color: var(--text2);
}

.rfp-case-gps-status.ok {
  color: var(--green);
}

.rfp-case-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 15px;
  padding: 14px;
}

.rfp-case-aside {
  padding: clamp(22px, 2.5vw, 32px);
  border-radius: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  border: 1px solid var(--border2);
}

.rfp-case-aside-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.rfp-case-aside-icon--alert {
  background: rgba(244, 67, 54, 0.12);
  color: #ff8a80;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.rfp-case-aside h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--text1);
}

.rfp-case-aside-lead {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 18px;
}

.rfp-case-tips {
  list-style: none;
  margin-bottom: 20px;
}

.rfp-case-tips li {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.rfp-tip-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.rfp-case-aside-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Page contact — coordonnées directes */
.rfp-contact-direct {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(22px, 2.5vw, 32px);
  border-radius: 16px;
  border: 1px solid var(--border2);
}

.rfp-contact-direct-head {
  margin-bottom: 22px;
}

.rfp-contact-direct-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.rfp-contact-direct-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--text1);
  margin: 0 0 8px;
  line-height: 1.2;
}

.rfp-contact-direct-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 52rem;
}

.rfp-contact-direct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.rfp-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 14px;
  background: rgba(6, 14, 28, 0.55);
  border: 1px solid var(--border2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rfp-contact-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.rfp-contact-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--green);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.rfp-contact-card-icon--mail {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.25);
}

.rfp-contact-card-label {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text3);
}

.rfp-contact-card-link {
  display: block;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--text1);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 6px;
  word-break: break-word;
}

.rfp-contact-card-link:hover {
  color: var(--cyan);
}

.rfp-contact-card-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text3);
}

.rfp-contact-aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border2);
}

.rfp-contact-aside-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  text-decoration: none;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  transition: background 0.2s, border-color 0.2s;
  word-break: break-all;
}

.rfp-contact-aside-item i {
  width: 18px;
  text-align: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.rfp-contact-aside-item:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--cyan);
}

.rfp-pbtn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 12px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.rfp-case-pro-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
}

.rfp-case-pro-link:hover {
  color: var(--cyan);
}

.rfp-case-success-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.rfp-case-success {
  padding: 48px 36px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(0, 230, 118, 0.25);
  box-shadow: 0 12px 40px rgba(0, 230, 118, 0.08);
}

.rfp-case-success-icon {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
}

.rfp-case-ref {
  font-family: var(--font-orb);
  font-size: 11px;
  color: var(--text3);
  margin: 16px 0 24px;
}

/* Diag+ session */
.rfp-scr-session {
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(14, 24, 41, 0.9));
}

.rfp-scr-session-badge {
  font-family: var(--font-orb);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.rfp-scr-private {
  font-size: 12px;
  color: var(--text3);
  margin-top: 8px;
}

.rfp-scr-session-score {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 8px;
  color: var(--text1);
}

.rfp-scr-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.rfp-scr-session-centers h4 {
  font-size: 13px;
  margin: 16px 0 10px;
  color: var(--text2);
}

.rfp-scr-center-list--compact .rfp-scr-center-item {
  padding: 8px 0;
}

.rfp-community-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin-top: 16px;
}

.rfp-community-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.rfp-community-fields-grid label,
.rfp-community-msg-label {
  display: block;
  font-size: 12px;
  color: var(--text2);
}

.rfp-community-fields-grid em,
.rfp-community-msg-label em {
  color: #ff8a80;
  font-style: normal;
}

.rfp-community-fields-grid select,
.rfp-community-fields-grid input {
  width: 100%;
  margin-top: 6px;
}

.rfp-community-msg-label {
  margin-bottom: 14px;
}

.rfp-community-msg-label textarea {
  width: 100%;
  margin-top: 6px;
}

.rfp-community-hint {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rfp-community-hint i {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .rfp-community-fields-grid {
    grid-template-columns: 1fr;
  }
}

.rfp-community-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text2);
}

.rfp-community-form input,
.rfp-community-form select,
.rfp-community-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(6, 11, 20, 0.8);
  color: var(--text1);
}

.rfp-ussd-demo {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px dashed rgba(0, 212, 255, 0.3);
}

.rfp-ussd-demo code {
  font-size: 1.25rem;
  color: var(--cyan);
}

.rfp-form-msg {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}

.rfp-form-msg.success {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
}

.rfp-form-msg.error {
  background: rgba(244, 67, 54, 0.12);
  color: var(--red);
}

.rfp-passport-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
}

.rfp-passport-result.valid {
  border: 1px solid var(--green);
  background: rgba(0, 230, 118, 0.08);
}

.rfp-passport-result.warn,
.rfp-passport-result.invalid {
  border: 1px solid var(--orange);
  background: rgba(255, 152, 0, 0.08);
}

.rfp-intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.rfp-intel-card {
  padding: 20px;
  text-align: center;
}

.rfp-intel-card i {
  font-size: 1.75rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.rfp-intel-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.rfp-intel-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text2);
}

.rfp-intel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ─── Intelligence — carte hôpitaux premium ─── */
.rfp-page--intel .rfp-page-hero--intel {
  text-align: center;
  margin-bottom: 8px;
}

.rfp-intel-root {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.rfp-intel-services__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rfp-intel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rfp-intel-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(8, 16, 28, 0.9);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.rfp-intel-filter.is-active,
.rfp-intel-filter:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}

.rfp-intel-emergency {
  margin-bottom: 16px;
}

.rfp-intel-emergency-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rfp-intel-emergency-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rfp-intel-emergency-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b71c1c, #c62828);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(198, 40, 40, 0.35);
  transition: transform 0.15s;
}

.rfp-intel-emergency-btn:hover {
  transform: translateY(-2px);
}

.rfp-intel-emergency-btn small {
  display: block;
  opacity: 0.9;
  font-size: 11px;
}

.rfp-intel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.rfp-intel-stat {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(6, 11, 20, 0.85);
  text-align: center;
}

.rfp-intel-stat .n {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-family: Orbitron, sans-serif;
  color: var(--cyan);
}

.rfp-intel-stat .n.red { color: var(--red); }
.rfp-intel-stat .n.orange { color: var(--orange); }
.rfp-intel-stat .n.cyan { color: var(--cyan); }

.rfp-intel-stat span:last-child {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rfp-intel-map-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  min-height: 520px;
}

.rfp-intel-map-panel {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border2);
  overflow: hidden;
  background: #060b14;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.rfp-intel-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.06);
  border-bottom: 1px solid var(--border2);
  font-weight: 600;
  font-size: 14px;
}

.rfp-intel-map-head small {
  font-weight: 400;
  color: var(--text3);
  font-size: 11px;
}

.rfp-intel-map {
  height: min(58vh, 560px);
  min-height: 400px;
  width: 100%;
  z-index: 1;
}

.rfp-intel-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 20, 0.7);
  z-index: 10;
}

.rfp-intel-loading[hidden] {
  display: none;
}

.rfp-intel-list-panel {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border2);
  background: rgba(6, 11, 20, 0.92);
  overflow: hidden;
  max-height: min(62vh, 620px);
}

.rfp-intel-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border2);
}

.rfp-intel-list-head h3 {
  margin: 0;
  font-size: 14px;
}

.rfp-intel-count {
  background: var(--cyan);
  color: #060b14;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}

.rfp-intel-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.rfp-hosp-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(12, 22, 38, 0.6);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rfp-hosp-card:hover,
.rfp-hosp-card.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.rfp-hosp-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rfp-hosp-card__body {
  flex: 1;
  min-width: 0;
}

.rfp-hosp-card__body h4 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
}

.rfp-hosp-card__meta {
  margin: 0;
  font-size: 11px;
  color: var(--text3);
}

.rfp-hosp-dist {
  color: var(--cyan);
  font-weight: 700;
}

.rfp-hosp-card__desc {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text2);
}

.rfp-hosp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.rfp-hosp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.rfp-hosp-btn--call {
  background: #2e7d32;
  color: #fff !important;
}

.rfp-hosp-btn--map {
  background: rgba(66, 133, 244, 0.2);
  color: #8ab4f8 !important;
  border: 1px solid rgba(66, 133, 244, 0.4);
}

.rfp-hosp-btn--show {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
}

.rfp-hosp-empty {
  padding: 24px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}

.rfp-hosp-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.rfp-hosp-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin-color, #00d4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
}

.rfp-hosp-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 14px;
}

.rfp-hosp-pin--user {
  border-radius: 50%;
  transform: none;
  background: #2196f3;
}

.rfp-hosp-pin--user i {
  transform: none;
}

.rfp-hosp-popup .leaflet-popup-content-wrapper {
  background: #0d1520;
  color: #e8f0f8;
  border-radius: 12px;
  border: 1px solid var(--border2);
}

.rfp-hosp-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.rfp-hosp-call,
.rfp-hosp-gmaps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: #fff !important;
  background: #2e7d32;
}

.rfp-hosp-call--amb {
  background: #e65100;
}

.rfp-hosp-gmaps {
  background: #1565c0;
}

.rfp-hosp-popup-dist {
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
}

.rfp-intel-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .rfp-intel-map-layout {
    grid-template-columns: 1fr;
  }
  .rfp-intel-list-panel {
    max-height: 360px;
  }
  .rfp-intel-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rfp-pbtn-outline {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
}

@media (max-width: 900px) {
  .rfp-community-grid {
    grid-template-columns: 1fr;
  }

  .rfp-partner-grid {
    grid-template-columns: 1fr;
  }

  .rfp-case-layout {
    grid-template-columns: 1fr;
  }

  .rfp-case-fields-grid {
    grid-template-columns: 1fr;
  }

  .rfp-case-aside {
    position: static;
  }

  .rfp-case-trust {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── RapidFrame Smart Scan ─── */
.rfp-diag-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rfp-diag-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.rfp-diag-tab.is-active,
.rfp-diag-tab--ai.is-active {
  background: linear-gradient(135deg, #c62828, #8e0000);
  border-color: transparent;
  color: #fff;
}
/* Smart Scan — lisible à côté de Diag+ (pas le même dégradé cyan/vert) */
.rfp-menu a.rfp-nav-smart,
.rfp-drawer-links a.rfp-nav-smart {
  color: #ffffff !important;
  background: linear-gradient(135deg, #7b1fa2 0%, #c62828 55%, #1565c0 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 14px rgba(198, 40, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  font-weight: 800 !important;
  letter-spacing: 0.04em;
}

.rfp-menu a.rfp-nav-smart:hover,
.rfp-drawer-links a.rfp-nav-smart:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #9c27b0 0%, #e53935 50%, #1e88e5 100%) !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
}

.rfp-menu a.rfp-nav-smart.active,
.rfp-drawer-links a.rfp-nav-smart.active {
  color: #ffffff !important;
  outline: 2px solid rgba(0, 212, 255, 0.6);
  outline-offset: 2px;
}

.rfp-bottom-nav a.rfp-nav-smart {
  color: #e1bee7 !important;
  font-weight: 700;
}

.rfp-bottom-nav a.rfp-nav-smart::before {
  background: rgba(123, 31, 162, 0.35) !important;
  border-color: rgba(198, 40, 40, 0.5) !important;
}

.rfp-bottom-nav a.rfp-nav-smart i,
.rfp-bottom-nav a.rfp-nav-smart span {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
/* ─── Smart Scan — pleine largeur (aligné pré-diag / page shell) ─── */
.rfp-page--smartscan .rfp-diag-tabs {
  padding: 0 clamp(12px, 2.5vw, 28px);
  margin-bottom: 16px;
}

.rfp-ss-workspace,
.rfp-smart-scan-root {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 8px;
}

.rfp-ss-panel--full {
  width: 100%;
}

.rfp-ss-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

.rfp-ss-col--card {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.28);
}

.rfp-ss-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 0 0 12px;
}

.rfp-ss-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 0 0 12px;
  color: #fff;
}

.rfp-ss-intro > .rfp-ss-grid-2 > .rfp-ss-col > p {
  color: var(--text2);
  line-height: 1.55;
  margin: 0 0 12px;
}

.rfp-ss-face-grid .rfp-ss-face-box {
  max-width: none;
  width: 100%;
  margin: 0;
  max-height: min(52vh, 520px);
}

.rfp-ss-col--aside .rfp-ss-face-tips {
  margin-top: 0;
}

.rfp-ss-actions--face {
  flex-direction: column;
  margin-top: 16px;
}

.rfp-ss-actions--face .rfp-pbtn {
  width: 100%;
  justify-content: center;
}

.rfp-ss-questions--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding-right: 6px;
}

.rfp-ss-questions--grid .rfp-ss-q--number {
  grid-column: 1 / -1;
}

.rfp-ss-temp-grid .rfp-ss-temp-guide {
  margin-bottom: 16px;
}

.rfp-ss-temp-start {
  width: 100%;
  max-width: 320px;
}

.rfp-ss-results-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}

.rfp-ss-results-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rfp-ss-results-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.rfp-ss-results-aside .rfp-ss-res {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.25);
}

.rfp-ss-restart-btn {
  width: 100%;
  margin-top: 8px;
}

.rfp-ss-ai-center {
  text-align: center;
  padding: 32px 16px;
}

.rfp-ss-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border2);
}

.rfp-ss-nav .rfp-pbtn {
  min-width: 140px;
  justify-content: center;
}

.rfp-page--smartscan .rfp-ss-map {
  height: clamp(280px, 38vh, 400px);
  width: 100%;
}

@media (max-width: 960px) {
  .rfp-ss-grid-2,
  .rfp-ss-questions--grid,
  .rfp-ss-results-layout {
    grid-template-columns: 1fr;
  }

  .rfp-ss-questions--grid {
    max-height: none;
  }

  .rfp-ss-face-grid .rfp-ss-face-box {
    max-height: 400px;
  }
}

.rfp-ss-panel,
.rfp-ss-intro,
.rfp-ss-step,
.rfp-ss-results {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: linear-gradient(165deg, rgba(12, 22, 38, 0.95) 0%, rgba(6, 11, 20, 0.98) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rfp-ss-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border2);
}

.rfp-ss-progress-item {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10px;
  color: var(--text3);
  opacity: 0.55;
}

.rfp-ss-progress-item.done {
  opacity: 0.85;
  color: var(--text2);
}

.rfp-ss-progress-item.current {
  opacity: 1;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
}

.rfp-ss-progress-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rfp-ss-progress-item.current .rfp-ss-progress-num {
  background: var(--cyan);
  color: #061018;
}

.rfp-ss-progress-lbl {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfp-ss-step-head h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 0 0 8px;
  color: #fff;
}

.rfp-ss-step-sub {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.rfp-ss-symptoms-intro {
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--cyan);
}

.rfp-ss-questions:not(.rfp-ss-questions--grid) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 480px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.rfp-ss-q {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s;
}

.rfp-ss-q:focus-within {
  border-color: rgba(0, 212, 255, 0.4);
}

.rfp-ss-q-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.rfp-ss-q-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(198, 40, 40, 0.2);
  color: #ff8a80;
}

.rfp-ss-q-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  line-height: 1.45;
  margin: 0;
}

.rfp-ss-req {
  color: var(--red);
}

.rfp-ss-toggle {
  margin-top: 4px;
}

.rfp-ss-q-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rfp-ss-q-unit {
  font-size: 13px;
  color: var(--text3);
  font-weight: 600;
}

.rfp-ss-input--num {
  max-width: 120px;
  text-align: center;
}

.rfp-ss-start-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
}
.rfp-ss-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 12px;
}
.rfp-ss-steps-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.rfp-ss-steps-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border2);
}
.rfp-ss-offline {
  color: var(--green);
  font-weight: 600;
}
.rfp-ss-face-wrap {
  margin: 8px 0 16px;
}

.rfp-ss-face-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.25);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
}

.rfp-ss-face-box.has-video {
  border-color: rgba(0, 212, 255, 0.5);
}

.rfp-ss-face-box #rfpSsVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: none;
  transform: scaleX(-1);
}

.rfp-ss-face-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.rfp-ss-face-overlay.is-active,
.rfp-ss-face-overlay.is-success {
  opacity: 1;
}

.rfp-ss-face-oval {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: 72%;
  transform: translate(-50%, -52%);
  border: 3px solid rgba(0, 212, 255, 0.85);
  border-radius: 50%;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 212, 255, 0.35);
}

.rfp-ss-face-overlay.is-success .rfp-ss-face-oval {
  border-color: #4caf50;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(76, 175, 80, 0.5);
}

.rfp-ss-face-scanline {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: rfpSsScan 2.2s ease-in-out infinite;
  top: 28%;
}

@keyframes rfpSsScan {
  0%, 100% { top: 22%; opacity: 0.4; }
  50% { top: 68%; opacity: 1; }
}

.rfp-ss-face-ph {
  text-align: center;
  color: var(--text3);
  padding: 24px;
  z-index: 1;
}

.rfp-ss-face-ph i {
  font-size: 64px;
  color: rgba(0, 212, 255, 0.35);
  margin-bottom: 12px;
}

.rfp-ss-face-ph p {
  font-size: 13px;
  max-width: 220px;
  margin: 0 auto;
}

.rfp-ss-face-status {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.88);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  z-index: 5;
}

.rfp-ss-face-status.is-ok {
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.rfp-ss-blink-panel {
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 31, 162, 0.1));
  text-align: center;
}

.rfp-ss-blink-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
  margin: 0 0 8px;
}

.rfp-ss-blink-title i {
  margin-right: 6px;
}

.rfp-ss-blink-prompt {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.4;
}

.rfp-ss-blink-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rfp-ss-blink-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.rfp-ss-blink-dot.is-active {
  transform: scale(1.15);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.rfp-ss-blink-dot.is-done {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
}

.rfp-ss-blink-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin: 0;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.04em;
}

.rfp-ss-face-tips {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text2);
}

.rfp-ss-face-tips li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}

.rfp-ss-face-tips i {
  color: var(--cyan);
  margin-top: 2px;
}

.rfp-ss-actions--face {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.rfp-ss-actions--face .rfp-pbtn {
  flex: 1 1 140px;
  justify-content: center;
}

.rfp-ss-temp-guide {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.25);
  margin-bottom: 20px;
}

.rfp-ss-temp-icon {
  font-size: 32px;
  color: #ff7043;
  flex-shrink: 0;
}

.rfp-ss-temp-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
}

.rfp-ss-temp-proximity {
  text-align: center;
  margin-bottom: 20px;
}

.rfp-ss-temp-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
}

.rfp-ss-temp-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rfp-ss-temp-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.rfp-ss-temp-progress {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.rfp-ss-temp-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.rfp-ss-temp-ring-inner i {
  font-size: 22px;
  color: #ff7043;
}

.rfp-ss-temp-ring-inner span {
  font-size: 28px;
  font-weight: 800;
  font-family: Orbitron, sans-serif;
  color: var(--cyan);
}

.rfp-ss-temp-ring-inner small {
  font-size: 10px;
  color: var(--text3);
}

.rfp-ss-temp-prox-msg {
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 14px;
  min-height: 2.6em;
}

.rfp-ss-temp-prox-msg.is-active {
  color: var(--cyan);
  font-weight: 600;
}

.rfp-ss-temp-prox-msg.is-warn {
  color: #ffb74d;
}

.rfp-ss-temp-prox-msg.is-done {
  color: #81c784;
}

.rfp-ss-temp-result {
  display: none;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.rfp-ss-temp-result.is-visible {
  display: block;
}

.rfp-ss-temp-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rfp-ss-input--temp {
  max-width: 140px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  font-family: Orbitron, sans-serif;
}

.rfp-ss-temp-unit {
  font-size: 22px;
  font-weight: 700;
  color: var(--text3);
}

.rfp-ss-temp-valid {
  font-size: 12px;
  margin: 8px 0 0;
}

.rfp-ss-temp-valid.is-ok {
  color: #81c784;
}

.rfp-ss-temp-valid.is-err {
  color: #ff8a80;
}

.rfp-ss-temp-warn {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.45;
  margin: 0;
}

.rfp-ss-temp-warn i {
  color: var(--cyan);
  margin-right: 6px;
}

.rfp-ss-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text2);
  margin-bottom: 8px;
}

.rfp-ss-error {
  color: #ff8a80;
  margin-bottom: 16px;
}
.rfp-ss-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.rfp-ss-risk-card {
  text-align: center;
  padding: 28px;
  border: 2px solid;
  border-radius: 16px;
  margin-bottom: 20px;
}
.rfp-ss-score {
  font-size: 56px;
  font-weight: 900;
  font-family: Orbitron, sans-serif;
}
.rfp-ss-map {
  height: 280px;
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
}
.rfp-ss-res-item {
  padding: 12px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rfp-ss-hotline-btn {
  display: block;
  padding: 14px;
  margin: 8px 0;
  background: #c62828;
  color: #fff !important;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}
.rfp-ss-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: rfpSpin 0.8s linear infinite;
  margin: 24px auto;
}
@keyframes rfpSpin {
  to { transform: rotate(360deg); }
}
.rfp-ss-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text1);
  font-size: 16px;
  font-family: inherit;
}

.rfp-ss-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.rfp-ss-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .rfp-ss-progress-lbl {
    display: none;
  }

  .rfp-ss-progress-item.current .rfp-ss-progress-lbl {
    display: inline;
  }

  .rfp-ss-face-box {
    max-height: 360px;
  }
}

/* Graphiques & détails — labels lisibles sur fond sombre */
.rfp-chart-box,
.rfp-ccard .rfp-chart-box {
  color: var(--text1);
}

.rfp-ccard-title {
  color: var(--text1);
}

.rfp-risk-bar span {
  color: #ffffff;
  font-weight: 700;
}

.rfp-ss-risk-card,
.rfp-ss-risk-card p {
  color: var(--text1);
}

.rfp-ss-score {
  color: var(--text1);
}

.rfp-scr-score-val {
  color: #ffffff;
}

.rfp-scr-score-lbl {
  color: var(--text2);
}

/* ─── Meta (WhatsApp / partages sociaux) ─── */
.rfp-meta-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.rfp-meta-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
}

.rfp-meta-channel i {
  font-size: 16px;
}

.rfp-meta-channel--meta {
  border-color: rgba(0, 129, 251, 0.45);
  background: rgba(0, 129, 251, 0.12);
  color: #ffffff;
}

.rfp-meta-channel--meta .fa-meta {
  color: #0081fb;
  font-size: 18px;
}

.rfp-meta-icon-inline {
  color: #0081fb;
  font-size: 14px;
  margin-left: 4px;
  vertical-align: middle;
}

.rfp-partner-card--meta .rfp-pcard-logo--meta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 36px;
  color: #0081fb;
  background: rgba(0, 129, 251, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(0, 129, 251, 0.35);
}

.rfp-partner-card--meta {
  border-color: rgba(0, 129, 251, 0.25);
  box-shadow: 0 0 24px rgba(0, 129, 251, 0.08);
}
