/* chauffeurs-vtc.paris — TOC Sidebar (Sommaire sticky) */

@media (min-width: 992px) {
    .toc-row {
        display: flex; gap: 2rem;
        justify-content: center;
        max-width: 1400px; margin: 0 auto;
    }
    .toc-content-col { flex: 1 1 auto; max-width: 760px; min-width: 0; }
    .toc-sidebar-col { flex: 0 0 300px; max-width: 300px; }
}

.toc-sidebar-inner {
    position: sticky; top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: .5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.toc-sidebar-inner::-webkit-scrollbar { width: 6px; }
.toc-sidebar-inner::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.toc-image-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    aspect-ratio: 16/10;
    background: #f1f5f9;
}
.toc-image-card img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}
.toc-image-card:hover img { transform: scale(1.05); }
.toc-image-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.35), transparent 50%);
    pointer-events: none;
}

.toc-cta-btn {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, var(--or-premium, #D4AF37), var(--or-fonce, #B8941F));
    color: var(--bleu-nuit, #0F172A) !important;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(212,175,55,.35);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-bottom: 1rem;
    width: 100%;
}
.toc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212,175,55,.5);
    color: var(--bleu-nuit, #0F172A) !important;
}
.toc-cta-btn i.fa-phone {
    font-size: 1.25rem;
    background: rgba(15,23,42,.15);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
}
.toc-cta-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.toc-cta-btn strong { font-size: .95rem; font-weight: 700; }
.toc-cta-btn small { font-size: .85rem; opacity: .95; font-weight: 500; }

.toc-nav {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}
.toc-toggle {
    display: flex; align-items: center; gap: .5rem;
    width: 100%; padding: 0;
    background: transparent; border: none;
    font-weight: 700;
    color: var(--bleu-nuit, #0F172A);
    cursor: pointer;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--or-premium, #D4AF37);
    margin-bottom: .75rem;
    font-size: 1rem;
}
.toc-toggle .toc-chevron {
    margin-left: auto;
    font-size: .85rem;
    transition: transform .3s ease;
    display: none;
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: .3rem; }
.toc-list a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    padding: .55rem .85rem;
    color: #475569;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all .2s ease;
    font-size: .9rem;
    line-height: 1.4;
}
.toc-list a:hover {
    background: #fff;
    color: var(--bleu-premium, #1E40AF);
    border-left-color: #c7d2fe;
}
.toc-list a.active {
    background: #fff;
    color: var(--or-premium, #D4AF37);
    border-left-color: var(--or-premium, #D4AF37);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212,175,55,.18);
}

@media (max-width: 991px) {
    .toc-row { flex-direction: column; }
    .toc-sidebar-col { order: -1; margin-bottom: 1.5rem; }
    .toc-sidebar-inner { position: static; max-height: none; overflow-y: visible; padding-right: 0; }
    .toc-image-card { aspect-ratio: 21/9; margin-bottom: .75rem; }
    .toc-toggle .toc-chevron { display: inline-block; }
    .toc-list { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
    .toc-nav.expanded .toc-list { max-height: 600px; }
    .toc-nav.expanded .toc-chevron { transform: rotate(180deg); }
}
@media (max-width: 575px) {
    .toc-image-card { aspect-ratio: 21/11; border-radius: 10px; }
    .toc-cta-btn, .toc-nav { border-radius: 10px; }
}
