/*BODY*/
body {

    display: flex;
    flex-flow: row wrap;
    height: 100vh;
    width: 100%;
    background-color: rgb(250, 250, 250);

}


/*HEADER*/
#bloc-header {
    background: url(../images/header.jpg);
    z-index: 1;
    width: 100%;
    height: 350px;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

.logo-header {
    position: relative;
    z-index: 2;
    top: 80px;
    left: 150px;
}

#bloc-header h1 {
    position: relative;
    color: rgb(223, 78, 11);
    font-weight: bolder;
    font-size: 2.5em;
    left: 250px;
    z-index: 3;
}


/*NAVBAR*/
.nav-header {

    font-weight: 900;

    width: 100%;
}

.nav-header ul {
    background-color: rgba(196, 194, 194, 0.76);
    list-style-type: none;
    padding: 1em .5em;
}

.nav-header ul li {
    display: inline-block;
    margin: 0 2em;
}

nav ul li a:visited,
nav ul li a:link,
nav ul li a:hover {
    color: rgb(52, 52, 139);
    font-size: 1.8em;
    text-decoration: none;
    text-transform: uppercase;
}

nav ul li a.home,
nav ul li a.services,
nav ul li a.offres,
nav ul li a.contact {
    position: relative;
    color: rgb(223, 78, 11);
    top: 8px;
}

/*Section (main et aside)*/

section {

    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin: 50px auto;

}

main {
    width: 75%;

    display: flex;
    flex-wrap: wrap;


}

.technology-today h1 {
    margin-left: 70px;
    color: rgb(52, 52, 139);
}

.technology-today p {
    flex-wrap: nowrap;
    margin-left: 55px;
    margin-right: 50px;

}

@media screen and (min-width: 250px) {
    nav {
        margin-top: 115px;

    }
    .nav-header ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-header ul li {
        padding: 10px
    }
    .logo-header {
        position: relative;
        z-index: 2;
        top: 2px;
        left: 2px;
        font-size: 1.5rem;

    }
    .technology-today p {
        padding:5px;
        margin:5px;
        text-align: justify;
    
    }
    #bloc-header h1 {
        position: relative;
        color: rgb(223, 78, 11);
        font-weight: 600;
        font-size: 1.7em;
        left: 20px;
        z-index: 3;
        top: -35px;
    }

    section {
        margin-top: 240px;
        width: 100%;
    }

    main {
        width: 100%;

    }


    .aside-bloc article{
        width:85%;
        margin:auto;

    }


    figure{
        margin:3px;
        padding-right:9px;
    }
}

@media screen and (min-width: 800px) {
    nav {
        margin-top: 100px;
        width: 100%;
    }

    .nav-header ul {
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100vw;
        font-size: 0.8em;
    }

    .logo-header {
        position: relative;
        z-index: 2;
        top: -10px;
        left: 100px;
    }

    #bloc-header h1 {
        position: relative;
        color: rgb(223, 78, 11);
        font-weight: bolder;
        font-size: 2.2em;
        left: 100px;
        z-index: 3;
        top: -50px;
    }

    section {
        margin-top: 100px;
        width: 100%;
    }

    main {
        width: 55%;


    }

    aside {
        width: 30%;
        margin-left: 10px;
        margin-top: -30px;



    }
}

@media screen and (min-width: 1200px) {
    section {
        width: 90%;
    }

    main {
        width: 70%;

    }

    aside {
        width: 30%;


    }
}

.image-with-text {
width:100%;

}

figure img {
    float: left;
    height: 175px;
    width: 175px;
    padding-right: 10px;
    object-fit: cover;
    margin-left: 12px;
 
}

figcaption p {
    padding-left: 10px;
    text-align: justify;
    margin-top: -10px;
}
figcaption p::first-letter {
font-size: 1.4em;
}


aside {
    display: flex;
    width: 200px;
    color: rgb(52, 52, 139);

    flex-direction: column;

}

.article1,
.article2,
.article3 {
    border: 2px dashed rgb(52, 52, 139);
    border-radius: 2%;
    padding: 10px;
    margin: 10px;
    width: 320px;
    margin: 20px auto;
}

.article1 h1 {
    color: rgb(223, 78, 11);
}

aside article a {
    font-family: 'Arial Narrow Bold', sans-serif;
    color: rgb(223, 78, 11);
}



/*FOOTER*/

footer {

    text-align: center;
    width: 100%;
}

/*----------------------------------------------*/
/*----------------------------------------------*/
/*----------------------------------------------*/
/*-----------------------------SERVICES PAGE--------------------------------*/
.services {
   
    padding: 20px;
  }
  
  .contenu-service {
    text-align: center;
    margin-top: -20px;
  }
  
  .h1-services {
    margin-top: 150px;
    padding-left: 50px;
    font-size: 36px;
    text-align: center;
    
  }
  @media screen and (max-width: 720px) {
    .h1-services{
    padding:0;
    }
    .services {
   
        padding-top:130px;
      }
      
      .contenu-service {
        margin-top:-100px;
       
      }
      .figure-service{
       
        margin:10px;
      }
      figure img{
        border-radius: 10px;
      }
      
      .h1-services {
        padding-top:320px;        
        width:100%;
        margin:auto;
        
      }
      .aside-bloc{
        width:100%;
        margin:auto;
      }
   }

 
  article.images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px; /* Largeur maximale de la section */
    margin: 0 auto;
  }
  
.figure-service {
 border: 3px solid #f2f2f2;
 box-shadow: 1px 1px 1px 2px grey;
 background-color: #f2f2f2;
 border-radius: 10px;
  }
  
  .figure-service img {
    max-width: 100%;
    height: auto;

  }
  
 .figcaption-service {
    font-size: 18px;
    margin-top: 10px;
    margin: 5px;
  }
  
  /* Animation de survol */
  .figure-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
/*----------------------------------------------*/
/*----------------------------------------------*/
/*----------------------------------------------*/
/*-----------------------------OFFRES PAGE--------------------------------*/
main.offres {
    display: flex;
}

main.offres section {
    margin: auto 1em;
    height: 80%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: stretch;
    /*Adaptation hauteur au bloc le plus fourni en texte*/
}

main.offres section article {
    flex: 1 1 30%;
    margin: 0 .5em;
    padding: 1em;
    border: 2px solid rgb(223, 78, 11);
    box-shadow: 10px 10px 10px silver;
    background-color: rgb(228, 216, 216);
}

/*----------------------------------------------*/
/*----------------------------------------------*/
/*----------------------------------------------*/
/*-----------------------------CONTACT PAGE--------------------------------*/


main.contact {
    display: flex;
}

main.contact section {
    flex: 1 1 60%;
    margin: auto 1em;
}

main.contact section form fieldset {
    margin: .5em 0;
    padding: 1em;
    border: 2px solid rgb(223, 78, 11);
    border-radius: 10px;
}

main.contact section form legend {
    color: rgb(223, 78, 11);
    font-weight: bolder;
}

main.contact section form p {
    margin: .5em;
}

main.contact section form label {
    color: rgb(223, 78, 11);
    font-weight: bolder;
    display: inline-block;
    width: 40%;
    text-align: right;
}

main.contact section form input:not(input[type="submit"]) {
    width: 400px;
}

main.contact section form input::placeholder {
    font-style: italic;
}

main.contact aside {
    flex: 1 1 40%;
}