/* ── Wrapper général ─────────────────────────────────────────────────────── */
#cc-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    font-family: inherit;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Carte ───────────────────────────────────────────────────────────────── */
#cc-map-container {
    flex: 0 0 auto;
    width: 55%;
}

#cc-map-title {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

#cc-france-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Régions */
.cc-region {
    fill: #b8d4e8;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s, filter 0.2s;
}

.cc-region:hover {
    fill: #5a9dc5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}

.cc-region.cc-active {
    fill: #1a6fa0;
}

.cc-region.cc-has-centres {
    fill: #7bb8d8;
}

.cc-region.cc-has-centres:hover,
.cc-region.cc-has-centres.cc-active {
    fill: #1a6fa0;
}

/* Étiquettes */
.cc-labels text {
    font-size: 7px;
    fill: #2c4a6e;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
    letter-spacing: 0.02em;
    user-select: none;
}

/* ── Panneau latéral ─────────────────────────────────────────────────────── */
#cc-panel {
    flex: 1 1 auto;
    min-height: 300px;
}

#cc-panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #999;
    border: 2px dashed #ddd;
    border-radius: 12px;
}

#cc-panel-placeholder span {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

#cc-panel-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

.cc-panel-header {
    background: #1a6fa0;
    color: #fff;
    padding: 16px 20px;
}

.cc-panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.cc-panel-header .cc-count {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.cc-centres-list {
    background: #fff;
    padding: 0;
    list-style: none;
    margin: 0;
    max-height: 480px;
    overflow-y: auto;
}

.cc-centre-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.cc-centre-item:last-child {
    border-bottom: none;
}

.cc-centre-item:hover {
    background: #f8fbff;
}

.cc-centre-nom {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.cc-centre-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    color: #555;
}

.cc-centre-info a {
    color: #1a6fa0;
    text-decoration: none;
    word-break: break-all;
}

.cc-centre-info a:hover {
    text-decoration: underline;
}

.cc-icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 4px;
}

.cc-no-centre {
    padding: 32px 20px;
    text-align: center;
    color: #888;
    background: #fff;
}

/* ── Sections par département ────────────────────────────────────────────── */
.cc-dept-sections {
    background: #fff;
    max-height: 520px;
    overflow-y: auto;
}

.cc-dept-block {
    border-bottom: 2px solid #e8f0f7;
}

.cc-dept-block:last-child {
    border-bottom: none;
}

.cc-dept-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f3fb;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a4a6e;
    letter-spacing: 0.01em;
    position: sticky;
    top: 0;
    z-index: 1;
    border-left: 4px solid #5a9dc5;
}

.cc-dept-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: #5a9dc5;
    background: #fff;
    border: 1px solid #c5dff0;
    border-radius: 20px;
    padding: 2px 10px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #cc-wrapper {
        flex-direction: column;
    }
    #cc-map-container {
        width: 100%;
    }
}
