/* Reset pour s'assurer que les styles du thème n'interfèrent pas */
.lochot-popup-overlay,
.lochot-popup,
.lochot-popup * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Overlay */
.lochot-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
    display: block !important;
}

/* Base popup styles */
.lochot-popup {
    display: block !important;
    position: fixed !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3) !important;
}

/* Popup type: center */
.lochot-popup.popup-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 500px !important;
    max-width: 90% !important;
    padding: 25px !important;
    border-radius: 8px !important;
}

/* Popup type: banner-top */
.lochot-popup.popup-banner-top {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 15px 25px !important;
    transform: translateY(0) !important;
    border-radius: 0 0 8px 8px !important;
    animation: slideDown 0.5s ease-out !important;
}

/* Popup type: banner-bottom */
.lochot-popup.popup-banner-bottom {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 15px 25px !important;
    transform: translateY(0) !important;
    border-radius: 8px 8px 0 0 !important;
    animation: slideUp 0.5s ease-out !important;
}

/* Popup type: float-right */
.lochot-popup.popup-float-right {
    top: auto !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: 300px !important;
    padding: 20px !important;
    border-radius: 8px !important;
    transform: translateX(0) !important;
    animation: slideLeft 0.5s ease-out !important;
}

/* Popup type: float-left */
.lochot-popup.popup-float-left {
    top: auto !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    width: 300px !important;
    padding: 20px !important;
    border-radius: 8px !important;
    transform: translateX(0) !important;
    animation: slideRight 0.5s ease-out !important;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Common elements */
.lochot-popup-title {
    margin: 0 0 15px 0 !important;
    padding-right: 30px !important;
    font-size: 1.5em !important;
    font-weight: bold !important;
    cursor: pointer !important;
    color: #333333 !important;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}

/* Bouton de fermeture */
.lochot-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: color 0.3s;
    border-radius: 50%;
}

.lochot-popup-close:hover {
    color: #000;
    background: rgba(0,0,0,0.1);
}

/* Contenu */
.lochot-popup-content {
    line-height: 1.5;
}

/* État réduit */
.lochot-popup.reduced .lochot-popup-content {
    display: none;
}

.lochot-popup.reduced .lochot-popup-title {
    margin: 0;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .lochot-popup.popup-center {
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Center popup style */
.lochot-popup.popup-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Banner style */
.lochot-popup.popup-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.lochot-popup.popup-banner.show {
    transform: translateY(0);
}

/* Float style */
.lochot-popup.popup-float {
    position: fixed;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    max-width: 90%;
}

.lochot-popup.popup-float.bottom-right {
    bottom: 20px;
    right: 20px;
}

.lochot-popup.popup-float.bottom-left {
    bottom: 20px;
    left: 20px;
}

.lochot-popup.popup-float.middle-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.lochot-popup.popup-float.middle-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

/* Common elements */
.lochot-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 5px;
}

.lochot-popup-content {
    position: relative;
}

/* Reduced state */
.lochot-popup.reduced {
    width: auto;
    padding: 10px;
}

.lochot-popup.reduced .lochot-popup-content {
    display: none;
}

.lochot-popup.reduced .lochot-popup-title {
    margin: 0;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .lochot-popup.popup-center {
        width: 95%;
        max-height: 80vh;
    }
    
    .lochot-popup.popup-float {
        width: 250px;
    }
}
