/* Page /questions — le ciel des questions.
   Le fond est la nuit du site. Les étoiles sont des points d'interrogation :
   de loin on voit une voûte, de près chaque grain est un « ? ».
   Aucune couleur nouvelle : ivoire pour ce qui est écrit, terre pour ce qui
   est vif, gris pour ce qui situe. */

.q-entete {
  max-width: 900px; margin: 0 auto;
  padding: clamp(40px, 7vw, 86px) clamp(16px, 5vw, 64px) clamp(20px, 3vw, 32px);
}
.q-entete h1 {
  font-size: clamp(30px, 6vw, 60px); line-height: 1.04; text-transform: uppercase;
  letter-spacing: 0.02em; font-weight: 300; margin: 12px 0 18px;
}
.q-entete p { margin: 0; max-width: 62ch; color: rgba(243,239,233,0.86); font-size: clamp(16px, 1.9vw, 19px); }
.q-entete strong { color: var(--ivoire); font-weight: 400; }

main { max-width: var(--largeur); margin: 0 auto; padding-inline: clamp(16px, 5vw, 64px); }

.q-scene { position: relative; margin: clamp(10px, 2vw, 18px) 0 clamp(14px, 2vw, 20px); }
.q-voute {
  display: block; width: 100%; height: auto;
  background: radial-gradient(120% 90% at 50% 100%, #1A0C10 0%, #0B0306 72%);
  border-radius: 3px;
}

/* Chaque étoile est un « ? ». Elle grossit et s'allume quand on la vise. */
.q-etoile {
  fill: var(--ivoire); font-family: Lato, sans-serif; text-anchor: middle;
  cursor: pointer; transition: fill 160ms ease, opacity 160ms ease;
}
.q-etoile:hover, .q-etoile[data-vif] { fill: var(--terre); opacity: 1 !important; }
.q-etoile:focus-visible { outline: 2px solid var(--ivoire); outline-offset: 2px; }

.q-horizon { stroke: rgba(243,239,233,0.30); stroke-width: 1; }

/* Le sol : les vingt-deux questions du bivouac, qui glissent lentement. */
.q-sol {
  fill: rgba(243,239,233,0.34); font-family: Lato, sans-serif; font-size: 15px;
  letter-spacing: 0.04em; white-space: pre;
  animation: q-glisse 240s linear infinite;
}
@keyframes q-glisse { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .q-sol { animation: none; } }

.q-vide {
  position: absolute; left: 0; right: 0; top: 38%; margin: 0; display: none;
  text-align: center; color: var(--gris); font-size: clamp(15px, 1.9vw, 19px); line-height: 1.7;
}
.q-vide[data-on] { display: block; }

/* La question lue, sous le ciel : elle ne recouvre jamais le dessin. */
.q-lu { min-height: 92px; padding-top: clamp(14px, 2vw, 20px); }
.q-lu-q {
  margin: 0; font-size: clamp(19px, 2.8vw, 28px); line-height: 1.3; color: var(--ivoire);
  min-height: 1.3em;
}
.q-lu-ou {
  margin: 8px 0 0; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris);
}

.q-legende {
  list-style: none; margin: 0; padding: clamp(14px, 2vw, 20px) 0 0;
  display: grid; gap: 2px; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--trait);
}
@media (max-width: 720px) { .q-legende { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.q-legende li { padding-top: 12px; }
.q-nom { display: block; font-size: 14px; color: rgba(243,239,233,0.86); }
.q-jours { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--gris); margin-top: 2px; }
.q-compte {
  margin: clamp(16px, 2.4vw, 22px) 0 0; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gris);
}

.q-dire { border-top: 1px solid var(--trait); padding: clamp(28px, 4.4vw, 44px) 0 0; margin-top: clamp(28px, 4.4vw, 44px); }
.q-dire h2 {
  font-size: clamp(18px, 2.4vw, 24px); text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 300; margin: 0 0 16px;
}
.q-dire p { margin: 0 0 14px; max-width: 70ch; color: rgba(243,239,233,0.86); }
.q-dire strong { color: var(--ivoire); font-weight: 400; }
.q-apart { color: var(--gris) !important; font-size: 15px; }

.q-liens { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(30px, 5vw, 48px) 0 clamp(20px, 3vw, 30px); }
.q-liens .bouton {
  display: inline-block; padding: 13px 22px; border-radius: 999px; text-decoration: none;
  background: var(--terre); color: var(--ivoire); font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.q-liens .bouton:hover { background: #A93424; }
.q-liens .bouton-discret { background: transparent; box-shadow: inset 0 0 0 1px var(--trait); }
.q-liens .bouton-discret:hover { background: rgba(243,239,233,0.08); }

.q-pied {
  max-width: var(--largeur); margin: 0 auto;
  padding: clamp(28px, 4.4vw, 44px) clamp(16px, 5vw, 64px) clamp(44px, 7vw, 72px);
  border-top: 1px solid var(--trait);
  font-size: 13px; color: var(--gris); line-height: 1.8;
}
.q-pied p { margin: 0 0 6px; }

/* Le cadre du ciel : les colonnes de lieux, l'échelle des heures.
   Très faibles — ils situent, ils ne se regardent pas. */
.q-colonne { stroke: rgba(243,239,233,0.08); stroke-width: 1; }
.q-colonne-nom {
  fill: rgba(243,239,233,0.38); font-family: Lato, sans-serif; font-size: 13px;
  letter-spacing: 0.1em; text-anchor: middle; text-transform: uppercase;
}
.q-heure-trait { stroke: rgba(243,239,233,0.05); stroke-width: 1; }
.q-heure-nom { fill: rgba(243,239,233,0.26); font-family: Lato, sans-serif; font-size: 11px; letter-spacing: 0.1em; }

/* Le scintillement. Six classes, six retards : la CSP interdit un style en
   attribut, donc on ne peut pas donner un délai propre à chaque étoile. */
.q-etoile { animation: q-respire 7s ease-in-out infinite; }
.q-t0 { animation-delay: 0s; }
.q-t1 { animation-delay: -1.2s; }
.q-t2 { animation-delay: -2.4s; }
.q-t3 { animation-delay: -3.5s; }
.q-t4 { animation-delay: -4.6s; }
.q-t5 { animation-delay: -5.8s; }
@keyframes q-respire { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .q-etoile { animation: none; } }
