@font-face {
  font-family: "WorkSans";
  src: url("../fonts/work-sans/WorkSans-Regular.woff2") format("woff2"),
      url("../fonts/work-sans/WorkSans-Regular.woff") format('woff');
  font-display: swap;
}
@font-face {
  font-family: "WorkSansBold";
  src: url("../fonts/work-sans/WorkSans-Bold.woff2") format("woff2"),
      url("../fonts/work-sans/WorkSans-Bold.woff") format('woff');
  font-display: swap;
}
@font-face {
  font-family: "WorkSansLight";
  src: url("../fonts/work-sans/WorkSans-Light.woff2") format("woff2"),
      url("../fonts/work-sans/WorkSans-Light.woff") format('woff');
  font-display: swap;
}

* {
  -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: 'WorkSans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #393A97;
}
a {
  text-decoration: none;
  color: #393A97;
  transition: transform .5s;
  transform-origin: center;
}
a:not(.button).ext, .griffe a {
  position: relative;
  margin-right: 8px;
}
.contenu a.ext:hover, .griffe a:hover {
  transform: rotateX(180deg);
}
a:not(.button).ext::after, .griffe a::after {
  display: inline-block;
  width: 7px;
  position: absolute;
  top: -5px;
  right: -9px;
}
a:not(.button).ext::after, .griffe a::after {
  content: url('../images/external-link-alt.svg');
}
.contenu a, .griffe a, .soutien a {
  display: inline-block;
  text-decoration: underline;
}
.contenu a:hover, .soutien a:hover {
  transform: translate(5px, 5px);
}
picture {
  display: flex;
}
img {
  max-width: 100%;
}
ol li {
  margin-bottom: 1rem;
}


/***********/
/* CONTENU */
/***********/
header, main, footer {
  width: 1800px;
  max-width: 100%;
  margin: auto;
}
header {
  letter-spacing: 75va;
  padding: 0 3rem;
}
main {
  /*--vignette-H: 248px;
  --vignette-W: 372px;*/
  --vignette-H: 221px;
  --vignette-W: 332px;
  --nb-vignettes-1: 4;
  --nb-vignettes-2: 3;
  --nb-vignettes-3: 2;
  padding: 2rem 2rem 2rem 3rem;
}
main nav {
  padding-top: 2rem;
}
.groupe {
  width: 100%;
  display: flex;
  padding: 2rem 0;
}
.pair.groupe {
  justify-content: flex-end;
}
.vignettes {
  display: flex;
  flex-wrap: wrap;
  width: calc(var(--nb-vignettes-1) * calc(32px + var(--vignette-W)));
  transition: width .3s;
}
.vignette-conteneur {
  position: relative;
  padding: 0 1rem;
  transition: transform .8s, opacity 1s;
  max-width: 100%;
}
.vignette-conteneur:hover {
  transform: rotate(2deg);
}
.vignette-conteneur:nth-child(2n):hover {
  transform: rotate(-2deg);
}
.vignette-conteneur-image {
  position: relative;
  height: var(--vignette-H);
  width: var(--vignette-W);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}
.vignette {
  position: absolute;
}
.vignette-titre {
  position: relative;
  top: -5px;
  font-size: 9pt;
  font-weight: 600;
}
.vignette-titre span {
  font-family: 'WorkSansLight';
  font-weight: 400;
}
.groupe h2 {
  padding: 0;
  margin: 0;
  font-weight: normal;
  font-size: 13pt;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: .9;
}
/*.groupe h2.annee {
  font-size: 20pt;
  line-height: .6;
}*/


/* ANIMATION ACCUEIL */
.groupe.hide, .vignette-conteneur.hide {
  display: none;
}



/********/
/* MENU */
/********/
header a, header .bouton {
  position: relative;
}
header a::after, header .bouton::after {
  content: '';
  display: inline-block;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -2px;
}
header li:nth-child(1) a::after {
  transform-origin: top right;
  transform: rotate(-3deg);
}
header li:nth-child(3) a::after {
  transform-origin: top left;
  transform: rotate(3deg);
}
header a:hover::after, header .bouton:hover::after, .bouton.search {
  border-bottom: dotted 3px;
}
header.mobile {
  padding-top: 3rem;
}
header nav {
  display: flex;
  align-items: flex-end;
}
header ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 5px 0;
  margin: 0;
}
header ul h1 {
  margin: 0;
  display: flex;
}
header ul, header ul h1 {
  font-weight: 200;
}
header li:not(.boutons-recherche) a, header ul h1 {
  font-size: 16px;
}
.boutons-recherche {
  font-size: 16px;
}
header ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bouton {
  margin: 0 1rem;
  cursor: pointer;
}
.bouton.search:hover::after {
  border-bottom: none;
}
.mobile header li {
  padding: 5px 1rem;
}
header li.selected {
  text-shadow: none;
}
.button {
  text-transform: none;
  background-color: #ffffffea;
}


/* CONTACT */
#contact {
  max-width: 420px;
}
input, textarea, button {
  font-size: 16px;
}
input::placeholder, textarea::placeholder {
  opacity: 1;
}
input, textarea {
  font-family: 'WorkSans';
  font-size: 14px;
  color: #393A97;
}
input:hover, textarea:hover {
  background-color: #fff;
}
.form-field {
  width: 100%;
  padding: 0 0 1rem;
}
.pure-form {
  width: 100%;
  height: 40px;
  border: solid 1px #393A97;
  padding: .5rem;
}
.pure-form:hover {
  border: solid 1px #000;
}
textarea.pure-form {
  height: 100px;
}
.form-spacer, .captcha {
  font-size: 75%;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.captcha.show, .form-spacer.show {
  height: auto;
  padding-bottom: 1rem;
}
.captcha .form-data {
  display: flex;
}
.form-result {
  width: 100%;
}
.button {
  position: relative;
  text-transform: uppercase;
  color: #393A97;
  border: solid 1px #393A97;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px .5rem;
  text-align: center;
  transition: all .5s;
}
.button:hover {
  color: #fff;
  background-color: #393A97;
}
.mention, .captcha {
  font-size: 75%;
  height: 0;
  padding: 0;
  overflow: hidden;
}


/* 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;
  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;
}
.mobile .logo-principal img:not(.logo-mobile) {
  display: none;
}
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;
  text-align: center;
}
.mobile .logo-principal-conteneur, .mobile nav {
  opacity: 0;
  transition: opacity .3s .3s;
}
.ouvert .mobile .logo-principal-conteneur, .ouvert .mobile nav {
  opacity: 1;
}



/***********/
/* FOOTERS */
/***********/
footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  text-align: right;
  font-size: 10pt;
}
.footer-contenu {
  padding: 0 3rem;
}


.phone .burger {
  display: flex;
}

@media screen and (max-width: 1552px) {
  main {
    --vignette-H: 183.33px;
    --vignette-W: 275px;
  }
  .groupe h2 {
    font-size: 11pt;
    line-height: 1.09;
  }
}
@media screen and (max-width: 1324px) {
  .vignettes {
    width: calc(var(--nb-vignettes-2) * calc(32px + var(--vignette-W)))
  }
}
@media screen and (max-width: 1017px) {
  .vignettes {
    width: calc(var(--nb-vignettes-3) * calc(32px + var(--vignette-W)))
  }
}

@media screen and (max-width: 710px) {
  main {
    --vignette-H: 221px;
    --vignette-W: 332px;
  }
  .vignettes {
    width: calc(32px + var(--vignette-W))
  }
  .groupe h2 {
    font-size: 13pt;
    line-height: .9;
  }
}


/*@media screen and (max-width: 1552px) {
  .vignettes {
    width: calc(var(--nb-vignettes-2) * calc(32px + var(--vignette-W)))
  }
}
@media screen and (max-width: 1188px) {
  .vignettes {
    width: calc(var(--nb-vignettes-3) * calc(32px + var(--vignette-W)))
  }
}
@media screen and (max-width: 824px) {
  .vignettes {
    width: calc(32px + var(--vignette-W))
  }
}*/
@media screen and (max-width: 456px) {
  main {
    /*--vignette-W: 320px;*/
    padding: 2rem 1rem;
  }
  .footer-contenu {
    padding: 0 1.5rem;
  }
  .groupe {
    display: block;
  }
  .groupe h2 {
    font-size: 20pt;
    line-height: 1.6;
    writing-mode: inherit;
  }
  .groupe h2.annee {
    line-height: 1.6;
  }
  .vignettes {
    width: auto;
  }
  .vignette-conteneur {
    padding: 0 .5rem;
  }
}
/*@media screen and (max-width: 1200px) {
  header li, header .button {
    font-size: 15px;
  }
}*/
@media screen and (max-width: 824px) {
  .menu {
    z-index: 99;
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    width: 50px;
    height: 50px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 1s;
    padding: 3rem 0 0;
  }
  .ouvert .menu.mobile {
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden scroll;
    padding-top: 1rem;
  }
  .petit.menu {
    --menu-mobile: 80px;
  }
  .burger {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  header nav {
    padding: 0 2rem 2rem;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  header ul {
    flex-direction: column;
  }
  .article section, .contenu-conteneur {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 752px) {
  .footer-conteneur {
    justify-content: center;
  }
}

@media screen and (max-width: 700px) {
  .contact .form-conteneur, .module-contenu {
    flex-wrap: wrap;
  }
  .contact section a.button {
    margin-bottom: 2rem;
  }
  .module-contenu.droite {
    flex-flow: row-reverse wrap;
  }
  .module-contenu.gauche .texte {
    padding-left: 0;
  }
  .module-contenu.droite .texte {
    padding-right: 0;
  }
}

