/**
 * Styles pour le bandeau de consentement aux cookies
 * Conforme RGPD
 */

/* Bandeau de cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid #7c1f2a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 25px;
    z-index: 10000;
    transition: bottom 0.3s ease-out;
}

.cookie-consent-banner.show {
    bottom: 0;
}

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

.cookie-consent-text h3 {
    color: #7c1f2a;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cookie-consent-text p {
    color: #5d4037;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 31, 42, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 31, 42, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    color: #7c1f2a;
    border: 2px solid #7c1f2a;
}

.cookie-btn-secondary:hover {
    background: #7c1f2a;
    color: white;
}

/* Modal de préférences */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.cookie-preferences-modal.show .cookie-preferences-content {
    transform: translateY(0);
}

.cookie-preferences-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.cookie-preferences-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.cookie-preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 2px solid #f6f1ea;
    background: linear-gradient(135deg, #f6f1ea 0%, #fefaf6 100%);
}

.cookie-preferences-header h2 {
    color: #7c1f2a;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #7c1f2a;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-close-btn:hover {
    background: #f6f1ea;
    transform: rotate(90deg);
}

.cookie-preferences-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-preference-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8d9c8;
}

.cookie-preference-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-preference-header {
    margin-bottom: 10px;
}

.cookie-preference-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.cookie-preference-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #7c1f2a;
}

.cookie-preference-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-preference-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #7c1f2a;
}

.cookie-preference-required {
    background: #7c1f2a;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.cookie-preference-description {
    color: #5d4037;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 32px;
}

.cookie-preferences-footer {
    padding: 20px 30px;
    border-top: 2px solid #f6f1ea;
    background: linear-gradient(135deg, #fefaf6 0%, #f6f1ea 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-privacy-link {
    color: #7c1f2a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.cookie-privacy-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cookie-preferences-content {
        width: 95%;
        max-height: 90vh;
    }

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

    .cookie-preferences-header h2 {
        font-size: 1.5rem;
    }

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

    .cookie-preferences-footer {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-privacy-link {
        text-align: center;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Animation pour le scroll bloqué */
body.cookie-modal-open {
    overflow: hidden;
}
