/**
 * Accordéon « Centres de la zone » — SOS Pare-Brise+
 * Reproduction fidèle du composant Repair Centers Accordion (snippet Angie 99060595),
 * version dynamique. Préfixe : sospb-cz.
 *
 * Les valeurs visuelles (couleurs marque, paddings, arrondis) qui provenaient
 * des contrôles de style Elementor sont ici figées dans la feuille de styles.
 *
 * Palette : #1e2a5a (bleu marque) · #f5c518 (jaune CTA) · #f59e0b (étoile)
 */

/* Le widget Elementor remplit sa colonne et ne se dimensionne JAMAIS au contenu
   (sinon la longue liste « autres villes » élargit la carte à l'ouverture). */
.elementor-widget-sospb_centres_zone,
.elementor-widget-sospb_centres_zone > .elementor-widget-container {
    width: 100%;
    min-width: 0;
}

.sospb-cz-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: inherit;
    /* L'ancre ne se cale pas sous l'en-tête sticky au scroll. */
    scroll-margin-top: 100px;
}

/* ---------------------------------------------------------------- Carte */
.sospb-cz-item {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background-color: #f8f9fc;
    padding: 20px 24px;
    margin: 0 0 12px;
    border-radius: 12px;
    /* On n'anime que la hauteur du volet déplié, jamais la largeur. */
    transition: none;
    overflow: hidden;
}

.sospb-cz-item:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------- Header */
.sospb-cz-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sospb-cz-header-left {
    flex: 1;
    min-width: 200px;
}

.sospb-cz-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #1e2a5a;
}

.sospb-cz-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #1e2a5a;
}

.sospb-cz-meta-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

.sospb-cz-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sospb-cz-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sospb-cz-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sospb-cz-star {
    font-size: 16px;
    color: #f59e0b;
}

.sospb-cz-rating-text {
    font-weight: 700;
    color: #1e2a5a;
}

.sospb-cz-reviews {
    font-weight: 400;
    color: #6b7280;
}

/* ---------------------------------------------------------- Header right */
.sospb-cz-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sospb-cz-rdv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px 4px 12px 4px;
    background-color: #f5c518;
    color: #1e2a5a;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.sospb-cz-rdv-btn:hover {
    opacity: 0.85;
}

.sospb-cz-rdv-icon {
    display: inline-flex;
    align-items: center;
    color: #1e2a5a;
}

.sospb-cz-rdv-icon svg {
    width: 18px;
    height: 18px;
}

.sospb-cz-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px 4px 12px 4px;
    background-color: #ffffff;
    color: #1e2a5a;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.sospb-cz-phone-btn:hover {
    opacity: 0.85;
}

.sospb-cz-phone-icon {
    display: inline-flex;
    align-items: center;
    color: #1e2a5a;
}

.sospb-cz-phone-icon svg {
    width: 16px;
    height: 16px;
}

/* Carré BLANC + signe BLEU, identique dans tous les états.
   !important pour passer devant les styles globaux de <button> du thème. */
.sospb-cz-toggle,
.sospb-cz-toggle:hover,
.sospb-cz-toggle:focus,
.sospb-cz-toggle:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #1e2a5a !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.sospb-cz-toggle:hover {
    opacity: 0.7;
}

.sospb-cz-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e2a5a !important;
}

/* En-tête cliquable : déplie les zones desservies (hors boutons/liens). */
.sospb-cz-header {
    cursor: pointer;
}

/* « + » en variante lien (fiche centre) : pas de soulignement de thème. */
.sospb-cz-toggle--link,
.sospb-cz-toggle--link:hover,
.sospb-cz-toggle--link:focus {
    text-decoration: none !important;
}

/* -------------------------------------------------------------- Déplié */
.sospb-cz-expanded {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.35s ease;
}

.sospb-cz-sep {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

/* Zones row */
.sospb-cz-zones-row {
    display: flex;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* min-width:0 = les colonnes n'imposent plus de largeur mini : le texte long
   « autres villes » se met sur plusieurs lignes au lieu d'élargir la carte. */
.sospb-cz-zones-col {
    flex: 1 1 250px;
    min-width: 0;
}

.sospb-cz-autres-col {
    flex: 1 1 200px;
    min-width: 0;
}

.sospb-cz-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

.sospb-cz-section-icon {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
}

.sospb-cz-section-icon svg {
    width: 16px;
    height: 16px;
}

.sospb-cz-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sospb-cz-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #ffffff;
    color: #1e2a5a;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.sospb-cz-pill-extra {
    font-weight: 600;
}

.sospb-cz-autres-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    overflow-wrap: anywhere;
}

/* ----------------------------------------------------------- Bottom CTA */
.sospb-cz-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 30px;
    border-radius: 10px;
    background-color: #f5c518;
    color: #1e2a5a;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.sospb-cz-cta:hover {
    opacity: 0.9;
}

.sospb-cz-cta-icon {
    display: inline-flex;
    align-items: center;
}

.sospb-cz-cta-icon svg {
    width: 20px;
    height: 20px;
}

/* État vide */
.sospb-cz-empty {
    padding: 16px 0;
    color: #6b7280;
    font-size: 14px;
}

/* --------------------------------------------- Départements à proximité */
.sospb-cz-depts {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.sospb-cz-depts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sospb-cz-dept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #54595f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sospb-cz-dept-icon {
    flex: 0 0 auto;
}

.sospb-cz-dept:hover {
    opacity: 0.75;
}

.sospb-cz-dept-plain {
    color: #6b7280;
}

.sospb-cz-depts-cta-wrap {
    margin-top: 20px;
}

.sospb-cz-depts-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    background-color: #f5c518;
    color: #1e2a5a;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sospb-cz-depts-cta:hover {
    opacity: 0.9;
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 767px) {
    .sospb-cz-header {
        flex-direction: column;
    }

    .sospb-cz-header-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .sospb-cz-rdv-btn,
    .sospb-cz-phone-btn {
        flex: 1;
        justify-content: center;
    }

    .sospb-cz-zones-row {
        flex-direction: column;
    }

    .sospb-cz-name {
        font-size: 18px;
    }
}
