.block-author {
    position: relative;
    background: linear-gradient(
        110deg,
        var(--wp--preset--color--medium-grey) 0 8rem,
        var(--wp--preset--color--light-grey) 8rem 100%
    );
    border-radius: 8px;
    width: 100%;           /* prend toute la largeur en mobile */
    padding: 16px;
    box-shadow: 0 0 9px rgba(190, 190, 190, 0.44);
    overflow: hidden;
}

/* Largeur du bloc : la chaîne de :not() reprend celle du layout du thème, qui l'emporterait sinon. */
.block-author:not(.is-full-width):not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
    max-width: 25rem;
}

.block-author.is-full-width:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
    max-width: none;
}

.block-author__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.block-author__avatar {
    flex: 0 0 auto;
    margin: 0;
    width: 5rem;
    height: 5rem;
}

.block-author__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
}

.block-author__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.block-author__text p.block-paragraph:first-of-type {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
}

.block-author__text p.block-paragraph {
    margin: 0;
    font-size: 0.8125rem; /* 13px */
    font-style: italic;
    font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .block-author {
        padding: 12px;
    }

    /* Même spécificité qu'en bureau, sinon la règle 25rem l'emporterait. */
    .block-author:not(.is-full-width):not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
        max-width: 100%;
    }

    .block-author__inner {
        flex-direction: column;   /* avatar au-dessus du texte */
        align-items: flex-start;  /* aligne à gauche */
        gap: 1rem;
    }

    .block-author__avatar {
        width: 4rem;
        height: 4rem;
    }

    .block-author__text p.block-paragraph:first-of-type {
        font-size: 1.125rem; /* 18px */
    }

    .block-author__text p.block-paragraph {
        font-size: 0.75rem; /* 12px */
    }
}

@media (max-width: 480px) {
    .block-author {
        padding: 10px;
    }

    .block-author__avatar {
        width: 3.5rem;
        height: 3.5rem;
    }

    .block-author__text p.block-paragraph:first-of-type {
        font-size: 1rem; /* 16px */
    }

    .block-author__text p.block-paragraph {
        font-size: 0.75rem; /* 12px */
    }
}


.block-author__decoration {
    position: absolute;
    top: -12px;
    right: -75px;
    display: flex;
    gap: 8px;
}

.block-author__decoration .block-author__decoration-square {
    width: 40px;
    height: 40px;
    border: 1px solid var(--wp--preset--color--medium-green);
    transform: rotate(45deg);
    border-radius: 4px;
    position: relative;
}

.block-author__decoration .block-author__decoration-square:nth-of-type(2) {
    top: 31px;
    right: 16px;
}

.block-author__decoration .block-author__decoration-square:nth-of-type(3) {
    right: 47px;
    top: -14px;
}
