@import url('https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
/*
font-family: "Anton", sans-serif;
font-family: "DM Sans", sans-serif;
font-family: "Outfit", sans-serif;
->
// <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name

.outfit-<uniquifier> {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


nb: c'est la derniere css ecrite dans index.html au debut dans les <link> qui a le dernier mot si conflit
 */

*{
    margin: 0;
    padding: 0;
}


body.home{
        background-color: #d5d5ed;
    }

body.galerie{
    background-color: #ffffff;
}

body.artist{
    background-color: #000000;
}

body.artist header nav ul li a{
    color: white;
}

body.books header nav ul li a{
    color: white;
}



.slide{
    width: 100%;
    min-height: 100vh;
    }

.container{
    width: 90%;
    margin: 0 auto;
    }

#home{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
    }


header{
    grid-column: 1 / span 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

header nav{
    width: 50%;
    display: flex;
    align-items: center;
    }

header nav ul{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    list-style:none;
    }

header nav ul li a{
    color: black;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    }

#burger{
    width: 50px;
    height: 40px;
    position: relative;
    z-index: 100;
    display: none;
    top: 15px;
    right: 15px;
    }

#burger .bar{
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.5s;
    }

#burger .bar:nth-child(1)
    {   top: 0;
        width: 100%;
    }

    #burger .bar:nth-child(2)
    {   top: 50%;
        width: 70%;
        transform: translateY(-50%);
    }

    #burger .bar:nth-child(3)
    {   top: 100%;
        transform: translateY(-100%);
        width: 45%;
    }

    #burger.open .bar:nth-child(1){
        /* le .open sert à l'animation des barres du menu, et l'espace veut dire -enfant de- */
        top: 50%;
        width:100%;
        background-color: #dcddee;
        transform: translateY(-50%) rotate(45deg);
    }

    #burger.open .bar:nth-child(2){
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }

    #burger.open .bar:nth-child(3){
        transform: translateY(-50%) rotate(-45deg);
        background-color: #dcddee;
        top:50%;
        width: 100%;
    }

#menu-mobile{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4c4a61;
    position: fixed;
    top: 0;
    left: 100%;
        /*le menu est cahé à gauche avec le left 100%
        et la transition se place ici dessous pour le faire slide  a la vitesse voulue */
    z-index: 99;
    width: 100%;
    height: 100vh;
    transition: all 0.8s;
    }

#menu-mobile.open{
    left: 0 ;
    }

#menu-mobile nav ul{
    list-style: none;
    }

#menu-mobile nav ul li{
    margin-bottom: 25px;
    }

#menu-mobile nav ul li a{
    text-decoration: none;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 25px;
    }

#logo{
    width: 70px;
    margin-left: 50px;
    margin-top: 10px;
    height: auto;
    display: block;
    }
/*barres artist ne pas oublier*****************/
body.artist #burger .bar{
    background-color:white;
}
/*****************************************FOOTER**********************************************************/
#contact.galerie{
    background-color: #000000;
}

#contact.artiste{
    background-color: #d3d3eb;
}


#contact{
    min-height:70vh;
    width:min(1200px, 90%);
    margin:100px auto 30px;
    padding:100px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    background-color:#4c4a61;
    color:white;
}
.contact-svg{
    width:100%;
    max-width:400px;
    height:auto;
}
.contact-text h2{
    color: #ffffff;
    font-size:2.2rem;
    margin-bottom:30px;
    font-weight:500;
    letter-spacing:-1px;
    font-family: 'outfit', sans-serif;
}


.contact-text p{
    font-size: 1rem;
    font-family: 'outfit', sans-serif;
    line-height:1.8;
    max-width:70%;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form label{
    font-weight:bold;
    font-size:1rem;
    font-family: 'outfit', sans-serif;
}

.contact-form input, .contact-form select, .contact-form textarea{
    background:none;
    font-family: 'outfit', sans-serif;
    border:none;
    border-bottom:2px solid white;
    color: #ffffff;
    padding:5px 0;
    font-size:1rem;
}

.contact-form select option{
    color: #000000;
}

textarea{
    resize:none;
    height:100px;
}

.consent{
    display:flex;
    font-family: outfit, sans-serif;
    align-items:center;
    gap:10px;
}

button{
    width:300px;
    padding:20px;
    border:none;
    background: #ffffff;
    color: #4b4960;
    font-weight:bold;
    border-radius:6px;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    transform:translateY(-3px);
}

/********************** top index *****************************/

.top-container{
    grid-column: 1 / span 12;
    position: relative;
    width: 99%;
    max-width: 100%;
    height: 95vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imggauche{
    position: absolute;
    top: 35px;
    left: 50px ;
    width: 700px;
    height: auto;
    border-radius: 30px;
    display: block;
    animation: arriveeGauche 1.2s ease-out forwards;
}

h1{
    margin: 0;
    width: auto;
}
h1 img{
    width: 200px;
    height: auto;
    display: block;
    animation: arriveeCentre 1.2s ease-out forwards;
}

.imgdroite{
    position: absolute;
    bottom: 30px;
    right: 50px ;
    width: 600px;
    height: auto;
    display: block;
    border-radius: 30px;
    animation: arriveeDroite 1.2s ease-out forwards;
}

.imggauche,
.imgdroite{
    transition: transform .3s ease;
}

.imggauche:hover,
.imgdroite:hover{
    transform: scale(1.05);
}



.social-links{
    position: absolute;
    height: 70px;
    bottom: 30px;
    left: 5%;
    display: flex;
    margin-top: 10px;
    animation: arriveeGauche 1.2s ease-out forwards;
    justify-content:center;
    gap:150px;
}
.social-links img{
    width: 50px;
    height: 50px;
    transition: transform .2s ease;
}

.social-links img:hover{
    transform: translateY(-3px);
}
/************************************************** HOME GALERIE *************************************************/
#galerie h2{
    font-family: "outfit", sans-serif;
    font-size: 15px;
    justify-items: center;
    text-align: center;
    align-items: center;
    overflow: hidden;
}

h2{
    justify-items: center;
    align-items: center;
}

#galerie .container{
    padding-top: 400px;
    overflow: hidden;
}

#container-gal{
    display: grid;
    height: 250vh;
    grid-template-columns: repeat(17, 1fr);
    grid-template-rows: repeat(14, 1fr);
    gap: 20px;
    overflow: hidden;
}

.img1{
    grid-column: 2 / span 5;
    grid-row: 4 / span 2;
}


.img2{
    grid-column: 1 / span 5;
    grid-row: 6 / span 3 ;
}

.img3{
    grid-column: 6 / span 5;
    grid-row: 6 / span 2 ;
}

.img4{
    grid-column: 6 / span 4;
    grid-row: 11 / span 3 ;
}

.img5{
    grid-column: 14 / span 4;
    grid-row: 9 / span 3 ;
}

.img6{
    grid-column: 11 / span 3;
    grid-row: 4 / span 4 ;
}

.img7{
    grid-column: 2 / span 4;
    grid-row: 9 / span 3 ;
}

.img8{
    grid-column: 6 / span 8;
    grid-row: 8 / span 3 ;
}

.img9{
    grid-column: 7 / span 4;
    grid-row: 3 / span 3 ;
}

.img10{
    grid-column: 14 / span 4;
    grid-row: 3 / span 3 ;
}

.img11{
    grid-column: 14 / span 4;
    grid-row: 6 / span 3 ;
}
.img12{
    grid-column: 10 / span 4;
    grid-row: 11 / span 2 ;
}
.images a{
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s ease;
}

.images a.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    overflow: hidden;
}

.images a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center ;
}
/**************************************************PRESENTATION ARTISTE***********************************/
#artist{
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 400px;
}
.artist{
    width: 100%;
    min-height: 100vh;
    display:block;
}

.artist-pres{
    display:flex;
    justify-content:center;
    gap:250px;
    margin-top:500px;
    align-items:center;
    color:white;
    width:99%;
    transition:all 1s ease;
}

.artist-pres img{
    width:500px;
    height:auto;
    opacity:0;
    transform:translateX(-100px);
    transition:all 1s ease;
}
.artist-pres.visible{
    opacity:1;
    transform:translateY(0);
}



.artist-pres img.visible,
.artist-text.visible{
    opacity:1;
    transform:translateX(0);
}

.video-title,
.artist-video{
    opacity:0;
    transform:translateY(50px);
    transition:all 1s ease;
}
.video-title.visible,
.artist-video.visible{
    opacity:1;
    transform:translateY(0);
}
.artist-pres img{
    width:500px;
    height:auto;
}
.artist-text{
    width:400px;
    font-family:'Outfit', sans-serif;
    text-align:center;
    color:white;
    opacity:0;
    transform:translateX(-100px);
    transition:all 1s ease;
}

h4{
    font-family: 'outfit', sans-serif;
    font-size: 20px;
    color: white;
    letter-spacing: 4px;
    text-align: center;
    animation: arriveeDroite 1.2s ease-out forwards
}

.artist-video{
    margin-top: 50px;
    margin-bottom: 300px;
    display: flex;
    width: 100%;
    justify-content: center;
    animation: arriveeCentre 1.2s ease-out forwards;
}
.artist-video iframe{
    width: 65vw !important;
    aspect-ratio: 16 / 9;
    border: none;
}

.video-title{
    color:white;
    text-align:center;
    margin-top:500px;
    font-family: 'outfit', sans-serif;
    animation: arriveeCentre 1.2s ease-out forwards;
}

.artist-video iframe{
    width:80vw;
    max-width:1000px;
    aspect-ratio:16/9;
    border:none;
    border-radius:20px;
    overflow:hidden;
}
/*********************************GALLERY PAGE **************************/
#logal{
    position:absolute;
    top:56%;
    left:50%;
    transform:translate(-50%, -50%);
    width:200px;
    height:auto;
    animation: arriveeCentre 1.2s ease-out forwards;
}

.gallery-subtitle{
    text-align:center;
    font-size:12px;
    letter-spacing:4px;
    text-transform:uppercase;
    color: #a1a1a1;
    font-family: 'Outfit', sans-serif;
    margin-top:10px;
    animation: arriveeCentre 3s ease-in-out forwards;
}
.collection{
    width:90%;
    margin:auto;
}

.hero-image{
    width:100%;
    height:800px;
    object-fit:cover ;
    display:block;
    object-position: center 10%;
    transition:all 1s ease;
    opacity: 0;

}
.hero-imagedusk{
    width:100%;
    height:800px;
    object-fit:cover ;
    display:block;
    object-position: center 20%;
    transition:all 1s ease;
    opacity: 0;
}
.hero-image.visible, .hero-imagedusk.visible{
    opacity: 1;
    animation: arriveeCentre 1.2s ease-out forwards;

}

.infos{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    margin:30px 0;
    text-align:center;
    font-family:'Outfit', sans-serif;
    font-size:20px;
    letter-spacing:2px;
    font-weight:500;
    letter-spacing:2px;
}
.infos span{
    opacity:0;
}

.infos.visible span:nth-child(1){
    animation:arriveeCentre 1.2s ease-out forwards;
    animation-delay:1s;
}

.infos.visible span:nth-child(2){
    animation:arriveeCentre 1.2s ease-out forwards;
    animation-delay:1.4s;
}

.infos.visible span:nth-child(3){
    animation:arriveeCentre 1.2s ease-out forwards;
    animation-delay:2s;
}
.bloc{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    margin:120px 0;
    align-items:stretch;
}
.bloc-2{
    grid-template-columns:1fr 2fr;
}
.bloc img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:0;
    transition:all 1s ease;

}
.bloc-1 .txtgal,
.bloc-1 img{
    opacity:0;
}
.bloc-1 .txtgal{
    text-align:left;
}
.bloc-2 .txtgal{
    text-align:right;
}
.bloc-1 .txtgal.visible{
    animation: arriveeGauche 1.2s ease-out forwards;
    animation-delay:0.8s;
}

.bloc-1 img.visible{
    animation:arriveeDroite 1.2s ease-out forwards;
}

.bloc-2 img,
.bloc-2 .txtgal{
    opacity:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    text-align:right;
    align-items:flex-end;
}

.bloc-2 img.visible{
    animation: arriveeGauche 1.2s ease-out forwards;
}

.bloc-2 .txtgal.visible{
    animation:arriveeDroite 1.2s ease-out forwards;
    animation-delay:0.8s;
}
.txtgal{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:500px;
    padding:20px 0;
}
.txtgal h6{
    margin:0;
    font-family:'Outfit', sans-serif;
    font-size:20px;
    letter-spacing:2px;
    font-weight:500;
    letter-spacing:2px;
}
.description{
    margin:0;
    font-family:'Outfit', sans-serif;
    font-size:16px;
    line-height:1.8;
    max-width:800px;

}
.collection{
    width:90%;
    margin:auto;
    padding-bottom:150px;
}
/********************************KEYFRAMES ******************************************/

@keyframes arriveeGauche{
    from{
        transform: translateX(-50px);
        opacity:0;
    }

    to{
        transform: translateX(0);
        opacity:1;
    }
}

@keyframes arriveeDroite{
    from{
        transform: translateX(50px);
        opacity:0;
    }

    to{
        transform: translateX(0);
        opacity:1;
    }
}

@keyframes arriveeCentre{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

    /*********************************************************** Media burger *********************************************/

    @media all and (max-width: 1080px)
    {
        #hero{
            grid-column: 3 / span 6;}
    }

    @media all and (max-width: 815px)
    {
        header nav ul{
            display: none;}

        header nav{
            justify-content: end;}

        #burger{
            display: block;
            margin-right: 15px;
        }
    }

    @media all and (max-width: 690px)
    {
        #hero{
            grid-column: 2 / span 10;
        }
        #pres .gauche, #pres .droite{
            width: 100%;
        }
        #pres .gauche{
            height: 300px;
        }

        #container-gal{
            grid-template-columns: 1fr 1fr;
        }
    }

    @media all and (max-width: 410px)
    {
        #hero{
            grid-row: 3 / span 7;
        }
        #container-gal{
            grid-template-columns: 1fr;
        }
    }
    @media (max-width:900px) {

        #contact {
            grid-template-columns:1fr;
            gap: 50px;
            padding: 50px;
        }
                                }
/**media footer ************************************************************************/
@media screen and (max-width:1200px){

    #contact{
        grid-template-columns:1fr;
        padding:50px;
        height:auto;
    }
    .contact-text p{
        max-width:100%;
    }
    .contact-svg{
        max-width:300px;
        margin:20px auto;
    }

    button{
        width:100%;
    }
}
@media screen and (max-width:1200px){

    #galerie .container{
        padding-top:100px;
    }

    #container-gal{
        height:auto;
    }
}
@media screen and (max-width:768px){

    #galerie .container{
        padding-top:50px;
    }

    #container-gal{
        height:auto;
    }
}
/**responsive index***********************************************************/
@media screen and (max-width:768px){
    *{
        margin:0;
        padding:0;
        box-sizing:border-box;
    }

    html,
    body{
        overflow-x:hidden;
    }

    .top-container{
        position:static;
        height:auto;
        display:flex;
        flex-direction:column-reverse;
        align-items:center;
        gap:40px;
        padding:40px 20px;
    }

    .imggauche,
    .imgdroite{
        position:static;
        width:90%;
        max-width:350px;
        height:auto;
    }

    h1 img{
        width:180px;
    }

    .social-links{
        position:static;
        gap:40px;
        justify-content:center;
        display:flex;
        width:fit-content;
        margin:30px auto 0 auto;
        width:fit-content;
        grid-column:1 / span 12;
        justify-self:center;
        margin-bottom: 200px;
    }

}
@media screen and (min-width:768px) and (max-width:1200px){
    *{
        margin:0;
        padding:0;
        box-sizing:border-box;
    }

    html,
    body{
        overflow-x:hidden;
    }

    .top-container{
        position:static;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:40px;
        justify-items:center;
        align-items:center;
        height:auto;
        padding:60px 40px;
    }

    h1{
        grid-column:1 / span 2;
        order:-1;
    }

    h1 img{
        width:180px;
    }

    .imggauche,
    .imgdroite{
        position:static;
        width:100%;
        max-width:350px;
    }

    .social-links{
        position:static;
        display:flex;
        justify-content:center;
        gap:150px;
        width:fit-content;
        margin:50px auto 0 auto;
        width:fit-content;
        margin:50px auto;
        grid-column:1 / span 12;
        justify-self:center;
        margin-bottom: 300px;}
}




@media screen and (max-width:768px){

    #galerie .container{
        padding-top:100px;
    }

    #container-gal{
        display:grid;
        margin-top: 100px;
        grid-template-columns:repeat(2, 1fr);
        gap:20px;
        height:auto;
        grid-template-rows:auto;
    }

    .img1,.img2,.img3,.img4,.img5,.img6,
    .img7,.img8,.img9,.img10,.img11,.img12{
        grid-column:auto;
        grid-row:auto;
    }

    .images a img{
        width:100%;
        aspect-ratio:4/5;
        object-fit:cover;
        display:block;
    }
}
@media screen and (min-width:769px) and (max-width:1200px){

    #galerie .container{
        padding-top:100px;
    }

    #container-gal{
        display:grid;
        margin-top: 140px;
        grid-template-columns:repeat(4,1fr);
        grid-template-rows:auto;
        height:auto;
        gap:15px;
    }

    .img1,.img2,.img3,.img4,.img5,.img6,
    .img7,.img8,.img9,.img10,.img11,.img12{
        grid-column:auto;
        grid-row:auto;
    }
}


/**responsive gallery*****************************************************/

@media (max-width:768px){

    .bloc,
    .bloc-2{
        grid-template-columns:1fr;
    }

    .txtgal{
        min-height:auto;
        gap:30px;
    }

}
@media screen and (max-width:768px){

    .hero-image,
    .hero-imagedusk{
        height:350px;
        object-fit:cover;
        object-position:center 10%;
    }

    .infos{
        margin:20px 0;
        font-size:12px;
    }
}

/*les orientations je savait pas que c'était possible je me cassait la tête à chercher les dimensions moyennes des tablettes en portrait et paysage mais j'ai trouvé ça et c'est encore mieux */

@media screen and (min-width:769px) and (max-width:1200px) and (orientation:portrait){

    .bloc,
    .bloc-2{
        grid-template-columns:1fr;
        gap:30px;
    }

    .txtgal{
        min-height:auto;
    }

    .bloc img{
        width:100%;
        height:auto;
    }
}
@media screen and (min-width:769px) and (max-width:1200px) and (orientation:landscape){

    .bloc{
        grid-template-columns:1.5fr 1fr;
    }

    .bloc-2{
        grid-template-columns:1fr 1.5fr;
    }

    .txtgal{
        min-height:auto;
    }

    .bloc img{
        width:100%;
        height:auto;
    }
}

/** pres artist media ******************************************************************/
@media screen and (max-width:768px){

    #artist{
        padding-top:20px;
    }

    .artist-pres{
        flex-direction:column;
        gap:20px;
        margin-top:20px;
        width:100%;
        align-items:center;
    }

    .artist-pres img{
        width:280px;
        max-width:none;
    }
    .artist-text{
        width:280px;
        text-align:center;
    }



    h4{
        margin:0 0 20px 0;
        height:80vh;
        display:flex;
        justify-content:center;
        align-items:center;
    }
    .artist-video{
        display:flex;
        justify-content:center;
        margin:40px auto 150px;
    }
    .video-title{
        max-width:600px;
        margin:120px auto 40px;
        text-align:center;
        font-size:1.2rem;
        line-height:1.4;
    }
    .video-title::after{
        content:"";
        display:block;
        width:80px;
        height:2px;
        background:white;
        margin:20px auto 0;
        opacity:.4;
    }

}
@media screen and (min-width:769px) and (max-width:1200px){

    #artist{
        padding-top:0;
    }

    h4{
        height:90vh;
        display:flex;
        justify-content:center;
        align-items:center;
        margin:0;
        font-size:24px;
    }

    .artist-pres{
        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:center;

        gap:60px;

        width:90%;
        margin:0 auto 100px;
    }

    .artist-pres img{
        width:350px;
        height:auto;
    }

    .artist-text{
        width:300px;
        text-align:left;
    }
    .artist-video{
        display:flex;
        justify-content:center;
        margin:40px auto 150px;
    }

    .video-title{
        max-width:600px;
        margin:120px auto 40px;
        text-align:center;
        font-size:1.4rem;
        line-height:1.4;
    }
    .video-title::after{
        content:"";
        display:block;
        width:80px;
        height:2px;
        background:white;
        margin:20px auto 0;
        opacity:.4;
    }

}

