/* Module de consentement aux cookies */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.cookie-consent__card,
.cookie-consent__panel {
    pointer-events: auto;
    width: 100%;
    max-width: 920px;
    background: #FCF5EB;
    border: 1px solid #CEC9C1;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(17, 27, 33, 0.18);
    padding: 28px 32px;
    font-family: 'Albert Sans', sans-serif;
    color: #1C1E21;
}

.cookie-consent__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent__card[hidden],
.cookie-consent__panel[hidden] {
    display: none;
}

.cookie-consent__text {
    flex: 1 1 380px;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__link {
    color: #FF1C55;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 14px 24px;
    border-radius: 1000px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-consent__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-consent__btn--text {
    background: none;
    border: 1px solid transparent;
    color: #1C1E21;
    text-decoration: underline;
}

.cookie-consent__btn--outline {
    background: white;
    border: 1px solid #CEC9C1;
    color: #111B21;
}

.cookie-consent__btn--primary {
    background: #111B21;
    border: none;
    color: white;
}

/* Panneau de personnalisation */

.cookie-consent__panel-title {
    font-family: 'Knewave', cursive;
    font-weight: 400;
    font-size: 28px;
    margin: 0 0 16px;
    color: #1C1E21;
}

.cookie-consent__option {
    padding: 16px 0;
    border-top: 1px solid #CEC9C1;
}

.cookie-consent__option:last-of-type {
    border-bottom: 1px solid #CEC9C1;
}

.cookie-consent__option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent__option-title {
    font-weight: 700;
    font-size: 16px;
}

.cookie-consent__option-desc {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4A4F54;
}

.cookie-consent__toggle {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 26px;
    border-radius: 1000px;
    border: none;
    background: #CEC9C1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.cookie-consent__toggle-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s;
}

.cookie-consent__toggle--on {
    background: #FF1C55;
}

.cookie-consent__toggle--on .cookie-consent__toggle-dot {
    transform: translateX(18px);
}

.cookie-consent__toggle--disabled {
    background: #111B21;
    opacity: 0.35;
    cursor: default;
}

.cookie-consent__toggle--disabled .cookie-consent__toggle-dot {
    transform: translateX(18px);
}

.cookie-consent__panel .cookie-consent__actions {
    margin-top: 20px;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 12px;
    }

    .cookie-consent__card,
    .cookie-consent__panel {
        padding: 20px;
        border-radius: 20px;
    }

    .cookie-consent__card {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
        text-align: center;
    }

    .cookie-consent__panel .cookie-consent__actions {
        flex-direction: column-reverse;
    }
}
