/* Fond assombri */
.pis-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur du popup */
.pis-popup-inner {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    max-width: 1000px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: popupFadeIn 0.3s ease;
}

/* Image */
.pis-popup img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Bouton croix sur la bordure du popup */
.pis-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    width: 28px;
    height: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;            /* 👈 enlève le soulignement */
}

.pis-close-btn:hover,
.pis-close-btn:focus,
.pis-close-btn:active {
    text-decoration: none;            /* 👈 sécurité supplémentaire */
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Animation d’apparition */
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Switch Toggle */
.pis-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.pis-switch input {
    display: none;
}
.pis-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
}
.pis-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}
.pis-switch input:checked + .pis-slider {
    background-color: #2196F3;
}
.pis-switch input:checked + .pis-slider:before {
    transform: translateX(24px);
}
