.cbp-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.cbp-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Points de douleur proportionnels */
.cbp-point {
    position: absolute;
    width: 15%;  
    height: auto; 
    cursor: pointer;
    transform: translate(-50%, -50%); /* Crucial pour le centrage */
    transform-origin: center center;
    filter: brightness(105%);
}

.cbp-point img {
    width: 100%;
    height: auto;
    display: block;
    animation: cbp-irradiate 2.5s infinite ease-in-out;
}
.cbp-point:nth-child(3n+1) img {  animation-delay: 0s; }
.cbp-point:nth-child(3n+2) img {  animation-delay: -0.8s; }
.cbp-point:nth-child(3n+3) img {  animation-delay: -1.6s; }

@keyframes cbp-irradiate {
    0% { transform: scale(1); opacity: 0.85; }
    45% { transform: scale(1.5); opacity: 1; }
    55% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}
/* Grossissement au survol */
.cbp-point:hover {
    /* Le scale(1.3) multipliera la taille actuelle (en %) par 1.3 */
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 15;
}
.cbp-point:hover img {
    animation-play-state: paused;
    opacity: 1; 
}
/* Infobulles */
/*
.cbp-tooltip {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 280px;
    pointer-events: auto;
}
*/
.cbp-tooltip {
    position: absolute;
    display: none;
    z-index: 9999;
    width: 280px;
    background: transparent;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: solid 2px #A72254;
    border-radius: 1.5em;
    transform: none !important; 
    margin: 0 !important;      
    box-sizing: border-box;  
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}
.cbp-tooltip h3 {
    margin-top: 0;
    color: #A72254;
    font-size: 1.2em;
    text-transform: uppercase;
}

.cbp-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

@media (max-width: 767px) {
    .cbp-tooltip {
        width: 200px;
        left: 50% !important;
        transform: translateX(-50%);
    }
}

/* Bouton En savoir plus dans l'infobulle */
.cbp-more-btn {
    display: inline-block;
    margin-top: 1em;
    padding: .33em 1em;
    background-color: #fff; 
    color: #004AAC !important;
    text-decoration: none;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease;
    border-radius: 1em ;
    -webkit-box-shadow:inset 0 3px 9px 0 rgba(0,0,0,0.27);
    box-shadow:inset 0 3px 9px 0 rgba(0,0,0,0.27);
    font-family: "Nunito", Arial, "sans-serif";
}

.cbp-more-btn:hover {
    background-color: #004AAC;
    color: #fff !important;
    -webkit-box-shadow:inset 0 -3px 9px 0 rgba(0,0,0,0.27);
    box-shadow:inset 0 -3px 9px 0 rgba(0,0,0,0.27);
}

/* Ajustement de l'infobulle pour laisser de la place au bouton */
.cbp-content {
    font-size: 1em;
    line-height: 1.25em;
    color: #484848;
    font-family: "Nunito", Arial, "sans-serif";
}