/* --- 1. RESET DE SÉCURITÉ --- */
html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #eeeeee;
    background-color: #0e0f11;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, .main-title-maquette, .section-title-maquette {
    font-family: 'Montserrat', sans-serif !important;
}

main {
    flex: 1;
}

main.homepage-main {
    margin-top: 110px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* CORRECTION 1 : Le padding est à 0 pour que l'image colle parfaitement au header */
.hero-wrapper-padded {
    padding: 0 !important; 
    background-color: #0e0f11;
}

/* --- 2. HERO SPLIT (TEXTE À DROITE ET IMAGE VISIBLE) --- */
.hero-split-maquette {
    display: flex !important;
    width: 100% !important;
    height: 380px !important; 
    background-color: #0e0f11;
    position: relative !important; 
    overflow: hidden;
}

/* LE TEXTE : Décalé vers la droite */
.hero-text-block {
    width: 45% !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin-left: 15% !important; 
    padding: 0 !important;
    z-index: 10 !important; 
}

.main-title-maquette {
    font-size: 2.3rem !important;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 700;
    text-transform: none !important;
    white-space: nowrap;
}

.brand-name-red { color: #ce3636 !important; }

.red-bar-left {
    width: 45px;
    height: 4px;
    background-color: #ce3636 !important;
    margin: 12px 0 15px 0;
}

.hero-paragraph {
    font-size: 1rem;
    color: #ffffff !important;
    max-width: 480px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.text-highlight-red { font-weight: 700; color: #ce3636 !important; }

.hero-action-buttons {
    display: flex;
    gap: 15px;
}

/* --- 3. LES BOUTONS --- */
.btn-rect-red {
    display: inline-block;
    background-color: #ce3636;
    color: #ffffff;
    padding: 12px 26px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(206, 54, 54, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-rect-red:hover {
    background-color: #b52b2b;
    box-shadow: 0 6px 25px rgba(206, 54, 54, 0.6);
}

.btn-rect-border {
    display: inline-block;
    border: 1px solid #ce3636;
    color: #ce3636;
    background: transparent;
    padding: 11px 26px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-rect-border:hover {
    background-color: #ce3636;
    color: #ffffff;
}

/* --- 4. L'IMAGE --- */
.hero-image-block {
    width: 50% !important; 
    height: 100% !important;
    position: absolute !important; 
    right: 0 !important;
    top: 0 !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
    z-index: 1 !important;
}

.hero-image-block img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.hero-image-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 150px; 
    background: linear-gradient(to right, #0e0f11 0%, rgba(14,15,17,0) 100%);
    pointer-events: none;
}

/* --- 5. BANDEAU DES MARQUES --- */
.brands-wide-banner {
    background-color: #121316;
    padding: 20px 4%;
    text-align: center;
    border-top: 1px solid #1c1d22;
    border-bottom: 1px solid #1c1d22;
    width: 100%;
}

.brands-wide-banner h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #7d8085;
    margin-bottom: 15px;
    font-weight: 700;
}

.brands-container-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-logo-img {
    width: 70px !important;    /* Largeur identique pour tout le monde */
    height: 40px !important;   /* Hauteur identique pour tout le monde */
    
    object-fit: contain !important; /* Le logo se redimensionne sans jamais se déformer */
    padding: 2.5px !important;        /* Petit espace pour ne pas qu'ils touchent les bords de leur boîte */
    
    filter: grayscale(100%); 
    opacity: 0.6; 
    transition: all 0.3s ease;
}
.brand-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 6. PRESTATIONS SPÉCIALISÉES --- */
.prestations-section-maquette {
    padding: 45px 6% 60px 6%;
    background-color: #0e0f11;
    text-align: center;
    width: 100%;
}

.section-title-maquette {
    font-size: 2.2rem !important;
    text-transform: none !important;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-weight: 700;
}

.prestations-cards-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 30px;
    max-width: 1350px;
    margin: 0 auto 30px auto;
}

.presta-card {
    flex: 1;
    background-color: #121316;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.presta-card:hover {
    transform: translateY(-5px);
}

.presta-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.presta-icon { font-size: 1.8rem; }
.presta-card h3 { color: #ce3636; font-size: 1.25rem; text-transform: uppercase; font-weight: 700; }
.presta-card p { color: #94979e; font-size: 0.95rem; line-height: 1.6; }

.prestations-footer-text {
    font-size: 1rem;
    color: #e0e0e0 !important;
    max-width: 800px;
    margin: 35px auto 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* --- 7. CARTE GOOGLE MAPS --- */
.map-section-homepage {
    background-color: #0e0f11;
    padding: 20px 0 60px 0;
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #1c1d22;
    border-radius: 8px;
    overflow: hidden;
}

.map-address-text {
    text-align: center;
    margin-top: 20px;
}

.map-address-text p {
    font-size: 1.05rem;
    color: #ffffff !important;
    font-weight: 500;
}

/* --- 8. FOOTER --- */
footer {
    width: 100% !important;
    background-color: #0c0d0f !important;
    padding: 25px 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-top: 1px solid #1c1d22 !important;
}

footer p {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    text-align: center !important;
}

/* --- 9. RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .hero-split-maquette {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
    }
    .hero-text-block, .hero-image-block {
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-text-block { padding: 30px 20px !important; margin-left: 0 !important; }
    .main-title-maquette { white-space: normal !important; font-size: 2rem !important; }
    .hero-image-block { height: 260px !important; position: relative !important; }
    .prestations-cards-container { flex-direction: column !important; }
}