/* Popup Retraite - Styles */

.retraite-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.retraite-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.retraite-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FAF7F2;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.retraite-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #1A2B3D;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 50%;
}

.retraite-popup-close:hover {
    background: rgba(26, 43, 61, 0.1);
    transform: rotate(90deg);
}

.retraite-popup-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.retraite-popup-image {
    flex: 0 0 40%;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.retraite-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.retraite-popup-text {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.retraite-popup-text h3 {
    margin: 0 0 15px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1A2B3D;
    line-height: 1.3;
}

.retraite-popup-text p {
    margin: 0 0 25px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1A2B3D;
    opacity: 0.85;
}

.retraite-popup-cta {
    display: inline-block;
    background: #C89968;
    color: #FAF7F2;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.retraite-popup-cta:hover {
    background: #1A2B3D;
    color: #FAF7F2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 153, 104, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .retraite-popup-content {
        width: 95%;
        max-width: none;
    }
    
    .retraite-popup-inner {
        flex-direction: column;
    }
    
    .retraite-popup-image {
        flex: 0 0 auto;
        max-height: 200px;
        border-radius: 8px 8px 0 0;
    }
    
    .retraite-popup-text {
        padding: 30px 25px;
    }
    
    .retraite-popup-text h3 {
        font-size: 20px;
    }
    
    .retraite-popup-text p {
        font-size: 14px;
    }
    
    .retraite-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
        background: rgba(250, 247, 242, 0.95);
    }
}

/* Version sans image */
.retraite-popup-inner:not(:has(.retraite-popup-image)) .retraite-popup-text {
    padding: 50px 40px;
    text-align: center;
}

.retraite-popup-inner:not(:has(.retraite-popup-image)) .retraite-popup-cta {
    align-self: center;
}
