/* ===== Block: Roundbloc ===== */
.roundbloc--fullheight {
    height: 100%;
}

.block-roundbloc {
    border-radius: 20px;
    padding: 30px;
}

.roundbloc__inner .rb-title-content h3 {
    font-size: 30px;
    font-weight: 500;
    line-height: 37px;
    margin: 0px;
}

.roundbloc__inner .rb-title-content h3 span {
    font-size: 60px;
    font-weight: 700;
}

a.btn-degrade {
    display: inline-block;
    width: fit-content;
    padding: 15px 40px;
    border: 0px;
    text-align: center;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 -6px 10px 0 rgba(255, 137, 92, 0.30) inset;
    font-family: Montserrat;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
}

a.btn-degrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 -6px 10px 0 rgba(255, 137, 92, 0.30) inset;
    background: #f5f5f5;
}

/* ===== MODE STARS ===== */
.block-roundbloc.roundbloc--stars-mode {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
}

.wp-block-column.is-layout-flow {
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.roundbloc--stars-mode .roundbloc__inner {
    display: flex;
    flex-direction: row-reverse;
    gap: 3rem;
    align-items: center;
}

.rb-stars-left {
    flex: 1;
    min-width: 0;
}

.rb-stars-right {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.rb-stars-left .rb-title-content h3 {
    background: linear-gradient(94deg, var(--s-second-color) 3.34%, var(--s-tertiaire-color) 68.82%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.rb-stars-left .rb_inner_content--classic {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

    .rb-description ul {
    margin-left: 30px;
}


.rb-stars-left .rb-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.rb-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rb-service-star {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.rb-service-star svg {
    width: 100%;
    height: 100%;
}

.rb-service-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.rb-stars-decorative {
    position: relative;
    width: 60px;
    height: 60px;
}

.rb-star-big {
    position: absolute;
    top: 0;
    left: 0;
}

.rb-star-small {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: scale(0.6);
    transform-origin: center;
}

.rb-stars-left a.btn-fin {
    border: 2px solid var(--s-second-color);
    color: var(--s-second-color);
    background: transparent;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    border-radius: 10px;
    transition: all 0.3s ease;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
}

.rb-stars-left a.btn-fin:hover {
    opacity: 0.7;
}

/* ===== TYPE CLAIRE ===== */
.block-roundbloc.roundbloc--claire {
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.roundbloc--claire.roundbloc--fullheight .roundbloc__inner .rb-title-content h3 {
    padding: 0 0 20px 0px;
    font-size: 35px;
    width: 100%;
    background: linear-gradient(94deg, var(--s-second-color) 3.34%, var(--s-tertiaire-color) 68.82%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roundbloc--claire .roundbloc__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.roundbloc--claire .rb_inner_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== TYPE OMBRE ===== */
.block-roundbloc.roundbloc--ombre {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.roundbloc--ombre .roundbloc__inner {
    display: flex;
    flex-direction: column;
}

.roundbloc--ombre .roundbloc__inner .rb-title-content {
    width: 100%;
}

.roundbloc--ombre .roundbloc__inner .rb_inner_content {
    width: 100%;
}

.roundbloc--ombre .rb-description p:last-child {
    margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
    .block-roundbloc.roundbloc--ombre {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.25) 100%);
        box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(255, 255, 255, 0.6);
    }
}

/* ===== TYPE DEFAULT ===== */
.block-roundbloc.roundbloc--default .roundbloc__inner {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.roundbloc--default .roundbloc__inner .rb-title-content {
    width: 50%;
}

.roundbloc--default .roundbloc__inner .rb_inner_content--classic {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.roundbloc--default .rb_inner_content--full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100% !important;
}

a.btn-fin {
    border: 1px solid #fff;
    color: #fff;
    padding: 7px 7px 7px 14px;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    border-radius: 10px;
    transition-duration: 0.6s;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

a.btn-fin:hover {
    opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .block-roundbloc {
        padding: 20px;
    }

    .roundbloc__inner .rb-title-content h3 {
        font-size: 24px;
        line-height: 1.3;
    }

    .roundbloc__inner .rb-title-content h3 span {
        font-size: 40px;
    }

    .rb-description {
        font-size: 14px;
    }

    .roundbloc--stars-mode .roundbloc__inner {
        flex-direction: column;
        gap: 1rem;
    }

    .roundbloc--stars-mode .rb-stars-right {
        display: none;
    }

    .roundbloc--stars-mode .rb-stars-left {
        width: 100%;
    }

    .roundbloc--stars-mode .rb-stars-left .rb-title-content h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    .roundbloc--stars-mode .rb-stars-left .rb_inner_content--classic {
        margin-top: 1rem;
        gap: 1rem;
    }

    .roundbloc--stars-mode .rb-stars-left .rb-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .roundbloc--stars-mode .rb-stars-left a.btn-fin {
        padding: 8px 14px;
        font-size: 13px;
        gap: 0.5rem;
        width: fit-content;
    }

    .roundbloc--stars-mode .rb-stars-left a.btn-fin svg {
        width: 35px;
        height: 11px;
    }

    .roundbloc--claire.roundbloc--fullheight .roundbloc__inner .rb-title-content h3 {
        width: 100%;
        font-size: 26px;
        padding: 0 0 15px 0px;
    }

    .roundbloc--claire.block-roundbloc {
        padding: 1.5rem;
    }

    .block-roundbloc.roundbloc--default .roundbloc__inner {
        flex-direction: column;
        gap: 1rem;
    }

    .roundbloc--default .roundbloc__inner .rb-title-content {
        width: 100%;
    }

    .roundbloc--default .roundbloc__inner .rb_inner_content--classic {
        width: 100%;
        gap: 1rem;
    }

    .roundbloc--default .rb_inner_content--full {
        gap: 1.5rem;
    }

    a.btn-degrade {
        padding: 12px 30px;
        font-size: 14px;
    }

    a.btn-fin {
        padding: 6px 6px 6px 12px;
        font-size: 13px;
        gap: 0.5rem;
    }

    a.btn-fin svg {
        width: 40px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .block-roundbloc {
        padding: 16px;
        border-radius: 15px;
    }

    .roundbloc__inner .rb-title-content h3 {
        font-size: 20px;
    }

    .roundbloc__inner .rb-title-content h3 span {
        font-size: 32px;
    }

    .roundbloc--stars-mode .rb-stars-left .rb-title-content h3 {
        font-size: 18px;
    }

    .roundbloc--stars-mode .rb-stars-left .rb_inner_content--classic {
        margin-top: 0.75rem;
        gap: 0.75rem;
    }

    .roundbloc--stars-mode .rb-stars-left .rb-description {
        font-size: 13px;
    }

    .roundbloc--stars-mode .rb-stars-left a.btn-fin {
        padding: 7px 12px;
        font-size: 12px;
    }

    a.btn-degrade {
        padding: 10px 24px;
        font-size: 13px;
    }
}