/* Bandeau de cookies conforme RGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Arial', sans-serif;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: #ff6b35;
    text-decoration: underline;
}

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

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn-accept-all {
    background: #ff6b35;
    color: white;
}

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

.cookie-btn-essential {
    background: #28a745;
    color: white;
}

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

.cookie-btn-refuse {
    background: #6c757d;
    color: white;
}

.cookie-btn-refuse:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    color: white;
    border: 1px solid #fff;
}

.cookie-btn-settings:hover {
    background: white;
    color: #000;
}

/* Modal de paramètres des cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-settings-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cookie-settings-close:hover {
    color: #000;
}

.cookie-settings-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

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

.cookie-category-title {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: .4s;
    border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #ff6b35;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

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

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Lien de gestion des cookies dans le footer */
.cookie-manage-link {
    color: #ff6b35;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

.cookie-manage-link:hover {
    color: #ff8c5a;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}