/* ************************************************************************************
                                  style tous
************************************************************************************ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.container {
    /* max-width: 1200px; */
    margin: auto;
    overflow: hidden; /* Mba hisorohana ny olana amin'ny floating elements */
    position: relative;
    width: 100%;
 }

 /* .container {
    width: 100%;
    position: relative;
} */
.container #img-header {
    width: 100%;
    filter: brightness(50%);
}
.center {
    position :absolute;
    text-align: center;
    top: 35%;
    left: 12%;
}

.center h2{
    font-size: 50px;
    color: #fff;
}
.center p{
    font-size: 20px;
    color: #fff;
    padding-bottom: 20px;
}
.btn-primary {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: bold;
 }
 
 .btn-primary:hover {
    background: #218838;
 }

 /* Testimonials */
 .testimonial-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 4px;
 }
 
 .testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
 }
 
 .testimonial-item strong {
    display: block;
    text-align: right;
    color: #555;
 }
/* ************************************************************************************
                                  style body
************************************************************************************ */
body {
    background: #f4f4f4;
    color: #333;
}

/* ************************************************************************************
                                  style header
************************************************************************************ */
header {
    background-color: #3894f7;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 95%; */
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 10px;
}

nav .links {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

nav .links li {
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
}

nav .links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav .links a #icon {
    display: none;
}

nav .links a:hover {
    border-bottom: 2px solid blue;
    color:blue;
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu .line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    border-radius: 2px;
}

#nav-toggle {
    display: none;
}
header nav form {
    display: flex;
    align-items: center;
}

header nav form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    background-color: rgb(100,200,208);
    border-radius: 8px;
}
.input_search::placeholder {
    color: white;
}

header nav form button {
    background: #444;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #fff;
}
@media (max-width: 1200px) and (min-width: 992px){
    nav .links li {
        margin-left: 15px;
        margin-right: 15px;
        position: relative;
    }
}

@media (max-width: 992px) and (min-width: 768px){
    nav {
        padding-left: 3%;
        padding-right: 3%;
    }
    nav .links li {
        margin-left: 10px;
        margin-right: 10px;
        position: relative;
    }
    nav .logo img {
        width: 50px;
        height: 50px;
        /* border-radius: 10px;
        margin-right: 10px; */
    }
    .center {
        position :absolute;
        text-align: center;
        top: 20%;
        left: 15%;
    }
    .center h2{
        font-size: 30px;
        color: #fff;
    }
    .center p{
        font-size: 15px;
        color: #fff;
        padding-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
    nav .links a #icon {
        display: contents;
        background:MistyRose;
    }
    nav .links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 90px;
        left: 0;
        background-color: #3894f7;
        transition: all .5s ease-in-out;
    }

    nav .links li {
        text-align: left;
        margin: 10px 0;
        left: 5%;
    }

    header nav form input {
        width: 90%;
        padding: 0.5rem;   
    }

    header nav form {
      margin: 5%;
    }

     /* Show menu when toggled */
    #nav-toggle:checked + .burger-menu + .links {
        display: flex;
    }

    /* nav :checked ~ .links{
        bottom: 0;
    } */
    nav :checked ~ .burger-menu .line:nth-child(1){
        transform: translateY(8px) rotate(225deg);
    }
    nav :checked ~ .burger-menu .line:nth-child(3){
        transform: translateY(-8px) rotate(-225deg);
    }
    nav :checked ~ .burger-menu .line:nth-child(2){
        opacity: 0;
    }
}
@media (max-width: 768px) and (min-width: 501px){
    .center {
        position :absolute;
        text-align: center;
    }
    .center h2{
        font-size: 20px;
        color: #fff;
    }
    .center p{
        font-size: 15px;
        color: #fff;
        padding-bottom: 20px;
    }
}
@media (max-width: 500px){
    .center {
        position :absolute;
        text-align: center;
        margin: auto;
    }
    .center h2{
        font-size: 15px;
        color: #fff;
    }
    .center p{
        font-size: 10px;
        color: #fff;
        padding-bottom: 20px;
    }
}

/* ************************************************************************************
                                  style main
************************************************************************************ */
main {
    padding: 100px 20px 20px;
}

section {
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-bottom: 1rem;
    color: #3894f7;
}


/* ************************************************************************************
                                  style section home
************************************************************************************ */
section#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #fff;
}


.home-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.home-text {
    flex: 1;
    text-align: justify;
}

.home-text h1{
    text-align: center;
}

.home-image {
    flex: 1;
    width: 100%;
}

.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        width: 100%;
    }
}
@media (max-width: 400px) {
    .home-content{
        flex-direction: column;
        justify-content: space-around;
        width: 100%;
    }
}

/* ************************************************************************************
                                  style section about
************************************************************************************ */
section#about .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: justify;
}

section#about .about-item {
    flex: 1 1 calc(50% - 2rem);
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}
section#about .about-item ul{
    padding-left: 50px;
}

@media (max-width: 768px) {
    section#about .about-item {
        flex: 1 1 100%;
    }
}

/* ************************************************************************************
                                  style section service
************************************************************************************ */
section#services {
    text-align: justify;
}
#searchInput {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.software-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.software-item {
    flex: 1 1 calc(50% - 2rem);
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.software-item ul{
    padding-left: 50px;
}

.software-item img {
    max-width: 100%;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .software-item {
        flex: 1 1 100%;
    }
    .software-item img {
        max-width: 100%;
        height: auto;
    }
}

/* ************************************************************************************
                                  style section contact
************************************************************************************ */
section#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* text-align: center; */
    padding: 1rem;
    background-color: #fff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contact-form {
    flex: 1 1 calc(50% - 2rem);
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

#contact-info {
    text-align: center;
    color: #555;
 }
 
 #contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
 }
 
 #contact-info p i {
    margin-right: 10px;
 }
/**style formulaire**/
.texte {
    width: 100%;
    padding: 10px 10px;
    margin: 5px 0;
    color:#081b29;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background: transparent;
}
label{
    color:#081b29;
}
input[type=file]{
    cursor: pointer;
}

.btn_ajout {
    width: 100%;
    background-color: #3894f7;
    color: white;
    padding: 10px 10px;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn_ajout:hover{
    background-color: rgb(100,200,208);
    color: black;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    #contact-info p {
        margin: 0;
    }
}

/* ************************************************************************************
                                  style footer
************************************************************************************ */
footer {
    text-align: center;
    padding: 1rem;
    background: #3894f7;
    color: white;
    margin-top: 1rem;
}

.footer p, .footer a {
    margin: 0.5rem 0;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
a{
    color: white;
    text-decoration: none;
    text-shadow: none;
    justify-content: center;
}
.social-links img {
    width: 15px;
    height: 15px;
}
@media (max-width: 568px) {
    footer{
        width: 100%;
    }
}