/* Sphera : styles accordés à /css/style.css de The Seed.
   Charger après style.css et axe-presence.css. */
main.axe-presence__main.sphera-prompt-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 34px) 72px;
  color: #fff;
  font-family: Inter, "IBM Plex Sans", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.65;
  background: transparent;
}
.sphera-prompt-page *, .sphera-prompt-page *::before,
.sphera-prompt-page *::after { box-sizing: border-box; }
.sphera-prompt-page .prompt-back {
  display: inline-block;
  margin: 0 0 30px;
  color: #a9c3ff;
  font-size: 17px;
  text-underline-offset: 4px;
}
.sphera-prompt-page .prompt-kicker {
  margin: 0 0 30px;
  color: #a9c3ff;
  font-size: 15px;
  letter-spacing: .06em;
  text-align: center;
}
.sphera-prompt-page h1 {
  margin: 0 0 40px;
  color: #fff;
  font-family: "Fontdiner Swanky", Georgia, serif;
  font-size: clamp(1.8rem, 5.4vw, 4.05rem);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}
.sphera-prompt-page .prompt-lead {
  margin: 0 0 40px;
  color: #d9e8ec;
  font-size: 19px;
  line-height: 1.8;
  text-align: center;
}
.sphera-prompt-page .sphera-prompt-builder {
  display: block;
  margin: 0 0 40px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #222;
  border-radius: 14px;
  background: #080808;
  min-width: 0;
}
.sphera-prompt-page h2 {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  color: #4df1fa;
  font-family: "Fontdiner Swanky", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.0625rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}
.sphera-prompt-page form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin: 0; }
.sphera-prompt-page form > label {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #d9e8ec;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
}
.sphera-prompt-page label span { font-weight: 400; color: #aeb8c2; }
.sphera-prompt-page textarea, .sphera-prompt-page select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #495361;
  border-radius: 10px;
  background: #101318;
  color: #fff;
  font: inherit;
  font-size: 19px;
  line-height: 1.6;
  text-align: left;
  color-scheme: dark;
}
.sphera-prompt-page textarea { resize: vertical; min-height: 100px; }
.sphera-prompt-page textarea::placeholder { color: #aeb8c2; opacity: 1; }
.sphera-prompt-page fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #333d48;
  border-radius: 10px;
}
.sphera-prompt-page legend { padding: 0 8px; color: #d9e8ec; font-size: 19px; }
.sphera-prompt-page .prompt-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.sphera-prompt-page .prompt-checks label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: #d9e8ec;
  font-size: 17px;
  line-height: 1.6;
  cursor: pointer;
}
.sphera-prompt-page .prompt-checks input {
  appearance: auto;
  position: static;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: #7fa8ff;
}
.sphera-prompt-page .prompt-preview {
  min-width: 0;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #333d48;
}
.sphera-prompt-page #prompt-output {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(127, 168, 255, .3);
  border-radius: 10px;
  background: #0b1018;
  color: #d9e8ec;
  font: inherit;
  font-size: 0.6875rem; /* 11 px sur une base racine de 16 px */
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  overflow: auto;
}

/* Réglage discret de la lecture : aucune carte, bouton compact, 11 px par défaut. */
.sphera-prompt-page .prompt-text-scale {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb8c2;
  text-align: right;
  line-height: 1.3;
}
.sphera-prompt-page .prompt-text-scale__label {
  font-size: .8125rem;
  font-weight: 400;
  color: #aeb8c2;
}
.sphera-prompt-page .prompt-text-scale__controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}
.sphera-prompt-page .prompt-text-scale__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid #465363;
  border-radius: 6px;
  background: #10151b;
  color: #c9d5e2;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.sphera-prompt-page .prompt-text-scale__controls button:not(:disabled):hover {
  background: #1b2733;
  border-color: #7f96af;
}
.sphera-prompt-page .prompt-text-scale__controls button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.sphera-prompt-page .prompt-text-scale__controls output {
  display: inline-block;
  min-width: 46px;
  color: #d9e8ec;
  text-align: center;
  font-size: .8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sphera-prompt-page .prompt-stats {
  margin: 16px 0 30px;
  color: #aeb8c2;
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}
.sphera-prompt-page .prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.sphera-prompt-page .prompt-actions button,
.sphera-prompt-page .prompt-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 14px 22px;
  border: 1px solid rgba(121, 207, 155, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(41, 108, 77, .22), rgba(17, 57, 43, .28));
  color: #dff7e7;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.sphera-prompt-page .prompt-actions a {
  border-color: rgba(127, 168, 255, .55);
  background: rgba(127, 168, 255, .09);
  color: #dbe6ff;
}
.sphera-prompt-page .prompt-actions button:hover,
.sphera-prompt-page .prompt-actions a:hover { border-color: #a9c3ff; color: #fff; }
.sphera-prompt-page :is(a, button, textarea, select, input):focus-visible {
  outline: 2px solid #4df1fa;
  outline-offset: 4px;
}
.sphera-prompt-page .prompt-actions button:disabled { opacity: .55; cursor: not-allowed; }
.sphera-prompt-page .prompt-status { margin: 20px 0 0; color: #dff7e7; font-size: 17px; line-height: 1.6; text-align: center; }
.sphera-prompt-page .prompt-status:empty { margin: 0; }
.sphera-prompt-page .prompt-notice {
  margin: 0;
  padding: 24px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #080808;
  color: #b9c2cc;
  font-size: 17px;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .sphera-prompt-page .prompt-checks { grid-template-columns: minmax(0, 1fr); }
  .sphera-prompt-page .prompt-actions { flex-direction: column; }
  .sphera-prompt-page .prompt-actions :is(button, a) { width: 100%; }
  .sphera-prompt-page fieldset { padding: 16px; }
  .sphera-prompt-page #prompt-output { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sphera-prompt-page .prompt-actions :is(button, a) { transition: none; }
}

body#top {
  background-color: #000000;
  background-image: url('/images/ciel-etoile-fond-seed-90.webp');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
  background-attachment: scroll;
}

main.axe-presence__main.sphera-prompt-page {
  background: transparent;
}

/* Actions accessibles dès la saisie, puis pendant le remplissage. */
.sphera-prompt-page .prompt-version { font-size: 17px; }
.sphera-prompt-page .prompt-quick-actions {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin: 0 0 30px;
  padding: 12px;
  border: 1px solid #495361;
  border-radius: 12px;
  background: #080808;
  box-shadow: 0 6px 20px #0009;
}
.sphera-prompt-page .prompt-quick-actions .prompt-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
}
.sphera-prompt-page .prompt-quick-actions .prompt-actions :is(button, a) {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 10px;
  font-size: 16px;
  letter-spacing: 0;
}
.sphera-prompt-page .prompt-quick-status {
  margin: 8px 0 0;
  color: #dff7e7;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.sphera-prompt-page .prompt-quick-status:empty { display: none; }
.sphera-prompt-page #votre-assistant-ia { display: block; scroll-margin-top: 170px; }
.sphera-prompt-page form :is(textarea, select, input) { scroll-margin-top: 170px; }
