/* variables */

:root {
    --xxs: 0.7rem;
    --xs: 13.1604px;
    --s: 1rem;
    --xl: 1.1rem;

    --white: rgba(255, 255, 255);
    --blk: rgba(0, 0, 0, 0.8);
    --grey: rgb(217, 217, 217);
    --darkgrey: rgba(0, 0, 0, 0.15);
    --white-transparent: rgba(255, 255, 255, 0.93);
}

/* valeurs génériques */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html {
    padding: 0;
    text-decoration-skip-ink: auto;
    margin: auto;
    min-height: 100%;
    overflow-x: hidden;
    list-style: none;
}

body{
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: sans-serif;
}

main {
    margin:1rem;
    margin-bottom:4rem;
}

.main-top{
    padding-top: 5.5rem;
    margin-bottom: 4rem;
}

.main-full-screen{
    background-color: var(--white);
    z-index: 1000;
    margin: 0;
    min-height: 100vh;
    overflow: clip;
}

.main-carrousel{
    margin-top: 4rem;
}

/* navigation principale */

.nav--desktop{
    border-bottom: 1px solid var(--darkgrey);
    margin: 0 !important;
    position: fixed;
    top:0;
    width:100vw;
}

.nav__content--desktop{
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    margin-bottom:0.6rem;
    align-items: flex-start;
}

.nav--desktop, ul.main-menu--desktop {
    z-index: 1000;
}

ul.main-menu--desktop{
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

/* footer */

.footer{
    position: fixed;
    bottom: 0;
    padding-bottom: 1rem;
    display: flex;
    margin: 1rem;
    margin-bottom: 0;
}

.footer--copyright{
    width: 25%;
    text-align: justify;
}

.footer--bio{
    width: 57%;
    text-align: left;
}

/* error page*/

.error{
    align-self: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* interactions */

.main-menu__item--active,
.back-button:hover,
a:hover {
   opacity: 0.6;
}

.active{
    opacity: 0.3;
}

.home-cover a:hover{
    opacity: 0.9;
}

.nav__logo a:hover,
.no-hover a:hover{
    opacity: 1;
}

.back-button:hover{
    cursor: pointer;
}

/* irregular grid */

.artist-projects-grid, .stand-alone-grid{
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 2em;
}
.artist-projects-grid{
    margin-top: 2rem;
}

.artists-menu--desktop {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 2rem;
}

.socials{
    display: flex;
    flex-direction: column;
    gap:0.2rem !important;
}

.cover img, video{
    height: 20rem;
}

.tags{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-bottom: 1rem;
    align-items: center;
    gap: 1rem;
    text-transform: capitalize;
}

.artist-nav{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.artist-header{
    margin-bottom: 1rem;
}

.popup-section--content{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.popup-section--content#text{
margin-top: 1rem;
}
.popup-section--content-team{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-section {
    z-index: 1000;
    position: fixed;
    top: 0%;
    right: 0;
    background-color: var(--white-transparent);
    text-align: left;
    padding: 2rem;
    align-items: flex-start;
    min-height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.popup-section.is-hidden {
    display: none;
}

.back-button{
    z-index: 100;
    position: fixed;
    right: 1.5rem;
    top: 0.9rem;
}

/* layout slideshow */

.home-projects{
    position: fixed;
    left: 0;
    display: flex;
    align-items: flex-end;
    width: max-content;
    animation: slide-in 60s linear infinite;
    will-change: transform;
    bottom: 5rem;
}

@keyframes slide-in{
    from{
        transform: translateX(0);
    }

    to{
        transform: translateX(-50%);
    }
}

.home-cover img{
    width: 30vw;
    height: auto;
    display: block;
}

/* layout gallery */

.artist-overview{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 6rem;
    margin-top: 1rem;
}

.artist-overview--media img{
    width: 10rem;
}

.cover-grid {
    break-inside: avoid;
    margin-bottom: 20px;
    gap: 0.3rem;
    display: flex;
    flex-direction: column;
}
  
/* layout irregular grid */
.ratio-horizontal { grid-column-end: span 2;}

/* justification (horizontal position) */
.justify-start { justify-self: self-start; justify-content: start;}
.justify-center { justify-self: center; justify-content: start; grid-column-start: 2}
.justify-end { justify-self: self-end; justify-content: end;  grid-column-start: 3;
}

/* horizontal = 2 colonnes */
.ratio-horizontal {
  grid-column: span 2;
}

figure.ratio-horizontal img {
    min-width: 30rem;
}
  
/* wrapper horizontal prend 2 colonnes */
.stand-alone-grid.ratio-horizontal {
  grid-column: span 2;
}

.ratio-horizontal.justify-end {
  grid-column-start: 2;
  grid-column-end: span 2;
}

/* every .grid contains figures that are flex */
figure {
  margin: 0;
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  align-items: flex-start;
  gap: 0.1rem;
  flex-direction: column;
  grid-column-end: span 1;
  align-self: self-start;
  max-height: 80vh;  }

.is-hidden{
    opacity: 0;
    transition: opacity .3s ease;
}

.cover-grid a {
    width: 100%;
}

.cover-grid img {
    width: 100%;
    display: block;
}

/* layout carousel */

.carousel-cell {
    width: 100%;
    height: calc(100vh - 9rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-cell img {
    max-width: 100%;
    object-fit: contain;
}

.main-carrousel-infos{
    position: absolute;
    bottom: 50%;
    right: 14rem;
}

/* mobile */
@media (max-width:780px) {

ul.main-menu--desktop{
    display: flex;
    flex-direction: row;
}

.nav__logo img{
    height: 3rem;
}

.cover img, video{
    max-width: 90vw;
}

.main-top{
    padding-top: 5rem;
    margin-bottom: 4rem;
}

main{
    padding-top : 4rem;
}

.home-projects{
    position: fixed;
    left: 0;
    display: flex;
    align-items: flex-end;
    width: max-content;
    animation: slide-in 60s linear infinite;
    will-change: transform;
    bottom: 8rem;
}

.main-carrousel-infos{
    position: absolute;
    top: 4rem;
    left: 1.5rem;
    text-align: left;
}


}

/* intermédiaire breakpoint*/
@media (max-width:865px) {

 
    .footer--copyright{
        display: none;
    }

}


/* intermédiaire breakpoint*/
@media (max-width:1190px) {
 
    .footer--bio{
        text-align: left;
        width: 90vw;
    }
    
}

/* intermédiaire breakpoint*/
@media (max-width:892px) {
 
    .popup-section {
        width: 100%;
    }
    
}

/* intermédiaire breakpoint*/
@media (min-width:892px) {
 
    .popup-section {
        width: 40%;
    }
    
}

/* desktop */
@media (min-width:780px) {
  
ul.main-menu--mobile{
    display: none;
}
.nav__logo img{
    height: 3.2rem;
}

}