/* Bouton « Demander une démo » du header : petit panneau au survol pour planifier une démo. */
.demo-drop {
  position: relative;
  display: inline-flex;
}

.demo-drop__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  width: 320px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.demo-drop__inner {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: #141414;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  color: #fff;
  text-align: left;
}

.demo-drop:hover .demo-drop__panel,
.demo-drop:focus-within .demo-drop__panel,
.demo-drop.is-open .demo-drop__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.demo-drop__title {
  margin: 0 0 6px;
  font-family: "Matter";
  font-size: 16px;
  line-height: 22px;
}

.demo-drop__text {
  margin: 0 0 14px;
  font-family: "Matter-thin";
  font-size: 13px;
  line-height: 19px;
  color: rgba(255, 255, 255, .72);
}

.demo-drop__form {
  display: grid;
  gap: 8px;
}

.demo-drop__form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: "Matter-thin";
  font-size: 14px;
  box-sizing: border-box;
}

.demo-drop__form input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.demo-drop__form input:focus {
  outline: none;
  border-color: var(--color-accent, #3B82F6);
}

.demo-drop__form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent, #3B82F6);
  color: #fff;
  font-family: "Matter";
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.demo-drop__form button:hover {
  background: #2f6fd9;
}

.demo-drop__form button:disabled {
  opacity: .6;
  cursor: default;
}

.demo-drop__hp,
.demo-drop__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.demo-drop__status {
  margin: 10px 0 0;
  font-family: "Matter-thin";
  font-size: 13px;
  line-height: 19px;
  color: var(--color-secondary, #A9C7FF);
}

.demo-drop__status:empty {
  display: none;
}

.demo-drop__login {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: "Matter-thin";
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.demo-drop__login:hover {
  color: #fff;
}

/* Le header est sticky (z-index 10) : pendant l'ouverture, il passe devant la fenêtre guide (99990). */
.header-navigation:has(.demo-drop:hover),
.header-navigation:has(.demo-drop:focus-within),
.header-navigation:has(.demo-drop.is-open) {
  z-index: 100000;
}
