/* Charte Multimécanique : surcharge les couleurs du thème d'origine (jaune #ffcc00 -> rouge du logo) */
:root {
    --mm-red: #d3122a;
    --mm-red-dark: #a50e21;
    --mm-dark: #1a1a1a;
    --mm-grey: #f3f2f2;
}

/* Logo : même hauteur totale (~47px) que le bandeau texte d'origine, sinon il masque le haut des pages */
.logo {
    background: #fff;
    border-top: none;
    border-bottom: solid 3px var(--mm-red);
    padding: 2px 0;
    line-height: 0;
}

.logo .logo-img {
    height: 40px;
    width: auto;
}

/* Prix, remises et badges des véhicules */
.car_card .price_info {
    background: var(--mm-red);
}

.car_card .price_info .price_block,
.car_card .price_info .price_block * {
    color: #fff !important;
}

.vertical-card .remise_block,
.vertical-card a:hover .remise_block {
    background: var(--mm-red) !important;
    border-color: var(--mm-red) !important;
    color: #fff !important;
}

.car_badges {
    color: #fff;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

/* Accents */
.hamburger ion-icon,
.link-content h3 ion-icon,
.link-arrow,
.prev ion-icon,
.next ion-icon,
.service-box ion-icon,
.service-box h3 ion-icon,
.service-item h3 ion-icon,
.contact-info p ion-icon,
.contact-horaires ion-icon,
.footer-social ion-icon,
.nav-links a:hover,
.footer-links a:hover {
    color: var(--mm-red) !important;
}

.dot.active {
    background: var(--mm-red);
}

.cta-button {
    background: var(--mm-red);
    color: #fff;
}

.cta-button:hover {
    background: var(--mm-red-dark);
}

.btn.homeSearchBtn {
    background: var(--mm-red) !important;
    color: #fff !important;
    border-color: var(--mm-red) !important;
}

.btn.homeSearchBtn:hover {
    background: var(--mm-red-dark) !important;
    border-color: var(--mm-red-dark) !important;
}

.btn-style2:hover {
    background: var(--mm-red) !important;
    border-color: var(--mm-red) !important;
}

#quicksearch {
    border-bottom: solid 1px var(--mm-red);
}

.additional-services,
.contact {
    border-top: solid 1px var(--mm-red);
}

.scroll-to-top {
    background-color: var(--mm-red);
}

/* Bannière d'accueil */
.bannerBkg {
    background-image: url("../images/multimecanique/showroom1.jpg");
    background-position: center;
}

/* Cartes services cliquables */
a.service-box {
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.service-box ion-icon {
    font-size: 2.5rem;
}

/* Qui sommes-nous */
.about-history {
    max-width: 1200px;
    margin: 2.5rem auto 0;
}

.about-history img {
    width: 100%;
    border-radius: 10px;
}

/* Contact : deux établissements */
.contact-sites {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 500px;
}

.contact-sites .contact-info {
    width: 100%;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--mm-dark);
}

.contact-info a {
    color: inherit;
}

.contact-horaires {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-horaires ion-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.contact-rgpd {
    font-size: 0.8rem;
    color: #666;
    text-align: left;
}

.contact-rgpd a {
    color: var(--mm-red);
}

.map-section {
    display: flex;
}

.map-section iframe {
    flex: 1;
    height: 320px;
    border: 0;
}

/* Footer */
.footer-sites {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto 0;
    text-align: left;
    font-size: 0.9rem;
}

.footer-sites a,
.footer-copy a {
    color: #fff;
}

.footer-copy {
    text-align: center;
}

/* Pages internes (services, mentions légales) */
.page-banner {
    background: no-repeat center/cover;
    padding: 130px 1rem 40px;
    color: #fff;
}

.page-banner .overlay {
    background: rgba(0, 0, 0, 0.55);
    display: inline-block;
}

.services-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 1rem;
    background: var(--mm-dark);
}

.services-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.services-nav a:hover {
    color: var(--mm-red);
}

.service-detail {
    padding: 4rem 2rem;
    scroll-margin-top: 110px;
}

.service-detail.alt {
    background: var(--mm-grey);
}

.service-detail-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail-text {
    flex: 1 1 450px;
}

.service-detail-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: solid 3px var(--mm-red);
    display: inline-block;
}

.service-detail-image {
    flex: 1 1 400px;
    text-align: center;
}

.service-detail-image img {
    max-width: 100%;
    border-radius: 10px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}

.service-list ion-icon {
    font-size: 1.6rem;
    color: var(--mm-red);
    flex-shrink: 0;
}

.service-list img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.partners {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.partners img {
    max-height: 50px;
    width: auto;
}

.legal {
    padding: 3rem 1rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal h2 {
    font-size: 1.6rem;
    margin: 2rem 0 0.8rem;
    color: var(--mm-red);
    scroll-margin-top: 110px;
}

.legal h3 {
    font-size: 1.15rem;
    margin: 1.2rem 0 0.5rem;
}

@media (max-width: 768px) {
    .contact-sites {
        width: 100%;
        max-width: 350px;
    }

    .map-section {
        flex-direction: column;
    }


    .service-detail {
        padding: 2.5rem 1rem;
    }
}
