*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  hyphens:auto;
}

html {
  scroll-behavior: smooth;
}

* {
  transition: color 0.2s linear, font-size 0.2s ease-in-out, width 0.2s ease-in-out, height 0.2s ease-in-out;
}

.viz,
.viz * {
  transition: none !important;
}

:root {

  /*THEME CLAIR*/
  --fond: #f7f7f7;
  --texte: #252525;
  --bleu: #4863fa;
  --orange: #ff3e1c;
}

/* THEME SOMBRE */
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #252525;
    --texte: #f7f7f7;
  }
}

/* fonts */

@font-face {
  font-family: 'Open Sans';
  src: url('../font/Open_Sans/OpenSans-VariableFont_wdth\,wght.ttf') format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Paytone One';
  src: url('../font/Paytone_One/PaytoneOne-Regular.ttf') format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background-color: var(--fond);
  display: grid;
  justify-items: center;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: [full-start] minmax(1rem, 1fr) [content-start] minmax(0, 96rem) [content-end] minmax(1rem, 1fr) [full-end];
  min-height: 100vh;
}

header {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: full;
  position: sticky;
  top: 0;
  width: 100%;
  justify-items: center;
  min-height: 2rem;
  background-color: var(--bleu);
  z-index: 100;
}

header>* {
  grid-area: 1/2/2/3;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  color: var(--fond);
  font-family: Paytone One;
  font-size: 2rem;
  text-decoration: none;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-items: center;
  width: auto;
  column-gap: 1rem;
}

.header-logo>img {
  width: auto;
  height: 100px;
}

@media (min-width:1024px) {
  .header-logo>img {
    width: auto;
    height: 150px;
  }
}

main {
  grid-area: 2/2/3/3;
  display: flex;
  flex-flow: column;
  width: 100%;
  background-color: var(--fond);
}

main>* {
  margin: 1em;
  padding: 5px;
  flex-basis: 10%;
  flex-grow: 1;
}

section {
  scroll-margin-top: 7rem;
}

@media (min-width:728px) {
  section {
    scroll-margin-top: 10rem;
  }
}

h1,
h2,
h4,
h3 {
  font-family: 'Paytone One';
  text-align: center;
  margin-bottom: 15px;
}

h1,
h2,
h4 {
  color: var(--texte);
}

h3 {
  color: var(--bleu);
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p,
li,
button {
  font-family: Open Sans;
  color: var(--texte);
}

li {
  margin-left: 1.25rem;
}

p {
  width: 100%;
  font-size: 1rem;
}

strong {
  color: var(--bleu);
}

i,
em {
  color: var(--bleu);
}

a {
  font-family: Open Sans;
  color: var(--orange);
}

.menu {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  position: absolute;
  grid-template-rows: repeat(4, 1fr);
  grid-template-columns: subgrid;

  width: 100%;
  top: 100%;
  left: 0;
  background-color: var(--bleu);

  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 0.2s linear;
}

.menuOuvert {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transition: clip-path 0.2s linear;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

nav>ul>li {
  list-style-type: none;
  color: var(--fond);
  margin-left: 0;

}

nav>ul>li>a {
  display: inline-block;
  padding: 1rem;
  color: var(--fond);
  text-decoration: none;
  width: 100%;
  height: 100%;
}

nav>ul>li>a:hover {
  background-color: var(--orange);
}

.burger {
  display: block;
  width: min-content;
  justify-self: end;
  background-color: var(--bleu);
  border: none;
  border-radius: 50px;
  padding: 0.5rem;
  margin: 0.5rem;
}

.burger>img {
  width: 50px;
  height: 50px;
}

/*NAVIGATION*/

@media (min-width:1024px) {
  .burger {
    display: none;
  }

  nav {
    display: flex;
    justify-content: space-between;
  }

  .menu {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    position: relative;
    top: 0;
    display: grid;
    grid-template-rows: repeat(1, auto);
    grid-template-columns: repeat(5, auto);
    align-items: center;
    justify-content: right;
  }

  .menu a {
    border-radius: 15px;
  }
}

.zoneBurgerBtnChanger {
  display: flex;
  align-items: center;
}

.parentViz {
  height: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.viz {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 400px;
}

.groupeViz {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dotted {
  stroke-dasharray: 5, 12;
}

@media (min-width:1024px) {
  .groupeViz {
    flex-direction: row;
    width: auto;
  }

  .groupeViz>*:not(:last-of-type) {
    margin-bottom: 15px;
  }

  .groupeViz>* {
    flex: 1;
  }

  .viz {
    width: 100%;
    height: 300px;
  }
}

button {
  padding: 1rem;
  height: fit-content;
  border-radius: 30px;
  background-color: var(--orange);
  color: var(--fond);
  font-size: 1rem;
  border: none;
}

button:hover {
  cursor: pointer;
}

#btnChangerEtablissement {
  border-radius: 0;
}

@media (min-width:1024px) {
  #btnChangerEtablissement {
    border-radius: 30px;
  }
}

footer {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: full;
  width: 100%;
  justify-items: center;
  min-height: 2rem;
  background-color: var(--bleu);
  z-index: 100;
  padding: 1rem;
}

footer>* {
  grid-area: 1/2/2/3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer * {
  color: var(--fond);

}

footer img {
  height: 100px;
}

@media (min-width:1024px) {
  footer img {
    height: 150px;
  }
}

.navigationFooter {
  display: grid;
  grid-template-rows: repeat(5, auto);
  row-gap: 1rem;
  align-items: center;
}

@media (min-width:1024px) {
  .navigationFooter {
    grid-template-columns: repeat(5, auto);
    grid-template-rows: auto;
    column-gap: 1rem;
    justify-items: center;
  }
}