/* Zénith – la page, habillée comme Soleillon (soleillon.app) : les valeurs de site/tokens.css (repris de Soleillon), en
   sombre toujours (les yeux restent habitués à la nuit), la police du système, le verre dépoli, les pastilles et les
   segments. Une scène plein écran (la carte ou la vue 3D) sous des commandes flottantes : une colonne d'icônes qui
   ouvre un seul panneau à la fois, une carte de verre pour ce panneau, ce qui ne sert pas replié. Un mode rouge en plus. */
:root {
  /* les noms de Zénith, raccordés aux valeurs communes */
  --fond: var(--c-bg);
  --panneau: var(--c-surface);
  --panneau-2: #2c2c2e;
  --trait: var(--c-line);
  --texte: var(--c-text);
  --doux: var(--c-text-2);
  --accent: var(--c-accent);
  --accent-fond: color-mix(in srgb, var(--c-accent) 18%, transparent);
  --rouge: var(--c-bad);
  --lune: #f3e6b0;
  /* les couleurs de ce qui cache le ciel : celles de la vue 3D et du profil (site/vue-site.js TEINTES) */
  --relief: #7c818b;
  --vegetation: #2f5a3a;
  --batiment: #9a5a48;
  --lueur: var(--c-sun); /* la couleur de la marque : celle de Soleillon, une étoile au lieu du soleil */
  --rayon: var(--r-2);
  --rayon-petit: 10px;
  --seg-on: #636366; /* le segment choisi (comme Soleillon en sombre) */
  --barre: 56px;
  --rail: 72px;
  --tiroir: 380px;
  --marge: 12px; /* l'écart des commandes flottantes au bord de la scène */
  --duree: var(--dur);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 15px/1.45 var(--f-text);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h2,
h3 {
  font-family: var(--f-display);
}
/* le mode nuit rouge : toute la page en rouge sombre (l'œil garde son adaptation au noir) */
html.nuit-rouge body {
  filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-50deg) brightness(0.75);
}
/* les icônes (dans les boutons) : des traits ; le profil de l'horizon, lui, garde ses couleurs */
button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visuel-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --duree: 0ms;
  }
}
/* le verre dépoli de Soleillon (tokens.css .c-glass), pour tout ce qui flotte sur la scène */
.barre,
.rail,
.tiroir,
.calques,
.lp,
.horloge,
.tiroir-profil,
.scene-tete .bascule,
.scene-tete > .icone,
.scene-pied .icone {
  background: var(--c-glass);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  box-shadow:
    inset 0 0.5px 0 var(--c-glass-edge),
    0 0 0 0.5px var(--c-line),
    var(--sh-2);
}

/* ---------------------------------------------------------------- la barre du haut */
.barre {
  position: relative;
  z-index: 6;
  height: var(--barre);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  box-shadow: inset 0 -0.5px 0 var(--c-line);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 650 17px/1 var(--f-display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marque i {
  font-style: normal;
  color: var(--lueur);
  font-size: 18px;
}
.pastille {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--doux);
  background: var(--c-fill);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* l'annonce : en haut de la scène, une carte de verre ; les étapes cochées en vert, un doute en orangé */
.annonce {
  position: absolute;
  top: var(--marge);
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 2 * var(--marge));
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-pill);
  background: var(--c-glass);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  box-shadow:
    inset 0 0.5px 0 var(--c-glass-edge),
    0 0 0 0.5px var(--c-line),
    var(--sh-2);
  animation: descendre var(--duree) var(--ease);
}
@keyframes descendre {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}
.annonce ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.annonce li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: var(--c-good);
}
.annonce li.attention::before {
  content: "!";
  background: var(--c-warn);
}
/* l'invite d'une recherche longue ou vaine : la même carte, au milieu de l'écran et par-dessus tout (les panneaux,
   l'annonce), son texte sur plusieurs lignes */
.invite {
  position: fixed;
  top: 38%;
  z-index: 60;
  flex-wrap: wrap;
  justify-content: flex-end;
  border-radius: var(--r-2);
  max-width: min(560px, calc(100% - 2 * var(--marge)));
  padding: 14px 14px 14px 20px;
}
#invite-texte {
  flex: 1 1 100%;
}
#invite-texte {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
#invite-continuer {
  flex: none;
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
#invite-etendre,
#annonce-ok {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font: 600 14px/1 var(--f-text);
  white-space: nowrap;
  cursor: pointer;
}
#invite-etendre:hover,
#annonce-ok:hover {
  filter: brightness(1.08);
}
.annonce .fermer {
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--doux);
}
.annonce .fermer svg {
  width: 14px;
  height: 14px;
}
/* le bouton du profil clignote tant que l'horizon n'a pas été ouvert */
#b-profil.clignote {
  animation: clignote 1.1s ease-in-out infinite;
}
@keyframes clignote {
  50% {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  #b-profil.clignote {
    animation: none;
    color: #fff;
    background: var(--accent);
  }
}
@media (max-width: 760px) {
  .annonce {
    border-radius: var(--r-3);
    flex-wrap: wrap;
  }
}
/* l'attente : au centre de l'écran, une carte de verre avec un anneau qui tourne et ce qui se fait ; elle ne bloque
   rien (les clics passent au travers) */
.attente {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(340px, calc(100vw - 32px));
  padding: 28px 24px 22px;
  border-radius: var(--r-3);
  text-align: center;
  pointer-events: none;
  background: var(--c-glass);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  box-shadow:
    inset 0 0.5px 0 var(--c-glass-edge),
    var(--sh-3);
  animation: apparaitre var(--duree) var(--ease);
}
.attente[hidden] {
  display: none;
}
@keyframes apparaitre {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
}
/* l'anneau : un arc qui tourne, et un halo qui respire */
.attente .anneau {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  animation: respire 1.6s ease-in-out infinite;
}
.attente .anneau i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid var(--c-fill-2);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: tourne 0.9s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}
@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}
@keyframes respire {
  50% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 22%, transparent);
  }
}
.attente b {
  font: 600 17px/1.3 var(--f-display);
}
#attente-detail {
  font-size: 13px;
  line-height: 1.35;
  color: var(--doux);
}
#attente-detail:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .attente .anneau {
    animation: none;
  }
  .attente .anneau i {
    animation-duration: 2.4s;
  }
}
/* le matériel et les informations, à droite de la barre, avant le mode rouge */
.barre .pousse-droite {
  margin-left: auto;
}
.barre button[data-pret] {
  position: relative;
}
.barre button[data-pret]::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lueur);
}
html.nuit-rouge #rouge {
  color: var(--rouge);
}

/* ---------------------------------------------------------------- l'application : la scène, et ce qui flotte dessus */
.appli {
  position: relative;
  height: calc(100% - var(--barre));
}
.rail {
  position: absolute;
  top: var(--marge);
  left: var(--marge);
  max-height: calc(100% - 2 * var(--marge));
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: var(--r-3);
  overflow-y: auto;
  z-index: 5;
}
.rail button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 2px 7px;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--doux);
  font: 500 11px/1.1 var(--f-text);
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background var(--duree) var(--ease),
    color var(--duree) var(--ease);
}
.rail button:hover {
  background: var(--c-fill);
  color: var(--texte);
}
.rail button[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
}
/* un point quand le panneau a du nouveau (rempli depuis la dernière ouverture) */
.rail button[data-pret]::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lueur);
}
.tiroir {
  position: absolute;
  top: var(--marge);
  max-height: calc(100% - 2 * var(--marge)); /* (à la hauteur de son contenu) */
  left: calc(var(--rail) + 2 * var(--marge));
  width: min(var(--tiroir), calc(100vw - var(--rail) - 4 * var(--marge)));
  border-radius: var(--r-3);
  overflow-y: auto;
  padding: 0 18px 24px;
  z-index: 5; /* au-dessus de la scène et de ses commandes */
  animation: entrer var(--duree) var(--ease);
}
@keyframes entrer {
  from {
    transform: translateX(-8px);
    opacity: 0;
  }
}
.panneau-tete {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 16px 12px 10px 18px;
  background: linear-gradient(var(--c-glass) 70%, transparent);
  z-index: 1;
}
.panneau-tete h2 {
  margin: 0;
  font: 650 22px/1.2 var(--f-display);
  letter-spacing: -0.02em;
}
/* le message d'un panneau encore vide, caché dès que son contenu est là */
.vide {
  color: var(--doux);
  font-size: 14px;
  padding: 16px 18px;
  background: var(--c-fill);
  border-radius: var(--r-2);
}
.panneau:has(> section:not([hidden])) .vide {
  display: none;
}
h3 {
  font: 600 15px/1.3 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--texte);
  margin: 20px 0 6px;
}
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene-tete {
  position: absolute;
  top: var(--marge);
  right: var(--marge);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  z-index: 2;
}
.carte,
.resultat,
#carte,
#vue {
  position: absolute;
  inset: 0;
}
#vue {
  background: #0b1020;
  cursor: grab;
}
#vue .aide {
  position: absolute;
  left: calc(var(--rail) + 2 * var(--marge));
  bottom: 74px;
  font-size: 12px;
  color: var(--doux);
  pointer-events: none;
}
.appli.pousse #vue .aide {
  display: none;
}
.recherche ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: var(--panneau);
  border-radius: var(--r-2);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.recherche li {
  padding: 9px 12px;
  border-radius: var(--rayon-petit);
  cursor: pointer;
  font-size: 14px;
}
.recherche li:hover {
  background: var(--accent-fond);
}
.calques {
  position: absolute;
  top: 50px;
  right: 0;
  width: 260px;
  padding: 6px 14px 12px;
  border-radius: var(--r-3);
}
.calques small {
  color: var(--doux);
}
/* les calques de la carte : les noms des lieux ; la pollution lumineuse, la barre des zones, la valeur sous la souris */
.lp {
  position: absolute;
  top: calc(var(--marge) + 44px); /* sous la bascule carte / vue 3D (les panneaux s'ouvrent à gauche) */
  right: var(--marge);
  z-index: 2;
  width: 230px;
  padding: 8px 12px 10px;
  border-radius: var(--r-2);
}
.lp.ferme {
  padding-bottom: 8px;
}
.lp.ferme .lp-detail {
  display: none;
}
.lp .case + .case {
  margin-top: 6px;
}
.lp-barre {
  display: flex;
  height: 10px;
  margin-top: 8px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 0.5px var(--c-line);
}
.lp-barre i {
  flex: 1;
}
.lp-bornes {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 11px;
  color: var(--doux);
}
.lp-curseur {
  margin: 6px 0 2px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.lp-curseur i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: -1px;
  box-shadow: 0 0 0 0.5px var(--c-line);
}
.lp small {
  font-size: 11px;
  color: var(--doux);
}
.scene-pied {
  position: absolute;
  left: calc(var(--rail) + 2 * var(--marge));
  right: var(--marge);
  bottom: var(--marge);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.horloge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 18px;
  border-radius: var(--r-pill);
}
.horloge label {
  margin: 0;
  white-space: nowrap;
  color: var(--texte);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.horloge input {
  flex: 1;
}
/* la lecture et le suivi de la cible, petits ronds dans la barre de l'heure */
.horloge .icone.petit {
  flex: none;
  width: 32px;
  height: 32px;
}
.horloge .icone.petit svg {
  width: 18px;
  height: 18px;
}
#lecture .pause,
#lecture[aria-pressed="true"] .lire {
  display: none;
}
#lecture[aria-pressed="true"] .pause {
  display: block;
}
.horloge .icone[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}
/* la barre de la composition (à la place de l'heure) : l'instant à la seconde, ± 10 min, le retour à l'instant exact */
#compo-barre button.second {
  flex: none;
  min-height: 32px;
  padding: 3px 12px;
  font-size: 13px;
}
/* l'avertissement de la composition (l'ensemble ne tient pas dans le cadre), au-dessus de sa barre */
.compo-avis {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--r-2);
  background: var(--c-glass);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  box-shadow: inset 0 0.5px 0 var(--c-glass-edge), 0 0 0 0.5px var(--c-line), var(--sh-2);
  color: var(--c-warn);
  font-size: 13px;
  font-weight: 600;
}
#compo-titre {
  color: var(--doux);
  font-size: 13px;
}
/* l'état du ciel à l'heure du curseur : la nuit noire sombre, les crépuscules en bleu (la couleur du ciel de la vue) */
.etat-ciel {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--c-fill);
  color: var(--doux);
}
.etat-ciel:empty {
  display: none;
}
.etat-ciel[data-etat="crepuscule"] {
  background: rgba(79, 111, 159, 0.45);
  color: #dbe7ff;
}
.etat-ciel[data-etat="jour"] {
  background: rgba(143, 179, 255, 0.55);
  color: #fff;
}
.scene-pied .icone {
  margin-left: auto;
}
.tiroir-profil {
  position: absolute;
  left: calc(var(--rail) + 2 * var(--marge));
  right: var(--marge);
  bottom: 68px;
  padding: 8px 8px 2px;
  border-radius: var(--r-3);
  z-index: 2;
}
.tiroir-profil .note {
  margin: 4px 4px 2px;
  font-size: 12px;
}
.tiroir-profil svg {
  border-radius: var(--rayon-petit);
}
.separation {
  margin-top: 4px;
}
/* sur grand écran, le panneau ouvert : le pied et le profil de la scène se rangent à sa droite */
@media (min-width: 1100px) {
  .appli.pousse .scene-pied,
  .appli.pousse .tiroir-profil {
    left: calc(var(--rail) + var(--tiroir) + 3 * var(--marge));
  }
}

/* ---------------------------------------------------------------- les éléments */
label {
  display: block;
  color: var(--doux);
  font-size: 13px;
  margin: 12px 0 5px;
}
input,
select {
  width: 100%;
  min-height: 40px;
  background: var(--c-fill);
  color: var(--texte);
  border: 0;
  border-radius: var(--rayon-petit);
  padding: 8px 12px;
  font: inherit;
  transition: box-shadow var(--duree) var(--ease);
}
input:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}
input::placeholder {
  color: var(--c-text-3);
}
input[type="range"] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  accent-color: var(--accent);
}
button {
  font: inherit;
}
/* l'action principale : la pilule pleine de Soleillon (tokens.css .c-btn) ; la seconde, sa pilule douce */
button.principal,
.boutons button {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 var(--s-5);
  background: var(--accent);
  color: var(--c-accent-ink);
  border: 0;
  border-radius: var(--r-pill);
  font: 600 16px/1.2 var(--f-text);
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.15s,
    opacity 0.15s;
}
.boutons button {
  margin-top: 10px;
  font-size: 15px;
}
button.principal:hover,
.boutons button:hover {
  filter: brightness(1.08);
}
button.principal:active,
.boutons button:active {
  transform: scale(0.98);
}
.boutons button.second {
  background: var(--c-fill);
  color: var(--texte);
}
button:disabled {
  opacity: 0.35;
  cursor: default;
  filter: none;
}
button.icone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-fill);
  color: var(--texte);
  cursor: pointer;
  transition: color var(--duree) var(--ease);
}
.scene-pied .icone,
.scene-tete > .icone {
  width: 44px;
  height: 44px;
}
button.icone:hover {
  color: var(--accent);
}
button.icone[aria-expanded="true"],
button.icone[aria-pressed="true"] {
  color: var(--accent);
}
.panneau-tete .fermer {
  width: 32px;
  height: 32px;
  color: var(--doux);
}
.panneau-tete .fermer svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
/* le choix exclusif : les segments de Soleillon (tokens.css .c-seg) */
.bascule {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--c-fill);
  border-radius: var(--r-pill);
  margin-top: 12px;
}
.scene-tete .bascule {
  margin: 0;
  padding: 4px;
}
.bascule button {
  min-height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--doux);
  font: 500 14px/1 var(--f-text);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duree) var(--ease),
    color var(--duree) var(--ease);
}
.bascule button:hover:not(:disabled) {
  color: var(--texte);
}
.bascule button.actif {
  background: var(--seg-on);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.etat {
  color: var(--doux);
  font-size: 13px;
  min-height: 1.4em;
  margin-top: 10px;
}
.erreur {
  color: var(--rouge);
}
/* les configurations de matériel enregistrées : une liste, un nom, deux liens */
.configs {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--c-fill);
}
.config-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
.config-ligne select,
.config-ligne input {
  flex: 1;
  min-width: 0;
}
.configs .lien {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* les chiffres clés : les cartes de Soleillon (tokens.css .c-stat), un grand nombre et son libellé */
.chiffres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.chiffres div {
  display: grid;
  gap: 4px;
  align-content: start;
  background: var(--panneau);
  box-shadow: var(--sh-1);
  border-radius: var(--r-2);
  padding: 12px 14px;
}
.chiffres b {
  display: block;
  font: 700 21px/1.1 var(--f-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.chiffres small {
  color: var(--doux);
  font-size: 12px;
  line-height: 1.3;
}
.note {
  font-size: 13px;
  color: var(--doux);
  margin: 10px 0 0;
}
.note.attention {
  color: var(--c-warn);
}
.note a {
  color: var(--accent);
  text-decoration: none;
}
.note a:hover {
  text-decoration: underline;
}
.legende {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--doux);
  margin-top: 14px;
}
.legende i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}
/* une section repliable : le titre et son chevron qui tourne (tokens.css .c-fold) */
.depliant {
  margin-top: 14px;
  background: var(--c-fill);
  border-radius: var(--r-2);
  padding: 0 14px;
}
.depliant summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  color: var(--texte);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}
.depliant summary::-webkit-details-marker {
  display: none;
}
.depliant summary::after {
  content: "›";
  font: 300 24px/1 var(--f-text);
  color: var(--c-text-3);
  transition: transform var(--duree) var(--ease);
}
.depliant[open] summary::after {
  transform: rotate(90deg);
}
.depliant[open] {
  padding-bottom: 12px;
}
label.case {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--texte);
  font-size: 14px;
}
label.case input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
label.case .bande {
  width: 7.5em;
  margin-left: auto;
  min-height: 32px;
  padding: 3px 10px;
}
.evenements {
  list-style: none;
  margin: 10px 0 0;
  padding: 4px 14px;
  font-size: 13px;
  background: var(--panneau);
  box-shadow: var(--sh-1);
  border-radius: var(--r-2);
}
.evenements li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
}
.evenements li + li {
  border-top: 0.5px solid var(--trait);
}
.evenements li b {
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
}
.evenements li.lune {
  color: var(--lune);
}
.evenements li small {
  display: block;
  color: var(--doux);
  font-size: 12px;
}
/* les monuments alentour : dans Informations (un clic tourne la vue vers eux), et leurs repères sur la carte (doré : se
   découpe sur le ciel ; clair : devant un relief ; gris : caché) */
.monuments li {
  cursor: pointer;
}
.monuments li span {
  flex: 1;
}
.monuments li.ciel span {
  color: #b8860b;
}
.monuments li.cache span {
  color: var(--doux);
}
.monuments li i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 3px;
  border: 0.5px solid currentColor;
}
.monument {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c9d3ea;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #0b1020, 0 1px 4px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.monument.ciel {
  background: #ffd27a;
}
/* un monument de la zone affichée, sans point posé : à choisir */
.monument.zone {
  background: #ffffff;
  border-color: #ffd27a;
}
.monument.cache,
.monument.inconnu {
  background: #7d8597;
}
.monument.petit {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}
.monument span {
  position: absolute;
  left: 14px;
  top: -4px;
  max-width: 16em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 0 2px #000;
  pointer-events: none;
}
.heure-placement {
  font-size: 12px;
  font-weight: 700;
  color: #ffd27a;
  text-shadow: 0 0 3px #000, 0 0 2px #000;
  white-space: nowrap;
  pointer-events: none;
}
/* la composition, en étapes : un numéro, un titre, l'état (à faire, fait) ; l'étape à faire en avant, les suivantes
   estompées tant qu'elle ne l'est pas */
.compo-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--doux);
}
.etapes {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.etape {
  margin: 0 0 10px;
  padding: 10px 12px 12px;
  border-radius: var(--r-2);
  background: var(--panneau);
  box-shadow: var(--sh-1);
}


.etape-tete {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* une étape ouverte à la fois : les autres en une ligne (leur titre et leur résumé) */
.etape .etape-corps {
  display: none;
}
.etape.ouverte .etape-corps {
  display: block;
}
.etape.ouverte {
  box-shadow: 0 0 0 1.5px var(--accent), var(--sh-1);
}
.etape .suivant,
.etape .grand {
  flex: 1;
}
.etape .grand {
  min-height: 44px;
  font-size: 15px;
}
.etape .lien,
.compo-intro .lien {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
/* ce que la focale implique, avant de chercher */
.cadrage {
  margin: 10px 0 4px;
  padding: 8px 10px;
  border-radius: var(--r-1, 8px);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 13px;
  line-height: 1.4;
}
.cadrage.impossible {
  background: color-mix(in srgb, var(--c-warn) 15%, transparent);
}
#compo-etape {
  display: block;
  margin-top: 6px;
  color: var(--texte);
}
.etape-tete h3 {
  flex: 1;
  margin: 0;
}
.etape .num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--doux);
}
.etape.courante .num {
  background: var(--accent);
}
.etape.faite .num {
  background: var(--c-good);
}
.etape .etat {
  font-size: 12px;
  color: var(--doux);
}
.etape.faite .etat {
  color: var(--c-good);
}
.etape .aide {
  margin: 6px 0 8px;
  font-size: 13px;
  line-height: 1.4;
}
/* la séquence : le total en tête, les étapes, le temps de chaque filtre */
.seq-resume {
  margin: 6px 0 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.seq-totaux {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.seq-totaux li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 3px 2px;
}
.seq-totaux li span {
  color: var(--doux);
}
.seq-totaux li em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
}
.cibles {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.cibles li {
  padding: 10px 12px;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background var(--duree) var(--ease);
}
.cibles li + li {
  margin-top: 4px;
}
.cibles li:hover {
  background: var(--c-fill);
}
.cibles li.choisie {
  background: var(--accent-fond);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.cibles li b {
  display: block;
  font-weight: 600;
}
/* la liste des cibles : la petite image à gauche */
#c-liste li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}
.vignette {
  width: 56px;
  height: 56px;
  border-radius: var(--rayon-petit);
  background: #0b1020;
  object-fit: cover;
}
/* la météo de la nuit : les constats (comme le bilan d'une cible), le tableau heure par heure */
.constats {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.constats li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  padding: 4px 0;
}
.constats li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--c-good);
}
.constats li.attention::before {
  content: "!";
  background: var(--c-warn);
}
.constats li.mauvais::before {
  content: "×";
  background: var(--c-bad);
}
.tableau {
  overflow-x: auto;
  margin-top: 8px;
}
.tableau table {
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tableau th,
.tableau td {
  padding: 4px 8px;
  text-align: right;
  border-bottom: 0.5px solid var(--trait);
}
.tableau th {
  color: var(--doux);
  font-weight: 500;
}
/* le panneau Météo : l'anneau du score, la nuit choisie, les nuits à venir (comme Astro Night Companion) */
.anneau-score {
  flex: none;
  color: var(--texte);
}
.nuit-tete {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-2);
  background: var(--panneau);
  box-shadow: var(--sh-1);
}
.nuit-tete h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.nuit-tete small,
.nuits small {
  display: block;
  color: var(--doux);
  font-size: 12px;
}
.ton-good {
  color: var(--c-good);
}
.ton-warn {
  color: var(--c-warn);
}
.ton-bad {
  color: var(--c-bad);
}
.nuits small.ton-warn {
  color: var(--c-warn);
}
.nuits small.ton-bad {
  color: var(--c-bad);
}
.nuits {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.nuits li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--r-2);
  cursor: pointer;
}
.nuits li + li {
  margin-top: 4px;
}
.nuits li:hover {
  background: var(--c-fill);
}
.nuits li.choisie {
  background: var(--accent-fond);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.nuits b span {
  font-size: 12px;
  font-weight: 600;
}
.facteurs {
  margin-top: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.facteurs td {
  padding: 2px 12px 2px 0;
}
.facteurs td + td {
  color: var(--doux);
}
/* « Ma cible » : la carte du bilan, ses lignes cochées (vert), à surveiller (orangé), un peu (gris), impossible (rouge) */
.bilan-cible {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r-2);
  background: var(--panneau);
  box-shadow: var(--sh-1);
}
.bilan-tete {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}
.bilan-tete b,
.bilan-tete small {
  display: block;
}
.bilan-tete small {
  color: var(--doux);
  font-size: 12px;
}
.verdict {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--c-good);
}
.verdict.attention {
  background: var(--c-warn);
}
.verdict.non {
  background: var(--c-bad);
}
.bilan-cible ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.bilan-cible li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  padding: 5px 0;
}
.bilan-cible li + li {
  border-top: 0.5px solid var(--trait);
}
.bilan-cible li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--c-good);
}
.bilan-cible li.info::before {
  content: "•";
  background: var(--c-fill-2);
  color: var(--texte);
}
.bilan-cible li.attention::before {
  content: "!";
  background: var(--c-warn);
}
.bilan-cible li.non::before {
  content: "×";
  background: var(--c-bad);
}
/* les filtres prioritaires : des pastilles à presser */
.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.puces button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--doux);
  font: 500 13px/1 var(--f-text);
  cursor: pointer;
}
.puces button[aria-pressed="true"] {
  background: var(--accent-fond);
  color: var(--texte);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cibles li small {
  color: var(--doux);
  display: block;
  font-size: 12px;
}
.pastille-filtre {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0;
}
/* la carte : ses commandes en verre comme le reste */
.maplibregl-ctrl-group {
  background: var(--c-glass) !important;
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  border-radius: var(--r-2) !important;
  box-shadow:
    0 0 0 0.5px var(--c-line),
    var(--sh-2) !important;
}
.maplibregl-ctrl-group button + button {
  border-top-color: var(--trait) !important;
}
.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- le téléphone : les icônes en bas, le panneau en feuille */
@media (max-width: 760px) {
  :root {
    --marge: 8px;
  }
  .rail {
    top: auto;
    bottom: calc(var(--marge) + env(safe-area-inset-bottom));
    right: var(--marge);
    width: auto;
    flex-direction: row;
    overflow-x: auto;
  }
  .rail button {
    min-width: 62px;
  }
  .bascule button {
    padding: 0 11px;
  }
  .maplibregl-ctrl-bottom-right {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .tiroir {
    top: auto;
    left: var(--marge);
    right: var(--marge);
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 62%;
  }
  .scene-pied,
  .tiroir-profil {
    left: var(--marge);
  }
  .scene-pied {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .tiroir-profil {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }
  #vue .aide {
    display: none;
  }
  .pastille {
    display: none;
  }
}
