/* =========================================
   Business Plan Digital Maroc — Styles v2
   ========================================= */

/* ─── VARIABLES ─── */
:root {
  --bleu:        #1B4F72;
  --bleu-clair:  #2E86C1;
  --bleu-pale:   #EBF5FB;
  --vert:        #1A7A42;
  --vert-pale:   #D5F5E3;
  --rouge:       #C0392B;
  --rouge-pale:  #FADBD8;
  --orange:      #D35400;
  --orange-pale: #FDEBD0;
  --gris-bg:     #F2F5F9;
  --gris-border: #D8E1EB;
  --texte:       #1E2D3D;
  --texte-soft:  #546E7A;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(27,79,114,0.10);
  --shadow-lg:   0 8px 32px rgba(27,79,114,0.18);

  --transition:  0.22s ease;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background-color: var(--gris-bg);
  color: var(--texte);
  font-size: 0.94rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
.navbar-bp {
  background: linear-gradient(135deg, #0D3349 0%, var(--bleu) 60%, #1A6091 100%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  padding: 0.55rem 0;
  min-height: 58px;
}

.navbar-bp .navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-bp .navbar-brand i {
  font-size: 1.3rem;
  color: #7EC8F0;
}

.navbar-bp .badge-etape-nav {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.navbar-bp .btn-outline-light {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  border-width: 1.5px;
  font-weight: 500;
}

/* ─── BARRE DE PROGRESSION ─── */
.progress-wrapper {
  background: #fff;
  border-bottom: 2px solid var(--gris-border);
  padding: 16px 20px 12px;
  position: sticky;
  top: 58px;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(27,79,114,0.09);
}

/* Bandeau de pourcentage en haut */
.progress-bar-bp {
  height: 4px;
  background: #E2E9F0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bleu) 0%, #2E86C1 60%, #52B0E0 100%);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}

/* Conteneur des étapes */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 0;
}

/* Ligne de fond (grise) */
.progress-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(5%);
  right: calc(5%);
  height: 2px;
  background: #D8E4EF;
  z-index: 0;
  border-radius: 2px;
}

/* Item d'étape */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  position: relative;
  z-index: 1;
  padding: 0 2px;
}

/* Cercle */
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EDF2F7;
  color: #8FA3B4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid #C8D8E8;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
}

.step-item.active .step-circle {
  background: var(--bleu);
  color: #fff;
  border-color: var(--bleu);
  box-shadow: 0 0 0 5px rgba(27,79,114,0.15), 0 3px 10px rgba(27,79,114,0.3);
  transform: scale(1.15);
}

.step-item.done .step-circle {
  background: var(--vert);
  color: #fff;
  border-color: var(--vert);
  box-shadow: 0 2px 8px rgba(26,122,66,0.25);
}

.step-item:hover:not(.active):not(.done) .step-circle {
  background: var(--bleu-pale);
  border-color: var(--bleu-clair);
  color: var(--bleu);
  transform: scale(1.05);
}

.step-item.done .step-circle i { font-size: 0.9rem; }

/* Label */
.step-label {
  font-size: 0.58rem;
  color: #8FA3B4;
  text-align: center;
  margin-top: 5px;
  line-height: 1.25;
  font-weight: 500;
  max-width: 64px;
  word-break: break-word;
  hyphens: auto;
  display: none;
}

.step-item.active .step-label {
  color: var(--bleu);
  font-weight: 700;
  display: block;
}
.step-item.done .step-label {
  color: var(--vert);
}

@media (min-width: 576px) {
  .step-label { display: block; }
  .step-circle { width: 34px; height: 34px; font-size: 0.78rem; }
  .progress-steps::before { top: 17px; }
}

@media (min-width: 768px) {
  .step-circle { width: 38px; height: 38px; font-size: 0.85rem; }
  .step-label { font-size: 0.62rem; max-width: 72px; }
  .progress-steps::before { top: 19px; }
}

@media (min-width: 1100px) {
  .step-circle { width: 40px; height: 40px; font-size: 0.88rem; }
  .step-label { font-size: 0.65rem; max-width: 80px; }
  .progress-steps::before { top: 20px; }
}

/* ─── CONTENU PRINCIPAL ─── */
main.container-fluid {
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── ÉTAPE HEADER ─── */
.etape-header {
  padding: 1.4rem 0 0.9rem;
}

.etape-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bleu);
  margin: 0;
  line-height: 1.3;
}

.badge-etape {
  background: var(--bleu);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  .etape-header h1 { font-size: 1.15rem; }
  .etape-header    { padding: 1rem 0 0.6rem; }
}

/* ─── CARDS ─── */
.card-bp {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gris-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card-bp:hover {
  box-shadow: var(--shadow-md);
}

.card-bp .card-header {
  background: linear-gradient(135deg, var(--bleu) 0%, #1E6FA5 100%);
  color: #fff;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.card-bp .card-header i {
  font-size: 1.05rem;
  opacity: 0.9;
}

.card-bp .card-body {
  padding: 1.3rem;
}

@media (max-width: 575px) {
  .card-bp .card-body { padding: 0.9rem; }
}

/* Card totaux */
.card-total {
  background: linear-gradient(135deg, var(--bleu-pale) 0%, #D4EAF7 100%);
  border: 1.5px solid var(--bleu-clair);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 1rem;
}

.card-total .total-label {
  font-size: 0.75rem;
  color: var(--bleu);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.card-total .total-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bleu);
  line-height: 1.2;
}

/* ─── FORMULAIRE ─── */
.form-label {
  font-weight: 500;
  color: #2C3E50;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #C8D5E0;
  font-size: 0.9rem;
  color: var(--texte);
  background-color: #FAFCFE;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  min-height: 40px;
}

/* Meilleurs touch targets sur mobile */
@media (max-width: 767px) {
  .form-control,
  .form-select {
    min-height: 46px;
    font-size: 1rem;
  }
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bleu-clair);
  box-shadow: 0 0 0 3px rgba(46,134,193,0.18);
  background-color: #fff;
  outline: none;
}

.form-control.bg-light {
  background-color: #F0F4F8 !important;
  color: var(--texte-soft);
  border-style: dashed;
}

.form-control::placeholder { color: #AAB7C4; }

.form-text {
  font-size: 0.78rem;
  color: var(--texte-soft);
}

.required-star { color: var(--rouge); margin-left: 1px; }

/* Checkboxes & radios */
.form-check-input {
  width: 1.1em;
  height: 1.1em;
  border-color: #A0B0C0;
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--bleu);
  border-color: var(--bleu);
}
.form-check-label { cursor: pointer; }

/* ─── TABLEAUX RÉPÉTABLES ─── */
.repeatable-container {
  background: #F8FAFC;
  border: 1.5px solid var(--gris-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.repeatable-container .table {
  font-size: 0.83rem;
  margin-bottom: 0;
  min-width: 480px;
}

.repeatable-container .table thead th {
  background: var(--bleu);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  vertical-align: middle;
  padding: 8px 8px;
  border: none;
  letter-spacing: 0.02em;
}

.repeatable-container .table thead th:first-child {
  border-radius: 6px 0 0 0;
}
.repeatable-container .table thead th:last-child {
  border-radius: 0 6px 0 0;
}

.repeatable-container .table tbody tr {
  transition: background var(--transition);
}

.repeatable-container .table tbody tr:hover {
  background-color: var(--bleu-pale);
}

.repeatable-container .table td {
  padding: 5px 6px;
  vertical-align: middle;
  border-color: #E4EBF2;
}

.repeatable-container .table td input,
.repeatable-container .table td select,
.repeatable-container .table td textarea {
  font-size: 0.83rem;
  padding: 4px 8px;
  min-height: 34px;
}

/* Indicateur de scroll horizontal */
.repeatable-container::after {
  content: '';
  display: none;
}

@media (max-width: 767px) {
  .repeatable-container {
    position: relative;
  }
  .repeatable-container::before {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--texte-soft);
    margin-bottom: 6px;
    opacity: 0.7;
  }
}

.btn-add-row {
  font-size: 0.83rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 8px;
  font-weight: 500;
}

.btn-remove-row {
  padding: 3px 8px;
  font-size: 0.78rem;
  border-radius: 4px;
}

/* ─── NAVIGATION ÉTAPES ─── */
.nav-buttons-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--gris-border);
  flex-wrap: wrap;
  gap: 10px;
}

.btn-nav {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-suivant {
  background: var(--bleu);
  border: 2px solid var(--bleu);
  color: #fff;
  box-shadow: 0 3px 10px rgba(27,79,114,0.22);
}

.btn-nav-suivant:hover,
.btn-nav-suivant:focus {
  background: #154360;
  border-color: #154360;
  color: #fff;
  box-shadow: 0 5px 16px rgba(27,79,114,0.32);
  transform: translateY(-1px);
}

.btn-nav-precedent {
  background: #fff;
  border: 2px solid var(--bleu);
  color: var(--bleu);
}

.btn-nav-precedent:hover,
.btn-nav-precedent:focus {
  background: var(--bleu-pale);
  color: var(--bleu);
  transform: translateY(-1px);
}

/* Bouton sauvegarder */
.btn-brouillon {
  background: transparent;
  border: 1.5px solid #8FA3B4;
  color: var(--texte-soft);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition);
}

.btn-brouillon:hover {
  background: #F0F4F8;
  border-color: var(--bleu);
  color: var(--bleu);
}

@media (max-width: 575px) {
  .nav-buttons-wrapper {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .nav-buttons-wrapper > div {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .nav-buttons-wrapper > div:first-child {
    justify-content: flex-start;
  }
  .nav-buttons-wrapper > div:last-child {
    justify-content: flex-end;
  }
  .btn-nav {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

/* ─── CONDITIONNEL ─── */
.champ-conditionnel {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BADGES ─── */
.badge-vert   { background: var(--vert);   color: #fff; }
.badge-rouge  { background: var(--rouge);  color: #fff; }
.badge-orange { background: var(--orange); color: #fff; }

/* ─── SWOT ─── */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.swot-card {
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 110px;
}

.swot-card strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.swot-forces      { background: var(--vert-pale);   border-left: 4px solid #27AE60; }
.swot-faiblesses  { background: var(--rouge-pale);  border-left: 4px solid #E74C3C; }
.swot-opportunites{ background: var(--bleu-pale);   border-left: 4px solid #2980B9; }
.swot-menaces     { background: var(--orange-pale); border-left: 4px solid #E67E22; }

@media (max-width: 575px) {
  .swot-grid { grid-template-columns: 1fr; }
}

/* ─── TABLE CPC ─── */
.table-cpc {
  font-size: 0.83rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.table-cpc th {
  background: var(--bleu);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 9px 8px;
  border: none;
}

.table-cpc td {
  font-size: 0.83rem;
  border-color: #E4EBF2;
}

.table-cpc .row-bold td  { font-weight: 700; background: var(--bleu-pale); }
.table-cpc .row-total td { font-weight: 800; background: #D0E8F5; }

.val-positif { color: var(--vert);  font-weight: 700; }
.val-negatif { color: var(--rouge); font-weight: 700; }

/* ─── SCORES RISQUE ─── */
.score-vert   { background: var(--vert-pale);   color: var(--vert);   font-weight: 700; border-radius: 4px; padding: 2px 7px; font-size: 0.82rem; }
.score-orange { background: var(--orange-pale); color: var(--orange); font-weight: 700; border-radius: 4px; padding: 2px 7px; font-size: 0.82rem; }
.score-rouge  { background: var(--rouge-pale);  color: var(--rouge);  font-weight: 700; border-radius: 4px; padding: 2px 7px; font-size: 0.82rem; }

/* ─── TOOLTIP AIDE ─── */
.help-icon {
  color: var(--bleu-clair);
  cursor: help;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.help-icon:hover { opacity: 1; }

/* ─── ALERTES FLASH ─── */
.alert {
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border-width: 1.5px;
}

/* ─── CONFIRMATION ─── */
.confirmation-card {
  background: linear-gradient(135deg, #0D3349 0%, var(--bleu) 50%, #1E73A8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.8rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.confirmation-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.btn-download {
  background: #fff;
  color: var(--bleu);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 38px;
  border-radius: 50px;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  color: var(--bleu);
}

@media (max-width: 575px) {
  .confirmation-card { padding: 1.8rem 1.2rem; }
  .confirmation-card h2 { font-size: 1.4rem; }
  .btn-download { padding: 12px 24px; font-size: 0.95rem; }
}

/* ─── FOOTER ─── */
.footer-bp {
  background: #fff;
  border-top: 2px solid var(--gris-border);
  font-size: 0.79rem;
  color: var(--texte-soft);
  padding: 14px 0;
}

/* ─── UTILITAIRES ─── */
.table-responsive-bp {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

/* Séparateur section */
.section-divider {
  border: none;
  border-top: 2px solid var(--gris-border);
  margin: 1.5rem 0;
}

/* Badges Bootstrap harmonisés */
.badge.bg-light { color: #2C3E50 !important; border: 1px solid #D0DCE8; }

/* ─── MOBILE GLOBAL ─── */
@media (max-width: 575px) {
  /* Réduire padding latéral sur mobile */
  main.container-fluid { padding-left: 12px !important; padding-right: 12px !important; }

  /* Tables de confirmation */
  .table-sm th, .table-sm td { padding: 5px 8px; font-size: 0.82rem; }

  /* Cards de totaux en colonne */
  .row > [class*="col-md-4"] .card-total { margin-bottom: 10px; }

  /* Boutons d'action confirmation */
  .d-flex.gap-3.justify-content-center { flex-direction: column; align-items: stretch; }
  .d-flex.gap-3.justify-content-center .btn { text-align: center; }
}

/* ─── TABLETTE ─── */
@media (min-width: 576px) and (max-width: 991px) {
  main.container-fluid { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ─── SCROLL SMOOTH ─── */
html { scroll-behavior: smooth; }

/* ─── TABLEAU CASH-FLOW ─── */
.table-cashflow th, .table-cashflow td {
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 4px 6px;
}
.table-cashflow thead tr th {
  font-weight: 600;
}

/* ─── DISPOSITIFS PUBLICS ─── */
.table-dispositifs td { font-size: 0.82rem; }

/* ─── ALERTE SMIG ─── */
.smig-alert { font-size: 0.78rem; }

/* ─── BADGE SAUVEGARDE ─── */
.btn-outline-warning { border-color: #f0ad4e; color: #f0ad4e; }
.btn-outline-warning:hover { background: #f0ad4e; color: #fff; }
.btn-outline-info { border-color: #5bc0de; color: #5bc0de; }
.btn-outline-info:hover { background: #5bc0de; color: #fff; }

/* ─── FOCUS VISIBLE (accessibilité) ─── */
:focus-visible {
  outline: 3px solid rgba(46,134,193,0.55);
  outline-offset: 2px;
}

/* ─── UPLOAD MEDIA (logo + photos) ─── */
.media-upload-zone {
  border: 2px dashed #C8D5E0;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.media-upload-zone:hover,
.media-upload-zone.dragover {
  border-color: var(--bleu-clair);
  background: var(--bleu-pale);
}
.media-upload-zone input[type="file"] { display: none; }
.media-upload-zone label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.media-upload-zone i { font-size: 2rem; color: var(--bleu-clair); }
.media-upload-zone span { font-size: 0.83rem; color: var(--texte-soft); }

.logo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #F0F4F8;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gris-border);
}
.logo-preview-wrap img {
  max-height: 70px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 4px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--gris-border);
  background: #F0F4F8;
  aspect-ratio: 4/3;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-thumb .btn-del-photo {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(192,57,43,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.photo-thumb .btn-del-photo:hover { background: var(--rouge); }

/* ─── FOOTER ADVICE ─── */
.footer-advice {
  background: var(--bleu);
  color: rgba(255,255,255,0.9);
  padding: 20px 0 14px;
  font-size: 0.82rem;
}
.footer-advice .advice-logo { max-height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-advice a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--transition); }
.footer-advice a:hover { color: #fff; }
.footer-advice .social-links { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.footer-advice .social-links a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.footer-advice .social-links a:hover { background: rgba(255,255,255,0.28); color: #fff; }
.footer-advice .divider { border-color: rgba(255,255,255,0.18); margin: 10px 0; }

/* ─── PAGE ANALYSE IA ─── */
.score-circle-wrap {
  width: 140px; height: 140px;
  position: relative;
  margin: 0 auto;
}
.score-circle-wrap svg { transform: rotate(-90deg); }
.score-circle-wrap .score-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  color: var(--bleu);
  line-height: 1;
}
.score-circle-wrap .score-num small {
  font-size: 0.7rem; font-weight: 500;
  color: var(--texte-soft); margin-top: 2px;
}
.avis-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.avis-favorable    { background: var(--vert-pale);   color: var(--vert); }
.avis-tres-fav     { background: #D1FAE5;             color: #065F46; }
.avis-mitige       { background: var(--orange-pale);  color: var(--orange); }
.avis-defavorable  { background: var(--rouge-pale);   color: var(--rouge); }

.analyse-card {
  border-left: 4px solid var(--bleu);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.analyse-card.card-forts     { border-color: var(--vert); }
.analyse-card.card-ameliorer { border-color: var(--orange); }
.analyse-card.card-reco      { border-color: var(--bleu-clair); }
.analyse-card ul { margin: 0; padding-left: 18px; }
.analyse-card li { margin-bottom: 5px; font-size: 0.88rem; }
.analyse-card h6 { font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700; margin-bottom: 10px; }
