/**
 * SOS Pare-Brise+ — Vitrine centres (home/services).
 * Desktop : 2 colonnes [ image | panneau (surtitre + titre + liste + CTA) ].
 * La LISTE reprend au pixel le markup + le style des lignes de /centres/ (.sos-sl__result-row),
 * styles copiés ici et scopés sous .sos-vc (aucune dépendance au CSS du store-locator).
 * Mobile (<=1090px) : image + intro masquées ; on ne garde que la liste + le CTA.
 */
.sos-vc {
    --sos-vc-navy:   #21326A;
    --sos-vc-yellow: #FFCC2B;
    --sos-vc-blue:   #009FE6;
    --sos-vc-muted:  #5A6E8C;

    width: 100%;
    box-sizing: border-box;
}

.sos-vc *,
.sos-vc *::before,
.sos-vc *::after {
    box-sizing: border-box;
}

.sos-vc__inner {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 32px;
    align-items: stretch;
}

/* Colonne gauche : image */
.sos-vc__media,
.sos-vc__media-link {
    display: block;
    height: 100%;
}

.sos-vc__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Colonne droite : panneau */
.sos-vc__panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Surtitre : Outfit 700 / #009fe6 / 11px */
.sos-vc__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: var(--sos-vc-blue);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Titre : Outfit 900 / 30px ; marine #21326a + accent jaune #ffcc2b (retour à la ligne) */
.sos-vc__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.sos-vc__title-navy {
    color: var(--sos-vc-navy);
}

.sos-vc__title-accent {
    color: var(--sos-vc-yellow);
}

.sos-vc__lead {
    margin: 0 0 4px;
    color: var(--sos-vc-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* ====================================================================
   LISTE : boîte 4 items visibles + scroll (scrollbar masquée)
   ==================================================================== */
.sos-vc__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 4 lignes pleines (~76px mesuré) + 3 gaps de 12px, + un léger débord (~12px)
       qui laisse juste apparaître le haut de la 5e ligne pour amorcer le scroll. */
    max-height: 364px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sos-vc__list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ====================================================================
   LIGNE CENTRE — COPIE PIXEL-PERFECT de /centres/ (.sos-sl__result-row),
   scopée .sos-vc. Si /centres/ évolue, reporter ici.
   ==================================================================== */
.sos-vc .sos-sl__result-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid rgba(33, 50, 106, 0.10);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.sos-vc .sos-sl__result-row:hover {
    border-color: rgba(33, 50, 106, 0.25);
    box-shadow: 0 4px 16px rgba(33, 50, 106, 0.08);
    transform: translateY(-1px);
}

.sos-vc .sos-sl__result-row-info {
    min-width: 0;
}

.sos-vc .sos-sl__result-row-name {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #21326A !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
}

.sos-vc .sos-sl__result-row-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.sos-vc .sos-sl__result-row-distance {
    font-size: 11px;
    font-weight: 600;
    color: #21326A;
    background: #ECF0F8;
    padding: 3px 9px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: -0.005em;
    flex-shrink: 0;
}

.sos-vc .sos-sl__result-row-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.sos-vc .sos-sl__result-row-status--open {
    background: rgba(31, 167, 111, 0.10);
    color: #1FA76F;
}

.sos-vc .sos-sl__result-row-status--closing-soon {
    background: rgba(232, 156, 43, 0.12);
    color: #E89C2B;
}

.sos-vc .sos-sl__result-row-status--closed {
    background: #EEF2F8;
    color: #8B96AE;
}

.sos-vc .sos-sl__result-row-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.sos-vc .sos-sl__result-row-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #21326A;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.sos-vc .sos-sl__result-row-rating-star {
    color: #FFCC2B;
    font-size: 14px;
    line-height: 1;
}

.sos-vc .sos-sl__result-row-cta {
    height: 40px;
    padding-left: 16px;
    padding-right: 16px;
    background: linear-gradient(180deg, #FFD955 0%, #FFCC2B 100%);
    color: #21326A;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px 4px 14px 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow:
        0 1px 2px rgba(33, 50, 106, 0.08),
        0 4px 8px rgba(33, 50, 106, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.50),
        inset 0 -2px 0 rgba(33, 50, 106, 0.10);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.sos-vc .sos-sl__result-row-cta:hover,
.sos-vc .sos-sl__result-row-cta:focus,
.sos-vc .sos-sl__result-row-cta:focus-visible {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 4px 8px rgba(33, 50, 106, 0.10),
        0 8px 16px rgba(255, 204, 43, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.50),
        inset 0 -2px 0 rgba(33, 50, 106, 0.10);
    outline: none;
}

.sos-vc .sos-sl__result-row-expand {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid rgba(33, 50, 106, 0.14);
    border-radius: 8px;
    color: #009FE6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    text-decoration: none;
}

.sos-vc .sos-sl__result-row-expand:hover,
.sos-vc .sos-sl__result-row-expand:focus,
.sos-vc .sos-sl__result-row-expand:focus-visible {
    border-color: #009FE6;
    background: rgba(0, 159, 230, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.sos-vc .sos-sl__result-row-expand svg {
    align-self: center;
    flex-shrink: 0;
}

/* CTA bas « Voir les N centres » */
.sos-vc__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 18px 56px 18px 30px;
    background: var(--sos-vc-yellow);
    color: var(--sos-vc-navy);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 18px 5px 18px 5px;
}

.sos-vc__cta-picto {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
}

.sos-vc__cta-picto img {
    display: block;
    width: auto;
    height: 30px;
}

/* ============================================================
   MOBILE (<= 1090px) : on ne garde que la liste + le CTA.
   ============================================================ */
@media (max-width: 1090px) {
    .sos-vc__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sos-vc__media,
    .sos-vc__eyebrow,
    .sos-vc__title,
    .sos-vc__lead {
        display: none;
    }

    .sos-vc__cta {
        width: 100%;
    }
}
