/* Quote front - Frontend styles */

blockquote.wp-block-quote,
.wp-block-quote {
    border-left-width: 4px;
    border-left-style: solid;
    border-left-color: var(--wp--custom--semantic--color--primary, var(--wp--custom--primitive--color--sncf-holding--parme--500, #6558b1)) !important;
    padding-left: var(--wp--custom--semantic--spacing--300, 24px) !important;
    padding-top: var(--wp--custom--semantic--spacing--100, 8px) !important;
    padding-bottom: var(--wp--custom--semantic--spacing--100, 8px) !important;
    margin-top: var(--wp--custom--semantic--spacing--200, 16px) !important;
    margin-bottom: var(--wp--custom--semantic--spacing--200, 16px) !important;
}

/* Paragraphes dans la citation */
blockquote.wp-block-quote p,
.wp-block-quote p {
    margin-bottom: var(--wp--custom--semantic--spacing--base, 8px) !important;
}

blockquote.wp-block-quote p:last-child,
.wp-block-quote p:last-child {
    margin-bottom: 0 !important;
}

/* Élément cite (auteur/source) */
blockquote.wp-block-quote cite,
.wp-block-quote cite {
    font-style: normal;
    font-size: 0.875em;
    color: var(--wp--custom--semantic--color--foreground--neutral--muted, var(--wp--custom--primitive--color--neutral--600, #666666)) !important;
    margin-top: var(--wp--custom--semantic--spacing--100, 8px) !important;
    display: block;
}

/* Style "is-style-large" (citation en grand) */
blockquote.wp-block-quote.is-style-large,
.wp-block-quote.is-style-large {
    border-left: none;
    padding-left: 0 !important;
    padding-top: var(--wp--custom--semantic--spacing--300, 24px) !important;
    padding-bottom: var(--wp--custom--semantic--spacing--300, 24px) !important;
}

blockquote.wp-block-quote.is-style-large p,
.wp-block-quote.is-style-large p {
    font-size: 1.5em;
    font-style: italic;
    line-height: 1.4;
}

/* Background colors - Text color adaptation */

/* Base styles for quotes with background */
blockquote.wp-block-quote.has-background,
.wp-block-quote.has-background {
    padding: var(--wp--custom--semantic--spacing--300, 24px) !important;
    border-radius: var(--wp--custom--semantic--border--radius--base, 4px);
}

/* Surface colors - Text color based on background */
blockquote.wp-block-quote.has-surface-brand-background-color,
.wp-block-quote.has-surface-brand-background-color {
    color: var(--wp--custom--semantic--color--text--inverse, #ffffff) !important;
}

blockquote.wp-block-quote.has-surface-body-background-color,
.wp-block-quote.has-surface-body-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-primary-background-color,
.wp-block-quote.has-surface-primary-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-secondary-background-color,
.wp-block-quote.has-surface-secondary-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-tertiary-background-color,
.wp-block-quote.has-surface-tertiary-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-inverse-background-color,
.wp-block-quote.has-surface-inverse-background-color {
    color: var(--wp--custom--semantic--color--text--inverse, #ffffff) !important;
}

/* Surface Accent colors - Text color based on background */
blockquote.wp-block-quote.has-surface-accent-lightest-background-color,
.wp-block-quote.has-surface-accent-lightest-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-accent-lighter-background-color,
.wp-block-quote.has-surface-accent-lighter-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-accent-light-background-color,
.wp-block-quote.has-surface-accent-light-background-color {
    color: var(--wp--custom--semantic--color--text--primary, #121212) !important;
}

blockquote.wp-block-quote.has-surface-accent-dark-background-color,
.wp-block-quote.has-surface-accent-dark-background-color {
    color: var(--wp--custom--semantic--color--text--inverse, #ffffff) !important;
}

blockquote.wp-block-quote.has-surface-accent-darker-background-color,
.wp-block-quote.has-surface-accent-darker-background-color {
    color: var(--wp--custom--semantic--color--text--inverse, #ffffff) !important;
}

blockquote.wp-block-quote.has-surface-accent-darkest-background-color,
.wp-block-quote.has-surface-accent-darkest-background-color {
    color: var(--wp--custom--semantic--color--text--inverse, #ffffff) !important;
}
