/* =========================================================
   Cibles — Page carte des points de vente
   ========================================================= */

/* ── Reset partiel ───────────────────────────────────────── */
.cc-wrap *, .cc-wrap *::before, .cc-wrap *::after {
    box-sizing: border-box;
}

/* ── Corps de page ──────────────────────────────────────── */
body.cibles-carte-page {
    background: #f5f4f2;
    margin: 0;
}

/* ── Conteneur principal ────────────────────────────────── */
.cc-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    font-family: Arial, Helvetica, sans-serif;
    color: #1a1a1a;
}

/* ── En-tête ────────────────────────────────────────────── */
.cc-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 3px solid #d11f26;
}

.cc-header h1 {
    font-family: Impact, "Oswald", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.cc-subtitle {
    font-size: 15px;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.5;
}

.cc-source {
    font-size: 12px;
    color: #999;
    margin: 0;
    letter-spacing: 0.03em;
}

/* ── Barre de contrôles ─────────────────────────────────── */
.cc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cc-search-group {
    display: flex;
    flex: 1 1 260px;
    min-width: 0;
    gap: 0;
}

.cc-search-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.cc-search-input:focus {
    border-color: #d11f26;
}

.cc-btn {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.03em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cc-btn--primary {
    background: #d11f26;
    color: #fff;
    border-radius: 0 3px 3px 0;
}

.cc-btn--primary:hover {
    background: #a8181e;
}

.cc-btn--outline {
    background: #fff;
    color: #d11f26;
    border: 1px solid #d11f26;
    border-radius: 3px;
    flex-shrink: 0;
}

.cc-btn--outline:hover {
    background: #d11f26;
    color: #fff;
}

.cc-counter {
    font-size: 13px;
    color: #666;
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin-left: auto;
}

/* ── Carte ──────────────────────────────────────────────── */
.cc-map {
    width: 100%;
    height: 70vh;
    min-height: 420px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #e8e4dc;
}

/* ── Erreur ─────────────────────────────────────────────── */
.cc-error {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-left: 3px solid #d11f26;
    border-radius: 3px;
    font-size: 14px;
    color: #8a1213;
}

/* ── Popup Leaflet — surcharges ─────────────────────────── */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #1a1a1a;
}

.leaflet-popup-content {
    margin: 14px 16px;
    line-height: 1.5;
    min-width: 180px;
    max-width: 260px;
}

.cc-popup-nom {
    font-weight: bold;
    font-size: 14px;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.cc-popup-adresse {
    color: #444;
    margin: 0 0 2px;
}

.cc-popup-ville {
    color: #444;
    margin: 0 0 4px;
}

.cc-popup-nature {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.cc-popup-approx {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
    margin: 0 0 8px;
}

/* .leaflet-container a (leaflet.css) est plus spécifique et repasse le lien
   en bleu — d'où le préfixe pour garder le texte blanc sur fond rouge. */
.leaflet-container a.cc-popup-itineraire {
    display: inline-block;
    padding: 5px 10px;
    background: #d11f26;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.leaflet-container a.cc-popup-itineraire:hover {
    background: #a8181e;
    color: #fff;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cc-wrap {
        padding: 20px 16px 32px;
    }

    .cc-header h1 {
        font-size: 28px;
    }

    .cc-map {
        height: 70vh;
        min-height: 420px;
    }

    .cc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-search-group {
        flex: 1 1 auto;
    }

    .cc-btn--outline {
        justify-content: center;
    }

    .cc-counter {
        margin-left: 0;
        text-align: center;
    }
}
