/* ----------------------------- */
/* RESET
/* ----------------------------- */

@charset "UTF-8";
html {
  /* on s'arrange pour que 1rem soit égal à 10px */
  font-size: 62.5%;
  /* IE9-IE11 */
  font-size: calc(1em * 0.625);
}

/* la suite du reset permet d'enlever les marges par défaut créées par les navigateurs */
/* et de donner un comportement plus intuitif aux principaux éléments */

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul, menu {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img{
  max-width: 100%;
  height: auto;
}
a{
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4, h5{
  font-weight: normal;
}
*[role='button']{
	cursor: pointer;
	user-select: none;
}


/* ----------------------------- */
/* TYPOS
/* ----------------------------- */

@font-face {
    font-family: 'AUTHENTIC Sans';
    src: url('../fonts/AUTHENTICSans-60.woff2') format('woff2'),
        url('../fonts/AUTHENTICSans-60.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AUTHENTIC Sans';
    src: url('../fonts/AUTHENTICSans-90.woff2') format('woff2'),
        url('../fonts/AUTHENTICSans-90.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


/* ----------------------------- */
/* DESIGN GENERAL
/* ----------------------------- */

body{
	font-family: 'AUTHENTIC Sans', 'Helvetica', Arial, sans-serif;
	font-size: 1.4rem; /* 1.4rem = 14px dans notre cas */
	line-height: 1.4;
  letter-spacing: 0.025em;
  font-weight: normal;
  background-color: #f1f1f1;
}

body,
a:hover{
  cursor: url('../images/main.png'), auto;
}

header{
  position: sticky;
  top: 0;
  padding-top: 1.6rem;
  z-index: 2;
}

header menu,
footer menu,
.browse-archive ul{
  display: flex;
  justify-content: center;
}

header menu a,
footer menu a,
.browse-archive a{
  display: block;
  font-size: 1.7rem;
  padding: 0.5em 1em 0.3em 1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #d6d6d6;
  margin: 0 0.15em;
  border-radius: 2em;
  transition: all 0.3s ease;
}

header menu a:hover,
footer menu a:hover,
.browse-archive a:hover{
  background-color: #fff;
  color: #711bff;
  padding: 0.5em 1.6em 0.3em 1.6em;
}

.projets-enavant figure{
  margin: 4rem auto;
  max-width: 120rem;
  text-align: center;
}

.projets-enavant video{
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 0 18px -3px rgba(0, 0, 0, 0.42);
  margin-bottom: 2.5rem;
}

.projets-enavant figcaption{
  margin: 0 auto;
  max-width: 55rem;
}

.details-projet{
  margin-bottom: 0.7em;
}

.date-projet,
.credits-projet{
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

a.lien-projet{
  color: #711bff;
}
a.lien-projet:hover{
  text-decoration: underline;
}

.projets-enavant .texte-projet{
  font-size: 1.7rem;
}

.credits-projet{
  margin-top: 1em;
}

.projets-grille{
  display: flex;
  flex-wrap: wrap;
  max-width: 140rem;
  margin: 9rem auto 3rem auto;
}

.projets-grille figure{
  width: calc(100% / 3);
  padding: 0 2rem 5rem 2rem;
}

.projets-grille figure img{
  aspect-ratio: 5/3;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.7rem;
  cursor: zoom-in;
}

.browse-archive{
  margin-bottom: 4.5rem;
}

footer .copyright{
  max-width: 120rem;
  margin: 2.5rem auto 4rem auto;
  text-align: center;
}

footer .copyright a{
  display: inline-block;
  border-bottom: 1px solid #711bff;
  line-height: 1;
}

figure video,
figure img{
  transition: all 0.8s ease;
}

figure video:hover,
figure img:hover{
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 0 30px -3px rgba(113, 27, 255, 0.7);
  transition: all 0.2s ease;
}

.banana{
  width: 13rem;
  position: fixed;
  top: 10rem;
  left: 15%;
  z-index: 2;
}

.banana2{
  width: 18rem;
  position: fixed;
  top: 10rem;
  left: 15%;
}

section.projets-enavant{
  position: relative;
}

.banana3{
  width: 20rem;
  position: absolute;
  bottom: 10%;
  right: 10%;
  z-index: 2;
}


/* écran de largeur 1300px maximum */
@media screen and (max-width: 1300px){
  .projets-enavant{
    padding: 0 3rem;
  }
}

@media screen and (min-width: 600px) and (max-width: 1000px){
  .projets-grille figure{
    width: 50%;
  }
}

@media screen and (max-width: 599px){
  body{
    background-color: aquamarine;
  }
  .projets-grille figure{
    width: 100%;
  }
  .banana,
  .banana2{
    display: none;
  }
}

@media screen and (max-width: 799px){
  header menu,
  footer menu,
  .browse-archive ul{
    flex-wrap: wrap;
  }
  header menu a,
  footer menu a,
  .browse-archive ul a{
    margin-bottom: 0.5em;
  }
}

