/* Styles CSS pour le simulateur Revolt.eco - WordPress */

/* Bouton du simulateur */
.revolt-simulator-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.revolt-simulator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #2563eb);
}

.revolt-simulator-btn .revolt-icon,
.revolt-simulator-btn .revolt-arrow {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.revolt-simulator-btn .revolt-arrow {
    transition: transform 0.3s ease;
}

.revolt-simulator-btn:hover .revolt-arrow {
    transform: translateX(4px);
}

/* Version navigation */
.revolt-nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

/* Bouton QR Code */
.revolt-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 1rem;
}

.revolt-qr-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Overlay */
.revolt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.revolt-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Panel du simulateur - Plus large */
.revolt-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 72rem; /* 1152px - Plus large qu'avant (était 56rem) */
    height: 100vh;
    background: white;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.revolt-overlay.active .revolt-panel {
    transform: translateX(0);
}

/* Header du simulateur */
.revolt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.revolt-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.revolt-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.revolt-header-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.revolt-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.revolt-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.revolt-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Contenu iframe */
.revolt-content {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.revolt-content iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
    display: block;
    overflow: auto !important;
}

/* Modal QR Code */
.revolt-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.revolt-qr-modal.active {
    opacity: 1;
    visibility: visible;
}

.revolt-qr-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.revolt-qr-modal.active .revolt-qr-content {
    transform: scale(1);
}

.revolt-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.revolt-qr-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.revolt-qr-close {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.revolt-qr-close:hover {
    background: #f3f4f6;
}

.revolt-qr-code-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.revolt-qr-code {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    display: inline-block;
    margin-bottom: 1rem;
}

.revolt-qr-code img {
    width: 12rem;
    height: 12rem;
    display: block;
}

.revolt-qr-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.revolt-qr-url {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.revolt-qr-url-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.revolt-qr-url-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
}

.revolt-qr-url-text {
    font-size: 0.875rem;
    color: #374151;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.revolt-qr-copy-btn {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

.revolt-qr-copy-btn:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.revolt-qr-test-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.revolt-qr-test-btn:hover {
    background: #059669;
}

/* Responsive */
@media (max-width: 1280px) {
    .revolt-panel {
        max-width: 64rem; /* 1024px sur écrans moyens */
    }
}

@media (max-width: 1024px) {
    .revolt-panel {
        max-width: 56rem; /* 896px sur tablettes */
    }
}

@media (max-width: 768px) {
    .revolt-panel {
        max-width: 100%;
    }
    
    .revolt-header {
        padding: 1rem;
    }
    
    .revolt-title h3 {
        font-size: 1.125rem;
    }
    
    .revolt-simulator-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .revolt-qr-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .revolt-qr-code img {
        width: 10rem;
        height: 10rem;
    }
}

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}



/* Styles pour l'intégration Astra */
.ast-header-break-point .revolt-nav-btn {
    margin-left: 1rem;
}

.ast-header-break-point .revolt-qr-btn {
    margin-left: 0.5rem;
}

/* Amélioration de l'accessibilité */
.revolt-simulator-btn:focus,
.revolt-close:focus,
.revolt-qr-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state */
.revolt-content.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animation pour le bouton QR */
.revolt-qr-btn .revolt-qr-icon {
    transition: transform 0.3s ease;
}

.revolt-qr-btn:hover .revolt-qr-icon {
    transform: scale(1.1);
}

/* Notification de copie */
.revolt-copy-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.revolt-copy-notification.show {
    transform: translateX(0);
}