.analytics-consent[hidden] {
    display: none !important;
}

.analytics-consent {
    position: fixed;
    z-index: 10000;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 820px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid rgba(39, 31, 27, .14);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(31, 24, 20, .18);
    color: #2c2927;
}

.analytics-consent-copy {
    min-width: 0;
}

.analytics-consent-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.analytics-consent-copy p {
    margin: 0;
    color: #6c625d;
    font-size: .9rem;
    line-height: 1.45;
}

.analytics-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.analytics-consent-button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #b34f2f;
    border-radius: 999px;
    background: #fff;
    color: #9c3f25;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.analytics-consent-button-primary {
    background: #b34f2f;
    color: #fff;
}

.analytics-consent-button:hover,
.analytics-consent-button:focus-visible {
    filter: brightness(.96);
}

.footer-cookie-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
    color: #b34f2f;
}

@media (max-width: 680px) {
    .analytics-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .analytics-consent-actions {
        width: 100%;
    }

    .analytics-consent-button {
        flex: 1;
    }
}

/* Responsive mobile */
@media (max-width: 640px) {
    .analytics-consent {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 24px);
        margin: 0;
        padding: 16px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-radius: 16px;
        overflow-y: auto;
    }

    .analytics-consent-copy {
        min-width: 0;
        width: 100%;
    }

    .analytics-consent-copy strong {
        font-size: 1rem;
        line-height: 1.25;
    }

    .analytics-consent-copy p {
        margin-top: 6px;
        font-size: .88rem;
        line-height: 1.45;
    }

    .analytics-consent-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .analytics-consent-button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        justify-content: center;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .analytics-consent {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        padding: 14px;
    }

    .analytics-consent-button {
        font-size: .88rem;
    }
}


/* V42.3 mobile final */
@media (max-width: 680px) {
    .analytics-consent {
        left: 12px !important;
        right: auto !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;

        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;

        overflow-x: hidden !important;
        overflow-y: auto;
    }

    .analytics-consent-copy {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .analytics-consent-copy p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .analytics-consent-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    .analytics-consent-button {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        min-height: 46px;
        padding: 9px 10px !important;
        box-sizing: border-box !important;

        white-space: normal !important;
        text-align: center;
    }
}

/* Footer : aligner le bouton Cookies comme les liens */
.footer-cookie-button {
    text-align: left;
    justify-self: start;
    width: auto;
}
