@font-face {
  font-family: "Arimo";
  src: url("../fonts/arimo/Arimo-Regular-webfont.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "OpenSans";
  src: url("../fonts/opensans/OpenSans-Regular-webfont.woff") format("woff");
  font-display: swap;
}
@font-face {
  	font-family: "Inconsolata";
  	src: url("../fonts/Inconsolata/inconsolata-webfont.woff2") format("woff2"),
      url("../fonts/Inconsolata/inconsolata-webfont.woff") format("woff");
    font-display: swap;
}

:root {
  --col-jaune: rgba(255,203,26,1);
}
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html.ouvert {
  overflow-y: hidden;
}
body {
  margin: 0;
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  display: inline-block;
  text-decoration: none;
  color: #000;
  transition: transform .5s;
  transform-origin: center;
}
a:not(.button).ext, .griffe a {
  position: relative;
  margin-right: 8px;
}
a:not(.button).ext::after, .griffe a::after {
  display: inline-block;
  width: 7px;
  position: absolute;
  top: -5px;
  right: -9px;
}
.griffe a {
  display: inline-block;
  text-decoration: underline;
}
a:hover {
  transform: translate(3px, 3px);
}
a.ext:hover {
  transform: rotateX(180deg);
}


/********************************/
/* calendriers : cadre à copier */
/********************************/
.container {
  display: flex;
  width: 1200px;
  max-width: 100%;
  padding: 2rem;
  margin: auto;
}
article, aside {
  /*width: 45%;*/
  width: auto;
}
.table {
  width: 600px !important;
  max-width: 100%;
  color: #000 !important;
}
aside {
  margin: 0 auto;
}
.script, .balise-html {
  margin: 2rem 0;
}
.script p, .balise-html p {
  margin: 0;
}
.cadre-copie {
  background-color: #f9f2f4;
  color: #9c1d3d;
  padding: .2rem .8rem;
  border-radius: 3px;
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
}
.bouton-copie {
  background: #ecebeb;
  margin-top: .3rem;
  padding: 0 .2rem;
  display: inline-block;
  border: solid 1px;
  border-radius: 3px;
  cursor: pointer;
}

@media (max-width: 840px) {
  .container {
    flex-wrap: wrap;
  }
  article, aside {
    width: 500px;
    max-width: 100%;
    margin: auto;
  }
}


/********/
/* MENU */
/********/
header {
  position: relative;
  z-index: 9;
  width: 100%;
  margin-bottom: 80px;
}
header.mobile {
  padding-top: 3rem;
}
header.mobile a, header.mobile li {
  color: #000;
}

header nav {
  display: flex;
  width: 1200px;
  max-width: 100%;
  padding: 1rem 2rem;
  margin: auto;
  text-transform: uppercase;
}
header ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.menu-list {
  position: relative;
  align-items: center;
  flex-wrap: wrap;
}


header li {
  font-size: 14px;
}
header li:not(.angle, .petit-angle, .mobile-angle) {
  padding-left: 1.5rem;
}
header:not(.mobile) li {
  line-height: 1;
}
.mobile header li {
  padding: 5px 1rem;
}
header li.selected {
  text-decoration: underline;
}
header a {
  letter-spacing: 0;
  transition: all .5s;
  text-decoration: none !important;
}
header a:hover {
  color: rgba(60,60,60,0.8199999928);
  letter-spacing: 0.1em;
  transform: none;
  font-style: normal;
}
header li p {
  margin: 0;
}



/* MENU MOBILE */
.burger {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.custom-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
}
.menu .bar {
  display: inline-block;
  position: absolute;
  width: 30px;
  height: 5px;
  background-color: var(--col-bleu);
  border: solid 1px;
  border-radius: 5px;
}
.menu .bar:nth-of-type(2) {
  transform: translateY(-130%);
}
.menu .bar:nth-of-type(3) {
  transform: translateY(130%);
}
.fleche-retour {
  display: none;
  width: 60%;
}



.menu.mobile {
  z-index: 99;
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  padding: 0 1rem 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 1s;
}
.ouvert .menu.mobile {
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden scroll;
  padding-top: 1rem;
}
.mobile .burger {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile .logo-principal-conteneur {
  position: relative;
  top: 0;
  left: 0;
}
.mobile .logo-mobile {
  transition: height 1s;
}
body:not(.phone) .mobile .logo-principal .logo-mobile {
  display: block;
}
header.mobile nav {
  padding: 0 2rem 2rem;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
header.mobile ul {
  flex-direction: column;
}
header.mobile li {
  padding: 5px 0;
}
.mobile .logo-principal-conteneur, .mobile nav {
  opacity: 0;
  transition: opacity .3s .3s;
}
.ouvert .mobile .logo-principal-conteneur, .ouvert .mobile nav {
  opacity: 1;
}



@media screen and (max-width: 650px) {
  main h1 {
    font-size: 32px;
  }
  header:not(.mobile) .petit-angle {
    position: absolute;
    right: 0;
    width: 450px;
    transform-origin: top right;
    transform: rotate(90deg) translate(100%, -100%);  
  }
  header:not(.mobile) .angle {
    position: relative;
    right: unset;
    transform: none;  
  }
}
@media screen and (max-width: 450px) {
  header:not(.mobile) .mobile-angle {
    position: absolute;
    right: 0;
    width: 650px;
    transform-origin: top right;
    transform: rotate(90deg) translate(100%, -100%);  
  }
  header:not(.mobile) .petit-angle {
    position: relative;
    right: unset;
    transform: none;  
  }
}

