*{
    padding:0;
    margin:0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-decoration: none;
}
body{
    background: url("https://picsum.photos/id/368/1980/1280") fixed no-repeat;
    background-size: cover;
    z-index: 1;
}
h1{
    font-size: 4rem;
    transition: 1s;
}
#background-video{
    z-index: -100;
    width: 100%;
    position:absolute;
    top:0;
    left:0;
}
header{
    color: aliceblue;
    backdrop-filter: blur(5px);
    padding: .5em;
    position:fixed;
    top:0;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: .5s;
}
header, nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1{font-weight: 100;}
header a:first-child{color: orange;}
header nav a{margin: 1em;}
a{transition: .5s;}
a:hover{color: lime;transform: scale(1.1);}
h2{
    color: gold;
    font-weight: 100;
    font-size: 2rem;
}
section{
    padding-top: 15dvh;    
}
.menu{
    display: none;
}
.expand{
    left:0;
}
/********************   Elements génériques     ********************/

.cards{
    display: flex;
    gap: 2em;
    color: white;
    list-style: none;
    width: 90%;
    margin: 2em auto;
}
.cards>li{
    border-radius: 1em;
    box-shadow: 0 0 15px #444;
    cursor: pointer;
    transition: .2s;
}
.cards h3{
    border-radius: .5em .5em 0 0;
    min-height:3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards figure{
    display: flex;
    min-width: 21vw;
    background: rgba(0,0,0,.8);
    border-radius: 0 0 1em 1em;
}
.reseaux{
    display: flex;
    justify-content: space-between;
    gap: 1em;
}
.reseaux img, .reseaux svg{
    height: 3vh;
}
.reseaux a img {
    transition: transform 0.3s;
}
.reseaux a img:hover {
    transform: scale(1.2);
}

/************************   Bannière    *************************/
#banner{
    min-height:90dvh;
    transition: all .5s;
}
#banner:hover{
    backdrop-filter: brightness(.5);
}
#banner>aside{
    display: grid;
    justify-content: space-around;
    min-height: 20dvh;
    max-width: 25dvw;
    position: relative;
    padding: 1em;
    left:5em;
    top: 40dvh;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.5);
    border-radius: .5em;
    border: aliceblue 1px solid;
}
#banner h2{
    font-weight: 100;
}
#banner div{
    display: flex;
    gap: 1em;
}
#banner i{
    font-size: 1.5rem;
}
.reseaux{
    padding-top: 1em;
    display: flex;
    align-items: center;
}
.reseaux img{
    max-width: 100%;
}
/********************************     Hero section    *************************************/
#hero{
    box-shadow: 0 0 15px black;
    padding-top: 0;
}
#hero article{
    display: flex;
}
#hero aside{
    min-width: 50%;
    background: white;
    justify-content: space-around;
    padding: 1em;
    align-items: center;
}
#hero aside div{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: 100;
}
#hero aside span{
    font-size: 2em;
    display: block;
}

.callTo, .matrix, .callToButton{
    display: grid;
    place-content: center;
    text-align: center;
}
.callTo button, .callTo [type="button"], .callToButton{
    padding: 1em;
    min-width: 10dvw;
    margin:1em auto;
    background: rgba(0,0,0,.5);
    color: gold;
    border:2px solid gold; 
}

.matrix{
    text-align: left;
    grid-template-columns: repeat(2, 1fr);
}
.matrix div{
    padding: 1em;
}
#hero .callTo:nth-child(1){background: url("https://picsum.photos/id/450/1980/1280") fixed no-repeat; background-size: cover;}
#hero .callTo:nth-child(2){background: url("https://picsum.photos/id/510/1980/1280") fixed no-repeat; background-size: cover;}

/****************************   Section Services    *******************************/
#services{
    background: aliceblue;
    min-height: 100dvh;
    /*background: url("https://picsum.photos/id/511/1980/1280") fixed no-repeat; background-size: cover;*/
    background: url("../media/gadgets-6469387_1920.jpg") fixed no-repeat; background-size: cover;
}
#services img{
    width: 100%;
    object-fit: cover;
    height: 20vh;
    border-radius: 1em 1em 0 0;
}
#services article{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
    min-height: 100dvh;
    padding: 4em 0;
}
#services h2, #services h3{
    color: #eee;
    width: 100%;
    text-align: center;
}
#services figure{
    min-height: 65vmin;
    width: 25vw;
    padding: 0;
    background: #eee;
    backdrop-filter: blur(5px);
    border-radius: 1em;
    box-shadow: 0 0 10px #444;
    color: black;
    align-items: center;
    font-size: 1rem;
}
#services figcaption p{
    text-align: center;
    padding: 1em;
    font-size: 1.2rem;
}
#services figcaption ul{
    padding: 0 2em;
    list-style-type: disc;
}
#services figcaption li{
    padding-top: .3em;
}
#services figcaption{
    padding-bottom: 1em;
}

/*****************************  Section Portfolio  *******************************/

#portfolio{
    width: 95%;
    border-radius: 1em;
    padding : 15dvh 5em 2em 5em;
    margin:3em auto;
    background: rgba(0,0,0,.5); 
    backdrop-filter: blur(15px);
}
#portfolio aside{
    display: flex;
    justify-content: space-between;
}
#portfolio h3{
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 100;
}

/*****************************  Section Projets  *******************************/

#projects{
    opacity: 0;
    transition: 1s;
}
#projects div{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1em;
    margin: 2em auto;
}
#projects figure{
    max-width: 15dvw;
    max-height: 24.5dvh;
    background: lightblue;
    box-shadow: 0 0 10px gray;
    padding: 1em;
    color: black;
    transition: .7s;
    overflow: hidden;
}
#projects figure:hover{
    max-height: 100dvh;
}
#projects a:nth-child(even) figure{
    background-color: aliceblue;
}
#projects figure:hover{
    transform: scale(1.1);
    cursor:pointer;
}
#projects figure img{
    display: block;
    max-width: 100%;
}
#projects figcaption li{
    background: rgba(255,255,255,.5);
    border-radius: 1em;
    padding: .5em;
    font-size: .8em;
    margin: .5em;
    list-style-type: none;
}

/************   A propos    ****************/

#about{
    background-size: cover;
    margin: 10em auto 0 auto;
    height: 30dvh;
}
#about h2{
    color: teal;
    text-align: center;
}
#about article{
    border-radius: .5em;
    padding: 1em;
    background: radial-gradient(rgba(255, 255, 255, 0.7), rgba(195, 197, 245, 0.806));
    backdrop-filter: blur(12px);
    width: 85%;
    margin: -2em auto;
    transform: translateY(em);
}
#about div{
    display: flex;
    gap: 3em;
    justify-content: space-between;
    align-items: center;
    
}
#about img{
    border-radius: 50%;
    min-width: 30vh;
    height: 30vh;
    object-fit: cover;
}
#about p{
    width: 90%;
    font-variant: small-caps;
}
#about aside{
    min-width: 15%;
    text-align: right;
}
#about a{
    display: block;
    color: teal;
    margin-bottom: 1em;
}
#about a p{
    font-size: 3em;
}

/*************  Formation   **********************/
#formation{
    overflow-x: hidden;
    text-align: center;
    padding: 10em 0;
    background: url("https://mistertea.fr/selene/img/urban/2.jpg");
}

#formation img{
    border-radius: 0 0 0 1em;
    display: flex;
    align-self: center;
    width: 20dvh;
    object-fit: contain;
}
#formation .cards>li{
    height: 100%;
}
#formation .cards>li:hover{
    transform: scale(1.1);
    box-shadow: 0 0 20px black;
}
#formation .cards h3{
    background: teal;
}
#formation figure{
    height:20dvh;
}
#formation figcaption{
    display: grid;
    place-content: center;
    font-size: 1rem;
    padding: 1em;
    text-align: center;
    width: 100%;
}
#formation article{
    margin: 2em auto;
    border-radius: 1em;
}
#formation .description{
    background: linear-gradient(aliceblue, whitesmoke);
    padding: 1em;
    line-height: 1.3em;
}

#formation article h3, #formation article div>p{
    background: black;
    color: lime;
    padding: 1em;
    font-size: 1.3rem;
    text-align: center;
    border-radius: 1em 1em 0 0;
    border: 1px solid cadetblue;
}
#formation article div>p{
    border-radius: 0 0 1em 1em;
}
#formation article div>p a{
    color: coral;
}
#formation .description ul{
    width: 70%;
    text-align: left;
    margin: 0 auto;
    max-height: 100dvh;
}
#formation .modals{
    position:fixed;
    cursor: pointer;
    top:0;
    left:-100dvw;
    width: 100%;
    height: 100%;
    margin: auto;
    z-index: 1;
    display: grid;
    place-content: center;
    backdrop-filter: blur(15px);
    transition: left .5s;
}
/********************* Experience Professionnelle *****************/
#experiences{
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding-top: 15dvh;
    padding-bottom: 1dvh;
}
.experience {
    width: 90%;
    margin: 4em auto;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 2em;
    padding-top: 15dvh;
    border-radius: 10px;
    box-shadow: 0 0 15px #444;
}
#experiences h2 {
    text-align: center;
    color: gold;
    margin-bottom: 1em;
}
.experience {
    padding: 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}
.experience ul {
    margin-top: 0.5em;
    padding-left: 1.5em;
}
.experience aside, .experience>p{
    padding: 1em;
}
.experience p{
    background: #444;
    display:grid;
    place-content: center;
    font-size: 2rem;
    width: 20dvw;
    border-radius: 0 10px 10px 0;
    color: gold;
}
/****************************** Contact **************************/


#contact {
    width: 90%;
    margin: 4em auto;
    background: radial-gradient(#00000077, #ffffff55);
    backdrop-filter: blur(15px);
    color: #333;
    padding: 2em;
    border-radius: 10px;
    border: 1px white solid;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
#contact h2{
    color: black;
    padding: 1em;
}
#contact .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contact .contact-info {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
}
#contact .contact-text {
    text-align: left;
}
#contact .contact-text p {
    margin: 0.3em 0;
    font-size: 1.2em;
}
#contact .contact-text a {
    color: #2c3e50;
    font-weight: bold;
    transition: .3s;
}
#contact .contact-text a:hover {
    text-decoration: underline;
    color: steelblue;
}
#contact .profile-pic {
    width: 15dvmax;
    height: 15dvmax;
    border-radius: 1em;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

footer{
    background: black;
    color: white;
    min-height:20dvh;
    display: grid;
    place-content: center;
    text-align: center;
}
footer a{
    color:gold;
}

@media screen and (max-width:800px){
    *{
        padding:0;
        margin: 0;
        flex-wrap: wrap;
        max-width: 100%;
        max-height: 100%;
        line-height: 1.2em;
        overflow-x: hidden;
        font-size: .9rem;
    }
    [type=button], button{
        background: rgba(0,0,0,.4);
        text-align: left;
    }
    header{
        left : -100dvw;
    }

    .reseaux{
        flex-direction: row;
        flex-wrap: nowrap;
        margin: auto;
    }
    header .expand{
        left : 0;
    }
    img{
        display: block;
        margin: auto;
        max-width: 100%;
    }

    .menu{
        display: block;
        width: 4dvw;
        position: fixed;
        top:.5em;
        right: .5em;
        z-index: 2;
    }
    #banner{
        display: grid;
        place-content: center;
    }
    #banner>aside{
        position: static;
        max-width: 100%;
    }

    #banner>aside::before{
        content: "Ruben Trottein";
        font-size: 2rem;
        line-height: 2rem;
        text-align: center;
        display: block;
        margin-bottom: 1em;
        font-family: monospace;
        color: rebeccapurple;
    }
    #hero>article{
        flex-direction: column-reverse;
    }
    #hero article h2{
        background: white;
    }
    #hero article .callTo{
        display: flex;
        flex-direction: row;
        backdrop-filter: blur(15px);
        font-size: .9em;
    }
    
    #hero aside{
        flex-wrap: nowrap;
    }
    #projects figure{
        max-width: 100%;
        max-height: 100%;
    }
    #portfolio {
        padding: 1em;
    }
    #services figure{
        width: 95%;
    }

    #services article{
        flex-direction: column;
    }
    #about{
        padding: 1em;
        height: 100%;
    }
    #about article{
        position: static;
        transform: translateY(0);
        top:0;
        width: 100%;
        margin: 0;
    }
    #formation figure{
        flex-wrap: nowrap;
        height: 14dvh;
    }
    #formation .cards li{
        min-height: 100%;
        width: 100%;
    }
    #formation .modals h3, #formation .modals p{
        font-size: .5em;
    }
    #contact .contact-text a{
        color: orange;
    }
    #contact{
        color: #eee;
    }
    .profile-pic{
        max-width: 20vw;
        border-radius: 10px;
        position: absolute;
        top:-2dvh;
        left: -2dvw;
    }
    #experiences p{
        width: 100%;
        border-radius: 0;
    }
}