body {
    
    font-family: Arial, Helvetica, sans-serif;
    color: #133f82;
    margin: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #133f82;
    padding: 10px;
    
}

header .logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
}
/**************reseaux *************************/
#rs{
    width: 5%;
    float: right;
    padding: 20px;
}
#rs a{
    font-size: 30px;
    color: white;
    display: block;/*change leur type inline en block pour les mettre les uns en dessous des autres*/
    text-align: center;
    padding: 15px 30px 0 0;
    text-decoration: none;
}
#rs a:hover{
    font-size: 60px;
    transition: 1s;
}

/**************menu *************************/
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    height: 80vh;
    background: url('../IMG/img1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1, h3{
    background-color: rgba(10, 73, 156, 0.678);
    border-radius: 10px;
    padding: 30px 5%;
}

.hero .btn {
    background: #ffba08;
    padding: 12px 40px;
    border-radius: 5px;
    text-decoration: none;
    color: #133f82;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

/**************Nos services *************************/
.services, .services2, .serviceM, .apropos, .contact, .choisir, .priorite {
    padding: 30px 10%;
    text-align: center;
}

.service-container{
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
}

.service-container h3{
    background: rgba(10, 73, 156, 0.678);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 0px;
}

.service {
    background: #f2f2f2;
    padding: 25px;
    border-radius: 10px;
}

/**************Nos realisations *************************/
.realisation{
    display: grid;
    grid-template-columns: 50% 50%;
    
}
.text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    background: #f2f2f2;
}
.text h2{
    font-size: 3rem;
    margin-bottom: 12px;
}

/*REALISATIONS CAROUSEL*/
.carousel{
    height: 100vh;
    width: 49vw;
    position: relative;
    background: #133f82;
    padding: 0;
    margin: 0 auto;
}
.carousel button{
    position: absolute;
    background: white;
    border: none;
    outline: none;
    font-size: 2.4rem;
    z-index: 2;
    cursor: pointer;
    color: #133f82;
    transform: translateY(-50%);
    top: 50%;
}
.slide img{
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
#prev{
    left: 20px;
}
#next{
    right: 20px;
}
.carousel ul{
    padding: 0;
    margin: 0 auto;
}
.carousel li{
    list-style: none;
}
.carousel .slide, #Infoimg{
    position: absolute;
    align-content: center;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.8s ease-in-out;
    margin: auto;
}
.slide.active, #Infoimg1{
    opacity: 1;
}



/**************A propos et Nous choisir *************************/
.apropos, .choisir{
    background-color: #133f82;
    color: white;
}

.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/**************Formulaire de contact *************************/
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}
label{
    text-align: left;
    size: 20px;
    font-weight: bold;
}
form input, form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #133f82;    
}
form textarea{
    resize: none;
    height: 80px;
}

button {
    margin: 0 auto;
    padding: 12px;
    background: #ffba08;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100px;
}

.contact button:hover{
    transform: scale(1.05);
}

/**************mentions *************************/
.serviceM h3{
    padding: 30px;
    border-radius: 155px;
    width: 40%;
}
.serviceM {
    background: #f2f2f2;
    padding: 60px;
    border-radius: 100px;
    width: 40%;
}

/**************Footer *************************/
footer {
    background: #133f82;
    color: white;
    text-align: center;
    padding: 30px;
}
footer a, a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

footer .gallery {
    gap: 50px;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .service-container, .gallery {
        flex-direction: column;
    }
    .service, .gallery img {
        width: 100%;
    }
    form {
        width: 100%;
    }
}
