/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




/* Styles généraux */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Barre de navigation */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #4d78dd;
    z-index: 1000;
}

header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 10px;
}

header nav ul .logo {
    margin-right: auto;
}


header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Section générale */
section {
    padding: 100px 50px 50px;
    text-align: center;
}


section h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.logo-wrapper {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}


/* Section Accueil */
#accueil {
    padding-top: 100px;
    padding-bottom: 10px;
}

.accueil-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.accueil-text {
    flex: 1;
    text-align: justify;
}

.title-color {
    color: #4d78dd;
}

.accueil-text p {
    margin-bottom: 20px;

}

    

.accueil-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accueil-image img {
    max-width: 100%;
    height: auto;
    /*border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);*/
}

/* Section Services */
#services {
    padding-bottom: 20px;
}

#services .services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    position: relative;
    margin-top: 40px;
}

#services h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

#services .service {
    flex: 1;
    margin: 15px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

#services .service p {
    text-align: justify;
}

.service-logo-wrapper {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 5px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.service-logo {
    width: 60px;
    height: 60px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#services .service-image {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
}

/* Section Contact */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 10rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}


.contact-info i {
    margin-right: 0.5rem;
    color: #4d78dd;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #4d78dd;
}

/* Formulaire */
form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 650px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form textarea {
    height: 200px;
    resize: none;
}

form button {
    width: 100%;
    padding: 0.75rem;
    background-color: #4d78dd;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: blue;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    background-color: #4d78dd;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Media Queries pour la responsivité */
@media (max-width: 1024px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    #services .service {
        width: 100%;
        max-width: 500px;
        margin-bottom: 50px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .contact-info, form {
        width: 100%;
        max-width: 500px;
    }
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    header nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: white;
        align-items: right;
    }
    
    header nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 10px 0;
    }
    
    header nav ul.show {
        display: flex;
    }
    
    header nav ul li {
        margin: 10px 0;
    }
    
    header nav ul .logo {
        display: none;
    }
    

    header nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }

    header nav ul li a {
        color: #4d78dd;
    }

    header nav ul .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .accueil-content {
        flex-direction: column;
    }

    .accueil-text, .accueil-image {
        width: 100%;
    }

    section {
        padding: 80px 20px 30px;
    }

    #accueil {
        padding-top: 100px;
    }

    .services-container {
        flex-direction: column;
        align-items: stretch;
    }

    #services .service {
        width: 100%;
        max-width: none;
        margin: 0 0 50px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header nav ul li a {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .logo-wrapper, .logo-img {
        width: 30px;
        height: 30px;
    }

    .service-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .service-logo {
        width: 50px;
        height: 50px;
    }

    .services-container {
        gap: 40px;
    }

    #services .service {
        margin: 0 0 40px 0;
    }
}