/* FranceConcours — panneau d'aide (portail) */

.fc-help-shell[hidden] {
  display: none !important;
}

.fc-help-shell {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
}

.fc-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 49, 0.42);
  pointer-events: auto;
  opacity: 0;
  animation: fcHelpFadeIn 0.28s ease forwards;
}

.fc-help-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: 100vh;
  margin: 0;
  background: var(--fc-surface, #fff);
  box-shadow: -12px 0 48px rgba(22, 29, 63, 0.18);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  transform: translateX(100%);
  animation: fcHelpSlideIn 0.32s var(--fc-ease-out, ease) forwards;
}

.fc-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--fc-line, #e5e7ef);
}

.fc-help-brand {
  font-family: var(--fc-font-display);
  font-size: 0.95rem;
  color: var(--fc-ink);
}

.fc-help-close {
  border: 0;
  background: var(--fc-bg-secondary, #f0f1f8);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--fc-text-sub);
}

.fc-help-close:hover {
  background: var(--fc-indigo-soft);
  color: var(--fc-indigo);
}

.fc-help-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

@media (min-width: 520px) {
  .fc-help-body {
    grid-template-columns: 148px 1fr;
  }
}

.fc-help-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--fc-line);
  overflow: auto;
  max-height: 140px;
}

@media (min-width: 520px) {
  .fc-help-nav {
    border-bottom: 0;
    border-right: 1px solid var(--fc-line);
    max-height: none;
  }
}

.fc-help-nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--fc-text-sub);
  cursor: pointer;
}

.fc-help-nav-item.is-active,
.fc-help-nav-item:hover {
  background: var(--fc-indigo-soft);
  color: var(--fc-indigo-dark);
}

.fc-help-content {
  padding: 18px 20px 28px;
  overflow: auto;
}

.fc-help-content--in {
  animation: fcHelpContentIn 0.35s ease;
}

.fc-help-title {
  margin: 0 0 8px;
  font-family: var(--fc-font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
}

.fc-help-lead {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fc-lead);
}

.fc-help-demo-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-text-muted);
  margin-bottom: 8px;
}

.fc-help-demo-wrap {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--fc-bg, #f8f8f5);
  border: 1px solid var(--fc-line);
}

.fc-help-list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--fc-text-sub);
}

.fc-help-list li {
  margin-bottom: 8px;
}

/* Démos animées */
.fc-help-demo {
  position: relative;
  min-height: 120px;
}

.fc-help-demo-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.fc-help-demo-chrome em {
  margin-left: auto;
  font-size: 9px;
  font-weight: 750;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-indigo);
}

.fc-help-demo-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fc-line);
}

.fc-help-demo-q {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-help-demo-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  margin-bottom: 6px;
  border-radius: 8px;
  border: 1px solid var(--fc-line);
  background: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(6px);
  animation: fcHelpStagger 0.45s ease forwards;
}

.fc-help-demo-opt--a { animation-delay: 0.08s; }
.fc-help-demo-opt--b { animation-delay: 0.16s; }
.fc-help-demo-opt:nth-child(5) { animation-delay: 0.24s; }
.fc-help-demo-opt:nth-child(6) { animation-delay: 0.32s; }

.fc-help-demo-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 650;
  color: var(--fc-text-muted);
}

.fc-help-demo-foot .fc-help-demo-bar {
  flex: 1;
  margin-top: 0;
}

.fc-help-demo-opt span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--fc-indigo-soft);
  color: var(--fc-indigo);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.fc-help-demo-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(85, 86, 217, 0.15);
  margin-top: 8px;
  overflow: hidden;
}

.fc-help-demo-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fc-indigo), var(--fc-indigo-dark));
  border-radius: inherit;
  animation: fcHelpBarGrow 1.2s ease 0.3s forwards;
}

.fc-help-demo-doc {
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-line);
  margin-bottom: 8px;
  animation: fcHelpStagger 0.5s ease forwards;
}

.fc-help-demo-doc--short {
  width: 72%;
  animation-delay: 0.12s;
}

.fc-help-demo-lines span {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: var(--fc-indigo-soft);
  margin-bottom: 6px;
  transform: scaleX(0);
  transform-origin: left;
  animation: fcHelpLineGrow 0.6s ease forwards;
}

.fc-help-demo-lines span:nth-child(2) { animation-delay: 0.15s; width: 88%; }
.fc-help-demo-lines span:nth-child(3) { animation-delay: 0.28s; width: 64%; }

.fc-help-demo-timer {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fc-gold-soft);
  color: var(--fc-gold-text);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.fc-help-demo-prompt {
  font-size: 12px;
  font-weight: 650;
  color: var(--fc-ink);
  margin-bottom: 12px;
}

.fc-help-demo-wave span {
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 4px;
  border-radius: 2px;
  background: var(--fc-indigo);
  animation: fcHelpWave 0.9s ease-in-out infinite;
}

.fc-help-demo-wave span:nth-child(2) { animation-delay: 0.15s; }
.fc-help-demo-wave span:nth-child(3) { animation-delay: 0.3s; }

.fc-help-demo-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fc-text-sub);
}

.fc-help-demo-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(85, 86, 217, 0.12);
  overflow: hidden;
}

.fc-help-demo-track i {
  display: block;
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, var(--fc-indigo), var(--fc-indigo-dark));
  border-radius: inherit;
  animation: fcHelpBarGrow 1s ease forwards;
}

.fc-help-demo-mag {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--fc-line);
  margin-bottom: 8px;
  font-size: 11px;
}

.fc-help-demo-mag strong {
  display: block;
  color: var(--fc-indigo);
  margin-bottom: 4px;
}

.fc-help-demo-mag--dim {
  opacity: 0.75;
}

.fc-help-demo-chips span {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 6px 10px 0;
  border-radius: 999px;
  border: 1px solid var(--fc-line);
  font-size: 11px;
  font-weight: 700;
}

.fc-help-demo-chips span.on {
  background: var(--fc-indigo);
  color: #fff;
  border-color: var(--fc-indigo);
}

.fc-help-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fc-help-demo-grid i {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--fc-indigo-soft), #fff);
  border: 1px solid var(--fc-line);
}

.fc-help-demo-path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.fc-help-demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fc-indigo);
}

.fc-help-demo-line {
  flex: 1;
  height: 2px;
  background: var(--fc-line);
}

.fc-help-demo-card {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-line);
  font-size: 11px;
  font-weight: 700;
}

.fc-help-demo-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  background: var(--fc-indigo);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

@keyframes fcHelpFadeIn {
  to { opacity: 1; }
}

@keyframes fcHelpSlideIn {
  to { transform: translateX(0); }
}

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

@keyframes fcHelpStagger {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fcHelpBarGrow {
  to { width: 62%; }
}

@keyframes fcHelpLineGrow {
  to { transform: scaleX(1); }
}

@keyframes fcHelpWave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-help-backdrop,
  .fc-help-panel,
  .fc-help-content--in,
  .fc-help-demo-opt,
  .fc-help-demo-fill,
  .fc-help-demo-lines span,
  .fc-help-demo-track i,
  .fc-help-demo-wave span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .fc-help-demo-fill,
  .fc-help-demo-track i {
    width: 62%;
  }
}

body.fc-help-on {
  overflow: hidden;
}
