/* EAFPS — auspice thank-you page (shortcode [eafps_auspice_thank_you]).
   Structure visuelle reprise telle quelle du module ebec, juste renommée
   sur le namespace `.eafps-evt-ty`. */

.eafps-evt-ty {
    --eafps-ty-navy:        #272E47;
    --eafps-ty-text:        #4C4C4C;
    --eafps-ty-hero-pad-y:  60px;
    --eafps-ty-hero-pad-x:  100px;
    --eafps-ty-image-w:     440px;
    --eafps-ty-image-h:     420px;
    --eafps-ty-image-top:   60px;
    --eafps-ty-image-gap:   50px;

    position: relative;
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: "Inter", inherit;
    box-sizing: border-box;
}
.eafps-evt-ty * { box-sizing: inherit; }

.eafps-evt-ty__hero {
    position: relative;
    background: var(--eafps-ty-navy);
    border-radius: 15px;
    padding: var(--eafps-ty-hero-pad-y) var(--eafps-ty-hero-pad-x);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    min-height: calc( var(--eafps-ty-image-top) + var(--eafps-ty-image-h) * 0.6 );
}

.eafps-evt-ty__title {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 45px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.45px;
    text-transform: uppercase;
    margin: 0;
    max-width: calc( 100% - var(--eafps-ty-image-w) - var(--eafps-ty-image-gap) );
}

/* Salient repaints h1 inside .container-wrap — force white on the hero
   title regardless of theme cascade. */
body .eafps-evt-ty .eafps-evt-ty__title {
    color: #fff !important;
}

.eafps-evt-ty__image {
    position: absolute;
    top: var(--eafps-ty-image-top);
    right: var(--eafps-ty-hero-pad-x);
    width: var(--eafps-ty-image-w);
    height: var(--eafps-ty-image-h);
    background-color: lightgray;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.eafps-evt-ty__message {
    /* Reserve right margin equal to (image right padding + image width + gap)
       so the message text never flows under the absolute-positioned image. */
    margin: 48px 0 0 var(--eafps-ty-hero-pad-x);
    margin-right: calc( var(--eafps-ty-hero-pad-x) + var(--eafps-ty-image-w) + var(--eafps-ty-image-gap) );
    color: var(--eafps-ty-text);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 170%;
}
.eafps-evt-ty__message p { margin: 0 0 1em; }
.eafps-evt-ty__message p:last-child { margin-bottom: 0; }

@media ( max-width: 1300px ) {
    .eafps-evt-ty {
        --eafps-ty-hero-pad-x: 80px;
        --eafps-ty-image-w:    420px;
        --eafps-ty-image-h:    420px;
    }
    .eafps-evt-ty__title { font-size: 36px; }
}

@media ( max-width: 1000px ) {
    .eafps-evt-ty {
        padding: 0 16px 60px;
    }
    .eafps-evt-ty__hero {
        padding: 56px 28px;
        min-height: 0;
    }
    .eafps-evt-ty__title {
        font-size: 28px;
        max-width: 100%;
    }
    .eafps-evt-ty__image {
        position: static;
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        margin-top: 28px;
        border-radius: 8px;
    }
    .eafps-evt-ty__message {
        margin: -32px 16px 0;
        padding: 28px 24px;
    }
}
