/* 1em = 16px */
html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
    font-family: sans-serif;
}

/********* Navigation *********/
nav{
    transition: all 0.4s;
    position:fixed;
    top: 0;
    background-color:#ffffff;
    width: 100%;
    z-index: 2;
}
.nav-display{
    display: flex;
}

.nav-off{
    display: none;
}
nav a:visited{
    color: black;
}

.active{    
    font-weight: bolder;
    /* !important règle prioritaire sur la couleur noire du (nav a:visited) */
    color:#FF944D !important;
}

.pas-active{
    color:black;
    text-decoration: none;
}

.nav-img{
    padding:3px;
}
#logo{
    width:10em;
}

#liens{  
    list-style-type: none;
    width: 100%;
    /* Pour préserver l'effet survole */
    margin: 0;
}
.liens-off{
    display: none;
}
@media screen and (max-width:376px) {
    #liens li{
        border-bottom: 1px solid black;
        padding:1px 0;
    }
    #liens li a{
        text-decoration: none;
    }
    .nav-img{
        display:flex;
        justify-content: space-between;
    }
}
@media screen and (424px < width < 426px){
    .nav-img{
        text-align: center;
    }
}
@media screen and (width < 426px){
    nav{
        flex-direction: column;
    }
    #logo-menu{
        width:32px;
    }

    #liens{
        margin-top:10px;
        padding: 0;
    }

}

@media screen and (width > 425px){
    nav{
        border-bottom: 1px solid black;
    }
    #logo-menu{
        display: none;
    }
    #liens{
        display: flex;
        padding: 0;
    }
    #liens li{
        display: flex;
        flex-grow: 1;
    }
    #liens li a {
        transition: 0.5s all ease;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-underline-position: under;
    }
    #liens li a:hover{
        background-color: #FF944D;
        text-decoration: underline;
        /* !important règle prioritaire sur la couleur orange du (.active) */
        color: white !important;
    }
}

/********* Fin Navigation *********/

/********* Page de garde *********/
#pageDeGarde{
    /* Pour cacher le surplus lorsque la page se rétrécit */
    overflow: hidden;
    transition: all 0.4s;
    position:fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 1;
}
#pageDeGarde div{
    position: relative;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    width: fit-content;
}
#pageDeGarde div h2{
    text-align: center;
}

#pageDeGarde div img{
    width: 100%;
    height: auto;
}

.pageDeGarde_grow{
    height: 100%;
}

.pageDeGarde_reduce{
    height: 0%;
}

/* Entre la taille d'un petit écran et la taille max du logo */
@media screen and (width < 650px){
    #pageDeGarde div{
        padding:0 1em;
    }
}

/********* Fin Page de garde *********/

/********* Page de Bienvenue *********/

#bienvenue {
    position: relative;
}

.masque{
    height: 200px;
    width: 200px;
    position: absolute;
    z-index: -1;
}

#masque-haut-gauche{
    background-color: #FFD958;
    top:3em;
    left:0px;
    clip-path: path("M 0,0 L 200,0 L 180,50 L 160,60 L 100,130 L 50,160 L 30,200 L 0,200 Z");
}

#masque-bas-gauche{
    background-color: #FF964E;
    bottom:0px;
    left:0px;
    clip-path: path("M 0,0 L 50,20 L 80,100 L 120,100 L 170,160 L 190,170 L 200,200 L 0,200 Z");
}

#masque-haut-droite{
    background-color: #FFB953;
    top:3em;
    right:0px;
    clip-path: circle(150px at top right);
}
@media screen and (width < 426px){
    #bienvenue{
        margin-top:2em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100vh !important;
        
    }

    #images{
        display: none;
        border:1px solid;
    }
    #images img{
        width: 30vw;
        height: 20vh;
        object-fit: cover;
        margin: 0;
        padding: 0;
    }

}

@media screen and (width > 426px){

    #bienvenue{
        display: flex;
        margin-top:2em;
    }

    #bienvenue p{
        width: 45vw;
        font-size: 1.5em;
        height: fit-content;
        margin:auto auto;
    }

    #images{
        width: 45vw;
        align-content: center;
    }

    #images img{
        width: 10vw;
        height: auto;
        object-fit: cover;
        margin: 0;
        padding: 0;
    }
}
/********* Fin de Page de Bienvenue *********/

/********* Section *********/
.section{
    display: flex;
}

.section h2{
    text-align: center;
    margin:0;
    border-right: 1px solid;
    color: white;
    background-color: rgb(61, 59, 59);
    height: 100%;
    padding:1em;

}

@media screen and (width < 426px){
    .section{
        flex-direction: column;
    }
    .section h2{
        padding: 0.5em;
    }
}

@media screen and (width > 426px){
    .section{
        height: 100vh;
    }
    .section h2{
        writing-mode: vertical-lr;
        text-orientation: upright;
    }
}

/********* Fin Section *********/

/********* Diaporama *********/

.diaporama{
    position:relative;
    flex-grow: 1;
    align-self: center;
}

.diaporama > div:nth-last-child(1){
    text-align: center;
    margin:5px auto;
}

.diapo-animation{
    animation-name: diapo-animation;
    animation-duration: 1.5s;
}
.boutons{
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color:black;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.1);
}

.boutons:hover{
    background-color: rgba(0,0,0,0.5);
}

#suivant{
    right: 0;
    border-radius: 3px 0 0 3px;
}

.point{
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.point-active,.point:hover{
    background-color: #717171;  
}

@keyframes diapo-animation {
  from {opacity: .4} 
  to {opacity: 1}
}


.prestation{
    transition: all 0.4s;
    border-radius: 3px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 2px 4px;
}

.prestation p{
    padding: 0 5px;
    text-align: justify;
    text-justify: inter-word;
}

.prestation > h3{
    font-size: 20px;
    color: white;
    background-image: linear-gradient(to right,#FFD958,#FF964E);
    padding: 0.5em;
}

.prestation > h4{
    font-size: 16px;
    font-weight: lighter;
}

.activite{
    display: flex;
    align-items: center;
    margin:0.5em 0;
}
.activite img{
    width: 32px;
    height: 32px;
}

.activite img[alt="programmation-web"]{
    align-self: flex-start;
}

.activite p{
    height: 100%;
    margin: 0;
}

.activite img[alt="programmation-web"] + div{
    padding: 0 5px;
    margin: 0;
}
.activite img[alt="programmation-web"] + div p{
    padding: 0;
}


@media screen and (width < 426px){
    .diapositive{
        flex-direction: column-reverse;
    }
    .img_prestation{
        width:100%;
        height: auto;
        object-fit: cover;
    }
}
@media screen and (width > 426px){
    
    .prestation p{
        line-height: 1.3em;
    }
    
    .img_prestation{
        width:45%;
        object-fit: cover;
    }
    .diapositive{
        justify-content: space-evenly;
    }
    
    .prestation{
        width:45vw;
        /*align-content: center;*/
    }
}
/********* Fin Diaporama *********/


/********* Tableau de projet *********/

.conteneur-table{
    height: 50%;
    overflow-y: auto;
}
.conteneur-table table{
    width: 100%;
    border-collapse: collapse;
}
.conteneur-table table td{
    padding: 0.5em 0;
    border-bottom:1px solid;
}
.conteneur-table table td img{
    width: 40px;
}

/********* Fin Tableau de projet *********/

/********* Section contact *********/

#contact > div{
    display: flex;
    flex-grow: 1;
}

#contact > div > div > h3{
    font-size: 20px;
    text-decoration: underline;
    margin: 0;
    text-align: center;
}

#contact > div > div p{
    text-align: center;
}

form *{
    display: block;
    margin:0.1em 0;
}

form input{
    width: calc(100% - 0.5em);
}
@media screen and (width < 427px){
    #contact > div{
        flex-direction: column-reverse;
    }
    
    form{
        padding:0 0.5em;
    }
    
    textarea{
        width: calc(100% - 0.5em);
    }
}

@media screen and (width > 426px){
    /* Entête */
    #contact > h2{
        margin-bottom: 1em;
    }
    /*Le 1er div*/
    #contact > div{
        justify-content: space-evenly;
        align-self: center;
    }
    /* le div du 1er div */
    #contact > div > div{
        width:45vw;
        align-self: center;
    }
    form{
        margin: 0 auto;
        width: fit-content;
    }
}
/********* Fin Section de contact *********/


/********* Bas de page *********/
footer > div{
    display: flex;
    flex-wrap: wrap;  
}
footer > p{
    text-align: center;
}

footer > div div ul{
    display: block;
    margin: 0 auto;
    width: fit-content;
}

footer > div div ul li{
    margin:2px 0;
}

@media screen and (width > 426px){
    footer > div{
        justify-content: space-evenly;
    }
    footer > div div{
        flex-grow: 1;
    }
}

@media screen and (width < 426px){
    footer > div{
        flex-direction: column;
    }

}
/********* Fin Bas de page *********/

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}

@media only screen and (orientation: landscape) {}

#mentions-legales{
    margin:5em 1em;
}
#mentions-legales h1{
    font-size: 24px;
}
#mentions-legales h2{
    font-size: 20px;
}

#mentions-legales h3{
    font-size: 16px;
}
#mentions-legales p{
    text-align: justify;
}
.text-center{
    text-align: center;
}

.center{
    display: block;
    margin: 0 auto;
    width: fit-content;
}