/* =====================================================
   UI.CSS - SIMPLIFIÉ ET UNIFIÉ
   Styles pour index.html, commune.html, entreprise.html
   ===================================================== */

/* ===== VARIABLES COMMUNES ===== */
:root {
  --bg: #050816;
  --bg-alt: #070a1a;
  --card: #0b1022;
  --card-soft: #0f172a;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-strong: #818cf8;
  --accent-500: #6366f1;
  --accent-400: #818cf8;
  --accent-300: #a5b4fc;
  --accent-200: rgba(99, 102, 241, 0.28);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-500: #f87171;
  --danger-600: #ef4444;
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --warning-500: #fbbf24;
  --warning-600: #f59e0b;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --success-500: #34d399;
  --success-600: #10b981;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.4);
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --card-radius: 24px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a1f35 0%, #0a0e1a 60%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  position: relative;
  z-index: 1;
}

/* ===== BACKGROUND DECORATIONS ===== */
.bg-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-icon {
  position: absolute;
  opacity: 0.08;
  filter: drop-shadow(0 20px 60px rgba(99, 102, 241, 0.3));
  will-change: transform;
}

.bg-icon--mail {
  top: 8vh;
  left: 5vw;
  width: min(260px, 40vw);
}

.bg-icon--radar {
  top: 25vh;
  right: 6vw;
  width: min(300px, 45vw);
}

.bg-icon--link {
  bottom: 10vh;
  left: 8vw;
  width: min(320px, 48vw);
}

/* ===== HEADER ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  flex-shrink: 0;
  position: relative;
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.6;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
}

.brand-text-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-pro-link {
  font-size: 12px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.header-pro-link::before {
  content: "💼";
  font-size: 14px;
}

.header-pro-link:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.header-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #15803d 70%);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* ===== INSTANCE BANNER (commune/entreprise) ===== */
.instance-banner {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #f9fafb;
}

.instance-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  font-size: 20px;
  flex-shrink: 0;
}

.instance-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.instance-title strong {
  font-weight: 700;
}

.instance-sub {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
  line-height: 1.4;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.hero-title {
  font-size: clamp(28px, 5.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #a5b4fc 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-pill {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  font-weight: 500;
}

.hero-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  font-size: 12px;
}

/* ===== LAYOUT ===== */
.layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ===== CARDS ===== */
.card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(15, 23, 42, 0.6);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.8;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card--primary {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(129, 140, 248, 0.2);
}

.card--secondary {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(148, 163, 184, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header--simple {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.card-header--simple .tabs {
  width: 100%;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.steps {
  margin: 0 0 20px 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.steps li {
  margin-bottom: 6px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  width: 100%;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  gap: 4px;
}

.tabs--full {
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border-radius: var(--radius-pill);
  font-size: 12px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
}

.tab.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-1px);
}

.tab::after {
  content: "";
  display: none;
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.panel,
.panel-result,
.dashboard-panel {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.panel.is-active,
.panel-result.is-active,
.dashboard-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FORM ELEMENTS ===== */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.label-hint {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
}

textarea {
  resize: vertical;
  min-height: 180px;
  max-height: 300px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  font-family: inherit;
}

textarea:focus {
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(15, 23, 42, 0.6);
}

textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.file-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.file-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all var(--transition-fast);
}

.file-upload-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.file-upload-trigger:active {
  transform: translateY(0);
}

.file-upload-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.file-name {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.button-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .button-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.btn-primary {
  border-radius: var(--radius-pill);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.2), transparent 70%);
  transform: translateX(-140%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover::after {
  transform: translateX(140%);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary-icon {
  font-size: 16px;
}

.btn-primary--full {
  width: 100%;
  justify-content: center;
}

@media (min-width: 900px) {
  .btn-primary--full {
    width: auto;
  }
}

/* ===== STATUS TEXT ===== */
.status-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-400);
  box-shadow: 0 0 0 4px var(--accent-200);
}

.status-text.error {
  color: #fca5a5;
}

.status-text.error .status-dot {
  background: var(--danger-500);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}

.status-text.loading .status-dot {
  animation: pulse-status 1s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.privacy-note {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== TRANSFER CARD ===== */
.transfer-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(129, 140, 248, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.transfer-card--compact {
  padding: 16px;
}

.transfer-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon text"
    "button button";
  align-items: center;
  gap: 12px;
}

.transfer-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-300);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
}

.transfer-inline-text {
  grid-area: text;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

.transfer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(191, 219, 254, 0.8);
  margin-bottom: 8px;
  font-weight: 700;
}

.transfer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.transfer-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.transfer-email {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.transfer-email-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  font-family: "Inter", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-main);
  -webkit-appearance: none;
  appearance: none;
}

.transfer-card--compact .transfer-email-tag {
  grid-area: button;
  justify-self: start;
  align-self: center;
}

@media (min-width: 640px) {
  .transfer-inline {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon text button";
  }
}

.transfer-email-tag::before {
  content: "";
  display: none;
}

.transfer-email-tag:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.transfer-email-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.transfer-list {
  margin: 0 0 8px 20px;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.transfer-list li {
  margin-bottom: 4px;
}

/* ===== RESULT WRAPPER ===== */
.result-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.result-empty {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 20px;
  font-weight: 500;
}

.result-empty p:first-child {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.analysis-preview {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.analysis-preview--inline {
  justify-content: flex-start;
}

.preview-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 420px;
  width: 100%;
}

.preview-ring {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid rgba(129, 140, 248, 0.35);
  border-top-color: rgba(129, 140, 248, 0.95);
  border-right-color: rgba(129, 140, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.preview-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.preview-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.8);
}

.preview-details {
  text-align: left;
}

.preview-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.preview-list li::before {
  content: "•";
  margin-right: 6px;
  color: var(--accent-300);
}

.result-wrapper.has-result .analysis-preview {
  display: none;
}

/* Hide elements when empty */
.result-wrapper.is-empty .risk-pill,
.result-wrapper.is-empty .score-gauge,
.result-wrapper.is-empty .recommendation,
.result-wrapper.is-empty .reason-list,
.result-wrapper.is-empty .urls-box,
.result-wrapper.is-empty .limited-badge {
  display: none;
}

.result-wrapper.is-empty .result-empty {
  display: block;
}

.result-wrapper:not(.is-empty) .result-empty {
  display: none;
}

/* ===== RISK PILL ===== */
.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 14px 20px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pill-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.risk-pill.low {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
}

.risk-pill.low .pill-badge {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  color: #022c22;
}

.risk-pill.medium {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde047;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.risk-pill.medium .pill-badge {
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
  color: #451a03;
}

.risk-pill.high {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.25);
}

.risk-pill.high .pill-badge {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  color: #450a0a;
}

/* ===== SCORE GAUGE ===== */
.score-gauge {
  margin-top: 24px;
  display: grid;
  gap: 32px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .score-gauge {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  overflow: visible;
  border: 3px solid rgba(148, 163, 184, 0.15);
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --score: 0;
}

.score-circle::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: conic-gradient(
    from -90deg,
    transparent 0deg,
    var(--progress-color, rgba(148, 163, 184, 0.3)) calc(var(--score) * 3.6deg),
    transparent calc(var(--score) * 3.6deg)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 12px var(--progress-glow, rgba(148, 163, 184, 0.3)));
}

.result-wrapper[data-risk="low"] .score-circle {
  --progress-color: #34d399;
  --progress-glow: rgba(52, 211, 153, 0.6);
  border-color: rgba(52, 211, 153, 0.3);
}

.result-wrapper[data-risk="medium"] .score-circle {
  --progress-color: #fbbf24;
  --progress-glow: rgba(251, 191, 36, 0.6);
  border-color: rgba(251, 191, 36, 0.3);
}

.result-wrapper[data-risk="high"] .score-circle {
  --progress-color: #f87171;
  --progress-glow: rgba(248, 113, 113, 0.6);
  border-color: rgba(248, 113, 113, 0.3);
}

.score-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 700;
}

.gauge-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.gauge-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  transition: all var(--transition-fast);
}

.gauge-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.progress-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 3px);
  opacity: 0.18;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  width: 0%;
  background: linear-gradient(90deg, #34d399, #fbbf24, #f87171);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 75%);
  transform: translateX(-120%);
  animation: progress-shine 1.6s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.progress-scale {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== RECOMMENDATION ===== */
.recommendation {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  line-height: 1.6;
  font-weight: 500;
}

.recommendation-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(129, 140, 248, 0.9);
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-title::before {
  content: "💡";
  font-size: 16px;
}

/* ===== REASON LIST ===== */
.reason-list {
  margin-top: 24px;
  padding: 0;
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reason-item {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.reason-list.is-animated .reason-item,
.urls-list.is-animated .url-item {
  opacity: 0;
  transform: translateY(6px);
  animation: list-reveal 420ms ease forwards;
}

.reason-list.is-animated .reason-item:nth-child(2),
.urls-list.is-animated .url-item:nth-child(2) {
  animation-delay: 80ms;
}

.reason-list.is-animated .reason-item:nth-child(3),
.urls-list.is-animated .url-item:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes list-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== URLS BOX ===== */
.urls-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: var(--text-muted);
}

.urls-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  margin-bottom: 12px;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.urls-title::before {
  content: "🔗";
  font-size: 14px;
}

.urls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.url-item {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.url-item:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(129, 140, 248, 0.3);
}

.url-item a {
  color: #93c5fd;
  text-decoration: none;
  word-break: break-all;
}

.url-item a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.empty-state {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

/* ===== LIMITED BADGE ===== */
.limited-badge {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
  backdrop-filter: blur(12px);
  display: none;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

.limited-badge-icon {
  font-size: 20px;
  line-height: 1;
}

.limited-badge-text strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fde047;
  margin-bottom: 6px;
  font-weight: 700;
}

/* ===== DASHBOARD (commune/entreprise) ===== */
.dashboard-panel {
  display: none;
}

.dashboard-header {
  margin-bottom: 16px;
}

.dashboard-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dashboard-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.dashboard-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-pill {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.range-switcher {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.range-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
  font-family: inherit;
}

.range-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: rgba(129, 140, 248, 0.3);
  color: white;
}

.range-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(129, 140, 248, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-card {
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.stat-label {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-tag {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.8);
  margin-top: 4px;
  font-weight: 500;
}

.stat-value.low {
  color: var(--success);
}

.stat-value.medium {
  color: var(--warning);
}

.stat-value.high {
  color: var(--danger);
}

.chart-container {
  margin-top: 24px;
  border-radius: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-dot.total { background: #e5e7eb; }
.legend-dot.low { background: var(--success); }
.legend-dot.medium { background: var(--warning); }
.legend-dot.high { background: var(--danger); }

.chart-svg {
  width: 100%;
  height: 140px;
  display: block;
}

.chart-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
  font-weight: 500;
}

.chart-xlabels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

/* ===== GUIDES SECTION ===== */
.guides-card {
  margin-top: 32px;
}

.guides-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.guides-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guides-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.guides-toggle {
  font-size: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.guides-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.guides-grid {
  display: none;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.guides-grid.open {
  display: grid;
}

@media (min-width: 720px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-item {
  display: block;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.guide-item:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.guide-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(191, 219, 254, 0.8);
  margin-bottom: 12px;
  font-weight: 700;
}

.guide-item-tag-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.guide-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.guide-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  align-self: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #e5e7eb;
}

/* ===== ANALYSIS ANIMATIONS ===== */
.analysis-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.analysis-orb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(165, 180, 252, 0.22), rgba(15, 23, 42, 0.92) 60%);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.12) inset,
    0 0 18px rgba(99, 102, 241, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.analysis-orb::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 2px solid rgba(99, 102, 241, 0.16);
  border-top-color: rgba(191, 219, 254, 0.95);
  border-right-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.35);
  animation: spin 1.1s linear infinite;
}

.analysis-orb::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.28), rgba(129, 140, 248, 0) 65%);
  animation: pulse-orb 1.6s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-orb {
  0% { transform: scale(0.92); opacity: 0.35; }
  50% { transform: scale(1.06); opacity: 0.7; }
  100% { transform: scale(0.92); opacity: 0.35; }
}

.analysis-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.analysis-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.analysis-stage {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.1);
  overflow: hidden;
  margin-top: 4px;
}

.analysis-track span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 0.3),
    rgba(129, 140, 248, 0.8),
    rgba(99, 102, 241, 0.3)
  );
  animation: slide 1.2s ease-in-out infinite;
}

@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

.result-wrapper.is-busy {
  opacity: 0.86;
  filter: saturate(0.95);
}

.result-wrapper.just-analysed {
  animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.result-wrapper.has-result .score-gauge,
.result-wrapper.has-result .recommendation {
  animation: fadeInUp 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gauge-title.is-swapping,
.gauge-desc.is-swapping {
  opacity: 0.62;
  transform: translateY(1px);
  filter: blur(0.15px);
}

/* ===== TOAST ===== */
.da-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.95);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.da-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
  .page {
    padding: 20px 16px 32px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-pills {
    display: none;
  }

  .card {
    padding: 20px;
  }

  .score-gauge {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .score-circle {
    width: 120px;
    height: 120px;
  }

  .score-value {
    font-size: 40px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .bg-icons {
    position: absolute;
    height: 1800px;
  }

  .bg-icon {
    opacity: 0.05;
  }
}

/* =====================================================
   PAGE PRO - STYLES SPÉCIFIQUES
   ===================================================== */

html[data-page="pro"] {
  --bg: #050816;
  --bg-alt: #070a1a;
  --card: #0b1022;
  --card-soft: #0f172a;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --accent: #4f46e5;
  --accent-strong: #6366f1;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.65);
  --transition-fast: 150ms ease-out;
  --card-radius: 18px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.65);
}

html[data-page="pro"] body {
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
}

html[data-page="pro"] .header-pill {
  font-size: 11px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

html[data-page="pro"] .header-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #15803d 70%);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.20);
}

html[data-page="pro"] .header-link {
  font-size: 11px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

html[data-page="pro"] .header-link:hover {
  transform: translateY(-0.5px);
  border-color: rgba(129, 140, 248, 0.9);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 1);
}

html[data-page="pro"] .hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.55;
}

html[data-page="pro"] .hero-bullets {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  html[data-page="pro"] .hero-bullets {
    grid-template-columns: 1fr;
  }
}

html[data-page="pro"] .bullet {
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-muted);
  line-height: 1.45;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

html[data-page="pro"] .bullet .icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

html[data-page="pro"] .bullet strong {
  color: #e5e7eb;
  font-weight: 600;
}

html[data-page="pro"] .how {
  margin-top: 12px;
  border-radius: 18px;
  padding: 12px 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

html[data-page="pro"] .how-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

html[data-page="pro"] .steps {
  display: grid;
  gap: 8px;
}

html[data-page="pro"] .step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

html[data-page="pro"] .step .n {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #c7d2fe;
  flex-shrink: 0;
  margin-top: 2px;
}

html[data-page="pro"] .step strong {
  color: #e5e7eb;
  font-weight: 600;
}

html[data-page="pro"] .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

html[data-page="pro"] .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

html[data-page="pro"] .btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.45);
}

html[data-page="pro"] .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.55);
}

html[data-page="pro"] .btn-primary:active {
  transform: translateY(0);
}

html[data-page="pro"] .btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

html[data-page="pro"] .btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.75);
}

html[data-page="pro"] .pro-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  html[data-page="pro"] .pro-layout {
    grid-template-columns: 1fr;
  }
}

html[data-page="pro"] .section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

html[data-page="pro"] .section-kicker {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

html[data-page="pro"] .section-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

html[data-page="pro"] .section-text + .section-text {
  margin-top: 10px;
}

html[data-page="pro"] .list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

html[data-page="pro"] .audiences {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 900px) {
  html[data-page="pro"] .audiences {
    grid-template-columns: 1fr;
  }
}

html[data-page="pro"] .aud-card {
  position: relative;
  overflow: hidden;
}

html[data-page="pro"] .aud-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 15%, rgba(79, 70, 229, 0.22), transparent 55%);
  pointer-events: none;
}

html[data-page="pro"] .aud-inner {
  position: relative;
}

html[data-page="pro"] .aud-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

html[data-page="pro"] .aud-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

html[data-page="pro"] .aud-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

html[data-page="pro"] .aud-block-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 10px;
  margin-bottom: 6px;
}

html[data-page="pro"] .ticks {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

html[data-page="pro"] .tick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

html[data-page="pro"] .tick .ticon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
  color: #86efac;
}

html[data-page="pro"] .tick .ttext strong {
  color: #e5e7eb;
  font-weight: 600;
}

html[data-page="pro"] .sticky-stack {
  position: sticky;
  top: 14px;
  z-index: 3;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding-right: 4px;
}

html[data-page="pro"] .sticky-stack::-webkit-scrollbar {
  width: 10px;
}

html[data-page="pro"] .sticky-stack::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  border: 2px solid rgba(2, 6, 23, 0.35);
}

@media (max-width: 980px) {
  html[data-page="pro"] .sticky-stack {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

html[data-page="pro"] .contact-card {
  border: 1px solid rgba(129, 140, 248, 0.55);
  background: radial-gradient(140% 120% at 15% 0%,
    rgba(99, 102, 241, 0.30) 0%,
    rgba(15, 23, 42, 0.72) 45%,
    rgba(15, 23, 42, 0.70) 100%);
  box-shadow: 0 28px 70px rgba(79, 70, 229, 0.26),
    0 18px 45px rgba(15, 23, 42, 0.55);
  position: relative;
  overflow: hidden;
}

html[data-page="pro"] .contact-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg,
    rgba(99, 102, 241, 0.48),
    rgba(251, 191, 36, 0.18),
    rgba(248, 113, 113, 0.18));
  filter: blur(18px);
  opacity: .52;
  z-index: 0;
  pointer-events: none;
}

html[data-page="pro"] .contact-card > * {
  position: relative;
  z-index: 1;
}

html[data-page="pro"] .contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(229, 231, 235, 0.92);
  margin-bottom: 10px;
  width: max-content;
}

html[data-page="pro"] .form-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

html[data-page="pro"] .form-grid {
  display: grid;
  gap: 10px;
}

html[data-page="pro"] .field label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

html[data-page="pro"] .input,
html[data-page="pro"] .select,
html[data-page="pro"] .textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.35);
  color: #e5e7eb;
  padding: 10px 11px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
}

html[data-page="pro"] .textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

html[data-page="pro"] .input:focus,
html[data-page="pro"] .select:focus,
html[data-page="pro"] .textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-0.5px);
}

html[data-page="pro"] .form-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

html[data-page="pro"] .form-status {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.75);
  display: none;
}

html[data-page="pro"] .form-status.ok {
  display: block;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: #bbf7d0;
}

html[data-page="pro"] .form-status.err {
  display: block;
  border-color: rgba(248, 113, 113, 0.40);
  background: rgba(248, 113, 113, 0.10);
  color: #fecaca;
}

html[data-page="pro"] .small-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}

html[data-page="pro"] .risk-strip {
  margin-top: 12px;
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

html[data-page="pro"] .risk-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

html[data-page="pro"] .risk-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[data-page="pro"] .risk-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

html[data-page="pro"] .risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  html[data-page="pro"] .risk-grid {
    grid-template-columns: 1fr;
  }
}

html[data-page="pro"] .risk-card {
  border-radius: 14px;
  padding: 10px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.28);
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: start;
}

html[data-page="pro"] .risk-card.red {
  border-color: rgba(248, 113, 113, 0.75);
  background: var(--danger-soft);
}

html[data-page="pro"] .risk-card.orange {
  border-color: rgba(251, 191, 36, 0.75);
  background: var(--warning-soft);
}

html[data-page="pro"] .risk-tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.92);
}

html[data-page="pro"] .risk-kpi {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #e5e7eb;
}

html[data-page="pro"] .risk-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

html[data-page="pro"] .risk-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
  opacity: 0.95;
}

html[data-page="pro"] .risk-foot a {
  color: rgba(165, 180, 252, 0.95);
  text-decoration: none;
}

html[data-page="pro"] .risk-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  html[data-page="pro"] .btn {
    width: 100%;
    justify-content: center;
  }

  html[data-page="pro"] .btn-row {
    display: grid;
  }
}

/* =====================================================
   COMPACT MODE (vertical spacing)
   À coller tout en bas de ui.css
   ===================================================== */

.page { padding: 24px 20px 36px; }              /* avant: 32/48 */ 
header { margin-bottom: 28px; }                 /* avant: 40 */

.instance-banner { margin-bottom: 18px; padding: 14px 18px; }  /* avant: 24 + 16/20 */

.hero { gap: 16px; margin-bottom: 34px; }       /* avant: 20 / 48 */
.hero-pills { margin-top: 12px; }               /* avant: 16 */

.layout { gap: 18px; }                          /* avant: 24 */

.card { padding: 22px; }                        /* avant: 28 */
.card-header { margin-bottom: 16px; }           /* avant: 20 */
.card-header--simple { margin-bottom: 12px; }   /* avant: 16 */

.tabs--full { margin-bottom: 14px; }            /* avant: 20 */

.steps { margin: 0 0 14px 0; }                  /* avant: 20 */
.steps li { margin-bottom: 4px; }               /* avant: 6 */

.field-group { margin-bottom: 12px; }           /* avant: 16 */
textarea { min-height: 160px; }                 /* avant: 180 */
.button-row { margin-top: 12px; }               /* avant: 16 */

.transfer-card { margin-top: 18px; padding: 16px 18px; } /* avant: 24 + 20 */

.result-wrapper { gap: 16px; }                  /* avant: 20 */
.result-empty { padding: 44px 18px; }           /* avant: 60 */

.limited-badge { margin-top: 16px; }            /* avant: 20 */

.score-gauge { margin-top: 18px; padding: 24px; gap: 24px; } /* avant: 24 + 32 + 32 */

.recommendation { margin-top: 18px; padding: 16px 18px; }    /* avant: 24 + 20/24 */
.reason-list { margin-top: 18px; gap: 6px; }                 /* avant: 24 + 8 */
.urls-box { margin-top: 18px; padding: 16px 18px; }          /* avant: 24 + 20/24 */

/* Dashboard / charts */
.range-switcher { margin-top: 12px; }          /* avant: 16 */
.stats-grid { margin-top: 16px; }              /* avant: 20 */
.chart-container { margin-top: 16px; }         /* avant: 24 */

/* Guides (SEO accordion) */
.guides-card { margin-top: 22px; }             /* avant: 32 */
.guides-grid { margin-top: 12px; gap: 12px; }  /* avant: 16 / 16 */
.guide-item { padding: 16px 18px; }            /* avant: 20/24 */
