/* ------------------------------------------------------------ déclaration */
.declaration {
  border-bottom: 0.0625rem 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: 0.0625rem solid var(--bordercolor);
}
main > * {
  padding: 0 4vw;
}

/* ---------- titres en bande ---------- */
header { 
  border-bottom: 0.0625rem solid var(--bordercolor);
  padding: 4vw;
  padding: 4vw 4vw 100vh; 
}

h1 strong {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  font-family: "Paragon";
  font-style: italic;

  font-size: clamp(3rem, 10vw, 8rem);
  --font-wght: 400;
  --font-wdth: 90;
  line-height: 1.2;
  text-wrap: balance;

  background-color: #4f0108;
  color: #cffbdc;
  margin: 0;
  background-attachment: fixed;
  background-size: cover;
}

h1 span {
  font-size: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--accentcolor);
  color: var(--backgroundcolor);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

h3 {
  background: var(--accentcolor);
  color: var(--backgroundcolor);
  padding: clamp(1.5rem, 4vw, 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;
  max-width: var(--maxwidth);
  margin: 1.6em auto;
}

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

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

li {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: clamp(12rem, 40vw, 15em);

  border-right: 0.125rem solid var(--bordercolor);
  padding: 0.5rem;

  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: clamp(2rem, 7vh, 4rem);
  line-height: 1.1;
  max-width: 100%;
}

a {
  margin: 0;
  font-size: clamp(1rem, 3vh, 2rem);
  line-height: 1.2;
  letter-spacing: -.1vw;
  text-transform: uppercase;
  color: currentColor;

  transition: all 0.3s ease;
}

li:hover a {
  font-size: clamp(2rem, 7vh, 4rem);
  line-height: 1.2;
}

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

li:hover span {
  display: block;
  font-size: clamp(1.25rem, 3.5vh, 2rem);
}

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

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

/* ---------- PRINT ---------- */

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