/* ===================================
   COOKIE CONSENT BANNER & MODAL
   =================================== */

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 24px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--blue-de-france);
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
    max-width: 600px;
}

.cookie-banner-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.cookie-banner-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--blue-de-france);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: #3da5ff;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--blue-de-france) 0%, #0066cc 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
}

.cookie-accept:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    box-shadow: 0 6px 16px rgba(13, 133, 216, 0.4);
    transform: translateY(-2px);
}

.cookie-necessary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-necessary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-customize {
    background: transparent;
    color: var(--blue-de-france);
    border: 2px solid var(--blue-de-france);
}

.cookie-customize:hover {
    background: var(--blue-de-france);
    color: white;
}

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

#cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#cookie-preferences-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--eerie-black);
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: var(--eerie-black);
}

.cookie-modal-body {
    padding: 28px;
}

.cookie-modal-intro {
    margin-bottom: 24px;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.cookie-category {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

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

.cookie-category-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--eerie-black);
    margin: 0;
}

.cookie-category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

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

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--blue-de-france);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-toggle-required {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-save-preferences {
    background: linear-gradient(135deg, var(--blue-de-france) 0%, #0066cc 100%);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-save-preferences:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
    transform: translateY(-2px);
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d3748;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Cookie Settings Link in Footer */
[data-cookie-settings] {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

[data-cookie-settings]:hover {
    color: var(--blue-de-france);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-banner-text {
        max-width: 100%;
    }

    .cookie-banner-text h3 {
        font-size: 16px;
    }

    .cookie-banner-text p {
        font-size: 13px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-save-preferences {
        width: 100%;
    }

    .cookie-notification {
        left: 20px;
        right: 20px;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    #cookie-consent-banner {
        border-top-width: 5px;
    }

    .cookie-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #cookie-consent-banner,
    .cookie-modal-content,
    .cookie-notification,
    .cookie-btn {
        transition: none;
    }
}

