/**
 * Optimisation globale de l'apparence du site MPTP
 * Amélioration de la cohérence visuelle, des espacements et de l'expérience utilisateur
 */

/* Optimisations générales */
body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header plus moderne et compact */
header {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

header .logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

header nav ul {
    display: flex;
    gap: 15px;
}

/* Section hero optimisée */
#hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Optimisation des sections de contenu */
section {
    padding: 60px 0;
}

section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

section h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 0;
}

/* Optimisation des cartes de service */
.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
    text-align: center;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-card p {
    text-align: center;
    margin-bottom: 20px;
}

.service-features {
    margin-top: auto;
    padding-left: 0;
    list-style: none;
    text-align: center;
}

.service-features li {
    margin-bottom: 10px;
}

.service-features li i {
    color: var(--primary);
    margin-right: 8px;
}

.service-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--primary);
}

/* Optimisation de la section des marques de moteurs - version ultra-compacte */
.brands-section {
    padding: 30px 0;
    background-color: var(--light-bg);
}

.brands-section h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.brands-container {
    height: 40px;
    margin-bottom: 0;
    overflow: hidden;
}

/* Optimisation du formulaire */
.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 1.8rem;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group.half {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

/* Optimisation du footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info,
.footer-links,
.footer-services {
    flex: 1;
    min-width: 250px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    header nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #hero {
        min-height: 400px;
        padding: 40px 0;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
