/*
 * plan-du-site.css — PsyRisso Desktop
 * Vue arbre interactive façon Geneanet. Les traits de connexion sont en
 * SVG (dessinés en JS). Chips différenciés entre pages réelles (sable/or)
 * et regroupements sans page propre (teal), avec légende.
 */

.pds-header-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.pds-h2 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: normal; color: var(--bleu); margin: 0; }

.pds-fil { font-family: Arial, sans-serif; font-size: 0.8rem; color: #8a8578; }
.pds-fil-item { background: none; border: none; padding: 0; cursor: pointer; font-family: Arial, sans-serif; font-size: 0.8rem; color: #8a8578; }
.pds-fil-item:hover { color: var(--ocre); text-decoration: underline; }
.pds-fil-item.actif { color: var(--bleu); font-weight: bold; cursor: default; text-decoration: none; }

.pds-vue {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 40vh;
  max-height: 70vh;
  padding: 1rem 0;
}

.pds-vue-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: safe center; /* était: center — safe garde le contenu atteignable au scroll */
  width: 100%;
  margin: 0 auto;
}

.pds-svg { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.pds-ligne { stroke: var(--dore); stroke-width: 1; }

.pds-carte-racine {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2rem;
  padding: 0.35rem 0.75rem; /*0.4rem 1.1rem;*/
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  color: #3a3a3a;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.pds-carte-racine a { color: inherit; text-decoration: none; }

.pds-niveau-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 1.6rem; }

.pds-rang {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center; /* était: center */
  gap: 0.8rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.pds-branche { display: flex; flex-direction: column; align-items: center; position: relative; }

.pds-carte {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
  border-radius: 2rem;
  padding: 0.35rem 0.75rem; /*0.4rem 1rem;*/
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #3a3a3a;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pds-carte a { color: inherit; text-decoration: none; font-weight: bold; }
.pds-carte:hover { background: var(--bleu); color: var(--dore); }

/* Différenciation page réelle / regroupement */
.pds-type-page { background: #EDE3CE; border: 1px solid var(--dore); }
.pds-type-carte { background: #E1F5EE; border: 1px solid #41C4BC; }
.pds-carte-racine.pds-type-carte,
.pds-carte-racine.pds-type-page { background: #EDE3CE; border: 1px solid var(--dore); }

.pds-vide { font-family: Arial, sans-serif; font-size: 0.85rem; color: #8a8578; font-style: italic; margin-top: 1.5rem; }

.pds-legende {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  color: #8a8578;
}
.pds-legende-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.pds-pastille { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pds-pastille-page { background: #EDE3CE; border: 1px solid var(--dore); }
.pds-pastille-carte { background: #E1F5EE; border: 1px solid #41C4BC; }

/* Conteneur plus large */
.pds-bande-large { max-width: 1800px; }
.pds-cadre-large { padding: 2.5rem 0.5rem; }

.pds-plus {
  background: transparent;
  border: 1px dashed #b5aa8c;
  color: #8a8578;
  font-weight: normal;
}
.pds-plus:hover { background: #f3efe4; color: #5a4a2a; }
#pds-vue-inner > .pds-niveau-wrap > .pds-rang {
  gap: 0.6rem;
}
.pds-rang-feuilles { margin-bottom: 1.6rem; }
/*
.pds-rang-groupes > .pds-branche {
  position: relative;
}

.pds-rang-groupes > .pds-branche > .pds-niveau-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1.6rem;
}
*/
/*
.pds-rang-groupes {
  flex-wrap: nowrap;
}
  */
/*
.pds-ligne-feuilles {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 1.6rem;
}*/

/* désactiver temporairement les transitions pendant le recalcul */
.pds-no-transition,
.pds-no-transition * {
  transition: none !important;
}