/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f8;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    background: #1e3a8a;
    color: white;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    align-items: center;
}
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 10px; /* espace entre les logos */
    justify-content: space-between;
}

/* Style des images de logo */
.logo .header-image {
    height: auto;
    width: auto;
    max-width: 120px; /* ou ce que tu veux pour desktop */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-links a {
    color: white;
    transition: 0.3s;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Bannière */
.banner {
    background-color: #2563eb;
    color: white;
    padding: 60px 0;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.header-text {
    flex: 1;
    min-width: 250px;
}

.header-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.header-image {
    max-width: 300px;
    height: auto;
}

/* Modules */
.modules {
    padding: 50px 0;
}

.modules h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.module-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.module-card img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.module-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.module-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column; /* empile verticalement */
        align-items: flex-start; /* aligné à gauche */
    }

    .logo .header-image {
        max-width: 80%;  /* pour qu'ils restent bien visibles sur mobile */
        margin-bottom: 10px;
    }
    .second-logo {
        margin-left: -60px;
    }
}
