/* Bannière de cookies */
.vcc-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: #000000;
    color: #ffffff;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.vcc-cookie-banner.vcc-position-bottom {
    bottom: 0;
}

.vcc-cookie-banner.vcc-position-top {
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.vcc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vcc-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vcc-text {
    flex: 1 1 auto;
    min-width: 300px;
}

.vcc-text p {
    margin: 0 0 10px 0;
    color: #ffffff;
}

.vcc-privacy-link {
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.vcc-privacy-link:hover {
    opacity: 1;
}

.vcc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Boutons */
.vcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: none;
    font-family: inherit;
}

.vcc-btn-accept {
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
}

.vcc-btn-accept:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.vcc-btn-reject {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.vcc-btn-reject:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.vcc-btn-customize {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}

.vcc-btn-customize:hover {
    background-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Modal */
.vcc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

.vcc-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vcc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}

.vcc-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.vcc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.vcc-modal-close:hover {
    opacity: 1;
}

.vcc-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.vcc-cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.vcc-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vcc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vcc-category-header h3 {
    margin: 0;
    font-size: 16px;
    color: #000000;
    font-weight: 600;
}

.vcc-cookie-category p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

/* Switch toggle */
.vcc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.vcc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vcc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: 0.4s;
    border-radius: 26px;
}

.vcc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.vcc-switch input:checked + .vcc-slider {
    background-color: #000000;
}

.vcc-switch input:checked + .vcc-slider:before {
    transform: translateX(24px);
}

.vcc-switch.vcc-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vcc-switch.vcc-disabled .vcc-slider {
    cursor: not-allowed;
}

.vcc-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

/* Body class when modal is open */
body.vcc-modal-open {
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    .vcc-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vcc-text {
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .vcc-actions {
        justify-content: center;
        width: 100%;
    }
    
    .vcc-btn {
        flex: 1;
        min-width: 100px;
        font-size: 13px;
        padding: 8px 15px;
    }
    
    .vcc-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .vcc-modal-body {
        max-height: 300px;
    }
    
    .vcc-category-header {
        flex-direction: row;
        gap: 15px;
    }
    
    .vcc-category-header h3 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .vcc-container {
        padding: 15px;
    }
    
    .vcc-actions {
        flex-direction: column;
    }
    
    .vcc-btn {
        width: 100%;
    }
    
    .vcc-modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .vcc-modal-header h2 {
        font-size: 18px;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.vcc-cookie-banner.vcc-position-bottom {
    animation: slideUp 0.5s ease;
}

.vcc-cookie-banner.vcc-position-top {
    animation: slideDown 0.5s ease;
}

/* Accessibilité */
.vcc-btn:focus,
.vcc-modal-close:focus,
.vcc-switch input:focus + .vcc-slider {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .vcc-cookie-banner,
    .vcc-modal {
        display: none !important;
    }
}