/* Masque les éléments natifs tarteaucitron */
#tarteaucitronAlertBig,
#tarteaucitronIcon {
    display: none !important;
}

/* ======================================================
   Bannière de consentement personnalisée sojadis
   ====================================================== */

#sojadis-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 460px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px;
    z-index: 99999;
    font-family: inherit;
    box-sizing: border-box;
}

.sojadis-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sojadis-consent-refuse {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-family: inherit;
    font-weight: 400;
    color: #999999;
    text-decoration: none;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    line-height: 1.4;
    display: inline;
    appearance: none;
    -webkit-appearance: none;
}

.sojadis-consent-logo {
    width: 110px;
    height: auto;
    display: block;
}

.sojadis-consent-title {
    font-size: 16px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 2px;
    line-height: 1.3;
}

.sojadis-consent-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 14px;
    line-height: 1.2;
}

.sojadis-consent-body {
    font-size: 13px;
    line-height: 1.6;
    color: #333333;
}

.sojadis-consent-body p {
    margin: 0 0 8px;
}

.sojadis-consent-body p:last-child {
    margin-bottom: 0;
}

.sojadis-consent-credit {
    font-size: 11px;
    color: #999999;
    text-align: center;
    margin: 14px 0 0;
}

.sojadis-consent-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.sojadis-consent-manage,
.sojadis-consent-accept {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sojadis-consent-manage {
    background: #ffffff;
    color: #333333;
    border: 1.5px solid #cccccc;
}

.sojadis-consent-manage:hover {
    border-color: #888888;
    background: #f7f7f7;
}

.sojadis-consent-accept {
    background: #C1D100;
    color: #193357;
    border: none;
}

.sojadis-consent-accept:hover {
    background: #193357;
    color: #ffffff;
}

/* Fond semi-transparent */
#tarteaucitronBack {
    background: rgba(0, 0, 0, 0.35) !important;
    opacity: 1 !important;
}

@media (max-width: 520px) {
    #sojadis-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    #sojadis-consent-toggle {
        bottom: 16px;
        left: 16px;
    }
}
