/* --- Hero : espacement titre / 2e colonne (page About uniquement) --- */

body.page-id-5 .wp-block-group.has-background > .wp-block-columns {
    column-gap: var(--space-6);
}

/* --- Titres de section --- */

.about-title {
    position: relative;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    grid-column: 1 / -1;
}

.about-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* --- Cartes "Mes valeurs" --- */

.values-grid {
    gap: 32px;
}

.values-grid > .wp-block-group {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.values-grid > .wp-block-group:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

.values-grid h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.values-grid p {
    opacity: 0.75;
    line-height: 1.5;
}

/* --- Compétences : tags en pilules premium --- */

.skills-section h3 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    opacity: 0.55;
    margin-bottom: 0.75rem;
}

.skills-section h3:first-of-type {
    margin-top: 0;
}

.skills-section .is-layout-flex {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.is-style-text-annotation {
    border-radius: 999px !important;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: default;
}

.is-style-text-annotation:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.skills-section > .wp-block-group > .wp-block-group {
    margin-bottom: 1.75rem;
}

/* --- "Ma façon de travailler" : grille propre --- */

.process-section .about-title {
    white-space: nowrap;
}

.process-section p.wp-block-paragraph:first-of-type {
    display: none;
    /* masque le doublon "de travailler" laissé par erreur */
}

.process-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.process-section p.has-medium-font-size {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

.process-section p.has-medium-font-size br {
    display: none;
    /* nettoie les <br><br> parasites */
}

.process-section p.has-medium-font-size:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 782px) {
    .process-section {
        grid-template-columns: 1fr;
    }
}

/* --- "Quelques chiffres" : impact visuel --- */

.stats-section .is-layout-flex {
    gap: 0.25rem 3rem;
    flex-wrap: wrap;
}

.stats-section p[class*="xx-large-font-size"] {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stats-section p.has-medium-font-size {
    opacity: 0.65;
    max-width: 140px;
    line-height: 1.3;
}

.stats-section p.has-medium-font-size br {
    display: none;
}

/* --- Bloc CTA noir : plus premium (page About uniquement) --- */

body.page-id-5 .wp-block-group.has-custom-black-background-color {
    background: linear-gradient(135deg, #111 0%, #232323 100%);
    position: relative;
    overflow: hidden;
}

body.page-id-5 .wp-block-group.has-custom-black-background-color .wp-block-button__link:hover {
    box-shadow: 0 12px 24px -8px rgba(255, 255, 255, 0.15);
}

/* --- Transitions douces (page About uniquement) --- */

body.page-id-5 a,
body.page-id-5 .wp-block-button__link,
body.page-id-5 img {
    transition: all 0.3s ease;
}
