/* ------------------------------------------------------------ déclaration */
.declaration {
  border-bottom: 1px solid var(--bordercolor);
  margin: 1.6rem auto;
}
.declaration > * {
  max-width: var(--maxwidth);
  margin: 1.6rem auto;
}
.declaration blockquote p { 
  margin: 0 auto;
  --font-wght: 900;
}
.declaration p + p {
  text-indent: 2em;
}
.declaration footer {
  text-wrap: balance;
  margin-top: 1.6rem;
}

/* ------------------------------------------------------------ mise en page */

main {
  border-bottom: 1px solid var(--bordercolor);
}
main > * {
  padding: 0 1rem;
}

/* ---------- titres en bande ---------- */

h2 {
  display: flex;
  flex-direction: column;
  align-items: center;

  background: var(--accentcolor);
  color: var(--backgroundcolor);
  padding: 1rem;
}

h3 {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 54.4em;
  margin-left: calc(50% - 50vw);

  background: var(--accentcolor);
  color: var(--backgroundcolor);
  padding: 3rem;
}

/* ---------- sections ---------- */

.tags-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--maxwidth);
  margin: 1.6em auto;
}

.intro,
.content,
.outro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--maxwidth);
  margin: 1.6em auto;
}

/* ---------- liste horizontale ---------- */

ul {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: calc(30% - 19.6vh);
  overflow-x: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 15em;

  border-right: 2px solid var(--bordercolor);
  padding: 8px;

  overflow: hidden;
  max-width: max-content;

  color: var(--textcolor);
  background: transparent;

  transition: 
    background 0.3s ease,
    color 0.3s ease,
    font-size 0.3s ease,
    line-height 0.3s ease;
}

li:last-child {
  border-right: none;
}

/* ---------- interaction ---------- */

li:hover {
  background: var(--accentcolor);
  color: var(--backgroundcolor);

  font-size: 7vh;
  line-height: 6.8vh;
  max-width: 100%;
}

a {
  margin: 0;
  font-size: 3vh;
  line-height: 7vh;
  letter-spacing: -.2vw;
  text-transform: uppercase;
  color: currentColor;

  transition: all 0.3s ease;
}

li:hover a {
  font-size: 7vh;
  line-height: 9vh;
}

li span {
  display: none;
  font-size: 2.5vh;
  line-height: 1;
  font-family: 'BagnardRegular', serif;
}

li:hover span {
  display: block;
  font-size: 3.5vh;
}

/* ---------- contenu ---------- */

.content {
  max-width: fit-content;
}

/* ---------- PRINT + MODE CLAIR / SOMBRE ---------- */

@media print {
  body {
    color: black;
    background: white;
  }
  li {
    border-color: black;
  }
  h2, h3 {
    background: black;
    color: white;
  }
}
