:root {
  --bleu: #0075c6;
  --rouge: #f1300e;
  --vert: #008a47;
  --gris-fond: #d7d8d6;
  --beige-fond: #dfd8d2;
  --gris-beige-moyen: #9d9a99;
  --gris-beige-fonce: #605d5e;
  --orange: #ff7600;

  --padding-content: 30px;
  --padding-content-bottom: 40px;

  /* --font-size-x-large: 2.5rem; */
  --font-size-x-large: clamp(1.5rem, 1.5rem + 1vw, 2.5rem);
  --font-size-large: clamp(1rem, 1rem + 1vw, 1.5rem);
  --font-size-medium: 1.032rem;
  --font-size-small: 0.8rem;

  --link-color: var(--bleu);

  --corner-size: 40px;
  --breakpoint-md: 1024px;
}
@media screen and (min-width: 1024px) {
  :root {
    --padding-content: 40px;
    --padding-content-bottom: 60px;
    --padding-content: 2.5rem;
    --padding-content-bottom: 4rem;
  }
}
@media print {
  :root {
    --font-size-x-large: 1.5rem;
    --font-size-large: 1rem;
    --font-size-medium: 0.8rem;
    --font-size-small: 0.6rem;
    --padding-content: 1rem;
    --padding-content-bottom: 1.5rem;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: "Noto Serif", serif;
  font-weight: 400;
  background-color: var(--beige-fond);
  font-size: var(--font-size-medium);
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  margin: 0;
}
::selection {
  background-color: var(--gris-fond);
}

main {
  margin: 0 auto;
  min-height: 80vh;
}

.homepage {
  position: relative;
}

.content {
  padding: 2rem 1rem 12rem;
  min-height: 80vh;
  width: 100%;
}
@media (min-width: 1024px) {
  .content {
    padding: 40px 40px 120px;
  }
}

._article_and_notes {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  gap: 1rem;
  margin: 0 1rem 4rem 1rem;
}
@media (min-width: 1024px) {
  ._article_and_notes {
    margin: 2.5rem 1rem 4rem 1rem;
  }
}
@media print {
  ._article_and_notes {
    margin: 0 0 4rem 0;
  }
}

._article_and_notes > ._souspartie {
  flex: 1 1 auto;
}
._article_and_notes > ._notes {
  flex: 1 0 240px;
}

@media screen and (min-width: 1024px) {
  ._article_and_notes {
    flex-flow: row nowrap;
    margin: 0rem 1rem 8rem 5rem;
  }
}

.footer {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  gap: 1rem;
  /* border-top: 1px solid #aaa; */
  color: var(--gris-beige-fonce);
  font-size: var(--font-size-small);
  min-height: 30px;
  padding: 1rem 1rem;
}
.footer a {
  font-family: inherit;
  font-weight: inherit;
}

@media print {
  .footer {
    display: none !important;
  }
}

._nostyle {
  list-style-type: none;
}

button,
.u-button {
  font-family: "Maax";
  letter-spacing: 0.02em;
  color: var(--part-color, --link-color, --bleu);
  border: none;
  text-decoration: none;
  background-color: transparent;
  font-size: inherit;
  cursor: pointer;

  min-width: 1rem;
  min-height: 1rem;
  padding: 0;
}
a {
  font-family: "Maax";

  color: inherit;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 0.05em;
  text-decoration-color: currentColor;

  word-wrap: break-word;
  font-size: inherit;
  transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);

  &:hover,
  &:focus-visible {
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.15em;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  }
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border: none;
  border-top: 2px solid var(--part-color, --link-color, --bleu);
}

._tuile {
  position: relative;
  background-color: white;
  margin: 20px 0px;
  max-width: 1200px;

  padding: var(--padding-content);
  border: 2px solid var(--beige-fond);

  box-sizing: content-box;
}
@media print {
  ._tuile {
    border: none;
  }
}
._tuile._manifeste {
  margin: 0 auto;
  z-index: 1;
  max-width: 96ch;

  padding: var(--padding-content);
  padding-bottom: var(--padding-content-bottom);
  border: none;

  color: white;
  background-color: var(--rouge);
}
._tuile._manifeste blockquote {
  --part-color: black;
}
._tuile._manifeste ._topRightCorner::after {
  background-color: var(--rouge);
}
._tuile:nth-child(3) {
  margin-left: auto;
}

@media screen and (min-height: 800px) and (min-width: 1024px) {
  ._tuile {
    position: sticky;
    bottom: 10vh;
    width: 80%;
  }
  ._tuile:target {
    z-index: 100 !important;
  }
  ._tuile:nth-child(1) {
    z-index: 3;
  }
  ._tuile:nth-child(2) {
    z-index: 2;
    bottom: 12vh;
  }
  ._tuile:nth-child(3) {
    /* margin-top: -50px; */
    margin-left: auto;
    bottom: 6vh;
    z-index: 1;
  }
  /* ._tuile:hover {
    z-index: 1000;
  } */
  ._tuile._manifeste {
    margin-top: -40px;
  }
}
._tuile h2 {
  color: black;
}
._tuile a {
  color: var(--part-color, black);
}

._tuile ol {
  margin-top: 2rem;
  list-style-type: none;
  padding: 0;
}
._tuile ol li {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

._souspartie {
  position: relative;
  background-color: white;
  padding: var(--padding-content);
  padding-bottom: var(--padding-content-bottom);
  max-width: 1200px;
  /* min-height: 800px; */
}
._souspartie footer {
  margin-top: var(--padding-content);
}

._topRightCorner,
._bottomLeftCorner {
  position: absolute;
  /* z-index: 2; */
  color: var(--beige-fond);

  &::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;

    width: var(--corner-size);
    height: var(--corner-size);
    background-color: var(--border-color, currentColor);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  }
  &::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: var(--corner-size);
    height: var(--corner-size);
    border: 2px solid var(--border-color, currentColor);
    background-color: var(--corner-color, white);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
  }
}
._topRightCorner {
  top: 0;
  right: 0;
}
._bottomLeftCorner {
  bottom: 0;
  left: 0;
  transform: rotate(180deg);
}

@media print {
  ._topRightCorner,
  ._bottomLeftCorner {
    display: none;
  }
}
@media screen {
  ._cropTopRightCorner {
    clip-path: polygon(
      0 0,
      calc(100% - var(--corner-size)) 0,
      100% var(--corner-size),
      100% 100%,
      0 100%
    );
  }
}
._cropTopRightBottomLeftCorner {
  clip-path: polygon(
    0 0,
    calc(100% - var(--corner-size)) 0,
    100% var(--corner-size),
    100% 100%,
    var(--corner-size) 100%,
    0 calc(100% - var(--corner-size))
  );
}

._sideNav {
  position: absolute;

  display: flex;
  gap: 0.25rem;
  top: calc(-1 * var(--sideNav-width));
  left: 1rem;
  justify-content: center;

  --sideNav-width: 50px;
}
@media print {
  ._sideNav {
    display: none;
  }
}
._sideNav a {
  max-width: var(--sideNav-width);
  height: auto;
  overflow: hidden;

  display: inline-flex;
  flex-flow: row nowrap;
  align-items: baseline;
  /* justify-content: center; */

  text-decoration: none;
  font-size: var(--font-size-large);
  line-height: 1;
  font-family: "Maax";
  color: white;

  background-color: var(--part-color);

  transition: max-width 2.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@media screen and (min-width: 1024px) {
  ._sideNav {
    flex-flow: column nowrap;
    top: 0;
    left: calc(-1 * var(--sideNav-width));
    margin-top: 1rem;
  }
}

._sideNav .num,
._sideNav .title {
  padding: 0 15px;
  display: block;
}
._sideNav .num {
  flex: 0 0 auto;
  display: flex;
  padding-top: 3px;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: var(--sideNav-width);
  height: var(--sideNav-width);
}
._sideNav .title {
  white-space: nowrap;
}

._sideNav a:hover,
._sideNav a:focus-visible {
  max-width: 80vw;
}

._supTitle {
  display: block;
  font-family: "Maax";
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--part-color);
  margin-bottom: 0.5rem;
}

[data-part="0"] {
  --part-color: var(--rouge);
}
[data-part="1"] {
  --part-color: var(--bleu);
}
[data-part="2"] {
  --part-color: var(--vert);
}

h1,
h2,
h3 {
  font-family: "Maax";
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1,
.h1 {
  font-size: var(--font-size-x-large);
}
h2,
.h2 {
  font-size: var(--font-size-large);
}
h3,
.h3 {
  font-size: 1rem;
}
h4,
.h4 {
  font-size: 1rem;
}

hgroup h1,
hgroup h2,
hgroup h3 {
  margin-top: 0;
  margin-bottom: 0;
}

hgroup {
  margin-bottom: 2rem;
}

._bottomNav {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  font-family: "Maax";

  padding-bottom: 40px;
  margin: 0 auto;

  font-size: var(--font-size-small);
}
@media print {
  ._bottomNav {
    display: none;
  }
}

._bottomNav a {
  color: var(--part-color);
}

._welcomemodal {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  z-index: 1000;

  color: white;
  background-color: var(--gris-fond);
  display: flex;
  align-items: center;
}
._gradient {
  position: absolute;
  /* left: 0; */
  /* right: 0; */
  /* top: 100%; */
  width: 100%;
  height: 20vh;
  margin-top: -1rem;
  z-index: 0;
  background-color: var(--gris-fond);
  background-image: linear-gradient(
    to bottom,
    var(--gris-fond) 0%,
    var(--beige-fond)
  );
}
._welcomemodal-content {
  max-width: 80ch;
  padding: 10vh 1rem;
  margin: 0 auto;
  color: black;
}
._welcomemodal-content h1 {
  font-size: var(--font-size-large);
  margin: 0;
}

._loader {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 0.35rem;
  margin-top: -0.2em;
  vertical-align: middle;
  border: 1px solid var(--rouge);
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    transform: translateX(calc(var(--progress) - 100%));
    transform-origin: left;
    background-color: var(--rouge);
    transition: all var(--animation_speed) linear;
  }
}

._welcomemodal-message {
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

._welcomemodal-message-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
._welcomemodal-message-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

._welcomemodal-message-content {
  padding: 2rem 0 0;
}
._welcomemodal-message-content h2 {
  margin: 0 0 1rem;
  font-size: var(--font-size-x-large);
}
._welcomemodal-message-content h2 strong {
  font-weight: inherit;
  color: var(--rouge);
}
._welcomemodal-message-content h2::before {
  content: "— ";
  color: var(--rouge);
}
._welcomemodal-message a {
  /* text-decoration: underline !important; */
}

._header {
  position: sticky;
  top: 0;
  z-index: 0;
}
@media screen and (min-width: 1024px) {
  ._header {
  }
}

._header a {
  display: block;
  padding: 1rem 1rem;
  color: black;
  text-decoration: none;
  opacity: 0.25;
  transition: opacity 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}
._header a:hover,
._header a:focus-visible {
  opacity: 1;
}

@media screen and (min-width: 1024px) {
  ._header a {
    padding: 1rem 0.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
textarea {
  font-family: inherit;
}

textarea:focus {
  outline: none;
}

details {
  /* color: var(--part-color); */
}
summary {
  font-family: "Maax";
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  /* font-family: "Maax";
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--part-color); */
}
summary::marker {
  content: "▶ ";
}
details[open] summary,
details[open] h1,
details[open] h2,
details[open] h3,
details[open] h4 {
  color: var(--part-color);
}
details[open] summary::marker {
  content: "▼ ";
}

details[open] > p {
  margin-top: 0;
}

summary:hover,
summary:focus-visible {
  color: var(--part-color);
}
a[href^="#"] {
  text-decoration: none;
  font-family: "Maax";
  letter-spacing: 0.02em;
  color: var(--part-color);
}
a[href^="#"]:target {
  border-bottom: 2px dashed currentColor;
}
a[target="_blank"]:visited {
  color: var(--gris-beige-fonce);
}

a[target="_blank"]::before {
  content: "";
  display: inline-block;
  color: currentColor;
  vertical-align: baseline;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.1rem;
  margin-bottom: -0.2em;
}
[data-part="0"] {
  a[target="_blank"]::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Crect x='18.457' y='34.496' style='fill:%23F1300F;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' width='48.086' height='48.086'/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,18.957 66.542,34.496 '/%3E%3Cpolygon style='fill:white;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points='86.05,18.957 86.05,67.043 66.542,82.582 66.542,34.496 '/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}
[data-part="1"] {
  a[target="_blank"]::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Crect x='18.457' y='34.496' style='fill:%230075c6;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' width='48.086' height='48.086'/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,18.957 66.542,34.496 '/%3E%3Cpolygon style='fill:white;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points='86.05,18.957 86.05,67.043 66.542,82.582 66.542,34.496 '/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}
[data-part="2"] {
  a[target="_blank"]::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Crect x='18.457' y='34.496' style='fill:%23008a47;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' width='48.086' height='48.086'/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,18.957 66.542,34.496 '/%3E%3Cpolygon style='fill:white;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points='86.05,18.957 86.05,67.043 66.542,82.582 66.542,34.496 '/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}

._showUserNotes {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
  margin: 0.5rem;
  padding: 1rem;
  flex: 0 0 auto;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;

  line-height: 1.5;

  cursor: pointer;
  background-color: var(--gris-beige-fonce);

  color: white;
  border-radius: 50px;
  min-width: 50px;
  height: 50px;

  border: none;
}

@media print {
  ._showUserNotes {
    display: none !important;
  }
}

.text a[href^="#"]::after,
._notesAnchors::before {
  content: "";
  display: inline-block;
  vertical-align: baseline;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.1rem;

  color: var(--part-color);
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Cpolygon style='fill:%23008947;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 66.542,82.582 18.457,82.582 18.457,34.496 '/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,67.043 66.542,82.582 '/%3E%3C/g%3E%3C/svg%3E%0A");
}

.text a[href^="#"]::after {
  transform: rotate(-45deg);
  margin-bottom: 0rem;
}
.text a[href="#hautdepage"]::after {
  transform: rotate(135deg) !important;
  margin-bottom: -0.4rem !important;
}

._notesAnchors::before {
  transform: rotate(135deg);
  margin-bottom: -0.4rem;
}

[data-part="0"] {
  .text a[href^="#"]::after,
  ._notesAnchors::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Cpolygon style='fill:%23f1300e;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 66.542,82.582 18.457,82.582 18.457,34.496 '/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,67.043 66.542,82.582 '/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}
[data-part="1"] {
  .text a[href^="#"]::after,
  ._notesAnchors::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Cpolygon style='fill:%230075c6;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 66.542,82.582 18.457,82.582 18.457,34.496 '/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,67.043 66.542,82.582 '/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}
[data-part="2"] {
  .text a[href^="#"]::after,
  ._notesAnchors::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 102.06 102.366' style='enable-background:new 0 0 102.06 102.366;' xml:space='preserve'%3E%3Cg id='Calque_1'%3E%3C/g%3E%3Cg id='TEXTE'%3E%3Cpolygon style='fill:%23008947;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 66.542,82.582 18.457,82.582 18.457,34.496 '/%3E%3Cpolygon style='fill:%23FFFFFF;stroke:%231D1D1B;stroke-width:1.5;stroke-linejoin:round;stroke-miterlimit:10;' points=' 18.457,34.496 37.964,18.957 86.05,67.043 66.542,82.582 '/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}

@media (min-width: 1024px) {
  .text a[href^="#"]::after,
  ._notesAnchors::before {
    margin-bottom: -0.2rem;
  }

  .text a[href^="#"]::after {
    transform: rotate(-135deg);
    margin-bottom: -0.2rem;
  }
  ._notesAnchors::before {
    transform: rotate(45deg);
    margin-bottom: -0.2rem;
    margin-right: 0;
  }
}

.printpagebutton__dialog {
  padding: 1rem;
  border-radius: 4px;
  border: none;
  max-width: 50ch;
  width: 100%;
  box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.25);

  > *:first-child {
    margin-top: 0;
  }
}
@media print {
  .printpagebutton__dialog {
    display: none;
  }
}

.printpagebutton__close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0.5rem;
}

dialog::backdrop {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}
