html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    Helvetica, Arial, sans-serif;
  font-size: calc(14px + 0.5vmin);
  background-color: #ebebeb;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #500076;
}

#header {
  padding: 1em;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1em;
}

#header h1 {
  font-weight: 600;
  margin: 0;
  font-size: calc(18px + 0.6vmin);
}

#header a {
  color: white;
  text-decoration: none;
}

.headerNav {
  margin-left: auto;
  display: flex;
  gap: 1.2em;
  white-space: nowrap;
}
.headerNav a {
  font-size: calc(13px + 0.2vmin);
  opacity: 0.9;
}
.headerNav a:hover {
  opacity: 1;
  text-decoration: underline;
}
.headerNav .language {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: calc(12px + 0.2vmin);
  cursor: pointer;
}
.headerNav .language option {
  color: #000;
}

#content {
  padding: 2em 1em 1em;
  flex-grow: 1;
}

#footer {
  padding: 1em;
  color: white !important;
  background-color: #500076;
  border-bottom: 1em solid #500076;
}
#footer p {
  max-width: 640px;
  margin: 0 auto;
}
#footer a {
  color: white;
}

hr {
  background-color: #ccc;
  border: none;
  margin: 2em 0;
  height: 4px;
}

a {
  color: black;
  text-decoration: underline;
}

h2,
h3,
h4 {
  max-width: 640px;
  margin: 0 auto;
  font-weight: 600;
}

h3 {
  font-size: calc(16px + 1vmin);
}

h4 {
  margin: 0 auto 0.5em;
}

.simpleText {
  max-width: 640px;
  margin: 1em auto 2em;
}
.simpleText svg {
  vertical-align: text-bottom;
}
.columnContainer {
  position: relative;
}
.columnLeft {
  float: left;
  width: 100%;
}
.columnRight {
  float: left;
  width: 100%;
  margin-bottom: 4vmin;
}
@media screen and (min-width: 80em) {
  .columnLeft {
    width: 50%;
  }
  .columnRight {
    width: 50%;
  }
}

#bonusBox {
  max-width: 640px;
  margin: 0 auto;
}
.questionBox {
  max-width: 640px;
  min-height: 5.5em;
  margin: 1em auto;
}
.description {
  margin: 1.5em auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}
.descText,
.descTextMono {
  flex-grow: 1;
  max-width: 640px;
}
.descText {
  width: calc(100% - 30vmin);
}
.descText p {
  margin: 0 0 1em;
}
.descTextMono {
  align-self: center;
}
.descTextMono p {
  margin: 0;
}
.descImg {
  line-height: 0;
}
.descImg img {
  width: 15vmin;
  height: 15vmin;
}

/* ── Couleurs des pôles — PolitiScales de Cité 13 ── */
.poleU0 { background-color: #d98e2b; } /* Unionisme */
.poleU1 { background-color: #2e7d32; } /* Terralibérisme */
.poleD0 { background-color: #c0392b; } /* Insurrectionnisme */
.poleD1 { background-color: #5d6d7e; } /* Attentisme */
.poleH0 { background-color: #1f6f8b; } /* Transcendantisme */
.poleH1 { background-color: #b5651d; } /* Carnisme */
.poleO0 { background-color: #8e44ad; } /* Stratisme */
.poleO1 { background-color: #d35400; } /* Fosséisme */
.poleY0 { background-color: #c39bd3; } /* Mémorialisme */
.poleY1 { background-color: #34495e; } /* Tabularasisme */
.poleX0 { background-color: #922b21; } /* Purisme Terrien */
.poleX1 { background-color: #16a085; } /* Symbiotisme */
.poleL0 { background-color: #e6b800; } /* Civisme Zélé */
.poleL1 { background-color: #2c3e50; } /* Omertà */
.poleG0 { background-color: #f1c40f; } /* Messianisme */
.poleG1 { background-color: #7f8c8d; } /* Nihilisme */

/* ── Page À propos ── */
.axisSubtitle {
  margin: 0.2em auto 0.8em;
  color: #555;
}
.aboutPole {
  display: flex;
  gap: 1em;
  max-width: 640px;
  margin: 1.2em auto;
  align-items: flex-start;
}
.aboutPole .descImg img {
  width: 68px;
  height: 68px;
}
.aboutText {
  flex: 1;
  min-width: 0;
}
.aboutText h4 {
  margin: 0;
  text-align: left;
  max-width: none;
}
.aboutText p {
  margin: 0.3em 0 0;
}
.devise {
  font-style: italic;
  color: #500076;
  font-weight: 600;
}

.navButtons {
  margin: 0 auto 1em;
  text-align: center;
  max-width: 400px;
}
button,
.button {
  text-align: center;
  margin: 0.5em 0;
  padding: 0.5em 1.5em;
  display: inline-block;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  font-size: 18px;
  background-color: #500076;
  color: white;
  cursor: pointer;
}
button.strong-agree {
  background-color: #1b5e20;
}
button.agree {
  background-color: #4caf50;
}
button.neutral {
  background-color: #bbbbbb;
}
button.disagree {
  background-color: #f44336;
}
button.strong-disagree {
  background-color: #b71c1c;
}

.questionButtons button {
  color: white;
  width: 100%;
  height: 2.5em;
}
.button:hover {
  background-color: white;
  color: #500076;
}
.button svg {
  fill: white;
  vertical-align: text-bottom;
}
.button:hover svg {
  fill: #500076;
}
.buttonLinkGood {
  background-color: #0eb31a;
  color: white;
}
.buttonLinkGood:hover {
  background-color: #0eb31a;
  color: white;
}
.buttonLinkGood svg,
.buttonLinkGood:hover svg {
  fill: white;
}
.urlToCopyContainer {
  width: 100%;
  text-align: center;
}
.urlToCopy {
  max-width: 400px;
  background-color: white;
  display: inline-block;
  padding: 0.5em;
  margin: 1em 0 0;
  z-index: 6;
  border-radius: 3px;
  word-break: break-all;
}

.flagDecoration {
  text-align: center;
}
.flagDecoration canvas {
  box-shadow: 0 1px 1px 1px #aaa;
  max-width: 70vmin;
}
.generatedResultsDecorations {
  text-align: center;
}
.generatedResultsDecorations canvas {
  box-shadow: 0 1px 1px 1px #aaa;
  max-width: 800px;
  width: 100%;
}
#slogan {
  margin: 1em 0;
  font-size: calc(14px + 2vw);
}

.scale {
  display: flex;
  width: 100%;
  margin-bottom: 1.5em;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.scale .left,
.scale .right {
  flex: 0 0 auto;
  width: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scale .left img,
.scale .right img {
  width: 3.6em;
  height: 3.6em;
}
.scale .axis {
  flex-grow: 1;
  min-width: 0;
}
.scale .axis .label {
  display: flex;
  font-size: calc(11px + 0.4vmin);
  margin-bottom: 0.3em;
  font-weight: 600;
}
.scale .axis .label .left-label,
.scale .axis .label .right-label {
  width: 50%;
}
.scale .axis .label .right-label {
  text-align: right;
}
.scale .axis .axis-bar {
  display: flex;
  box-shadow: 0vmin 1px 0.4vmin #aaa;
  height: 2em;
  background-color: #f3f3f3;
  color: #888;
  border-radius: 2px;
  overflow: hidden;
}
.scale .axis .axis-bar .axis-left,
.scale .axis .axis-bar .axis-center,
.scale .axis .axis-bar .axis-right {
  font-size: calc(11px + 0.5vmin);
  line-height: 2em;
  white-space: nowrap;
}
.scale .axis .axis-bar .axis-left span,
.scale .axis .axis-bar .axis-right span {
  padding: 0 0.5em;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.scale .axis .axis-bar .axis-left {
  text-align: right;
}
.scale .axis .axis-bar .axis-center {
  text-align: center;
  flex-grow: 1;
}

[data-i18n] {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
