/**
 * CARexplorer - Annonce Detail Page CSS
 * Design system: Admin panel Eldora UI
 * Dark theme — #060609 base, #D285FF accent, glassmorphism
 */

/* =====================================================
   CSS VARIABLES (Admin design system)
   ===================================================== */
:root {
    --ann-bg-card: rgba(12, 12, 20, 0.8);
    --ann-bg-card-solid: #0c0c14;
    --ann-border: rgba(255, 255, 255, 0.06);
    --ann-border-light: rgba(255, 255, 255, 0.04);
    --ann-accent: #D285FF;
    --ann-accent-dim: rgba(210, 133, 255, 0.08);
    --ann-accent-glow: rgba(210, 133, 255, 0.25);
    --ann-cyan: #00E5FF;
    --ann-cyan-dim: rgba(0, 229, 255, 0.08);
    --ann-success: #10b981;
    --ann-success-dim: rgba(16, 185, 129, 0.1);
    --ann-warning: #f59e0b;
    --ann-warning-dim: rgba(245, 158, 11, 0.1);
    --ann-danger: #f87171;
    --ann-danger-dim: rgba(248, 113, 113, 0.1);
    --ann-info: #60a5fa;
    --ann-info-dim: rgba(96, 165, 250, 0.1);
    --ann-text: #E8E8ED;
    --ann-text-muted: #6B7280;
    --ann-text-dim: #3D3D4A;
    --ann-radius-l: 12px;
    --ann-radius-m: 10px;
    --ann-radius-s: 8px;
    --ann-radius-xs: 6px;
    --ann-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes annonceShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.ce-annonce-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

/* =====================================================
   BREADCRUMBS ROW — back button + breadcrumbs
   ===================================================== */
.ce-annonce-breadcrumbs-row {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.4s var(--ann-ease) both;
}

.ce-btn-back-chat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.2s var(--ann-ease), box-shadow 0.2s var(--ann-ease), background 0.2s;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.ce-btn-back-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #f5f5f5;
    color: #111;
}
.ce-btn-back-chat:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.ce-btn-back-chat svg {
    flex-shrink: 0;
}

/* =====================================================
   BREADCRUMBS — transparent, no grey background
   ===================================================== */
.ce-annonce-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 4px;
    padding: 16px 0;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.6;
    background: transparent;
    border-bottom: 1px solid var(--ann-border);
    animation: fadeInUp 0.4s var(--ann-ease) both;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ce-annonce-breadcrumbs::-webkit-scrollbar { display: none; }

.ce-annonce-breadcrumbs a {
    color: var(--ann-accent);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    white-space: nowrap;
    opacity: 0.85;
}

.ce-annonce-breadcrumbs a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ce-bc-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 300;
    user-select: none;
    flex-shrink: 0;
    padding: 0 2px;
}

.ce-bc-current {
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    font-weight: 500;
}

/* =====================================================
   TWO COLUMN LAYOUT
   ===================================================== */
.ce-annonce-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.ce-annonce-content {
    flex: 1;
    min-width: 0;
    animation: fadeInUp 0.5s var(--ann-ease) 0.05s both;
}

/* Sidebar — pure CSS sticky */
.ce-annonce-sidebar {
    width: 460px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 133, 255, 0.12) transparent;
    animation: fadeIn 0.5s var(--ann-ease) 0.1s both;
}

.ce-annonce-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.ce-annonce-sidebar-inner::-webkit-scrollbar { width: 3px; }
.ce-annonce-sidebar-inner::-webkit-scrollbar-thumb { background: rgba(210, 133, 255, 0.12); border-radius: 3px; }

/* =====================================================
   GALLERY
   ===================================================== */
.ce-annonce-gallery {
    margin-bottom: 28px;
    border-radius: var(--ann-radius-l);
    overflow: hidden;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
}

.ce-annonce-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #08080e;
    overflow: hidden;
}

.ce-annonce-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.ce-annonce-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ann-text-dim);
    font-size: 14px;
}

.ce-annonce-gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 133, 255, 0.2) transparent;
}

.ce-annonce-gallery-thumbs::-webkit-scrollbar { height: 3px; }
.ce-annonce-gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(210, 133, 255, 0.2); border-radius: 3px; }

.ce-annonce-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 52px;
    border-radius: var(--ann-radius-xs);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.ce-annonce-thumb:hover { opacity: 0.85; }

.ce-annonce-thumb.active {
    border-color: var(--ann-accent);
    opacity: 1;
}

.ce-annonce-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   TITLE BLOCK
   ===================================================== */
.ce-annonce-title-block {
    margin-bottom: 28px;
}

.ce-annonce-h1 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: var(--ann-text);
}

.ce-annonce-title-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ce-annonce-source {
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    color: var(--ann-text-muted);
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-xs);
}

.ce-annonce-vendeur-badge {
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    color: var(--ann-accent);
    padding: 3px 10px;
    background: var(--ann-accent-dim);
    border: 1px solid rgba(210, 133, 255, 0.15);
    border-radius: var(--ann-radius-xs);
}

.ce-annonce-location-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ann-text-muted);
}

.ce-annonce-location-inline svg { color: var(--ann-text-dim); }

/* =====================================================
   VIBE BADGES
   ===================================================== */
.ce-annonce-vibes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ce-vibe-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.15s;
}

.ce-vibe-badge:hover { transform: scale(1.04); }

.ce-vibe-green {
    background: var(--ann-success-dim);
    color: var(--ann-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ce-vibe-cyan {
    background: var(--ann-cyan-dim);
    color: var(--ann-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.ce-vibe-purple {
    background: var(--ann-accent-dim);
    color: var(--ann-accent);
    border: 1px solid rgba(210, 133, 255, 0.2);
}

.ce-vibe-orange {
    background: var(--ann-warning-dim);
    color: var(--ann-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ce-vibe-red {
    background: var(--ann-danger-dim);
    color: var(--ann-danger);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.ce-vibe-blue {
    background: var(--ann-info-dim);
    color: var(--ann-info);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* =====================================================
   SPECS GRID (key specs — up to 6)
   ===================================================== */
.ce-annonce-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 36px;
}

.ce-annonce-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-m);
    transition: all 0.3s var(--ann-ease);
}

.ce-annonce-spec:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.ce-annonce-spec-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ann-accent-dim);
    border-radius: var(--ann-radius-s);
    color: var(--ann-accent);
}

.ce-annonce-spec-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ce-annonce-spec-label {
    font-size: 10px;
    color: var(--ann-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ce-annonce-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ann-text);
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.ce-annonce-section {
    margin-bottom: 36px;
}

.ce-annonce-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ann-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ann-border);
    letter-spacing: -0.02em;
}

/* =====================================================
   DETAILS GRID — individual card style (no grey background)
   ===================================================== */
.ce-annonce-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ce-annonce-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-s);
    transition: border-color 0.2s ease;
}

.ce-annonce-detail:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.ce-annonce-detail-label {
    font-size: 10px;
    color: var(--ann-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ce-annonce-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ann-text);
}

/* =====================================================
   FICHE TECHNIQUE BUTTON (content area only)
   ===================================================== */
.ce-annonce-btn-fiche {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--ann-info-dim);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: var(--ann-radius-m);
    color: var(--ann-info);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s var(--ann-ease);
}

.ce-annonce-btn-fiche:hover {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-1px);
    color: var(--ann-info);
}

.ce-annonce-btn-fiche svg { flex-shrink: 0; }

/* =====================================================
   DESCRIPTION — card container with readable typography
   ===================================================== */
.ce-annonce-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    padding: 20px;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-l);
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 133, 255, 0.15) transparent;
}

.ce-annonce-description::-webkit-scrollbar { width: 3px; }
.ce-annonce-description::-webkit-scrollbar-thumb { background: rgba(210, 133, 255, 0.15); border-radius: 3px; }

/* =====================================================
   EQUIPEMENTS / OPTIONS — Accordion
   ===================================================== */

/* Total badge next to h2 */
.ce-opts-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    background: var(--ann-accent-dim);
    color: var(--ann-accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* Accordion container */
.ce-opts-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Each accordion group */
.ce-opts-group {
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-l);
    background: var(--ann-bg-card);
    transition: border-color 0.25s var(--ann-ease), box-shadow 0.25s var(--ann-ease);
}

.ce-opts-group:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.ce-opts-group.open {
    border-color: rgba(210, 133, 255, 0.18);
    box-shadow: 0 2px 16px rgba(210, 133, 255, 0.06);
}

/* Accordion header (button) */
.ce-opts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ann-text);
    font-family: inherit;
    font-size: 14px;
    transition: background 0.15s var(--ann-ease);
}

.ce-opts-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ce-opts-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ce-opts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ann-accent-dim);
    color: var(--ann-accent);
    flex-shrink: 0;
}

.ce-opts-group.open .ce-opts-icon {
    background: rgba(210, 133, 255, 0.14);
}

.ce-opts-cat-name {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.ce-opts-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ann-text-muted);
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

.ce-opts-group.open .ce-opts-count {
    background: var(--ann-accent-dim);
    color: var(--ann-accent);
}

/* Chevron rotation */
.ce-opts-chevron {
    color: var(--ann-text-dim);
    transition: transform 0.3s var(--ann-ease), color 0.2s;
    flex-shrink: 0;
}

.ce-opts-group.open .ce-opts-chevron {
    transform: rotate(180deg);
    color: var(--ann-accent);
}

/* Accordion body — collapsed by default */
.ce-opts-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ann-ease);
}

.ce-opts-group.open .ce-opts-body {
    grid-template-rows: 1fr;
}

.ce-opts-body > .ce-opts-items {
    overflow: hidden;
}

/* Items grid inside body — proper multi-column layout */
.ce-opts-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0 8px 12px;
    border-top: 1px solid var(--ann-border-light);
    margin: 0 12px;
}

/* Individual option item — clean row style */
.ce-opts-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
    border-radius: var(--ann-radius-xs);
    transition: background 0.15s;
}

.ce-opts-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ce-opts-item svg {
    flex-shrink: 0;
    color: var(--ann-success);
    width: 14px;
    height: 14px;
}

/* =====================================================
   SIMILAR ANNONCES — chat card design
   ===================================================== */
.ce-annonce-similaires {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ce-annonce-sim-card {
    background: linear-gradient(145deg, rgba(28, 22, 50, 0.95) 0%, rgba(18, 14, 35, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.ce-annonce-sim-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: linear-gradient(145deg, rgba(210, 133, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.ce-annonce-sim-card:hover {
    border-color: rgba(210, 133, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(210, 133, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(210, 133, 255, 0.08);
}

.ce-annonce-sim-card:hover::after { opacity: 1; }

/* Image container */
.ce-annonce-sim-img {
    position: relative;
    height: 150px;
    background: #0a0812;
    overflow: hidden;
}

.ce-annonce-sim-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(18, 14, 35, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

.ce-annonce-sim-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-annonce-sim-card:hover .ce-annonce-sim-img img { transform: scale(1.06); }

.ce-annonce-sim-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vendor badge on image */
.ce-sim-vendor-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ce-sim-vendor-pro {
    background: rgba(100, 100, 100, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ce-sim-vendor-particulier {
    background: rgba(34, 34, 34, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card body */
.ce-annonce-sim-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header: title wrap + price */
.ce-annonce-sim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ce-sim-title-wrap {
    flex: 1;
    min-width: 0;
}

.ce-annonce-sim-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
}

.ce-annonce-sim-finition {
    font-size: 12px;
    font-weight: 500;
    color: var(--ann-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 2px;
}

.ce-annonce-sim-price {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

/* Specs grid — matches chat card */
.ce-sim-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ce-sim-spec {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ann-text-muted);
}

.ce-sim-spec-icon {
    width: 15px;
    height: 15px;
    opacity: 0.5;
    flex-shrink: 0;
}

.ce-sim-spec span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer with platform badge */
.ce-sim-footer {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ce-sim-platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
}

.ce-sim-platform-paruvendu { background: linear-gradient(135deg, #1a1a1a, #dc2626); }
.ce-sim-platform-lacentrale { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.ce-sim-platform-leboncoin { background: linear-gradient(135deg, #ff6600, #ff8533); }
.ce-sim-platform-autoselection { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ce-sim-platform-transakauto { background: linear-gradient(135deg, #ec4899, #db2777); }
.ce-sim-platform-ouestfrance { background: linear-gradient(135deg, #991b1b, #7f1d1d); }

/* =====================================================
   SIDEBAR - PRICE BLOCK (admin card style)
   ===================================================== */
.ce-annonce-price-block {
    padding: 20px;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-l);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.ce-annonce-price-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(210, 133, 255, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

.ce-annonce-price {
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-size: 32px;
    font-weight: 800;
    color: var(--ann-text);
    line-height: 1.1;
    letter-spacing: -2px;
}

.ce-annonce-vehicle-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ann-text);
    line-height: 1.3;
    margin-top: 2px;
}

.ce-annonce-price-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ce-annonce-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ann-text-muted);
}

.ce-annonce-location svg { flex-shrink: 0; color: var(--ann-text-dim); }

.ce-annonce-vendeur {
    font-size: 12px;
    color: rgba(210, 133, 255, 0.7);
    font-weight: 600;
}

.ce-annonce-source-block {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--ann-border);
    font-size: 12px;
    color: var(--ann-text-muted);
}

.ce-annonce-source-block strong {
    color: var(--ann-text);
    font-weight: 600;
}

.ce-annonce-source-logo {
    border-radius: 3px;
    flex-shrink: 0;
}

/* =====================================================
   SIDEBAR - BUTTONS (admin button style)
   ===================================================== */
.ce-annonce-btn-original {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-m);
    color: var(--ann-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--ann-ease);
}

.ce-annonce-btn-original:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--ann-text);
}

.ce-annonce-btn-scan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--ann-accent), #a855f7);
    border: none;
    border-radius: var(--ann-radius-m);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ann-ease);
    width: 100%;
    box-shadow: 0 4px 20px var(--ann-accent-glow);
}

.ce-annonce-btn-scan:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(210, 133, 255, 0.35);
}

.ce-annonce-btn-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-m);
    color: var(--ann-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ann-ease);
    width: 100%;
}

.ce-annonce-btn-message:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--ann-text);
}

/* =====================================================
   SCAN RESULTS (Orion) — tabs
   ===================================================== */
.ce-annonce-scan-results {
    padding: 12px;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-l);
}

.ce-annonce-scan-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--ann-text-muted);
    font-size: 13px;
}

.ce-annonce-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(210, 133, 255, 0.2);
    border-top-color: var(--ann-accent);
    border-radius: 50%;
    animation: spinnerRotate 0.7s linear infinite;
}

/* Scan Tabs */
.ce-scan-tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--ann-radius-s);
    padding: 3px;
}

.ce-scan-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    border: none;
    background: transparent;
    border-radius: var(--ann-radius-xs);
    color: var(--ann-text-dim);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ce-scan-tab:hover {
    color: var(--ann-text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.ce-scan-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ann-text-dim);
    font-family: 'JetBrains Mono', monospace;
}

/* Tab active colors */
.ce-scan-tab[data-tab="forts"].active { background: var(--ann-success-dim); color: var(--ann-success); }
.ce-scan-tab[data-tab="forts"].active .ce-scan-tab-count { background: rgba(16, 185, 129, 0.2); color: var(--ann-success); }
.ce-scan-tab[data-tab="faibles"].active { background: var(--ann-warning-dim); color: var(--ann-warning); }
.ce-scan-tab[data-tab="faibles"].active .ce-scan-tab-count { background: rgba(245, 158, 11, 0.2); color: var(--ann-warning); }
.ce-scan-tab[data-tab="alertes"].active { background: var(--ann-danger-dim); color: var(--ann-danger); }
.ce-scan-tab[data-tab="alertes"].active .ce-scan-tab-count { background: rgba(248, 113, 113, 0.2); color: var(--ann-danger); }

/* Tab panels */
.ce-scan-panel { display: none; }
.ce-scan-panel.active { display: block; }

.scan-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    padding: 7px 0 7px 18px;
    position: relative;
    border-bottom: 1px solid var(--ann-border-light);
}

.scan-item:last-child { border-bottom: none; }

.scan-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.scan-item.fort::before { background: var(--ann-success); }
.scan-item.faible::before { background: var(--ann-warning); }

.scan-alerte {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    padding: 10px;
    background: var(--ann-danger-dim);
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: var(--ann-radius-s);
    margin-bottom: 6px;
}

.scan-alerte:last-child { margin-bottom: 0; }

.scan-alerte-titre {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
    font-size: 12px;
}

.scan-alerte.info {
    background: var(--ann-info-dim);
    border-color: rgba(96, 165, 250, 0.15);
}

.scan-empty {
    text-align: center;
    padding: 14px 0;
    color: var(--ann-text-dim);
    font-size: 12px;
}

/* =====================================================
   MESSAGE RESULT
   ===================================================== */
.ce-annonce-message-result {
    padding: 14px;
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-l);
}

.ce-annonce-message-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--ann-text-muted);
    font-size: 13px;
}

.ce-annonce-message-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-s);
    padding: 12px;
    margin: 0 0 10px 0;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 133, 255, 0.15) transparent;
}

.ce-annonce-btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--ann-accent-dim);
    border: 1px solid rgba(210, 133, 255, 0.15);
    border-radius: var(--ann-radius-xs);
    color: var(--ann-accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.ce-annonce-btn-copy:hover { background: rgba(210, 133, 255, 0.15); border-color: rgba(210, 133, 255, 0.3); }
.ce-annonce-btn-copy.copied { color: var(--ann-success); border-color: rgba(16, 185, 129, 0.3); background: var(--ann-success-dim); }

/* =====================================================
   SIDEBAR SEPARATOR
   ===================================================== */
.ce-annonce-sidebar-sep {
    height: 1px;
    background: var(--ann-border);
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.ce-annonce-sidebar-sep::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 133, 255, 0.4), transparent);
    animation: annonceShimmer 5s ease-in-out infinite;
}

/* =====================================================
   MINI CHAT IA — proper flex layout (input always visible)
   ===================================================== */
.ce-annonce-chat {
    background: var(--ann-bg-card);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-l);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ce-annonce-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--ann-border-light);
    flex-shrink: 0;
}

.ce-annonce-chat-header svg { color: var(--ann-accent); flex-shrink: 0; }

.ce-annonce-chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 133, 255, 0.15) transparent;
}

.ce-annonce-chat-body::-webkit-scrollbar { width: 3px; }
.ce-annonce-chat-body::-webkit-scrollbar-thumb { background: rgba(210, 133, 255, 0.15); border-radius: 3px; }

.ce-annonce-chat-messages {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 20px;
}

.chat-msg {
    max-width: 92%;
    padding: 8px 12px;
    border-radius: var(--ann-radius-m);
    font-size: 12px;
    line-height: 1.6;
    animation: fadeInUp 0.25s ease both;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--ann-accent-dim);
    border: 1px solid rgba(210, 133, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.chat-msg.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ann-border);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
}

/* Collapsible long messages */
.chat-msg.assistant.collapsed {
    max-height: 80px;
    overflow: hidden;
}

.chat-msg.assistant.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--ann-bg-card-solid));
    pointer-events: none;
    border-radius: 0 0 var(--ann-radius-m) var(--ann-radius-m);
}

.chat-msg-expand {
    display: block;
    margin-top: 4px;
    padding: 0;
    background: none;
    border: none;
    color: var(--ann-accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-msg-expand:hover { color: #c066f7; }

/* Formatted chat content */
.chat-msg.assistant p { margin: 0 0 6px 0; }
.chat-msg.assistant p:last-child { margin-bottom: 0; }
.chat-msg.assistant strong { color: rgba(255, 255, 255, 0.9); }
.chat-msg.assistant ul, .chat-msg.assistant ol {
    margin: 4px 0 6px 0;
    padding-left: 16px;
}
.chat-msg.assistant li { margin-bottom: 2px; }
.chat-msg.assistant br + br { display: none; }

.chat-msg.loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ce-annonce-chat-suggestions {
    display: flex;
    gap: 5px;
    padding: 0 14px 8px;
    flex-wrap: wrap;
}

.ce-annonce-chat-suggestion {
    padding: 5px 10px;
    background: var(--ann-accent-dim);
    border: 1px solid rgba(210, 133, 255, 0.12);
    border-radius: 16px;
    color: rgba(210, 133, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ce-annonce-chat-suggestion:hover {
    background: rgba(210, 133, 255, 0.12);
    border-color: rgba(210, 133, 255, 0.25);
    color: var(--ann-accent);
}

.ce-annonce-chat-input {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid var(--ann-border-light);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.ce-annonce-chat-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-xs);
    padding: 8px 12px;
    color: var(--ann-text);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s var(--ann-ease);
}

.ce-annonce-chat-input input::placeholder { color: var(--ann-text-dim); }
.ce-annonce-chat-input input:focus {
    border-color: var(--ann-accent);
    box-shadow: 0 0 0 3px var(--ann-accent-dim);
}

.ce-annonce-chat-input button {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ann-accent), #a855f7);
    border: none;
    border-radius: var(--ann-radius-xs);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ce-annonce-chat-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--ann-accent-glow);
}

/* =====================================================
   SEO / GUIDE D'ACHAT — prominent card with accent
   ===================================================== */
.ce-annonce-seo {
    margin: 48px 0;
    padding: 28px;
    background: linear-gradient(145deg, rgba(28, 22, 50, 0.6) 0%, var(--ann-bg-card) 100%);
    border: 1px solid rgba(210, 133, 255, 0.12);
    border-radius: var(--ann-radius-l);
    animation: fadeInUp 0.5s var(--ann-ease) 0.3s both;
    position: relative;
    overflow: hidden;
}

.ce-annonce-seo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(210, 133, 255, 0.4), rgba(0, 229, 255, 0.3), transparent);
}

.ce-annonce-seo h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ann-text);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.ce-annonce-seo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0 0 12px 0;
}

.ce-annonce-seo p:last-child { margin-bottom: 0; }
.ce-annonce-seo strong { color: rgba(255, 255, 255, 0.85); }
.ce-annonce-seo a { color: var(--ann-accent); text-decoration: none; transition: color 0.2s; }
.ce-annonce-seo a:hover { color: #c066f7; text-decoration: underline; }

/* =====================================================
   FOOTER
   ===================================================== */
.ce-annonce-footer {
    text-align: center;
    padding: 32px 0 48px;
    border-top: 1px solid var(--ann-border);
    animation: fadeInUp 0.5s var(--ann-ease) 0.4s both;
}

.ce-annonce-footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.ce-annonce-footer-links a { color: var(--ann-text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.ce-annonce-footer-links a:hover { color: var(--ann-accent); }
.ce-annonce-footer-copy { font-size: 12px; color: var(--ann-text-dim); margin: 0; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .ce-annonce-main {
        padding: 0 24px;
        padding-top: 100px;
    }

    .ce-annonce-sidebar { width: 420px; }
}

@media (max-width: 1024px) {
    .ce-annonce-layout {
        flex-direction: column;
    }

    .ce-annonce-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .ce-annonce-chat {
        flex: none;
    }

    .ce-annonce-chat-body {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .ce-annonce-main {
        padding: 0 16px;
        padding-top: 80px;
    }

    .ce-annonce-h1 { font-size: 22px; }

    .ce-annonce-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .ce-annonce-spec { padding: 10px; }
    .ce-annonce-spec-icon { width: 30px; height: 30px; }
    .ce-annonce-spec-label { font-size: 9px; }
    .ce-annonce-spec-value { font-size: 13px; }

    .ce-annonce-details-grid { grid-template-columns: repeat(2, 1fr); }

    .ce-annonce-similaires {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ce-annonce-sim-img { height: 130px; }
    .ce-annonce-sim-title { font-size: 14px; }
    .ce-annonce-sim-price { font-size: 15px; }
    .ce-sim-spec { font-size: 12px; }

    .ce-annonce-price { font-size: 26px; }

    .ce-annonce-seo {
        padding: 20px;
        margin: 32px 0;
    }

    .ce-scan-tab {
        font-size: 10px;
        padding: 6px 3px;
    }

    .ce-annonce-btn-fiche {
        font-size: 13px;
        padding: 10px 16px;
    }

    .ce-vibe-badge { font-size: 11px; padding: 4px 10px; }

    /* Accordion responsive — tablet */
    .ce-opts-header { padding: 12px 16px; }
    .ce-opts-icon { width: 32px; height: 32px; border-radius: 8px; }
    .ce-opts-icon svg { width: 14px; height: 14px; }
    .ce-opts-cat-name { font-size: 13px; }
    .ce-opts-items { margin: 0 8px; padding: 0 4px 10px; }
    .ce-opts-item { padding: 7px 10px; font-size: 12px; gap: 8px; }
}

@media (max-width: 480px) {
    .ce-annonce-h1 { font-size: 20px; }

    .ce-annonce-specs-grid { grid-template-columns: 1fr 1fr; }
    .ce-annonce-details-grid { grid-template-columns: 1fr; }
    .ce-annonce-similaires { grid-template-columns: 1fr 1fr; }

    /* Accordion responsive — mobile: single column */
    .ce-opts-accordion { gap: 6px; }
    .ce-opts-header { padding: 10px 14px; }
    .ce-opts-icon { width: 28px; height: 28px; border-radius: 7px; }
    .ce-opts-icon svg { width: 13px; height: 13px; }
    .ce-opts-cat-name { font-size: 12px; }
    .ce-opts-count { min-width: 20px; height: 20px; font-size: 10px; padding: 0 6px; }
    .ce-opts-items { grid-template-columns: 1fr; margin: 0 6px; padding: 0 2px 8px; }
    .ce-opts-item { padding: 7px 8px; font-size: 12px; gap: 8px; }

    .ce-annonce-breadcrumbs-row { gap: 10px; flex-wrap: wrap; }
    .ce-btn-back-chat { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
    .ce-annonce-breadcrumbs { font-size: 12px; }
    .ce-annonce-sim-card { border-radius: 10px; }
    .ce-annonce-sim-img { height: 110px; }
    .ce-sim-vendor-badge { font-size: 9px; padding: 3px 7px; }
    .ce-annonce-sim-body { padding: 10px; gap: 8px; }
    .ce-sim-specs-grid { padding: 8px 10px; gap: 6px 10px; }
    .ce-sim-spec { font-size: 11px; }
}

/* =====================================================
   REDUCE MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .ce-annonce-breadcrumbs,
    .ce-annonce-layout,
    .ce-annonce-seo,
    .ce-annonce-footer,
    .chat-msg {
        animation: none !important;
    }
    .ce-annonce-spinner { animation: none !important; }
}
