/* ═══════════════════════════════════════════════════════════════
   homecss.css — Page détail véhicule
   Version finale consolidée
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   VARIABLES & RESET
   ═══════════════════════════════════════════ */
:root {
    --bg: #f4f6f9;
    --bg-warm: #eef1f6;
    --card: #ffffff;
    --fg: #0f172a;
    --fg-secondary: #334155;
    --fg-muted: #64748b;
    --accent: #1d4ed8;
    --accent-dark: #1e3a8a;
    --accent-light: #dbeafe;
    --accent-glow: rgba(29, 78, 216, 0.15);
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.08), 0 4px 12px rgba(15,23,42,0.04);
    --shadow-xl: 0 20px 60px rgba(15,23,42,0.1), 0 8px 20px rgba(15,23,42,0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(29,78,216,0.04), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,158,11,0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.animate-in { animation: fadeUp 0.6s var(--transition) both; }
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.12s; }
.animate-in:nth-child(3) { animation-delay: 0.19s; }
.animate-in:nth-child(4) { animation-delay: 0.26s; }
.animate-in:nth-child(5) { animation-delay: 0.33s; }

/* ═══════════════════════════════════════════
   STICKY HEADER — Glassmorphism
   ═══════════════════════════════════════════ */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 9;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    pointer-events: none;
}
.sticky-header.visible { transform: translateY(0); opacity: 1; pointer-events: all; }

.sh-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sh-car { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.sh-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.sh-car-text { min-width: 0; }
.sh-car-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.sh-car-text p {
    font-size: 12px;
    color: var(--fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-dark);
    white-space: nowrap;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.sh-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

.sh-avatar-wrap { position: relative; flex-shrink: 0; }
.sh-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.sh-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

.sh-seller-text { display: flex; flex-direction: column; line-height: 1.2; }
.sh-seller-name { font-size: 12px; font-weight: 600; color: var(--fg); }
.sh-seller-meta { font-size: 11px; color: var(--fg-muted); }
.sh-seller-meta i { color: #f59e0b; font-size: 10px; }
.sh-pipe { margin: 0 3px; opacity: 0.4; }

.sh-btns { display: flex; gap: 6px; flex-shrink: 0; }
.sh-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.sh-btn span { font-family: 'Inter', sans-serif; }
.sh-wa { background: #25d366; color: #fff; }
.sh-wa:hover { background: #1fb855; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.sh-call { background: var(--accent); color: #fff; }
.sh-call:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.sh-msg { background: var(--bg); color: var(--fg-secondary); border: 1px solid var(--border); }
.sh-msg:hover { background: var(--border-light); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   GALERIE D'IMAGES
   ═══════════════════════════════════════════ */
.image-gallery {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 24px;
    animation: fadeUp 0.5s ease both;
}

.multi-image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.main-image {
    grid-row: 1 / -1;
    width: 70%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-images { display: flex; flex-direction: column; gap: 6px; width:30%}

.side-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    height: 50%;
}
.side-image-1 { flex: 1; }
.side-image-2 { flex: 1; }
.side-image img { width: 100%; height: 100%; object-fit: cover; }

.side-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.side-image:hover::after { opacity: 0; }

.single-image-container {
    height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.single-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.placeholder-container {
    height: 480px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.placeholder-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.08) 20px, rgba(255,255,255,0.08) 40px);
}

.photo-placeholder-icon { width: 64px; height: 64px; color: var(--fg-muted); opacity: 0.5; }
.placeholder-text { font-size: 15px; color: var(--fg-muted); margin-top: 8px; font-weight: 500; }
.placeholder-content { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }

.photo-count-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 5;
    transition: var(--transition);
}
.photo-count-badge:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.05); }
.camera-icon { width: 16px; height: 16px; }

.mobile-only { display: none; }
.desktop-only { display: flex; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    .single-image-container, .multi-image-container, .placeholder-container { height: 280px; }
}
@media (max-width: 480px) {
    .single-image-container, .multi-image-container, .placeholder-container { height: 220px; }
}

/* ═══════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════ */
.page-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    position: relative;
    z-index: 1;
    
}

.main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sidebar-col { display: flex; flex-direction: column; gap: 20px; }

/* ═══════════════════════════════════════════
   CARTES GÉNÉRIQUES
   ═══════════════════════════════════════════ */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-md); }

.card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════
   CARTE HERO — Prix + Titre + Specs
   ═══════════════════════════════════════════ */
.card-hero {
    position: relative;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(11, 18, 32, 0.04);
    transition: box-shadow 0.3s ease;
}
.card-hero:hover { box-shadow: 0 8px 24px rgba(11, 18, 32, 0.06); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero-badge i { font-size: 13px; }
.hero-badge--sale { background: #eef0ff; color: #1e37d8; }
.hero-badge--rent { background: #d1fae5; color: #047857; }

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f3f1ec;
    color: #3d4658;
    border: 1px solid #ebe8e0;
}
.hero-chip--soft { background: #fef3c7; color: #b45309; border-color: #fde68a; }

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #0b1220;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    word-break: break-word;
}

.hero-price {
    font-size: 44px;
    font-weight: 800;
    color: #0b1220;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

/* ─── SPECS STRIP ─── */
.specs-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0;
    background: #fafaf8;
    border: 1px solid #ebe8e0;
    border-radius: 18px;
    overflow: hidden;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-left: 1px solid #ebe8e0;
    transition: background 0.2s ease;
}
.spec-item:first-child { border-left: none; }
.spec-item:hover { background: #f5f4f0; }

.spec-item > i {
    font-size: 22px;
    color: #2f4cff;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0ff;
    border-radius: 12px;
}

.spec-item > div { flex: 1; min-width: 0; }

.spec-item__label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: #8a91a3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.spec-item__value {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #0b1220;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    overflow: visible;
    text-overflow: clip;
}

/* ═══════════════════════════════════════════
   OVERVIEW GRID
   ═══════════════════════════════════════════ */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.ov-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}
.ov-row:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--border-light); }
.ov-row:nth-child(even) { padding-left: 20px; }
.ov-row:last-child,
.ov-row:nth-last-child(1):nth-child(odd) { border-bottom: none; }

.ov-label { font-size: 13px; font-weight: 500; color: var(--fg-muted); }
.ov-value { font-size: 14px; font-weight: 700; color: var(--fg); text-align: right; }

/* ═══════════════════════════════════════════
   DESCRIPTION
   ═══════════════════════════════════════════ */
.desc-text { font-size: 14.5px; line-height: 1.8; color: var(--fg-secondary); }

.read-more-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.read-more-btn:hover { color: var(--accent-dark); }
.read-more-btn i { transition: transform 0.3s ease; }
.read-more-btn.expanded i { transform: rotate(180deg); }

/* ═══════════════════════════════════════════
   ACCORDÉON ÉQUIPEMENTS
   ═══════════════════════════════════════════ */
.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: var(--transition);
}
.accordion-item:last-child { margin-bottom: 0; }
.accordion-item:hover { border-color: var(--border); }

.accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    transition: var(--transition);
}
.accordion-btn:hover { background: var(--bg-warm); }

.accordion-btn-left { display: flex; align-items: center; gap: 14px; }

.acc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.acc-icon-blue { background: #dbeafe; color: #2563eb; }
.acc-icon-purple { background: #ede9fe; color: #7c3aed; }
.acc-icon-green { background: #dcfce7; color: #16a34a; }
.acc-icon-amber { background: #fef3c7; color: #d97706; }

.acc-title { font-size: 14px; font-weight: 700; color: var(--fg); display: block; }
.acc-count { font-size: 12px; color: var(--fg-muted); font-weight: 500; }

.accordion-arrow { font-size: 20px; color: var(--fg-muted); transition: transform 0.3s ease; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-content {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
.accordion-content.open { opacity: 1; }

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px 18px 18px;
}

.acc-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-secondary);
    border-radius: 6px;
    transition: var(--transition);
}
.acc-feature:hover { background: var(--bg-warm); color: var(--fg); }
.acc-feature i { color: var(--accent); font-size: 15px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SUGGESTIONS CAROUSEL
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   SUGGESTIONS — Wrapper + Flèches + Cartes
   ═══════════════════════════════════════════ */

/* ─── Wrapper avec marges négatives pour les flèches ─── */
.suggestions-wrapper {
    position: relative;
    margin: 0 -28px;
    padding: 0 28px;
}

/* ─── Zone scrollable ─── */
.suggestions-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y;
}

.suggestions-scroll:active {
    cursor: grabbing;
}

.suggestions-scroll::-webkit-scrollbar {
    height: 8px;
}

.suggestions-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.suggestions-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ─── Piste flex ─── */
.suggestions-track {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

/* ─── Carte suggestion ─── */
.suggestions-track .recent-view-card {
    position: relative;
    display: block;
    flex: 0 0 280px;
    width: 280px;
    height: 340px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    -webkit-user-drag: none;
    user-drag: none;
    scroll-snap-align: start;
    touch-action: pan-x pan-y;
}

.suggestions-track .recent-view-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.suggestions-track .recent-view-card img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ─── Bouton favori (dans les cartes suggestions) ─── */
.gcf-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fg-secondary);
    transition: color 0.18s, background 0.18s, transform 0.18s;
    z-index: 10;
    padding: 0;
}

.gcf-fav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.gcf-fav-btn.is-active,
.gcf-fav-btn.liked {
    color: #EF4444;
}

.gcf-fav-btn i {
    font-size: 15px;
    line-height: 1;
}

/* ─── Flèches de navigation ─── */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--fg);
    z-index: 5;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    padding: 0;
}

.scroll-nav:hover {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-70%) scale(1.1);
}

.scroll-nav-left { left: 4px; }
.scroll-nav-right { right: 4px; }
.scroll-nav.hidden { display: none; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .suggestions-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
    .suggestions-track .recent-view-card {
        flex: 0 0 240px;
        width: 240px;
        height: 300px;
    }
    .scroll-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .scroll-nav-left { left: 2px; }
    .scroll-nav-right { right: 2px; }
}

@media (max-width: 400px) {
    .suggestions-track .recent-view-card {
        flex-basis: calc(100vw - 48px);
        width: calc(100vw - 48px);
    }
}

.suggestions-wrapper {
    position: relative;
    margin: 0 -28px;
    padding: 0 28px;
}

/* ─── Flèches de navigation ─── */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--fg);
    z-index: 5;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.scroll-nav:hover {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-70%) scale(1.1);
}

.scroll-nav-left { left: 4px; }
.scroll-nav-right { right: 4px; }
.scroll-nav.hidden { display: none; }

@media (max-width: 768px) {
    .suggestions-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
}

.suggestions-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.suggestions-scroll:active {
    cursor: grabbing;
}

.suggestions-scroll::-webkit-scrollbar {
    height: 8px;
}

.suggestions-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.suggestions-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Piste flex */
.suggestions-track {
    display: flex;
    gap: 16px;
}

/* Carte suggestion — SANS border-radius */
.suggestions-track .recent-view-card {
    position: relative;
    display: block;
    flex: 0 0 280px;
    width: 280px;
    height: 340px;
    border-radius: 0;                 /* ← coins carrés */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    -webkit-user-drag: none;
    user-drag: none;
    scroll-snap-align: start;
    touch-action: pan-x pan-y;
}

.suggestions-track .recent-view-card:hover {
    /* transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15); */
}

.suggestions-track .recent-view-card img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Responsive : cartes plus petites sur tablette */
@media (max-width: 768px) {
    .suggestions-track .recent-view-card {
        flex: 0 0 240px;
        width: 240px;
        height: 300px;
    }
}

/* Plein écran sur très petits mobiles */
@media (max-width: 400px) {
    .suggestions-track .recent-view-card {
        flex-basis: calc(100vw - 48px);
        width: calc(100vw - 48px);
    }
}

/* ═══════════════════════════════════════════
   SIDEBAR — VENDEUR
   ═══════════════════════════════════════════ */
.seller-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sticky-sidebar { position: sticky; top: 80px; }

.sc-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sc-left { display: flex; gap: 12px; }

.sc-avatar-wrap { position: relative; flex-shrink: 0; }
.sc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.sc-online {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--card);
}
.sc-online::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-ring 2s ease-out infinite;
}

.sc-info { line-height: 1.3; }
.sc-name { font-size: 15px; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 4px; }
.sc-verified {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
}
.sc-meta {
    font-size: 12px;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.sc-meta i { color: #f59e0b; font-size: 11px; }
.sc-dot { opacity: 0.4; }
.sc-type {
    font-size: 11px;
    color: var(--fg-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-follow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--fg-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.sc-follow:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); transform: scale(1.05); }
.sc-follow.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sc-divider { height: 1px; background: var(--border-light); margin: 18px 24px; }

.sc-action-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 24px;
    margin-bottom: 14px;
}

.sc-bubbles { display: flex; justify-content: center; gap: 20px; padding: 0 24px; }

.sc-bubble-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sc-bubble-item span { font-size: 11px; font-weight: 600; color: var(--fg-muted); }

.sc-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}
.bubble-wa { background: #dcfce7; color: #16a34a; }
.bubble-wa:hover { background: #25d366; color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.bubble-call { background: var(--accent-light); color: var(--accent-dark); }
.bubble-call:hover { background: var(--accent); color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px var(--accent-glow); }
.bubble-email { background: #ede9fe; color: #7c3aed; }
.bubble-email:hover { background: #7c3aed; color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px rgba(124,58,237,0.3); }
.bubble-msg { background: #fef3c7; color: var(--amber); }
.bubble-msg:hover { background: var(--amber); color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px rgba(245,158,11,0.25); }

.sc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    padding: 0 16px 20px;
}
.sc-stat { padding: 12px 4px; }
.sc-stat-label { display: block; font-size: 11px; font-weight: 500; color: var(--fg-muted); margin-bottom: 4px; }
.sc-stat-val { display: block; font-size: 14px; font-weight: 800; color: var(--fg); }

/* ═══════════════════════════════════════════
   SECTION CONCESSIONNAIRE PRO
   ═══════════════════════════════════════════ */
.pro-garage-card { padding: 0; overflow: hidden; }

.pro-cover { position: relative; height: 220px; background-color: var(--bg-warm); background-size: cover; background-position: center; }
.pro-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,23,42,0.2), rgba(15,23,42,0.85)); }
.pro-logo-info { position: absolute; bottom: -32px; left: 28px; display: flex; align-items: flex-end; gap: 16px; z-index: 2; }
.pro-logo { width: 80px; height: 80px; border-radius: 16px; border: 4px solid var(--card); object-fit: cover; background: var(--bg); box-shadow: var(--shadow-md); }
.pro-title-box { padding-bottom: 40px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.pro-title-box h3 { font-size: 22px; font-weight: 800; margin: 0; line-height: 1.2; }
.pro-badge { display: inline-block; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }

.pro-content { padding: 48px 28px 28px; }

.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.pro-info-item { display: flex; gap: 14px; align-items: flex-start; }
.pro-info-item i {
    font-size: 20px;
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 10px;
}
.pro-info-item a { text-decoration: none; transition: color 0.2s; }
.pro-info-item a:hover { color: var(--accent-dark) !important; }

.pro-label {
    display: block;
    font-size: 12px;
    color: var(--fg-muted);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pro-value { display: block; font-size: 14px; color: var(--fg); font-weight: 600; }

.pro-info-item--wide { grid-column: 1 / -1; }

/* ─── SECTIONS Pro Garage ─── */
.pro-section {
    margin-bottom: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.pro-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.pro-section-title--center { text-align: center; }

/* ─── Interlocuteur principal ─── */
.pro-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}
.pro-contact-card:hover { border-color: var(--accent); }

.pro-contact-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pro-contact-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pro-contact-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    color: #2563eb;
    font-size: 22px;
}
.pro-contact-avatar-placeholder i { color: #2563eb; font-size: 22px; }

.pro-contact-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pro-contact-name { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.pro-contact-sub { font-size: 12.5px; color: var(--fg-muted); font-weight: 500; }
.pro-contact-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── Lien téléphone ─── */
.pro-phone-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pro-phone-link:hover { color: var(--accent-dark); }

/* ─── Horaires ─── */
.pro-hours-list { display: flex; flex-direction: column; gap: 6px; }

.pro-hour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.pro-hour-row:hover { border-color: var(--accent); background: var(--accent-light); }

.pro-hour-day { font-size: 13.5px; font-weight: 600; color: var(--fg); letter-spacing: -0.005em; }

.pro-hour-time {
    font-size: 13px;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: -0.005em;
}
.pro-hour-row.closed .pro-hour-day { color: var(--fg-muted); }
.pro-hour-row.closed .pro-hour-time { background: #fee2e2; color: #b91c1c; }

/* ═══════════════════════════════════════════
   SERVICES & COMPÉTENCES — Design épuré
   ═══════════════════════════════════════════ */
.pro-tag-block { margin-bottom: 20px; }
.pro-tag-block:last-child { margin-bottom: 0; }

.pro-tag-block__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.pro-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pro-tag i { font-size: 14px; line-height: 1; flex-shrink: 0; }

.pro-tag--service {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}
.pro-tag--service:hover {
    background: #0369a1;
    color: #ffffff;
    border-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 105, 161, 0.25);
}

.pro-tag--skill {
    background: #eef2ff;
    color: #3730a3;
    border-color: #c7d2fe;
}
.pro-tag--skill:hover {
    background: #3730a3;
    color: #ffffff;
    border-color: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(55, 48, 163, 0.25);
}

/* ═══════════════════════════════════════════
   BOUTON SHOWROOM — épuré avec compteur
   ═══════════════════════════════════════════ */
.showroom-stats { margin-top: 32px; display: flex; justify-content: center; }

.showroom-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #ffffff;
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: -0.005em;
}
.showroom-link:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.12);
}

.showroom-link__text { line-height: 1; }

.showroom-link__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.showroom-link:hover .showroom-link__count { background: var(--accent-dark); }

.showroom-link__arrow {
    font-size: 16px;
    transition: transform 0.25s ease;
    color: var(--fg-muted);
}
.showroom-link:hover .showroom-link__arrow { transform: translateX(3px); color: var(--accent-dark); }

/* ═══════════════════════════════════════════
   RÉSEAUX SOCIAUX — Icônes rondes centrées
   ═══════════════════════════════════════════ */
.pro-social-grid--center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pro-social-round {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    border: 1px solid transparent;
}
.pro-social-round i { font-size: 28px; line-height: 1; }
.pro-social-round:hover { transform: translateY(-4px) scale(1.08); }

.pro-social-round--whatsapp { background: #dcfce7; color: #16a34a; }
.pro-social-round--whatsapp:hover { background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4); }

.pro-social-round--instagram { background: #fce7f3; color: #be185d; }
.pro-social-round--instagram:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #fff;
    box-shadow: 0 12px 28px rgba(221, 42, 123, 0.4);
}

.pro-social-round--tiktok { background: #e0e7ff; color: #4f46e5; }
.pro-social-round--tiktok:hover { background: #000; color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }

.pro-social-round--snapchat { background: #fef9c3; color: #a16207; }
.pro-social-round--snapchat:hover { background: #FFFC00; color: #000; box-shadow: 0 12px 28px rgba(255, 252, 0, 0.5); }

/* Compatibilité anciens styles */
.pro-social { margin-bottom: 28px; }
.pro-social h4 { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pro-social h4 i { color: var(--accent); }
.pro-social-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-social-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}
.pro-social-btn:active { transform: scale(0.97); }
.pro-social-btn.whatsapp { background: #dcfce7; color: #16a34a; }
.pro-social-btn.whatsapp:hover { background: #bbf7d0; }
.pro-social-btn.instagram { background: #fce7f3; color: #be185d; }
.pro-social-btn.instagram:hover { background: #fbcfe8; }
.pro-social-btn.tiktok { background: #e0e7ff; color: #4f46e5; }
.pro-social-btn.tiktok:hover { background: #c7d2fe; }
.pro-social-btn.snapchat { background: #fef9c3; color: #a16207; }
.pro-social-btn.snapchat:hover { background: #fef08a; }

/* ═══════════════════════════════════════════
   ÉQUIPE (Pro Garage)
   ═══════════════════════════════════════════ */
.pro-team { margin-bottom: 28px; }
.pro-team h4 { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pro-team h4 i { color: var(--accent); }

.pro-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pro-team-card {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}
.pro-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pro-team-card img { width: 100%; height: 120px; object-fit: cover; background: var(--border); }
.pro-team-info { padding: 12px; }
.pro-team-info strong { display: block; font-size: 14px; color: var(--fg); margin-bottom: 2px; }
.pro-team-info span { font-size: 12px; color: var(--fg-muted); }

.member-contact-btns { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.member-contact-btns a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px; transition: background-color 0.2s;
}
.member-contact-btns a i { font-size: 14px; }
.member-contact-wa { background: #dcfce7; color: #16a34a; }
.member-contact-wa:hover { background: #bbf7d0; }
.member-contact-call { background: #dbeafe; color: #2563eb; }
.member-contact-call:hover { background: #bfdbfe; }
.member-contact-mail { background: #ede9fe; color: #7c3aed; }
.member-contact-mail:hover { background: #ddd6fe; }

.team-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
}
.team-avatar-wrapper .team-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-wrapper .team-avatar-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.team-avatar-wrapper .team-avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   GALERIE PHOTOS GARAGE
   ═══════════════════════════════════════════ */
.pro-gallery { margin-bottom: 28px; }
.pro-gallery h4 { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pro-gallery h4 i { color: var(--accent); }

.pro-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pro-gallery-item {
    border-radius: var(--radius-xs);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
}
.pro-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.pro-gallery-item:hover img { transform: scale(1.05); }

/* ═══════════════════════════════════════════
   À PROPOS (description garage)
   ═══════════════════════════════════════════ */
.pro-about {
    margin-bottom: 28px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}
.pro-about h4 { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pro-about h4 i { color: var(--accent); }
.pro-about p { font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }

/* ═══════════════════════════════════════════
   BOUTON FOLLOW + CONTACT
   ═══════════════════════════════════════════ */
.btn-follow-garage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #3D5AFE;
    background: #3D5AFE;
    color: #fff;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(61,90,254,0.15);
}
.btn-follow-garage:hover {
    background: #2847F0;
    border-color: #2847F0;
    box-shadow: 0 4px 16px rgba(61,90,254,0.25);
    transform: translateY(-1px);
}
.btn-follow-garage:active { transform: scale(0.97); }
.btn-follow-garage.active { background: #fff; color: #3D5AFE; border-color: #3D5AFE; }
.btn-follow-garage.active:hover { background: #F4F5F9; }
.btn-follow-garage i { font-size: 18px; transition: transform 0.25s ease; }
.btn-follow-garage.active i { transform: scale(1.1); }

.btn-follow-garage.w-full {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-warm);
    color: var(--fg-muted);
    transition: all 0.2s;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.contact-btn:hover { transform: scale(1.1); }
.contact-btn.whatsapp-btn { background: #dcfce7; color: #16a34a; }
.contact-btn.whatsapp-btn:hover { background: #bbf7d0; }
.contact-btn.call-btn { background: #dbeafe; color: #2563eb; }
.contact-btn.call-btn:hover { background: #bfdbfe; }
.contact-btn.email-btn { background: #ede9fe; color: #7c3aed; }
.contact-btn.email-btn:hover { background: #ddd6fe; }
.contact-btn.message-btn { background: #fef3c7; color: #d97706; }
.contact-btn.message-btn:hover { background: #fde68a; }

/* ═══════════════════════════════════════════
   MODAL GALERIE
   ═══════════════════════════════════════════ */
.gallery-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}
.gallery-modal-image-wrapper {
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-modal-image-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}
.gallery-modal-close {
    position: absolute;
    top: 25px; right: 25px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}
.gallery-modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    padding: 0;
}
.gallery-modal-prev:hover,
.gallery-modal-next:hover { background: rgba(255,255,255,0.2); }
.gallery-modal-prev { left: 25px; }
.gallery-modal-next { right: 25px; }

.gallery-modal-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
}

/* ═══════════════════════════════════════════
   FALLBACK IMAGES
   ═══════════════════════════════════════════ */
.img-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    gap: 8px;
    text-align: center;
    width: 100%;
    height: 100%;
}
.img-fallback--photo { min-height: 200px; }
.img-fallback--photo svg { width: 48px; height: 48px; stroke: #94a3b8; }
.img-fallback--photo span { font-size: 12px; font-weight: 500; }
.img-fallback--avatar { border-radius: inherit; }
.img-fallback--avatar svg { width: 24px; height: 24px; stroke: #94a3b8; }

.sh-thumb.img-fallback--photo {
    min-height: auto;
    width: 48px;
    height: 48px;
    padding: 4px;
}
.sh-thumb.img-fallback--photo svg { width: 22px; height: 22px; }
.sh-thumb.img-fallback--photo span { font-size: 9px; line-height: 1; }

/* ═══════════════════════════════════════════
   RESPONSIVE GLOBAL
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar-col { order: -1; }
    .sticky-sidebar { position: relative; top: 0; }
    .sh-seller { display: none; }
}

@media (max-width: 768px) {
    .image-gallery { padding: 0 16px; }
    .page-layout { padding: 16px; gap: 16px; }
    .card { padding: 20px; border-radius: 14px; }
    .card-hero { padding: 24px 20px; border-radius: 20px; }
    .hero-title { font-size: 22px; }
    .hero-price { font-size: 34px; margin-bottom: 24px; }
    .specs-strip { grid-template-columns: 1fr 1fr; border-radius: 16px; }
    .spec-item { padding: 14px 16px; align-items: flex-start; }
    .spec-item:nth-child(odd) { border-left: none; }
    .spec-item:nth-child(n+3) { border-top: 1px solid #ebe8e0; }
    .spec-item > i { width: 36px; height: 36px; font-size: 18px; margin-top: 2px; }
    .spec-item__value { font-size: 13px; }

    .overview-grid { grid-template-columns: 1fr; }
    .ov-row:nth-child(odd) { padding-right: 0; border-right: none; }
    .ov-row:nth-child(even) { padding-left: 0; }
    .acc-grid { grid-template-columns: 1fr; }
    .sh-inner { padding: 8px 12px; gap: 10px; }
    .sh-car-text p { display: none; }
    .sh-price { font-size: 13px; padding-left: 10px; }
    .sh-btn span { display: none; }
    .sh-btn { padding: 7px 10px; }
    .suggestion-card { width: 200px; }
    .suggestion-img { height: 120px; }
    .pro-grid { grid-template-columns: 1fr; }
    .pro-logo { width: 64px; height: 64px; }
    .pro-title-box h3 { font-size: 18px; }
    .pro-content { padding: 42px 20px 20px; }
    .pro-cover { height: 180px; }

    .gallery-modal-close { top: 15px; right: 15px; width: 38px; height: 38px; font-size: 20px; }
    .gallery-modal-prev, .gallery-modal-next { width: 40px; height: 40px; font-size: 18px; }
    .gallery-modal-prev { left: 15px; }
    .gallery-modal-next { right: 15px; }
    .gallery-modal-counter { bottom: 15px; font-size: 11px; padding: 6px 14px; }

    .pro-social-grid--center { gap: 12px; }
    .pro-social-round { width: 56px; height: 56px; }
    .pro-social-round i { font-size: 24px; }
}

@media (max-width: 480px) {
    .sh-price { border-left: none; padding-left: 0; }
    .sh-btns { gap: 4px; }
    .card-hero { padding: 20px 16px; border-radius: 18px; }
    .hero-title { font-size: 20px; }
    .hero-price { font-size: 30px; margin-bottom: 20px; }
    .specs-strip { grid-template-columns: 1fr; border-radius: 14px; }
    .spec-item { border-left: none !important; padding: 14px 16px; }
    .spec-item:nth-child(n+2) { border-top: 1px solid #ebe8e0; }
    .spec-item > i { width: 36px; height: 36px; font-size: 18px; }
    .spec-item__value { font-size: 14px; }

    .pro-contact-card { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
    .pro-contact-avatar { align-self: center; }
    .pro-contact-info { align-items: center; }
    .pro-contact-actions { justify-content: center; }
    .pro-hour-row { padding: 11px 14px; }
    .pro-hour-day { font-size: 13px; }
    .pro-hour-time { font-size: 12px; padding: 4px 12px; }

    .pro-tag { padding: 7px 12px; font-size: 12px; gap: 6px; }
    .pro-tag i { font-size: 13px; }

    .showroom-link { padding: 11px 20px; font-size: 13.5px; gap: 10px; }
    .showroom-link__count { min-width: 22px; height: 22px; font-size: 11.5px; }
}

@media (max-width: 380px) {
    .pro-social-round { width: 52px; height: 52px; }
    .pro-social-round i { font-size: 22px; }
}

/* ═══════════════════════════════════════════
   DIVERS
   ═══════════════════════════════════════════ */
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }


    /* ═══════════════════════════════════════════════════════════════
   SIDEBAR VENDEUR — Actions (Suivre + Favori + Partager)
   ═══════════════════════════════════════════════════════════════ */

.sc-actions-wrap {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─── Bouton Suivre (pleine largeur) ─── */
.btn-follow-garage.w-full {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 12px;
    background: #3D5AFE;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-follow-garage.w-full:hover {
    background: #2847F0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 90, 254, 0.25);
}

.btn-follow-garage.w-full i {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.btn-follow-garage.active {
    background: #ffffff;
    color: #3D5AFE;
    border: 1px solid #3D5AFE;
    box-shadow: none;
}

.btn-follow-garage.active:hover {
    background: #F4F5F9;
    box-shadow: none;
}

.btn-follow-garage.active i {
    transform: scale(1.1);
}

/* ─── Boutons secondaires (Favori + Partager) ─── */
.sc-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sc-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--fg-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.22s ease;
}

.sc-action-secondary i {
    font-size: 17px;
    transition: transform 0.22s ease;
}

.sc-action-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--border-strong, #cbd5e1);
    color: var(--fg);
    transform: translateY(-1px);
}

.sc-action-secondary:hover i {
    transform: scale(1.12);
}

/* ─── Favori (état "liked") ─── */
.sc-action-secondary.liked {
    background: #fff1f1;
    border-color: #fecaca;
    color: #dc2626;
}

.sc-action-secondary.liked:hover {
    background: #ffe4e4;
    border-color: #fca5a5;
}

.sc-action-secondary.liked i {
    color: #dc2626;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .sc-actions-wrap {
        padding: 16px 16px 20px;
    }

    .btn-follow-garage.w-full {
        padding: 12px 16px;
        font-size: 13.5px;
    }

    .sc-action-secondary {
        padding: 10px 12px;
        font-size: 12.5px;
        gap: 6px;
    }

    .sc-action-secondary i {
        font-size: 16px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   NOMBRE D'ANNONCES — Visuellement cliquable
   ═══════════════════════════════════════════════════════════════ */

.sc-annonces-link {
    color: var(--fg-muted);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

/* Hover uniquement quand on survole le "3 annonces" spécifiquement */
.sc-annonces-link {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   AJOUTS — Sidebar actions + Suggestions + Annonces link
   ═══════════════════════════════════════════════════════════════ */

/* ─── SIDEBAR : boutons Suivre + Favori + Partager ─── */
.sc-actions-wrap {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-actions-wrap .btn-follow-garage.w-full {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 12px;
    background: #3D5AFE;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.sc-actions-wrap .btn-follow-garage.w-full:hover {
    background: #2847F0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 90, 254, 0.25);
}

.sc-actions-wrap .btn-follow-garage.w-full i { font-size: 18px; }
.sc-actions-wrap .btn-follow-garage.active {
    background: #ffffff;
    color: #3D5AFE;
    border: 1px solid #3D5AFE;
    box-shadow: none;
}

.sc-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sc-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--fg-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.22s ease;
}

.sc-action-secondary i { font-size: 17px; }

.sc-action-secondary:hover {
    background: var(--bg-warm);
    border-color: #cbd5e1;
    color: var(--fg);
    transform: translateY(-1px);
}

.sc-action-secondary.liked {
    background: #fff1f1;
    border-color: #fecaca;
    color: #dc2626;
}

.sc-action-secondary.liked i { color: #dc2626; }

/* ─── NOMBRE D'ANNONCES cliquable ─── */
.sc-annonces-link {
    color: var(--fg-muted);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.sc-annonces-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ─── SUGGESTIONS — Nouvelles cartes style "En Vedette" ─── */
.suggestions-track .recent-view-card {
    position: relative;
    display: block;
    flex: 0 0 280px;
    width: 280px;
    height: 340px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    -webkit-user-drag: none;
    user-drag: none;
    touch-action: pan-x pan-y;
}

.suggestions-track .recent-view-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.suggestions-track .recent-view-card img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ─── Bouton favori (cartes suggestions) ─── */
.gcf-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fg-secondary);
    transition: color 0.18s, background 0.18s, transform 0.18s;
    z-index: 10;
    padding: 0;
}

.gcf-fav-btn:hover { background: #fff; transform: scale(1.1); }
.gcf-fav-btn.liked { color: #EF4444; }
.gcf-fav-btn i { font-size: 15px; line-height: 1; }

/* ─── Flèches suggestions ─── */
.suggestions-wrapper {
    position: relative;
    margin: 0 -28px;
    padding: 0 28px;
}

.suggestions-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y;
}

.suggestions-scroll::-webkit-scrollbar { height: 8px; }
.suggestions-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.suggestions-track { display: flex; gap: 16px; padding: 4px 0; }

.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--fg);
    z-index: 5;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    padding: 0;
}

.scroll-nav:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-70%) scale(1.1);
}

.scroll-nav-left { left: 4px; }
.scroll-nav-right { right: 4px; }
.scroll-nav.hidden { display: none; }

@media (max-width: 768px) {
    .suggestions-wrapper { margin: 0 -16px; padding: 0 16px; }
    .suggestions-track .recent-view-card {
        flex: 0 0 240px;
        width: 240px;
        height: 300px;
    }
    .scroll-nav { width: 32px; height: 32px; font-size: 16px; }
    .scroll-nav-left { left: 2px; }
    .scroll-nav-right { right: 2px; }
}

