/* Styles pour le popup de consentement aux cookies */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px var(--shadow);
    padding: 1.5rem;
    z-index: 9999;
    transition: bottom 0.5s ease;
    border-top: 3px solid var(--orange-dark);
}

.cookie-consent.active {
    bottom: 0;
}

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

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

.cookie-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
    background: var(--orange-dark);
    color: var(--white);
}

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

.cookie-btn-settings {
    background: var(--gray-light);
    color: var(--black);
}

.cookie-btn-settings:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--gray);
    border: 1px solid var(--gray);
}

.cookie-btn-reject:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
}

/* Modal des paramètres de cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-settings-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.active .cookie-settings-content {
    transform: translateY(0);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cookie-settings-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--black);
}

.cookie-settings-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.cookie-settings-close:hover {
    color: var(--black);
}

.cookie-settings-body {
    margin-bottom: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-option-title {
    font-weight: 600;
    color: var(--black);
}

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

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

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

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

input:checked + .cookie-slider {
    background-color: var(--orange-dark);
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--orange-dark);
}

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

.cookie-option-description {
    font-size: 0.85rem;
    color: var(--gray);
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
    }
}
