/* Fabomatic Cookie Consent - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bannière principale */
.fcc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fcc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fcc-content {
    flex: 1;
    min-width: 250px;
}

.fcc-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.fcc-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Boutons */
.fcc-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.fcc-btn-customize {
    background-color: #fff;
    color: #0066cc;
    box-shadow: inset 0 0 0 2px #0066cc;
}

.fcc-btn-customize:hover {
    background-color: #0066cc;
    color: #ffffff;
}

.fcc-btn-reject {
    background-color: #fff;
    color: #0066cc;
    box-shadow: inset 0 0 0 2px #0066cc;
}

.fcc-btn-reject:hover {
    background-color: #0066cc;
    color: #ffffff;
}

.fcc-btn-accept {
    background: #0099cc;
    color: #fff;
}

.fcc-btn-accept:hover {
    background-color: #0066cc;
    color: #ffffff;
}

/* Modal */
.fcc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fcc-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.fcc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.fcc-modal-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.fcc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.fcc-modal-close:hover {
    color: #333;
}

.fcc-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.fcc-cookie-category {
    margin-bottom: 20px;
}

.fcc-cookie-category:last-child {
    margin-bottom: 0;
}

.fcc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.fcc-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0099cc;
}

.fcc-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.fcc-checkbox-label {
    flex: 1;
}

.fcc-checkbox-label strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.fcc-checkbox-label p {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.fcc-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.fcc-modal-footer .fcc-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .fcc-container {
        flex-direction: column;
        align-items: stretch;
    }

    .fcc-buttons {
        justify-content: stretch;
    }

    .fcc-btn {
        flex: 1;
        min-width: 0;
    }

    .fcc-modal {
        padding: 10px;
    }

    .fcc-modal-content {
        max-width: 100%;
    }

    .fcc-modal-footer {
        flex-direction: column;
    }

    .fcc-modal-footer .fcc-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fcc-container {
        padding: 15px;
    }

    .fcc-title {
        font-size: 16px;
    }

    .fcc-description {
        font-size: 13px;
    }

    .fcc-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .fcc-modal-header {
        padding: 15px;
    }

    .fcc-modal-body {
        padding: 15px;
    }

    .fcc-modal-footer {
        padding: 15px;
    }
}
