/* 
 * single-page.css
 * Layout: ScoutCar exact structure
 * Mobile-first, desktop ≥ 960px = 2 columns
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --green:       #0a7a2c;
    --green-dk:    #055e24;
    --green-lt:    #e8f5ec;
    --red:         #e63946;
    --border:      #eef0f3;
    --bg:          #f5f6f8;
    --white:       #ffffff;
    --text:        #1a1a1a;
    --text2:       #4a5d70;
    --muted:       #888;
    --shadow:      0 2px 12px rgba(0,0,0,.07);
    --shadow-md:   0 6px 24px rgba(0,0,0,.11);
    --r:           12px;
    --r-sm:        8px;
    --font:        'DM Sans', sans-serif;
    --font-d:      'Sora', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.moto-details-layout {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ──────────────────────────────────────────── */
.moto-page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ═══════════════════════════════════════════════════════════
   1. GALLERY — fond blanc complet, image centrée
   ═══════════════════════════════════════════════════════════ */
.moto-gallery-section {
    width: 100%;
    background: #ffffff;
    /* Déborde sur toute la largeur même si le parent a un bg gris */
    position: relative;
    z-index: 1;
}

/* Conteneur global */
.moto-gallery-wrapper {
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 70px;
    touch-action: pan-y;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    /* Force blanc sur toute la largeur du wrapper */
    min-height: 100%;
}

/* Pseudo-element pour forcer le fond blanc sur tout le wrapper y compris les marges */
.moto-gallery-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 0;
    pointer-events: none;
}

.moto-gallery-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Zone de défilement */
.moto-gallery-slider-track {
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.moto-gallery-slider {
    display: flex;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.moto-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.moto-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

/* Flèches — dans les marges latérales, PAS sur la photo */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: #555;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    color: #fff; font-size: .85rem;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.gallery-arrow:hover  { background: #222; }
.gallery-arrow.prev   { left: 10px; }
.gallery-arrow.next   { right: 10px; }

/* Counter — sur la photo, en bas à droite */
.gallery-counter {
    position: absolute;
    bottom: 14px; right: calc(70px + 14px);   /* tient compte du padding */
    background: rgba(20,20,20,.65); color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    backdrop-filter: blur(4px); z-index: 10;
    letter-spacing: .3px;
}

/* Dots — cachés sur desktop (ScoutCar n'en a pas) */
.gallery-dots { display: none; }

/* Gallery placeholder */
.moto-gallery-placeholder {
    height: 300px; background: #f0f2f5;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: var(--muted); font-size: .9rem;
}
.moto-gallery-placeholder i { font-size: 2.5rem; opacity: .4; }

/* Default image slide */
.moto-gallery-slide--default {
    background: #ffffff;
}
.moto-gallery-slide--default img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 80%;
    object-fit: contain;
    opacity: .85;
}

/* Thumbnails strip */
.moto-thumbnails-strip {
    display: flex; gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
    justify-content: center;   /* centré comme ScoutCar */
}
.moto-thumbnails-strip::-webkit-scrollbar { display: none; }

.moto-thumb-item {
    flex: 0 0 84px; height: 64px;
    border-radius: 6px; overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .65;
    transition: border-color .2s, opacity .2s;
}
.moto-thumb-item.active,
.moto-thumb-item:hover { border-color: var(--green); opacity: 1; }
.moto-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ═══════════════════════════════════════════════════════════
   2. CONTENT ROW — mobile: stacked; desktop: 2 columns
   ═══════════════════════════════════════════════════════════ */
.moto-content-row {
    display: flex;
    flex-direction: column;     /* mobile: stacked */
    gap: 0;
    padding: 0;
}

/* ── Main column ── */
.moto-main-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Sidebar column ── */
.moto-sidebar-col {
    width: 100%;
}

.moto-sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* ═══════════════════════════════════════════════════════════
   3. CARDS — shared styles (mobile = borderless blocks)
   ═══════════════════════════════════════════════════════════ */
.moto-detail-section,
.moto-detail-card,
.dealer-moto-card {
    background: var(--white);
    border-bottom: 6px solid var(--bg);
    padding: 20px 16px;
}

.section-title,
.moto-detail-card-header h3 {
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   4. HEADER — titre, prix, tags, partage
   ═══════════════════════════════════════════════════════════ */
.header-moto-section { padding: 16px 16px 0; border-bottom: none; }

.header-moto-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.moto-title {
    font-family: var(--font-d);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
    flex: 1;
}

.moto-price {
    font-family: var(--font-d);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0a7a2c;
    white-space: nowrap;
}

.header-moto-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 16px;
    border-bottom: 6px solid var(--bg);
}

.moto-date { font-size: .78rem; color: var(--muted); }

/* Share block */
.share-block { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-title  { font-size: .82rem; font-weight: 600; color: var(--text2); }
.share-icon   {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg); display: inline-flex;
    align-items: center; justify-content: center;
    color: var(--text2); text-decoration: none;
    transition: background .2s, color .2s;
}
.share-facebook:hover { background: #e8f0fe; color: #1877f2; }
.share-whatsapp:hover  { background: #e8f8ed; color: #25d366; }

/* ═══════════════════════════════════════════════════════════
   5. OVERVIEW — quick tags row
   ═══════════════════════════════════════════════════════════ */
.overview-moto-section { padding: 14px 16px; border-bottom: none; }

.moto-overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
}
.overview-item .label { font-size: .75rem; color: var(--muted); font-weight: 500; }
.overview-item .value { font-size: .82rem; font-weight: 700; color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   6. DESCRIPTION — collapsible
   ═══════════════════════════════════════════════════════════ */
.description-moto-section { border-bottom: 6px solid var(--bg); }

.moto-description-text {
    font-size: .88rem;
    line-height: 1.75;
    color: var(--text2);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.description-collapsed {
    max-height: 88px;
    overflow: hidden;
    position: relative;
}
.description-collapsed::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.btn-voir-plus {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; background: none; border: none;
    color: var(--green); font-family: var(--font);
    font-size: .83rem; font-weight: 700;
    cursor: pointer; padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .2s;
}
.btn-voir-plus:hover { opacity: .75; }
.btn-voir-plus i { font-size: .72rem; transition: transform .25s; }
.btn-voir-plus.expanded i { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════════════════
   7. DETAILS GRID — 2 col
   ═══════════════════════════════════════════════════════════ */
.moto-details-card { border-bottom: 6px solid var(--bg); }

/* ═══════════════════════════════════════════════════════════
   8. DEALER CARD
   ═══════════════════════════════════════════════════════════ */
.dealer-moto-card {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-bottom: 6px solid var(--bg) !important;
    padding: 20px 16px !important;
}

.dealer-info {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;      /* espace entre info et ligne */
}

.dealer-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--green-lt);
    display: flex; align-items: center; justify-content: center;
    color: var(--green); font-size: 1.5rem; flex-shrink: 0; overflow: hidden;
}
.dealer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dealer-avatar img.is-default { object-fit: contain; }

.dealer-details { flex: 1; }
.dealer-name {
    font-family: var(--font-d); font-size: .95rem; font-weight: 700;
    margin: 0 0 4px; color: var(--text);
}
.dealer-location, .dealer-address {
    font-size: .78rem; color: var(--text2); margin: 2px 0;
    display: flex; align-items: center; gap: 5px;
}
.dealer-location i, .dealer-address i { color: var(--green); font-size: .72rem; }

/* Contact buttons — séparés par une ligne grise simple */
.dealer-contact {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e3e8ed;
    margin-top: 0;
}

.btn-contact {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* icône gauche, texte poussé à droite */
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: .88rem;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #fff !important;
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    white-space: nowrap;
}

/* Même vert exact pour les deux boutons */
.btn-phone-green,
.btn-whatsapp { background: #0a7a2c; }

/* Icône téléphone : orientée vers la droite */
.btn-phone-green .fa-phone-alt,
.btn-phone-green .fa-phone {
    transform: scaleX(-1);
    font-size: .95rem;
    flex-shrink: 0;
}

/* Icône WhatsApp */
.btn-whatsapp .fa-whatsapp {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10,122,44,.35);
    opacity: .92;
    color: #fff !important;
    text-decoration: none !important;
}
.btn-contact:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   9. STICKY BOTTOM BAR — mobile only
   ═══════════════════════════════════════════════════════════ */
.moto-sticky-contact {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    z-index: 200; gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   10. SUGGESTIONS — Card Slider
   ═══════════════════════════════════════════════════════════ */
.sc-sugg-widget {
    background: var(--white);
    border-bottom: 6px solid var(--bg);
    overflow: hidden;
    padding: 0;
}
.sc-sugg-header { padding: 18px 16px 12px; }
.sc-sugg-title {
    font-family: var(--font-d); font-size: .95rem;
    font-weight: 800; color: var(--text); margin: 0 0 4px;
}
.sc-sugg-subtitle { font-size: .78rem; color: var(--muted); margin: 0; }

/* ── Slider container ── */
.sc-slider {
    padding: 0 16px 4px;
    overflow: hidden;
}

.sc-slider-track {
    display: flex;
    gap: 12px;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Card ── */
.sc-slider-card {
    flex: 0 0 calc(50% - 6px);   /* 2 per slide by default */
    min-width: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sc-slider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    text-decoration: none !important;
    color: inherit;
}

/* Card image */
.sc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f2f5;
}

.sc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.sc-slider-card:hover .sc-card-img img {
    transform: scale(1.04);
}

/* Card info */
.sc-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    background: #ffffff;
}

.sc-card-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.sc-card-price {
    font-size: .9rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    letter-spacing: -.2px;
}

/* Vendor row — avatar + name like ScoutCar */
.sc-card-vendor {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* Circle wrapper — guarantees clip on all browsers */
.sc-card-vendor-avatar-wrap {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
    background: var(--green-lt);
}

.sc-card-vendor-avatar {
    width: 22px;
    height: 22px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.sc-card-vendor-avatar.is-default { object-fit: contain; }

.sc-card-vendor-name {
    font-size: .72rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* ── Controls (arrows + dots) ── */
.sc-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px 16px;
}

.sc-slider-arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    transition: background .18s, border-color .18s, color .18s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.sc-slider-arrow:hover,
.sc-slider-arrow:focus {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.sc-slider-arrow:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* Dots */
.sc-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sc-slider-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #d0d7e0;
    cursor: pointer;
    transition: background .2s, width .2s, border-radius .2s;
    -webkit-tap-highlight-color: transparent;
}

.sc-slider-dot.active {
    background: var(--green);
    width: 20px;
    border-radius: 4px;
}

/* ── Empty state ── */
.sc-sugg-empty {
    padding: 24px 16px;
    color: #bbb;
    font-size: .83rem;
    text-align: center;
    margin: 0;
}

/* ── Footer ── */
.sc-sugg-footer { padding: 4px 16px 16px; border-top: 1px solid var(--border); }
.sc-sugg-btn-voir {
    display: inline-flex; align-items: center; gap: 9px;
    background: transparent !important; color: var(--green) !important;
    font-size: .85rem; font-weight: 700; padding: 0; border: none;
    text-decoration: none !important; cursor: pointer;
    font-family: var(--font); transition: opacity .18s;
    margin-top: 12px;
}
.sc-sugg-btn-voir:hover { opacity: .7; box-shadow: none !important; transform: none; }
.sc-sugg-btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green); flex-shrink: 0; transition: background .18s;
}
.sc-sugg-btn-voir:hover .sc-sugg-btn-icon { background: var(--green-dk); }
.sc-sugg-btn-icon svg { display: block; }

/* Boost badges */
.sc-sugg-badge {
    position: absolute; top: 6px; left: 6px;
    font-size: 9px; font-weight: 700;
    padding: 3px 8px; border-radius: 5px;
    display: inline-flex; align-items: center; gap: 3px;
    pointer-events: none; z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.sc-badge-alaune  { background: linear-gradient(135deg,#f5e6b8,#e8d5a0); color:#7a6520; border:1px solid #d4c07c; }
.sc-badge-alaune i { color: #b8960c; font-size: 8px; }
.sc-badge-urgent  { background: linear-gradient(135deg,#e63946,#c62d39); color:#fff; }
.sc-badge-urgent i { font-size: 8px; }

/* ── Mobile (< 960px): always 2 cards per slide ── */
@media (max-width: 959px) {
    .sc-slider-card { flex: 0 0 calc(50% - 6px); }
}

/* ── Desktop (≥ 960px): revert to original vertical list layout ── */
@media (min-width: 960px) {

    .sc-sugg-widget {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .sc-sugg-header { padding: 18px 20px 12px; }
    .sc-sugg-footer { padding: 4px 20px 16px; }

    /* Hide slider controls on desktop */
    .sc-slider-controls { display: none; }

    /* Track: vertical list, no sliding */
    .sc-slider {
        padding: 0;
        overflow: visible;
    }
    .sc-slider-track {
        flex-direction: column;
        gap: 0;
        transform: none !important;
        transition: none !important;
    }

    /* Each card = horizontal row (image left, info right) */
    .sc-slider-card {
        flex: none !important;
        width: 100% !important;
        flex-direction: row;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        padding: 12px 20px;
        gap: 12px;
        align-items: center;
    }

    .sc-slider-card:hover {
        transform: none;
        box-shadow: none;
        background: #f8f9fb;
    }

    /* Image: small thumbnail on left */
    .sc-card-img {
        flex: 0 0 110px;
        width: 110px;
        height: 80px;
        aspect-ratio: unset;
        border-radius: 8px;
    }

    /* Info: takes remaining space */
    .sc-card-info {
        padding: 0;
        flex: 1;
        min-width: 0;
        background: transparent;
    }

    .sc-card-name {
        font-size: .88rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sc-card-price { font-size: .95rem; }

    .sc-card-vendor { margin-top: 4px; }
}


/* ═══════════════════════════════════════════════════════════
   DESKTOP ≥ 960px — ScoutCar two-column layout
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

    .moto-page-wrap { padding: 24px 24px 60px; }

    /* Gallery: ScoutCar style on desktop */
    .moto-gallery-section {
        margin-bottom: 20px;
        background: #fff;
    }
    .moto-gallery-wrapper {
        padding: 0 80px;       /* plus d'espace pour les grandes flèches */
    }
    .moto-gallery-slider-track {
        max-width: 720px;
    }
    .moto-gallery-slide    { height: 480px; }
    .gallery-arrow         { width: 50px; height: 50px; font-size: .95rem; }
    .gallery-counter       { right: calc(80px + 16px); bottom: 16px; font-size: .78rem; }
    .moto-thumbnails-strip {
        border-bottom: none;
        padding: 12px 20px 14px;
    }
    .moto-thumb-item { flex: 0 0 90px; height: 68px; }

    /* Two-column content row */
    .moto-content-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    /* Main: takes remaining space */
    .moto-main-col {
        flex: 1 1 0;
        min-width: 0;
        gap: 20px;
    }

    /* Sidebar: fixed 340px, sticky */
    .moto-sidebar-col {
        flex: 0 0 340px;
        width: 340px;
    }

    .moto-sidebar-sticky {
        position: sticky;
        top: 80px;          /* clear the WP admin bar / theme header */
        gap: 20px;
    }

    /* Cards: rounded + shadow on desktop */
    .moto-detail-section,
    .moto-detail-card {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
        padding: 24px !important;
    }

    /* Header section: no top radius needed, blends into flow */
    .header-moto-section {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
        padding: 20px 24px 16px !important;
        background: var(--white);
    }

    .header-moto-bottom {
        border-bottom: none;
        padding-bottom: 4px;
    }

    /* Overview: inline with header, no border */
    .overview-moto-section {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
        padding: 18px 24px !important;
    }

    /* Description */
    .description-moto-section {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
    }
    .description-collapsed { max-height: 110px; }

    /* Title larger on desktop */
    .moto-title { font-size: 1.6rem; }
    .moto-price { font-size: 1.5rem; color: #0a7a2c; }

    /* Dealer card */
    .dealer-moto-card {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
        padding: 22px !important;
    }

    /* Boutons côte à côte, icône gauche texte droite */
    .dealer-contact {
        flex-direction: row;
        gap: 10px;
    }
    .btn-contact {
        min-height: 48px;
        font-size: .9rem;
        justify-content: space-between;
        padding: 12px 16px;
    }

    /* Suggestions */
    .sc-sugg-widget {
        border-radius: var(--r) !important;
        box-shadow: var(--shadow) !important;
        border-bottom: none !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .sc-sugg-header { padding: 18px 20px 12px; }
    .sc-sugg-link   { padding: 12px 20px; }
    .sc-sugg-footer { padding: 12px 20px 16px; }
    .sc-sugg-thumb  { width: 110px; height: 80px; }

    /* Hide mobile sticky bar */
    .moto-sticky-contact { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE ≤ 599px tweaks
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 599px) {

    /* Galerie : wrapper en colonne, flèches absolues sur la photo */
    .moto-gallery-wrapper {
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
    }
    .moto-gallery-wrapper::before {
        display: none; /* not needed on mobile — no side margins */
    }
    .moto-gallery-slider-track {
        max-width: 100%;
        width: 100%;
        background: #ffffff;
    }
    .moto-gallery-slide    { height: 240px; background: #ffffff; }

    /* Flèches repositionnées sur la photo */
    .gallery-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px; height: 34px; font-size: .75rem;
        z-index: 20;
    }
    .gallery-arrow.prev { left: 8px; }
    .gallery-arrow.next { right: 8px; }

    .gallery-counter { right: 12px; bottom: 10px; }

    .moto-thumb-item { flex: 0 0 64px; height: 50px; }

    .moto-title  { font-size: 1.1rem; }
    .moto-price  { font-size: 1.2rem; }

    /* Sticky bar visible */
    .moto-sticky-contact { display: flex; }
    .moto-details-layout { padding-bottom: 76px; }

    .moto-main-col    { order: 1; }
    .moto-sidebar-col { order: 2; }

    .dealer-contact { gap: 8px; }
    .btn-contact {
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        font-size: .85rem;
        min-height: 44px;
    }
}

@media (max-width: 359px) {
    .moto-gallery-wrapper { padding: 0 36px; background: #ffffff; }
    .moto-gallery-slide   { height: 185px; background: #ffffff; }
    .dealer-contact       { flex-direction: column; }
    .btn-contact          { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET 600–959px
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 600px) and (max-width: 959px) {
    .moto-gallery-wrapper  { padding: 0 60px; background: #ffffff; }
    .moto-gallery-slide    { height: 360px; background: #ffffff; }
    .gallery-arrow         { width: 42px; height: 42px; }
    .gallery-counter       { right: calc(60px + 12px); }
    .moto-thumb-item       { flex: 0 0 78px; height: 58px; }
    .moto-page-wrap        { padding: 0 0 40px; }
}

/* ═══════════════════════════════════════════════════════════
   Touch-friendly targets
   ═══════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
    .btn-contact     { min-height: 50px; }
    .moto-thumb-item { min-width: 66px; min-height: 50px; }
    .gallery-arrow   { width: 40px; height: 40px; }
}
