@font-face {
    font-family: 'lyon_display_regular';
    src: url('../fonts/lyondisplay-regular-webfont.woff2') format('woff2'),
         url('../fonts/lyondisplay-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {    
    font-family: 'lyon_display_bold';
    src: url('../fonts/lyondisplay-bold-webfont.woff2') format('woff2'),
         url('../fonts/lyondisplay-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;   
}

@font-face {    
    font-family: 'lyon_display_regularitalic';
    src: url('../fonts/lyondisplay-regularitalic-webfont.woff2') format('woff2'),
         url('../fonts/lyondisplay-regularitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
  --font-regular: 'lyon_display_regular', sans-serif;
  --font-bold: 'lyon_display_bold', sans-serif;
  --font-italic: 'lyon_display_regularitalic', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-regular);
}

body {
  background-color: var(--background-color01);
}

.scrollbox-main {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color01) var(--scrollbar-color02);
}

.scrollbox-main::-webkit-scrollbar {
  background: var(--scrollbar-color02);
  width: 2em;
}

.scrollbox-main::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color01);
  width: 2em;
}

.scrollbox-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color03) var(--scrollbar-color04);
}

.scrollbox-menu::-webkit-scrollbar {
  background: var(--scrollbar-color03);
  width: 2em;
}

.scrollbox-menu::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color04);
  width: 2em;
}

main {
    display: flex;
    height: 100vh;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 25em;
    background-color: var(--color-white);
    border: 0;
    height: 100vh;
    padding-bottom: 20em;
    overflow-y: scroll;
    padding-left: 1em;
    padding-top: 1em;
}

a {
  color: var(--color-black);
  text-decoration: none;
}

ul {
    list-style: none;
}

h1 {
    text-transform: uppercase;
    font-size: 2em;
    font-family: var(--font-bold);
    font-weight: normal;
}

.device h1 {
    color: var(--text-section);
}

h2 {
    text-transform: uppercase;
    margin: 0;
}

h3 {
    text-transform: uppercase;
    font-weight: 100; 
    font-size: 2em;
    margin: 0;
}

h3 a:hover {
  font-family: var(--font-italic);
}

h3 a.active {
  font-family: var(--font-italic);
  color: var(--scrollbar-color04);
}

hr {
    visibility: hidden;
    margin-top: 2em;
}

header {
    padding-left: 1em;
    padding-top: 1em;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.insta {
    padding-left: 1em;
    color: var(--text-section);
}

.hamburger {
  display: inline-block;
  cursor: pointer;
  margin-left: auto;
  margin-right: 1em;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: var(--scrollbar-color01);
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

.fullscreen-menu {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 1000;
  overflow: auto;
  padding: 1em;
}

.close-btn {
  position: absolute;
  top: .5em;
  right: .5em;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: #333;
  background: transparent;
  border: none;
}

.close-btn::before,
.close-btn::after {
  content: "";
  display: block;
  width: 35px;
  height: 5px;
  background-color: var(--scrollbar-color01);
  position: absolute;
  z-index: 9999;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

section {
    margin-left: calc(25em - 3em); /* - padding de gallery */
    padding-top: 0;
    width: 100%;
    height: 150%; 
    display: flex;
    flex-flow: column wrap;
    align-items: top;
    color: var(--text-section);
}

.arrow-up {
  position: fixed;
  bottom: 1em;
  right: 1em;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 30px solid var(--scrollbar-color01); /* Couleur de départ */
  cursor: pointer;
  opacity: 0; /* Initialement invisible */
  transition: opacity 0.3s ease; /* Transition douce */
}


article {
    padding: 1em;
}

.full {
    margin-right: auto;
    margin-left: 5em;
}

.left {
    width: 40%;
    margin-right: auto;
    margin-left: 5em;
}

.right {
    width: 50%;
    margin-left: auto;
    margin-top: 5em;
}

.half {
  display: flex;
  flex-flow: row wrap;
  width: 100%;  
}

.half p{
  width: 40%; 
  margin-right: 4em;
  margin-top: 1em;  
}

article h1 {
    text-transform: uppercase;
    font-size: 1.5em;
    margin-bottom: 1em;
    padding-top: .2em;
}

article h2 {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: .5em;
}

article .italic {
    font-family: var(--font-italic);
    color: var(--color-grey-light);
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 33%;
    min-width: 20em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;  
}

.gallery {
    width: 100%;
    padding-left: 3em; /* à soustraire */
    padding-right: 0;
    margin-bottom: 1em;
}

.column img {
    padding-bottom: 1em;
    padding-top: 0;
    vertical-align: middle;
    width: 100%;
}

.column img:hover {

}

.row-project {
    display: flex;
    flex-flow: row wrap;
    width: 100%;  
}

.row-project figure {
    margin-top: 2em;
    min-width: 20em;
}

.size20{
    width: 20%;
}

.size30{
    width: 30%;
}

.size50{
    width: 50%;
}

.size60{
    width: 60%;
}

.space-right {
    padding-right: 1em;
}

.space-left {
    padding-left: 1em;
}


.row-project figure img{
    width: 100%;
}

figcaption {
    position: fixed;
    text-transform: uppercase;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--emphasis-color01);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 10px;
    
    display: none /* pour l'instant */
}

figure:hover figcaption {
    opacity: 1;
}

@media (min-width: 1024px) {
    .device {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    
    .desktop {
        display: none;
    }
    
    main {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }
    
    .fullscreen-menu {
      display: none;
    }
    
    section {
        margin-left: 0;
    }
    
    .column figure {
        padding-top: 1em;
        padding-left: 1em;
        padding-right: 1em;
    }
    
    .left {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    
    .right {
        width: 100%;
        margin-left: none;
        margin-top: 0;
    }
    
    .full {
        margin-left: 0;
    }
    
    .half p{
      width: 95%; 
      margin-right: 0;  
    }
    
    .size20{
        width: 100%;
    }
    
    .size30{
        width: 100%;
    }
    
    .size50{
        width: 100%;
    }
    
    .size60{
        width: 100%;
    }
    
    .space-right {
        padding-right: 0;
    }
    
    .space-left {
        padding-left: 0;
    }
}




