@import url(../Assets/Font/Edu_QLD_Hand/EduQLDHand-VariableFont_wght.ttf) ;

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #000000;
  --black: #ebccb3;
  --grey: #a29b9b;
}

body {
  font-family: "Bitter", serif;
  color: var(--black);
  font-size: 20px;
  background-color: var(--white);
}

img {
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  margin: 4em auto;
  width: 100%;
  max-width: 820px;
}
.container div {
  margin-bottom: 6em;
}

/* UTILITY CLASSES */
.fct {
  width: 70px;
  font-size: 0.7rem;
  color: var(--grey);
  line-height: 16px;
}
.fct a {
  display: block;
}
.pgt {
  color: var(--grey);
  text-align: justify;
  line-height: 20px;
}
.pgt p {
  margin-bottom: 1em;
}

/* PAGE ONE
------------------------------------------ */
.page-one {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: min-content;
  gap: 1em;
}
.page-one__photo {
  grid-column: 1/8;
  grid-row: 1/4;
  position: relative;
  z-index: -1;
}
.page-one__header {
  grid-row: 2/3;
}
.page-one__subhead {
  grid-row: 3/5;
}
.page-one__subhead p {
  line-height: 24px;
  margin-top: 20px;
  padding: 0.5em 0 0 0.5em;
  background-color: var(--white);
}
.page-one__quote {
  grid-column: 1/3;
  grid-row: 5/7;
  text-transform: uppercase;
  line-height: 18px;
  text-align: right;
  position: relative;
  height: min-content;
}
.page-one__quote p {
  padding: 20px 5px;
}
.page-one__quote::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-one__quote::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-one__desc {
  grid-column: 3/9;
  grid-row: 6/9;
  columns: 2;
  column-gap: 1em;
  /*changer taille*/
}
.page-one__info {
  grid-column: 1/3;
  grid-row: 8/9;
  text-transform: uppercase;
  line-height: 18px;
  text-align: right;
}

/* PAGE TWO
------------------------------------------ */
.page-two {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: min-content;
  gap: 1em;
}
.page-two figcaption {
  position: absolute;
}
.page-two__photo1 {
  grid-column: 1/5;
  grid-row: 1/4;
  margin-top: 150px;
  position: relative;
}
.page-two__photo1 figcaption {
  top: -20px;
  left: 0;
  z-index: 6;
}
.page-two__photo2 {
  grid-column: 5/9;
  grid-row: 1/4;
  position: relative;
  z-index: -1;
}
.page-two__photo2 figcaption {
  top: 0;
  left: -75px;
  z-index: 5;
  text-align: right;
}


.page-two__subhead {
  grid-column: 5/7;
  grid-row: 2/4;
  text-transform: uppercase;
  line-height: 24px;
  padding: 0.5em 0 0 0.5em;
  background-color: var(--white);
}
.page-two__info {
  grid-column: 1/3;
  grid-row: 8/9;
  text-transform: uppercase;
  line-height: 18px;
  position: relative;
  align-self: center;
}
.page-two__info p {
  padding: 20px 5px;
}
.page-two__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-two__info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-two__desc {
  grid-column: 3/9;
  grid-row: 8/9;
  columns: 2;
}

/* PAGE THREE
------------------------------------------ */
.page-three {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: min-content;
  gap: 1em;
}
.page-three__photo1 {
  grid-column: 1/6;
  grid-row: 1/2;
  position: relative;
}
.page-three__photo1 figcaption {
  position: absolute;
  top: 0px;
  right: -75px;
}
.page-three__photo2 {
  grid-column: 1/5;
  grid-row: 2/3;
  position: relative;
}
.page-three__photo2 figcaption {
  position: absolute;
  top: 0;
  left: -80px;
  z-index: 10;
  text-align: right;
}
.page-three__photo3 {
  grid-column: 5/9;
  grid-row: 2/3;
  position: relative;
}
.page-three__photo3 figcaption {
  position: absolute;
  top: -20px;
  right: 0;
  width: 200px;
  text-align: right;
}

.page-three__info p {
  padding: 20px 5px;
  text-align: left;
}
.page-three__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-three__info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}

footer {
  padding: 20px;
  text-align: center;
}
footer p {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--grey);
}
footer a {
  text-decoration: none;
}

@media screen and (max-width: 640px) {
  .page-one__header,
  .page-one__subhead {
    grid-column: 5/9;
    text-transform: uppercase;
  }

  figcaption {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  .container {
    margin: 1em auto;
  }
  .container div {
    margin-bottom: 1em;
  }

  .page-one,
  .page-two,
  .page-three {
    padding: 0px 20px;
  }

  /* PAGE ONE */
  .page-one__photo {
    grid-column: 1/9;
  }
  .page-one__header {
    grid-row: 3/4;
  }
  .page-one__subhead {
    grid-column: 2/8;
    grid-row: 4/5;
  }
  .page-one__desc {
    grid-column: 1/9;
    grid-row: 5/6;
    columns: auto;
  }
  .page-one__desc p:nth-of-type(2) {
    padding-left: 40%;
  }
  .page-one__desc p:nth-of-type(1) {
    padding-right: 40%;
  }
  .page-one__info {
    grid-column: 6/9;
    grid-row: 5/7;
  }
  .page-one__quote {
    grid-column: 1/4;
    grid-row: 6/8;
    text-align: left;
    margin-top: -280px;
  }
  .page-one__quote::before,
  .page-one__quote::after {
   left: 1;
  }

  /* PAGE TWO */
  .page-two__photo1 {
    grid-column: 1/6;
    grid-row: 3/6;
  }
  .page-two__photo2 {
    grid-column: 3/9;
    grid-row: 2/4;
  }
  .page-two__subhead {
    grid-column: 6/9;
    grid-row: 4/6;
    margin-top: -50px;
  }
  .page-two__info {
    grid-column: 1/3;
    grid-row: 6/7;
  }
  .page-two__desc {
    grid-column: 1/9;
    grid-row: 6/8;
    columns: auto;
    grid-auto-flow: column;
  }
  .page-two__desc p:nth-of-type(1),
  .page-two__desc p:nth-of-type(2) {
    padding-left: 34%;
  }

  /* PAGE THREE */
  .page-three__photo1 {
    grid-column: 1/9;
  }
  .page-three__desc {
    grid-column: 1/9;
    grid-row: 4/6;
    columns: auto;
  }
  .page-three__footnote {
    grid-column: 7/9;
    grid-row: 4/5;
  }
  .page-three__info {
    grid-column: 6/9;
    grid-row: 5/6;
  }
  .page-three__desc p:nth-of-type(1) {
    padding-right: 30%;
  }
  .page-three__desc p:nth-of-type(4),
  .page-three__desc p:nth-of-type(5) {
    padding-right: 40%;
  }
}


 .page-four__photo1 {
    grid-column: 1/6;
    grid-row: 3/6;
  }
  .page-four__photo2 {
    grid-column: 3/9;
    grid-row: 2/4;
  }


  .page-animation{
  grid-column: 1/8;
  grid-row: 1/4;
  position: relative;
}

  
