/* EuroVerif — app.css */

:root {
  --ev-red:     #dc3545;
  --ev-green:   #198754;
  --ev-neutral: #6c757d;
  --ev-blue:    #0d6efd;
}

/* Typographie */
body {
  font-size: 1rem;
  line-height: 1.6;
  color: #212529;
}


/* Bandeau bêta */
.ev-beta-banner {
  background: #b00020;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.45rem 0;
}
.ev-beta-banner strong {
  letter-spacing: 0.06em;
}
.ev-beta-banner span {
  opacity: 0.96;
}

/* Navbar */
.navbar-brand {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

/* Cartes résultat */
.ev-card-red    { border-left: 4px solid var(--ev-red);     }
.ev-card-green  { border-left: 4px solid var(--ev-green);   }
.ev-card-neutral{ border-left: 4px solid var(--ev-neutral); }

/* Badges trois listes + indéterminé */
.badge-red      { background-color: #fff0f0; color: var(--ev-red);     border: 1px solid #ffcccc; }
.badge-green    { background-color: #f0fff4; color: var(--ev-green);   border: 1px solid #c3e6cb; }
.badge-neutral  { background-color: #f8f9fa; color: var(--ev-neutral); border: 1px solid #dee2e6; }
.badge-grey     { background-color: #fff8e1; color: #856404;           border: 1px solid #ffc107; }

/* Indicateur de souveraineté */
.ev-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}
.ev-indicator.red     { background: #fff0f0; color: var(--ev-red);     }
.ev-indicator.green   { background: #f0fff4; color: var(--ev-green);   }
.ev-indicator.neutral { background: #f8f9fa; color: var(--ev-neutral); }
.ev-indicator.grey    { background: #fff8e1; color: #856404;           }

/* Formulaire accueil */
#analyzeForm .input-group-text {
  background: white;
  border-right: 0;
}
#analyzeForm .form-control {
  border-left: 0;
}
#analyzeForm .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Rapport */
.ev-detection-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.ev-detection-item:hover {
  background: #fafafa;
}
.ev-detection-item:last-child {
  border-bottom: none;
}

.ev-source-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ev-source-dns   { background: #e7f3ff; color: #0d6efd; }
.ev-source-http  { background: #e8f5e9; color: #2e7d32; }
.ev-source-html  { background: #fff8e1; color: #f57f17; }
.ev-source-ssl   { background: #f3e5f5; color: #6a1b9a; }
.ev-source-ip    { background: #fce4ec; color: #880e4f; }
.ev-source-csp   { background: #e8eaf6; color: #283593; }

/* Admin */
.admin-sidebar {
  min-height: calc(100vh - 56px);
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
}
.admin-sidebar .nav-link {
  color: #495057;
  padding: 8px 16px;
  border-radius: 6px;
  margin: 1px 8px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: #e9ecef;
  color: #212529;
}
.admin-sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

/* Observatoire */
.ev-stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  background: white;
  border: 1px solid #dee2e6;
}
.ev-stat-card .ev-stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.ev-stat-card .ev-stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chargement analyse */
.ev-loading {
  display: none;
}
.ev-loading.active {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ev-detection-item {
    padding: 10px 12px;
  }
}

/* Pays, drapeaux et badges juridictionnels */
.ev-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  background: #f8f9fa;
  color: #212529;
  font-size: 0.82rem;
  font-weight: 600;
}
.ev-country-flag {
  font-size: 1rem;
  line-height: 1;
}
.ev-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.ev-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.34rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.ev-meta-badge.success { background:#eefaf1; color:#146c43; border-color:#cfe8d8; }
.ev-meta-badge.success-soft { background:#f2fbff; color:#0a58ca; border-color:#cfe2ff; }
.ev-meta-badge.primary { background:#eef4ff; color:#0d6efd; border-color:#cfe2ff; }
.ev-meta-badge.info { background:#eef7ff; color:#055160; border-color:#b6effb; }
.ev-meta-badge.warning { background:#fff4e5; color:#9a3412; border-color:#fed7aa; }
.ev-meta-badge.warning-soft { background:#fff9db; color:#8a6d3b; border-color:#ffe69c; }
.ev-meta-badge.danger { background:#fff1f2; color:#b42318; border-color:#fecdd3; }
.ev-meta-badge.neutral { background:#f3f4f6; color:#4b5563; border-color:#e5e7eb; }

/* Accueil plus direct */
.ev-home-hero h1 {
  letter-spacing: -0.025em;
}
.ev-home-submit-card {
  border-top: 4px solid var(--ev-blue) !important;
}

/* Bandeau bêta renforcé */
.ev-beta-banner {
  background: #b00020 !important;
  color: #fff !important;
  border-bottom: 1px solid #7f0017;
}
.ev-beta-banner a,
.ev-beta-banner strong,
.ev-beta-banner span {
  color: #fff !important;
}


/* Patch 23 — accueil compact et bandeau bêta rouge */
body .ev-beta-banner {
  background: #b00020 !important;
  color: #fff !important;
  border-bottom: 1px solid #7f0017 !important;
}
body .ev-beta-banner .container,
body .ev-beta-banner strong,
body .ev-beta-banner span {
  color: #fff !important;
}
.ev-home-hero {
  min-height: auto;
}
.ev-home-hero .lead {
  font-size: 1.15rem;
}
@media (max-width: 576px) {
  .ev-home-hero .input-group-lg {
    flex-direction: column;
  }
  .ev-home-hero .input-group-lg > * {
    width: 100%;
    border-radius: .5rem !important;
    margin-bottom: .5rem;
  }
  .ev-home-hero .input-group-text {
    display: none;
  }
  .ev-home-hero .form-control {
    padding-left: 1rem !important;
    border-left: 1px solid #dee2e6 !important;
  }
}

/* Patch 26 — rapport plus lisible */
.ev-report-shell {
  position: relative;
}
.ev-report-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e9ecef !important;
  overflow: hidden;
}
.ev-report-hero::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #dc3545 0%, #fd7e14 35%, #ffc107 65%, #198754 100%);
}
.ev-barometer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.9rem;
}
.ev-barometer-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc3545 0%, #fd7e14 38%, #ffc107 68%, #198754 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.ev-barometer-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #212529;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ev-barometer-marker-muted {
  border-color: #6c757d;
  opacity: .75;
}
.ev-barometer-legend {
  display: flex;
  justify-content: space-between;
}
.ev-report-metric {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .055);
}
.ev-report-metric-red { border-top: 4px solid var(--ev-red); }
.ev-report-metric-green { border-top: 4px solid var(--ev-green); }
.ev-report-metric-neutral { border-top: 4px solid var(--ev-neutral); }
.ev-report-metric-grey { border-top: 4px solid #ffc107; }
.ev-report-metric-number {
  font-size: 2.15rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ev-report-note {
  background: #f8fafc;
  border: 1px solid #e9ecef;
  border-radius: .9rem;
  padding: .9rem 1rem;
  color: #6c757d;
  font-size: .92rem;
}
@media (max-width: 768px) {
  .ev-report-hero .card-body { padding: 1.25rem !important; }
  .ev-report-metric-number { font-size: 1.85rem; }
}

/* Patch 29 — rapport orienté résultat */
.ev-report-page {
  background: #f5f7fb;
  border-radius: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.ev-report-page > .row:first-of-type .col-lg-9 > .d-flex {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .045);
}
.ev-report-result-card {
  border: 1px solid #e6eaf0 !important;
  overflow: hidden;
  background: #fff;
}
.ev-report-result-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #dc3545 0%, #fd7e14 38%, #ffc107 68%, #198754 100%);
}
.ev-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  border: 1px solid transparent;
}
.ev-result-pill-danger { background:#fff1f2; color:#b42318; border-color:#fecdd3; }
.ev-result-pill-orange { background:#fff4e5; color:#9a3412; border-color:#fed7aa; }
.ev-result-pill-yellow { background:#fff9db; color:#8a6d3b; border-color:#ffe69c; }
.ev-result-pill-success { background:#eefaf1; color:#146c43; border-color:#cfe8d8; }
.ev-result-pill-neutral { background:#f3f4f6; color:#4b5563; border-color:#e5e7eb; }
.ev-report-metrics .ev-report-metric {
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
}
.ev-detail-card {
  border: 1px solid #e9ecef !important;
  overflow: hidden;
}
.ev-detail-card-red { border-left: 4px solid var(--ev-red) !important; }
.ev-detail-card-green { border-left: 4px solid var(--ev-green) !important; }
.ev-detail-card-neutral { border-left: 4px solid var(--ev-neutral) !important; }
.ev-detail-card-grey { border-left: 4px solid #ffc107 !important; }
.ev-empty-line {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}
.ev-robots-warning {
  background: #fff4e5;
  color: #713f12;
}
.ev-report-explainer {
  background: #fff;
  border: 1px solid #e9ecef !important;
}
@media (max-width: 768px) {
  .ev-report-page {
    padding-left: .5rem;
    padding-right: .5rem;
  }
  .ev-report-page > .row:first-of-type .col-lg-9 > .d-flex {
    padding: .9rem;
  }
  .ev-result-pill {
    min-width: auto;
    width: 100%;
  }
}

/* Patch 30 — rapport plus plat, fond clair, cartes teintées */
body:has(.ev-report-page) main {
  background: #f4f6f8;
}
.ev-report-page {
  background: #f4f6f8;
  border-radius: 0;
  box-shadow: 0 0 0 100vmax #f4f6f8;
  clip-path: inset(0 -100vmax);
}
.ev-report-page .card,
.ev-report-page .alert,
.ev-report-page .ev-report-metric,
.ev-report-page .ev-barometer,
.ev-report-page > .row:first-of-type .col-lg-9 > .d-flex {
  box-shadow: none !important;
  border: 1px solid #dfe3ea !important;
}
.ev-report-page .card,
.ev-report-page .ev-report-result-card,
.ev-report-page .ev-report-explainer {
  background: #fff;
}
.ev-report-result-card::before {
  height: 5px;
}
.ev-report-metric {
  border-radius: .85rem;
  box-shadow: none !important;
}
.ev-report-metric-red {
  background: #fff5f5;
  border-color: #ffd6d6 !important;
  border-top: 4px solid var(--ev-red) !important;
}
.ev-report-metric-green {
  background: #f2fbf5;
  border-color: #cfe8d8 !important;
  border-top: 4px solid var(--ev-green) !important;
}
.ev-report-metric-neutral {
  background: #f3f7fb;
  border-color: #d8e6f3 !important;
  border-top: 4px solid #5c7c99 !important;
}
.ev-report-metric-grey {
  background: #fff9e8;
  border-color: #ffe69c !important;
  border-top: 4px solid #ffc107 !important;
}
.ev-report-metric-number {
  font-weight: 760;
}
.ev-detail-card {
  box-shadow: none !important;
  border-radius: .75rem;
  background: #fff;
}
.ev-detail-card .card-header {
  background: #fff !important;
}
.ev-detail-card-red { border-color: #ffd6d6 !important; border-left: 4px solid var(--ev-red) !important; }
.ev-detail-card-green { border-color: #cfe8d8 !important; border-left: 4px solid var(--ev-green) !important; }
.ev-detail-card-neutral { border-color: #d8e6f3 !important; border-left: 4px solid #5c7c99 !important; }
.ev-detail-card-grey { border-color: #ffe69c !important; border-left: 4px solid #ffc107 !important; }
.ev-detection-item {
  border-bottom: 1px dashed #dfe3ea;
  background: #fff;
}
.ev-detection-item:nth-child(even) {
  background: #f8fafc;
}
.ev-detection-item:hover {
  background: inherit;
}
.ev-empty-line {
  background: #f8fafc;
  border-radius: .5rem;
  padding-left: .75rem;
  padding-right: .75rem;
}
.ev-report-page .shadow-sm {
  box-shadow: none !important;
}
.ev-report-page .btn {
  box-shadow: none !important;
}

/* Patch 31 — rapport : jauge visuelle, bordures simples, aucun effet d'ombre */
body:has(.ev-report-page) main {
  background: #f4f6f8;
}
.ev-report-page,
.ev-report-page * {
  box-shadow: none !important;
}
.ev-report-page {
  background: #f4f6f8;
  border-radius: 0;
  box-shadow: 0 0 0 100vmax #f4f6f8 !important;
  clip-path: inset(0 -100vmax);
}
.ev-report-page .card,
.ev-report-page .alert,
.ev-report-page .ev-report-metric,
.ev-report-page .ev-report-result-card,
.ev-report-page .ev-report-explainer,
.ev-report-page .ev-report-cta,
.ev-report-page > .row:first-of-type .col-lg-9 > .d-flex {
  border: 1px solid #d8dee8 !important;
  border-radius: .85rem;
  background: #fff;
}
.ev-report-result-card {
  overflow: hidden;
}
.ev-report-result-card::before {
  display: none !important;
}
.ev-score-caption {
  padding: .55rem .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #f8fafc;
}
.ev-gauge {
  padding: .85rem .9rem .75rem;
  border: 1px solid #d8dee8;
  border-radius: .75rem;
  background: #ffffff;
}
.ev-gauge-track {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .85fr .85fr 1.1fr;
  height: 16px;
  border-radius: 999px;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
}
.ev-gauge-segment {
  min-width: 0;
  height: 100%;
}
.ev-gauge-red {
  background: #dc3545;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}
.ev-gauge-orange { background: #fd7e14; }
.ev-gauge-yellow { background: #ffc107; }
.ev-gauge-green {
  background: #198754;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}
.ev-gauge-marker {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -150%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 0;
  border-bottom: 10px solid #111827;
  z-index: 2;
}
.ev-gauge-marker::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111827;
  border: 2px solid #fff;
}
.ev-gauge-marker-muted {
  opacity: .55;
}
.ev-gauge-legend {
  display: flex;
  justify-content: space-between;
  color: #64748b;
}
.ev-barometer,
.ev-barometer-track,
.ev-barometer-marker,
.ev-result-pill {
  display: none !important;
}
.ev-report-metric {
  min-height: 10.4rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: .85rem;
}
.ev-report-metric-red {
  background: #fff5f5;
  border-color: #ffd6d6 !important;
  border-top: 4px solid var(--ev-red) !important;
}
.ev-report-metric-green {
  background: #f1fbf4;
  border-color: #cfe8d8 !important;
  border-top: 4px solid var(--ev-green) !important;
}
.ev-report-metric-neutral {
  background: #f3f7fb;
  border-color: #d8e6f3 !important;
  border-top: 4px solid #5c7c99 !important;
}
.ev-report-metric-grey {
  background: #fff9e8;
  border-color: #ffe69c !important;
  border-top: 4px solid #ffc107 !important;
}
.ev-report-metric-number {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.04em;
}
.ev-detail-card {
  border-radius: .75rem !important;
  overflow: hidden;
  background: #fff;
}
.ev-detail-card .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid #d8dee8 !important;
}
.ev-detail-card-red {
  border-color: #ffd6d6 !important;
  border-left: 4px solid var(--ev-red) !important;
}
.ev-detail-card-green {
  border-color: #cfe8d8 !important;
  border-left: 4px solid var(--ev-green) !important;
}
.ev-detail-card-neutral {
  border-color: #d8e6f3 !important;
  border-left: 4px solid #5c7c99 !important;
}
.ev-detail-card-grey {
  border-color: #ffe69c !important;
  border-left: 4px solid #ffc107 !important;
}
.ev-detection-item {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  transition: none;
}
.ev-detection-item:nth-child(even) {
  background: #f8fafc;
}
.ev-detection-item:hover {
  background: inherit !important;
}
.ev-empty-line {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: .7rem .85rem;
}
.ev-report-cta {
  border-color: #bfd7ff !important;
  background: #ffffff !important;
}
.ev-report-explainer {
  background: #fff;
}
.ev-report-page .badge {
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .ev-score-caption {
    width: 100%;
    text-align: left !important;
  }
  .ev-report-metric {
    min-height: 8.75rem;
  }
  .ev-report-metric-number {
    font-size: 2rem;
  }
}

/* Patch 32 — report visual consistency */
.ev-report-page {
  background: #f4f6f8 !important;
}
.ev-report-page .row.justify-content-center > .col-lg-10 {
  max-width: 980px;
}
.ev-report-page .card,
.ev-report-page .alert,
.ev-report-page .ev-report-metric,
.ev-report-page .ev-report-result-card,
.ev-report-page .ev-report-cta,
.ev-report-page .ev-report-explainer,
.ev-report-page .ev-detail-card {
  box-shadow: none !important;
}
.ev-report-result-card,
.ev-report-cta,
.ev-report-explainer,
.ev-detail-card {
  border-width: 1px !important;
  border-style: solid !important;
}
.ev-report-metric {
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: .9rem !important;
  padding: 1rem !important;
}
.ev-report-metric-red {
  background: #fff5f5 !important;
  border-color: #dc3545 !important;
  border-top: 4px solid #dc3545 !important;
}
.ev-report-metric-green {
  background: #f1fbf4 !important;
  border-color: #198754 !important;
  border-top: 4px solid #198754 !important;
}
.ev-report-metric-neutral {
  background: #f3f7fb !important;
  border-color: #64748b !important;
  border-top: 4px solid #64748b !important;
}
.ev-report-metric-grey {
  background: #fff9e8 !important;
  border-color: #f2b900 !important;
  border-top: 4px solid #f2b900 !important;
}
.ev-report-metric-number {
  font-size: 2.45rem !important;
  font-weight: 800 !important;
}
.ev-count-badge,
.ev-report-page .badge {
  font-weight: 700;
  border: 1px solid currentColor !important;
}
.ev-count-badge-red,
.badge-red {
  background: #ffe3e3 !important;
  color: #b4232f !important;
}
.ev-count-badge-green,
.badge-green {
  background: #dff5e8 !important;
  color: #146c43 !important;
}
.ev-count-badge-neutral,
.badge-neutral {
  background: #e6edf5 !important;
  color: #475569 !important;
}
.ev-count-badge-grey,
.badge-grey {
  background: #fff3cd !important;
  color: #7a5a00 !important;
}
.ev-detail-card {
  border-radius: .85rem !important;
  overflow: hidden;
  background: #fff !important;
}
.ev-detail-card .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
}
.ev-detail-card-red {
  border-color: #dc3545 !important;
  border-left: 4px solid #dc3545 !important;
}
.ev-detail-card-red .card-header {
  background: #fff5f5 !important;
}
.ev-detail-card-green {
  border-color: #198754 !important;
  border-left: 4px solid #198754 !important;
}
.ev-detail-card-green .card-header {
  background: #f1fbf4 !important;
}
.ev-detail-card-neutral {
  border-color: #64748b !important;
  border-left: 4px solid #64748b !important;
}
.ev-detail-card-neutral .card-header {
  background: #f3f7fb !important;
}
.ev-detail-card-grey {
  border-color: #f2b900 !important;
  border-left: 4px solid #f2b900 !important;
}
.ev-detail-card-grey .card-header {
  background: #fff9e8 !important;
}
.ev-detection-item {
  border-bottom: 1px solid #e2e8f0 !important;
  padding: .78rem 0 !important;
}
.ev-detection-item:nth-child(even) {
  background: #f8fafc !important;
}
.ev-detection-item:last-child {
  border-bottom: none !important;
}
.ev-empty-line {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: .55rem !important;
}
.ev-report-cta {
  border: 2px solid #0d6efd !important;
  background: #f8fbff !important;
}
.ev-report-explainer {
  background: #f8fafc !important;
  border-color: #d8dee8 !important;
}
.ev-report-explainer .card-body {
  background: transparent !important;
}
.ev-report-page h2.h4,
.ev-report-page h2.h5,
.ev-report-page h3.h5 {
  letter-spacing: -.01em;
}
@media (max-width: 768px) {
  .ev-report-metric-number {
    font-size: 2.1rem !important;
  }
  .ev-count-badge {
    font-size: .72rem;
  }
}

/* Patch 34 — report UI refinements */
.ev-report-page .col-lg-10 {
  width: 100%;
}
.ev-report-page .row.justify-content-center > .col-lg-10 {
  max-width: 980px !important;
}
.ev-report-page .text-muted {
  color: #5f6b7a !important;
}
.ev-report-result-card {
  border: 1px solid #d7dde7 !important;
  background: #ffffff !important;
}
.ev-report-result-card .card-body {
  padding: 2rem !important;
}
.ev-report-result-card h2.h3 {
  font-size: clamp(1.55rem, 2vw, 2rem) !important;
  letter-spacing: -0.02em;
}
.ev-score-caption {
  border: 1px solid #dfe5ee;
  background: #f8fafc;
  border-radius: .75rem;
  padding: .75rem 1rem;
}
.ev-gauge {
  margin-top: 1.35rem !important;
  padding: 1.1rem 1rem !important;
  border: 1px solid #dfe5ee !important;
  border-radius: .9rem !important;
  background: #f8fafc !important;
}
.ev-gauge-track {
  height: 22px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  overflow: visible !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, .15) !important;
  background: transparent !important;
  position: relative !important;
}
.ev-gauge-segment {
  display: block;
  height: 100%;
}
.ev-gauge-red { background: #dc3545 !important; border-radius: 999px 0 0 999px; }
.ev-gauge-orange { background: #fd7e14 !important; }
.ev-gauge-yellow { background: #ffc107 !important; }
.ev-gauge-green { background: #198754 !important; border-radius: 0 999px 999px 0; }
.ev-gauge-marker {
  position: absolute !important;
  top: 50% !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 4px solid #111827 !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: none !important;
  z-index: 3 !important;
}
.ev-gauge-marker-muted {
  border-color: #6b7280 !important;
}
.ev-report-metrics .row.g-3 > [class*="col-"] {
  display: flex;
}
.ev-report-metrics .ev-report-metric {
  width: 100%;
  min-height: 12rem !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: .95rem !important;
  padding: 1.15rem !important;
}
.ev-report-metric-red {
  border-color: #dc3545 !important;
  background: #fff1f2 !important;
  border-top: 0 !important;
}
.ev-report-metric-green {
  border-color: #198754 !important;
  background: #eefaf2 !important;
  border-top: 0 !important;
}
.ev-report-metric-neutral {
  border-color: #64748b !important;
  background: #f1f5f9 !important;
  border-top: 0 !important;
}
.ev-report-metric-grey {
  border-color: #e0a800 !important;
  background: #fff8db !important;
  border-top: 0 !important;
}
.ev-report-metric-number {
  font-size: clamp(2.6rem, 4vw, 3.4rem) !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -0.06em;
}
.ev-count-badge {
  font-size: .78rem !important;
  padding: .35rem .55rem !important;
  border-radius: 999px !important;
  white-space: nowrap;
}
.ev-report-metric h3 {
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}
.ev-detail-card {
  border-width: 1px !important;
  border-radius: .9rem !important;
}
.ev-detail-card .card-header {
  padding: 1rem 1.15rem !important;
  border-bottom: 1px solid rgba(15,23,42,.1) !important;
}
.ev-detail-card .card-header h2 {
  font-size: 1.35rem !important;
  line-height: 1.25 !important;
}
.ev-detail-card-red .card-header { background: #ffe8ea !important; }
.ev-detail-card-green .card-header { background: #e3f6ea !important; }
.ev-detail-card-neutral .card-header { background: #e8eef5 !important; }
.ev-detail-card-grey .card-header { background: #fff1bd !important; }
.ev-detail-card .card-body {
  background: #ffffff !important;
}
.ev-detection-item {
  padding: .85rem 1rem !important;
  margin: 0 !important;
  border-bottom: 1px solid #e6ebf2 !important;
}
.ev-empty-line {
  min-height: 2.75rem;
  padding: .7rem .85rem !important;
}
.ev-report-cta {
  border: 2px solid #0d6efd !important;
  border-radius: .95rem !important;
  background: #f3f8ff !important;
}
.ev-report-cta .card-body {
  text-align: left !important;
}
.ev-report-cta .btn {
  margin-top: .25rem;
}
.ev-report-explainer {
  background: #eef2f6 !important;
  border: 1px solid #d2dae6 !important;
  border-radius: .95rem !important;
}
.ev-report-explainer h2 {
  font-size: 1.55rem !important;
}
.ev-about-lines {
  display: grid;
  gap: .85rem;
}
.ev-about-line {
  background: #ffffff;
  border: 1px solid #dbe2ec;
  border-radius: .75rem;
  padding: .95rem 1rem;
}
.ev-about-line-positive { border-left: 4px solid #198754; }
.ev-about-line-warning { border-left: 4px solid #ffc107; }
.ev-about-line-info { border-left: 4px solid #0d6efd; }
.ev-report-page .d-flex.justify-content-start .btn {
  margin-right: .25rem;
}
@media (min-width: 992px) {
  .ev-report-result-card .card-body {
    min-height: 260px;
  }
  .ev-gauge {
    margin-top: 2rem !important;
  }
}
@media (max-width: 768px) {
  .ev-score-caption {
    width: 100%;
  }
  .ev-report-result-card .card-body {
    padding: 1.25rem !important;
  }
  .ev-report-metrics .ev-report-metric {
    min-height: 10.5rem !important;
  }
}

/* Patch 35 — professional A-E score index */
.ev-score-caption {
  display: none !important;
}
.ev-report-result-card .card-body {
  display: block;
}
.ev-score-index {
  display: grid;
  grid-template-columns: minmax(104px, 128px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1.65rem;
  padding: 1rem;
  border: 1px solid #d8e0eb;
  border-radius: 1rem;
  background: #f8fafc;
}
.ev-score-grade-panel {
  min-height: 130px;
  border: 1px solid rgba(15,23,42,.16);
  border-radius: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #64748b;
}
.ev-score-grade-label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .86;
  margin-bottom: .15rem;
}
.ev-score-grade-letter {
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.08em;
}
.ev-score-index-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ev-score-index-title {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #111827;
}
.ev-score-index-subtitle {
  color: #5f6b7a;
  font-size: .96rem;
  margin-top: .25rem;
  margin-bottom: .9rem;
}
.ev-score-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .28rem;
  align-items: end;
}
.ev-score-scale-step {
  min-height: 2.55rem;
  border-radius: .42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  border: 1px solid rgba(15,23,42,.12);
  opacity: .68;
  transition: none;
}
.ev-score-scale-step.is-active {
  min-height: 3.35rem;
  opacity: 1;
  border: 3px solid #ffffff;
  outline: 1px solid rgba(15,23,42,.24);
  font-size: 1.55rem;
}
.ev-score-scale-a,
.ev-score-index-a .ev-score-grade-panel { background: #003399; }
.ev-score-scale-b,
.ev-score-index-b .ev-score-grade-panel { background: #1d4f91; }
.ev-score-scale-c,
.ev-score-index-c .ev-score-grade-panel { background: #f2c94c; color: #4b3b00; }
.ev-score-scale-d,
.ev-score-index-d .ev-score-grade-panel { background: #e67e22; }
.ev-score-scale-e,
.ev-score-index-e .ev-score-grade-panel { background: #b91c1c; }
.ev-score-index-na .ev-score-grade-panel { background: #64748b; }
.ev-score-scale-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #697586;
  font-size: .78rem;
  margin-top: .45rem;
}
.ev-gauge {
  display: none !important;
}
.ev-report-result-card .card-body > .alert.alert-light.border.mt-3 {
  margin-top: 1rem !important;
}
@media (min-width: 992px) {
  .ev-report-result-card .card-body {
    min-height: 300px;
  }
  .ev-score-index {
    margin-top: 2rem;
  }
}
@media (max-width: 768px) {
  .ev-score-index {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding: .85rem;
  }
  .ev-score-grade-panel {
    min-height: 96px;
  }
  .ev-score-grade-letter {
    font-size: 3.25rem;
    letter-spacing: -.05em;
  }
  .ev-score-scale-step {
    min-height: 2.25rem;
  }
  .ev-score-scale-step.is-active {
    min-height: 2.85rem;
    font-size: 1.35rem;
  }
}

/* Patch 36 — EuroScore SVG assets */
.ev-score-index-svg {
  display: grid !important;
  grid-template-columns: minmax(220px, 360px) 1fr !important;
  gap: 1.65rem !important;
  align-items: center !important;
  margin-top: 1.75rem !important;
  padding: 1.15rem !important;
  border: 1px solid #d8e0eb !important;
  border-radius: 1rem !important;
  background: #f8fafc !important;
}
.ev-score-visual-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
}
.ev-score-visual {
  display: block;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 228 / 78;
}
.ev-score-index-svg .ev-score-index-main {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}
.ev-score-index-eyebrow {
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: .35rem;
}
.ev-score-index-svg .ev-score-index-title {
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  line-height: 1.12 !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  letter-spacing: -.035em !important;
}
.ev-score-index-svg .ev-score-index-subtitle {
  margin-top: .35rem !important;
  margin-bottom: .65rem !important;
  font-size: 1rem !important;
  color: #475569 !important;
}
.ev-score-index-note {
  max-width: 56rem;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.45;
}
.ev-score-grade-panel,
.ev-score-scale,
.ev-score-scale-caption {
  display: none !important;
}
@media (min-width: 992px) {
  .ev-report-result-card .card-body {
    min-height: 270px !important;
  }
}
@media (max-width: 768px) {
  .ev-score-index-svg {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: .95rem !important;
  }
  .ev-score-visual {
    width: min(100%, 300px);
  }
}


/* Patch 37 — icon fallback and EuroScore layout hardening */
@font-face {
  font-display: block;
  font-family: bootstrap-icons;
  src:
    url("/assets/fonts/bootstrap-icons.woff2") format("woff2"),
    url("/assets/fonts/bootstrap-icons.woff") format("woff"),
    url("/assets/css/fonts/bootstrap-icons.woff2") format("woff2"),
    url("/assets/css/fonts/bootstrap-icons.woff") format("woff"),
    url("/assets/vendor/bootstrap-icons/current/fonts/bootstrap-icons.woff2") format("woff2"),
    url("/assets/vendor/bootstrap-icons/current/fonts/bootstrap-icons.woff") format("woff");
}

.ev-score-index-svg {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1.5rem !important;
  overflow: hidden !important;
}
.ev-score-index-svg .ev-score-visual-wrap {
  flex: 0 1 380px !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.ev-score-index-svg .ev-score-visual {
  display: block !important;
  width: min(100%, 380px) !important;
  max-width: 380px !important;
  height: auto !important;
  aspect-ratio: 222 / 78 !important;
  object-fit: contain !important;
  position: static !important;
  float: none !important;
}
.ev-score-index-svg .ev-score-index-main {
  flex: 1 1 300px !important;
  min-width: 0 !important;
  position: static !important;
  z-index: 1 !important;
}
@media (min-width: 992px) {
  .ev-score-index-svg .ev-score-visual-wrap {
    flex-basis: 400px !important;
  }
  .ev-score-index-svg .ev-score-visual {
    width: min(100%, 400px) !important;
    max-width: 400px !important;
  }
}
@media (max-width: 768px) {
  .ev-score-index-svg {
    align-items: flex-start !important;
  }
  .ev-score-index-svg .ev-score-visual {
    width: min(100%, 320px) !important;
  }
}

/* Patch 62 — Bootstrap Icons fallback disabled.
   The previous unicode fallback could display approximate/wrong icons when activated.
   Icons now rely on the official Bootstrap Icons CSS + matching local font files. */
/* Bootstrap Icons rendering hardening: keep official codepoint mapping. */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  font-family: "bootstrap-icons" !important;
}



/* Patch 38 — EuroScore cleanup */
.ev-score-title-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  margin-bottom: .6rem;
}
.ev-score-square {
  flex: 0 0 auto;
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: .45rem;
}
.ev-score-index-svg .ev-score-index-subtitle {
  margin-top: .2rem !important;
  margin-bottom: 0 !important;
  font-size: .95rem !important;
  color: #64748b !important;
}
.ev-report-result-card .card-body .ev-score-index-main .ev-score-index-note {
  margin-top: .4rem;
}
@media (max-width: 576px) {
  .ev-score-title-row {
    align-items: flex-start;
  }
  .ev-score-square {
    width: 46px;
    height: 46px;
  }
}

/* Patch 39 — infrastructure visible */
.ev-infra-card {
  border: 1px solid #dbe3ee !important;
  border-radius: 1rem !important;
  box-shadow: none !important;
  overflow: hidden;
  background: #fff;
}
.ev-infra-header {
  background: #f4f7fb !important;
  border-bottom: 1px solid #dbe3ee !important;
}
.ev-infra-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
}
.ev-infra-row:nth-child(even) {
  background: #fbfcfe;
}
.ev-infra-row:last-child {
  border-bottom: 0;
}
.ev-infra-row-red {
  border-left: 4px solid #d72727;
}
.ev-infra-row-green {
  border-left: 4px solid #198754;
}
.ev-infra-row-neutral {
  border-left: 4px solid #64748b;
}
.ev-infra-row-grey {
  border-left: 4px solid #f3b31b;
}
.ev-infra-main {
  min-width: 0;
  flex: 1 1 auto;
}
.ev-infra-role {
  display: inline-flex;
  align-items: center;
  padding: .2rem .45rem;
  border: 1px solid #dbe3ee;
  border-radius: .35rem;
  background: #f8fafc;
  color: #526071;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ev-infra-badges {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .35rem;
  min-width: 180px;
}
.ev-infra-empty {
  border-left: 4px solid #cbd5e1;
  background: #fbfcfe;
}
@media (max-width: 768px) {
  .ev-infra-row {
    display: block;
  }
  .ev-infra-badges {
    justify-content: flex-start;
    min-width: 0;
    margin-top: .75rem;
  }
}

/* Patch 61 — Bootstrap Icons local font files are now bundled in /assets/css/fonts and /assets/fonts. */
