/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
 
    color: #333;
    z-index: 999999;
    padding: 20px 0;
    /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3); */
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;


  
    padding: 30px 40px;
    
 
 
    border-top: 3px solid rgb(0, 158, 229);
    background: #eee;
}

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

.cookie-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-banner .cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cookie-banner .cookie-text {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

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

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

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-banner .cookie-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-weight: 600;
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
    text-align: center;
    border-radius: 0;
    /* Même style pour tous les boutons */
}

.cookie-banner .cookie-btn:hover {
    background-color: #ffffff;
    color: #2c2c2c;
}

/* Écran de paramètres détaillés */
.cookie-settings-panel {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 10px auto 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.cookie-settings-panel.show {
    display: block;
}

.cookie-settings-panel h4 {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-setting-item .setting-label {
    font-size: 14px;
    font-weight: 500;
}

.cookie-setting-item .setting-desc {
    font-size: 12px;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

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

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

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

.cookie-toggle input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 15px;
}

.cookie-settings-actions .cookie-btn {
    min-width: 200px;
    font-size: 13px;
    padding: 10px 25px;
}

/* Cookie recall button - inline style */
.cookie-recall-btn {
    display: none;
    padding: 12px 30px;
    font-size: 14px;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-weight: 600;
    border: 2px solid #009ee5;
    background-color: transparent;
    color: #009ee5;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-radius: 0;
    margin: 30px auto 0;
}

.cookie-recall-btn.show {
    display: inline-block;
}

.cookie-recall-btn:hover {
    background-color: #009ee5;
    color: #ffffff;
}

.cookie-recall-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    vertical-align: middle;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .cookie-banner {
        padding: 15px 0;
    }
    
    .cookie-banner .cookie-btn {
        min-width: 130px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-banner .cookie-buttons {
        gap: 10px;
    }
}
