main {
    padding: 0;
}

/* Header bleu pleine largeur */
.modules-header {
    background: #1e3c72;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.header-content h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.header-content p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.module-list {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
}

.modules {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.module {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 300px;
    min-height: 350px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0056b3;
}

.module:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.module img {
    height: 120px;
    width: auto;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.module:hover img {
    transform: scale(1.05);
}

.module h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.module p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #6c757d;
    line-height: 1.5;
    flex-grow: 1;
}

.module .cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    align-self: center;
    margin-top: auto;
    pointer-events: none;
}

.module:hover .cta-button {
    background: #003d80;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modules-header {
        padding: 3rem 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .module-list {
        padding: 3rem 1rem;
    }
    
    .modules {
        flex-direction: column;
        align-items: center;
    }

    .module {
        width: 100%;
        max-width: 400px;
        min-height: auto;
    }
}