/* Styles pour le popup d'invitation de mariage */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-container {
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.wedding-title {
    font-size: 28px;
    margin: 0;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.wedding-subtitle {
    font-size: 22px;
    margin: 10px 0 20px;
    font-family: 'Playfair Display', serif;
}

.wedding-text {
    font-size: 16px;
    line-height: 1.6;
    color: #5d4037;
    margin-bottom: 15px;
}

.wedding-date {
    font-size: 20px;
    margin: 20px 0;
    text-transform: capitalize;
}

.popup-button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-top: 20px;
}

/* Animations pour le bouton */
.hover-animation-scale:hover {
    transform: scale(1.05);
}

.hover-animation-float:hover {
    transform: translateY(-5px);
}

.hover-animation-shine {
    position: relative;
    overflow: hidden;
}

.hover-animation-shine:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.hover-animation-shine:hover:after {
    left: 125%;
}

/* Styles spécifiques pour le code HTML personnalisé */
.custom-html-container {
    margin: 20px 0;
    width: 100%;
}

.custom-html-container img {
    max-width: 100%;
    height: auto;
}

/* Styles pour le compte à rebours - Horizontal assuré */
.wedding-countdown {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    margin: 25px 0;
    width: 100%;
    overflow-x: visible;
}

.countdown-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 10px !important;
    flex: 0 0 auto !important;
}

.countdown-days, .countdown-hours, .countdown-minutes, .countdown-seconds {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.countdown-label {
    font-size: 12px;
    margin-top: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Style Cercles pour le compte à rebours */
.countdown-style-circles .countdown-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style Boîtes pour le compte à rebours */
.countdown-style-boxes .countdown-item {
    width: 80px;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.countdown-style-boxes .countdown-days,
.countdown-style-boxes .countdown-hours,
.countdown-style-boxes .countdown-minutes,
.countdown-style-boxes .countdown-seconds {
    font-size: 28px;
}

/* Style Minimal pour le compte à rebours */
.countdown-style-minimal .countdown-item {
    background-color: transparent;
    box-shadow: none;
    padding: 0 10px;
}

.countdown-style-minimal .countdown-days,
.countdown-style-minimal .countdown-hours,
.countdown-style-minimal .countdown-minutes,
.countdown-style-minimal .countdown-seconds {
    font-size: 32px;
}

.countdown-style-minimal .countdown-label {
    font-size: 14px;
}

/* Style Élégant pour le compte à rebours */
.countdown-style-elegant .countdown-item {
    width: 80px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.countdown-style-elegant .countdown-days,
.countdown-style-elegant .countdown-hours,
.countdown-style-elegant .countdown-minutes,
.countdown-style-elegant .countdown-seconds {
    font-size: 26px;
    font-family: 'Playfair Display', serif;
}

.countdown-style-elegant .countdown-label {
    font-size: 11px;
    letter-spacing: 1px;
}

/* Styles pour le texte personnalisé */
.custom-wedding-text {
    margin: 20px 0;
    line-height: 1.6;
}

/* Styles pour le popup plein écran sur mobile */
@media only screen and (max-width: 768px) {
    .fullscreen-mobile .popup-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        overflow-y: auto;
    }
    
    .fullscreen-mobile .wedding-title {
        font-size: 24px;
    }
    
    .fullscreen-mobile .wedding-subtitle {
        font-size: 18px;
    }
    
    /* Force le compte à rebours à rester horizontal sur mobile aussi */
    .wedding-countdown {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100%;
        overflow-x: visible;
    }
    
    .countdown-item {
        margin: 0 5px !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    .countdown-days, .countdown-hours, .countdown-minutes, .countdown-seconds {
        font-size: 20px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    body.popup-open {
        overflow: hidden;
    }
}

/* Centre le popup sur les écrans desktop */
@media only screen and (min-width: 769px) {
    .popup-container {
        margin: 0 auto;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}