/* INDECOSA Carte des Associations */

#indecosa-carte-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

#indecosa-carte-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

#indecosa-carte-map {
    flex: 1 1 60%;
    min-width: 300px;
}

#indecosa-carte-map svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Department paths – SVG géographique */
#indecosa-carte-map svg path.dept {
    fill: #dde8f0;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.15s, opacity 0.15s;
}

#indecosa-carte-map svg path.dept.dept-has-data {
    fill: #c0392b;
}

#indecosa-carte-map svg path.dept:hover {
    opacity: 0.75;
    stroke: #333;
    stroke-width: 1;
}

#indecosa-carte-map svg path.dept.dept-selected {
    opacity: 0.8;
    stroke: #222;
    stroke-width: 1.5;
}

/* Panel */
#indecosa-carte-panel {
    flex: 0 0 340px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    transition: all 0.2s;
}

#indecosa-carte-panel.hidden {
    display: none;
}

#indecosa-close-panel {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px;
}

#indecosa-close-panel:hover {
    color: #c0392b;
}

/* Panel content */
.indecosa-dept-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #c0392b;
}

.indecosa-dept-num {
    background: #c0392b;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.indecosa-dept-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indecosa-contact-section {
    margin-bottom: 16px;
}

.indecosa-contact-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 0 0 8px 0;
}

.indecosa-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.indecosa-contact-row .icon {
    width: 18px;
    text-align: center;
    color: #c0392b;
    font-size: 15px;
    flex-shrink: 0;
}

.indecosa-contact-row a {
    color: #c0392b;
    text-decoration: none;
    word-break: break-all;
}

.indecosa-contact-row a:hover {
    text-decoration: underline;
}

.indecosa-membres {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.indecosa-membres h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 0 0 10px 0;
}

.indecosa-membre-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.indecosa-membre-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c0392b;
    margin-bottom: 3px;
}

.indecosa-membre-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
}

.indecosa-membre-contact {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.indecosa-membre-contact a {
    color: #555;
    text-decoration: none;
}

.indecosa-not-found {
    text-align: center;
    padding: 20px;
    color: #888;
}

.indecosa-not-found .icon-big {
    font-size: 40px;
    margin-bottom: 10px;
}

.indecosa-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    #indecosa-carte-wrap {
        flex-direction: column;
    }

    #indecosa-carte-panel {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
}
