/* @import url('https://fonts.googleapis.com/css2?family=Playwrite+ES+Deco+Guides&family=Playwrite+HU:wght@100..400&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Style+Script&display=swap'); */

* {
  flex-wrap: wrap;
  font-family: "Playwrite HU", Times, fantasy;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  --violet : /* #8952AA */ /* #633C7C */ #4F066C;
  /* cursive */
  /* 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif */
}

body {
  width: 100%;
  display: flex;
  margin: 0;
  background-color: #F1ECE1;
  background-image: linear-gradient(
      90deg,
      transparent 50px,
      #ffb4b8 50px,
      #ffb4b8 52px,
      transparent 50px
    ),
    linear-gradient(#d1d1d1 0.1em, transparent 0.1em);
  background-size: 100% 22px;
}

aside{
  z-index: 10;
  background-color: rgb(255, 255, 255);
  transition: 1s ease-in-out;
  position:fixed;
  margin: 0;
  padding: 0;
}

aside ul {
  font-size: 50px;
}

:is(aside, nav) li{
  list-style: none;
} 

main {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  width: 75svw;
  min-width: 50svw;
  margin-left: 25svw;
  transition: 1s ease-in-out;
  min-height: 85svh;
}

nav {
  position: fixed;
  width: 100%;
  /* border-bottom: 1px black solid; */
  height: min-content;
  list-style: none;
  /* background-color: rgb(255, 251, 246);
  border-bottom: #8b8b8a 1px solid; */
}

nav a{
  margin-inline: .5svw;
}

nav a:hover{
  background-color: transparent;
}

nav li {
  display: inline-flex;
  padding: 1%;
  background-color: rgb(248, 246, 243);
  box-shadow: grey 1px 2px 3px;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

nav li:hover{
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  box-shadow: black 1px 2px 3px;
}

nav a {
  text-decoration: none;
}

section {
  padding-inline: calc(1% * 2);
  display: block;
  margin-inline: 10svw;
  transition: 2s;
}

section > h1 {
  font-size: xx-large;
  margin-left: 0;
  text-align: center;
}

section a {
  color: var(--violet);
  /* display: grid;
  grid-template-rows: repeat(1, minmax(0, 1fr)); */
}

article {
  margin-block: 2svh 2svh;
  display: block;
  width: 50svw;
}

li {
  list-style: circle;
}

h1 {
  margin-left: 2svw;
  font-size: x-large;
}

h2 {
  margin-left: 4svw;
  font-size: larger;
}

h3 {
  margin-left: 6svw;
  font-size: large;
}

a {
  color: black;
  width: fit-content;
}

a > :is(h1, h2, h3, h4, h5, h6):hover, a:hover, aside li:hover {
  background-color: #A77EC1;
  width: fit-content;
  height: fit-content;
}

table{
  width: 100%;
  background-color: white;
  border-collapse:collapse;
}

th,
td {
  border: 1px solid black;
  padding: 8px 10px;
}

tr.pair{
  background-color: #b1b1b1;
}

figure {
  margin-inline: 8px;
  padding: 0;
}

figcaption {
  text-align: center;
  font-style: italic;
}

img{
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

footer{
  margin-top: 4svh;
  margin-inline: 0;
  width: 100svw;
  padding-inline: auto;
  transition: 2s;
  text-align: center;
  background-color: rgba(128, 128, 128, 0.5);
}

footer p {
  margin-inline:auto;
  text-align: center;
  max-width: 50svw;
}

/*             Image de côté                */
#image-texte figure {
  float: left;
  margin: 0 16px 8px 0;
}

#image-texte img {
  display: block;
  max-width: 100%;
  height: auto;
}

#image-texte::after {
  content: "";
  display: table;
  clear: both;
}

#image-texte li {
  margin-bottom: 1svh;
}

#image-texte div ul {
  display: block;
  margin-left: 14svw;
}

:where(#image-texte > div :is(a)) {
  width: fit-content;
}

/*              Menu burger                */
.toggle {
  position: relative;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition-duration: 0.3s;
}

.bars {
  width: 100%;
  height: 2px;
  background-color: black;
  border-radius: 2px;
  transition-duration: 0.3s;
}

/*              Styles random               */
.important {
  /* color: #1E5F24; */
  /* background-color: #18cb8d; */
  font-weight: bold;
}
