/* Charte Franck Becque Automobiles (www.f-b-automobiles.com) : surcharge les couleurs du thème d'origine (couleurs et logo du site www.f-b-automobiles.com) */
:root {
    --gm-blue: #1b2a8c;
    --gm-blue-dark: #0f1a5e;
    --gm-dark: #03293e;
    --gm-yellow: #f7cf01;
    --gm-grey: #f1f1f1;
}

/* Logo : barre agrandie à ~77px (logo de 70px au lieu de 40px).
   Les 30px de plus sont compensés par le padding du body, pour que le haut des pages
   (recherche rapide, stock, fiche véhicule, bannières) ne passe pas sous la barre fixe. */
.logo {
    background: #fff;
    border-top: none;
    border-bottom: solid 3px var(--gm-blue);
    padding: 2px 0;
    line-height: 0;
}

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

body {
    padding-top: 30px;
}

/* Ancres (#equipe, #atelier, #contact...) : s'arrêtent sous la barre agrandie */
.service-detail,
.legal h2,
section[id] {
    scroll-margin-top: 140px;
}

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

.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(--gm-yellow) !important;
    border-color: var(--gm-yellow) !important;
    color: var(--gm-dark) !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(--gm-blue) !important;
}

.dot.active {
    background: var(--gm-blue);
}

.cta-button {
    background: var(--gm-blue);
    color: #fff;
}

.cta-button:hover {
    background: var(--gm-blue-dark);
}

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

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

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

#quicksearch {
    border-bottom: solid 1px var(--gm-blue);
}

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

.scroll-to-top {
    background-color: var(--gm-blue);
}

/* Bannière d'accueil */
.bannerBkg {
    background-image: url("../images/f-b-automobiles/ban2.jpg");
    background-position: center;
    background-size: cover;
}

/* 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;
}

/* Services de l'accueil : bandeau photo en tête de carte */
.service-box .service-img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.service-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-box li {
    padding: 0.2rem 0;
}

/* Vos avantages */
.advantages {
    padding: 4rem 2rem;
    background: var(--gm-dark);
    color: #fff;
    text-align: center;
}

.advantages h2 {
    color: #fff;
    margin-bottom: 2.5rem;
}

.advantages-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage {
    flex: 1 1 250px;
    max-width: 340px;
}

.advantage img {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
}

.advantage h3 {
    color: var(--gm-yellow);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

/* Itinéraire */
.itineraire {
    max-width: 900px;
    margin: 1.5rem auto 0;
    font-size: 0.95rem;
}

.itineraire h3 {
    color: var(--gm-blue);
    font-size: 1.2rem;
}

/* Contact : fiches établissement côte à côte (pas de formulaire) */
.contact-sites {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.contact-sites .contact-info {
    width: 460px;
    max-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(--gm-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(--gm-blue);
}

.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(--gm-dark);
}

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

.services-nav a:hover {
    color: var(--gm-yellow);
}

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

.service-detail.alt {
    background: var(--gm-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(--gm-blue);
    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(--gm-blue);
    flex-shrink: 0;
}

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

.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(--gm-blue);
    scroll-margin-top: 110px;
}

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

@media (max-width: 768px) {

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


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

/* Accueil sans texte de bannière : la recherche rapide suffit */
.bannerBkg.no-hero {
    padding-bottom: 2rem;
}

/* Logos des marques (repris du site d'origine) */
.brands {
    padding: 2.5rem 1rem 1.5rem;
    background: #fff;
}

.brands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 1.6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.brand img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand:hover img {
    transform: scale(1.12);
}

/* Accroche (texte du site d'origine) */
.pitch {
    padding: 3.5rem 2rem;
    background: var(--gm-grey);
    text-align: center;
}

.pitch h2 {
    margin-bottom: 1.8rem;
}

.pitch-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 850px;
    text-align: left;
}

.pitch-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
}

.pitch-list ion-icon {
    color: var(--gm-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.legal-container ul {
    padding-left: 1.2rem;
}

/* Page Stock : les cartes commencent sous le menu fixe (44px) + la barre du logo (47px) */
.featured-links.stock-links {
    margin-top: 91px;
    padding-top: 2rem;
}

/* ------------------------------------------------------------------ */
/* Blocs repris du site d'origine                                       */
/* ------------------------------------------------------------------ */

/* Bannière vidéo (si le site d'origine en a une) */
.bannerBkg.has-video {
    position: relative;
    overflow: hidden;
}

.bannerBkg .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bannerBkg.has-video > *:not(.hero-video) {
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* Accroches */
.pitch.pitch-white {
    background: #fff;
}

.pitch-intro {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.pitch-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.05rem;
}

.pitch-text h2 {
    text-align: center;
}

.pitch h2 strong {
    color: var(--gm-blue);
}

.pitch-text a {
    color: var(--gm-blue);
}

/* Logos des activités */
.activity-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin: 0 0 2rem;
}

.activity-logos img {
    height: 90px;
    width: auto;
    max-width: 220px;
}

.service-detail-text .activity-logos {
    justify-content: flex-start;
    gap: 1rem 2rem;
}

.service-detail-text .activity-logos img {
    height: 60px;
}

/* Avantages / services : icônes, cartes cliquables et cartes photo */
a.advantage {
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

a.advantage:hover {
    transform: translateY(-6px);
    color: #fff;
}

.advantage ion-icon {
    font-size: 64px;
    color: var(--gm-yellow);
    margin-bottom: 1rem;
}

.advantage.photo img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

/* Page services */
.services-intro {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-dark);
}

.two-cols {
    columns: 2;
    column-gap: 2rem;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}

.service-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer : mention complémentaire */
.footer-note {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.8;
    margin: 1.5rem 0 0;
}

@media (max-width: 768px) {
    .two-cols {
        columns: 1;
    }

    .activity-logos img {
        height: 60px;
    }
}
