* {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

@font-face {
  font-family: 'Abrade-Thin';
  src: url("../font/Abrade-Thin.eot");
  /* IE9 Compat Modes */
  src: url("../font/Abrade-Thin.eot#iefix") format("embedded-opentype"), url("../font/Abrade-Thin.woff") format("woff"), url("../font/Abrade-Thin.ttf") format("truetype"), url("../font/Abrade-Thin.svg#svgFontName") format("svg");
  /* Legacy iOS */
}

.small-caps {
  font-family: 'Alegreya SC', "Georgia", serif;
}

h1 {
  font-family: "Open sans", "Verdana", sans-serif;
  font-size: 1em;
  letter-spacing: 0.06rem;
  text-decoration: none;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  line-height: 1em;
  margin-bottom: 1em;
}

h2 {
  font-family: "Open sans", "Verdana", sans-serif;
  font-size: 1em;
  letter-spacing: 0.06rem;
  text-decoration: none;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  line-height: 1em;
  margin-bottom: 1em;
  margin-bottom: 1.5%;
  font-size: 1.2em;
}

p {
  font-family: "Alegreya", "Georgia", serif;
  font-size: 1.25em;
  letter-spacing: 0.08rem;
  font-style: normal;
  line-height: 1.2em;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -ms-hyphenate-limit-lines: 2;
  hyphenate-limit-lines: 2;
}

blockquote {
  font-family: "Alegreya", "Georgia", serif;
  font-size: 2.25em;
  letter-spacing: 0.08rem;
  line-height: 3.5rem;
  font-style: normal;
  font-weight: 400;
  width: 60%;
}

a {
  text-decoration: none;
}

/* ----------------- Over fold ------------------ */

.nav-container {
  display: flex;
  justify-content: flex-end;
}


.top-nav {
  width: 33%;
  display: flex;
  height: 45px;
  justify-content: space-around;
  background-color: #302e2e;
  flex-direction: row;
}

.top-nav li {
  list-style: none;
  background-color: #302e2e;
  align-self: center;
}

.top-nav li a {
  color: #fff;
  font-family: "Open sans", "Verdana", sans-serif;
  font-size: 1em;
  letter-spacing: 0.06rem;
  text-decoration: none;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  line-height: 1em;
  margin-bottom: 1em;
  font-size: 0.75rem;
}

.main {
  display: grid;
  margin: 4% 2% 0 2%;
  grid-template-columns: 2fr 1fr;
  grid-gap: 3.125em;
}

.min{width: 80%;margin-top: 8%;}

.txt-box {
  width: 75%;
  align-self: center;
}

/* -------------- Under fold ------------------- */
/* -------------- Talkative Big Type ------------------- */
.quote {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 18% 0 16% 0;
}

.quote img {
  width: 20%;
  margin-top: 4%;
  align-self: center;
}

.quote blockquote {
  align-self: center;
}

/* -------------- End Talkative Big Type ------------------- */
/* -------------- Portfolio -------------------- */
.portfolio {
  margin-left: 6%;
}

.projet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  margin: 15% 6% 12% 6%;
}

.prodesc {
  font-family: "Alegreya", "Georgia", serif;
  font-size: 1.3em;
  letter-spacing: 0.08rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2em;
}

.ptxt {
  grid-column-start: 1;
  grid-column-end: 4;
}

.portfolio a:link {
  color: #302e2e;
}

.portfolio a:visited {
  color: #302e2e;
}

.imgbox {
  display: grid;
  grid-column-start: 2;
  grid-row-start: 2;
  grid-row-end: 7;
  -webkit-box-shadow: 4px 4px 6px 0px rgba(51, 51, 51, 0.3);
  -moz-box-shadow: 4px 4px 6px 0px rgba(51, 51, 51, 0.3);
  box-shadow: 4px 4px 6px 0px rgba(51, 51, 51, 0.3);
}

imgbox img {
  object-fit: cover;
  object-position: 0 0;
}

.indic {
  font-family: "Open Sans", "Verdana", sans-serif;
  font-size: 0.8em;
  color: #fff;
  line-height: 1.25em;
  background-color: #302e2e;
  padding: 0.5em 0.8em;
  font-weight: 300;
  font-style: normal;
  font-weight: 300;
}

/* -------------- End Portfolio -------------------- */
/* -------------- Curriculum -------------------- */
.curriculum {
  margin: 12% 16% 12% 12%;
}

.cur_grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(22ch, 1fr));
  grid-template-areas: "et . . . ." ". fi1 ex . ." ". . . fi2 su";
  grid-template-rows: auto;
}

.etudes {
  grid-area: et;
}

.exper {
  grid-area: ex;
}

.suite {
  grid-area: su;
}

.filet1 {
  grid-area: fi1;
  border-top: 1px solid black;
  margin: 0 5%;
}

.filet2 {
  grid-area: fi2;
  border-top: 1px solid black;
  margin: 0 5%;
}

/* -------------- End Curriculum -------------------- */
/* ------------------ Footer -------------------- */
footer {
  display: flex;
  width: 100%;
  height: 8em;
  background-color: #302e2e;
  justify-content: center;
}

footer img {
  width: 40%;
  display: inline-block;
}

.icones-footer {
  display: flex;
  width: 275px;
  list-style: none;
  align-self: center;
  justify-content: space-around;
  align-items: center;
}

/* ------------------ End Footer -------------------- */
/* ------------------ Gallery Page -------------------- */
.gallery {
  display: flex;
  align-content: center;
  justify-content: center;
  width: 100%;
}

.gallery-grid {
  list-style: none;
  display: grid;
  max-width: 1440px;
  margin: 6% 0;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(10, 1fr);
  grid-gap: 1.875em;
}

.gallery-grid li:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  display: block;
}

.gallery-grid li:nth-child(2) {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
  display: block;
}

.gallery-grid li:nth-child(3) {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
  display: block;
  max-width: 35ch;
  margin: 6% 0 0 6%;
}

.gallery-grid li:nth-child(4) {
  grid-column: 2 / 5;
  grid-row: 5 / 7;
  display: block;
}

.gallery-grid li:nth-child(5) {
  grid-column: 1 / 5;
  grid-row: 7 / 9;
  display: block;
}

.gallery-grid li:nth-child(6) {
  grid-column: 3 / 5;
  grid-row: 9 / 11;
  display: block;
}

.gallery-grid li:nth-child(6) {
  grid-column: 3 / 5;
  grid-row: 9 / 11;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: auto;
}

.gallery-grid p {
  margin-bottom: 12%;
}

.gallery-grid h1 {
  margin-top: 4%;
}

/* ------------------ End Gallery Page -------------------- */
/* ------------------------------------- Link coloration ------------ */
/* unvisited link */
a:link {
  color: #6bc0dd;
}

/* visited link */
a:visited {
  color: #dd7fae;
}

/* mouse over link */
a:hover {
  color: #666;
}

/* selected link */
a:active {
  color: #302e2e;
}

/* ------------------------------------- Media Queries ------------ */
/* ----------------------------------------------------------------------------- Ratio 1 ------------------------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  h2 {
    margin-bottom: 2%;
    font-size: 0.8em;
  }
  .top-nav {
    width: 100%;
    margin-left: 0%;
  }
  .main {
    grid-template-columns: 1fr;
  }
  .txt-box {
    max-width: 75ch;
    margin-top: 6%;
  }
  .projet img {
    width: 100%;
    height: auto;
  }
  .ptxt p {
    font-size: 0.9em;
    margin-bottom: 3%;
  }
  .projet {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .indic {
    font-size: 0.8em;
    font-weight: 300;
    margin-bottom: 0;
  }
  .cur_grid {
    font-size: 0.8em;
  }
  .portfolio {
    margin-left: 0;
  }
  .curriculum {
    margin: 12% 6%;
  }
  .gallery-grid {
    grid-gap: 1em;
  }
}

/* Portrait */
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
  .top-nav {
    width: 100%;
    margin-left: 0%;
  }
  /*    ----------- 375 - 1024 -----(ratio 1)----- */
}

/* Landscape */
@media only screen and (min-device-width: 320px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 1) {
  .cur_grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "et ex su";
    grid-gap: 2em;
  }
  .filet1 {
    display: none;
  }
  .filet2 {
    display: none;
  }
  blockquote {
    font-size: 1.75em;
    line-height: 1.75em;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 616px) and (-webkit-min-device-pixel-ratio: 1) {
  blockquote {
    font-size: 1.5em;
    line-height: 1.5em;
  }
  .quote img {
    width: 30%;
    margin-top: 3%;
  }
  .cur_grid {
    font-size: 0.68em;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 1) {
  h1 {
    font-size: 0.8em;
  }
  .txt-box p {
    font-size: 1em;
  }
  .quote {
    margin: 22% 0;
  }
  .cur_grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "et ." ". ex" "su .";
    font-size: 0.8em;
  }
  .curriculum {
    margin: 22% 6%;
  }
  .gallery-grid {
    display: flex;
    flex-direction: column;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 400px) and (-webkit-min-device-pixel-ratio: 1) {
  .cur_grid {
    grid-template-columns: 1fr;
    grid-template-areas: "et" "ex" "su";
  }
  .txt-box {
    width: 100%;
    margin-top: 0;
  }
  .top-nav {
    height: 35px;
  }
  .main {
    margin-top: 12%;
  }
  blockquote {
    font-size: 1.12em;
    line-height: 1.25em;
    width: minmax(12ch, 22ch);
  }
  .quote img {
    margin-top: 1.5%;
  }
  .indic {
    font-size: 0.66em;
    letter-spacing: 0.112em;
    line-height: 1.5em;
  }
}

/* ----------------------------------------------------------------------------- Ratio 2 ------------------------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
  h2 {
    margin-bottom: 2%;
    font-size: 0.8em;
  }
  .top-nav {
    width: 100%;
    margin-left: 0%;
  }
  .main {
    grid-template-columns: 1fr;
  }
  .txt-box {
    max-width: 75ch;
    margin-top: 6%;
  }
  .projet img {
    width: 100%;
    height: auto;
  }
  .ptxt p {
    font-size: 0.9em;
    margin-bottom: 3%;
  }
  .projet {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .indic {
    font-size: 0.8em;
    font-weight: 300;
    margin-bottom: 0;
  }
  .cur_grid {
    font-size: 0.8em;
  }
  .portfolio {
    margin-left: 0;
  }
  .curriculum {
    margin: 12% 6%;
  }
  .gallery-grid {
    grid-gap: 1em;
  }
}

/* Portrait */
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  .top-nav {
    width: 100%;
    margin-left: 0%;
  }
  /*    ----------- 375 - 1024 -----(ratio 2)----- */
}

/* Landscape */
@media only screen and (min-device-width: 320px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
  .cur_grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "et ex su";
    grid-gap: 2em;
  }
  .filet1 {
    display: none;
  }
  .filet2 {
    display: none;
  }
  blockquote {
    font-size: 1.75em;
    line-height: 1.75em;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 616px) and (-webkit-min-device-pixel-ratio: 2) {
  blockquote {
    font-size: 1.5em;
    line-height: 1.5em;
  }
  .quote img {
    width: 30%;
    margin-top: 3%;
  }
  .cur_grid {
    font-size: 0.68em;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
  h1 {
    font-size: 0.8em;
  }
  .txt-box p {
    font-size: 1em;
  }
  .quote {
    margin: 22% 0;
  }
  .cur_grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "et ." ". ex" "su .";
    font-size: 0.8em;
  }
  .curriculum {
    margin: 22% 6%;
  }
  .gallery-grid {
    display: flex;
    flex-direction: column;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 400px) and (-webkit-min-device-pixel-ratio: 2) {
  .cur_grid {
    grid-template-columns: 1fr;
    grid-template-areas: "et" "ex" "su";
  }
  .txt-box {
    width: 100%;
    margin-top: 0;
  }
  .top-nav {
    height: 35px;
  }
  .main {
    margin-top: 12%;
  }
  blockquote {
    font-size: 1.12em;
    line-height: 1.25em;
    width: minmax(12ch, 22ch);
  }
  .quote img {
    margin-top: 1.5%;
  }
  .indic {
    font-size: 0.66em;
    letter-spacing: 0.112em;
    line-height: 1.5em;
  }
}

/* ----------------------------------------------------------------------------- Ratio 3 ------------------------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 3) {
  h2 {
    margin-bottom: 2%;
    font-size: 0.8em;
  }
  .top-nav {
    width: 100%;
    margin-left: 0%;
  }
  .main {
    grid-template-columns: 1fr;
  }
  .txt-box {
    max-width: 75ch;
    margin-top: 6%;
  }
  .projet img {
    width: 100%;
    height: auto;
  }
  .ptxt p {
    font-size: 0.9em;
    margin-bottom: 3%;
  }
  .projet {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .indic {
    font-size: 0.8em;
    font-weight: 300;
    margin-bottom: 0;
  }
  .cur_grid {
    font-size: 0.8em;
  }
  .portfolio {
    margin-left: 0;
  }
  .curriculum {
    margin: 12% 6%;
  }
  .gallery-grid {
    grid-gap: 1em;
  }
}

/* Portrait */
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 3) {
  .top-nav {
    width: 100%;
    margin-left: 0%;
  }
  /*    ----------- 375 - 1024 -----(ratio 3)----- */
}

/* Landscape */
@media only screen and (min-device-width: 320px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) {
  .cur_grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "et ex su";
    grid-gap: 2em;
  }
  .filet1 {
    display: none;
  }
  .filet2 {
    display: none;
  }
  blockquote {
    font-size: 1.75em;
    line-height: 1.75em;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 616px) and (-webkit-min-device-pixel-ratio: 3) {
  blockquote {
    font-size: 1.5em;
    line-height: 1.5em;
  }
  .quote img {
    width: 30%;
    margin-top: 3%;
  }
  .cur_grid {
    font-size: 0.68em;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 3) {
  h1 {
    font-size: 0.8em;
  }
  h2 {
    margin-bottom: 6%;
  }
  .txt-box p {
    font-size: 1em;
  }
  .quote {
    margin: 22% 0;
  }
  .cur_grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "et ." ". ex" "su .";
    font-size: 0.8em;
  }
  .curriculum {
    margin: 22% 6%;
  }
  .gallery-grid {
    display: flex;
    flex-direction: column;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 400px) and (-webkit-min-device-pixel-ratio: 3) {
  .cur_grid {
    grid-template-columns: 1fr;
    grid-template-areas: "et" "ex" "su";
  }
  .txt-box {
    width: 100%;
    margin-top: 0;
  }
  .top-nav {
    height: 35px;
  }
  .main {
    margin-top: 12%;
  }
  blockquote {
    font-size: 1.12em;
    line-height: 1.25em;
    width: minmax(12ch, 22ch);
  }
  .quote img {
    margin-top: 1.5%;
  }
  .indic {
    font-size: 0.66em;
    letter-spacing: 0.112em;
    line-height: 1.5em;
  }
}
