/* Bannière de cookies RGPD */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #255387 0%, #1e4573 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #dfe9f3;
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookies-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookies-banner-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.cookies-banner-text p {
    margin: 0;
    color: #dfe9f3;
}

.cookies-banner-text a {
    color: #dbb65a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookies-banner-text a:hover {
    color: #8ba287;
}

.cookies-banner-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.cookies-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookies-btn-accept {
    background: #8ba287;
    color: white;
}

.cookies-btn-accept:hover {
    background: #7a9175;
    transform: translateY(-1px);
}

.cookies-btn-settings {
    background: #255387;
    color: white;
    border: 2px solid #255387;
}

.cookies-btn-settings:hover {
    background: #1e4573;
    border-color: #1e4573;
}

.cookies-btn-decline {
    background: transparent;
    color: #a2503b;
    border: 2px solid #a2503b;
}

.cookies-btn-decline:hover {
    background: rgba(162, 80, 59, 0.1);
    border-color: #8e4634;
    color: #8e4634;
}

/* Modal des paramètres de cookies */
.cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookies-modal.show {
    display: flex;
}

.cookies-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookies-modal-header {
    padding: 25px 30px 0;
    border-bottom: none;
}

.cookies-modal-header h3 {
    color: #255387;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.cookies-modal-header p {
    color: #1b1e1f;
    margin: 0;
    line-height: 1.5;
}

.cookies-modal-body {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #dfe9f3;
    border-radius: 8px;
    background: #f4f6f8;
}

.cookie-category h4 {
    color: #255387;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category p {
    color: #1b1e1f;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cookie-toggle input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 24px;
    appearance: none;
    background: #d1d5db;
    border-radius: 12px;
    transition: background 0.3s;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"]:checked {
    background: #8ba287;
}

.cookie-toggle input[type="checkbox"]:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked:before {
    transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle label {
    font-size: 14px;
    font-weight: 500;
    color: #1b1e1f;
    cursor: pointer;
}

.cookies-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Styles spécifiques pour les boutons de la modal */
.cookies-modal-footer .cookies-btn-settings {
    background: #255387;
    color: white;
    border: 2px solid #255387;
}

.cookies-modal-footer .cookies-btn-settings:hover {
    background: #1e4573;
    border-color: #1e4573;
    transform: translateY(-1px);
}

.cookies-modal-footer .cookies-btn-accept {
    background: #8ba287;
    color: white;
    border: 2px solid #8ba287;
}

.cookies-modal-footer .cookies-btn-accept:hover {
    background: #7a9175;
    border-color: #7a9175;
    transform: translateY(-1px);
}

.cookies-modal-footer .cookies-btn-decline {
    background: transparent;
    color: #a2503b;
    border: 2px solid #a2503b;
}

.cookies-modal-footer .cookies-btn-decline:hover {
    background: #a2503b;
    color: white;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .cookies-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookies-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookies-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookies-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookies-modal-header,
    .cookies-modal-body,
    .cookies-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookies-modal-footer {
        flex-direction: column;
    }
}

/* Animation d'entrée */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookies-banner.animate {
    animation: slideUp 0.5s ease-out;
}
