/* === COOKIE BANNER DARK MODE MINIMALISTE === */
/* Conforme LPD Suisse - Version Premium JDW */

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333333;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.cookie-text h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cookie-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: #ffffff;
    border-radius: 3px;
}

.cookie-text p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cookie-text a:hover {
    border-bottom-color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: #ffffff;
    color: #000000;
    font-weight: 500;
}

.cookie-btn.accept:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.cookie-btn.decline {
    background: transparent;
    color: #cccccc;
    border: 1px solid #444444;
}

.cookie-btn.decline:hover {
    background: #222222;
    color: #ffffff;
}

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

.cookie-btn.customize:hover {
    background: #333333;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

.cookie-modal-content {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.cookie-modal h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333333;
}

.cookie-category h4 {
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.cookie-category p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #333333;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #ffffff;
}

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

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #000000;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* === STATUS INDICATOR === */
.cookie-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.cookie-status.show {
    opacity: 1;
    visibility: visible;
}

.cookie-status h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-status ul {
    list-style: none;
    color: #cccccc;
    font-size: 0.9rem;
}

.cookie-status li {
    margin-bottom: 4px;
}

.cookie-status .status-icon {
    margin-right: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-text {
        min-width: auto;
        margin-bottom: 5px;
    }

    .cookie-text h3 {
        font-size: 1.1rem;
        justify-content: center;
    }

    .cookie-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cookie-actions {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 8px;
        font-size: 0.85rem;
        text-align: center;
        word-wrap: break-word;
    }

    .cookie-modal-content {
        padding: 20px;
        margin: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-content {
        gap: 12px;
    }

    .cookie-text h3 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        min-width: 90px;
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    .cookie-modal-content {
        padding: 15px;
        margin: 10px;
        width: 98%;
    }
}