/* ============================================================
   GLOBAL CTAs — Cookie Consent + Action Nudge
   Mobile-first · Design system vars
   ============================================================ */

/* ------------------------------------------------------------
   1. COOKIE CONSENT BANNER
   ------------------------------------------------------------ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
    pointer-events: none;
}
.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner__backdrop {
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 16px;
}

.cookie-banner__inner {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 -4px 32px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(149, 193, 31, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.cookie-banner__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cookie-banner__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1a1f16);
    margin: 0 0 4px;
    line-height: 1.3;
}

.cookie-banner__text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--cl-text-2, #5a6149);
    margin: 0;
}

.cookie-banner__text a {
    color: var(--primary, #95c11f);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: var(--primary, #95c11f);
    color: #fff;
}
.cookie-banner__btn--accept:hover {
    background: var(--primary-dark, #7da819);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(149,193,31,.35);
}

.cookie-banner__btn--decline {
    background: transparent;
    color: var(--cl-text-2, #5a6149);
    border: 1.5px solid var(--line, #e8e8e0);
}
.cookie-banner__btn--decline:hover {
    background: var(--bg-1, #f5f5f0);
    border-color: var(--cl-text-2, #5a6149);
}

/* ------------------------------------------------------------
   2. ACTION MODAL CTA
   ------------------------------------------------------------ */
.action-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.action-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.action-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.action-modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04);
    transform: translateY(24px) scale(.96);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.action-modal.is-visible .action-modal__card {
    transform: translateY(0) scale(1);
}

/* Close button */
.action-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all .2s ease;
    z-index: 2;
    padding: 0;
    line-height: 1;
}
.action-modal__close:hover {
    background: rgba(0,0,0,.7);
    transform: scale(1.1);
}

/* Image */
.action-modal__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Body */
.action-modal__body {
    padding: 24px 20px 20px;
    text-align: center;
}

.action-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(149,193,31,.1);
    color: var(--primary, #95c11f);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.action-modal__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary, #95c11f);
    animation: modalPulse 2s ease-in-out infinite;
}

@keyframes modalPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.5); }
}

.action-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #1a1f16);
    margin: 0 0 8px;
    line-height: 1.3;
}

.action-modal__desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--cl-text-2, #5a6149);
    margin: 0 0 20px;
}

/* Primary CTA buttons */
.action-modal__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.action-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
}

.action-modal__btn--devis {
    background: var(--primary, #95c11f);
    color: #fff;
}
.action-modal__btn--devis:hover {
    background: var(--primary-dark, #7da819);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(149,193,31,.35);
    color: #fff;
}
.action-modal__btn--devis .icon {
    font-size: 16px;
}

.action-modal__btn--marque {
    background: var(--bg-dark, #1a1f16);
    color: #fff;
}
.action-modal__btn--marque:hover {
    background: #2a3126;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    color: #fff;
}
.action-modal__btn--marque .icon {
    font-size: 16px;
}

/* Secondary actions */
.action-modal__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #e8e8e0);
}

.action-modal__link {
    background: none;
    border: none;
    color: var(--cl-text-2, #5a6149);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .2s ease;
    text-decoration: none;
}
.action-modal__link:hover {
    background: var(--bg-1, #f5f5f0);
    color: var(--text, #1a1f16);
}

.action-modal__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line, #e8e8e0);
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   3. RESPONSIVE — Tablet+
   ------------------------------------------------------------ */
@media (min-width: 576px) {
    .cookie-banner__actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .cookie-banner__btn {
        flex: 0 0 auto;
    }

    .action-modal__buttons {
        flex-direction: row;
    }
    .action-modal__btn {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .cookie-banner__backdrop {
        padding: 24px;
    }
    .cookie-banner__inner {
        padding: 28px 28px;
        flex-direction: column;
        gap: 20px;
    }

    .action-modal__card {
        max-width: 480px;
    }
    .action-modal__img {
        height: 220px;
    }
    .action-modal__body {
        padding: 28px 28px 24px;
    }
    .action-modal__title {
        font-size: 22px;
    }
}
