/* ===== STYLES CGV ===== */

/* Popup principal */
.cgv-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cgv-popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cgv-popup-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.cgv-actions {
    margin-top: 20px;
}

.cgv-read-btn {
    display: inline-block;
    background: #B22956;
    color: white!important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.cgv-read-btn:hover {
    color: white;
    text-decoration: none;
    opacity: .9;
}

.cgv-checkbox-label {
    display: block;
    margin: 20px 0;
    font-size: 14px;
    cursor: pointer;
}

.cgv-checkbox-label input {
    margin-right: 10px;
    transform: scale(1.1);
}

.cgv-accept-btn {
    background: #006C6D;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cgv-accept-btn:disabled {
    background: #006C6D;
    cursor: not-allowed;
}

.cgv-accept-btn:not(:disabled):hover {
    background: #006C6D;
    opacity: .9;
    transform: translateY(-1px);
}

/* États spéciaux pour la validation */
.cgv-accept-btn.validating {
    background: linear-gradient(45deg, #ff9800, #f57f17);
    color: white;
    cursor: wait;
    animation: cgv-pulse 1.5s infinite;
}

.cgv-accept-btn.success {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    cursor: default;
    animation: cgv-success 0.6s ease-out;
}

/* Animations */
@keyframes cgv-pulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.02);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

@keyframes cgv-success {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
    100% { 
        transform: scale(1); 
    }
}

/* Bandeau page CGV */
.cgv-page-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #219C8E;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 999999;
    border-top: 3px solid #fff;
}

.cgv-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cgv-banner-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.cgv-banner-text {
    margin: 0 0 20px 0;
    font-size: 14px;
    opacity: 0.9;
}

.cgv-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cgv-page-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.cgv-page-checkbox {
    transform: scale(1.2);
}

.cgv-page-accept-btn {
    background: #fff;
    color: #219C8E;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cgv-page-accept-btn:disabled {
    background: #fff!important;
    color: #666;
    cursor: not-allowed;
    /* opacity: 0.7; */
}

.cgv-page-accept-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* États spéciaux pour le bouton de page */
.cgv-page-accept-btn.validating {
    background: linear-gradient(45deg, #ff9800, #f57f17);
    color: white;
    cursor: wait;
    animation: cgv-pulse 1.5s infinite;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
}

.cgv-page-accept-btn.success {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    cursor: default;
    animation: cgv-success 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

/* Styles pour l'interface d'administration */
.cgv-admin-status {
    font-weight: bold;
}

.cgv-admin-status.error {
    color: #888;
}

.cgv-admin-status.accepted {
    color: #28a745;
}

.cgv-admin-status.rejected {
    color: #dc3545;
}

.cgv-admin-profile {
    font-weight: bold;
}

.cgv-admin-profile.accepted {
    color: #28a745;
}

.cgv-admin-profile.rejected {
    color: #dc3545;
}

/* Secure notification styles */
.cgv-secure-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    padding: 15px;
    display: block;
    transition: all 0.3s ease;
    animation: cgvSlideIn 0.3s ease-out;
}

@keyframes cgvSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cgv-secure-notification:hover {
    cursor: pointer;
    opacity: 0.9;
}

/* Button state styles for JavaScript */
.cgv-button-enabled {
    background: #fff !important;
    color: #219C8E !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.cgv-button-disabled {
    background: #fff !important;
    color: #219C8E !important;
    cursor: not-allowed !important;
}

/* Notification type styles */
.cgv-notification-success,
.cgv-secure-notification.success {
    background: #28a745 !important;
    color: #fff !important;
    border-left: 4px solid #1e7e34 !important;
}

.cgv-notification-error,
.cgv-secure-notification.error {
    background: #dc3545 !important;
    color: #fff !important;
    border-left: 4px solid #bd2130 !important;
}

.cgv-notification-warning,
.cgv-secure-notification.warning {
    background: #ffc107 !important;
    color: #212529 !important;
    border-left: 4px solid #d39e00 !important;
}

.cgv-notification-info,
.cgv-secure-notification.info {
    background: #17a2b8 !important;
    color: #fff !important;
    border-left: 4px solid #138496 !important;
}

.cgv-notification-base {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    max-width: 400px;
    word-wrap: break-word;
    display: block;
    animation: cgvSlideIn 0.3s ease-out;
}
