/* Bandeau cookies Pink'Bugalu — V2 desktop / V6 mobile */

body.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent {
    position: fixed;
    z-index: 10050;
    font-family: 'Poppins', system-ui, sans-serif;
    animation: cookieConsentIn 0.35s ease-out;
}

@keyframes cookieConsentIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.cookie-consent__text {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
}

.cookie-consent__btn {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.cookie-consent__btn:active {
    transform: scale(0.97);
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.cookie-consent__btn--primary:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.cookie-consent__btn--ghost {
    background: transparent;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.cookie-consent__btn--ghost:hover {
    border-color: #ec4899;
    color: #db2777;
}

/* Desktop — carte flottante (V2) */

.cookie-consent--desktop {
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    max-width: min(380px, calc(100vw - 2rem));
}

.cookie-consent--desktop .cookie-consent__card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.cookie-consent--desktop .cookie-consent__icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #fdf2f8;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.cookie-consent--desktop .cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-consent--desktop .cookie-consent__btn {
    width: 100%;
    text-align: center;
}

/* Mobile — bottom sheet (V6) */

.cookie-consent--mobile {
    inset: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.cookie-consent--mobile .cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    pointer-events: auto;
}

.cookie-consent--mobile .cookie-consent__sheet {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1.25rem 1.5rem;
    pointer-events: auto;
    animation: cookieSheetIn 0.35s ease-out;
}

@keyframes cookieSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent--mobile .cookie-consent__handle {
    width: 2.5rem;
    height: 0.25rem;
    background: #e5e7eb;
    border-radius: 999px;
    margin: 0 auto 1rem;
}

.cookie-consent__actions--stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-consent__actions--stack .cookie-consent__btn {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-consent--mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .cookie-consent--desktop {
        display: none;
    }
}
