* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

.p-5p {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
}

/* HEADER */

#header {
    height: 100vh;
    background: url('../images/background_square.jpg') center no-repeat fixed;
    background-size: 100vw 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: -1;
}

#header h1,
#header p {
    opacity: 1;
}

#header h1 {
    margin: 4%;
    color: transparent;
    letter-spacing: 0.05em;
    -webkit-text-stroke: 0.03em #f3f3f3;
    text-stroke: 1px #f3f3f3;
    transition: color 0.5s ease-in-out;
    font-size: 1.8em;
    font-weight: 700;
}

#header h1:hover {
    color: #f3f3f3;
}

#header p {
    text-transform: uppercase;
    font-weight: 500;
    color: #f3f3f3;
    letter-spacing: 0.05em;
}

.rectangle-couleur {
    width: 50px; 
    height: 8px; 
    background: linear-gradient(to right, #7F00FF, #FF4ACC);
    margin: 20px auto; 
    border-radius: 20px;
}

#scroll_container {
    margin: 5%;
}

.scroll {
    margin: 0 auto;
    width: 1em;
    height: 1em;
    position: relative;
    animation: down 1.5s infinite;
    -webkit-animation: down 1.5s infinite;
}
.scroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    border-left: 2px solid #f3f3f3;
    border-bottom: 2px solid #f3f3f3;
    transform: rotate(-45deg);
}

@keyframes down {
    0% {
        transform: translate(0);
   }
    20% {
        transform: translateY(15px);
   }
    40% {
        transform: translate(0);
   }
}
@-webkit-keyframes down {
    0% {
        transform: translate(0);
   }
    20% {
        transform: translateY(15px);
   }
    40% {
        transform: translate(0);
   }
}

@media screen and (min-width:768px){
    #header h1 {
        font-size: 2.5em;
    }
    #header p {
        font-size: 1.5em;
    }
    #header .scroll {
        width: 2em;
        height: 2em;
    }
    #header .scroll::before {
        width: 2em;
        height: 2em;
    }
}

@media screen and (min-width:1024px){
    #header h1 {
        margin: 2%;
    }
    #header p {
        font-weight: 400;
    }
}

/* CONTENT */

#content {
    background-color: white;
}

/* A PROPOS */

#about {
    margin-top: 100vh;
    padding-left: 5%;
    padding-right: 5%;
}

#about h2 {
    padding-top: 8%;
    text-align: center;
    font-size: 1.2em;
}

#about p {
    margin-top: 10%;
    text-align: justify;
}

#about img {
    margin-top: 5%;
}

#button {
    margin: 10% 0 5% 0;
    text-align: center;
    border-bottom: solid 1px grey;
    padding-bottom: 2.5em;
}

#button a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9em;
    color: #320083;
    border: solid 2px #320083;
    border-radius: 20px;
    padding: 0.5em 1em;
}

#button a:hover {
    color: white;
    background-color: #320083;
}

#hide_on_mobile {
    display: none;
}

#hide_on_desktop {
    display: block;
}

#about_content .hide_mob {
    display: none;
}

#about_image .hide_desk {
    display: block;
}

@media screen and (min-width:768px){
    #about h2 {
        font-size: 1.5em;
        font-weight: 500;
    }
    #about p {
        font-size: 1.2em;
    } 
    #button {
        margin: 5% 0 5% 0;
    }
    #hide_on_mobile {
        display: block;
    }
    #hide_on_desktop {
        display: none;
    }
}

@media screen and (min-width:1024px){
    #about_content .hide_mob {
        display: block;
    }
    
    #about_image .hide_desk {
        display: none;
    }

    #about_flex {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        padding-bottom: 2%;
        margin-bottom: 2%;
        border-bottom: solid 1px grey;
    }

    #about_image {
        width: 40%;
        height: auto;
    }

    #about_content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 50%;
        margin-left: 5%;
    }

    #about #button {
        border: none;
    }
}

/* TRAVAUX */

.proj_title {
    text-align: center;
    font-weight: 500;
    font-size: 1.2em;
}

.projet {
    position: relative; 
    display: inline-block;
    width: 90%;
    margin: 5%;
}
  
.texte {
    text-align: center;
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    display: none;
}
  
.projet:hover .texte {
    display: block; 
}

#s1-content {
    display: none;
}

#s2-content {
    display: none;
}

@media screen and (min-width:768px){
    .proj_title {
        font-size: 1.5em;
    }
    .proj_display {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .projet {
        max-width: 44%;
        margin: 3%;
    }
    .projet:hover .texte {
        font-size: 1.2em;
    }
}

@media screen and (min-width:1024px){
    #nav_boot {
        max-width: none;
    }
    .projet {
        max-width: 26%;
    }
}



/* FOOTER */

footer {
    height: 10vh;
    background: #0F0E19;
    color: #f3f3f3;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
