/* Styles pour le bandeau de cookies */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    color: #333;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: 'Open Sans', sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    padding: 0;
}

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

.cookie-consent-container {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #38b6ff;
}

.cookie-consent-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-cookie {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-cookie:hover {
    transform: translateY(-2px);
}

.btn-accept-all {
    background-color: #38b6ff;
    color: white;
    border-color: #38b6ff;
}

.btn-accept-all:hover {
    background-color: #2aa0e9;
    border-color: #2aa0e9;
}

.btn-accept-necessary {
    background-color: transparent;
    color: #666;
    border-color: #ddd;
}

.btn-accept-necessary:hover {
    background-color: #f8f9fa;
    color: #333;
}

.btn-customize {
    background-color: transparent;
    color: #38b6ff;
    border-color: #38b6ff;
}

.btn-customize:hover {
    background-color: #e6f5ff;
}

.cookie-consent-links {
    margin-top: 10px;
    font-size: 13px;
}

.cookie-consent-links a {
    color: #38b6ff;
    text-decoration: none;
    margin-right: 15px;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

/* Panel for cookie preferences */
.cookie-preferences {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.cookie-preferences-panel {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.cookie-preferences-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.cookie-preferences-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-preferences-body {
    padding: 20px;
}

.cookie-preferences-section {
    margin-bottom: 20px;
}

.cookie-preferences-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.cookie-preferences-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    background: white;
}

.cookie-type {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.cookie-type-title {
    font-weight: 600;
    font-size: 16px;
}

.cookie-type-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

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

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

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

input:checked + .slider {
    background-color: #38b6ff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #38b6ff;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.switch-label {
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
}

.switch-disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (min-width: 768px) {
    .cookie-consent-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px 30px;
    }
    
    .cookie-consent-info {
        flex: 1;
    }
    
    .cookie-consent-actions {
        margin-left: 20px;
        margin-top: 0;
    }
}