/* Bannière de consentement des cookies */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--hd-yellow);
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookieConsentBanner.show {
    display: block;
}

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

.cookie-consent-content {
    flex: 1;
    color: #fff;
}

.cookie-consent-content h3 {
    color: var(--hd-yellow);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-content h3 i {
    font-size: 1.5rem;
}

.cookie-consent-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-content a {
    color: var(--hd-yellow);
    text-decoration: underline;
}

.cookie-consent-content a:hover {
    text-decoration: none;
}

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

.cookie-consent-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-btn i {
    font-size: 1rem;
}

.cookie-consent-btn-accept {
    background: var(--hd-yellow);
    color: var(--hd-black);
}

.cookie-consent-btn-accept:hover {
    background: #fdb830;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.cookie-consent-btn-refuse {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.cookie-consent-btn-customize {
    background: transparent;
    color: var(--hd-yellow);
    border: 2px solid var(--hd-yellow);
}

.cookie-consent-btn-customize:hover {
    background: var(--hd-yellow);
    color: var(--hd-black);
}

/* Modal de personnalisation */
#cookieCustomizeModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

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

#cookieCustomizeModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-customize-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--hd-yellow);
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    padding: 30px;
    position: relative;
    animation: slideDown 0.4s ease-out;
}

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

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

.cookie-customize-header h3 {
    color: var(--hd-yellow);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-customize-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s;
}

.cookie-customize-close:hover {
    color: var(--hd-yellow);
    transform: rotate(90deg);
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

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

.cookie-category-header h4 {
    color: var(--hd-yellow);
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.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: #555;
    transition: 0.4s;
    border-radius: 34px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--hd-yellow);
}

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

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

.cookie-toggle-label {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 5px;
}

.cookie-customize-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-consent-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-customize-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-customize-actions {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
    }
}

