@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap');

:root {
    --borderTest: 5px solid blue;
}

html {
    height: 100%;
    width: 100%;
    min-width: 350px;
}

body {
    margin: 0;
    font-family: 'Roboto',sans-serif;    
    color: black;
    display: flex;   
    flex-direction: column;   
    gap: 5em;    
}
    
footer {
    border-top: 5px solid black;
    color: black;
    flex-basis: 5em;  
    display: flex;
    align-items: center;  
}


a {
    text-decoration: none;
    color: white;
    font-weight: 100;
}

a:hover {
    font-weight: bold;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    display: flex;
    gap: 1em;
}

img {
    width: 100%;
    height: 100%;
}
h1 {
    font-size: 3em;
    margin: 0;
}

.container {
    margin: 0 auto;
    width: 1100px;
}

#bienvenue {    
    background-color: black;
    color: white;
    flex-basis: 100vh;      
}

#flexHeader{
    display: flex;
    justify-content: space-between;   
    font-size: 1.3em;
}

#flexPresentation {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3em;     
    height: calc(100vh - 66px);  
}

#flexPresentation div:nth-of-type(1) {  
    flex : 1 0 60%;  
}
#flexPresentation div:nth-of-type(2) {     
    flex : 0 1 40%;   
}



#projets {
    color: black;
    text-align: center;
}

#flexProjets {
    display: flex;
    flex-direction: column;
    gap:1em;
}


#projetGrille {
    display: grid;
    grid-template-columns: repeat(3,1fr) ;
    grid-auto-rows: minmax(150px,auto);
    grid-gap: 1em;
    border-radius: 5px;
}

#projetGrille h3{
    text-align: start;   
    padding: 30px 15px;
}


#projetGrille a {
    font-size: 1.5em;
    text-shadow: 2px 2px 1px rgba(0,0,0,1);
    border-radius: 5px;
    background-size: cover;  
}

#projetGrille a:nth-of-type(1) {
    background:url(images/Fond_Body.webp);
    background-size: cover;
}
#projetGrille a:nth-of-type(2) {
    background-image: url(images/Screenshot_Le\ seigneur\ des\ pendus.png);
    background-size: cover;
}   
#projetGrille a:nth-of-type(3) {
    background-image: url(images/gambettaWeb.png);
    background-size: cover;
}
#projetGrille a:nth-of-type(4) {
    background-image: url(images/rodeo-pump.jpg);
    background-size: cover;
}

#projetGrille a:hover {
    opacity: 0.7;
}




#flexContact{
    text-align: center;
    display: flex ;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:1em;
}

.button {
    background-color: black;
    padding: 15px 30px;  
    color: white;
    display: inline;
}

/*  Projets */

/*  Projets 1 */
#projet1 {
    background: no-repeat  url(images/Fond_Body.webp);
    background-size: cover;
    flex-basis: 100vh;
    color: white;        
}

#projet1 h1 a {
    font-weight: bold;    
}


#flexPresentation {
    text-shadow:0.07em 0 rgb(255, 9, 9),
                0 0.07em rgb(255, 0, 0),
                -0.07em 0 rgb(255, 0, 0),
                0 -0.07em rgb(255, 6, 6);
}
#flexPresentation p {
    font-size: 1.5em;
}
 


#projets_présentation h1 {
    text-align: center;
    margin-bottom: 1em;
    
}

#projets_présentation p a {
    color: black;
}

.link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.link p {
    flex-basis: 60%;
}
.link a {
    margin-right: 25%;        
}
/* Projet 2 */
#projet2 {
    background: no-repeat  url(images/mainFond.webp);
    background-size: cover;
    flex-basis: 100vh;
    color: white;        
}

/* Projet 3 */
#projet3 {
    background: no-repeat url(images/points.png),url(images/gambettaWeb.png) ;
    background-size: cover;
    flex-basis: 100vh;
    color: black;        
}








@media screen and (max-width :1130px ) {
    .container {
        width: 700px;
    }
    #projetGrille {
        grid-template-columns: repeat(2,1fr);
    }   
}


@media screen and (max-width :730px ) {
    .container {
        width: 450px;
    }
    #projetGrille {
        grid-template-columns: 1fr;
    }    
    .link {
        justify-content: center;
    }

    .link a {
        margin-right: 0;
    }
    .link p {
        flex-basis: 100%;
    }
}

@media screen and (max-width :460px ) {
    .container {
        width: 90%;
    }
  
    #flexPresentation div:nth-of-type(2) {     
        display: none; 
    }    
    ul {
        flex-direction: column;
    }
    #flexPresentation {
        height: calc(100vh - 113px);         
    }   
}