/* ===== Block: Text Image ===== */
.block-text-image {
    padding: 1rem 1.5rem;
    color: var(--s-font-color);
    position: relative;
}

.text-image__bubble {
    position: absolute;
    top: 50%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bubble-color, #d946ef) 0%, transparent 70%);
    filter: blur(90px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-50%);
}

.text-image__bubble--left {
    left: -350px;
}

.text-image__bubble--right {
    right: -350px;
}

@media (max-width: 768px) {
    .text-image__bubble {
        width: 420px;
        height: 420px;
        filter: blur(70px);
        opacity: 0.55;
    }
    .text-image__bubble--left {
        left: -220px;
    }
    .text-image__bubble--right {
        right: -220px;
    }
}

.text-image__inner {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.block-text-image--image-left .text-image__inner {
    direction: rtl;
}
.block-text-image--image-left .text-image__inner > * {
    direction: ltr;
}

.text-image__text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    text-align: left;
}

.text-image__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    color: var(--s-font-color);
}

body:not(.theme-dark) .text-image__pill {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
}

.text-image__pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d946ef;
    box-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
    flex-shrink: 0;
}

.text-image__title,
.text-image__title h1,
.text-image__title h2,
.text-image__title h3,
.text-image__title h4,
.text-image__title h5,
.text-image__title h6 {
    font-size: 56px;
    line-height: 1.05;
    margin: 0.5rem 0;
    font-weight: 700;
}

.block-text-image .text-image__title h1 {
    font-size: 44px;
    line-height: 1.05;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--s-font-color);
    letter-spacing: -0.5px;
    text-align: left;
    -webkit-text-fill-color: initial;
}

.text-image__title em,
.text-image__title i,
.text-image__title h1 em,
.text-image__title h1 i,
.text-image__title h2 em,
.text-image__title h2 i,
.text-image__title h3 em,
.text-image__title h3 i {
    font-style: italic;
    background: linear-gradient(90deg, #c084fc 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-image__description {
    font-size: 16px;
    line-height: 1.55;
    max-width: 520px;
}

.text-image__subtext {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.8;
    max-width: 520px;
}

.text-image__cta {
    margin-top: 1rem;
}

.text-image__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    background: #fff;
    color: #0a0a0a;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.text-image__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.text-image__btn-arrow {
    transition: transform 0.25s ease;
}

.text-image__btn:hover .text-image__btn-arrow {
    transform: translateX(4px);
}

.text-image__baseline {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.text-image__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Lueur (halo) autour des pastilles — pilotée par --glow-1 / --glow-2 */
.block-text-image.has-glow .text-image__pill {
    position: relative;
    border-color: color-mix(in srgb, var(--glow-1, #d946ef) 50%, transparent);
    background: color-mix(in srgb, var(--glow-1, #d946ef) 12%, transparent);
    box-shadow:
        0 0 18px 2px color-mix(in srgb, var(--glow-1, #d946ef) 45%, transparent),
        0 0 50px 6px color-mix(in srgb, var(--glow-2, var(--glow-1, #d946ef)) 30%, transparent);
}

.block-text-image.has-glow .text-image__pill-dot {
    background: var(--glow-1, #d946ef);
    box-shadow: 0 0 10px color-mix(in srgb, var(--glow-1, #d946ef) 80%, transparent);
}

.block-text-image.has-glow--low .text-image__pill {
    box-shadow:
        0 0 10px 1px color-mix(in srgb, var(--glow-1, #d946ef) 30%, transparent),
        0 0 28px 4px color-mix(in srgb, var(--glow-2, var(--glow-1, #d946ef)) 18%, transparent);
}

.block-text-image.has-glow--high .text-image__pill {
    box-shadow:
        0 0 26px 4px color-mix(in srgb, var(--glow-1, #d946ef) 60%, transparent),
        0 0 70px 10px color-mix(in srgb, var(--glow-2, var(--glow-1, #d946ef)) 45%, transparent);
}

@media (max-width: 1200px) {
    .block-text-image .text-image__title h1 {
        font-size: 38px;
    }
}

@media (max-width: 960px) {
    .text-image__title {
        font-size: 42px;
    }
    .block-text-image .text-image__title h1 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .block-text-image {
        padding: 3rem 1rem;
    }
    .text-image__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .block-text-image--image-left .text-image__inner {
        direction: ltr;
    }
    .text-image__text {
        align-items: flex-start;
    }
    .text-image__title {
        font-size: 34px;
    }
    .block-text-image .text-image__title h1 {
        font-size: 30px;
        line-height: 1.15;
    }
    .text-image__btn {
        padding: 0.85rem 1.4rem;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .block-text-image .text-image__title h1 {
        font-size: 26px;
        line-height: 1.2;
    }
}
