/*
 * ADN voyage (adn/templates/adn/adn_voyage.html) : un radar par univers de goûts, les curseurs et leur écart ;
 * le bloc qui le révèle (fin du paquet de swipes, page « Mon ADN voyage ») avec ses archétypes ; « Ce qui a le
 * plus compté ». L'ADN est à toi : vermillon. L'autre voyageur (radars comparés) : lagon, en pointillés.
 */
.revelation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-2);
  margin: var(--esp-5) 0;
  text-align: center;
}

.revelation-surtitre,
.adn-legende {
  margin: 0;
  color: var(--encre-douce);
  font: 700 0.9375rem/1.3 var(--texte);
}

.revelation-titre {
  margin: 0;
  font: 800 1.5rem/1.25 var(--texte);
  letter-spacing: -0.01em;
}

.revelation-plutot {
  display: block;
  color: var(--encre-douce);
  font: 500 0.875rem/1.4 var(--texte);
  letter-spacing: 0;
}

.revelation-phrase,
.revelation-texte {
  max-width: 30rem;
  margin: 0 0 var(--esp-2);
  color: var(--encre-douce);
}

.revelation-texte {
  margin-top: var(--esp-3);
}

/* Les autres archétypes de la personne (2 au plus), sous le principal. */
.archetypes {
  display: flex;
  flex-direction: column;
  gap: var(--esp-2);
  max-width: 30rem;
  margin: 0 0 var(--esp-3);
  padding: 0;
  list-style: none;
}

.archetype {
  padding: var(--esp-2) var(--esp-3);
  border-radius: var(--rayon-md);
  background: var(--vermillon-pale);
  color: var(--encre);
  font-size: 0.875rem;
  line-height: 1.4;
}

.archetype-nom {
  display: block;
  color: var(--vermillon);
  font-weight: 700;
}

.adn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-2);
  width: 100%;
}

/* Trois radars : l'un sous l'autre sur téléphone, côte à côte quand la place le permet. */
.adn-radars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--esp-4);
  width: 100%;
}

.adn-univers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-1);
  margin: 0;
}

/* 388 unités de large : à 340 px, les libellés font 11 px au moins. */
.adn-radar {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

.adn-radar-grille {
  fill: none;
  stroke: var(--trait);
  stroke-width: 1;
}

.adn-radar-forme {
  fill: color-mix(in srgb, var(--vermillon) 16%, transparent);
  stroke: var(--vermillon);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.adn-radar-sommet {
  fill: var(--carton);
  stroke: var(--vermillon);
  stroke-width: 2.2;
}

.adn-radar-libelle {
  fill: var(--encre-douce);
  font: 600 14px var(--texte);
}

.adn-radar-valeur {
  fill: var(--encre);
  font: 600 14px var(--texte);
  font-variant-numeric: tabular-nums;
}

.adn-chiffre {
  font-family: var(--texte);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Les curseurs : une réglette chacun, le repère à la valeur, la zone pâle autour pour l'écart. */
.adn-curseurs {
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  width: 100%;
  max-width: 24rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.adn-curseur-titre {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font: 700 0.875rem/1.3 var(--texte);
}

.adn-reglette {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.adn-reglette-rail {
  stroke: var(--trait-fort);
  stroke-width: 2;
  stroke-linecap: round;
}

.adn-reglette-ecart {
  fill: color-mix(in srgb, var(--vermillon) 22%, transparent);
}

.adn-reglette-repere {
  fill: var(--vermillon);
  stroke: var(--carton);
  stroke-width: 2;
}

.adn-curseur-bouts {
  display: flex;
  justify-content: space-between;
  gap: var(--esp-2);
  margin: 0;
  color: var(--encre-douce);
  font-size: 0.75rem;
  line-height: 1.3;
}

.adn-curseur-bouts span:last-child {
  text-align: right;
}

.adn-aide {
  max-width: 24rem;
  margin: 0;
  color: var(--encre-douce);
  font-size: 0.8125rem;
}

/* « Ce qui a le plus compté » (Mon ADN voyage) */
.adn-explications {
  display: grid;
  gap: var(--esp-4);
}

.adn-explication-titre {
  display: flex;
  justify-content: space-between;
  gap: var(--esp-2);
  margin: 0 0 var(--esp-1);
  font: 700 1rem/1.3 var(--texte);
}

.adn-explication-contenus {
  display: flex;
  flex-direction: column;
  gap: var(--esp-1);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--encre-douce);
  font-size: 0.875rem;
}

.adn-explication-contenus li {
  display: flex;
  justify-content: space-between;
  gap: var(--esp-3);
}

.adn-effet {
  flex: none;
  color: var(--encre);
}

/* Radars comparés (adn/radar_compare.html) : l'autre voyageur en pointillés, couleur des autres (lagon). */
.adn-radar-autre {
  fill: color-mix(in srgb, var(--lagon) 10%, transparent);
  stroke: var(--lagon);
  stroke-width: 2.4;
  stroke-dasharray: 6 5;
  stroke-linejoin: round;
}

.adn-reglette-autre {
  fill: var(--carton);
  stroke: var(--lagon);
  stroke-width: 2.4;
  stroke-dasharray: 3 2;
}

.adn-legende-radars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--esp-2) var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--encre-douce);
  font: 600 0.8125rem/1.3 var(--texte);
}

.adn-legende-radars li {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
}

.adn-legende-trait {
  display: block;
  width: 28px;
  height: 8px;
}

/*
 * L'effet d'un geste sur l'ADN, en points sur 100 (« +8 Montagne », « −3 Mer ») : le journal des derniers gestes
 * (Mon ADN voyage) et la réponse à un duel de lieux (album). Le signe dit le sens ; la couleur l'appuie.
 */
.adn-effets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-1) var(--esp-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 0.875rem/1.4 var(--texte);
  font-variant-numeric: tabular-nums;
}

.adn-effet-plus {
  color: var(--sapin);
}

.adn-effet-moins {
  color: var(--danger);
}
