/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f4f4;
    color: #222;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}


/* =========================
   HEADER
========================= */

.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.left-actions,
.right-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
}

.search-bar input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: #222;
}

.search-bar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: #f7c400;
    color: #1a1a1a;
    font-weight: bold;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.logo img {
    width: 140px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.main-nav {
    background: #ececec;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #dadada;
    padding: 0 12px;
}

.nav-item > a {
    display: block;
    padding: 14px 18px;
    color: #3c3c3c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.2s ease;
}


/* =========================
   NAVIGATION
========================= */

/* =========================
   LIEN ACTIF DANS LA NAV
========================= */

.nav-item > a.active,
.nav-item.active > a {
    color: #f7c400;
    background: #ffffff;
    box-shadow: inset 0 -4px 0 #f7c400;
}

.dropdown li a.active {
    color: #f7c400;
    font-weight: 800;
    background: #fff8df;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item {
    position: relative;
}


.nav-item:hover > a {
    color: #f7c400;
    background: #f7f7f7;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    list-style: none;
    display: none;
    overflow: hidden;
    z-index: 999;
}

.dropdown li a {
    display: block;
    padding: 14px 16px;
    color: #333;
    font-size: 14px;
    background: white;
    transition: 0.2s ease;
}

.dropdown li a:hover {
    background: #f5faff;
    color: #f7c400;
}

.nav-item:hover .dropdown {
    display: block;
}


.hero-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 14px 28px;
    background: #f7c400;
    color: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.2s ease;
}

.hero-btn:hover {
    background: #f7c400;
}



/* =========================
   FOOTER
========================= */
.site-footer {
    background: #808080;
    color: white;
    margin-top: 0;
    padding: 50px 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
    gap: 35px;
    align-items: start;
}

.footer-logo-block {
    max-width: 260px;
}

.footer-logo img {
    width: 160px;
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.footer-map h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #f7c400;
    text-transform: uppercase;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #f2f2f2;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #f7c400;
    text-transform: uppercase;
}

.footer-column p,
.footer-column a {
    display: block;
    color: white;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-item i {
    color: #f7c400;
    font-size: 18px;
    min-width: 22px;
    margin-top: 6px;
}

.footer-item a,
.footer-item p {
    margin-bottom: 0;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: #f7c400;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom a,
.footer-bottom p {
    color: white;
    font-size: 14px;
}

.repair-simple-btn {
    display: inline-block;
    background: #f7c400;
    color: #1f1f1f;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    transition: 0.2s ease;
}

.repair-simple-btn:hover {
    background: #e4b500;
}



/* Sur mobile, on évite que le header fixe prenne trop de place */
@media (max-width: 700px) {
    .topbar {
        position: static;
    }

    .main-nav {
        position: sticky;
        top: 0;
        z-index: 9999;
    }
}


/* =========================
   ANIMATIONS AU SCROLL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.7s ease, transform 1.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   BOUTON RETOUR EN HAUT
========================= */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #f7c400;
    color: #111;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition: 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: #ffd500;
}

.back-to-top.show {
    display: flex;
}


.best-seller-target {
    position: relative;
    overflow: hidden;
}

.best-seller-banner {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 150px;
    padding: 8px 0;
    background: #e11d2e;
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    transform: rotate(45deg);
    transform-origin: center;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    pointer-events: none;
}



#horaires {
    scroll-margin-top: 150px;
}

/* =========================
   CORRECTION RESPONSIVE GLOBAL MOBILE
========================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 700px) {
    .site-header-sticky {
        position: relative;
    }

    .topbar {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 18px 14px;
        gap: 14px;
    }

    .left-actions,
    .right-brand {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .logo img {
        width: 110px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding: 0;
    }

    .nav-list {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .nav-item > a {
        white-space: nowrap;
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* =========================
   RÉSULTATS DE RECHERCHE
========================= */

.site-search-results {
    background: #f4f4f4;
    padding: 35px 20px;
}

.site-search-results-content {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-top: 5px solid #f7c400;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    position: relative;
}

.site-search-results-content h2 {
    color: #111;
    font-size: 30px;
    margin-bottom: 8px;
    text-align: center;
}

.site-search-results-content p {
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.site-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.site-search-result-card {
    display: block;
    background: #f7f7f7;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.site-search-result-card strong {
    display: block;
    color: #111;
    font-size: 20px;
    margin-bottom: 8px;
}

.site-search-result-card span {
    color: #666;
    font-size: 15px;
}

.site-search-result-card:hover {
    border-color: #f7c400;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(247, 196, 0, 0.25);
}

.site-search-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f7c400;
    color: #111;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 800px) {
    .site-search-results-grid {
        grid-template-columns: 1fr;
    }

    .site-search-results-content {
        padding: 26px 20px;
    }

    .site-search-results-content h2 {
        font-size: 24px;
    }
}

/* =========================
   RESPONSIVE FOOTER MOBILE
========================= */

@media (max-width: 800px) {
    .site-footer {
        padding: 35px 18px 20px;
        overflow: hidden;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo-block {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-logo img {
        margin: 0 auto 16px;
    }

    .footer-column h3,
    .footer-map h3 {
        font-size: 22px;
        text-align: center;
    }

    .footer-item {
        justify-content: center;
        text-align: left;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-column p,
    .footer-column a {
        text-align: center;
        word-break: break-word;
    }

    .footer-map iframe {
        width: 100%;
        max-width: 320px;
        height: 180px;
        margin: 0 auto;
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom p,
    .footer-bottom a {
        text-align: center;
    }
}