html {
  scroll-behavior: smooth;
  scrollbar-width: none;   /* Firefox */
  -ms-overflow-style: none; /* IE and old Edge */
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;

  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}
@media only screen and (max-width: 1200px) {
  body {
    font-size: 14px;
  }
}
@media only screen and (min-width: 1200px) {
  body {
    font-size: 18px;
  }
}

.main {
  flex: 1;

  padding: 10px;

  font-size: 18px;
}

/* COMPORTEMENT DE TEXTE */
.sans {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
}
.mono {
  font-family: "DM Mono", monospace;
  font-optical-sizing: auto;
}


.thin {
  font-weight: 200;
}
.light {
  font-weight: 300;
}
.regular {
  font-weight: 400;
}
.medium {
  font-weight: 500;
}
.semi {
  font-weight: 600;
}
.bold {
  font-weight: 700;
}
.extra {
  font-weight: 800;
}


.italic {
  font-style: italic;
}
.underlined {
  text-decoration: underline;
}
.overlined {
  text-decoration: overline;
}

p {
  margin: 0 0 0.5em 0;
  font-size: 18px;
}
h1 {
  font-size: 40px;
  margin: 0 0 0.5em 0;
}
h2 {
  font-size: 30px;
  margin: 0 0 0.5em 0;
}
h3 {
  font-size: 24px;
  margin: 0 0 0.5em 0;
}

@media only screen and (max-width: 1200px) {
  p {
  margin: 0 0 0.5em 0;
  font-size: 14px;
  }
  h1 {
    font-size: 30px;
    margin: 0 0 0.5em 0;
  }
  h2 {
    font-size: 24px;
    margin: 0 0 0.5em 0;
  }
  h3 {
    font-size: 18px;
    margin: 0 0 0.5em 0;
  }
}

/* COMPORTEMENT EXCEPTIONNEL POUR LA BARRE DE NAVIGATION*/
.p-nav {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-size: 24px;
  }

/* COMPORTEMENT DE PARAGRAPHES*/
.jus-right {
  text-align: right;
}
.jus-left {
  text-align: left;
}
.jus-center {
  text-align: center;
}
.jus-start {
  text-align: start;
}


/* ==============================================================*/
/* BARRE DE NAVIGATION*/
/* ==============================================================*/

/*LOGO DANS LA NAVBAR*/
.navlogo > a{
  color: #000000;
}
.plante-logo {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-size: 36px;
  transition: font-weight 0.3s ease-out;
}
.design-logo {
  font-family: "DM Mono", monospace;
  font-weight: 200;
  font-style: normal;
  font-size: 36px;
  transition: font-weight 0.3s ease-out;
}

/* Comportement de la navbar pour un écrant DESKTOP */
@media only screen and (min-width: 801px) {
  .resp-menu-wrapper {
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    position: sticky;
    z-index: 2000;
  }
  .menu-icon {
    display: none;
  }
  .navlogo:hover .plante-logo {
  font-weight: 200;
  }
  .navlogo:hover .design-logo {
    font-weight: 600;
  }
  .navbar {
    position: sticky;
    top: 0;
    z-index: 2000;

    margin: 0;
    padding: 20px;
    height: 75px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .navbar > a {
    color: #000000;
    text-decoration: none;
  }
  .navlink > a {
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-list {
    margin: 0;
    padding: 0;

    width: 30%;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: right;
    align-items: center;

    list-style-type: none;
  }

  .navlink {
    position: relative;
    display: inline-block;
    margin-left: 3ex;

  }
  .navlink::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;

    background-color: #000000;
  }
  .current-page.navlink::after {
    transform: scaleX(1);
  }

  .navlink:hover::after {
    transform: scaleX(1);
  }

}

/* Comportement de la navbar pour un écran de téléphone */
@media only screen and (max-width: 800px) {
  .plante-logo {
    font-size: 24px;
  }
  .design-logo {
    font-size: 24px;
  }
  .resp-menu-wrapper {
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    position: sticky;
    z-index: 2000;
    overflow-y: hidden;

    height: 4em;

    display: flex;
    flex-direction: row;


    background-color: #FFFFFF;

    transition: height 0.2s ease-in;
  }
  .resp-menu-wrapper.nav-opened {
    height: 11em;

    background-color: #FFFFFF;
  }
  .menu-icon {
    display: inline-block;
    position : relative;
    vertical-align: middle;
    top : 0;
    left: 5px;
    z-index: 2000;

    width: 3em;
    margin-right: 1em;
  }
  .menu-icon > img {
    margin-top: 0.3em;
  }
  .resp-menu-wrapper.nav-opened > .menu-icon {
    vertical-align: top;
  }
  .navbar {
    position: relative;
    vertical-align: top;
    top: 0;
    z-index: 2000;

    margin: 0;
    padding: 10px;
  
    display: inline-flex;
    width: 60%;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: top;
  }
  .navlist {
    display: none;
  }
  .navlist.nav-opened {
    position: inherit;
    vertical-align: top;
    top: 0;
    z-index: 2000;

    margin: 0;
    padding-top: 10px;
  
    display: inline-flex;
    width: 80%;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;

    animation: mobileMenuOpacity 0.5s;
    
  }
  @keyframes mobileMenuOpacity {
      from {opacity: 0%;}
      to {opacity: 100%;}
    }

  .navbar > a {
    color: #000000;
    text-decoration: none;
  }
  .navlink > a {
    color: #000000;
    text-decoration: none;
  }
}

/* ==============================================================*/
/* SYSTÈME DE TRAME D'ORGANISATION*/
/* ==============================================================*/

  .grid-container {
    
    margin: 0;
    padding: 20px;

    box-sizing: border-box;
    display: grid;
    align-items: start;

    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; /* crée une trame de 6 colonnes */

    gap: 20px;
  }

  /* définit les propriétés des cases de la grille*/
  .grid-container > div {

    align-self: stretch;
    position: relative;
    
    font-size: 18px;
    padding: 0;
    text-align: center;

    background-color: #FFFFFF;
    

    cursor: url('SRC/SVG/right_arrow.svg') 0 0, auto;
    
    transition: background-color 1s ease-out, border-radius 0.3s ease-out, transform 0.3s ease-out;

    text-align: start;
    overflow: hidden;
   }
   .grid-container > div > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
   }
   .container > div > div {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
   }
   .grid-container > div > .corps {
    position: absolute;
    bottom: 0;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
   }
  
  .grid-container .spacer {
    background-color: #FFFFFF;
  }
  .spacer {
    pointer-events: none;
   }
  
   .grid-container > div:hover {
    border-radius: 20px;
    transform: scale(1.03);

    background-color: lightcoral;

    z-index: 1000;
   }
   

/* Pour configurer les dimensions sur la trame (A, B) où A est le nombre de cases en X (rangées) et B en Y (colonnes)
    Par exemple .gspan-3-4 occupera 3 rangées et 4 colones*/

/* Pour configurer les dimensions sur la trame sur mobile (téléphone)*/
@media only screen and (max-width: 800px) {

  .grid-container > div {
    grid-column: span 6;
    grid-row: span 2;
    height: 67vw;
  }

  .grid-container .spacer {
    display: none;
  }

}

/* Pour configurer la trame sur un pc */
@media only screen and (min-width: 801px) {
  .gspan-1-2 {
      grid-column: span 1; grid-row: span 2;
      height: 33vw;
      }
  .gspan-2-1 {
      grid-column: span 2; grid-row: span 1;
  }
  .gspan-2-2 {
      grid-column: span 2; grid-row: span 2;
      height: 33vw;
  }
  .gspan-3-2 {
      grid-column: span 3; grid-row: span 2;
      height: 33vw;
  }
  .gspan-2-4 {
      grid-column: span 2; grid-row: span 4;
      height: 67vw;
  }

}

  /* ==============================================================*/
  /* SYSTÈME DE LISTE*/
  /* ==============================================================*/
@media only screen and (max-width: 800px) {
  .project-list thead {
    display: none;
  }
  .project-list tr {
    display: grid;
    grid-column: 1fr 1fr 1fr;
    width: 100%;
    padding-bottom: 15px;
    overflow-x: hidden;
  }
  .project-list th {
    text-align: left;
    
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
  }
  .project-list td {
    text-align: left;

    font-family: "DM Mono", monospace;
    font-weight: 200;
    font-style: normal;
  }
  .project-cadre,
  .project-year{
    font-size: 12px;
  }
}
@media only screen and (min-width: 801px) {
  .project-list {
    margin: 0;
    padding: 0;

    width: 100%;

  }
  .project-list th {
    text-align: left;
    
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
  }
  .project-list th a {
    display: inline-block;

    text-align: left;
    
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
  }
  .project-list th a::after {
    content: "";
    background-color: #000000;

    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    display: block;

    transform: scaleX(0);
    transition: transform 0.3s ease-out;
    transform-origin: left;
  }
  .project-list th a:hover::after {
    transform: scaleX(100%);
  }
  .project-list td {
    text-align: left;

    font-family: "DM Mono", monospace;
    font-weight: 200;
    font-style: normal;
    
  }
}
  /* ==============================================================*/
  /* FOOTER de BAS DE PAGE*/
  /* ==============================================================*/

/* Pour desktop PC*/
@media only screen and (min-width: 801px) {
  .footbar {
    margin: 0;
    padding: 10px;
    height: 50px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .foot-elmt {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .foot-elmt > div{
    padding-left: 50px;
  }
  .foot-elmt > div > p {
    display: inline-block;
  }
  .foot-logo.plante-logo{
    font-size: 24px;
    color: #000000;
  }
  .foot-logo.design-logo{
    font-size: 24px;
    color: #000000;
  }

} 

/* Pour mobile*/
@media only screen and (max-width: 800px) {
  .footbar {
    margin: 0;
    padding: 10px;
    height: 7em;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: start;
  }
  .foot-elmt {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .foot-elmt > div{
    width: 300px;
    padding-bottom: 25px;
  }
  .foot-elmt > div > p {
    margin: 0;
  }
  .foot-logo-wrapper {
    padding-top: 15px;
  }
  .foot-logo.plante-logo{
    font-size: 24px;
    color: #000000;
  }
  .foot-logo.design-logo{
    font-size: 24px;
    color: #000000;
  }

} 