.text-pole {
    display: flex;
    flex-direction: row-reverse;
    padding: 100px var(--gutters);
    gap: 2rem;
    position: relative;
    z-index: 1;
    background-color: var(--wp--preset--color--white);
}
.text-pole.text-left{
    flex-direction: row;
}
@media (max-width: 768px) {
    .text-pole,
    .text-pole.text-left {
        flex-direction: column;
        gap: 1rem;
        padding: 50px var(--gutters);
    }
    .text-pole:has(+ .text-pole),
    .text-pole:has(+ .text-pole-modale + .text-pole) {
        padding: 50px var(--gutters);
    }
    .text-pole + .text-pole,
    .text-pole + .text-pole-modale + .text-pole {
        padding: 0 var(--gutters) 50px;
    }
    .text-pole .text-pole-content,
    .text-pole .text-pole-text {
        display: contents;
    }
    .text-pole-text > * {
        order: 2;
    }
    .text-pole-text > p:first-of-type,
    .text-pole-text > h2:nth-of-type(-n + 2) {
        order: 0;
    }
    .text-pole-text > p:first-of-type {
        margin-bottom: 1rem;
    }
    .text-pole-text > p:first-of-type ~ h2:nth-of-type(-n + 2) {
        margin-top: -1rem;
    }
    .text-pole .text-pole-media {
        order: 1;
        width: 100%;
        margin-block: 1rem;
    }
    .text-pole-list,
    .text-pole-add-text,
    .text-pole-btn {
        order: 3;
    }
}
.text-pole-content, .text-pole-media{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}
.text-pole-media{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: #F6F6F6;
    padding: 2rem;
}
.text-pole-media.option-2{
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--violet);
}

.text-pole-media video, .text-pole-media img{
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}
.text-pole-media.option-2 video, .text-pole-media.option-2 img{
    height: 210px;
    object-fit: cover;
}
.text-pole-text h2{
    margin: 0;
}
.text-pole-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}
.text-pole-list-item{
    width: 50%;
    padding: 0.5rem 0;
    font-family: "Mona Sans";
    font-size: 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
}
.text-pole-list-item span{
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: url(../../../assets/svg/check.svg) no-repeat center center;
    margin-right: 1rem;
}
.text-pole-border{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    transform: translateY(100%);
    background-color: var(--wp--preset--color--white);
    border-radius: 0px 0px 30px 30px;
    z-index: 1;
}
.text-pole-border-up{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    transform: translateY(-100%);
    background-color: var(--wp--preset--color--white);
    border-radius: 30px 30px 0px 0px;
    z-index: 1;
}
.text-pole-add-text p{
    margin: 0;
}
html.text-pole-modale-open,
body.text-pole-modale-open{
    overflow: hidden;
    height: 100%;
}
.text-pole-modale{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--wp--preset--color--blanc);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.text-pole-modale-close{
    color: var(--wp--preset--color--violet);
    font-family: "IBM Plex Mono", monospace;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translate(-50%, 50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.text-pole-modale-close span{
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: url(../../../assets/svg/violet-star.svg) no-repeat center center;
    background-size: contain;
}
.text-pole-modale-content{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 2rem;
    margin-bottom: 2rem;
}
.text-pole-modale-item{
    display: flex;
    width: 340px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 8px;
    border: 1px solid #E5DCFB;
    background: var(--wp--preset--color--white);
    box-shadow: 0 0.974px 6.819px 2.923px rgba(75, 42, 203, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.text-pole-modale-item-tag{
    border-radius: 30px;
    background: rgba(81, 55, 212, 0.10);
    padding: 4px 8px;
    color: var(--Violet, #5137D4);
    text-align: center;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.text-pole-modale-item-text h4{
    margin: 0;
}
.text-pole-modale-col{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.text-pole-modale .socreativ-btn{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.text-pole-modale.active{
    opacity: 1;
    pointer-events: auto;
}
.text-pole-modale.active .text-pole-modale-close{
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.5s;
}
.text-pole-modale.active .text-pole-modale-item{
    opacity: 1;
    transform: translateY(0);
}
.text-pole-modale.active .text-pole-modale-item:nth-child(1){
    transition-delay: 0.6s;
}
.text-pole-modale.active .text-pole-modale-item:nth-child(2){
    transition-delay: 0.7s;
}
.text-pole-modale.active .text-pole-modale-item:nth-child(3){
    transition-delay: 0.8s;
}
.text-pole-modale.active .text-pole-modale-item:nth-child(4){
    transition-delay: 0.9s;
}
.text-pole-modale.active .text-pole-modale-item:nth-child(5){
    transition-delay: 1s;
}
.text-pole-modale.active .text-pole-modale-item:nth-child(6){
    transition-delay: 1.1s;
}
.text-pole-modale.active .socreativ-btn{
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

/* Compact text spacing on mobile. */
@media (max-width: 768px) {
    .text-pole,
    .text-pole .text-pole-content,
    .text-pole .text-pole-text {
        gap: 0;
    }

    .text-pole .text-pole-text > *,
    .text-pole .text-pole-text > p:first-of-type {
        margin-bottom: 0;
    }

    .text-pole-text > p:first-of-type ~ h2:nth-of-type(-n + 2) {
        margin-top: 0;
    }
}
