.demo-shell { min-height: 100vh; }
.demo-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.demo-main { max-width: 1440px; }
.demo-mini-banner {
  background: #fff7e6;
  border: 1px solid #f0d59d;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #5f3f00;
  line-height: 1.45;
}
.demo-banner {
  background: #fff7e6;
  border: 1px solid #f0d59d;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #5f3f00;
}
.demo-pro-mini {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.demo-pro-mini-top {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
}
.demo-pro-mini strong { display: block; font-size: .98rem; line-height: 1.25; }
.demo-pro-mini span { display: block; font-size: .86rem; opacity: .86; line-height: 1.35; }
.demo-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  font-weight: 900;
  letter-spacing: .04em;
}
.rdv-menu-note {
  margin-top: 18px;
  font-size: .86rem;
  line-height: 1.45;
  opacity: .86;
  background: rgba(255,255,255,.08);
  padding: 12px;
  border-radius: 14px;
}
.demo-disabled {
  opacity: .58;
  cursor: not-allowed;
  background: #777 !important;
}
.demo-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.demo-kv {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 14px;
  line-height: 1.45;
}
.demo-kv dt { color: var(--rdv-muted); font-weight: 700; }
.demo-kv dd { margin: 0; }
.demo-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tag {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(55,0,10,.08);
  color: var(--rdv-primary);
  font-weight: 700;
  font-size: .88rem;
}
.demo-warning {
  padding: 14px 16px;
  background: #f7f7fa;
  border: 1px dashed #c9c9d3;
  border-radius: 14px;
  color: var(--rdv-muted);
  line-height: 1.5;
}
.demo-timeline { display: grid; gap: 12px; }
.demo-timeline-item { border-left: 4px solid var(--rdv-primary); padding: 10px 14px; background: var(--rdv-soft); border-radius: 12px; }
.demo-page-intro,
.demo-page-intro-compact {
  display: block;
  background: #fff;
  border: 1px solid rgba(55,0,10,.12);
  border-left: 5px solid var(--rdv-primary);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 18px;
  box-shadow: 0 10px 24px rgba(20,20,40,.045);
}
.demo-page-intro h2,
.demo-page-intro-compact h2 {
  margin: 0 0 6px;
  color: var(--rdv-primary);
  font-size: 1.02rem;
}
.demo-page-intro p,
.demo-page-intro-compact p {
  margin: 0;
  color: var(--rdv-muted);
  line-height: 1.5;
}
@media(max-width: 900px) {
  .demo-sidebar { position: static; height: auto; }
  .demo-panel, .demo-kv { grid-template-columns: 1fr; }
}


/* Pack 84 - blocs d'avantages RDVLIB dans la démonstration */
.demo-advantages-card {
  margin: 0 0 22px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #37000A 0%, #5b1020 64%, #fff7e6 64.2%, #fff7e6 100%);
  box-shadow: 0 18px 44px rgba(55,0,10,.13);
  color: #fff;
  overflow: hidden;
}
.demo-advantages-head {
  width: min(100%, 58%);
  max-width: 58%;
  margin-bottom: 18px;
}
.demo-advantages-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff7e6;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.demo-advantages-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  line-height: 1.12;
  color: #fff;
}
.demo-advantages-head p {
  margin: 0;
  max-width: 100%;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
}
.demo-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.demo-advantage-item {
  background: rgba(255,255,255,.95);
  color: #211d1f;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 12px 28px rgba(20,20,40,.08);
}
.demo-advantage-item strong {
  display: block;
  color: #37000A;
  font-size: .98rem;
  margin-bottom: 7px;
}
.demo-advantage-item p {
  margin: 0;
  color: #5d5558;
  line-height: 1.48;
  font-size: .93rem;
}
@media(max-width: 1100px) {
  .demo-advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-advantages-card { background: linear-gradient(135deg, #37000A 0%, #5b1020 100%); }
}
@media(max-width: 700px) {
  .demo-advantages-grid { grid-template-columns: 1fr; }
  .demo-advantages-card { padding: 18px; border-radius: 20px; }
}

/* Pack 106 - pied de page de la partie démonstration */
.demo-dashboard-footer {
  margin: 28px 0 0;
  padding: 18px 18px;
  border-radius: 20px;
  background: #37000A;
  color: #fff;
  box-shadow: 0 14px 30px rgba(55,0,10,.12);
}
.demo-dashboard-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}
.demo-dashboard-footer a {
  color: rgba(255,255,255,.92);
  font-weight: 800;
  text-decoration: none;
  font-size: .92rem;
}
.demo-dashboard-footer a:hover,
.demo-dashboard-footer a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media(max-width: 700px) {
  .demo-dashboard-footer nav { justify-content: flex-start; }
}


/* Pack 109 - footer interne réellement fixe dans les pages de démonstration */
.demo-dashboard-body {
  --demo-dashboard-footer-height: 74px;
}
.demo-dashboard-body .rdv-main {
  padding-bottom: calc(28px + var(--demo-dashboard-footer-height));
}
.demo-dashboard-body .demo-dashboard-footer {
  position: fixed;
  left: 260px;
  right: 0;
  bottom: 0;
  z-index: 9999;
  min-height: var(--demo-dashboard-footer-height);
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -10px 28px rgba(55,0,10,.18);
}
.demo-dashboard-body .demo-dashboard-footer nav {
  width: min(calc(100% - 40px), 1180px);
}
@media(max-width: 900px) {
  .demo-dashboard-body {
    --demo-dashboard-footer-height: 112px;
  }
  .demo-dashboard-body .rdv-main {
    padding-bottom: calc(16px + var(--demo-dashboard-footer-height));
  }
  .demo-dashboard-body .demo-dashboard-footer {
    left: 0;
    align-items: flex-start;
    padding: 16px 14px;
  }
  .demo-dashboard-body .demo-dashboard-footer nav {
    width: 100%;
    justify-content: flex-start;
  }
}
@media(max-width: 520px) {
  .demo-dashboard-body {
    --demo-dashboard-footer-height: 148px;
  }
}

/* Pack 110 - correction limitée à la démonstration : footer interne fixé */
.demo-dashboard-body {
  --demo-dashboard-footer-height: 74px;
}
.demo-dashboard-body .rdv-main {
  padding-bottom: calc(32px + var(--demo-dashboard-footer-height));
}
.demo-dashboard-body .demo-dashboard-footer {
  position: fixed;
  left: 260px;
  right: 0;
  bottom: 0;
  z-index: 99999;
  min-height: var(--demo-dashboard-footer-height);
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -10px 28px rgba(55, 0, 10, .18);
}
.demo-dashboard-body .demo-dashboard-footer nav {
  width: min(calc(100% - 40px), 1180px);
}
@media(max-width: 900px) {
  .demo-dashboard-body {
    --demo-dashboard-footer-height: 112px;
  }
  .demo-dashboard-body .rdv-main {
    padding-bottom: calc(20px + var(--demo-dashboard-footer-height));
  }
  .demo-dashboard-body .demo-dashboard-footer {
    left: 0;
    align-items: flex-start;
    padding: 16px 14px;
  }
  .demo-dashboard-body .demo-dashboard-footer nav {
    width: 100%;
    justify-content: flex-start;
  }
}
@media(max-width: 520px) {
  .demo-dashboard-body {
    --demo-dashboard-footer-height: 150px;
  }
}


/* RDVLIB Pack 110 bis - Pages internes démonstration : footer fixé comme le footer public */
.demo-dashboard-body {
  --demo-dashboard-footer-height: 54px;
  padding-bottom: var(--demo-dashboard-footer-height) !important;
}
.demo-dashboard-body .rdv-main {
  padding-bottom: calc(32px + var(--demo-dashboard-footer-height)) !important;
}
.demo-dashboard-body .demo-dashboard-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999 !important;
  min-height: var(--demo-dashboard-footer-height) !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--rdv-primary) !important;
  color: #fff !important;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .10) !important;
}
.demo-dashboard-body .demo-dashboard-footer nav {
  width: min(calc(100% - 72px), 1180px) !important;
  min-height: var(--demo-dashboard-footer-height) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px 58px !important;
  font-weight: 800 !important;
  font-size: .82rem !important;
}
.demo-dashboard-body .demo-dashboard-footer a {
  color: rgba(255, 255, 255, .88) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: .82rem !important;
}
.demo-dashboard-body .demo-dashboard-footer a:hover,
.demo-dashboard-body .demo-dashboard-footer a:focus {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}
@media (max-width: 920px) {
  .demo-dashboard-body { --demo-dashboard-footer-height: 86px; }
  .demo-dashboard-body .demo-dashboard-footer nav {
    width: min(calc(100% - 40px), 1180px) !important;
    gap: 12px 24px !important;
    justify-content: center !important;
  }
}
@media (max-width: 520px) {
  .demo-dashboard-body { --demo-dashboard-footer-height: 120px; }
}


/* RDVLIB Pack 116 - démonstration : CSS centralisé dans /assets/css/demo.css
   Correction définitive : le texte blanc du bloc avantage reste dans la zone rouge. */
.demo-advantages-card {
  background: linear-gradient(135deg, #37000A 0%, #5b1020 64%, #fff7e6 64.2%, #fff7e6 100%) !important;
}
.demo-advantages-head {
  width: min(100%, 58%) !important;
  max-width: 58% !important;
}
.demo-advantages-head p {
  max-width: 100% !important;
}
@media(max-width: 1320px) {
  .demo-advantages-card {
    background: linear-gradient(135deg, #37000A 0%, #5b1020 68%, #fff7e6 68.2%, #fff7e6 100%) !important;
  }
  .demo-advantages-head {
    width: min(100%, 62%) !important;
    max-width: 62% !important;
  }
}
@media(max-width: 1200px) {
  .demo-advantages-card {
    background: linear-gradient(135deg, #37000A 0%, #5b1020 72%, #fff7e6 72.2%, #fff7e6 100%) !important;
  }
  .demo-advantages-head {
    width: min(100%, 66%) !important;
    max-width: 66% !important;
  }
}
@media(max-width: 1100px) {
  .demo-advantages-card {
    background: linear-gradient(135deg, #37000A 0%, #5b1020 100%) !important;
  }
  .demo-advantages-head {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* RDVLIB Pack 224 - Responsive démonstration interne */
@media (max-width: 920px) {
  .demo-shell,
  .demo-main,
  .demo-panel,
  .demo-kv,
  .demo-advantages-card,
  .demo-advantage-item {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .demo-sidebar {
    position: static !important;
    height: auto !important;
    max-height: none !important;
  }

  .demo-panel,
  .demo-kv,
  .demo-advantages-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .demo-mini-banner,
  .demo-banner,
  .demo-page-intro,
  .demo-page-intro-compact,
  .demo-advantages-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }
}
