:root {
    --bg: #f5f7fb;
    --text: #18212f;
    --muted: #637086;
    --line: #dde4ee;
    --card: #ffffff;
    --primary: #0f5bd7;
    --primary-dark: #0a3f99;
    --shadow: 0 10px 30px rgba(24, 33, 47, 0.08);
    --radius: 18px;
    --container: 1240px;
}

* { box-sizing: border-box; }
html { margin: 0; }
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    margin-top: 48px;
}
.header-inner,
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}
.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.site-description,
.card-meta,
.eyebrow { color: var(--muted); }
.menu,
.footer-menu {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.content-area {
    padding: 40px 0;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-body {
    padding: 24px;
}
.card-title,
.entry-title,
.map-title { margin-top: 0; }
.single-content .card {
    max-width: 920px;
    margin: 0 auto;
}
.button,
.country-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}
.button:hover,
.country-btn:hover,
.country-btn.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.map-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: calc(100vh - 150px);
}
.map-sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
}
.map-sidebar-inner {
    padding: 32px 24px;
    position: sticky;
    top: 0;
}
.country-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.country-btn {
    width: 100%;
    justify-content: flex-start;
}
.map-canvas-wrap {
    padding: 20px;
}
.world-map {
    width: 100%;
    min-height: calc(100vh - 190px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

@media (max-width: 980px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
    .map-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .map-sidebar-inner {
        position: static;
    }
    .world-map {
        min-height: 70vh;
    }
    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* enlever les marges WP */
body.page-template-page-carte-monde,
body.page-template-page-carte-monde #page {
    margin: 0;
    padding: 0;
}

/* container fullscreen */
.map-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* la carte prend tout */
.world-map {
    width: 100%;
    height: 100%;
}

/* overlay en bas à gauche */
.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

/* liste */
.country-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* boutons */
.country-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px 12px;
    border: none;
    background: #eee;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
}

.country-btn:hover {
    background: #ddd;
}

.country-btn.is-active {
    background: #333;
    color: #fff;
}

.map-hotspot-panel {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateY(10px);
    z-index: 1000;
    width: 320px;
    max-width: calc(100% - 40px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.map-hotspot-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateY(0);
}

.map-hotspot-panel-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    padding: 20px;
    backdrop-filter: blur(8px);
}

.map-hotspot-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* hotspot */
.map-hotspot-content h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.map-hotspot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.map-hotspot-item + .map-hotspot-item {
    margin-top: 10px;
}

.map-hotspot-card {
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 8px;
}

.map-hotspot-card strong {
    display: block;
    margin-bottom: 4px;
}

.map-hotspot-address {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 2px;
}

.map-hotspot-item {
    width: 100%;
}

.map-hotspot-card {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.map-hotspot-item.is-active .map-hotspot-card {
    background: #333;
    color: #fff;
}

