@font-face {
    font-family: "Acumin";
    src: url("../src/fonts/Acumin-RPro.otf") format("opentype");
    font-style: normal;
    font-weight: normal;
}

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

body{
    font-family: "Acumin", sans-serif;
    font-size:6vw;
    color:#fffdee;
    /**/
    width: 100vw;
    height: 100vh;
}

main{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/*apparence des colonnes*/
.column{
    position: absolute;
    width: 50%;
    min-height: 100vh;
}
.column#left-col{
    left: 0;
    bottom: 0;
}
.column#right-col{
    right: 0;
    top:0;
}

/* PAGE D'INTRODUCTION*/
.intro-block{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /**/
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    position: relative;
}

/* Organisation des dégradés d'intro */
.intro-block .bande{
    justify-self: stretch;
    align-self: stretch;
}
/* Apparence des bandes de dégradés d'intro */
.intro-block .bande:nth-child(1){
    grid-column: 1/2;
    grid-row: 1/2;
    background: linear-gradient(0deg, var(--clr-1),var(--clr-2),var(--clr-3));
}
.intro-block .bande:nth-child(2){
    grid-column: 2/3;
    grid-row: 1/2;
    background: linear-gradient(0deg, var(--clr-3),var(--clr-2),var(--clr-1 ));
}

/* Disposition du texte d'intro */
.intro-block .text{
    /* grid-column: 1/3;
    grid-row: 1/2; */
    /* justify-self: center; */
    position: absolute;
    /* font-size: 30px; */
    /* align-self: center; */
    hyphens: auto;
    width: 170%;
    top: 50%;
    line-height: 6vw;
    transform: translateY(-50%);
}

/* Texte d'intro divisé en deux */
.intro-block .text#textleft{
    left: 15%;
}
.intro-block .text#textright{
    right:15%;
}
/* ALBUMS */
.album-block{
    width: 100%;
    height: 100vh;
    /**/
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
/* Organisation des dégradés */
.album-block .bande{
    justify-self: stretch;
    align-self: stretch;
}

/* Apparence des bandes de dégradés */
.album-block .bande:nth-child(1){
    grid-column: 1/2;
    grid-row: 1/2;
    background: linear-gradient(0deg, var(--clr-1),var(--clr-2),var(--clr-3));
}
.album-block .bande:nth-child(2){
    grid-column: 2/3;
    grid-row: 1/2;
    background: linear-gradient(0deg, var(--clr-3),var(--clr-2),var(--clr-1 ));
}

/* contenant des infos de l'album */
.album-content{
    grid-column: 1/3;
    grid-row: 1/2;
    /**/
    justify-self: center;
    align-self: center;
    width: min(85%, 85vh);
    aspect-ratio: 1/1;
}
/* apparence des infos dans la pochette d'album */
.album-content figure{
    width: 100%;
    height: 100%;
    /**/
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 0.6vw;
    gap: 10px;
    overflow:hidden;
}

/* pochette d'album */
.album-content figure img{
    grid-column: 1/2;
    grid-row: 1/4;
    /**/
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Disposition des contenus textes*/
.album-content figure figcaption{
    grid-column: 1/2;
    grid-row: 2/3;
    overflow: hidden;
    white-space: nowrap;
    /**/
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 7vw 7vw 7vw;
    color:#fffdee;
    mix-blend-mode: difference;
}

@keyframes anim-txt {
    from { transform: translateX(0); }
    to { transform: translateX(100%) translateX(35vw); }
}
@keyframes anim-txt-reverse {
    from { transform: translateX(0); }
    to { transform: translateX(-100%) translateX(-35vw); }
}
/* Nom de l'artiste */
.album-content figure figcaption .artist-name{
    /*transform: translateX(-100%);*/
    /* grid-column: 1/2;
    grid-row: 1/2;
    align-self:start;
    justify-self: start; */
    position: absolute;
    bottom: 9vw;
    right: 100%;
    animation: anim-txt 15s linear infinite;
}
/* Nom de la chanson */
.album-content figure figcaption .song-name{
    /* animation properties */
    /*-moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);*/
    /* grid-column: 1/2;
    grid-row: 2/3;
    align-self: start;
    justify-self: end;
    animation: anim-txt-reverse 15s linear infinite; */
    position: absolute;
    bottom: 3.5vw;
    left: 100%;
    animation: anim-txt-reverse 15s linear infinite; 
}
/* Année de sortie de la chanson */
.album-content figure figcaption .release-year{
    /* animation properties */
    /*-moz-transform: translateX(-100%);
    -webkit-transform: translateX(-100%);.album-content figure figcaption
    transform: translateX(-100%);*/
    /* grid-column: 1/2;
    grid-row: 3/4;
    align-self:start;
    justify-self: start; */
    position: absolute;
    bottom: -2vw;
    right: 100%;
    animation: anim-txt 15s linear infinite;
}

/* Couleur de la barre d'audio*/
.album-content figure .audio-bar{
    grid-column: 1/2;
    grid-row: 3/4;
    width: 0%;
    background-color: #fffdee;
    mix-blend-mode: difference;
}

/* Lecteur audio caché */
.album-content audio{
    display: none;
}

/* Effet tilt au survol (Tilt.js) */
.album-content{
    position: relative;
    border-radius: 1vw;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 1.2vw 3vw rgba(0, 0, 0, 0.5);
}
.album-content .js-tilt-glare{
    pointer-events: none; /* le reflet ne doit pas bloquer les clics */
    border-radius: inherit;
}