:root {
    --primary-color: #D18772;
    --dark-color: #2c2c2c;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
}

/* Popup Modal Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal avec titre - Layout horizontal */
.popup-modal.has-title {
    background: white;
    border-radius: 5px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: row;
}

/* Modal sans titre - Image seule */
.popup-modal.no-title {
    background: white;
    border-radius: 5px;
    max-width: 800px;
    width: auto;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    border-top: 3px solid var(--primary-color);
    padding: 10px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg);
}

/* Content Section (Left) - Pour modal avec titre */
.popup-content-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

/* Image Section (Right) - Pour modal avec titre */
.popup-image-section {
    flex: 1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    text-align: -webkit-center;
}

.popup-image-section img {
    width: auto;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Image pour modal sans titre */
.popup-image-full {
    width: 100%;
    height: 500px;
    max-height: 500px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.popup-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.popup-btn-primary:hover {
    transform: translateY(-3px);
    color: white;
}

.popup-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.popup-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.popup-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.popup-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.popup-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.popup-checkbox label {
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

/* Countdown Timer */
.popup-countdown {
    background: linear-gradient(135deg, #d18772 0%, #97644a 100%);
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    border-radius: 5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.countdown-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-modal.has-title {
        flex-direction: column;
        max-width: 95%;
    }

    .popup-content-section {
        padding: 30px 20px;
        order: 2;
    }

    .popup-image-section {
        min-height: 250px;
        order: 1;
    }

    .popup-modal.no-title {
        max-width: 95%;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-actions {
        flex-direction: column;
        width: 100%;
    }

    .popup-btn {
        width: 100%;
        justify-content: center;
    }

    .popup-footer {
        padding: 15px 20px;
    }
}