/* Panneau d'aide du Conseiller Formation : visiteur et session partagent
   le même discours. Le badge reprend le launcher réel, figé dans la ligne. */

.aide-panel {
  max-width: 900px;
  color: var(--ink, var(--learn-navy, #141413));
  font-size: 1rem;
  line-height: 1.6;
}

.aide-panel > h2 {
  margin-top: 44px;
  color: var(--navy, var(--learn-navy, #14224F));
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.aide-panel > p {
  margin-top: 16px;
}

.aide-panel .guide-intro {
  color: var(--navy, var(--learn-navy, #14224F));
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 650;
  line-height: 1.6;
}

/* Badge dans la phrase : taille de ligne, pas le launcher flottant 62 px. */
.aide-badge {
  display: inline-flex;
  align-items: center;
  height: 1.25em;
  margin: 0 0.18em;
  vertical-align: baseline;
}

.aide-badge .fc-conseiller-launcher {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1;
  display: inline-flex;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 1.25em !important;
  align-items: center;
  gap: 0.28em;
  border-radius: 0.34em;
  padding: 0.08em 0.32em 0.08em 0.08em !important;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
  flex: none;
}

.aide-badge .fc-conseiller-launcher:hover {
  transform: none;
  box-shadow: none;
}

.aide-badge .fc-conseiller-launcher-mark {
  width: 1.1em !important;
  height: 1.1em !important;
  border-radius: 0.28em;
  filter: none;
}

.aide-badge .fc-conseiller-launcher-copy {
  gap: 0;
}

.aide-badge .fc-conseiller-launcher-copy strong {
  font-size: 0.68em;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .aide-badge .fc-conseiller-launcher {
    width: 1.25em !important;
    min-width: 1.25em !important;
    height: 1.25em !important;
    padding: 0.08em !important;
    border-radius: 0.3em;
  }

  .aide-badge .fc-conseiller-launcher-copy {
    display: none !important;
  }
}

.aide-steps {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.aide-steps li {
  min-height: 46px;
  border: 1px solid rgba(15, 157, 140, 0.34);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
}

.aide-steps strong {
  color: var(--teal-dark, var(--learn-teal-dark, #0B6F62));
}

.aide-act {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.aide-panel .notice {
  margin-top: 24px;
  border: 1px solid rgba(15, 157, 140, 0.42);
  border-radius: 16px;
  padding: 15px 18px;
  background:
    radial-gradient(circle at 100% 100%, rgba(217, 149, 33, 0.10), transparent 26%),
    radial-gradient(circle at 88% 0, rgba(217, 149, 33, 0.07), transparent 20%),
    linear-gradient(145deg, #fff 0%, rgba(238, 250, 247, 0.92) 100%);
  box-shadow:
    0 14px 36px rgba(11, 111, 98, 0.10),
    0 0 0 5px rgba(15, 157, 140, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  color: var(--slate, var(--learn-slate, #5B6473));
}

.aide-panel .notice strong {
  color: var(--navy, var(--learn-navy, #14224F));
}

/* Bouton teal local au panneau : la page session n'importe pas
   kolytica-charte.css, la page visiteur si. Même dessin, pas de :root. */
.aide-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.86em 1.55em;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background-color: var(--teal, var(--learn-teal, #0F9D8C));
  color: var(--on-teal, #052a25);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.aide-panel .btn.btn-teal:hover {
  background-color: var(--teal-dark, var(--learn-teal-dark, #0B6F62));
  color: #fff;
  text-decoration: none;
}

[data-learn-view="aide"] {
  width: min(900px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: 20px 48px;
}

.dashboard-drawer-help .aide-panel,
.dashboard-home-mobile-help .aide-panel,
[data-learn-view="aide"] .aide-panel {
  max-width: none;
}

.dashboard-drawer-help .aide-panel > h2,
[data-learn-view="aide"] .aide-panel > h2 {
  margin-top: 28px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.dashboard-drawer-help .aide-panel .guide-intro,
.dashboard-drawer-help .aide-panel p,
.dashboard-drawer-help .aide-panel .notice,
.dashboard-drawer-help .aide-panel .aide-steps strong,
[data-learn-view="aide"] .aide-panel .guide-intro,
[data-learn-view="aide"] .aide-panel p,
[data-learn-view="aide"] .aide-panel .notice {
  font-size: 1rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .aide-badge .fc-conseiller-launcher,
  .aide-badge .fc-conseiller-launcher:hover {
    transition: none;
    transform: none;
  }
}
