/**
 * Fichier: popup-conversion.css
 * À placer dans: wp-content/themes/votre-theme/css/
 * Puis enqueue dans functions.php
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Outfit:wght@300;400;500&display=swap');

/* Bouton fixe trigger */
#popup-trigger {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6B5744 0%, #8B7355 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(107, 87, 68, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse-trigger 2s ease-in-out infinite;
}

#popup-trigger:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 87, 68, 0.5);
}

/* Overlay */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 15, 10, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

#popup-overlay.active {
    display: flex !important;
}

/* Popup container */
.popup-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s ease-out;
    position: relative;
}

/* Header */
.popup-header {
    background: linear-gradient(135deg, #F5F1ED 0%, #EDE7E0 100%);
    padding: 40px 40px 32px;
    position: relative;
    background-image: 
        linear-gradient(135deg, rgba(139, 115, 85, 0.05) 0%, rgba(107, 87, 68, 0.05) 100%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6B5744;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.popup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: #2C1810;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.popup-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #6B5744;
    text-align: center;
    font-weight: 300;
    margin-bottom: 32px;
}

/* Progress bar */
.progress-container {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B7355 0%, #6B5744 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #8B7355;
    font-family: 'Outfit', sans-serif;
}

/* Content */
.popup-content {
    padding: 40px;
    min-height: 380px;
}

.step {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.step.active {
    display: block !important;
}

/* Card options */
.options-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.options-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-option {
    background: #FDFCFB;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.card-option:hover {
    transform: translateY(-4px);
    border-color: #8B7355;
    box-shadow: 0 12px 24px rgba(139, 115, 85, 0.2);
}

.card-option.selected {
    border-color: #6B5744;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.15) 0%, rgba(107, 87, 68, 0.1) 100%);
    box-shadow: 0 8px 16px rgba(107, 87, 68, 0.3);
}

.card-option-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.card-option-label {
    font-size: 16px;
    font-weight: 500;
    color: #2C1810;
    font-family: 'Outfit', sans-serif;
}

/* List options */
.list-option {
    background: #FDFCFB;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-option:hover {
    border-color: #8B7355;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
}

.list-option.selected {
    border-color: #6B5744;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.15) 0%, rgba(107, 87, 68, 0.1) 100%);
}

.list-option-label {
    font-size: 15px;
    font-weight: 500;
    color: #2C1810;
    font-family: 'Outfit', sans-serif;
}

.checkmark {
    width: 24px;
    height: 24px;
    color: #6B5744;
    display: none;
    font-size: 20px;
    font-weight: bold;
}

.list-option.selected .checkmark {
    display: block;
}

/* Form inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2C1810;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.popup-footer {
    padding: 24px 40px;
    background: #FDFCFB;
    border-top: 1px solid #F0F0F0;
}

.footer-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: transparent;
    color: #6B5744;
}

.btn-secondary:hover {
    background: rgba(139, 115, 85, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #6B5744 0%, #8B7355 100%);
    color: white;
    margin-left: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 87, 68, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-submit {
    animation: pulse-button 2s ease-in-out infinite;
}

.footer-security {
    text-align: center;
    font-size: 12px;
    color: #8B7355;
    font-family: 'Outfit', sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse-trigger {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 768px) {
    .popup-header {
        padding: 32px 24px 24px;
    }
    
    .popup-content {
        padding: 24px;
        min-height: 320px;
    }
    
    .popup-footer {
        padding: 20px 24px;
    }
    
    .popup-title {
        font-size: 26px;
    }
    
    .popup-subtitle {
        font-size: 14px;
    }
    
    .options-grid-2 {
        grid-template-columns: 1fr;
    }
    
    #popup-trigger {
        font-size: 14px;
        padding: 14px 24px;
        bottom: 20px;
    }
    
    .card-option {
        padding: 20px;
    }
    
    .card-option-icon {
        font-size: 32px;
    }
}