/* ========================================= */
/* 1. Styles généraux et de base             */
/* ========================================= */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

main {
    max-width: 1200px;
    margin: auto;
}

section {
    background: #fff;
    padding: 25px 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #005A9C;
}

.button {
    display: inline-block;
    background: #0081C9;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.button:hover {
    background: #005A9C;
}

/* ========================================= */
/* 2. En-tête et Navigation (Menu)           */
/* ========================================= */
header {
    background: #005A9C;
    padding: 10px 0;
    text-align: center;
}

.main-nav {
    position: relative;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0 20px;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s;
}

.main-nav a:hover {
    background: #0081C9;
    border-radius: 5px;
/*    padding: 5px 15px;*/
}

/* ========================================= */
/* 3. Section Hero (Page d'accueil)          */
/* ========================================= */
.hero {
    background: linear-gradient(to right, #005A9C, #0081C9);
    color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.hero-left {
    flex: 1;
    text-align: center;
}

.hero-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 2.5em;
    margin: 0 0 10px 0;
}

.hero p {
    font-size: 1.2em;
    margin: 0;
}

.hero-logo {
    width: 325px;
    height: auto;
}

/* ========================================= */
/* 4. Sections de Contenu (Page d'accueil)   */
/* ========================================= */
.about-us h2,
.services-preview h2,
.partners h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.services-preview {
    text-align: center;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background: #f9f9f9;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
}

.card img {
    width: 200px;
    height: 200px;
    margin-bottom: 5px;
    background-color: transparent;
}

/* Styles pour la section des partenaires */
.partners {
    text-align: center;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap; /* Cette ligne est essentielle */
    justify-content: center;
    align-items: center;
    max-width: 1000px; /* Limite la largeur du conteneur */
    margin: 20px auto 0; /* Centre le conteneur */
    gap: 20px;
}

.partner-logos img {
    height: 60px;
    width: auto;
    flex-basis: calc(25% - 20px); /* Garantit 3 logos par ligne */
    object-fit: contain;
}

.partner-logos img:hover {
/*    filter: grayscale(0%);*/
}

/* ========================================= */
/* 5. Sections de Services (Page services.html)*/
/* ========================================= */
.services-list {
    padding: 5px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 30px 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-item:first-child {
    padding-top: 0;
    padding-bottom: 10px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image-container {
    flex-shrink: 0;
}

.service-item img.service-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-item img.square-illustration {
    height: 200px;
    object-fit: cover;
}

.service-item img.landscape-illustration {
    height: 200px;
    object-fit: cover;
}

/* ========================================= */
/* 6. Section Contact (Page contact.html)     */
/* ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.form-container label {
    margin-top: 15px;
    font-weight: bold;
}

.form-container input, .form-container textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container button {
    background: #0081C9;
    color: #fff;
    border: none;
    padding: 15px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.form-container button:hover {
    background: #005A9C;
}

/* ========================================= */
/* 7. Mentions Légales (Page mentions-legales.html)*/
/* ========================================= */
.legal-mentions h2 {
    border-bottom: 2px solid #005A9C;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* ========================================= */
/* 8. Pied de Page (Footer)                  */
/* ========================================= */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 5%;
}

.footer-content {
    padding-top: 20px;
    border-top: 1px solid #555;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* ========================================= */
/* 9. Styles du Menu Mobile (Sandwich)       */
/* ========================================= */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1000;
}

.nav-toggle .sandwich-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* ========================================= */
/* 10. Styles pour la Responsivité           */
/* ========================================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-right {
        align-items: center;
        text-align: center;
    }
    
    .service-item, .service-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .service-item img.square-illustration,
    .service-item img.landscape-illustration {
        width: 100%;
        height: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Menu Mobile */
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: relative;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #fff;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
    }

    .main-nav ul li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 7px 15px;
        text-decoration: none;
        color: #0081C9;
        font-weight: bold;
        transition: background 0.3s;
    }

    .main-nav ul li a:hover {
        background: #0081C9;
		color: #fff;
        border-radius: 0;
    }
    
    .main-nav.open ul {
        display: flex;
    }
}