:root{
  --docs-bg:#f8fafc;
  --docs-surface:#ffffff;
  --docs-border:#e5e7eb;
  --docs-text:#1f2937;
  --docs-muted:#6b7280;
  --docs-primary:#8b0000;
  --docs-primary-soft:#fff5f5;

  --docs-success:#16a34a;
  --docs-success-soft:#f0fdf4;
  --docs-danger-2:#dc2626;
  --docs-danger-soft-2:#fef2f2;
  --docs-warning:#f59e0b;
  --docs-warning-soft:#fffbeb;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  background:var(--docs-bg);
  color:var(--docs-text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}

a{
  text-decoration:none;
}

/* Layout */
.docs-shell{
  display:flex;
  min-height:100vh;
}

.docs-main{
  flex:1 1 auto;
  min-width:0;
  background:linear-gradient(180deg,#fcfcfd 0%,#f8fafc 100%);
}

.docs-article{
  max-width:1100px;
  margin:0 auto;
  padding:2rem;
}

/* Sidebar */
.docs-sidebar{
  flex:0 0 320px;
  width:320px;
  background:#ffffff;
  border-right:1px solid var(--docs-border);
  box-shadow:0 0 0 1px rgba(15,23,42,.02);
  z-index:1035;
}

.docs-logo-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,#8b0000 0%,#b91c1c 100%);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  box-shadow:0 10px 24px rgba(139,0,0,.18);
}

.sidebar-section-title{
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--docs-muted);
  margin-bottom:.75rem;
  font-weight:700;
}

.docs-nav .list-group-item{
  padding:.85rem 1rem;
  font-size:.95rem;
  line-height:1.35;
  color:#374151;
  transition:.2s ease;
}

.docs-nav .list-group-item:hover{
  background:#f3f4f6;
  color:var(--docs-primary);
}

.docs-nav .list-group-item.active{
  background:var(--docs-primary);
  color:#fff;
}

/* Topbar */
.docs-topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--docs-border);
}

.docs-mobile-topbar{
  position:sticky;
  top:0;
  z-index:1030;
  backdrop-filter:blur(10px);
  background:rgba(244,246,249,.82);
  border:1px solid rgba(231,235,240,.9);
  border-radius:1rem;
  box-shadow:0 6px 18px rgba(15,23,42,.035);
  padding:.7rem .85rem;
}

.docs-mobile-topbar .btn{
  border-radius:.85rem;
}

/* Hero / Content */
.docs-hero,
.docs-home-hero{
  background:linear-gradient(135deg,#ffffff 0%,#fff5f5 100%);
  border:1px solid var(--docs-border);
  border-radius:1.5rem;
  padding:2rem;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
  margin-bottom:1.5rem;
}

.docs-hero .eyebrow,
.docs-home-hero .eyebrow{
  color:var(--docs-primary);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.8rem;
  font-weight:700;
  margin-bottom:.75rem;
}

.docs-hero h1,
.docs-home-hero h1{
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.05;
  margin-bottom:1rem;
  color:#111827;
}

.docs-home-hero .lead{
  font-size:1.08rem;
  color:#4b5563;
  max-width:60ch;
}

.docs-content{
  background:#fff;
  border:1px solid var(--docs-border);
  border-radius:1.25rem;
  padding:2rem;
  box-shadow:0 12px 30px rgba(15,23,42,.04);
}

.docs-content h2{
  color:var(--docs-primary);
  font-size:1.45rem;
  margin:2rem 0 .75rem;
}

.docs-content h3{
  font-size:1.1rem;
  margin:1.5rem 0 .6rem;
}

.docs-content p{
  margin-bottom:1rem;
}

.docs-content ul{
  padding-left:1.2rem;
}

.docs-content li{
  margin-bottom:.45rem;
}

/* Schema */
.docs-schema{
  margin:1.5rem 0 2rem;
  text-align:center;
}

.docs-schema img{
  max-width:100%;
  height:auto;
  background:#fff;
  border:1px solid #e5e7eb;
  padding:10px;
}

.docs-schema figcaption{
  margin-top:.75rem;
  font-size:.92rem;
  color:#6b7280;
}

.schema-card{
  border:1px solid var(--docs-border);
  border-radius:1rem;
  padding:1rem;
  background:#fff;
  margin:1rem 0 1.5rem;
}

.schema-title{
  font-weight:700;
  margin-bottom:.8rem;
}

.schema-svg{
  width:100%;
  height:auto;
}

/* Home cards */
.docs-home-panel{
  background:#111827;
  color:#fff;
  border-radius:1.5rem;
  padding:1.25rem;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
}

.docs-home-kpi{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.9rem 0;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.docs-home-kpi:last-child{
  border-bottom:none;
}

.docs-home-kpi span{
  color:rgba(255,255,255,.75);
}

.docs-home-kpi strong{
  color:#fff;
}

.docs-card{
  background:#fff;
  border:1px solid var(--docs-border);
  border-radius:1.25rem;
  padding:1.5rem;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
  height:100%;
}

.docs-card h2{
  font-size:1.15rem;
  margin:0 0 .75rem;
  color:#111827;
}

.docs-card p{
  margin:0;
  color:#4b5563;
}

.docs-card-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:#fff1f2;
  color:var(--docs-primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  margin-bottom:1rem;
}

.docs-shortcut{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  background:#fff;
  border:1px solid var(--docs-border);
  border-radius:1rem;
  padding:1rem 1.1rem;
  color:#111827;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  transition:.2s ease;
}

.docs-shortcut:hover{
  transform:translateY(-1px);
  border-color:#f3b4b4;
  background:#fff7f7;
}

.docs-shortcut-title{
  font-weight:600;
}

.docs-shortcut-arrow{
  color:var(--docs-primary);
  font-size:1.1rem;
  font-weight:700;
}

/* Tables / search */
.docs-table{
  border:1px solid var(--docs-border);
  border-radius:1rem;
  overflow:hidden;
}

.docs-table table{
  margin-bottom:0;
}

.docs-table thead th{
  background:#f9fafb;
  color:#111827;
  font-size:.92rem;
  border-bottom:1px solid var(--docs-border);
}

.search-results{
  position:absolute;
  top:calc(100% + .4rem);
  left:0;
  right:0;
  background:#fff;
  border:1px solid var(--docs-border);
  border-radius:1rem;
  overflow:hidden;
  z-index:50;
}

.search-result{
  display:block;
  padding:.85rem .95rem;
  color:#111827;
  border-top:1px solid #f3f4f6;
}

.search-result:first-child{
  border-top:none;
}

.search-result:hover{
  background:#fff7f7;
}

.search-result strong{
  display:block;
  margin-bottom:.2rem;
  color:var(--docs-primary);
}

.search-result span,
.search-empty{
  display:block;
  color:#4b5563;
  font-size:.92rem;
}

.search-empty{
  padding:.95rem;
}

/* Buttons */
.docs-help-btn.btn{
  background:var(--docs-primary);
  border-color:var(--docs-primary);
}

.docs-help-btn.btn:hover{
  background:#a10000;
  border-color:#a10000;
}

/* Error page */
.docs-error-wrap{
  min-height:calc(100vh - 160px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3rem 1rem;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.10), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.docs-error-card{
  width:100%;
  max-width:820px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:28px;
  box-shadow:0 24px 70px rgba(15,23,42,.10);
  overflow:hidden;
  position:relative;
}

.docs-error-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  background:linear-gradient(90deg, #f59e0b, #f97316, #ef4444);
}

.docs-error-body{
  padding:3rem;
}

.docs-error-badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.45rem .9rem;
  border-radius:999px;
  background:rgba(239,68,68,.08);
  color:#b91c1c;
  font-weight:700;
  font-size:.92rem;
  margin-bottom:1rem;
}

.docs-error-code{
  font-size:clamp(3rem, 10vw, 6rem);
  line-height:1;
  font-weight:800;
  color:#0f172a;
  margin-bottom:.5rem;
  letter-spacing:-0.04em;
}

.docs-error-title{
  font-size:clamp(1.5rem, 3vw, 2.2rem);
  font-weight:800;
  color:#0f172a;
  margin-bottom:1rem;
}

.docs-error-text{
  font-size:1.05rem;
  color:#475569;
  max-width:620px;
  margin-bottom:1.75rem;
}

.docs-error-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
}

.docs-btn-primary,
.docs-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.9rem 1.2rem;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  transition:.2s ease;
}

.docs-btn-primary{
  background:linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#fff;
  box-shadow:0 12px 24px rgba(37,99,235,.22);
}

.docs-btn-primary:hover{
  transform:translateY(-1px);
  color:#fff;
  box-shadow:0 16px 28px rgba(37,99,235,.28);
}

.docs-btn-secondary{
  background:#f8fafc;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.10);
}

.docs-btn-secondary:hover{
  background:#f1f5f9;
  color:#0f172a;
}

.docs-error-meta{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:1rem;
  margin-top:2rem;
}

.docs-error-meta .item{
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
  border-radius:18px;
  padding:1rem;
}

.docs-error-meta .label{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#64748b;
  font-weight:700;
  margin-bottom:.35rem;
}

.docs-error-meta .value{
  font-weight:700;
  color:#0f172a;
  word-break:break-word;
}

/* Marker versions */
.docs-update-marker{
  margin-top:1.5rem;
}

.docs-update-marker-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.15rem;
  border:1px solid rgba(15,23,42,.08);
  border-radius:1.15rem;
  background:linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.docs-update-marker-icon{
  width:50px;
  height:50px;
  min-width:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1rem;
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#fff;
  font-size:1.1rem;
  box-shadow:0 12px 24px rgba(15,23,42,.14);
}

.docs-update-marker-content{
  flex:1 1 auto;
  min-width:0;
}

.docs-update-marker-title{
  font-weight:800;
  color:#0f172a;
  margin-bottom:.18rem;
  font-size:1rem;
}

.docs-update-marker-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  color:#64748b;
  font-size:.92rem;
}

.docs-update-sep{
  opacity:.5;
}

.docs-update-marker-action{
  flex:0 0 auto;
}

/* Unlock editor modal */
.docs-editor-modal{
  border:none;
  border-radius:1.5rem;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(15,23,42,.24);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.docs-editor-modal-icon{
  width:64px;
  height:64px;
  margin:0 auto 1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1.2rem;
  background:linear-gradient(135deg, #111827, #1f2937);
  color:#fff;
  font-size:1.4rem;
  box-shadow:0 18px 35px rgba(15,23,42,.18);
}

.docs-editor-modal-kicker{
  text-align:center;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#b91c1c;
  margin-bottom:.45rem;
}

.docs-editor-modal-title{
  text-align:center;
  font-weight:850;
  margin-bottom:.5rem;
  color:#0f172a;
}

.docs-editor-modal-text{
  text-align:center;
  color:#64748b;
  margin-bottom:1.2rem;
}

.docs-editor-input{
  border-radius:1rem;
  padding:.9rem 1rem;
  border:1px solid #dbe3ee;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.03);
}

.docs-editor-input:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 4px rgba(15,23,42,.08);
}

/* Floating edit actions */
.docs-editor-floating-actions{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:1080;
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.65rem .75rem;
  border-radius:999px;
  background:rgba(17,24,39,.92);
  color:#fff;
  box-shadow:0 20px 45px rgba(15,23,42,.28);
  backdrop-filter:blur(12px);
}

.docs-editor-mini-status{
  font-size:.82rem;
  font-weight:700;
  opacity:.92;
}

body.docs-reading-locked{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}

body.docs-reading-locked img{
  -webkit-user-drag:none;
  user-drag:none;
  pointer-events:auto;
}

/* Editable areas */
[contenteditable="true"]{
  outline:none;
}

[contenteditable="true"]:focus{
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
  border-radius:.5rem;
}

#editorTitle[contenteditable="true"],
#editorIntro[contenteditable="true"],
#editorHtml[contenteditable="true"]{
  cursor:text;
}

#editorTitle[contenteditable="true"]{
  padding:.15rem .2rem;
}

#editorIntro[contenteditable="true"]{
  padding:.2rem .3rem;
  border-radius:.5rem;
}

#editorHtml[contenteditable="true"]{
  min-height:260px;
}

/* Versions modal */
.docs-versions-modal{
  border:none;
  border-radius:1.65rem;
  overflow:hidden;
  box-shadow:0 36px 90px rgba(15,23,42,.22);
  background:
    radial-gradient(circle at top right, rgba(139,0,0,.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.docs-versions-modal .modal-header{
  padding:1.5rem 1.5rem .5rem;
}

.docs-versions-modal .modal-body{
  padding:0 1.5rem 1.5rem;
}

.docs-versions-kicker{
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--docs-primary);
  margin-bottom:.2rem;
}

.docs-versions-title{
  font-weight:850;
  color:#0f172a;
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  line-height:1.1;
}

.docs-versions-hero{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1rem 1.1rem;
  border:1px solid rgba(15,23,42,.07);
  border-radius:1.2rem;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  margin-bottom:1.15rem;
}

.docs-versions-hero-icon{
  width:58px;
  height:58px;
  min-width:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:1rem;
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#fff;
  font-size:1.2rem;
  box-shadow:0 14px 28px rgba(15,23,42,.12);
}

.docs-versions-hero-title{
  font-weight:850;
  color:#0f172a;
  margin-bottom:.15rem;
  font-size:1.12rem;
}

.docs-versions-hero-meta{
  color:#64748b;
  font-size:.94rem;
}

.docs-versions-layout{
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
  gap:1rem;
  align-items:start;
  min-height:460px;
}

.docs-versions-sidebar{
  background:#ffffff;
  border:1px solid rgba(15,23,42,.07);
  border-radius:1.2rem;
  padding:1rem;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  position:sticky;
  top:0;
  max-height:68vh;
  overflow:auto;
}

.docs-versions-sidebar-title{
  font-weight:850;
  color:#0f172a;
  margin-bottom:.8rem;
  font-size:.98rem;
}

.docs-version-card{
  width:100%;
  text-align:left;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:1rem;
  padding:.9rem .95rem;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
  transition:.2s ease;
  cursor:pointer;
  margin-bottom:.7rem;
}

.docs-version-card:last-child{
  margin-bottom:0;
}

.docs-version-card:hover{
  transform:translateY(-1px);
  border-color:rgba(139,0,0,.28);
  box-shadow:0 12px 22px rgba(15,23,42,.08);
}

.docs-version-card.is-active{
  border-color:rgba(139,0,0,.32);
  background:linear-gradient(180deg,#fff 0%,#fff7f7 100%);
  box-shadow:0 12px 24px rgba(139,0,0,.08);
}

.docs-version-card-title{
  font-weight:800;
  line-height:1.35;
  margin-bottom:.3rem;
  color:#111827;
}

.docs-version-card-meta{
  font-size:.86rem;
  color:#6b7280;
}

.docs-versions-content{
  min-width:0;
  background:#ffffff;
  border:1px solid rgba(15,23,42,.07);
  border-radius:1.2rem;
  padding:1rem;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  min-height:200px;
}

.docs-version-panel{
  display:none;
}

.docs-version-panel.is-active{
  display:block;
}

.docs-version-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
  padding-bottom:.8rem;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.docs-diff-empty{
  background:#fff;
  border:1px dashed rgba(15,23,42,.14);
  border-radius:1rem;
  padding:1rem 1.1rem;
  color:#64748b;
}

.docs-diff-card{
  border-radius:1rem;
  padding:1rem;
  margin-bottom:1rem;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
}

.docs-diff-card:last-child{
  margin-bottom:0;
}

.docs-diff-added{
  border-left:6px solid var(--docs-success);
  background:linear-gradient(180deg, #ffffff 0%, var(--docs-success-soft) 100%);
}

.docs-diff-removed{
  border-left:6px solid var(--docs-danger-2);
  background:linear-gradient(180deg, #ffffff 0%, var(--docs-danger-soft-2) 100%);
}

.docs-diff-modified{
  border-left:6px solid var(--docs-warning);
  background:linear-gradient(180deg, #ffffff 0%, var(--docs-warning-soft) 100%);
}

.docs-diff-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.8rem;
}

.docs-diff-label{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
  color:#0f172a;
  padding:.38rem .7rem;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(15,23,42,.08);
}

.docs-diff-compare{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1rem;
}

.docs-diff-col{
  min-width:0;
}

.docs-diff-col-title{
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#6b7280;
  font-weight:800;
  margin-bottom:.45rem;
}

.docs-diff-render{
  background:#fff;
  border:1px solid rgba(15,23,42,.07);
  border-radius:.9rem;
  padding:1rem;
  color:#243041;
  line-height:1.7;
  overflow-wrap:anywhere;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.docs-diff-html img{
  max-width:100%;
  height:auto;
  border-radius:.8rem;
}

.docs-diff-html table{
  width:100%;
}

.docs-diff-single-added .docs-diff-render{
  background:#f0fdf4;
  border-color:rgba(22,163,74,.18);
}

.docs-diff-single-removed .docs-diff-render{
  background:#fef2f2;
  border-color:rgba(220,38,38,.18);
}

/* Utilities */
.my-4, .p-lg-5, .p-4{
  margin-top:.5rem !important;
  margin-bottom:.5rem !important;
}

@media (min-width: 992px){
  .p-lg-5{
    padding:.5rem !important;
  }
}

/* Responsive */
@media (max-width: 991.98px){
  .docs-shell{
    display:block;
  }

  .docs-sidebar{
    width:320px !important;
    max-width:320px;
  }

  .docs-article{
    padding:1rem;
  }

  .docs-content,
  .docs-hero,
  .docs-home-hero{
    padding:1.25rem;
  }

  .docs-hero h1,
  .docs-home-hero h1{
    font-size:1.8rem;
  }

  .docs-versions-layout{
    grid-template-columns:1fr;
  }

  .docs-versions-sidebar{
    position:relative;
    max-height:none;
  }

  .docs-editor-floating-actions{
    left:.75rem;
    right:.75rem;
    bottom:.75rem;
    justify-content:center;
    flex-wrap:wrap;
    border-radius:1rem;
  }
}

@media (max-width: 768px){
  .docs-error-body{
    padding:2rem 1.25rem;
  }

  .docs-error-meta{
    grid-template-columns:1fr;
  }

  .docs-error-actions{
    flex-direction:column;
  }

  .docs-btn-primary,
  .docs-btn-secondary{
    width:100%;
  }

  .docs-update-marker-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .docs-update-marker-action{
    width:100%;
  }

  .docs-update-marker-action .btn{
    width:100%;
  }

  .docs-diff-compare{
    grid-template-columns:1fr;
  }

  .docs-versions-modal .modal-header{
    padding:1rem 1rem .35rem;
  }

  .docs-versions-modal .modal-body{
    padding:0 1rem 1rem;
  }
}
/* Headers Bootstrap foncés */
.card-header.bg-danger h1,
.card-header.bg-danger h2,
.card-header.bg-danger h3,
.card-header.bg-danger h4,
.card-header.bg-danger h5,
.card-header.bg-danger h6,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6{
  color:#fff !important;
}

/* Headers Bootstrap clairs */
.card-header.bg-body-tertiary h1,
.card-header.bg-body-tertiary h2,
.card-header.bg-body-tertiary h3,
.card-header.bg-body-tertiary h4,
.card-header.bg-body-tertiary h5,
.card-header.bg-body-tertiary h6,
.card-header.bg-light h1,
.card-header.bg-light h2,
.card-header.bg-light h3,
.card-header.bg-light h4,
.card-header.bg-light h5,
.card-header.bg-light h6,
.card-header.bg-white h1,
.card-header.bg-white h2,
.card-header.bg-white h3,
.card-header.bg-white h4,
.card-header.bg-white h5,
.card-header.bg-white h6{
  color:#111827 !important;
}