@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700&display=swap");

.instacookie,
.instacookie * {
    font-family: "Dosis", sans-serif;
}

.instacookie {
    position: relative;
    z-index: 99990;
}

.instacookie__bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 38px;
    padding: 8px 16px;
    background: rgba(26, 26, 26, 0.94);
    color: #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.12);
}

.instacookie__text {
    margin: 0;
    font-weight: 500;
}

.instacookie__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.instacookie__link {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.instacookie__link:hover,
.instacookie__link:focus {
    color: #ddd;
    outline: none;
}

.instacookie__link--privacy {
    text-decoration: underline;
}

.instacookie__btn--accept {
    background: #ACC114;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.instacookie__btn--accept:hover,
.instacookie__btn--accept:focus {
    background: #b8cd16;
    color: #111;
    outline: none;
}

.instacookie__sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    user-select: none;
}

.instacookie__modal {
    position: fixed;
    inset: 0;
    z-index: 99991;
}

.instacookie__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.instacookie__modal-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    color: #222;
    padding: 20px 20px 24px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 600px) {
    .instacookie__modal-panel {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: min(480px, 92vw);
        max-height: 80vh;
        border-radius: 10px;
    }
}

.instacookie__modal-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.instacookie__category {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.instacookie__category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.instacookie__category-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.instacookie__category-label input[disabled] {
    opacity: 0.5;
}

.instacookie__category-desc {
    margin: 6px 0 0 26px;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    font-weight: 400;
}

.instacookie__modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.instacookie__btn {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.instacookie__btn--ghost {
    background: #fff;
    color: #333;
}

.instacookie__btn--primary {
    background: #ACC114;
    color: #1a1a1a;
    border-color: #ACC114;
    font-weight: 700;
}

.instacookie-footer-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-family: "Dosis", sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

.instacookie-footer-link:hover {
    opacity: 0.85;
}

.instacookie-footer-sep {
    opacity: 0.7;
}

/* Pastille instaCookie — coin bas gauche après choix */
.instacookie__fab {
    position: fixed;
    bottom: 14px;
    left: 14px;
    z-index: 99989;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    background: rgba(26, 26, 26, 0.92);
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, transform 0.15s ease;
}

.instacookie__fab:hover,
.instacookie__fab:focus {
    background: rgba(40, 40, 40, 0.96);
    transform: translateY(-1px);
    outline: none;
}

.instacookie__fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.instacookie__fab-label {
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .instacookie__fab {
        bottom: 10px;
        left: 10px;
        padding: 5px 10px 5px 7px;
        font-size: 11px;
    }

    .instacookie__fab-icon svg {
        width: 16px;
        height: 16px;
    }
}
