@font-face {
    font-family: 'sagace';
    src: url('../font/Sagace-Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'sagace';
    src: url('../font/Sagace-Light.otf') format('opentype');
    font-weight: 200;
    font-style:normal;
}
@font-face {
    font-family: 'sagace';
    src: url('../font/Sagace-Medium.otf') format('opentype');
    font-weight: 500; 
    font-style: normal; 
}
@font-face {
    font-family: 'glaredisk';
    src: url('../font/glaredisk-Regular.otf') format('opentype');
    font-weight: normal; 
    font-style: normal; 
}
@font-face {
    font-family: 'tex';
    src: url('../font/texgyreheroscn-regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'tex';
    src: url('../font/texgyreheroscn-italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'tex';
    src: url('../font/texgyreheroscn-bold.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'tex';
    src: url('../font/texgyreheroscn-bolditalic.otf') format('opentype');
    font-weight: 500; 
    font-style: italic; 
}

::-webkit-scrollbar {
    display: none;
}

body{
    background-color: #FFFFFF;
}

a{
    text-decoration: none;
    color: inherit;
}

.button{
    cursor: pointer;
}

/* 
▗▄▄▄▖▗▖  ▗▖▗▄▄▖  ▗▄▖ 
  █   ▝▚▞▘ ▐▌ ▐▌▐▌ ▐▌
  █    ▐▌  ▐▛▀▘ ▐▌ ▐▌
  █    ▐▌  ▐▌   ▝▚▄▞▘                                                 
*/

h1{
    color: #672E03;
    font-family: 'sagace';
    font-size: 5vh;
}

h5 a:hover{
    color: #672E03;
    cursor: pointer;
}

h5{
    transition: color 1s ease;
    font-weight: 300;
    color: #EC914A;
    font-size: 4vw;
    font-family: 'sagace';
    line-height: 1em;
}

h2{
    font-weight: 500;
    font-size: 2vh;
    color: #672E03;
    font-family: 'sagace';
    margin-bottom: 2vh;
}

h3{
    color: #672E03;
    font-family: 'sagace';
    font-style: normal;
    font-weight: 200;
    font-size: 2vh;
    text-align: justify;
}

h3 p {
    font-size: 1vw;
    display: none;
    font-weight: 200;
}

h3.active .texte {
    display: block;
}

h4{
    font-weight: 300;
    font-size: 1vw;
    font-family: 'tex';
}

p a{
    font-weight: 300;
    text-decoration: underline;
}

p{
    mix-blend-mode: lighten;
    background-blend-mode: lighten;
    margin: 1vh 0px 1vh 0px ;
    font-size: 15px;
    font-family: 'tex';
    font-weight: 300;
    color: #ce7830;
    line-height: 1em;
    text-align: left;
}       

h5{
    
}
                                             
#linksleft{
    color: #EC914A;
    position: absolute;
    bottom: 1vw;
}

#linksright{
    color: #EC914A;
    position: absolute;
    bottom: 1vw;
}

/*
 ▗▄▄▖▗▄▄▄▖▗▄▄▖ ▗▖ ▗▖ ▗▄▄▖▗▄▄▄▖▗▖ ▗▖▗▄▄▖ ▗▄▄▄▖
▐▌     █  ▐▌ ▐▌▐▌ ▐▌▐▌     █  ▐▌ ▐▌▐▌ ▐▌▐▌   
 ▝▀▚▖  █  ▐▛▀▚▖▐▌ ▐▌▐▌     █  ▐▌ ▐▌▐▛▀▚▖▐▛▀▀▘
▗▄▄▞▘  █  ▐▌ ▐▌▝▚▄▞▘▝▚▄▄▖  █  ▝▚▄▞▘▐▌ ▐▌▐▙▄▄▖
*/    

#display {
    max-width: 100vw;
    max-height: 100vh;
    display: grid;
    padding-top: 1vh;
    padding-bottom: 1vh;
    padding-left: 1vw;
    padding-right: 1vw;
    grid-template-columns: 1fr 2fr;
    grid-gap: 2vw;
}

#leftcolumn {
    width: 32vw;
    display: flex;
    flex-direction: column;
    height: 96vh; 
}

#rightcolumn {
    width: 62vw;
    display: grid;
    height: 96vh;
    overflow-y: auto;
}

#display figure img{
    width: 20vw;
    height: 20vw;
    border: 1px black solid ;
}

/* 
 ▗▄▄▖ ▗▄▄▖▗▄▄▖  ▗▄▖ ▗▄▄▖▗▖  ▗▖▗▄▖ ▗▄▄▖ ▗▄▄▄ 
▐▌   ▐▌   ▐▌ ▐▌▐▌ ▐▌▐▌ ▐▌▝▚▞▘▐▌ ▐▌▐▌ ▐▌▐▌  █
 ▝▀▚▖▐▌   ▐▛▀▚▖▐▛▀▜▌▐▛▀▘  ▐▌ ▐▛▀▜▌▐▛▀▚▖▐▌  █
▗▄▄▞▘▝▚▄▄▖▐▌ ▐▌▐▌ ▐▌▐▌    ▐▌ ▐▌ ▐▌▐▌ ▐▌▐▙▄▄▀
*/

#scrapyard{
    width: 95vw;
    height: 85vh;
}

#scrapyard img {
    background-color: white;
    border: 2px white solid;
    position: absolute;
    width: 150px;
    max-width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none; 
    -webkit-user-drag: none;
    box-shadow: 0px 0px 15px 0px #616161;
}

#image-description {
    box-shadow: 0px 0px 15px 0px #616161;
    position: absolute;
    background-color: #FFFFFF;
    padding: 10px;
    font-family: 'tex', sans-serif;
    font-size: 14px;
    color: #672E03;
    max-width: 200px;
    z-index: 1000;
    pointer-events: none;
    display: none;
}

#scrapyard.paused img {
    pointer-events: auto;
}

#scrapyard img.front {
    z-index: 100;
}

.hidden {
    display: none;
}

@keyframes fadeUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
    filter: blur(2px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0)
  }
}

.animate-column {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}


.navbar{
    top: 1vh;
    left: 1vw;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    width: 98vw;
    height: 40px;
    position: fixed;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    margin: 0;
    padding: 0 1vw;
    cursor: pointer;
}

.dropdown-content {
    background-color: #FFFFFF;
    width: fit-content;
    display: none;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 20px;
    padding-top: 1vw ;
    padding-left: 20px;
    padding-right: 20px;
}

.texteprojet{
    padding: 1vw;
    position: fixed;
    z-index: 2;
    width: 20vw;
}

.gallery{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 100vw;
    padding-top: 6vh;
    padding-bottom: 2vh;
    padding-left: 1vw;
    padding-right: 1vw;
    grid-gap: 1vw;
}

.gallery article img{
    object-fit: cover;
    width: 100%;
}

.gallery article figure {
    display: flex;
    justify-content: center;
    position: relative;
    height: 30vh;
    overflow: hidden;
}

.gallery article figcaption {
    margin-top: 1vh;
}

.gallery h3{
    border: none;
    color: #672E03;
    font-family: 'sagace';
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    text-align: left;
}

.projet{
    margin: 5vh 1vw 2vh 1vw;
    width: 98vw;
    height: 93vh;
    display: grid;
    grid-template-columns: 4vw 88vw 4vw;
    grid-gap: 1vw;
}

.sidenav{
    text-align: center;
    margin: auto;
}

.sidenav h2{
    font-size: 4vh;
}

#viewer{
    display: flex;
    justify-content: space-around;
    height: 82vh;
    margin-bottom: 1vh ;
}

#viewer img{
    height: 100%;
}

#filmpreview{
    width: 88vw;
    display: flex;
    flex-direction: row;
    height: 10vh;
    overflow-x: scroll;
}

#filmpreview img{
    margin-left: 5px;
    height: 100%;
        transition: transform 0.2s ease;
   filter:  grayscale(30%);
}

#filmpreview img:hover {
    filter: grayscale(0%);
}

#cursor1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease;
}

/* rond blanc */
#cursor1::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* IMAGE CENTRÉE */
#cursor1 img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;      /* légèrement plus grand */
    height: 30px;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* effet hover */
#cursor1.hover {
    transform: translate(-50%, -50%) scale(1.4);
}

#cursor1.hover img {
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery article,
.gallery article a {
    cursor: none;
}

/* MADFEST */

/* BANNIÈRE */

.madfest-banner{
    position: fixed;
    left: 0;
    width: 100vw;
    height: 20px;
    background: #0057FF;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 999;
}

.madfest-banner-top{
    top: 0;
}

.madfest-banner-bottom{
    bottom: 0;
}

/* TRACK */

.madfest-banner-track{
    display: flex;
    width: max-content;
    animation: madfest-scroll 25s linear infinite;
}


/* TEXTE */
.madfest-text{
    font-family: 'tex';
    font-size: 16px;
    color: white;
    padding-right: 80px;
    white-space: nowrap;
}


/* ANIMATION */

@keyframes madfest-scroll{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-50%);
    }
}

/* MADFEST CONTENT */

#madfest-container{
    position: absolute;
    width: 100vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/* colonnes */

.madfest-column figure{
    width: 100%;
}

.madfest-column figure{
    width: 100%;
    object-fit: cover;
}


/* FIGURE PREND LA LARGEUR DE LA COLONNE */

.madfest-figure{
    width: 100%;
    position: relative;
}

/* IMAGES */

.madfest-figure img{
    width: 100%;
    height: auto;
    display: block;
}

/* IMAGE HOVER SUPERPOSÉE */

.madfest-img-hover{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity    0.5s ease;
}


/* HOVER */
.madfest-figure:hover .madfest-img-hover{
    opacity: 1;
}

.madfest-figure:hover .madfest-img-default{
    opacity: 0;
}

.madfest-container div{
    width: 100%;
}

#aerodynamisme{
width: 30vw;
z-index: 9999;
position: absolute;
top: 80vh;
left: 2vw;

}

#quadeca{
width: 30vw;
z-index: 9999;
position: absolute;
top: 80vh;
left: 35%;
}

#muddyoush{
    width: 30vw;
z-index: 9999;
position: absolute;
top: 80vh;
left: 68%;

}

.madfest-column div h2{
    font-size: 30px;
    color: #989898;
}

#typographie{
z-index: 9999;
position: absolute;
top: 3vh;
left: 1vw;
}

.madfest-column p{
    font-size: medium;
    color: #989898;
}

.madfest-column article{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/* CALLIGRAPHIE */

.calligraphie{
    display: grid;
    margin: 3vw 2vw;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 1vw;
}

.calligraphie article figure{
    width: 100%;
}

.calligraphie article figure img{
    width: 100%; 
}

/* images invisibles au départ */

.calligraphie img{
    opacity:0;
    transform:translateY(20px);
}

/* animation */

@keyframes imgAppear{
    to{
        opacity:1;
        transform:translateY(0);
    }
}