/* =========================================
   CARTE MONDE — #GenTa-Map
   ========================================= */

#GenTa-Map {
    width: 100%;
    height: auto;
    display: block;
}

/* Transition sur tous les chemins */
#GenTa-Map g path {
    transition: fill 0.3s ease, stroke 0.3s ease;
    cursor: pointer;
}

/* Hover sur la région : toutes ses zones passent en bleu-partage */
#GenTa-Map #Europe:hover path,
#GenTa-Map #Afrique:hover path,
#GenTa-Map #AmeriqueNord:hover path,
#GenTa-Map #AmeriqueSud:hover path,
#GenTa-Map #Oceanie:hover path,
#GenTa-Map #MoyenOrient:hover path,
#GenTa-Map #Asie:hover path {
    fill: #00B4D2 !important;
    stroke: #a8c4cc !important;
}

/* Région sélectionnée */
#GenTa-Map g.map-active path {
    fill: #00B4D2 !important;
    stroke: #a8c4cc !important;
}

/* Tooltip */
.map-tooltip {
    position: fixed;
    background-color: #1D1D3E;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
}

/* =========================================
   PANNEAU RÉGION — sous la carte
   ========================================= */

.map-info {
    width: 100%;
    margin-top: 2rem;
    background: #F4F8FF;
    border-radius: 12px;
    overflow: hidden;
    color: #1D1D3E;
    box-shadow: var(--shadow-card);
    border-top: 3px solid transparent;
    border-image: linear-gradient(89.72deg, #3661AB 0.25%, #00B4D2 102.32%) 1;
}

.map-info:empty {
    border: none;
    box-shadow: none;
}

.map-info__inner {
    padding: 1.5rem 2rem 2rem;
}

/* En-tête : titre + email */
.map-info__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.map-info__title {
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    color: #1D1D3E;
    margin: 0;
    line-height: 1.2;
}

.map-info__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6C757D;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.map-info__close:hover {
    color: #1D1D3E;
    background-color: #E8E8E8;
}

.map-info__emails {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8E8E8;
}

.map-info__email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    color: #3661AB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-info__email:hover {
    color: #00B4D2;
}

.map-info__email::before {
    content: '✉';
}

/* Liste des pays — pastilles inline */
.map-info__countries {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: var(--wp--preset--font-size--small);
    text-transform: capitalize;
}

.map-info__countries li {
    display: inline-flex;
    align-items: center;
    border: 1px solid #1D1D3E;
    border-radius: 50px;
    padding: 3px 12px;
    color: #1D1D3E;
    font-weight: 500;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


/* Quand la pastille contient un lien, c'est le lien qui porte le padding */
.map-info__countries li:has(a) {
    padding: 0;
    overflow: hidden;
}

.map-info__countries li a {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    color: #1D1D3E;
    text-decoration: none;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.map-info__countries li a:hover {
    background-color: #1D1D3E;
    color: #ffffff;
}
