.cta {
    display: flex;
    justify-content: center;
    padding: 0 20px 77px;
}

/* Bandeau de 1312 x 420 dans la maquette. Le texte est cale a 72px du
   bord et le visuel a 40px, l'ecart entre les deux est le reste de la
   largeur. */
.cta__block {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    width: min(1312px, 100%);
    min-height: 420px;
    padding: 96px 40px 40px 72px;
    background: var(--color-fond-marque);
    border-radius: var(--rayon-bandeau);
    overflow: hidden;
    box-sizing: border-box;
}

.cta__ellipse {
    position: absolute;
    left: -120px;
    top: -260px;
    width: 520px;
    height: 520px;
    max-width: none;
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 560px;
    max-width: 620px;
    min-width: 0;
}

.cta__title {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -2.4px;
    color: var(--color-texte-sur-marque);
    margin: 0 0 var(--espace-lg);
}

.cta__text {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: rgba(253, 250, 241, 0.85);
    max-width: 560px;
    margin: 0 0 var(--espace-lg);
}

.cta__buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--espace-sm);
}

.cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-titre);
    font-weight: 500;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.cta__btn--primary {
    gap: 10px;
    height: 46px;
    padding: var(--espace-sm) var(--espace-lg);
    background: var(--color-fond-accent-peche);
    border-radius: var(--rayon-xl);
    font-size: 18px;
    line-height: 1.2;
    color: #4f203e;
}

.cta__btn--primary:hover {
    transform: translateY(-2px);
}

.cta__btn-arrow {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.cta__btn--link {
    padding: var(--espace-sm) 20px;
    border: 1.5px solid rgba(253, 250, 241, 0.4);
    border-radius: 999px;
    font-size: 16px;
    line-height: normal;
    color: var(--color-texte-sur-marque);
}

.cta__btn--link:hover {
    background: rgba(253, 250, 241, 0.08);
}

/* Visuel de 520 x 340 avec la carte flottante qui deborde de 40px a
   gauche et recouvre son bas. */
.cta__visual {
    position: relative;
    z-index: 1;
    flex: 0 1 520px;
    min-width: 0;
    margin-top: -56px;
}

.cta__image {
    display: block;
    width: 100%;
    height: auto; /* l'attribut height="788" du HTML écraserait sinon l'aspect-ratio */
    aspect-ratio: 520 / 340;
    object-fit: cover;
    border-radius: 28px;
}

.cta__card {
    position: absolute;
    left: -40px;
    top: 76.47%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--espace-sm) var(--espace-md) var(--espace-sm) var(--espace-sm);
    background: var(--color-fond-page);
    border-radius: 20px;
    filter: drop-shadow(0 10px 15px rgba(79, 32, 62, 0.3));
    white-space: nowrap;
}

.cta__avatars {
    position: relative;
    flex-shrink: 0;
    width: 76px;
    height: 32px;
}

.cta__avatar {
    position: absolute;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.cta__avatar:nth-child(1) { left: 0; }
.cta__avatar:nth-child(2) { left: 22px; }
.cta__avatar:nth-child(3) { left: 44px; }

.cta__card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: normal;
}

.cta__card-title {
    font-family: var(--font-titre);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

.cta__card-sub {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: 12px;
    color: rgba(var(--color-primary-rgb), 0.8);
}

[data-theme="dark"] .cta__block {
    background: #200E1C;
}

@media (max-width: 900px) {
    .cta {
        padding: 0 16px;
    }

    .cta__block {
        flex-direction: column;
        align-items: stretch;
        gap: var(--espace-md);
        min-height: 0;
        padding: var(--espace-xl) var(--espace-lg) var(--espace-lg);
    }

    .cta__ellipse {
        left: -90px;
        top: -150px;
        width: 312px;
        height: 312px;
    }

    .cta__content {
        flex: none;
        max-width: none;
        width: 100%;
        gap: var(--espace-md);
    }

    .cta__title {
        font-size: 34px;
        line-height: 1.08;
        letter-spacing: -0.51px;
        margin: 0;
    }

    .cta__text {
        font-family: var(--font-corps);
        font-size: 16px;
        line-height: 1.5;
        max-width: none;
        margin: 0;
    }

    .cta__buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--espace-xs);
        width: 100%;
    }

    .cta__btn--link {
        width: 100%;
        height: 46px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .cta__visual {
        flex: none;
        width: 100%;
        margin-top: 0;
        padding-bottom: 36px;
    }

    .cta__image {
        height: 200px;
        aspect-ratio: auto;
    }

    .cta__card {
        left: 12px;
        top: 179px;
    }
}

@media (max-width: 768px) {
    .cta {
        padding-bottom: var(--espace-2xl);
    }
}
