/* Analyse de la signature actuelle : la note, les défauts, puis mieux. */

.analyse {
  max-width: 1100px;
}

.analyse-collage {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.analyse-mode-emploi {
  margin: 0;
  padding-left: 1.2em;
  color: var(--texte-doux, #5b564e);
  line-height: 1.6;
}

.analyse-zone {
  min-height: 160px;
  padding: 18px;
  border: 1.5px dashed var(--filet-fort, #c9c3b8);
  border-radius: 14px;
  background: #ffffff;
  overflow: auto;
  outline: none;
}

.analyse-zone:empty::before {
  content: "Collez ici votre signature";
  color: var(--texte-doux, #8a857c);
}

.analyse-zone:focus {
  border-color: var(--marque, #14120f);
  border-style: solid;
}

.analyse-code textarea {
  width: 100%;
  margin-top: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}

.analyse-bilan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin: 24px 0 36px;
}

.analyse-jauge {
  --couleur-jauge: #2e7d4f;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(closest-side, var(--fond, #faf8f3) 78%, transparent 79%),
    conic-gradient(var(--couleur-jauge) var(--angle), #e7e2d8 0);
}

.analyse-jauge-moyenne {
  --couleur-jauge: #c27a12;
}

.analyse-jauge-faible {
  --couleur-jauge: #b3261e;
}

.analyse-note {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.analyse-sur {
  color: var(--texte-doux, #8a857c);
  font-size: 15px;
}

.analyse-actuelle-cadre {
  margin-top: 8px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--filet, #e3e1dc);
  border-radius: 14px;
  overflow: auto;
  max-height: 320px;
}

.analyse-defauts ul,
.analyse-atouts ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.analyse-defaut {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--filet, #e3e1dc);
  border-radius: 12px;
}

.analyse-defaut p {
  margin: 4px 0 0;
  color: var(--texte-doux, #5b564e);
}

.analyse-defaut .etat {
  justify-self: start;
}

.analyse-defaut-grave .etat {
  background: #fbe7e5;
  color: #8f1d17;
}

.analyse-defaut-moyen .etat {
  background: #fdf0dc;
  color: #7a4b07;
}

.analyse-defaut-leger .etat {
  background: #eef0ec;
  color: #3f4a40;
}

.analyse-atouts {
  margin-top: 28px;
}

.analyse-atouts li::before {
  content: "✓";
  margin-right: 10px;
  color: #2e7d4f;
  font-weight: 700;
}

.analyse-propositions {
  margin-top: 40px;
}

.analyse-reprise {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .analyse-bilan {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .analyse-defaut {
    grid-template-columns: 1fr;
  }
}
